[Webkit-unassigned] [Bug 32268] Webkit discards compressed javascript with .gz extension

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 8 10:49:35 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32268


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Webkit discards compressed  |Webkit discards compressed
                   |javascript                  |javascript with .gz
                   |                            |extension
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
          Component|JavaScriptCore              |Page Loading
                 CC|                            |ap at webkit.org




--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2009-12-08 10:49:35 PST ---
Confirmed with Mac OS X 10.6.

Just like in bug 32262, this is caused by an extension that the resource has.
It's named compressedScript.js.gz, which is basically a lie - it's not a .gz
file, it's JavaScript source. The fact that it's gzip-encoded for transmission
is a transparent HTTP detail (it may as well choose to use another encoding
method).

Regardless, Safari should behave like other browsers do. A workaround is to use
a correct name for the external script.

The decision to change the content type based on extension is made by a system
library below WebKit. Closing as INVALID per our policy, as this is not a
WebKit bug.

Would you be willing to report this to Apple via <http://bugreport.apple.com>
(free registration required)? I think that it's not right to change reported
content type due to file extension without at least attempting content
sniffing, but developers working on this code may have better perspective on
the reasons for such behavior.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list