Title: [106104] trunk/Source/WebKit2
Revision
106104
Author
[email protected]
Date
2012-01-27 03:51:10 -0800 (Fri, 27 Jan 2012)

Log Message

[Qt] Re-creating QQuickWebView starts new web process every time
https://bugs.webkit.org/show_bug.cgi?id=77194

Patch by Simon Hausmann <[email protected]> on 2012-01-27
Reviewed by Kenneth Rohde Christiansen.

Since the WebKit::WebContext is never fully destructed due to circular
references, we should use the real shared context instead of re-creating
a new WebContext every time.

* UIProcess/qt/QtWebContext.cpp:
(WebKit::QtWebContext::defaultContext):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (106103 => 106104)


--- trunk/Source/WebKit2/ChangeLog	2012-01-27 11:36:17 UTC (rev 106103)
+++ trunk/Source/WebKit2/ChangeLog	2012-01-27 11:51:10 UTC (rev 106104)
@@ -1,3 +1,17 @@
+2012-01-27  Simon Hausmann  <[email protected]>
+
+        [Qt] Re-creating QQuickWebView starts new web process every time
+        https://bugs.webkit.org/show_bug.cgi?id=77194
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Since the WebKit::WebContext is never fully destructed due to circular
+        references, we should use the real shared context instead of re-creating
+        a new WebContext every time.
+
+        * UIProcess/qt/QtWebContext.cpp:
+        (WebKit::QtWebContext::defaultContext):
+
 2012-01-26  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Add basic printing support to WebKit2

Modified: trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp (106103 => 106104)


--- trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp	2012-01-27 11:36:17 UTC (rev 106103)
+++ trunk/Source/WebKit2/UIProcess/qt/QtWebContext.cpp	2012-01-27 11:51:10 UTC (rev 106104)
@@ -69,7 +69,7 @@
     if (s_defaultContext)
         return PassRefPtr<QtWebContext>(s_defaultContext);
 
-    RefPtr<WebContext> context = WebContext::create(String());
+    RefPtr<WebContext> context = WebContext::sharedProcessContext();
     RefPtr<QtWebContext> defaultContext = QtWebContext::create(context.get());
     s_defaultContext = defaultContext.get();
     defaultContext->initialize();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to