More build fix.
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 00:22:26 +0000 (00:22 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 00:22:26 +0000 (00:22 +0000)
* WebKitTestRunner/InjectedBundle/mac/AccessibilityNotificationHandler.mm:
(-[AccessibilityNotificationHandler _notificationReceived:]):
Use -objectForKey:, not array subscript.

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

Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityNotificationHandler.mm

index ac07b43..0ef0c9b 100644 (file)
@@ -1,5 +1,13 @@
 2015-04-27  Alexey Proskuryakov  <ap@apple.com>
 
+        More build fix.
+
+        * WebKitTestRunner/InjectedBundle/mac/AccessibilityNotificationHandler.mm:
+        (-[AccessibilityNotificationHandler _notificationReceived:]):
+        Use -objectForKey:, not array subscript.
+
+2015-04-27  Alexey Proskuryakov  <ap@apple.com>
+
         Catch unexpected exits in DumpRenderTree
         https://bugs.webkit.org/show_bug.cgi?id=144288
 
index 28ca03f..f130366 100644 (file)
     if (m_platformElement && m_platformElement != [notification object])
         return;
 
-    NSString *userInfoJSONValue = notification.userInfo[@"userInfo"];
+    NSString *userInfoJSONValue = [[notification userInfo] objectForKey:@"userInfo"];
 
     WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(WTR::InjectedBundle::singleton().page()->page());
     JSContextRef context = WKBundleFrameGetJavaScriptContext(mainFrame);