summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-04-18 16:38:54 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-19 07:57:52 +0200
commitf8d6a67294a93f9e23d9311e05d285178028ec0c (patch)
treea1155f62fad1185fcce8ebb3ed7b9b140e889b54 /Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h
parent7833b321a37677d34dc16f4dfe43f418e8c14199 (diff)
downloadserenity-f8d6a67294a93f9e23d9311e05d285178028ec0c.zip
LibWeb: Implement the HTMLMediaElement crossOrigin attribute
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h
index 86846017db..b3d7740927 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLMediaElement.h
@@ -12,6 +12,7 @@
#include <AK/Variant.h>
#include <LibJS/Heap/MarkedVector.h>
#include <LibJS/SafeFunction.h>
+#include <LibWeb/HTML/CORSSettingAttribute.h>
#include <LibWeb/HTML/EventLoop/Task.h>
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/WebIDL/DOMException.h>
@@ -89,6 +90,7 @@ private:
using ByteRange = Variant<EntireResource>; // FIXME: This will need to include "until end" and an actual byte range.
virtual void parse_attribute(DeprecatedFlyString const& name, DeprecatedString const& value) override;
+ virtual void did_remove_attribute(DeprecatedFlyString const&) override;
Task::Source media_element_event_task_source() const { return m_media_element_event_task_source.source; }
@@ -137,6 +139,9 @@ private:
// https://html.spec.whatwg.org/multipage/media.html#media-element-event-task-source
UniqueTaskSource m_media_element_event_task_source {};
+ // https://html.spec.whatwg.org/multipage/media.html#dom-media-crossorigin
+ CORSSettingAttribute m_crossorigin { CORSSettingAttribute::NoCORS };
+
// https://html.spec.whatwg.org/multipage/media.html#dom-media-networkstate
NetworkState m_network_state { NetworkState::Empty };