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)
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).
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
| Reporter | ||
Comment 3•25 years ago
|
||
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
Comment 4•25 years ago
|
||
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.
Description
•