Closed Bug 826658 Opened 12 years ago Closed 12 years ago

Odd behaviour Object.getOwnPropertyNames(window)

Categories

(Firefox :: Untriaged, defect)

17 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 807222

People

(Reporter: timotej.tomandl, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121128204232

Steps to reproduce:

I was runnig this code

document.write(Object.getOwnPropertyNames(window));

if(window.XMLHttpRequest)
  {document.write("TRUE");}
if(window.WebSocket){document.write("TRUE");}
if(window.Worker){document.write("TRUE");}
  document.write("<br/>"); 

document.write(Object.getOwnPropertyNames(window));


Actual results:

First call haven't returned any of tested objects, but second one have returned plus EventTarget,XMLHttpRequest,WebSocket,Worker,Event,WorkerEvent,WorkerMessageEvent,WorkerErrorEvent,ProgressEvent


Expected results:

I think everything should be returned on first call
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.