Title: [114226] trunk/Source/WebKit2
- Revision
- 114226
- Author
- carlo...@webkit.org
- Date
- 2012-04-15 23:37:41 -0700 (Sun, 15 Apr 2012)
Log Message
[GTK] Use GRefPtr to delete the default web context in WebKit2 GTK+
https://bugs.webkit.org/show_bug.cgi?id=83752
Reviewed by Martin Robinson.
* UIProcess/API/gtk/WebKitWebContext.cpp:
(createDefaultWebContext):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (114225 => 114226)
--- trunk/Source/WebKit2/ChangeLog 2012-04-16 06:23:51 UTC (rev 114225)
+++ trunk/Source/WebKit2/ChangeLog 2012-04-16 06:37:41 UTC (rev 114226)
@@ -1,3 +1,13 @@
+2012-04-15 Carlos Garcia Campos <cgar...@igalia.com>
+
+ [GTK] Use GRefPtr to delete the default web context in WebKit2 GTK+
+ https://bugs.webkit.org/show_bug.cgi?id=83752
+
+ Reviewed by Martin Robinson.
+
+ * UIProcess/API/gtk/WebKitWebContext.cpp:
+ (createDefaultWebContext):
+
2012-04-13 Jer Noble <jer.no...@apple.com>
Video at apple.com gets standard controls in addition to custom controls after returning from full screen
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp (114225 => 114226)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp 2012-04-16 06:23:51 UTC (rev 114225)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp 2012-04-16 06:37:41 UTC (rev 114226)
@@ -87,12 +87,11 @@
static gpointer createDefaultWebContext(gpointer)
{
- WebKitWebContext* webContext = WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, NULL));
+ static GRefPtr<WebKitWebContext> webContext = adoptGRef(WEBKIT_WEB_CONTEXT(g_object_new(WEBKIT_TYPE_WEB_CONTEXT, NULL)));
webContext->priv->context = WKContextGetSharedProcessContext();
WKContextSetCacheModel(webContext->priv->context.get(), kWKCacheModelPrimaryWebBrowser);
- attachDownloadClientToContext(webContext);
-
- return webContext;
+ attachDownloadClientToContext(webContext.get());
+ return webContext.get();
}
/**
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes