Closed
Bug 5444
Opened 25 years ago
Closed 25 years ago
[4.xP] Window.close() does not work.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: desale, Assigned: joki)
References
Details
(Whiteboard: [TESTCASE] window.close() needs to be implemented.)
Attachments
(2 files)
It might be related to bug 5433 [Its totally related to different method], but
since its not crashing the application, then I thought of reporting seperate
bug.
Product: Seamonkey [Apprunner as well as viewer]
Build: 04-22-17.
OS: Win-95.
Steps to Reproduce:
1] Please copy the code I'm providing.
2] Save it as HTML file on your local machine.
3] Open this HTML file in viewer as well as apprunner.
4] There you will find on button called "Close This Window". click this button.
Expected Results : Application should close the window.
Actual Results: Application does not close the window.
Code:
<HTML>
<HEAD><TITLE>Window.Close()</TITLE></HEAD>
<BODY>
<form>
<H4>This Page will test whether window.close() method works or not.<Br>
After clicking the button, browser should close the window<H4>
<input type="button" value="Close This Window" onClick="self.close()">
</form>
</BODY>
</HTML>
Updated•25 years ago
|
Assignee: vidur → joki
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] Antti.Nayha@oulu.fi
Comment 2•25 years ago
|
||
Updated•25 years ago
|
Summary: Window.close() does not work. → [4.xP] Window.close() does not work.
Whiteboard: [MAKINGTEST] Antti.Nayha@oulu.fi → [TESTCASE] window.close() needs to be implemented.
Comment 3•25 years ago
|
||
Verified the original test case, simplified it and modified it slightly to
make it validate as HTML 4.0. The result is attached.
Verified the original bug report on the 1999-06-29-09-M8 build, both apprunner and viewer.
Also added the [4.xP] identifier.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 4•25 years ago
|
||
This works for me on NT. I don't believe these would be different so i'm
marking worksforme.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•25 years ago
|
||
Now its working fine. Tested with 1999-11-04-09. Marking verified.
Comment 6•25 years ago
|
||
I am working on Windows NT with the most recent nightly build. window.close()
is not doing anything for me.
Comment 7•25 years ago
|
||
Further comments...self.close() and window.close() are causing the following
javascript error in my page. On a side note, the call that I make AFTER the
window.close() still works! It goes right past the error which I find
unusual... Here is the js error text:
JavaScript Error: line 0, column 0: uncaught exception: [Exception... "Object is
of wrong type" code: "1002" nsresult: "0x805303ea(NS_ERROR_DOM_WRONG_TYPE_ERR)"
location: (myURL)
"window.close();" is the exact js command that I executed. I have also tried
"self.close();" with the same result. The window does not close, javascript
keeps executing, no other problems are created.
Comment 8•23 years ago
|
||
In 0.9.8, a form button with window.close() works as follows:
1st click: text flow in the resized window changes
2nd click: window actually closed
The attachment is an include file invoked with a php-driven form processing
script. The following code is used to open the window with PriceResult.inc:
<FORM ACTION="<?php print $PHP_SELF ?>" METHOD=POST TARGET="StatusWindow"
onSubmit="window.open('','StatusWindow','dependent,height=120,width=200,resizable=no,scrollbars=no,statusbar=no,locationbar=no,personalbar=no,menubar=no,toolbar=no');return
true">
Comment 9•23 years ago
|
||
The testcase included in attachment 626 [details], however, works fine
You need to log in
before you can comment on or make changes to this bug.
Description
•