2010-04-29 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] REGRESSION(r57982): tst_qwebpage::showModalDialog() crashes https://bugs.webkit.org/show_bug.cgi?id=38314 Make sure that there's always a main frame when returning from createWindow() to the caller in WebCore. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createWindow): 2010-04-28 Janne Koskinen Reviewed by Simon Hausmann [Qt] WINS DEF file freeze Updated WINSCW def file with added and removed symbols. * symbian/bwins/QtWebKitu.def: 2010-04-22 Jocelyn Turcotte Reviewed by Kenneth Rohde Christiansen. [Qt] Remove translatable strings from the hybridPixmap test. https://bugs.webkit.org/show_bug.cgi?id=37867 * tests/hybridPixmap/widget.ui: 2010-04-22 Jocelyn Turcotte Reviewed by Kenneth Rohde Christiansen. [Qt] Fix autotests .qrc file paths when built in Qt. Compiling auto-tests from qt/tests/auto/qweb* produced failing tests since these .pro files include the ones in WebKit/qt/tests and the .qrc file was not added to RESOURCES * tests/benchmarks/loading/loading.pro: * tests/benchmarks/painting/painting.pro: * tests/qgraphicswebview/qgraphicswebview.pro: * tests/qwebelement/qwebelement.pro: * tests/qwebframe/qwebframe.pro: * tests/qwebhistory/qwebhistory.pro: * tests/qwebhistoryinterface/qwebhistoryinterface.pro: * tests/qwebinspector/qwebinspector.pro: * tests/qwebpage/qwebpage.pro: * tests/qwebplugindatabase/qwebplugindatabase.pro: * tests/qwebview/qwebview.pro: * tests/tests.pri: 2010-04-26 Bruno Schmidt Reviewed by Kenneth Rohde Christiansen. [Qt] Exposing an QVariantMap containing QObjectStar to Javascript causes Segmentation Fault https://bugs.webkit.org/show_bug.cgi?id=34729 If an QVariantMap containing QObjectStar is added to the to QtWebkit Javascript, it's use causes Segmentation Fault. It happens because, in the case QMetaType::QVariantMap, the "root" object that is inside of a PassRefPtr is passed recursively inside a loop to recover the content of the map, but the PassRefPtr semantics prohibit its use inside a loop, so the "root" object mus be passed using the method "PassRefPtr::get" in order to keep the current reference. * tests/qwebframe/tst_qwebframe.cpp: (MyQObject::MyQObject): new property variantMapProperty (MyQObject::variantMapProperty): read variantMapProperty (MyQObject::setVariantMapProperty): write variantMapProperty 2010-04-26 Thiago Macieira Reviewed by Simon Hausmann. [Qt] Fix the include header -> The module/header.h style inclusion removes the need to have -I$QTDIR/include/depending-module in the include search path for the application. * Api/qwebkitversion.h: 2010-04-21 Yi Shen Reviewed by Simon Hausmann. [Qt] Check the request empty or not in ChromeClientQt::createWindow() https://bugs.webkit.org/show_bug.cgi?id=37821 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createWindow): 2010-04-22 John Pavan Reviewed by Laszlo Gombos. [Qt] inputMethodQuery returns coordinates in web page coordinates rather than in item coordinates. https://bugs.webkit.org/show_bug.cgi?id=37163 QWebPage::inputMethodQuery is modified so that it returns coordinates in the widget's coordinate system. Tests are added for QGraphicsWebView and QWebView to verify that this behavior is correct after the webpage has been scrolled. * Api/qwebpage.cpp: (QWebPage::inputMethodQuery): * tests/qgraphicswebview/tst_qgraphicswebview.cpp: (tst_QGraphicsWebView::microFocusCoordinates): * tests/qwebview/tst_qwebview.cpp: (tst_QWebView::microFocusCoordinates): 2010-04-21 No'am Rosenthal Reviewed by Simon Fraser. [Qt] Fix or remove the runtime flag for accelerated compositing. https://bugs.webkit.org/show_bug.cgi?id=37313 This lets the QWebPageClient "veto" the settings value for accelerated compositing. In this case we allow accelerated compositing only on QGraphicsWebView. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::allowsAcceleratedCompositing): * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::allowsAcceleratedCompositing): * WebCoreSupport/ChromeClientQt.h: 2010-04-22 Robert Hogan Reviewed by Simon Hausmann. [Qt] Fix createPlugin() tests in tst_qwebpage to match behaviour of Qt plugins when PluginsEnabled is false. tst_qwebpage should have been updated as part of r56662. (See https://bugs.webkit.org/show_bug.cgi?id=32196) Updated documentation of QWebPage::createPlugin and QWebSetting::pluginsEnabled to match the new behaviour. * Api/qwebpage.cpp: Update docs. * Api/qwebsettings.cpp: Update docs. * tests/qwebpage/tst_qwebpage.cpp: (createPlugin): (tst_QWebPage::createPluginWithPluginsEnabled): (tst_QWebPage::createPluginWithPluginsDisabled): 2010-04-09 Antonio Gomes Reviewed by Kenneth Christiansen and Tor Arne Vestbø. REGRESSION(r56552): Broken scrollbars size https://bugs.webkit.org/show_bug.cgi?id=36853 The regression was caused by r56552, which introduced a fix to bug webkit.org/b/21300. The bug solved an issue with the resize handle on mac, but did it in a way that affected all Qt platforms and thus broke the behavior on non-mac platforms. This patch makes the mac specific change ifdef'ed and only applied for the mac platform. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::windowResizerRect): 2010-04-19 Jocelyn Turcotte Reviewed by Simon Hausmann. [Qt] Fix compilation against namespaced Qt. * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/QtFallbackWebPopup.h: 2010-04-14 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Changing view mode names due to specification changes https://bugs.webkit.org/show_bug.cgi?id=37615 test: fast/media/media-feature-wgt-view-mode.html specification: http://dev.w3.org/2006/waf/widgets-vmmf/ * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::isWindowed): (WebCore::ChromeClientQt::isFullscreen): (WebCore::ChromeClientQt::isMaximized): (WebCore::ChromeClientQt::isMinimized): * WebCoreSupport/ChromeClientQt.h: 2010-04-14 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Rendering artifacts on Qt plugins when scrolling the page https://bugs.webkit.org/show_bug.cgi?id=37152 Because we no longer repaint the entire viewport on scroll, we must trigger a repaint of QtPluginWidgets when their geometry changes. * WebCoreSupport/FrameLoaderClientQt.cpp: 2010-04-09 Yi Shen Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebFrame::popupFocus() fails https://bugs.webkit.org/show_bug.cgi?id=37320 The QWebPopup class has been moved & renamed, so tst_QWebFrame::popupFocus() should use the class name "QComboBox", rather than "WebCore::QWebPopup" to find the popup menu. * tests/qwebframe/tst_qwebframe.cpp: 2010-04-15 Bruno Schmidt Reviewed by Kenneth Rohde Christiansen. [Qt] Null QObjects properties cause Segmentation Fault https://bugs.webkit.org/show_bug.cgi?id=34730 QObjects exported to the QWebkit javascript with properties that are a null "QObject*" cause Segmentation Fault. If an QObject is added to the javascript context and it contains properties of the type QObject* with NULL value, calling the property causes Segmentation Fault. Follow the tests for the corrections done over WebCore. * tests/qwebframe/tst_qwebframe.cpp: (MyQObject::MyQObject): init the field m_objectStar (MyQObject::objectStarProperty): read the Object* prop (MyQObject::setObjectStarProperty): write the Object* prop (tst_QWebFrame::getSetStaticProperty): new tests for the new prop 2010-04-15 Kent Hansen Reviewed by Kenneth Rohde Christiansen. [Qt] Mark QWebFrame::overloadedSlots autotest as expected failure https://bugs.webkit.org/show_bug.cgi?id=37319 * tests/qwebframe/tst_qwebframe.cpp: 2010-04-09 Tasuku Suzuki Reviewed by Simon Hausmann. [Qt] Fix compile error with QT_NO_ACTION https://bugs.webkit.org/show_bug.cgi?id=36529 Make sure QT_NO_ACTION is not defined to use QAction * Api/qgraphicswebview.cpp: (QGraphicsWebView::pageAction): * Api/qwebpage.cpp: (QWebPagePrivate::updateAction): (QWebPage::updatePositionDependentActions): * Api/qwebpage.h: * Api/qwebview.cpp: * Api/qwebview.h: 2010-04-09 Simon Hausmann Reviewed by Lars Knoll. [Qt] tests/qgraphicswebview fails https://bugs.webkit.org/show_bug.cgi?id=37317 * Api/qwebpage.cpp: (QWebPage::userAgentForUrl): Don't crash if the ownerWidget is null. 2010-04-08 Benjamin Poulain Reviewed by Simon Hausmann. [Qt] Warnings when compiling InspectorClientQt.cpp https://bugs.webkit.org/show_bug.cgi?id=37266 Add a default: for the switch()-case to avoid warnings. * WebCoreSupport/InspectorClientQt.cpp: (WebCore::variantToSetting): 2010-04-08 Joe Ligman Reviewed by Simon Hausmann. [Qt] WebKit crashes while input text through input method. The formatted text underline painting crashes when painting with invalid indexes. https://bugs.webkit.org/show_bug.cgi?id=36870 * Api/qwebpage.cpp: (QWebPagePrivate::inputMethodEvent): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::inputMethodsTextFormat_data): (tst_QWebPage::inputMethodsTextFormat): 2010-04-01 Antonio Gomes Reviewed by David Hyatt. [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect. https://bugs.webkit.org/show_bug.cgi?id=29431 Make use of the new lock parameter of set{Vertical,Horizontal}ScrollbarMode. Always added a qt auto test for set scrollbar policy feature. * Api/qwebframe.cpp: (QWebFrame::setScrollBarPolicy): * tests/qwebframe/tst_qwebframe.cpp: * WebCoreSupport/FrameLoaderClientQt.cpp: (FrameLoaderClientQt::transitionToCommittedForNewPage): 2010-04-08 Joe Ligman Reviewed by Simon Hausmann. [Qt] qtwebkit_webframe_scrollRecursively scrolls when body.style.overflow="hidden" https://bugs.webkit.org/show_bug.cgi?id=36674 The scrolling check was based on the frameview's scrolloffset, and maximumScrollPosition, which does not acknowledge the overflow properties. I am now basing the scrolling off the scrollbar position. The scrollbars are affected by the overflow properties indicating when not to scroll. The scrollbar positions also continue to work for CSS ::-webkit-scrollbar styles. * Api/qwebframe.cpp: (qtwebkit_webframe_scrollRecursively): 2010-04-07 Andreas Kling Reviewed by Simon Hausmann. [Qt] When providing a widget for the PDF mime type it will cause a crash m_pluginView may actually be a Widget (for embedded Qt widgets), so always check isPluginView() before calling PluginView specific methods. https://bugs.webkit.org/show_bug.cgi?id=29450 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): 2010-04-07 Dawit Alemayehu Reviewed by Simon Hausmann. https://bugs.webkit.org/show_bug.cgi?id=36827 Updated the WebCore::shouldTreatAsAttachement function call with the new more generic replacement WebCore::contentDispositionType. See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 2010-04-02 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] [Symbian] Rebaseline Symbian def file https://bugs.webkit.org/show_bug.cgi?id=37038 Switch the ordinal numbers for qtwebkit_webframe_scrollRecursively and QWebInspector::closeEvent to match QtWebkit 4.6 branch Fix the signature for qt_drt_setFrameFlatteningEnabled after r56718. Add new QtWebKit API symbols introduced not listed in the file yet. * symbian/eabi/QtWebKitu.def: 2010-04-06 Diego Gonzalez Reviewed by Simon Hausmann. [Qt] Add mechanism to detect QtWebKit 2.0 via the preprocessor https://bugs.webkit.org/show_bug.cgi?id=36538 * Api/qwebkitglobal.h: 2010-04-02 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. [Qt] Maemo5 theme - customized popup for