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 ac07b437a242e575de3cd7a567e809d7a5281621..0ef0c9bf055f8b5c100b8f5c6b4539d03f3ad2d8 100644 (file)
@@ -1,3 +1,11 @@
+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
index 28ca03f3212e3e657d95a9d053435c4e0780fdd1..f130366510346b36eb0744f8c9c365ad2bb7f8b1 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);