mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
f87041bf3a
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
22 lines
707 B
C++
22 lines
707 B
C++
/*
|
||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||
* Copyright (c) 2024, Tim Flynn <trflynn89@serenityos.org>
|
||
*
|
||
* SPDX-License-Identifier: BSD-2-Clause
|
||
*/
|
||
|
||
#include <LibJS/Runtime/Realm.h>
|
||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||
#include <LibWeb/StorageAPI/NavigatorStorage.h>
|
||
#include <LibWeb/StorageAPI/StorageManager.h>
|
||
|
||
namespace Web::StorageAPI {
|
||
|
||
// https://storage.spec.whatwg.org/#dom-navigatorstorage-storage
|
||
GC::Ref<StorageManager> NavigatorStorage::storage()
|
||
{
|
||
// The storage getter steps are to return this’s relevant settings object’s StorageManager object.
|
||
return HTML::relevant_settings_object(this_navigator_storage_object()).storage_manager();
|
||
}
|
||
|
||
}
|