Commit 0948cfb1 authored by aestes@apple.com's avatar aestes@apple.com

Replace calls to deprecated CFPropertyList functions in WebKit2

https://bugs.webkit.org/show_bug.cgi?id=124384

Reviewed by Anders Carlsson.

* UIProcess/cf/WebPageProxyCF.cpp:
(WebKit::WebPageProxy::sessionStateData): Replaced CFPropertyListWriteToStream() with CFPropertyListWrite().
(WebKit::WebPageProxy::restoreFromSessionStateData): Replaced CFPropertyListCreateFromXMLData() with CFPropertyListCreateWithData().

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 16cf6054
2013-11-14 Andy Estes <aestes@apple.com>
Replace calls to deprecated CFPropertyList functions in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=124384
Reviewed by Anders Carlsson.
* UIProcess/cf/WebPageProxyCF.cpp:
(WebKit::WebPageProxy::sessionStateData): Replaced CFPropertyListWriteToStream() with CFPropertyListWrite().
(WebKit::WebPageProxy::restoreFromSessionStateData): Replaced CFPropertyListCreateFromXMLData() with CFPropertyListCreateWithData().
2013-11-14 Gergo Balogh <geryxyz@inf.u-szeged.hu>
generate-message-receiver.py can't handle nested #ifs
......
......@@ -83,8 +83,8 @@ PassRefPtr<WebData> WebPageProxy::sessionStateData(WebPageProxySessionStateFilte
if (!CFWriteStreamOpen(writeStream.get()))
return 0;
if (!CFPropertyListWriteToStream(stateDictionary.get(), writeStream.get(), kCFPropertyListBinaryFormat_v1_0, 0))
if (!CFPropertyListWrite(stateDictionary.get(), writeStream.get(), kCFPropertyListBinaryFormat_v1_0, 0, 0))
return 0;
RetainPtr<CFDataRef> stateCFData = adoptCF((CFDataRef)CFWriteStreamCopyProperty(writeStream.get(), kCFStreamPropertyDataWritten));
......@@ -119,8 +119,8 @@ void WebPageProxy::restoreFromSessionStateData(WebData* webData)
RetainPtr<CFDataRef> data = adoptCF(CFDataCreate(0, webData->bytes() + sizeof(UInt32), webData->size() - sizeof(UInt32)));
CFStringRef propertyListError = 0;
RetainPtr<CFPropertyListRef> propertyList = adoptCF(CFPropertyListCreateFromXMLData(0, data.get(), kCFPropertyListImmutable, &propertyListError));
CFErrorRef propertyListError = 0;
auto propertyList = adoptCF(CFPropertyListCreateWithData(0, data.get(), kCFPropertyListImmutable, 0, &propertyListError));
if (propertyListError) {
CFRelease(propertyListError);
LOG(SessionState, "Could not read session state property list");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment