Skip to content
  • timothy@apple.com's avatar
    Parse MIME-types and strip them down to the base type when needed. · bf725158
    timothy@apple.com authored
    The use of charset in a MIME-type interferes with our type maps,
    preventing the right syntax highlighting mode and pretty printing.
    
    https://bugs.webkit.org/show_bug.cgi?id=121723
    
    Reviewed by Joseph Pecoraro.
    
    * UserInterface/ConsolePrompt.js:
    (WebInspector.ConsolePrompt):
    * UserInterface/FontResourceContentView.js:
    * UserInterface/Resource.js:
    (WebInspector.Resource.Type.fromMIMEType):
    (WebInspector.Resource.prototype.get mimeTypeComponents):
    (WebInspector.Resource.prototype.get syntheticMIMEType):
    (WebInspector.Resource.prototype.get contentURL):
    (WebInspector.Resource.prototype.updateForResponse):
    * UserInterface/ResourceDetailsSidebarPanel.js:
    (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshRequestDataSection):
    * UserInterface/SourceMapResource.js:
    (WebInspector.SourceMapResource.prototype.requestContentFromBackend):
    * UserInterface/SyntaxHighlightingSupport.js:
    (WebInspector.syntaxHighlightStringAsDocumentFragment):
    * UserInterface/TextEditor.js:
    (WebInspector.TextEditor.prototype.set mimeType):
    * UserInterface/Utilities.js:
    (parseMIMEType): Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bf725158