[Webkit-unassigned] [Bug 171678] New: Cleanup: Inline CachedScript::mimeType() and remove unnecessary lowercase conversion

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 4 11:33:22 PDT 2017


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

            Bug ID: 171678
           Summary: Cleanup: Inline CachedScript::mimeType() and remove
                    unnecessary lowercase conversion
           Product: WebKit
           Version: WebKit Local Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: aestes at apple.com

CachedScript::mimeType() is only used by CachedScript::mimeTypeAllowedByNosniff(). Moreover, it is unnecessary to lowercase the MIME type before querying MIMETypeRegistry as MIMETypeRegistry performs lookup case-insensitively. We should remove the lowercase conversion and inline CachedScript::mimeType() into CachedScript::mimeTypeAllowedByNosniff().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170504/b3f26836/attachment-0001.html>


More information about the webkit-unassigned mailing list