Commit b0631872 authored by Jens Stutte's avatar Jens Stutte
Browse files

Bug 1797766 - Do not declare IDBTypedCursor::mTransaction as const....

Bug 1797766 - Do not declare IDBTypedCursor::mTransaction as const. r=dom-storage-reviewers,edenchuang,asuth

Differential Revision: https://phabricator.services.mozilla.com/D161439
parent d4446365
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@ IDBTypedCursor<CursorType>::~IDBTypedCursor() {
    (*mBackgroundActor)->SendDeleteMeInternal();
    MOZ_ASSERT(!mBackgroundActor, "SendDeleteMeInternal should have cleared!");
  }

  // Let's explicitly not leave any dangling CheckedUnsafePtr.
  mTransaction = nullptr;
}

// static
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class IDBCursor : public nsISupports, public nsWrapperCache {
  RefPtr<IDBRequest> mRequest;

  // Sub-classes' mSource will hold this alive.
  const CheckedUnsafePtr<IDBTransaction> mTransaction;
  CheckedUnsafePtr<IDBTransaction> mTransaction;

 protected:
  // These are cycle-collected!