tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

portals.idl (1428B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Portals (https://wicg.github.io/portals/)
      5 
      6 [Exposed=Window]
      7 interface HTMLPortalElement : HTMLElement {
      8    [HTMLConstructor] constructor();
      9 
     10    [CEReactions] attribute USVString src;
     11    [CEReactions] attribute DOMString referrerPolicy;
     12 
     13    [NewObject] Promise<undefined> activate(optional PortalActivateOptions options = {});
     14    undefined postMessage(any message, optional StructuredSerializeOptions options = {});
     15 
     16    attribute EventHandler onmessage;
     17    attribute EventHandler onmessageerror;
     18 };
     19 
     20 dictionary PortalActivateOptions : StructuredSerializeOptions {
     21    any data;
     22 };
     23 
     24 partial interface Window {
     25    readonly attribute PortalHost? portalHost;
     26 };
     27 
     28 [Exposed=Window]
     29 interface PortalHost : EventTarget {
     30    undefined postMessage(any message, optional StructuredSerializeOptions options = {});
     31 
     32    attribute EventHandler onmessage;
     33    attribute EventHandler onmessageerror;
     34 };
     35 
     36 [Exposed=Window]
     37 interface PortalActivateEvent : Event {
     38    constructor(DOMString type, optional PortalActivateEventInit eventInitDict = {});
     39 
     40    readonly attribute any data;
     41    HTMLPortalElement adoptPredecessor();
     42 };
     43 
     44 dictionary PortalActivateEventInit : EventInit {
     45    any data = null;
     46 };
     47 
     48 partial interface mixin WindowEventHandlers {
     49    attribute EventHandler onportalactivate;
     50 };