Make ASSERT_WITH_SECURITY_IMPLICATION in CachedResourceClientWalker::next a release...
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Feb 2018 19:43:35 +0000 (19:43 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Feb 2018 19:43:35 +0000 (19:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=182492

Reviewed by Youenn Fablet.

* loader/cache/CachedResourceClientWalker.h:
(WebCore::CachedResourceClientWalker::next):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228110 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedResourceClientWalker.h

index 61f3ab8..485c4d8 100644 (file)
@@ -1,3 +1,13 @@
+2018-02-05  Antti Koivisto  <antti@apple.com>
+
+        Make ASSERT_WITH_SECURITY_IMPLICATION in CachedResourceClientWalker::next a release assert
+        https://bugs.webkit.org/show_bug.cgi?id=182492
+
+        Reviewed by Youenn Fablet.
+
+        * loader/cache/CachedResourceClientWalker.h:
+        (WebCore::CachedResourceClientWalker::next):
+
 2018-02-05  John Wilander  <wilander@apple.com>
 
         Storage Access API: Add testRunner.getAllStorageAccessEntries() to make testing easier and more explicit
index 88154b9..a48d103 100644 (file)
@@ -50,7 +50,7 @@ public:
         while (m_index < size) {
             CachedResourceClient* next = m_clientVector[m_index++];
             if (m_clientSet.contains(next)) {
-                ASSERT_WITH_SECURITY_IMPLICATION(T::expectedType() == CachedResourceClient::expectedType() || next->resourceClientType() == T::expectedType());
+                RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(T::expectedType() == CachedResourceClient::expectedType() || next->resourceClientType() == T::expectedType());
                 return static_cast<T*>(next);
             }
         }