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
commit 43da0701fc
Notes: sideshowbarker 2024-07-17 02:06:40 +09:00
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;