Closed Bug 233560 Opened 22 years ago Closed 17 years ago

Frame-based HTTP mail application, not redisplaying title bar

Categories

(Tech Evangelism Graveyard :: English US, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: shawn, Unassigned)

References

()

Details

Attachments

(2 files)

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 This mail application is frame based, and when new mail arrives, should redisplay the title bar with "1 new message...etc". It has always worked fine in IE, but hasn't worked in any build of Firebird or Firefox. This is a tough one to test. If someone wants to test thoroughly, contact me and I will give you access to a generic mail account. It's most likely using some MS JScript to update the title bar, but I'd guess other framed web applications, may have the same problem. Reproducible: Always Steps to Reproduce: 1. Login to mail account. http://mail.javadevelop.com (contact me for login and password). 2. Multi-frame Inbox will load and title bar will display "WebMail - myname@javadevelop.com" 3. Every 5 minutes an auto-refresh is sent to the server. 4. If new mail arrives, title bar SHOULD redisplay as "WebMail - 1 new message - myname@javadevelop.com 5. Step 4 works fine in IE 5 and above, but not in any build or Firebird or Firefox. Actual Results: Title bar does not update. Expected Results: Title bar should update displaying number of new messages, and a system ding.
Do you see any Javascript errors (Tools | JavaScript Console)?
No JavaScript errors displayed in the JavaScript Console.
Was this tested with another browser than Firefox or IE? Couldn't this be an error in the application? PS looks like the site hasn't been updated in a while...
This page has jscript to change the the frame set page's title. It has been designed to only work for IE. This code was found in in "print.25508.cgi" It look like this: if(newMsgCount>=0){ // rewriting frameset title only works with IE var x="" if (navigator.userAgent.indexOf('MSIE') >= 0){ x+="WebMail - " + newMsgCount if(newMsgCount!=1){ x+=' ' + X.NewMsgs }else{ x+=' ' + X.NewMsg } x+=" - " }else{ x+="WebMail - " } x+="garyvdm@javadevelop.com" if(top.document.domain==parent.document.domain) top.document.title = x }
It looks like it's only making the title string for IE, but it tries to set the frameset title in any browser. Gary, can you try using the user agent switcher to identify as IE and see what happens? This is probably Tech Evang, but I'd like to see if we actually *can* retitle a frameset.
Attached file Testcase
It is definatly possable to set the frameset title. The devloper of this page felt that this pice of code would only work in IE. x+="WebMail - " + newMsgCount if(newMsgCount!=1){ x+=' ' + X.NewMsgs }else{ x+=' ' + X.NewMsg } x+=" - " I'm not sure why though. If you guys have access to the code, try removing the if (navigator.userAgent.indexOf('MSIE') >= 0){ and }else{ x+="WebMail - " } and see if it works. These pages have good information for devloping for Mozilla: http://www.mozilla.org/docs/web-developer/ http://www.mozilla.org/docs/web-developer/upgrade_2.html You can also ask questions on the newsgroups: netscape.public.mozilla (http://groups.google.com/groups?q=netscape.public.mozilla) netscape.public.mozilla.dom (http://groups.google.com/groups?group=netscape.public.mozilla.dom) Please can we close this bug. It is not a problem with Firefox/Mozilla.
Moving to Tech Evangelism and confirming.
Assignee: firefox → english-us
Status: UNCONFIRMED → NEW
Component: General → English US
Ever confirmed: true
Product: Firefox → Tech Evangelism
QA Contact: english-us
When I go the the URL above I get a login screen... isn't this normal behaviour? Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Thomas, this is about the app setting the title. Shawn, is this still a problem?
no response
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: