1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibWeb/HTML: Port Window.postMessage() to IDL

This commit is contained in:
Linus Groh 2023-03-05 17:36:59 +00:00
parent eb4842dfa1
commit c219e6d9c1
3 changed files with 19 additions and 27 deletions

View file

@ -9,6 +9,10 @@ interface Window : EventTarget {
undefined alert(DOMString message);
boolean confirm(optional DOMString message = "");
DOMString? prompt(optional DOMString message = "", optional DOMString default = "");
undefined postMessage(any message, USVString targetOrigin);
// FIXME: undefined postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
// FIXME: undefined postMessage(any message, optional WindowPostMessageOptions options = {});
};
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;