Changeset 82822 in webkit


Ignore:
Timestamp:
Apr 4, 2011 4:33:44 AM (13 years ago)
Author:
apavlov@chromium.org
Message:

2011-04-04 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Yury Semikhatsky.

Web Inspector: Incorrectly reports warning on missing/incorrect content-type for 304s
https://bugs.webkit.org/show_bug.cgi?id=48525

  • inspector/front-end/Resource.js: (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r82818 r82822  
     12011-04-04  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Yury Semikhatsky.
     4
     5        Web Inspector: Incorrectly reports warning on missing/incorrect content-type for 304s
     6        https://bugs.webkit.org/show_bug.cgi?id=48525
     7
     8        * inspector/front-end/Resource.js:
     9        (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
     10
    1112011-04-01  Alexander Pavlov  <apavlov@chromium.org>
    212
  • trunk/Source/WebCore/inspector/front-end/Resource.js

    r81861 r82822  
    567567        // as it's going to be an error message. We do not want to emit a warning
    568568        // for this, though, as this will already be reported as resource loading failure.
    569         if (this.statusCode >= 400)
     569        // Also, if a URL like http://localhost/wiki/load.php?debug=true&lang=en produces text/css and gets reloaded,
     570        // it is 304 Not Modified and its guessed mime-type is text/php, which is wrong.
     571        // Don't check for mime-types in 304-resources.
     572        if (this.statusCode >= 400 || this.statusCode === 304)
    570573            return true;
    571574
Note: See TracChangeset for help on using the changeset viewer.