From 41c7dd5a362f038535126db8f94ec4b890f4099d Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 25 Apr 2016 17:48:16 +0200 Subject: [PATCH] Allow synchronous withCredentials Unfortunately all browsers but Firefox failed to implement the standard. This does not change the fact that synchronous XMLHttpRequest is deprecated. Fixes #66. --- Overview.html | 29 +++++++---------------------- Overview.src.html | 27 ++++++--------------------- 2 files changed, 13 insertions(+), 43 deletions(-) diff --git a/Overview.html b/Overview.html index 782eb55..edaf4da 100644 --- a/Overview.html +++ b/Overview.html @@ -7,7 +7,7 @@

XMLHttpRequest

-

Living Standard — Last Updated 19 April 2016

+

Living Standard — Last Updated 25 April 2016

Participate: @@ -489,14 +489,11 @@

4.5.1 The o if method is a case-insensitive match for `CONNECT`, `TRACE` or `TRACK`. -

Throws an InvalidAccessError - exception if async is false, +

Throws an InvalidAccessError exception if async is false, entry settings object's global object is a Window - object, and either the timeout attribute is not - zero, the withCredentials attribute is true, - or the responseType attribute is not the empty - string. + object, and the timeout attribute is not zero or the + responseType attribute is not the empty string.

Synchronous XMLHttpRequest @@ -565,10 +562,9 @@

4.5.1 The o
  • If async is false, entry settings object's global object is a Window - object, and either the timeout attribute value is not - zero, the withCredentials attribute value is - true, or the responseType attribute value is not - the empty string, throw an + object, and the timeout attribute value is not zero + or the responseType attribute value is not the + empty string, then throw an InvalidAccessError exception.

  • @@ -746,11 +742,6 @@

    4.5.4 The InvalidStateError exception if state is not unsent or opened, or if the send() flag is set. -

    When set: throws an InvalidAccessError exception if the - synchronous flag is set and - entry settings object's - global object is a Window - object. @@ -772,12 +763,6 @@

    4.5.4 The throw an InvalidStateError exception. -
  • If entry settings object's - global object is a Window - object and the synchronous flag is set, - throw an - InvalidAccessError exception. -

  • Set the withCredentials attribute's value to the given value. diff --git a/Overview.src.html b/Overview.src.html index ddbd459..3f1d594 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -441,14 +441,11 @@

    The open() method

    if method is a case-insensitive match for `CONNECT`, `TRACE` or `TRACK`. -

    Throws an InvalidAccessError - exception if async is false, +

    Throws an InvalidAccessError exception if async is false, entry settings object's global object is a Window - object, and either the timeout attribute is not - zero, the withCredentials attribute is true, - or the responseType attribute is not the empty - string. + object, and the timeout attribute is not zero or the + responseType attribute is not the empty string.

    Synchronous XMLHttpRequest @@ -517,10 +514,9 @@

    The open() method

  • If async is false, entry settings object's global object is a Window - object, and either the timeout attribute value is not - zero, the withCredentials attribute value is - true, or the responseType attribute value is not - the empty string, throw an + object, and the timeout attribute value is not zero + or the responseType attribute value is not the + empty string, then throw an InvalidAccessError exception.

  • @@ -698,11 +694,6 @@

    The withCredentials attribute

    InvalidStateError exception if state is not unsent or opened, or if the send() flag is set. -

    When set: throws an InvalidAccessError exception if the - synchronous flag is set and - entry settings object's - global object is a Window - object. @@ -724,12 +715,6 @@

    The withCredentials attribute

    throw an InvalidStateError exception. -
  • If entry settings object's - global object is a Window - object and the synchronous flag is set, - throw an - InvalidAccessError exception. -

  • Set the withCredentials attribute's value to the given value.