DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Bizarre Firefox Behaviour  (Read 4,900 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Bizarre Firefox Behaviour
« on: March 16, 2011, 12:10 PM »
I wrote this a short while ago:

http://cynic.me/2011/03/07/internet-explorer-download-problem-unable-to-open-this-internet-site/

Quote
Internet Explorer 7/8 throws an error when you pop a download through a meta refresh or iframe. The error message looks like this (I’ve blurred the domain as it’s not public yet):

Internet Explorer - Unable to open this Internet site

Searching around didn’t reveal anything of any particular use. Most “solutions” were for clients, which when you’re running a server, doesn’t help much.

Anyways, I decided to go back to basics, and try something really simple… Change the MIME type.

While the MIME type should be “application/octet-stream” for a binary setup file (program installer). However, simply changing it to “application/zip” fixes the problem in Internet Explorer, and popping meta refresh downloads then works.


Well, it was working properly... However, today I noticed that Firefox downloads it then adds a ".zip" extension. WTF? That's very odd. (It didn't before.)

Anyways, I fixed it to be a conditional download, but it just seems wrong that a browser would take it upon itself to rename files.

Is it just me, or is that odd?

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

housetier

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,321
    • Gathering Badge
Re: Bizarre Firefox Behaviour
« Reply #1 on: March 16, 2011, 04:15 PM »
Maybe FF renamed the file according to MIME-type?

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Bizarre Firefox Behaviour
« Reply #2 on: March 16, 2011, 05:26 PM »
Maybe FF renamed the file according to MIME-type?
Yes, but is that proper behavior? I think that's what Renegade is asking :)
- carpe noctem

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Bizarre Firefox Behaviour
« Reply #3 on: March 17, 2011, 12:24 AM »
Maybe FF renamed the file according to MIME-type?
Yes, but is that proper behavior? I think that's what Renegade is asking :)

Exactly.

As far as I can see, it's simply flat out wrong. A file extension has no necessary connection to the content. e.g. DOCX, XSLX and PPTX files are all ZIP files!

Lots of files use ZIP compression as a container format. Renaming with a .zip extension breaks compatibility.

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Bizarre Firefox Behaviour
« Reply #4 on: March 17, 2011, 12:41 AM »
Anyways, reported it here.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Original address: https://www.donationcoder.com/forum/index.php?topic=26083.0