Summary: | Scripting MIME Types application/ecmascript, application/javascript not viewable | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sierk Bornemann <sierkb> | ||||||||||||||||
Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | ap, aroben, beidson, ddkilzer | ||||||||||||||||
Priority: | P2 | Keywords: | EasyFix, HasReduction | ||||||||||||||||
Version: | 420+ | ||||||||||||||||||
Hardware: | All | ||||||||||||||||||
OS: | OS X 10.4 | ||||||||||||||||||
URL: | http://www.ietf.org/rfc/rfc4329.txt | ||||||||||||||||||
Attachments: |
|
Description
Sierk Bornemann
2006-09-27 12:49:35 PDT
See also KHTML Bug 134763 with additional Patch on http://bugs.kde.org/show_bug.cgi?id=134763 According to http://webkit.org/blog/?p=93, please fix this bug as soon as possible. It would be great, if the next Version of Safari will handle the MIME type of JavaScript/ECMAScript right, wouldn't it? I believe this was fixed in r18843: http://trac.webkit.org/projects/webkit/changeset/18843 It seems like the static list of JavaScript MIME types used in WebCore/html/HTMLScriptElement.cpp could be used in these classes as well: WebCore/dom/DOMImplementation.cpp WebCore/platform/MimeTypeRegistry.cpp (In reply to comment #4) > It seems like the static list of JavaScript MIME types used in > WebCore/html/HTMLScriptElement.cpp could be used in these classes as well: > > WebCore/dom/DOMImplementation.cpp In DOMImplementation::isTextMIMEType(). > WebCore/platform/MimeTypeRegistry.cpp In initialiseSupportedNonImageMimeTypes(). If you are of the opinion, the bug is fixed and can be closed, close it. Created attachment 13244 [details]
application/ecmascript
Created attachment 13245 [details]
Test application/ecmascript
(In reply to comment #8) > Created an attachment (id=13245) [edit] > Test application/ecmascript The test works, but Safari won't display the source of the application/ecmascript file in the browser (like it would with application/x-javascript). I'd like to leave this bug open to address issues from Comment #4 and Comment #5. Created attachment 13246 [details]
application/javascript
Created attachment 13248 [details]
Test application/javascript
Created attachment 13249 [details]
application/x-javascript
Created attachment 13250 [details]
Test application/x-javascript
Bearing in mind the next release of MacOSX 10.5 and rumors of the shortcoming MacOS 10.4.9, I would be very happy, if this bug would be fixed in the then shipped Safari Web Browser. Please fix the outstanding issues with special regard to Comment #4, Comment #5 and Comment #9, which seem to block this bug here from being fixed. The methods from Comment #4 should move to WebCore/platform/MimeTypeRegistry.cpp. Created attachment 18232 [details]
Patch v1
Proposed fix.
Comment on attachment 18232 [details]
Patch v1
Looks fine, r=me.
Committed revision 29077. |