Skip to content
Permalink
Browse files
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):


Canonical link: https://commits.webkit.org/198291@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
anttijk committed Feb 5, 2018
1 parent eb5eb86 commit ac410a4eff61a0c87035df0fcb120aa013e4cf5d
Showing 2 changed files with 11 additions and 1 deletion.
@@ -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
@@ -50,7 +50,7 @@ class CachedResourceClientWalker {
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);
}
}

0 comments on commit ac410a4

Please sign in to comment.