W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [chromium-html5] LocalStorage inside Worker

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 6 Jan 2011 23:02:25 -0500
Message-ID: <AANLkTi=AxVS1TWw51HQpsR+gm2fEypqdNHp=FehsS5Xo@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: João Eiras <joao.eiras@gmail.com>, public-webapps WG <public-webapps@w3.org>
On Thu, Jan 6, 2011 at 10:14 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 1/6/11 5:25 PM, João Eiras wrote:
>>
>> Not different from two different tabs/windows running the same code.
>
> In which current browsers do same-origin tabs/windows end up interleaving
> their JS (that is, one runs JS before the other has returned to the event
> loop)?

FWIW, this is the code (attached) I used to verify this happens in
Chrome; load it in two tabs, and the "->" and "<-" lines will no
longer always show the same value, as the spec tries to guarantee.

As far as I know this only happens in Chrome, since it runs scripts in
their own thread.  I can only hope that all other major browsers will
do that eventually, finally putting an end to the "which tab's scripts
are causing my entire browser UI to be choppy" game.

-- 
Glenn Maynard

Received on Friday, 7 January 2011 04:02:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:15 UTC