Closed Bug 61026 Opened 24 years ago Closed 24 years ago

Javascript window.open command not functioning

Categories

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

x86
Windows 98
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: w4azj, Assigned: jst)

References

()

Details

Several sites that I visit use javascript to pop open windows, usually for
displaying larger versions of thumbnail pics.

Moz 2000112020 (and 111404 - the only versions I've been testing) refuse to
display/open these new windows.  NS 4.7x and IE 5.x work fine with them.

Javascript console report:

	Error: focusedWindow.location has no properties
	Source file: chrome://navigator/content/navigator.js
 	Line: 117	Column: 0

I've also seen:
	Error: newWindow.focus is not a function
	Source file: http://www.sierrastudios.com/windowstate.js
	Line: 24	Column: 0
Confirming on WinNT with build 2000110509 MN6. However, no problems with
a Linux build of the same date and type: the new windows all pop up.


Here is the author's function "openWindow()" : 


function openWindow(url) 
{
newWindow=window.open(url,"inset",'toolbar=no,location=no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=375');
}



NOTE: the HTML works on WinNT if you save the file locally 
      and add a base tag as follows: 

      <BASE HREF="http://sierrastudios.com/games/tribes2/"></BASE>


So perhaps it has something to do with resolving relative paths (on Windows)? 
Anyway, this is browser, not engine. Reassigning to DOM Level 0. This may be
a dup of a recent bug, but I can't find which one...
Assignee: rogerl → jst
Status: UNCONFIRMED → NEW
Component: Javascript Engine → DOM Level 0
Ever confirmed: true
QA Contact: pschwartau → desale
Changing summary slightly to better reflect bug report.
Summary: Javascript openWindow() command not functioning → Javascript window.open command not functioning
This appears to be fixed as of Moz 2000112420, for Win98SE.

MikeW
I may have spoken too soon.   I've got the Java2 Plugin for Netscape running,
and it may actually be resolving the Javascript function, instead of the Moz
native Javascript handler.  
worksforme linux build 2000120508.  The "focusedWindow.location has no
properties" error is caused by bug 56063.  Reporter, do you still see the
problem with a recent build?
WORKSFORME.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.