Title: [292482] trunk/Source/WebCore
Revision
292482
Author
[email protected]
Date
2022-04-06 11:22:11 -0700 (Wed, 06 Apr 2022)

Log Message

Check for document page in WorkerMessagingProxy::createCacheStorageConnection
https://bugs.webkit.org/show_bug.cgi?id=238872

Reviewed by Chris Dumez.

Add a check to the document page, similarily to how it is currently done in
WorkerMessagingProxy::createRTCDataChannelRemoteHandlerConnection.

* workers/WorkerMessagingProxy.cpp:
(WebCore::WorkerMessagingProxy::createCacheStorageConnection):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (292481 => 292482)


--- trunk/Source/WebCore/ChangeLog	2022-04-06 18:21:47 UTC (rev 292481)
+++ trunk/Source/WebCore/ChangeLog	2022-04-06 18:22:11 UTC (rev 292482)
@@ -1,3 +1,16 @@
+2022-04-06  Gabriel Nava Marino  <[email protected]>
+
+        Check for document page in WorkerMessagingProxy::createCacheStorageConnection
+        https://bugs.webkit.org/show_bug.cgi?id=238872
+
+        Reviewed by Chris Dumez.
+
+        Add a check to the document page, similarily to how it is currently done in
+        WorkerMessagingProxy::createRTCDataChannelRemoteHandlerConnection.
+
+        * workers/WorkerMessagingProxy.cpp:
+        (WebCore::WorkerMessagingProxy::createCacheStorageConnection):
+
 2022-04-06  Said Abou-Hallawa  <[email protected]>
 
         [GPU Process] Text filled with pattern sometimes draw with incorrect color

Modified: trunk/Source/WebCore/workers/WorkerMessagingProxy.cpp (292481 => 292482)


--- trunk/Source/WebCore/workers/WorkerMessagingProxy.cpp	2022-04-06 18:21:47 UTC (rev 292481)
+++ trunk/Source/WebCore/workers/WorkerMessagingProxy.cpp	2022-04-06 18:22:11 UTC (rev 292482)
@@ -169,6 +169,8 @@
 {
     ASSERT(isMainThread());
     auto& document = downcast<Document>(*m_scriptExecutionContext);
+    if (!document.page())
+        return nullptr;
     return document.page()->cacheStorageProvider().createCacheStorageConnection();
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to