mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibWeb: Add LocationObject::url()
https://html.spec.whatwg.org/multipage/history.html#concept-location-url > A Location object has an associated url, which is this Location > object's relevant Document's URL, if this Location object's relevant > Document is non-null, and about:blank otherwise.
This commit is contained in:
parent
da8525279e
commit
7fb9f431ea
2 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/URL.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
@ -31,6 +32,7 @@ public:
|
|||
|
||||
private:
|
||||
DOM::Document const* relevant_document() const;
|
||||
AK::URL url() const;
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(reload);
|
||||
JS_DECLARE_NATIVE_FUNCTION(replace);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue