https://bugs.webkit.org/show_bug.cgi?id=136387
<rdar://problem/
18167200>
Reviewed by Dan Bernstein.
* UIProcess/mac/ServicesController.mm:
(WebKit::ServicesController::ServicesController):
Speculative fix; if this block is called synchronously, we'll end up
calling back into ::shared() before the NeverDestroyed is initialized,
ending up with two ServicesControllers.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173119
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-08-29 Tim Horton <timothy_horton@apple.com>
+
+ More occasional crashes in ServicesController::resfreshExistingServices
+ https://bugs.webkit.org/show_bug.cgi?id=136387
+ <rdar://problem/18167200>
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/mac/ServicesController.mm:
+ (WebKit::ServicesController::ServicesController):
+ Speculative fix; if this block is called synchronously, we'll end up
+ calling back into ::shared() before the NeverDestroyed is initialized,
+ ending up with two ServicesControllers.
+
2014-08-29 Alexey Proskuryakov <ap@apple.com>
WebPageProxy::close() is a no-op for terminated processes
refreshExistingServices();
#ifdef __LP64__
- auto refreshCallback = [](NSArray *, NSError *) {
+ auto refreshCallback = [this](NSArray *, NSError *) {
// We coalese refreshes from the notification callbacks because they can come in small batches.
- ServicesController::shared().refreshExistingServices(false);
+ refreshExistingServices(false);
};
auto extensionAttributes = @{ @"NSExtensionPointName" : @"com.apple.services" };