<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[183412] trunk/Source/WebKit2</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/183412">183412</a></dd>
<dt>Author</dt> <dd>zandobersek@gmail.com</dd>
<dt>Date</dt> <dd>2015-04-27 13:15:12 -0700 (Mon, 27 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[WK2] API::Dictionary creation functions should return Ref&lt;&gt;
https://bugs.webkit.org/show_bug.cgi?id=144221

Reviewed by Darin Adler.

Have API::Dictionary creation functions return Ref&lt;&gt;.
The call-sites are also updated, using and operating
on the returned Ref&lt;&gt; object where possible.

* Shared/API/APIDictionary.cpp:
(API::Dictionary::create):
* Shared/API/APIDictionary.h:
* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(createEncodedObject):
* Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
(-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
* Shared/API/c/WKDictionary.cpp:
(WKDictionaryCreate):
* Shared/API/c/WKMutableDictionary.cpp:
(WKMutableDictionaryCreate):
* Shared/Plugins/Netscape/PluginInformation.cpp:
(WebKit::createPluginInformationDictionary):
* Shared/Plugins/Netscape/PluginInformation.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPageUIClient):
* UIProcess/API/gtk/WebKitWebContext.cpp:
(webkit_web_context_prefetch_dns):
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkit_web_view_get_snapshot):
* UIProcess/Plugins/PlugInAutoStartProvider.cpp:
(WebKit::PlugInAutoStartProvider::autoStartOriginsTableCopy):
* UIProcess/Plugins/PlugInAutoStartProvider.h:
* UIProcess/StatisticsRequest.cpp:
(WebKit::createDictionaryFromHashMap):
(WebKit::StatisticsRequest::completedRequest):
* UIProcess/WebFormClient.cpp:
(WebKit::WebFormClient::willSubmitForm):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didFailToInitializePlugin):
* WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
(didInitiateLoadForResource):
(willSendRequestForFrame):
(didReceiveResponseForResource):
(didReceiveContentLengthForResource):
(didFinishLoadForResource):
(didFailLoadForResource):
(webkitWebPageDidReceiveMessage):
* WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
(WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
(WebKit::InjectedBundlePageFormClient::willSubmitForm):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPIDictionarycpp">trunk/Source/WebKit2/Shared/API/APIDictionary.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIAPIDictionaryh">trunk/Source/WebKit2/Shared/API/APIDictionary.h</a></li>
<li><a href="#trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm">trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPICocoa_WKRemoteObjectRegistrymm">trunk/Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectRegistry.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKDictionarycpp">trunk/Source/WebKit2/Shared/API/c/WKDictionary.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKMutableDictionarycpp">trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedPluginsNetscapePluginInformationcpp">trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedPluginsNetscapePluginInformationh">trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPagecpp">trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitWebViewcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProvidercpp">trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProviderh">trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessStatisticsRequestcpp">trunk/Source/WebKit2/UIProcess/StatisticsRequest.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebFormClientcpp">trunk/Source/WebKit2/UIProcess/WebFormClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIgtkWebKitWebPagecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageFormClientcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/ChangeLog        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -1,5 +1,58 @@
</span><span class="cx"> 2015-04-27  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
</span><span class="cx"> 
</span><ins>+        [WK2] API::Dictionary creation functions should return Ref&lt;&gt;
+        https://bugs.webkit.org/show_bug.cgi?id=144221
+
+        Reviewed by Darin Adler.
+
+        Have API::Dictionary creation functions return Ref&lt;&gt;.
+        The call-sites are also updated, using and operating
+        on the returned Ref&lt;&gt; object where possible.
+
+        * Shared/API/APIDictionary.cpp:
+        (API::Dictionary::create):
+        * Shared/API/APIDictionary.h:
+        * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
+        (createEncodedObject):
+        * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
+        (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
+        * Shared/API/c/WKDictionary.cpp:
+        (WKDictionaryCreate):
+        * Shared/API/c/WKMutableDictionary.cpp:
+        (WKMutableDictionaryCreate):
+        * Shared/Plugins/Netscape/PluginInformation.cpp:
+        (WebKit::createPluginInformationDictionary):
+        * Shared/Plugins/Netscape/PluginInformation.h:
+        * UIProcess/API/C/WKPage.cpp:
+        (WKPageSetPageUIClient):
+        * UIProcess/API/gtk/WebKitWebContext.cpp:
+        (webkit_web_context_prefetch_dns):
+        * UIProcess/API/gtk/WebKitWebView.cpp:
+        (webkit_web_view_get_snapshot):
+        * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
+        (WebKit::PlugInAutoStartProvider::autoStartOriginsTableCopy):
+        * UIProcess/Plugins/PlugInAutoStartProvider.h:
+        * UIProcess/StatisticsRequest.cpp:
+        (WebKit::createDictionaryFromHashMap):
+        (WebKit::StatisticsRequest::completedRequest):
+        * UIProcess/WebFormClient.cpp:
+        (WebKit::WebFormClient::willSubmitForm):
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::didFailToInitializePlugin):
+        * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
+        (didInitiateLoadForResource):
+        (willSendRequestForFrame):
+        (didReceiveResponseForResource):
+        (didReceiveContentLengthForResource):
+        (didFinishLoadForResource):
+        (didFailLoadForResource):
+        (webkitWebPageDidReceiveMessage):
+        * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
+        (WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
+        (WebKit::InjectedBundlePageFormClient::willSubmitForm):
+
+2015-04-27  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
+
</ins><span class="cx">         [WK2] API::Data creation functions should return Ref&lt;&gt;
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=144220
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPIDictionarycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APIDictionary.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APIDictionary.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/APIDictionary.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -31,14 +31,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace API {
</span><span class="cx"> 
</span><del>-RefPtr&lt;Dictionary&gt; Dictionary::create()
</del><ins>+Ref&lt;Dictionary&gt; Dictionary::create()
</ins><span class="cx"> {
</span><span class="cx">     return create({ });
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;Dictionary&gt; Dictionary::create(MapType map)
</del><ins>+Ref&lt;Dictionary&gt; Dictionary::create(MapType map)
</ins><span class="cx"> {
</span><del>-    return adoptRef(new Dictionary(WTF::move(map)));
</del><ins>+    return adoptRef(*new Dictionary(WTF::move(map)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> Dictionary::Dictionary(MapType map)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIAPIDictionaryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/APIDictionary.h (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/APIDictionary.h        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/APIDictionary.h        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -28,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;APIObject.h&quot;
</span><span class="cx"> #include &lt;wtf/HashMap.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -40,8 +39,8 @@
</span><span class="cx"> public:
</span><span class="cx">     typedef HashMap&lt;WTF::String, RefPtr&lt;Object&gt;&gt; MapType;
</span><span class="cx"> 
</span><del>-    static RefPtr&lt;Dictionary&gt; create();
-    static RefPtr&lt;Dictionary&gt; create(MapType);
</del><ins>+    static Ref&lt;Dictionary&gt; create();
+    static Ref&lt;Dictionary&gt; create(MapType);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~Dictionary();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> static NSString * const selectorKey = @&quot;selector&quot;;
</span><span class="cx"> static NSString * const typeStringKey = @&quot;typeString&quot;;
</span><span class="cx"> 
</span><del>-static PassRefPtr&lt;API::Dictionary&gt; createEncodedObject(WKRemoteObjectEncoder *, id);
</del><ins>+static RefPtr&lt;API::Dictionary&gt; createEncodedObject(WKRemoteObjectEncoder *, id);
</ins><span class="cx"> 
</span><span class="cx"> @interface NSMethodSignature (Details)
</span><span class="cx"> - (NSString *)_typeString;
</span><span class="lines">@@ -238,17 +238,17 @@
</span><span class="cx">     [object encodeWithCoder:encoder];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static PassRefPtr&lt;API::Dictionary&gt; createEncodedObject(WKRemoteObjectEncoder *encoder, id object)
</del><ins>+static RefPtr&lt;API::Dictionary&gt; createEncodedObject(WKRemoteObjectEncoder *encoder, id object)
</ins><span class="cx"> {
</span><span class="cx">     if (!object)
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span><del>-    RefPtr&lt;API::Dictionary&gt; dictionary = API::Dictionary::create();
-    TemporaryChange&lt;API::Dictionary*&gt; dictionaryChange(encoder-&gt;_currentDictionary, dictionary.get());
</del><ins>+    Ref&lt;API::Dictionary&gt; dictionary = API::Dictionary::create();
+    TemporaryChange&lt;API::Dictionary*&gt; dictionaryChange(encoder-&gt;_currentDictionary, dictionary.ptr());
</ins><span class="cx"> 
</span><span class="cx">     encodeObject(encoder, object);
</span><span class="cx"> 
</span><del>-    return dictionary;
</del><ins>+    return WTF::move(dictionary);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (void)encodeValueOfObjCType:(const char *)type at:(const void *)address
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPICocoa_WKRemoteObjectRegistrymm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectRegistry.mm (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectRegistry.mm        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectRegistry.mm        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -102,14 +102,14 @@
</span><span class="cx">     RetainPtr&lt;WKRemoteObjectEncoder&gt; encoder = adoptNS([[WKRemoteObjectEncoder alloc] init]);
</span><span class="cx">     [encoder encodeObject:invocation forKey:invocationKey];
</span><span class="cx"> 
</span><del>-    RefPtr&lt;API::Dictionary&gt; body = API::Dictionary::create();
</del><ins>+    Ref&lt;API::Dictionary&gt; body = API::Dictionary::create();
</ins><span class="cx">     body-&gt;set(interfaceIdentifierKey, API::String::create(interface.identifier));
</span><span class="cx">     body-&gt;set(encodedInvocationKey, [encoder rootObjectDictionary]);
</span><span class="cx"> 
</span><span class="cx">     if (!_remoteObjectRegistry)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    _remoteObjectRegistry-&gt;sendInvocation(UserData(body.get()));
</del><ins>+    _remoteObjectRegistry-&gt;sendInvocation(UserData(body.ptr()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (WebKit::RemoteObjectRegistry&amp;)remoteObjectRegistry
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKDictionarycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKDictionary.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKDictionary.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/c/WKDictionary.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">     for (size_t i = 0; i &lt; numberOfValues; ++i)
</span><span class="cx">         map.add(toImpl(keys[i])-&gt;string(), toImpl(values[i]));
</span><span class="cx"> 
</span><del>-    return toAPI(API::Dictionary::create(WTF::move(map)).release().leakRef());
</del><ins>+    return toAPI(&amp;API::Dictionary::create(WTF::move(map)).leakRef());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WKTypeRef WKDictionaryGetItemForKey(WKDictionaryRef dictionaryRef, WKStringRef key)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKMutableDictionarycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/API/c/WKMutableDictionary.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -33,8 +33,7 @@
</span><span class="cx"> 
</span><span class="cx"> WKMutableDictionaryRef WKMutableDictionaryCreate()
</span><span class="cx"> {
</span><del>-    RefPtr&lt;API::Dictionary&gt; dictionary = API::Dictionary::create();
-    return const_cast&lt;WKMutableDictionaryRef&gt;(toAPI(dictionary.release().leakRef()));
</del><ins>+    return const_cast&lt;WKMutableDictionaryRef&gt;(toAPI(&amp;API::Dictionary::create().leakRef()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool WKDictionarySetItem(WKMutableDictionaryRef dictionaryRef, WKStringRef keyRef, WKTypeRef itemRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedPluginsNetscapePluginInformationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp; plugin)
</del><ins>+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp; plugin)
</ins><span class="cx"> {
</span><span class="cx">     API::Dictionary::MapType map;
</span><span class="cx">     getPluginModuleInformation(plugin, map);
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx">     return API::Dictionary::create(WTF::move(map));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp; plugin, const String&amp; frameURLString, const String&amp; mimeType, const String&amp; pageURLString, const String&amp; pluginspageAttributeURLString, const String&amp; pluginURLString, bool replacementObscured)
</del><ins>+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp; plugin, const String&amp; frameURLString, const String&amp; mimeType, const String&amp; pageURLString, const String&amp; pluginspageAttributeURLString, const String&amp; pluginURLString, bool replacementObscured)
</ins><span class="cx"> {
</span><span class="cx">     API::Dictionary::MapType map;
</span><span class="cx">     getPluginModuleInformation(plugin, map);
</span><span class="lines">@@ -150,7 +150,7 @@
</span><span class="cx">     return API::Dictionary::create(WTF::move(map));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const String&amp; mimeType, const String&amp; frameURLString, const String&amp; pageURLString)
</del><ins>+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const String&amp; mimeType, const String&amp; frameURLString, const String&amp; pageURLString)
</ins><span class="cx"> {
</span><span class="cx">     API::Dictionary::MapType map;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedPluginsNetscapePluginInformationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.h (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.h        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/PluginInformation.h        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -51,9 +51,9 @@
</span><span class="cx"> String pluginInformationPluginURLKey();
</span><span class="cx"> String plugInInformationReplacementObscuredKey();
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp;);
-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp;, const String&amp; frameURLString, const String&amp; mimeType, const String&amp; pageURLString, const String&amp; pluginspageAttributeURLString, const String&amp; pluginURLString, bool replacementObscured = false);
-PassRefPtr&lt;API::Dictionary&gt; createPluginInformationDictionary(const String&amp; mimeType, const String&amp; frameURLString, const String&amp; pageURLString);
</del><ins>+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp;);
+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const PluginModuleInfo&amp;, const String&amp; frameURLString, const String&amp; mimeType, const String&amp; pageURLString, const String&amp; pluginspageAttributeURLString, const String&amp; pluginURLString, bool replacementObscured = false);
+Ref&lt;API::Dictionary&gt; createPluginInformationDictionary(const String&amp; mimeType, const String&amp; frameURLString, const String&amp; pageURLString);
</ins><span class="cx"> 
</span><span class="cx"> void getPluginModuleInformation(const PluginModuleInfo&amp;, API::Dictionary::MapType&amp;);
</span><span class="cx"> void getPlatformPluginModuleInformation(const PluginModuleInfo&amp;, API::Dictionary::MapType&amp;);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -1343,13 +1343,13 @@
</span><span class="cx">             map.set(&quot;resizable&quot;, API::Boolean::create(windowFeatures.resizable));
</span><span class="cx">             map.set(&quot;fullscreen&quot;, API::Boolean::create(windowFeatures.fullscreen));
</span><span class="cx">             map.set(&quot;dialog&quot;, API::Boolean::create(windowFeatures.dialog));
</span><del>-            RefPtr&lt;API::Dictionary&gt; featuresMap = API::Dictionary::create(WTF::move(map));
</del><ins>+            Ref&lt;API::Dictionary&gt; featuresMap = API::Dictionary::create(WTF::move(map));
</ins><span class="cx"> 
</span><span class="cx">             if (!m_client.base.version)
</span><del>-                return adoptRef(toImpl(m_client.createNewPage_deprecatedForUseWithV0(toAPI(page), toAPI(featuresMap.get()), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), m_client.base.clientInfo)));
</del><ins>+                return adoptRef(toImpl(m_client.createNewPage_deprecatedForUseWithV0(toAPI(page), toAPI(featuresMap.ptr()), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), m_client.base.clientInfo)));
</ins><span class="cx"> 
</span><span class="cx">             RefPtr&lt;API::URLRequest&gt; request = API::URLRequest::create(resourceRequest);
</span><del>-            return adoptRef(toImpl(m_client.createNewPage(toAPI(page), toAPI(request.get()), toAPI(featuresMap.get()), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), m_client.base.clientInfo)));
</del><ins>+            return adoptRef(toImpl(m_client.createNewPage(toAPI(page), toAPI(request.get()), toAPI(featuresMap.ptr()), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), m_client.base.clientInfo)));
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         virtual void showPage(WebPageProxy* page) override
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitWebContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -1009,7 +1009,7 @@
</span><span class="cx"> 
</span><span class="cx">     API::Dictionary::MapType message;
</span><span class="cx">     message.set(String::fromUTF8(&quot;Hostname&quot;), API::String::create(String::fromUTF8(hostname)));
</span><del>-    context-&gt;priv-&gt;context-&gt;postMessageToInjectedBundle(String::fromUTF8(&quot;PrefetchDNS&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    context-&gt;priv-&gt;context-&gt;postMessageToInjectedBundle(String::fromUTF8(&quot;PrefetchDNS&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitWebViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -3502,7 +3502,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;TransparentBackground&quot;), API::Boolean::create(options &amp; WEBKIT_SNAPSHOT_OPTIONS_TRANSPARENT_BACKGROUND));
</span><span class="cx"> 
</span><span class="cx">     webView-&gt;priv-&gt;snapshotResultsMap.set(callbackID, adoptGRef(g_task_new(webView, cancellable, callback, userData)));
</span><del>-    getPage(webView)-&gt;postMessageToInjectedBundle(String::fromUTF8(&quot;GetSnapshot&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    getPage(webView)-&gt;postMessageToInjectedBundle(String::fromUTF8(&quot;GetSnapshot&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProvidercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">     return sessionMap;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;API::Dictionary&gt; PlugInAutoStartProvider::autoStartOriginsTableCopy() const
</del><ins>+Ref&lt;API::Dictionary&gt; PlugInAutoStartProvider::autoStartOriginsTableCopy() const
</ins><span class="cx"> {
</span><span class="cx">     API::Dictionary::MapType map;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPlugInAutoStartProviderh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PlugInAutoStartProvider.h        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">     void addAutoStartOriginHash(const String&amp; pageOrigin, unsigned plugInOriginHash, WebCore::SessionID);
</span><span class="cx">     void didReceiveUserInteraction(unsigned plugInOriginHash, WebCore::SessionID);
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;API::Dictionary&gt; autoStartOriginsTableCopy() const;
</del><ins>+    Ref&lt;API::Dictionary&gt; autoStartOriginsTableCopy() const;
</ins><span class="cx">     void setAutoStartOriginsTable(API::Dictionary&amp;);
</span><span class="cx">     void setAutoStartOriginsFilteringOutEntriesAddedAfterTime(API::Dictionary&amp;, double time);
</span><span class="cx">     void setAutoStartOriginsArray(API::Array&amp;);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessStatisticsRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/StatisticsRequest.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/StatisticsRequest.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/StatisticsRequest.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -58,10 +58,10 @@
</span><span class="cx">         dictionary-&gt;set(it-&gt;key, RefPtr&lt;API::UInt64&gt;(API::UInt64::create(it-&gt;value)).get());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static PassRefPtr&lt;API::Dictionary&gt; createDictionaryFromHashMap(const HashMap&lt;String, uint64_t&gt;&amp; map)
</del><ins>+static Ref&lt;API::Dictionary&gt; createDictionaryFromHashMap(const HashMap&lt;String, uint64_t&gt;&amp; map)
</ins><span class="cx"> {
</span><del>-    RefPtr&lt;API::Dictionary&gt; result = API::Dictionary::create();
-    addToDictionaryFromHashMap(result.get(), map);
</del><ins>+    Ref&lt;API::Dictionary&gt; result = API::Dictionary::create();
+    addToDictionaryFromHashMap(result.ptr(), map);
</ins><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -79,9 +79,9 @@
</span><span class="cx">     addToDictionaryFromHashMap(m_responseDictionary.get(), data.statisticsNumbers);
</span><span class="cx"> 
</span><span class="cx">     if (!data.javaScriptProtectedObjectTypeCounts.isEmpty())
</span><del>-        m_responseDictionary-&gt;set(&quot;JavaScriptProtectedObjectTypeCounts&quot;, createDictionaryFromHashMap(data.javaScriptProtectedObjectTypeCounts).get());
</del><ins>+        m_responseDictionary-&gt;set(&quot;JavaScriptProtectedObjectTypeCounts&quot;, createDictionaryFromHashMap(data.javaScriptProtectedObjectTypeCounts));
</ins><span class="cx">     if (!data.javaScriptObjectTypeCounts.isEmpty())
</span><del>-        m_responseDictionary-&gt;set(&quot;JavaScriptObjectTypeCounts&quot;, createDictionaryFromHashMap(data.javaScriptObjectTypeCounts).get());
</del><ins>+        m_responseDictionary-&gt;set(&quot;JavaScriptObjectTypeCounts&quot;, createDictionaryFromHashMap(data.javaScriptObjectTypeCounts));
</ins><span class="cx"> 
</span><span class="cx">     if (!data.webCoreCacheStatistics.isEmpty()) {
</span><span class="cx">         Vector&lt;RefPtr&lt;API::Object&gt;&gt; cacheStatistics;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebFormClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebFormClient.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebFormClient.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/WebFormClient.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -49,8 +49,8 @@
</span><span class="cx">     API::Dictionary::MapType map;
</span><span class="cx">     for (size_t i = 0; i &lt; textFieldValues.size(); ++i)
</span><span class="cx">         map.set(textFieldValues[i].first, API::String::create(textFieldValues[i].second));
</span><del>-    RefPtr&lt;API::Dictionary&gt; textFieldsMap = API::Dictionary::create(WTF::move(map));
-    m_client.willSubmitForm(toAPI(&amp;page), toAPI(&amp;frame), toAPI(&amp;sourceFrame), toAPI(textFieldsMap.get()), toAPI(userData), toAPI(&amp;listener.get()), m_client.base.clientInfo);
</del><ins>+    Ref&lt;API::Dictionary&gt; textFieldsMap = API::Dictionary::create(WTF::move(map));
+    m_client.willSubmitForm(toAPI(&amp;page), toAPI(&amp;frame), toAPI(&amp;sourceFrame), toAPI(textFieldsMap.ptr()), toAPI(userData), toAPI(&amp;listener.get()), m_client.base.clientInfo);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -5202,7 +5202,7 @@
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><span class="cx"> void WebPageProxy::didFailToInitializePlugin(const String&amp; mimeType, const String&amp; frameURLString, const String&amp; pageURLString)
</span><span class="cx"> {
</span><del>-    m_loaderClient-&gt;didFailToInitializePlugin(*this, createPluginInformationDictionary(mimeType, frameURLString, pageURLString).get());
</del><ins>+    m_loaderClient-&gt;didFailToInitializePlugin(*this, createPluginInformationDictionary(mimeType, frameURLString, pageURLString).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPageProxy::didBlockInsecurePluginVersion(const String&amp; mimeType, const String&amp; pluginURLString, const String&amp; frameURLString, const String&amp; pageURLString, bool replacementObscured)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIgtkWebKitWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -186,7 +186,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;Frame&quot;), toImpl(frame));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Identifier&quot;), API::UInt64::create(identifier));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Request&quot;), toImpl(request));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidInitiateLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidInitiateLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static WKURLRequestRef willSendRequestForFrame(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, WKURLRequestRef wkRequest, WKURLResponseRef wkRedirectResponse, const void* clientInfo)
</span><span class="lines">@@ -211,7 +211,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;Request&quot;), newRequest.get());
</span><span class="cx">     if (!redirectResourceResponse.isNull())
</span><span class="cx">         message.set(String::fromUTF8(&quot;RedirectResponse&quot;), toImpl(wkRedirectResponse));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidSendRequestForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidSendRequestForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> 
</span><span class="cx">     return toAPI(newRequest.release().leakRef());
</span><span class="cx"> }
</span><span class="lines">@@ -222,7 +222,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;Page&quot;), toImpl(page));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Identifier&quot;), API::UInt64::create(identifier));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Response&quot;), toImpl(response));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidReceiveResponseForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidReceiveResponseForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void didReceiveContentLengthForResource(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, uint64_t length, const void*)
</span><span class="lines">@@ -231,7 +231,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;Page&quot;), toImpl(page));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Identifier&quot;), API::UInt64::create(identifier));
</span><span class="cx">     message.set(String::fromUTF8(&quot;ContentLength&quot;), API::UInt64::create(length));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidReceiveContentLengthForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidReceiveContentLengthForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void didFinishLoadForResource(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, const void*)
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx">     API::Dictionary::MapType message;
</span><span class="cx">     message.set(String::fromUTF8(&quot;Page&quot;), toImpl(page));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Identifier&quot;), API::UInt64::create(identifier));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidFinishLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidFinishLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void didFailLoadForResource(WKBundlePageRef page, WKBundleFrameRef, uint64_t identifier, WKErrorRef error, const void*)
</span><span class="lines">@@ -248,7 +248,7 @@
</span><span class="cx">     message.set(String::fromUTF8(&quot;Page&quot;), toImpl(page));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Identifier&quot;), API::UInt64::create(identifier));
</span><span class="cx">     message.set(String::fromUTF8(&quot;Error&quot;), toImpl(error));
</span><del>-    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidFailLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).get());
</del><ins>+    WebProcess::singleton().injectedBundle()-&gt;postMessage(String::fromUTF8(&quot;WebPage.DidFailLoadForResource&quot;), API::Dictionary::create(WTF::move(message)).ptr());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> class PageContextMenuClient final : public API::InjectedBundle::PageContextMenuClient {
</span><span class="lines">@@ -500,7 +500,7 @@
</span><span class="cx">         messageReply.set(&quot;Page&quot;, webPage);
</span><span class="cx">         messageReply.set(&quot;CallbackID&quot;, API::UInt64::create(callbackID));
</span><span class="cx">         messageReply.set(&quot;Snapshot&quot;, snapshotImage);
</span><del>-        WebProcess::singleton().injectedBundle()-&gt;postMessage(&quot;WebPage.DidGetSnapshot&quot;, API::Dictionary::create(WTF::move(messageReply)).get());
</del><ins>+        WebProcess::singleton().injectedBundle()-&gt;postMessage(&quot;WebPage.DidGetSnapshot&quot;, API::Dictionary::create(WTF::move(messageReply)).ptr());
</ins><span class="cx">     } else
</span><span class="cx">         ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlePageFormClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp (183411 => 183412)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp        2015-04-27 20:13:53 UTC (rev 183411)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp        2015-04-27 20:15:12 UTC (rev 183412)
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">         map.set(values[i].first, API::String::create(values[i].second));
</span><span class="cx">     auto textFieldsMap = API::Dictionary::create(WTF::move(map));
</span><span class="cx"> 
</span><del>-    m_client.willSendSubmitEvent(toAPI(page), toAPI(nodeHandle.get()), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.get()), m_client.base.clientInfo);
</del><ins>+    m_client.willSendSubmitEvent(toAPI(page), toAPI(nodeHandle.get()), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.ptr()), m_client.base.clientInfo);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void InjectedBundlePageFormClient::willSubmitForm(WebPage* page, HTMLFormElement* formElement, WebFrame* frame, WebFrame* sourceFrame, const Vector&lt;std::pair&lt;String, String&gt;&gt;&amp; values, RefPtr&lt;API::Object&gt;&amp; userData)
</span><span class="lines">@@ -154,7 +154,7 @@
</span><span class="cx">     auto textFieldsMap = API::Dictionary::create(WTF::move(map));
</span><span class="cx"> 
</span><span class="cx">     WKTypeRef userDataToPass = 0;
</span><del>-    m_client.willSubmitForm(toAPI(page), toAPI(nodeHandle.get()), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.get()), &amp;userDataToPass, m_client.base.clientInfo);
</del><ins>+    m_client.willSubmitForm(toAPI(page), toAPI(nodeHandle.get()), toAPI(frame), toAPI(sourceFrame), toAPI(textFieldsMap.ptr()), &amp;userDataToPass, m_client.base.clientInfo);
</ins><span class="cx">     userData = adoptRef(toImpl(userDataToPass));
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>