From 09ba2118784fd8add8af6dceb87eb648f5e66593 Mon Sep 17 00:00:00 2001 From: Chris Needham Date: Thu, 5 Sep 2019 16:07:03 +0100 Subject: [PATCH] Update WebIDL usage and fix Respec errors - Fix Navigator reference - Use constructor operations Resolves #466 --- index.html | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 53d96da..33b97b8 100644 --- a/index.html +++ b/index.html @@ -403,8 +403,8 @@

  • - Navigator + "https://html.spec.whatwg.org/multipage/system-state.html#navigator"> + Navigator
  • Interface PresentationRequest
  • -          [Constructor(USVString url),
    -           Constructor(sequence<USVString> urls),
    -           SecureContext, Exposed=Window]
    +          [SecureContext, Exposed=Window]
               interface PresentationRequest : EventTarget {
    +            constructor(USVString url);
    +            constructor(sequence<USVString> urls);
                 Promise<PresentationConnection> start();
                 Promise<PresentationConnection> reconnect(USVString presentationId);
                 Promise<PresentationAvailability> getAvailability();
     
                 attribute EventHandler onconnectionavailable;
               };
    -
    -
    -
    +

    A PresentationRequest object is associated with a request to initiate or reconnect to a presentation made by a @@ -2078,18 +2076,16 @@

    Interface PresentationConnectionAvailableEvent

    -            [Constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict),
    -             SecureContext, Exposed=Window]
    +            [SecureContext, Exposed=Window]
                 interface PresentationConnectionAvailableEvent : Event {
    +              constructor(DOMString type, PresentationConnectionAvailableEventInit eventInitDict);
                   [SameObject] readonly attribute PresentationConnection connection;
                 };
     
                 dictionary PresentationConnectionAvailableEventInit : EventInit {
                   required PresentationConnection connection;
                 };
    -
    -
    -
    +

    A controlling user agent fires a trusted event named

                 enum PresentationConnectionCloseReason { "error", "closed", "wentaway" };
     
    -            [Constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict),
    -             SecureContext, Exposed=Window]
    +            [SecureContext, Exposed=Window]
                 interface PresentationConnectionCloseEvent : Event {
    +              constructor(DOMString type, PresentationConnectionCloseEventInit eventInitDict);
                   readonly attribute PresentationConnectionCloseReason reason;
                   readonly attribute DOMString message;
                 };
    @@ -2538,9 +2534,7 @@ 

    required PresentationConnectionCloseReason reason; DOMString message = ""; }; - - -

    +

    A PresentationConnectionCloseEvent is fired when a presentation connection enters a