Changeset 216215 in webkit


Ignore:
Timestamp:
May 4, 2017 4:04:34 PM (7 years ago)
Author:
Joseph Pecoraro
Message:

REGRESSION(r216138): Web Inspector: ASSERT(!content.isNull()) when checking for source map url opening inspector
https://bugs.webkit.org/show_bug.cgi?id=171697
<rdar://problem/31999512>

Reviewed by Matt Baker.

  • inspector/InspectorPageAgent.cpp:

(WebCore::InspectorPageAgent::cachedResourceContent):
Always set base64Encoded when returning true. Return the empty
string instead of a null string matching previous behavior.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r216212 r216215  
     12017-05-04  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        REGRESSION(r216138): Web Inspector: ASSERT(!content.isNull()) when checking for source map url opening inspector
     4        https://bugs.webkit.org/show_bug.cgi?id=171697
     5        <rdar://problem/31999512>
     6
     7        Reviewed by Matt Baker.
     8
     9        * inspector/InspectorPageAgent.cpp:
     10        (WebCore::InspectorPageAgent::cachedResourceContent):
     11        Always set base64Encoded when returning true. Return the empty
     12        string instead of a null string matching previous behavior.
     13
    1142017-05-04  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebCore/inspector/InspectorPageAgent.cpp

    r216138 r216215  
    116116        return false;
    117117
     118    *base64Encoded = !hasTextContent(cachedResource);
     119
    118120    if (!cachedResource->encodedSize()) {
    119         *result = String();
     121        *result = emptyString();
    120122        return true;
    121123    }
    122124
    123     *base64Encoded = !hasTextContent(cachedResource);
    124125    if (*base64Encoded) {
    125126        if (auto* buffer = cachedResource->resourceBuffer()) {
Note: See TracChangeset for help on using the changeset viewer.