1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

LibWeb: Implement navigate() for Location object

This commit is contained in:
Aliaksandr Kalenik 2023-08-22 18:12:10 +02:00 committed by Andreas Kling
parent 5f21285337
commit 43da0701fc
2 changed files with 22 additions and 0 deletions

View file

@ -13,6 +13,7 @@
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/CrossOrigin/CrossOriginPropertyDescriptorMap.h>
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
namespace Web::HTML {
@ -74,6 +75,7 @@ private:
JS::GCPtr<DOM::Document> relevant_document() const;
AK::URL url() const;
WebIDL::ExceptionOr<void> navigate(AK::URL, HistoryHandlingBehavior = HistoryHandlingBehavior::Default);
// [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap
HTML::CrossOriginPropertyDescriptorMap m_cross_origin_property_descriptor_map;