Skip to content
Permalink
Browse files
ApplicationCacheHost::isApplicationCacheEnabled() should check for it…
…s page being null

https://bugs.webkit.org/show_bug.cgi?id=241776

Patch by Youenn Fablet <youennf@gmail.com> on 2022-06-20
Reviewed by Alex Christensen.

* Source/WebCore/loader/appcache/ApplicationCacheHost.cpp:
(WebCore::ApplicationCacheHost::isApplicationCacheEnabled):
Add page null check.

Canonical link: https://commits.webkit.org/251686@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
youennf authored and webkit-commit-queue committed Jun 21, 2022
1 parent dbdd3c4 commit 0dddc82466b37f527e43c43a95738feb08d84f00
Showing 1 changed file with 1 addition and 1 deletion.
@@ -559,7 +559,7 @@ void ApplicationCacheHost::abort()

bool ApplicationCacheHost::isApplicationCacheEnabled()
{
return m_documentLoader.frame() && m_documentLoader.frame()->settings().offlineWebApplicationCacheEnabled() && !m_documentLoader.frame()->page()->usesEphemeralSession();
return m_documentLoader.frame() && m_documentLoader.frame()->settings().offlineWebApplicationCacheEnabled() && m_documentLoader.frame()->page() && !m_documentLoader.frame()->page()->usesEphemeralSession();
}

bool ApplicationCacheHost::isApplicationCacheBlockedForRequest(const ResourceRequest&)

0 comments on commit 0dddc82

Please sign in to comment.