Closed Bug 1294029 Opened 8 years ago Closed 7 months ago

window.open makes code called by setTimeout to run in parallel

Categories

(Core :: DOM: Core & HTML, defect, P3)

48 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: alex.lixandru, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160726073904

Steps to reproduce:


1. window.open code executed through a handler function, which is called on a DOM event (click)
2. some arbitrary code executed through the same handler function, which is called repetitively by setTimeout (at very short intervals)

See sample code at http://jsfiddle.net/d9rHQ/3/
Handler function in the sample code is `entry0`




Actual results:

the handler function is executed in parallel

in the specified fiddle, the console outputs a lot of lines - because the calls were executed in parallel the variable `entryDepth` is not 0 anymore


Expected results:

all executions of handler function should be sequential - this would make `entryDepth` always be 0 and would yield no console output

Chrome, Internet Explorer and Edge yields to console output whatsoever.
Debuggin Info:

Nume: Firefox
Versiune: 48.0
Identificator versiune: 20160726073904
Sursă de actualizare: release
Agent de utilizator: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
SO: Windows_NT 10.0 x86
Ferestre multiproces: 0/10 (Disabled)
Safe mode: false
QA Whiteboard: [bugday-20160815]
Component: Untriaged → DOM: Events
Product: Firefox → Core
Component: DOM: Events → DOM
Hi Bevis, are you interested in taking a look here?
Flags: needinfo?(btseng)
I reproduced this issue on FF48, but I didn't see this happening on Nightly 51.
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #4)
> I reproduced this issue on FF48, but I didn't see this happening on Nightly
> 51.
After further testing, this can be reproduced from FF48 to FF51 with e10s disabled. :)
(In reply to Bevis Tseng[:bevistseng][:btseng] from comment #5)
> (In reply to Hsin-Yi Tsai [:hsinyi] from comment #4)
> > I reproduced this issue on FF48, but I didn't see this happening on Nightly
> > 51.
> After further testing, this can be reproduced from FF48 to FF51 with e10s
> disabled. :)

Oh, right, e10s ... :)
sorry, still don't have bandwidth to look into this one...
(In reply to Bevis Tseng[:bevistseng][:btseng] from comment #7)
> sorry, still don't have bandwidth to look into this one...

Let's me explore other options :)
Flags: needinfo?(btseng) → needinfo?(htsai)
Flags: needinfo?(htsai)
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3

The attached repro step here doesn't seem to cause problem anymore. Per comment #5 it was seemingly pre-e10s specific issue.

Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.