Now, I'm not sure whether or not this is supposed to work or not, but it seems nice and useful: the handle returned by open()/openDialog() is of type [object Window], but does not allow access to the functions and variables defined in the global scope of the opened window. Steps to reproduce: 1) Attached are two files, test1.html and test2.html. Place both in the same folder, and load test1.html. 2) test1.html opens a new window when the form button is clicked, and attempts to access a global variable in that new window document called someString by hWindow.someString. This returns 'undefined'. The results are displayed in an alert box. Vidur, jst said this could have been a side effect of the split of DOMWindow. He said that either you or he would be best to look at this, if it is indeed a bug (as I said, not sure if this is supposed to work, but it seems useful).
ok, jst tried this, and after discussion we decided this is not a bug. resolving invalid. sorry for the spam!
Not a bug. Mozilla handles it correctly. Marking verified.