diff --git a/chromium_src/third_party/blink/renderer/modules/storage/dom_window_storage.cc b/chromium_src/third_party/blink/renderer/modules/storage/dom_window_storage.cc index b2946e8c8274..7b242e92f9fa 100644 --- a/chromium_src/third_party/blink/renderer/modules/storage/dom_window_storage.cc +++ b/chromium_src/third_party/blink/renderer/modules/storage/dom_window_storage.cc @@ -227,7 +227,8 @@ StorageArea* BraveDOMWindowStorage::ephemeralLocalStorage() { controller->ClearAreasIfNeeded(); auto storage_area = base::MakeRefCounted( CachedStorageArea::AreaType::kSessionStorage, window->GetSecurityOrigin(), - controller->TaskRunner(), namespaces->local_storage()); + controller->TaskRunner(), namespaces->local_storage(), + window->GetFrame()->GetDocument()->IsPrerendering()); // Ephemeral localStorage never persists stored data, which is also how // sessionStorage works. Due to this, when opening up a new ephemeral