2010-11-24 Yi Shen <yi.4.shen@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Make QtTestBrowser remember the selected user agent
        https://bugs.webkit.org/show_bug.cgi?id=50021

        Set user agent for a new page by using the old page's

        * QtTestBrowser/mainwindow.cpp:
        (MainWindow::setPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 20915d02
2010-11-24 Yi Shen <yi.4.shen@nokia.com>
Reviewed by Andreas Kling.
[Qt] Make QtTestBrowser remember the selected user agent
https://bugs.webkit.org/show_bug.cgi?id=50021
Set user agent for a new page by using the old page's
* QtTestBrowser/mainwindow.cpp:
(MainWindow::setPage):
2010-11-24 Patrick Gansterer <paroga@webkit.org>
Reviewed by Csaba Osztrogonác.
......
......@@ -103,6 +103,9 @@ void MainWindow::buildUI()
void MainWindow::setPage(WebPage* page)
{
if (page && m_page)
page->setUserAgent(m_page->userAgentForUrl(QUrl()));
delete m_page;
m_page = page;
......
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