2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Sep 2008 10:50:36 +0000 (10:50 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Sep 2008 10:50:36 +0000 (10:50 +0000)
        Rubber-stamped by Simon.

        Prevent leaking pages and frames in QWebKit autotest

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

WebKit/qt/ChangeLog
WebKit/qt/tests/qwebpage/tst_qwebpage.cpp

index 20c9179884f0dd9e12a6f60b83b14083083e2591..f4158eae425e488fe51e9d10bc0fd4a8913630b2 100644 (file)
@@ -1,3 +1,11 @@
+2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
+
+        Rubber-stamped by Simon.
+
+        Prevent leaking pages and frames in QWebKit autotest
+
+        * tests/qwebpage/tst_qwebpage.cpp:
+
 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
 
         Reviewed by Simon
 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
 
         Reviewed by Simon
index 3bf022876aee96e467c485aecb54c4bdd5da9173..464eb01ecec94500db667a2f5e8d6d3dbd19f432 100644 (file)
@@ -212,7 +212,7 @@ public:
 
 void tst_QWebPage::acceptNavigationRequestWithNewWindow()
 {
 
 void tst_QWebPage::acceptNavigationRequestWithNewWindow()
 {
-    TestPage* page = new TestPage;
+    TestPage* page = new TestPage(m_view);
     page->settings()->setAttribute(QWebSettings::LinksIncludedInFocusChain, true);
     m_page = page;
     m_view->setPage(m_page);
     page->settings()->setAttribute(QWebSettings::LinksIncludedInFocusChain, true);
     m_page = page;
     m_view->setPage(m_page);