1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:17:46 +00:00

LibWeb: Add WindowObject::origin()

This is a convenience getter to retrieve the security origin of a DOM
window's document.
This commit is contained in:
Andreas Kling 2020-09-22 18:24:49 +02:00
parent 618dcbe405
commit b4a3537716
2 changed files with 8 additions and 0 deletions

View file

@ -44,6 +44,8 @@ public:
DOM::Window& impl() { return *m_impl; }
const DOM::Window& impl() const { return *m_impl; }
Origin origin() const;
XMLHttpRequestPrototype* xhr_prototype() { return m_xhr_prototype; }
XMLHttpRequestConstructor* xhr_constructor() { return m_xhr_constructor; }