Closed
Bug 180826
Opened 22 years ago
Closed 22 years ago
Javascript is not showing Popup WIndow ..
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 166442
People
(Reporter: imateene, Assigned: jst)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016
Here is snippets of code from Web Page:
1. tried to view summary of my itinerary by spawning a Poup Window.
<a href="javascript:openWindow('popup', '/quote_02/terms/quote_terms.jsp',
'width=425,height=300,resizable,scrollbars=yes');"><img
src="/images/res_rentalQualReq.gif" width="135" height="30" border="0"
alt="Rental Qualifications and Requirements"></a>
2. JavaScript OpenWindow code ..
<head>
<title>Untitled</title>
<script language=javascript>
<!--
self.name = 'hertz_popup';
var winIsOpen = new Object;
var isIE3 = (navigator.appVersion.charAt(0) == '2' &&
navigator.appVersion.indexOf('AOL 3.0') == -1);
function openWindow(name, url, attributes)
{ var w = null;
var wait = 0;
var d = new Date;
if (winIsOpen[name] && !window.focus)
{
wait = 500;
window.open('', name, attributes).close();
winIsOpen[name] = false;
}
setTimeout("w = window.open('" + url + "', '" + name + "', '" + attributes
+"')", wait);
winIsOpen[name] = true;
}
//-->
</script>
Reproducible: Always
Steps to Reproduce:
1. Go to www.hertz.com and make reservation
2. After confirmation of Reservation select link to view Popup Window that show
summary screen.
3. Reservation can be cancelled on web site ..
4. IE is able to show the Popup Window.
Actual Results:
No Popup Window was created to show me a summary of my itinerary
Expected Results:
Popup window should have been displayed showing my itinerary ..
The Frame source appears to have IE specific code but I couldn't discern
anything specific to IE that should have prevented the display of window
although I could be wrong ..
Comment 1•22 years ago
|
||
Are you blocking popup windows? The way that page opens the window from a
timeout makes it look just like an advertising popup, so we block it.
Reporter | ||
Comment 2•22 years ago
|
||
Yes I am blocking Popup Windows, when I enable Poup windows the window Popups as
expected ..
Comment 3•22 years ago
|
||
Right. Ccing danm; not really sure what we can do here...
Irumbo: This thing you're doing, opening a window in a timeout; it's one of
several ways that obnoxious website designers open windows that you didn't ask
for. So that's one of the things that popup blocking blocks. I suppose we should
document on mozilla.org exactly what doesn't work when you activate popup blocking.
Mozilla 1.2 still has all-or-nothing popup blocking. Future versions will allow
the user to block popups by website, so you could leave blocking on in general
but unblock individual sites that use suspicious-looking window opening
techniques legitimately. I'm going to call this bug a duplicate of the bug to
implement site-by-site blocking.
*** This bug has been marked as a duplicate of 166442 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•