Page 2 of 3

Re: Yahoo mail

Posted: Fri Jul 24, 2009 7:30 pm
by Mc
That's what HttpFox shows:

Sent Received Meth. Result Type URL
442 35402 GET 200 application/pdf (NS_ERROR_ABORT) http://www.xxx/yyy.pdf
442 0 GET (Error) NS_ERROR_DOCUMENT_NOT_CACHED http://www.xxx/yyy.pdf
485 35402 GET 200 application/pdf http://www.xxx/yyy.pdf

And yes, the plugin works.
I tried it with two different files.

Re: Yahoo mail

Posted: Fri Jul 24, 2009 7:36 pm
by Mc
Sorry, the unfinished preview was submitted

Re: Yahoo mail

Posted: Fri Jul 24, 2009 7:55 pm
by Mc
I should explain, that first load isn't aborted by NoScript even if it's a 1 MB file. And I'm on dial-in, where the download lasts for ever...

Re: Yahoo mail

Posted: Fri Jul 24, 2009 9:27 pm
by Giorgio Maone
Still
Mc wrote:And yes, the plugin works.
How do you verify this? I disabled placeholders, and all I get is a white page.
Are you getting anything different?
Mc wrote:That's what HttpFox shows
HttpFox lies :D
When a request is aborted before the response data starts to be processed (like it happens for late post-headers blocking in NoScript), it reports as "Received" the whole byte count declared in the "Content-length" header, rather than the bytes actually received, because it had no chance to actually hook a progress listener yet.
If you sniff the real TCP traffic with wireshark or another packet sniffer, you'll notice that no more than 32KB (Gecko's read buffer) are actually read, i.e. the bare minimum needed to read the HTTP header and guess what kind of content we're going to handle (or kill, in NoScript's case).
Even in HttpFox, you can easily tell the difference between an aborted and a successful request in terms of bytes transferred by observing the byte counter rolling on this 2 megabytes PDF.
Or you can just have fun with this fake pdf, which according to HttpFox is 48KB when whitelisted and 2 Gigabytes when aborted :P

Re: Yahoo mail

Posted: Sat Jul 25, 2009 2:53 am
by Mc
Oh dear, weird.
Yesterday it worked like I told you, even after several restarts of Fx. My eyes didn't lie when I saw it loading 1MB before the placeholder came up.
But today after a system restart it works like it should. The placeholder comes up at once. And yes, HttpFox lies :-)

Re: Yahoo mail

Posted: Tue Jul 28, 2009 7:43 am
by nagan
1.9.7
Still this yahoo mail pdf download is unresolved.I have to get in only through the context >> blocked objects. I hope this thing is sorted out soon. :(

Re: Yahoo mail

Posted: Tue Jul 28, 2009 8:52 pm
by dhouwn
nagan wrote:I have to get in only through the context >> blocked objects.
Are you blocking FRAMES/IFRAMES?

Re: Yahoo mail

Posted: Wed Jul 29, 2009 11:52 am
by nagan
dhouwn wrote:
nagan wrote:I have to get in only through the context >> blocked objects.
Are you blocking FRAMES/IFRAMES?
I am not blocking FRAMES/IFRAMES.

Giorgio ,is this not a priority now?

Re: Yahoo mail

Posted: Wed Jul 29, 2009 12:01 pm
by Giorgio Maone
nagan wrote:Giorgio ,is this not a priority now?
Not exactly, since it always worked that way for Yahoo! Mail attachments.
If it behaved better (simpler) for you, it was probably configuration dependent (an extension conflict, maybe?)
Anyway I may have a little idea on how to improve this: if it works, it will be in next development build.

Re: Yahoo mail

Posted: Wed Jul 29, 2009 1:44 pm
by Giorgio Maone
Please check latest development build 1.9.7.2.

Re: Yahoo mail

Posted: Wed Jul 29, 2009 2:52 pm
by nagan
There is a slight improvement but then.... I get the file saving box alert even before I click the "download file" link after the AV check. If I still click the "download file" the save file box alert is repeated again (that is totally 2 alerts..)

So something is wrong somewhere...NS is in a "hurry" mode? :cry:

Re: Yahoo mail

Posted: Wed Jul 29, 2009 3:07 pm
by therube
I have always gotten the initial (automatic) popup dialog once you clicked the 'paperclip' & the file was scanned.

And now (different) from before, I also will get an expected popup dialog if I were to manually click Download File (without having to deal with an "Unblock" menu item).
(The only reason I could see to deal with 'Download File' would be if you had dismissed the earlier automated popup dialog or if you wanted to download again).

So to me, it looks to be working as expected.

It is not NoScript that is causing the initial automatic popup dialog, it is the fact that you have Allowed yahoo.com (to run JavaScript). If you do not allow yahoo.com you will see you do not get the initial popup. Further you will notice that the virus scan & the reaction to clicking 'Download File' is exponentially quicker. (Maybe that last statement is just a fluke in yahoo's overall response.)

Though I have generated an error, at which point the 'Download File' not longer works:

Code: Select all

Error: O.contentWindow has no properties
Source File: http://mail.yimg.com/d/combo?/mg/6_0_18/js/yui_utils.js&/mg/6_0_18/js/core.js&bc/bc_2.0.4.js&/mg/6_0_18/js/darla.js&
Line: 1
(This "Line: 1" is one huge line.)

Now I'm not getting Download File to work at all, so not sure at this point if it is only a yahoo issue or NoScript related too?

What I think I did, along the line, was to click the Download File multiple times in succession. And it worked & worked & worked, ... & at some point it stopped working, & it was then that I noticed the above error. Reopening the message with the pdf, & going through the routine again, & the Download File is still not working. You can see if "fire", but no download dialog ensues.

If I log out of yahoo ... log back in, & I get the same results.

So I'd have to disable (uninstall in this case) NoScript to see if it might be a NoScript issue (but cannot do that at the moment).

And in a different (SeaMonkey 1.1.17) Profile, I am not able to replicate the error. Not understanding this, ABE locks up Fx2 for the duration of dns query, perhaps what I saw was related to that (though in the second Profile I did test with ABE both enabled & disabled).

Re: Yahoo mail

Posted: Thu Jul 30, 2009 5:40 am
by nagan
Yeah ,checked with a clean profile. It seems the yahoo site is a little impatient and forces the choice on the user even before the user clicks "Download file" and has nothing to do with NS.

The earlier bug is gone now. :)

Re: Yahoo mail

Posted: Thu Jul 30, 2009 2:00 pm
by therube
And 'Download File' remains broken in my main Profile, even after browser restart :?:.

In addition to the Error: O.contentWindow has no properties above:

Code: Select all

Error: [Exception... "'NoScript aborted redirection to http://69.147.103.179/us.f624.mail.yahoo.com/ya/securedownload?clean=0&fid=Inbox&mid=1_25083_AFRLk0U...D09Hs&pid=2&tnef=&prefFilename=test9.pdf&cred=8h44t0t...3NF_B66Lv6...nwI.DqdNV...tM5o-&ts=1248962145&partner=ymail&sig=a8fs...d2jw--' when calling method: [nsIChannelEventSink::onChannelRedirect]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
Got it.

This occurs if IFRAME (specifically & as opposed to FRAME) is blocked.

Re: Yahoo mail

Posted: Thu Jul 30, 2009 2:02 pm
by Giorgio Maone
therube wrote:And 'Download File' remains broken in my main profile, even after browser restart :?:.
Are you blocking iframes?