Unreviewed test fix after r225264.
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Nov 2017 18:59:01 +0000 (18:59 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Nov 2017 18:59:01 +0000 (18:59 +0000)
<rdar://problem/35750689>

The changes in r225264 were meant to have no changes in behavior. However, I mistakenly
switched to a secure coding API call in the PlatformPasteboard::write method. This should
have used the 'insecure' version of this function.

* platform/ios/PlatformPasteboardIOS.mm:
(WebCore::PlatformPasteboard::write):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/PlatformPasteboardIOS.mm

index 1e15dc4..efd29b2 100644 (file)
@@ -1,3 +1,15 @@
+2017-11-29  Brent Fulgham  <bfulgham@apple.com>
+
+        Unreviewed test fix after r225264.
+        <rdar://problem/35750689>
+
+        The changes in r225264 were meant to have no changes in behavior. However, I mistakenly
+        switched to a secure coding API call in the PlatformPasteboard::write method. This should
+        have used the 'insecure' version of this function.
+
+        * platform/ios/PlatformPasteboardIOS.mm:
+        (WebCore::PlatformPasteboard::write): 
+
 2017-11-29  Youenn Fablet  <youenn@apple.com>
 
         LibWebRTCPeerConnectionBackend should clean its stats promises when being cleaned
index 8d1af3f..3954647 100644 (file)
@@ -265,7 +265,7 @@ void PlatformPasteboard::write(const PasteboardWebContent& content)
         [representationsToRegister addData:content.dataInWebArchiveFormat->createNSData().get() forType:WebArchivePboardType];
 
     if (content.dataInAttributedStringFormat) {
-        NSAttributedString *attributedString = securelyUnarchiveObjectOfClassFromData([NSAttributedString class], content.dataInAttributedStringFormat->createNSData().get());
+        NSAttributedString *attributedString = insecurelyUnarchiveObjectOfClassFromData(content.dataInAttributedStringFormat->createNSData().get());
         if (attributedString)
             [representationsToRegister addRepresentingObject:attributedString];
     }