RESOLVED WONTFIX 55990
Web Inspector: unknown cursor mime never suggested
https://bugs.webkit.org/show_bug.cgi?id=55990
Summary Web Inspector: unknown cursor mime never suggested
John A. Bilicki III
Reported 2011-03-08 18:17:07 PST
When WebKit encounters cursors it spawns a mime/media type error however it does not suggest what the correct mime is. I have not been able to find any mime type that WebKit deems appropriate hence this bug report. The console error message... "Resource interpreted as Image but transferred with MIME "...
Attachments
John A. Bilicki III
Comment 1 2011-12-12 13:27:12 PST
The following resolves this issue... .htaccess AddType image/vnd.microsoft.icon .cur .ico This should be clarified in the error message, "Resource interpreted as Image but transferred with MIME type application/octet-stream." so people will have some clue as how to resolve the issue.
Alexander Pavlov (apavlov)
Comment 2 2011-12-16 06:14:20 PST
(In reply to comment #1) > The following resolves this issue... > > .htaccess > AddType image/vnd.microsoft.icon .cur .ico > > This should be clarified in the error message, "Resource interpreted as Image but transferred with MIME type application/octet-stream." so people will have some clue as how to resolve the issue. Multiple MIME types can map to a single resource category, so it is impossible for WebKit to figure out which MIME type it should be. Otherwise MIME types would not be necessary.
Alexander Pavlov (apavlov)
Comment 3 2012-01-26 01:53:08 PST
Closing as per Comment #2.
John A. Bilicki III
Comment 4 2012-01-26 16:14:16 PST
This bug shouldn't be closed, the correct media type/mime should be suggested otherwise it's pointless for the console to mention it.
Alexander Pavlov (apavlov)
Comment 5 2012-01-26 23:34:33 PST
(In reply to comment #4) > This bug shouldn't be closed, the correct media type/mime should be suggested otherwise it's pointless for the console to mention it. First off, the correct "media type" is already mentioned in the console message ("...interpreted as Image..."). Now, if "foo.js" has been transferred with "application/octet-stream", which mime-type is "correct"? "application/javascript", "application/x-javascript", "text/javascript1.2", "text/javascript1.3", or some other? WebCore makes a best guess attempt based on the content sniffing, which does not guarantee the correct result (and even could be leveraged to run XSS attacks.) What kind of mime-type suggestion would you expect for "foo.js" transferred with "application/octet-stream"?
John A. Bilicki III
Comment 6 2012-01-26 23:39:12 PST
Unfortunately "interpreted as Image" doesn't help in this case. If guessing specific media types is too excessive then perhaps it would be better idea to have the console link to a page documenting file and media types?
Note You need to log in before you can comment on or make changes to this bug.