Closed Bug 145014 Opened 23 years ago Closed 23 years ago

image window remains empty

Categories

(SeaMonkey :: General, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: arjan.van.der.meer, Assigned: Matti)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051006 If you click on some images or on a card name, a small window, no menu bar, should open to display the card. Mozilla opens the window, but it remains blank. Reproducible: Always Steps to Reproduce: 1.click on card or red card title (in articles) 2.window opens 3. Actual Results: an empty window Expected Results: display the card image and the standard borders in the new window it worked corectly in mozilla 0.98??.
Browser, not engine ---> Browser-General for now
Assignee: rogerl → Matti
Component: JavaScript Engine → Browser-General
QA Contact: pschwartau → imajes-qa
This site WORKSFORME using Mozilla trunk binary 20020612xx WinNT. I click on the "Card of the Day" (left side of site), a new window comes up, and the image loads successfully in the new window. Today's card of the day was contained this anchor element: <a href="javascript:autoCardWindow('Desert')"> Here is the function involved: // pop up window for <autocard> tag - with drop shadows function autoCardWindow(cardname) { agent = navigator.userAgent; windowName = "Sitelet"; params = ""; params += "toolbar=0,"; params += "location=0,"; params += "directories=0,"; params += "status=0,"; params += "menubar=0,"; params += "scrollbars=0,"; params += "resizable=0,"; params += "width=245,"; params += "height=330"; win = window.open("/magic/autocard.asp?name="+cardname, windowName , params); if (!win.opener) win.opener = window; } NOTE: I see that the site is using outdated Macromedia template code: function MM_findObj(n, d){ //v3.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; } Version 3.0 of this function does not work in Mozilla, because it assumes that the browser supports either |document.all| (as in IE) or |document.layers|(as in NN4.7). Neither is supported in Mozilla. Version 4.0 of this function is necessary for Mozilla - Arjan: 1. Does this site still fail with the latest Mozilla build? 2. If so, do you get any errors in Tools > Web Development > JavaScript Console? (be sure to clear it of any previous errors first) 3. What happens if you try a new Mozilla profile? You can do this by launching Mozilla from a console window as follows: [(path to Mozilla)] ./mozilla -profilemanager
wfm with win2k build 20020724.. -> wfm
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.