Title: [231356] trunk/Source/WebKit
- Revision
- 231356
- Author
- [email protected]
- Date
- 2018-05-04 09:51:16 -0700 (Fri, 04 May 2018)
Log Message
Assertion failure in NetworkStorageSession::setCookie: privilege of UI process is not set
https://bugs.webkit.org/show_bug.cgi?id=185262
Patch by Sihui Liu <[email protected]> on 2018-05-04
Reviewed by Chris Dumez.
Fix an assertion failure by setting UI process privileges in constructor of WebsiteDataStore
because UI process may use the cookie API before creating a WebView.
* UIProcess/WebsiteData/WebsiteDataStore.cpp:
(WebKit::WebsiteDataStore::WebsiteDataStore):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (231355 => 231356)
--- trunk/Source/WebKit/ChangeLog 2018-05-04 16:30:27 UTC (rev 231355)
+++ trunk/Source/WebKit/ChangeLog 2018-05-04 16:51:16 UTC (rev 231356)
@@ -1,3 +1,16 @@
+2018-05-04 Sihui Liu <[email protected]>
+
+ Assertion failure in NetworkStorageSession::setCookie: privilege of UI process is not set
+ https://bugs.webkit.org/show_bug.cgi?id=185262
+
+ Reviewed by Chris Dumez.
+
+ Fix an assertion failure by setting UI process privileges in constructor of WebsiteDataStore
+ because UI process may use the cookie API before creating a WebView.
+
+ * UIProcess/WebsiteData/WebsiteDataStore.cpp:
+ (WebKit::WebsiteDataStore::WebsiteDataStore):
+
2018-05-04 Per Arne Vollan <[email protected]>
Adjust sandbox rules for simulator.
Modified: trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp (231355 => 231356)
--- trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp 2018-05-04 16:30:27 UTC (rev 231355)
+++ trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp 2018-05-04 16:51:16 UTC (rev 231356)
@@ -48,6 +48,7 @@
#include <WebCore/SecurityOriginData.h>
#include <wtf/CompletionHandler.h>
#include <wtf/CrossThreadCopier.h>
+#include <wtf/ProcessPrivilege.h>
#include <wtf/RunLoop.h>
#if ENABLE(NETSCAPE_PLUGIN_API)
@@ -90,6 +91,7 @@
, m_storageManager(StorageManager::create(m_configuration.localStorageDirectory))
, m_queue(WorkQueue::create("com.apple.WebKit.WebsiteDataStore"))
{
+ WTF::setProcessPrivileges(allPrivileges());
maybeRegisterWithSessionIDMap();
platformInitialize();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes