From 68390cea99f9f19881a16e1c8adaf1b130b4d1cc Mon Sep 17 00:00:00 2001 From: Mike West Date: Thu, 5 Nov 2015 15:50:23 +0100 Subject: [PATCH] Move 'HTTPS state' from Window to Document Based on the discussion in whatwg/html#273, it looks like the right thing to do with 'HTTPS state' is to keep Worker state on the Worker object, but to move a Document's state from the Window to the Document. This patch does just that. --- source | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/source b/source index 23f8a100a18..dfe695001ea 100644 --- a/source +++ b/source @@ -8143,9 +8143,8 @@ interface DOMStringMap {
  • Let address be the browsing context's active document's address.

  • -
  • Let HTTPS state be the HTTPS - state of the browsing context's active document's - Window.

  • +
  • Let HTTPS state be the HTTPS + state of the browsing context's active document.

  • Let CSP list be the CSP list of the browsing context's active document.

  • @@ -8230,6 +8229,12 @@ partial /*sealed*/ interface Document { }; Document implements GlobalEventHandlers; +

    The Document has an HTTPS state, + which represents the security properties of the network channel used to deliver the + Document's data. The value will be one of "modern", "deprecated", or "none". If it is not explicitly set, then + its value is "none".

    +

    The Document has a CSP list, which is a list of Content Security Policy objects active in this context. The list is empty unless otherwise specified.

    @@ -26472,8 +26477,8 @@ href="?audio">audio</a> test instead.)</p> data-x="concept-response-csp-list">CSP list is the CSP list of the iframe element's node document, and HTTPS state is the HTTPS state of the iframe element's - node document's Window. + data-x="concept-document-https-state">HTTPS state of the iframe element's + node document.

    The resulting Document must be considered an iframe srcdoc document.

    @@ -78551,13 +78556,6 @@ callback FrameRequestCallback = void (DOMHighResTimeStamp -

    The Window has an HTTPS state, - which represents the security properties of the network channel used to deliver the - Document with which the Window is associated. The value will be one of - "modern", "deprecated", or "none". If it is not explicitly set, then its value is "none".

    -

    The window, frames, and self IDL attributes must all return the Window object's browsing context's WindowProxy object.

    @@ -82118,7 +82116,7 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O Document instead, and change the document attribute of the Window object to point to the new Document.

    -
  • Set the Window object's HTTPS +

  • Set the Document's HTTPS state to the HTTPS state of the resource used to generate the document.

  • @@ -86065,8 +86063,8 @@ interface NavigatorOnLine {
    The HTTPS state
    -

    Return the HTTPS state of the - Window object.

    +

    Return the HTTPS state of the + Document with which the Window is currently associated.

    @@ -88154,11 +88152,6 @@ interface WindowBase64 { -
  • Set the new Window object's HTTPS - state to the HTTPS state of the - Window object of the responsible document specified by the entry - settings object.

  • -