Changeset 67554 in webkit
- Timestamp:
- Sep 15, 2010 6:32:02 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r67527 r67554 1 2010-09-15 Simon Hausmann <simon.hausmann@nokia.com> 2 3 Reviewed by Tor Arne Vestbø. 4 5 [Qt] QtTestBrowser crashes when enabling QGraphicsView mode after first loading page without it enabled 6 https://bugs.webkit.org/show_bug.cgi?id=35247 7 8 The main issue when changing the views is that the plugins and any other components that 9 depend on view specific attributes such as the native window id are not teared down. 10 Even if we had a tear-down procedure, we'd have to re-initialize the plugin after 11 switching to the new view (QGraphicsWebView). This is a rather uncommon situation, so 12 we decided to work around this in QtTestBrowser by making toggling between QWebView 13 and QGraphicsWebView also re-create the page. 14 15 * QtTestBrowser/launcherwindow.cpp: 16 (LauncherWindow::initializeView): 17 * QtTestBrowser/mainwindow.h: 18 1 19 2010-09-14 Mihai Parparita <mihaip@chromium.org> 2 20 -
trunk/WebKitTools/QtTestBrowser/launcherwindow.cpp
r65792 r67554 104 104 void LauncherWindow::initializeView() 105 105 { 106 QUrl url = m_page->mainFrame()->url(); 107 delete m_page; 106 108 delete m_view; 109 m_page = new WebPage(this); 107 110 108 111 QSplitter* splitter = static_cast<QSplitter*>(centralWidget()); … … 128 131 m_view = view; 129 132 } 133 134 if (url.isValid()) 135 m_page->mainFrame()->load(url); 130 136 131 137 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) -
trunk/WebKitTools/QtTestBrowser/mainwindow.h
r63090 r67554 66 66 LocationEdit* urlEdit; 67 67 68 protected: 68 69 WebPage* m_page; 69 70 };
Note: See TracChangeset
for help on using the changeset viewer.