Changeset 43015 in webkit
- Timestamp:
- Apr 29, 2009 2:38:14 PM (15 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r42995 r43015 1 2009-03-27 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 2 3 Reviewed by Simon Hausmann. 4 5 Update the page actions when a finishing loading even if the frame is 6 not the top frame such as when browsing inside of a website with frames. 7 https://bugs.webkit.org/show_bug.cgi?id=24890 8 9 * WebCoreSupport/FrameLoaderClientQt.cpp: 10 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 11 * tests/qwebpage/frametest/frame_a.html: Added. 12 * tests/qwebpage/frametest/index.html: Added. 13 * tests/qwebpage/tst_qwebpage.cpp: 14 (tst_QWebPage::backActionUpdate): 15 1 16 2009-04-29 Ariya Hidayat <ariya.hidayat@nokia.com> 2 17 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r42728 r43015 388 388 m_loadSucceeded = true; 389 389 390 if ( m_frame->tree()->parent() ||!m_webFrame)390 if (!m_webFrame) 391 391 return; 392 392 m_webFrame->page()->d->updateNavigationActions(); -
trunk/WebKit/qt/tests/qwebpage/qwebpage.pro
r35621 r43015 3 3 include(../../../../WebKit.pri) 4 4 SOURCES += tst_qwebpage.cpp 5 RESOURCES += tst_qwebpage.qrc 5 6 QT += testlib network 6 7 QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR -
trunk/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp
r42516 r43015 106 106 void textSelection(); 107 107 void textEditing(); 108 void backActionUpdate(); 108 109 109 110 void requestCache(); … … 1099 1100 } 1100 1101 1102 void tst_QWebPage::backActionUpdate() 1103 { 1104 QWebView view; 1105 QWebPage *page = view.page(); 1106 QAction *action = page->action(QWebPage::Back); 1107 QVERIFY(!action->isEnabled()); 1108 QSignalSpy loadSpy(page, SIGNAL(loadFinished(bool))); 1109 QUrl url = QUrl("qrc:///frametest/index.html"); 1110 page->mainFrame()->load(url); 1111 QTRY_COMPARE(loadSpy.count(), 1); 1112 QVERIFY(!action->isEnabled()); 1113 QTest::mouseClick(&view, Qt::LeftButton, 0, QPoint(10, 10)); 1114 QTRY_COMPARE(loadSpy.count(), 2); 1115 1116 QVERIFY(action->isEnabled()); 1117 } 1118 1101 1119 QTEST_MAIN(tst_QWebPage) 1102 1120 #include "tst_qwebpage.moc"
Note: See TracChangeset
for help on using the changeset viewer.