I have a script:

//==UserScript==
function wrC(){
window2 = window.open("","New window","width=250,height=300,scrollbars=yes");
window2.document.writeln('test');
}
addEvent( window, "load", wrC());

the result is an empty popup window and error message:

Uncaught TypeError: Cannot read property 'document' of
undefined

It is working with other browsers and Chrome 3.
Is this my fault or Chrome problem?