Title: [292892] trunk/Source/WebCore
- Revision
- 292892
- Author
- [email protected]
- Date
- 2022-04-14 16:26:34 -0700 (Thu, 14 Apr 2022)
Log Message
WebCore::WorkerStorageConnection::fileSystemGetDirectory could have invalid storageConnection()
https://bugs.webkit.org/show_bug.cgi?id=239355
Reviewed by Sihui Liu.
Add a check since storageConnection() can be invalid at this point.
* Modules/storage/WorkerStorageConnection.cpp:
(WebCore::WorkerStorageConnection::fileSystemGetDirectory):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (292891 => 292892)
--- trunk/Source/WebCore/ChangeLog 2022-04-14 21:56:27 UTC (rev 292891)
+++ trunk/Source/WebCore/ChangeLog 2022-04-14 23:26:34 UTC (rev 292892)
@@ -1,3 +1,15 @@
+2022-04-14 Gabriel Nava Marino <[email protected]>
+
+ WebCore::WorkerStorageConnection::fileSystemGetDirectory could have invalid storageConnection()
+ https://bugs.webkit.org/show_bug.cgi?id=239355
+
+ Reviewed by Sihui Liu.
+
+ Add a check since storageConnection() can be invalid at this point.
+
+ * Modules/storage/WorkerStorageConnection.cpp:
+ (WebCore::WorkerStorageConnection::fileSystemGetDirectory):
+
2022-04-14 Chris Dumez <[email protected]>
Require an existing AtomString for HTMLFormElement's named getter parameter
Modified: trunk/Source/WebCore/Modules/storage/WorkerStorageConnection.cpp (292891 => 292892)
--- trunk/Source/WebCore/Modules/storage/WorkerStorageConnection.cpp 2022-04-14 21:56:27 UTC (rev 292891)
+++ trunk/Source/WebCore/Modules/storage/WorkerStorageConnection.cpp 2022-04-14 23:26:34 UTC (rev 292892)
@@ -99,6 +99,9 @@
downcast<WorkerGlobalScope>(scope).storageConnection().didGetDirectory(callbackIdentifier, WTFMove(result));
}, WorkerRunLoop::defaultMode());
};
+ if (!mainThreadConnection)
+ return mainThreadCallback(Exception { InvalidStateError });
+
mainThreadConnection->fileSystemGetDirectory(WTFMove(origin), WTFMove(mainThreadCallback));
});
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes