Bug 38364

Summary: MIME typo in LayoutTests/http/tests/security/xss-DENIED-mime-type-execute-as-html.html
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, inferno
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 37358    
Bug Blocks:    
Attachments:
Description Flags
Patch v1 levin: review+

Description David Kilzer (:ddkilzer) 2010-04-29 17:57:00 PDT
I believe there is a typo in LayoutTests/http/tests/security/xss-DENIED-mime-type-execute-as-html.html where "application-javascript" is used instead of "application/javascript".

Without a "/" in the MIME type, the content returned can be sniffed per <http://tools.ietf.org/html/draft-abarth-mime-sniff-04>, and because it starts out with a <script> tag, is likely to be sniffed as "text/html".

Was the use of "application-javascript" intentional or just a typo?

See Bug 37358 for the original fix and test case.
Comment 1 David Kilzer (:ddkilzer) 2010-04-29 18:01:00 PDT
Created attachment 54765 [details]
Patch v1
Comment 2 Abhishek Arya 2010-04-29 18:14:48 PDT
Yes, David it is a typo. Sorry about that.
Comment 3 David Kilzer (:ddkilzer) 2010-04-30 14:05:58 PDT
Committed r58604: <http://trac.webkit.org/changeset/58604>