Closed Bug 43397 Opened 24 years ago Closed 24 years ago

Main window blanked on opening popup

Categories

(Core :: DOM: Navigation, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: bryner, Assigned: adamlock)

References

()

Details

(Keywords: embed)

To see this, go to http://cnn.com, and click the "View Results" link under the
poll.  A popup window with the results appears, but the main window blanks. 
Also, the main window's URL bar has the javascript: URL in it.

Guessing Docshell for the component but not sure.

Reproduced on today's Linux and Windows builds.
The actual javascript executed is:

// this will open a new window, submit the poll form, and send the results to 
the popup window
function pollSubPop (earl, name, widgets, specialsURL) 
{
	host = location.hostname;
	if (host.indexOf('customnews') != -1) 
	{
		var url = 'http://customnews.cnn.com' + earl;
	}
	else
	{
		var url = earl;
	}
	popupWin = window.open(url, name, widgets);
	popupWin.opener.top.name = "opener";
	popupWin.focus();
}
Further analysis suggests the problem is the javascript: href on the link. 
Docshell probably doesn't realise that it shouldn't try to browse to it and ends 
up displaying a blank page. It's sort of related to bug 36081.
Keywords: embed
Keywords: nsbeta3
I can't repro this using today's build.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
verified works in current build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.