opening .png files in new tabs...

Discussion of bugs in Mozilla Firefox
Post Reply
`jarsonic
Posts: 18
Joined: December 8th, 2002, 11:35 pm

opening .png files in new tabs...

Post by `jarsonic »

Up until I upgraded to 0.5, I have beena ble to open links ot .pngs with a middle click into a new tab.
Now, it prompts me to "save as, or open with..." any way I can turn this off / associate it so that it performs the previous behavior instead?
Even associating PNG files with phoenix.exe in the preferences doesn't seem to do the job. Any ideas are welcome.

- `jarsonic
User avatar
wget
Posts: 4701
Joined: November 8th, 2002, 9:51 am
Location: Denmark

Post by wget »

It works for me using the 0.5 milestone.

Does it do this on all sites (or just one)? Try using the linked png from this site. Are you able to open that one? If it works for you then it's probably a question of a misconfigured server.
`jarsonic
Posts: 18
Joined: December 8th, 2002, 11:35 pm

Post by `jarsonic »

The problem always occurs on forums, particularly VBulletin. It's always with "attached" images, not with linked ones. For an example, click the first "attached" item in the first post in this thread: http://forums.winamp.com/showthread.php ... genumber=2

If you have no problems, let me know....

- `jarsonic

P.S. - .png files in general show up fine. It's just when they're atttached to forums w/ PHP in this manner that it askes me to open with or save as. I didnt' ahve this problem in 0.4, 0.3, or 0.2, thus my concern ;)
Magus
Posts: 2022
Joined: November 28th, 2002, 11:39 am
Location: that-a-way ->
Contact:

Post by Magus »

`jarsonic wrote:The problem always occurs on forums, particularly VBulletin. It's always with "attached" images, not with linked ones. For an example, click the first "attached" item in the first post in this thread: http://forums.winamp.com/showthread.php ... genumber=2

If you have no problems, let me know....

- `jarsonic

P.S. - .png files in general show up fine. It's just when they're atttached to forums w/ PHP in this manner that it askes me to open with or save as. I didnt' ahve this problem in 0.4, 0.3, or 0.2, thus my concern ;)


10:1 odds say the php script is sending the wrong mime type, which Phoenix/Mozilla accept as truth, and go with it. So if it sends application/octet-stream or such, it'll prompt to download. It must send image/png for Phoenix/Mozilla to see it as a png file.
For every action there is an equal and opposite criticism.
Balboa
Posts: 35
Joined: November 5th, 2002, 2:04 am

Post by Balboa »

It works in Moz 1.2.1
(Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130)

but not in my Phoenix, I get prompted to download.
(Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5)
User avatar
colfer
Posts: 643
Joined: December 4th, 2002, 9:34 am
Location: Bear

Post by colfer »

I get prompted for the download too.
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5

Here are the headers, using a simple http/1.0 get (no user-agent, nor any other request headers, except for Host):

GET /attachment.php?s=bea575afce3985b59ba1169db60a5bd6&postid=783589 HTTP/1.0
Host: forums.winamp.com
.....
disconnected, 39792 bytes read.
Header bytes: 552
Data bytes: 39240
--------Header was--------
HTTP/1.1 200 OK
Date: Fri, 13 Dec 2002 14:05:44 GMT
Server: Apache/1.3.22 (Unix) (Red-Hat/Linux) DAV/1.0.2 PHP/4.0.6 mod_perl/1.24_01
X-Powered-By: PHP/4.0.6
Set-Cookie: sessionhash=1952f659e2eb72cac5e2e12ac5755f58; path=/
Set-Cookie: bblastvisit=1039788344; expires=Sat, 13-Dec-03 14:05:44 GMT; path=/
Cache-control: max-age=31536000
Expires: Sat, 13 Dec 2003 14:05:44GMT
Last-Modified: Wed, 27 Nov 2002 20:27:21GMT
Content-disposition: atachment; filename=ensidal10.png
Content-Length: 39240
Connection: close
Content-Type: image/png
--------end of header--------
`jarsonic
Posts: 18
Joined: December 8th, 2002, 11:35 pm

Post by `jarsonic »

For the record, it's also with jpgs and gifs, any image attached in this manner. Probably you coudl say that any attachment in this manner woudl act similarly, but since most of the otehr attachments you woudl downlaod anyway (instead of jsut view), it doesnt' really matter. Maybe a bug with MIME-type reading, as suggested earlier. As said afew posts back, works in Moz 1.2.1.

- `jarsonic
Ted Mielczarek
Posts: 1269
Joined: November 5th, 2002, 7:32 am
Location: PA
Contact:

Post by Ted Mielczarek »

colfer wrote:I get prompted for the download too.
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5

Here are the headers, using a simple http/1.0 get (no user-agent, nor any other request headers, except for Host):
<snip>
Content-disposition: atachment; filename=ensidal10.png
<snip>


It's listed as an 'atachment' - note the spelling mistake, so Mozilla infers it to be an attachment.

Also, I just found the bug for this: http://bugzilla.mozilla.org/show_bug.cgi?id=183653

Note that this is a bug in the bulletin board software, and not Mozilla.
Post Reply