Title: [263609] trunk/Source/WebKitLegacy/mac
- Revision
- 263609
- Author
- [email protected]
- Date
- 2020-06-26 21:20:55 -0700 (Fri, 26 Jun 2020)
Log Message
WebSecurityOrigin needs to initialize the main thread
https://bugs.webkit.org/show_bug.cgi?id=213675
Reviewed by Tim Horton.
Safari uses WebSecurityOrigin stand-alone in unit tests.
(And any client can use WebSecurityOrigin without first using other
WebKit data types.)
* WebCoreSupport/WebSecurityOrigin.mm:
(-[WebSecurityOrigin initWithURL:]):
Modified Paths
Diff
Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (263608 => 263609)
--- trunk/Source/WebKitLegacy/mac/ChangeLog 2020-06-27 04:17:40 UTC (rev 263608)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog 2020-06-27 04:20:55 UTC (rev 263609)
@@ -1,5 +1,20 @@
2020-06-26 Geoffrey Garen <[email protected]>
+ WebSecurityOrigin needs to initialize the main thread
+ https://bugs.webkit.org/show_bug.cgi?id=213675
+
+ Reviewed by Tim Horton.
+
+ Safari uses WebSecurityOrigin stand-alone in unit tests.
+
+ (And any client can use WebSecurityOrigin without first using other
+ WebKit data types.)
+
+ * WebCoreSupport/WebSecurityOrigin.mm:
+ (-[WebSecurityOrigin initWithURL:]):
+
+2020-06-26 Geoffrey Garen <[email protected]>
+
Initializing the main thread should initialize the main run loop
https://bugs.webkit.org/show_bug.cgi?id=213637
Modified: trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebSecurityOrigin.mm (263608 => 263609)
--- trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebSecurityOrigin.mm 2020-06-27 04:17:40 UTC (rev 263608)
+++ trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebSecurityOrigin.mm 2020-06-27 04:20:55 UTC (rev 263609)
@@ -42,6 +42,8 @@
+ (id)webSecurityOriginFromDatabaseIdentifier:(NSString *)databaseIdentifier
{
+ WTF::initializeMainThread();
+
auto origin = SecurityOriginData::fromDatabaseIdentifier(databaseIdentifier);
if (!origin)
return nil;
@@ -51,6 +53,8 @@
- (id)initWithURL:(NSURL *)url
{
+ WTF::initializeMainThread();
+
self = [super init];
if (!self)
return nil;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes