[Webkit-unassigned] [Bug 97982] Modernizr.load -> MIME mismatch errors.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 9 03:31:38 PDT 2012


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


Mike West <mkwst at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|webkit-unassigned at lists.web |mkwst at chromium.org
                   |kit.org                     |
                 CC|                            |paulirish at chromium.org,
                   |                            |pfeldman at chromium.org,
                   |                            |vsevik at chromium.org,
                   |                            |yurys at chromium.org




--- Comment #1 from Mike West <mkwst at chromium.org>  2012-10-09 03:32:14 PST ---
CCing Inspector folks. :)

In short, "Modernizr.load" and other libraries do some mildly hacky prefetching by loading JavaScript via an Image element (or Object element in Firefox).

Given that it's a fairly widely-used technique, would you be ok with providing some sort of workaround for this message? The simplest solution would be to allow script MIME types to be loaded as images without a warning by adding a check to _mimeTypeIsConsistentWithType.

WDYT?

-- 
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