Changeset 224638 in webkit


Ignore:
Timestamp:
Nov 9, 2017 11:00:59 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

ResourceErrorBase::setType should not ASSERT if it is a no op
https://bugs.webkit.org/show_bug.cgi?id=179490

Patch by Youenn Fablet <youenn@apple.com> on 2017-11-09
Reviewed by Chris Dumez.

No change of behavior.

  • platform/network/ResourceErrorBase.cpp:

(WebCore::ResourceErrorBase::setType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r224637 r224638  
     12017-11-09  Youenn Fablet  <youenn@apple.com>
     2
     3        ResourceErrorBase::setType should not ASSERT if it is a no op
     4        https://bugs.webkit.org/show_bug.cgi?id=179490
     5
     6        Reviewed by Chris Dumez.
     7
     8        No change of behavior.
     9
     10        * platform/network/ResourceErrorBase.cpp:
     11        (WebCore::ResourceErrorBase::setType):
     12
    1132017-11-09  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/platform/network/ResourceErrorBase.cpp

    r202542 r224638  
    6161{
    6262    // setType should only be used to specialize the error type.
    63     ASSERT(m_type == Type::General || m_type == Type::Null || (m_type == Type::Cancellation && type == Type::AccessControl));
     63    ASSERT(m_type == type || m_type == Type::General || m_type == Type::Null || (m_type == Type::Cancellation && type == Type::AccessControl));
    6464    m_type = type;
    6565}
Note: See TracChangeset for help on using the changeset viewer.