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

LibWeb/HTML: Port Window.crypto to IDL

This commit is contained in:
Linus Groh 2023-03-06 19:50:56 +00:00
parent 7de9179a6d
commit 198db2ebd9
3 changed files with 14 additions and 12 deletions

View file

@ -96,8 +96,6 @@ public:
void deallocate_timer_id(Badge<Timer>, i32);
Crypto::Crypto& crypto() { return *m_crypto; }
CSS::Screen& screen();
DOM::Event* current_event() { return m_current_event.ptr(); }
@ -169,6 +167,8 @@ public:
WebIDL::ExceptionOr<JS::NonnullGCPtr<HighResolutionTime::Performance>> performance();
WebIDL::ExceptionOr<JS::NonnullGCPtr<Crypto::Crypto>> crypto();
private:
explicit Window(JS::Realm&);
@ -274,8 +274,6 @@ private:
JS_DECLARE_NATIVE_FUNCTION(request_idle_callback);
JS_DECLARE_NATIVE_FUNCTION(cancel_idle_callback);
JS_DECLARE_NATIVE_FUNCTION(crypto_getter);
HTML::Location* m_location { nullptr };
// [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap