[iOS] Safari’s Web Content process crashes when decoding an NSError containing an...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Aug 2015 04:50:15 +0000 (04:50 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Aug 2015 04:50:15 +0000 (04:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148135

Reviewed by Sam Weinig.

* Configurations/WebContent-iOS.entitlements: Added the com.apple.identities keychain
  access group. The Networking process already has it since r169655.

* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::platformInitialize): Always allow the UI process to decode keys.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188627 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Configurations/WebContent-iOS.entitlements
Source/WebKit2/UIProcess/Cocoa/WebProcessPoolCocoa.mm

index a6a8e1e..293da86 100644 (file)
@@ -1,3 +1,16 @@
+2015-08-18  Dan Bernstein  <mitz@apple.com>
+
+        [iOS] Safari’s Web Content process crashes when decoding an NSError containing an identity
+        https://bugs.webkit.org/show_bug.cgi?id=148135
+
+        Reviewed by Sam Weinig.
+
+        * Configurations/WebContent-iOS.entitlements: Added the com.apple.identities keychain
+          access group. The Networking process already has it since r169655.
+
+        * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+        (WebKit::WebProcessPool::platformInitialize): Always allow the UI process to decode keys.
+
 2015-08-18  Jincheol Jo  <jincheol.jo@navercorp.com>
 
         [EFL] Web Inspector: make to use StringBuilder in inspectorBaseURL
index 9c47c9e..cbf1301 100644 (file)
@@ -2,6 +2,10 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
+       <key>keychain-access-groups</key>
+       <array>
+               <string>com.apple.identities</string>
+       </array>
        <key>com.apple.private.allow-explicit-graphics-priority</key>
        <true/>
        <key>com.apple.private.network.socket-delegate</key>
index 5906cc8..99533c7 100644 (file)
@@ -53,6 +53,7 @@
 #endif
 
 #if PLATFORM(IOS)
+#import "ArgumentCodersCF.h"
 #import <WebCore/RuntimeApplicationChecksIOS.h>
 #else
 #import <QuartzCore/CARemoteLayerServer.h>
@@ -143,6 +144,7 @@ void WebProcessPool::platformInitialize()
     registerNotificationObservers();
 
 #if PLATFORM(IOS)
+    IPC::setAllowsDecodingSecKeyRef(true);
     WebKit::WebMemoryPressureHandler::singleton();
 #endif
 }