Re: [chromium-html5] LocalStorage inside Worker

2011/1/7 Jonas Sicking <>:
> On Thu, Jan 6, 2011 at 7:14 PM, Boris Zbarsky <> 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)?
> I'm fairly sure it happens both in Chrome and IE. One way it can happen is:
> Tab 1 opens with a page from site A
> Tab 2 opens with a page from site B
> The page in tab 2 contains an iframe with a page from site A.
> But I'm not even sure that Chrome and IE makes an effort to use the
> same process if you open two tabs for the same site.

It seemed that Chrome doesn't interleave the JS when the same page is
opened in multiple tabs.

Try running this script in multiple tabs and monitor the console output:

In Chrome console log, you will see many "FAIL", but not in Firefox.

So does this mean localStorage in Chrome is broken? or this is an
intended behavior?

Felix Halim

Received on Thursday, 27 January 2011 08:39:52 UTC