Closed Bug 52238 Opened 25 years ago Closed 25 years ago

window handle returned by open/openDialog does not provide a handle to a valid js context.

Categories

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

x86
Windows 2000
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: bugs, Assigned: vidur)

Details

Attachments

(2 files)

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!
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Not a bug. Mozilla handles it correctly. Marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: