WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
11063
Scripting MIME Types application/ecmascript, application/javascript not viewable
https://bugs.webkit.org/show_bug.cgi?id=11063
Summary
Scripting MIME Types application/ecmascript, application/javascript not viewable
Sierk Bornemann
Reported
2006-09-27 12:49:35 PDT
IESG approved registration of the application/ecmascript and related media types. See: IANA|Text Media-Types,
http://www.iana.org/assignments/media-types/text/
IANA|Application Media-Types,
http://www.iana.org/assignments/media-types/application/
RFC 4329 "Scripting Media Types" defines valid MIME-Types for ECMAScript and JavaScript and marks which ones are invalid. See
ftp://ftp.rfc-editor.org/in-notes/rfc4329.txt
for details. The use of the former used MIME Types text/ecmascript, text/javascript and text/x-javascript is discouraged (marked obsolete) in favour of application/ecmascript (ECMAScript) and application/javascript (JavaScript). Web browsers should recognize and handle these new MIME Types correctly.
Attachments
application/ecmascript
(28 bytes, application/ecmascript)
2007-02-19 12:16 PST
,
David Kilzer (:ddkilzer)
no flags
Details
Test application/ecmascript
(49 bytes, text/html)
2007-02-19 12:18 PST
,
David Kilzer (:ddkilzer)
no flags
Details
application/javascript
(28 bytes, application/javascript)
2007-02-19 12:24 PST
,
David Kilzer (:ddkilzer)
no flags
Details
Test application/javascript
(49 bytes, text/html)
2007-02-19 12:25 PST
,
David Kilzer (:ddkilzer)
no flags
Details
application/x-javascript
(28 bytes, application/x-javascript)
2007-02-19 12:27 PST
,
David Kilzer (:ddkilzer)
no flags
Details
Test application/x-javascript
(49 bytes, text/html)
2007-02-19 12:29 PST
,
David Kilzer (:ddkilzer)
no flags
Details
Patch v1
(10.42 KB, patch)
2008-01-01 22:15 PST
,
David Kilzer (:ddkilzer)
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sierk Bornemann
Comment 1
2006-09-28 05:56:09 PDT
See also KHTML
Bug 134763
with additional Patch on
http://bugs.kde.org/show_bug.cgi?id=134763
Sierk Bornemann
Comment 2
2007-02-12 01:43:27 PST
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?
David Kilzer (:ddkilzer)
Comment 3
2007-02-12 02:52:45 PST
I believe this was fixed in
r18843
:
http://trac.webkit.org/projects/webkit/changeset/18843
David Kilzer (:ddkilzer)
Comment 4
2007-02-12 02:55:31 PST
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
David Kilzer (:ddkilzer)
Comment 5
2007-02-12 02:56:59 PST
(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().
Sierk Bornemann
Comment 6
2007-02-19 02:01:27 PST
If you are of the opinion, the bug is fixed and can be closed, close it.
David Kilzer (:ddkilzer)
Comment 7
2007-02-19 12:16:30 PST
Created
attachment 13244
[details]
application/ecmascript
David Kilzer (:ddkilzer)
Comment 8
2007-02-19 12:18:37 PST
Created
attachment 13245
[details]
Test application/ecmascript
David Kilzer (:ddkilzer)
Comment 9
2007-02-19 12:22:54 PST
(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
.
David Kilzer (:ddkilzer)
Comment 10
2007-02-19 12:24:33 PST
Created
attachment 13246
[details]
application/javascript
David Kilzer (:ddkilzer)
Comment 11
2007-02-19 12:25:52 PST
Created
attachment 13248
[details]
Test application/javascript
David Kilzer (:ddkilzer)
Comment 12
2007-02-19 12:27:50 PST
Created
attachment 13249
[details]
application/x-javascript
David Kilzer (:ddkilzer)
Comment 13
2007-02-19 12:29:50 PST
Created
attachment 13250
[details]
Test application/x-javascript
Sierk Bornemann
Comment 14
2007-02-28 18:45:18 PST
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.
David Kilzer (:ddkilzer)
Comment 15
2007-03-22 04:01:27 PDT
The methods from
Comment #4
should move to WebCore/platform/MimeTypeRegistry.cpp.
David Kilzer (:ddkilzer)
Comment 16
2008-01-01 22:15:52 PST
Created
attachment 18232
[details]
Patch v1 Proposed fix.
Darin Adler
Comment 17
2008-01-01 22:39:56 PST
Comment on
attachment 18232
[details]
Patch v1 Looks fine, r=me.
David Kilzer (:ddkilzer)
Comment 18
2008-01-01 23:00:06 PST
Committed revision 29077.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug