Closed
Bug 286609
Opened 20 years ago
Closed 20 years ago
javascript:close() does not work, window won´t close.
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: cmurguias, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.7.6) Gecko/20050226 Firefox/1.0.1 I'm developing a web site, and included an image in a table to act as a close button. I used href="javascritp:close()" to close the window and it works perfect on IE6 SP2, but on Firefox I get a message on the javascritp console thar reads "Scripts can´t close windows not opened by script". Reproducible: Always Steps to Reproduce: 1. Created slices from an image in Adobe ImageReady CS, saved them as HTML w/images. 2. Loaded the HTML file in Adobe GoLive CS, and selected the image in the cell, asigning a "javascritp:close()" as a link. 3. Save the HTML file do disk. 4. Loading the HTML file into Firefox, when you click on the close image, it won't close the window. 5. Loading the HTML file into IE6, click on the close image, and the window closes. Actual Results: The console gave the message stated avobe, and the window didn't close. Expected Results: On click on the close image, the browswer window should have closed. about:buildconfig Build platform target i686-pc-cygwin Build tools Compiler Version Compiler flags $(CYGWIN_WRAPPER) cl 12.00.8804 -TC -nologo -W3 -nologo -Gy -Fd$(PDBFILE) $(CYGWIN_WRAPPER) cl 12.00.8804 -TP -nologo -W3 -nologo -Gy -Fd$(PDBFILE) Configure arguments --disable-ldap --disable-mailnews --enable-extensions=cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,gnomevfs,negotiateauth --enable-crypto --disable-composer --enable-single-profile --disable-profilesharing --enable-optimize --disable-debug --disable-tests --enable-static --disable-shared --enable-official-branding
Comment 1•20 years ago
|
||
This is by design. See Bug 32571, INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: javascritp:close() does not work, window won´t close. → javascript:close() does not work, window won´t close.
You need to log in
before you can comment on or make changes to this bug.
Description
•