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)

x86
Windows 95
defect

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>
Assignee: vidur → joki
*** Bug 8986 has been marked as a duplicate of this bug. ***
Whiteboard: [MAKINGTEST] Antti.Nayha@oulu.fi
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.
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.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
This works for me on NT. I don't believe these would be different so i'm marking worksforme.
Status: RESOLVED → VERIFIED
Now its working fine. Tested with 1999-11-04-09. Marking verified.
I am working on Windows NT with the most recent nightly build. window.close() is not doing anything for me.
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.
Attached file Testcase for 0.9.8/OS2 (deleted) —
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">
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.

Attachment

General

Creator:
Created:
Updated:
Size: