MozillaZine

Yahoo Mail and Firefox

User Help for Mozilla Firefox
(Anonymous/guest posting allowed)
neska2
 
Posts: 8
Joined: September 29th, 2006, 9:41 am
January 31st, 2007, 10:12 pm

Post Posted January 31st, 2007, 10:12 pm

Using Firefox 2. Problem at different computers and only when using Firefox.
And the problem is some mails appear blank, some have images, some is only text (I know these when I check them with another browser).
Problem appeared a couple of days ago, no new extension at that time.
Any suggestions??
Thanks

jscher2000

User avatar
 
Posts: 8152
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
January 31st, 2007, 11:22 pm

Post Posted January 31st, 2007, 11:22 pm


neska2
 
Posts: 8
Joined: September 29th, 2006, 9:41 am
February 1st, 2007, 6:15 pm

Post Posted February 1st, 2007, 6:15 pm

Nop, it doesn't help since it is not only images that I don't see, there's nothing on the body of the e-mail just a blank space. It doesn't happen to all messages and it does happen to messages that only contain text.
I have disabled all my extension and the problem remains.
I'm seriously thinking about quiting Firefox, too much time wasted trying to solve bugs. :-(

sincewednesday
 
Posts: 10
Joined: March 21st, 2004, 6:16 pm
February 1st, 2007, 7:47 pm

Post Posted February 1st, 2007, 7:47 pm

I dug into this a little:

Yahoo puts the email in a DIV with ID "message" and STYLE "visibility: hidden". The premise is that they "hide" your email until all of the images load, when they change the visibility to visible. The problem occurs when the email contains a bad IMG tag (e.g., the email link an image that's not found).

They get the DIV here:
Code: Select all
var msg = document.getElementById( "message" );
if ( msg && "undefined" != typeof msg ) { rmvScroll( msg ); }

function rmvScroll( msg )
{       
        if ( callCount <  10 && ! imgsDone( msg ) ) { 
                setTimeout( function() { rmvScroll( msg ); }, 300 );
                return;
        }
        // ....
}

function imgsDone( msg )        // for Firefox, we need to scan for images that haven't set their width yet
{
        var imgList = msg.getElementsByTagName( "IMG" );
        var len = ((imgList == null)? 0 : imgList.length);
        for ( var i = 0; i < len; ++i ) {
                var theImg = imgList[i];

                // PROBLEM IS HERE:
                if ( "undefined" != typeof theImg.naturalWidth && theImg.naturalWidth == 0 ) {
                        return false;
                }
        }
        return true;
}


The problem is that Firefox 2 sets theImg.naturalWidth = 0 when an image can't be found, so imgsDone contiuously returns false. Yahoo Mail never thinks the images are done loading, so your message is never displayed.

Since Yahoo's comment indicates that the code is specific to Firefox, I think Yahoo should fix this bug -- although I'm not sure if this behavior is different in Firefox 1.x.

jscher2000

User avatar
 
Posts: 8152
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
February 2nd, 2007, 12:29 am

Post Posted February 2nd, 2007, 12:29 am

Hmm, sorry, seems to be a different problem. See this thread, for x-reference: http://forums.mozillazine.org/viewtopic.php?t=516183

sincewednesday
 
Posts: 10
Joined: March 21st, 2004, 6:16 pm
February 2nd, 2007, 6:01 am

Post Posted February 2nd, 2007, 6:01 am

I've reported the bug to Yahoo, and I suggest others do the same.

The code they use is to determine if image loading is successful, but they make the faulty assumption that all image loading will be successful. HTML email can be generated with missing or bad images, which causes their entire javascript to fail. The funny thing is that this code is completely unnecessary -- why are they hiding our emails until it completely loads. (I suspect they want you to notice their ads.)

I threw together a quick Greasemonkey script that fixes the Yahoo mail problem. Assuming you have Greasemonkey extension installed, save this file as ymail.user.js and load it in your browser (e.g., file://localhost/c:/documents and settings/myname/Desktop/ymail.user.js).

[EDIT: You can install it from userscripts.org]

Code: Select all
// ==UserScript==
// @name           Yahoo Mail Fix
// @namespace      http://mywebsite.com/myscripts
// @description    Fix non-displaying Yahoo mail
// @include        http://*.mail.yahoo.com/*
// ==/UserScript==

var msg = document.getElementById("message");
msg.style.visibility = "visible";
msg.style.overflow = "hidden";


By the way, I cannot confirm that this is the same story as the other thread, jscher2000, as this affects "classic" Yahoo mail.

neska2
 
Posts: 8
Joined: September 29th, 2006, 9:41 am
February 2nd, 2007, 11:19 am

Post Posted February 2nd, 2007, 11:19 am

Using classic Yahoo Mail, No Scrip installed on one computers but not on another and both have the same problem so it's not No Script.
I'll try the Greasemonkey and see if Yahoo has anything to say about it.

Guest
Guest
 
February 2nd, 2007, 11:57 am

Post Posted February 2nd, 2007, 11:57 am

I'm having the same problem. Message body will not open on some messages

badger44
 
Posts: 4
Joined: April 3rd, 2005, 6:02 pm
Location: East Bay, CA
February 2nd, 2007, 4:09 pm

Post Posted February 2nd, 2007, 4:09 pm

Me to. Have also sent Yahoo a message. As others have done, verified that it was Firefox specific. Works in I.E. but.....

jscher2000

User avatar
 
Posts: 8152
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
February 2nd, 2007, 4:13 pm

Post Posted February 2nd, 2007, 4:13 pm

sincewednesday wrote:By the way, I cannot confirm that this is the same story as the other thread, jscher2000, as this affects "classic" Yahoo mail.

In the other case, the message is there but the height is too short: the div is "visible" but most of the content his hidden and of course there are no scroll bars. Perhaps we should combine scripts? This would be the bookmarklet-ized version for "classic" mail (for those not interested in installing GreaseMonkey):

The code:
Code: Select all
javascript:var msg=document.getElementById(%22message%22); msg.style.visibility=%22visible%22; msg.style.height=msg.scrollHeight+%22px%22; msg.style.overflow=%22hidden%22; void 0;

Note: that should all be one line, reconstruct as needed.

To make this readily available:
  1. Select and copy the above bookmarklet code to the clipboard
  2. Right-click the bookmarks toolbar and choose New Bookmark
    If the Bookmarks toolbar is not already displayed, you can display it by right-clicking after Help on the menu bar and choosing it from the little pop-up
  3. On the Name line, enter something like Y!-Fix
  4. On the Location line, paste the above script
  5. Click OK to add the bookmark (or Cancel to fuggedaboudit)
Now when you see a Yahoo! message that has been shortened, click the new button for instant relief.

petey_c
 
Posts: 3
Joined: October 24th, 2006, 4:01 pm
February 2nd, 2007, 5:40 pm

Post Posted February 2nd, 2007, 5:40 pm

I've noticed similar problems with Yahoo, as well as, Optimum online. The most recent example was a notification that a web page subscription had expired (sent to my optonline.net email). When I opened the email, the text had been enclosed in a "scroll-able" box. As with the others, I didn't have this problem with an earlier version of FF, nor does it occur when using IE6.X. I've notified Yahoo, but seem to feel that this is a FF issue. Waiting for a more definite fix......

fnp3
 
Posts: 38
Joined: April 21st, 2005, 9:41 pm
Location: San Diego CA USA
February 2nd, 2007, 5:44 pm

Post Posted February 2nd, 2007, 5:44 pm

jscher2000 - Dude that is freakin' amazing! It Works! Many thanks!

..

neska2
 
Posts: 8
Joined: September 29th, 2006, 9:41 am
February 2nd, 2007, 7:12 pm

Post Posted February 2nd, 2007, 7:12 pm

I installed the Greasemonkey script and it works!!
I'll check tomorrow on the other PC I use.
Thanks a lot!!! :-)

esman01
 
Posts: 4
Joined: November 7th, 2005, 9:39 am
February 2nd, 2007, 7:48 pm

Post Posted February 2nd, 2007, 7:48 pm

I am having this problem also. Unable to view pictures / images in Yahoo! mail. I have e-mailed Yahoo!, and have asked that Yahoo! and Mozilla Firefox developers confer and get this issue resolved. I would prefer to not have to use IE to check my Yahoo! e-mail.

weldor
 
Posts: 167
Joined: February 21st, 2004, 11:52 am
February 2nd, 2007, 8:18 pm

Post Posted February 2nd, 2007, 8:18 pm

Thanks also. That fixed it!

Post a reply

Quote Selected

Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
 

Return to Firefox Support


Who is online

Users browsing this forum: graham.tapper, RobertJ, xed and 27 guests