Title: [295681] trunk/Source/WebCore/loader/appcache/ApplicationCacheHost.cpp
- Revision
- 295681
- Author
- [email protected]
- Date
- 2022-06-20 23:42:47 -0700 (Mon, 20 Jun 2022)
Log Message
ApplicationCacheHost::isApplicationCacheEnabled() should check for its page being null
https://bugs.webkit.org/show_bug.cgi?id=241776
Patch by Youenn Fablet <[email protected]> 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
Modified Paths
Diff
Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheHost.cpp (295680 => 295681)
--- trunk/Source/WebCore/loader/appcache/ApplicationCacheHost.cpp 2022-06-21 06:37:29 UTC (rev 295680)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheHost.cpp 2022-06-21 06:42:47 UTC (rev 295681)
@@ -559,7 +559,7 @@
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&)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes