W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2014

Re: {Spam?} Re: [xhr]

From: Arthur Barstow <art.barstow@gmail.com>
Date: Wed, 03 Sep 2014 08:14:26 -0400
Message-ID: <54070622.8090908@gmail.com>
To: Brendan Eich <brendan@secure.meer.net>, chaals@yandex-team.ru, Anne van Kesteren <annevk@annevk.nl>, Robert Hanson <hansonr@stolaf.edu>
CC: WebApps WG <public-webapps@w3.org>
On 9/2/14 9:10 PM, Brendan Eich wrote:
> chaals@yandex-team.ru wrote:
>>> Sorry. As with showModalDialog() we would really like to make this
>>> >  feature disappear. I realize this makes some forms of code 
>>> generation
>>> >  harder, but hopefully you can find a way around that in time.
>>
>> Perhaps we should set some sense of expectation about*when*  it won't 
>> work. Different parts of the Web move on different timelines.
>
> Right.

Given this, it seems like the current Note should indeed be updated to 
reflect this reality:

[[
<http://xhr.spec.whatwg.org/#the-open()-method>
<https://dvcs.w3.org/hg/xhr/raw-file/default/xhr-1/Overview.html#the-open()-method>

Warning: Developers must not pass false for the async argument when the 
JavaScript global environment is a document environment as it has 
detrimental effects to the end user's experience. User agents are 
strongly encouraged to warn about such usage in developer tools and may 
experiment with throwing an "InvalidAccessError" exception when it 
occurs so the feature can eventually be removed from the platform.
]]

Is there a good (enuf) precedence on the deprecation warning that can be 
reuse? If not, how about something like:

[[
Warning: synchronous XHR is in the process of being deprecated i.e. it 
will eventually be  removed from the Web platform. As such, developers 
must not pass false for the async argument when the JavaScript global 
environment is a document environment as it has detrimental effects to 
the end user's experience. User agents are strongly encouraged to warn 
about such usage in developer tools and the tool may experiment with 
throwing an "InvalidAccessError" exception.
]]

Robert, Anne, All, WDYT?

-AB
Received on Wednesday, 3 September 2014 12:14:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:26 UTC