1 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
3 Reviewed by Kenneth Rohde Christiansen.
5 [Qt] Improve the autotests of QtWebkit
6 https://bugs.webkit.org/show_bug.cgi?id=32216
8 Refactor tst_qwebframe to remove qWait() and use
9 the function waitForSignal() from util.h
11 * tests/qwebframe/tst_qwebframe.cpp:
13 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
15 Reviewed by Kenneth Rohde Christiansen.
17 [Qt] Improve the autotests of QtWebkit
18 https://bugs.webkit.org/show_bug.cgi?id=32216
20 Refactor the test of QGraphicsWebView:
21 -make waitForSignal() available to all the tests.
22 -remove QTest::qWait()
24 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
25 (tst_QGraphicsWebView::crashOnViewlessWebPages):
29 2009-12-07 Girish Ramakrishnan <girish@forwardbias.in>
31 Reviewed by Simon Hausmann.
33 [Qt] Plugins: Force windowless mode when there is no native window handle
35 Inject wmode=opaque while instantiating the plugin for the case when the
36 webpage is not backed by a native window handle.
38 https://bugs.webkit.org/show_bug.cgi?id=32059
40 * WebCoreSupport/FrameLoaderClientQt.cpp:
41 (WebCore::FrameLoaderClientQt::createPlugin):
43 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
45 Reviewed by Kenneth Rohde Christiansen.
47 [Qt] Corrects QtLauncher style
49 * QtLauncher/main.cpp:
50 (WebPage::acceptNavigationRequest):
51 (MainWindow::MainWindow):
52 (MainWindow::webPage):
53 (MainWindow::webView):
54 (MainWindow::changeLocation):
55 (MainWindow::loadFinished):
56 (MainWindow::showLinkHover):
58 (MainWindow::zoomOut):
60 (MainWindow::setEditable):
61 (MainWindow::dumpHtml):
62 (MainWindow::selectElements):
63 (MainWindow::newWindow):
64 (MainWindow::setupUI):
65 (WebPage::createWindow):
66 (WebPage::createPlugin):
69 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
71 Reviewed by Kenneth Rohde Christiansen.
73 [Qt] QtLauncher: add a menu to show or hide the web inspector.
74 https://bugs.webkit.org/show_bug.cgi?id=32149
76 * QtLauncher/main.cpp:
77 (WebInspector::WebInspector):
78 (WebInspector::showEvent):
79 (WebInspector::hideEvent):
80 (MainWindow::MainWindow):
81 (MainWindow::setupUI):
83 2009-12-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
85 Reviewed by Antti Koivisto.
87 Split out the renderPrivate in two methods, one for working on
88 relative coordinates (relative to the viewport) and one for
89 working on absolute coordinates. The latter is more effecient
90 for implementing tiling, as you don't need translate the coords,
91 and because it avoid clipping to the viewport.
93 No behaviour changes, so no new tests.
96 (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
97 (QWebFramePrivate::renderRelativeCoords):
101 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
103 Reviewed by Simon Hausmann.
105 [Qt] Allow removing 'qrc' as a local security origin scheme
107 * tests/qwebpage/tst_qwebpage.cpp:
109 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
111 Reviewed by Simon Hausmann.
113 [Qt] Clean up argument parsing in the QtLauncher
115 * QtLauncher/main.cpp:
117 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
119 Reviewed by Kenneth Rohde Christiansen.
121 [Qt] Prevent the inspector from closing its wrapping widget.
122 This is not necessary anymore since we now hide the embedded
124 https://bugs.webkit.org/show_bug.cgi?id=32149
126 * WebCoreSupport/InspectorClientQt.cpp:
127 (WebCore::InspectorClientQt::showWindow):
128 (WebCore::InspectorClientQt::closeWindow):
130 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
132 Reviewed by Eric Seidel.
134 Fix compilation when SVG is disabled.
137 (qt_drt_pauseSVGAnimation):
139 2009-12-03 Brady Eidson <beidson@apple.com>
141 Reviewed by Sam Weinig.
143 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
145 * WebCoreSupport/FrameLoaderClientQt.cpp:
146 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
147 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
148 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
149 * WebCoreSupport/FrameLoaderClientQt.h:
151 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
153 Reviewed by Timothy Hatcher.
155 Web Inspector: Simplify the settings support in inspector controller.
157 https://bugs.webkit.org/show_bug.cgi?id=32076
159 * WebCoreSupport/InspectorClientQt.cpp:
160 (WebCore::InspectorClientQt::populateSetting):
161 (WebCore::InspectorClientQt::storeSetting):
162 (WebCore::variantToSetting):
163 (WebCore::settingToVariant):
164 * WebCoreSupport/InspectorClientQt.h:
166 2009-12-03 Ben Murdoch <benm@google.com>
168 Reviewed by Brady Eidson.
170 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
171 https://bugs.webkit.org/show_bug.cgi?id=31914
173 * WebCoreSupport/FrameLoaderClientQt.cpp:
174 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
175 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
176 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
177 * WebCoreSupport/FrameLoaderClientQt.h:
179 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
181 Not reviewed. Try to fix Qt build.
184 (qt_drt_pauseSVGAnimation):
186 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
188 Reviewed by Simon Fraser.
190 Add SVG animation test framework with 'snapshot' functionality
191 https://bugs.webkit.org/show_bug.cgi?id=31897
193 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
194 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
196 Implemented just like the existing pauseAnimation* methods for CSS animations.
199 (qt_drt_pauseSVGAnimation):
201 2009-12-01 Daniel Bates <dbates@webkit.org>
203 Reviewed by Kenneth Rohde Christiansen.
205 https://bugs.webkit.org/show_bug.cgi?id=31898
207 Makes QtLauncher default to the http scheme for URLs.
209 * QtLauncher/main.cpp:
210 (MainWindow::MainWindow):
211 (MainWindow::changeLocation):
214 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
216 Reviewed by Simon Hausmann.
218 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
219 https://bugs.webkit.org/show_bug.cgi?id=31961
222 (QWebPage::userAgentForUrl):
224 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
226 Reviewed by Kenneth Rohde Christiansen.
228 [Qt] Fix minor waning in QtWebKit
229 https://bugs.webkit.org/show_bug.cgi?id=31963
231 * tests/qwebpage/tst_qwebpage.cpp:
232 (ErrorPage::extension): Remove info wariable as it is
235 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
237 Reviewed by Kenneth Rohde Christiansen.
239 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
241 https://bugs.webkit.org/show_bug.cgi?id=31401
243 Don't set the event unless there is a focused node we can use
244 for editing afterwards.
247 (QWebPagePrivate::handleSoftwareInputPanel):
248 * tests/qwebpage/tst_qwebpage.cpp:
249 (tst_QWebPage::inputMethods):
251 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
253 Rubber-stamped by Holger Freyther.
255 Removed unused ICO image plugin handler.
257 * Plugins/ICOHandler.cpp: Removed.
258 * Plugins/ICOHandler.h: Removed.
259 * Plugins/Plugins.pro: Removed.
261 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
263 Reviewed by Kenneth Rohde Christiansen.
265 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
266 https://bugs.webkit.org/show_bug.cgi?id=31203
268 The clipping code was making a QWidget visible even if the
269 WebCore::Widget was hidden. Fix the bug by calling setVisible
270 only if the WebCore::Widget Widget::isSelfVisible.
272 * WebCoreSupport/FrameLoaderClientQt.cpp:
273 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
274 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
275 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
277 2009-11-23 David Boddie <dboddie@trolltech.com>
279 Reviewed by Simon Hausmann.
281 Updated the QWebElement documentation with links to examples and
283 Fixed the project file for the webelement snippet and tidied up the
284 markers used for quoting the code.
286 * Api/qwebelement.cpp:
287 * docs/webkitsnippets/webelement/main.cpp:
289 * docs/webkitsnippets/webelement/webelement.pro:
291 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
293 Reviewed by Kenneth Rohde Christiansen.
295 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
296 the wrapped object died before the gc removed the instance.
298 https://bugs.webkit.org/show_bug.cgi?id=31681
300 Added a unit-test to verify that wrapping a QObject with the
301 same identity as a previously but now dead object works.
303 * tests/qwebframe/tst_qwebframe.cpp:
305 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
307 Reviewed by Kenneth Rohde Christiansen.
309 [Qt] Add instantiation tests for QWebInspector.
311 * tests/qwebinspector/qwebinspector.pro: Added.
312 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
313 (tst_QWebInspector::attachAndDestroy):
316 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
318 Reviewed by Kenneth Rohde Christiansen.
320 [Qt] Fix QWebInspector destruction problem.
321 https://bugs.webkit.org/show_bug.cgi?id=31664
324 (QWebPage::~QWebPage):
326 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
328 Reviewed by Simon Hausmann.
330 [Qt] Normalize signal and slot signatures.
332 * Api/qgraphicswebview.cpp:
333 (QGraphicsWebView::setPage):
336 * WebCoreSupport/FrameLoaderClientQt.cpp:
337 (WebCore::FrameLoaderClientQt::setFrame):
338 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
340 * tests/qwebframe/tst_qwebframe.cpp:
341 * tests/qwebpage/tst_qwebpage.cpp:
342 (tst_QWebPage::modified):
343 (tst_QWebPage::database):
345 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
347 Reviewed by Kenneth Rohde Christiansen.
349 [Qt] Remove support for Qt v4.3 or older versions
350 https://bugs.webkit.org/show_bug.cgi?id=29469
352 * Api/qcookiejar.cpp: Removed.
353 * Api/qcookiejar.h: Removed.
354 * Api/qgraphicswebview.cpp:
355 (QGraphicsWebView::event):
359 * Api/qwebkitglobal.h:
360 * Api/qwebnetworkinterface.cpp: Removed.
361 * Api/qwebnetworkinterface.h: Removed.
362 * Api/qwebnetworkinterface_p.h: Removed.
364 (QWebPagePrivate::QWebPagePrivate):
365 (QWebPagePrivate::acceptNavigationRequest):
366 (QWebPage::acceptNavigationRequest):
368 (QWebPage::userAgentForUrl):
375 * QtLauncher/main.cpp:
377 (MainWindow::setupUI):
379 * WebCoreSupport/FrameLoaderClientQt.cpp:
380 (WebCore::FrameLoaderClientQt::download):
381 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
382 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
383 (WebCore::FrameLoaderClientQt::startDownload):
384 (WebCore::FrameLoaderClientQt::createPlugin):
386 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
388 Reviewed by Eric Seidel.
390 [Qt] Add support for displaying deleteButton.
391 https://bugs.webkit.org/show_bug.cgi?id=31560
393 Test: LayoutTests/editing/deleting/5408255.html
395 * Api/qwebsettings.cpp:
397 * Api/qwebsettings.h:
399 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
401 Reviewed by Simon Hausmann.
403 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
405 * tests/qwebelement/tst_qwebelement.cpp:
406 (tst_QWebElement::render):
408 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
410 Reviewed by Tor Arne Vestbø.
412 Clarify and simplify the legal section in the overview documentation,
413 after review with our legal team.
415 * docs/qtwebkit.qdoc:
417 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
419 Reviewed by Simon Hausmann.
421 [Qt] Add QtLauncher support for opening links in the default browser
423 This can be triggered by either the context menu or by clicking a link
424 while holding down the Alt key. Opening a link in a new windows is
425 triggered by holding down Shift.
427 * QtLauncher/main.cpp:
429 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
431 Reviewed by Kenneth Rohde Christiansen.
433 [Qt] QGLLauncher does not support drag&drop of local files
434 https://bugs.webkit.org/show_bug.cgi?id=31057
436 Enable accepting files in QGraphicsWebView.
438 * Api/qgraphicswebview.cpp:
439 (QGraphicsWebView::QGraphicsWebView):
440 (QGraphicsWebView::dragEnterEvent):
442 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
444 Reviewed by Kenneth Christiansen.
446 [Qt] better test coverage for ErrorPageExtension
447 https://bugs.webkit.org/show_bug.cgi?id=31583
449 Improved the coverage of current ErrorPageExtension tests by
450 adding autotests involving frameset and iframes.
452 * tests/qwebpage/tst_qwebpage.cpp:
453 (ErrorPage::extension): Make the ErrorPageExtension
454 to work for all frames, not only the main frame.
455 (tst_QWebPage::errorPageExtension): Stop using
456 the 'frameset.html' resouce in this method since
457 an autotest specific for frameset's is being added.
458 (tst_QWebPage::errorPageExtensionInIFrames): Added.
459 (tst_QWebPage::errorPageExtensionInFrameset): Added.
461 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
463 Reviewed by Kenneth Rohde Christiansen.
465 API documentation fixes.
467 * Api/qgraphicswebview.cpp: Removed duplicate docs.
468 * Api/qwebelement.cpp: Added missing docs.
469 * Api/qwebsettings.cpp: Ditto.
471 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
473 Reviewed by Antti Koivisto.
475 [Qt] Broken back/forward after using ErrorPageExtension to set error page
476 https://bugs.webkit.org/show_bug.cgi?id=30573
478 Implemented autotests for covering the back/forward
479 reset problem involving error pages.
481 * tests/qwebpage/tst_qwebpage.cpp:
482 (tst_QWebPage::errorPageExtension):
484 2009-11-13 Adam Roben <aroben@apple.com>
486 Update for changes to FrameLoaderClient
488 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
489 window objects in isolated worlds are cleared
491 Reviewed by Dave Hyatt.
493 * WebCoreSupport/FrameLoaderClientQt.cpp:
494 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
495 * WebCoreSupport/FrameLoaderClientQt.h:
496 Replaced windowObjectCleared with this function. Does nothing if the
497 passed-in world is not the mainThreadNormalWorld().
499 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
501 Reviewed by Kenneth Rohde Christiansen.
503 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
504 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
506 * Api/qwebsettings.cpp:
507 (QWebSettingsPrivate::apply):
508 (QWebSettings::setMaximumPagesInCache):
510 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
512 Reviewed by Kenneth Rohde Christiansen.
514 [Qt] Fix initial QWebView focus behavior.
516 focusController->setFocused(true) was not always called.
517 https://bugs.webkit.org/show_bug.cgi?id=31466
520 (QWebPagePrivate::focusInEvent):
522 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
524 Reviewed by Simon Hausmann.
526 Update documentation for the Qt API
528 * Api/qgraphicswebview.cpp:
529 * Api/qwebelement.cpp:
531 * Api/qwebsettings.cpp:
534 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
536 Reviewed by Simon Hausmann.
538 Use correct install-path when running qdoc3
542 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
544 Reviewed by Darin Adler.
546 externalRepresentation should take Frame as the argument
547 https://bugs.webkit.org/show_bug.cgi?id=31393
549 No new tests as this is just a refactoring.
552 (QWebFrame::renderTreeDump):
554 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
556 Reviewed by Jan Alonzo.
558 [Qt] Various doc fixes
559 https://bugs.webkit.org/show_bug.cgi?id=31358
561 QWebPage's constructor docs are mentioning "QWebView":
562 "Constructs an empty QWebView with parent".
566 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
568 Reviewed by Kenneth Rohde Christiansen.
570 Custom printing shrink factors
571 https://bugs.webkit.org/show_bug.cgi?id=29042
573 This reverts commit r49769. The public API for this needs to be reviewed
574 before its inclusion in Qt.
576 * Api/qwebsettings.cpp:
577 (QWebSettingsPrivate::apply):
578 (QWebSettings::QWebSettings):
579 * Api/qwebsettings.h:
581 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
583 Reviewed by Kenneth Christiansen.
585 [Qt] Various doc fixes
586 https://bugs.webkit.org/show_bug.cgi?id=31358
588 Fixed wrong documentation: item's dimensions do fit to Web page
591 Kenneth agreed to land this as a followup patch to the
592 just landed documentation patch.
594 * Api/qgraphicswebview.cpp:
596 2009-11-11 David Boddie <dboddie@trolltech.com>
598 Reviewed by Kenneth Christiansen.
600 [Qt] Various doc fixes
601 https://bugs.webkit.org/show_bug.cgi?id=31323
603 Fixed and synchronized QWebView related documentation.
605 * Api/qgraphicswebview.cpp:
608 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
610 Unreviewed buildbot fix.
612 Export a method to the DRT to know if the document has a
616 (qt_drt_hasDocumentElement):
618 2009-11-11 Liang QI <liang.qi@nokia.com>
620 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
622 * tests/qwebframe/qwebframe.pro:
623 * tests/qwebframe/tst_qwebframe.cpp:
624 * tests/qwebpage/qwebpage.pro:
625 * tests/qwebpage/tst_qwebpage.cpp:
627 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
629 Reviewed by Simon Hausmann.
631 Fix a crash in the layout test plugins/document-open.html
634 (QWebFrame::toPlainText):
636 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
638 Reviewed by Tor Arne Vestbø.
640 [Qt] Regression: Preserve the parent of plugin objects when using
641 QtWebKit with only a QWebPage.
643 * WebCoreSupport/FrameLoaderClientQt.cpp:
644 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
646 * tests/qwebpage/tst_qwebpage.cpp:
647 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
648 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
650 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
651 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
652 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
653 plugin parent remains unchanged.
655 2009-11-11 David Boddie <dboddie@trolltech.com>
657 [Qt] Doc: Added internal or hidden placeholder documentation.
661 2009-11-11 Martin Smith <msmith@trolltech.com>
663 [Qt] doc: Changed Trolltech to Nokia
667 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
669 Reviewed by Kenneth Rohde Christiansen.
671 https://bugs.webkit.org/show_bug.cgi?id=31323
672 Fix a few compiler warnings
674 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
675 to make it explicit where the else case belongs
677 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
679 Reviewed by Tor Arne Vestbø.
681 Fix enabling of software input panel when activating editable elements
684 * Api/qgraphicswebview.cpp:
685 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
686 query for input method support.
688 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
689 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
690 test for input method support. Instead query using QWebPageClient
691 and send the SIPR event to the ownerWidget() instead of the view().
692 The latter is null for QGraphicsWebView.
693 * tests/qwebpage/tst_qwebpage.cpp:
694 (EventSpy::EventSpy):
695 (EventSpy::eventFilter):
696 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
697 events are dispatched when activating focusable content.
699 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
701 Unreviewed documentation fixes.
703 Added a few improvements from Jocelyn Turcotte to the
708 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
710 Unreviewed documentation fix.
712 [Qt] Make qwebpage's createWindow not qwebview dependent.
713 https://bugs.webkit.org/show_bug.cgi?id=30771
715 Update documentation to make it clear that a reimplementation
716 of the createWindow method of the associated QWebPage can
717 result in the QWebView::createWindow method to never be called.
721 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
723 Reviewed by Kenneth Rohde Christiansen.
725 [Qt] Few classes have virtual functions but non-virtual destructor
726 https://bugs.webkit.org/show_bug.cgi?id=31269
728 * Api/qgraphicswebview.cpp:
729 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
732 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
734 Reviewed by Kenneth Rohde Christiansen.
736 https://bugs.webkit.org/show_bug.cgi?id=30628
737 Add an API to get all the attributes from a QWebElement.
739 * Api/qwebelement.cpp:
740 (QWebElement::attributesName):
742 * tests/qwebelement/tst_qwebelement.cpp:
743 (tst_QWebElement::listAttributes):
745 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
747 Reviewed by Kenneth Rohde Christiansen.
749 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
750 https://bugs.webkit.org/show_bug.cgi?id=31040
753 (QWebPagePrivate::handleScrolling):
755 2009-11-09 Mark Mentovai <mark@chromium.org>
757 Reviewed by Dan Bernstein.
759 Track "can have scrollbar" state within FrameView independently of the
760 individual scrollbar states in ScrollView.
762 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
763 REGRESSION (r48064): mint.com loses scrollbars after coming out of
766 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
767 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
769 Test: fast/overflow/scrollbar-restored.html
772 (QWebFrame::setScrollBarPolicy):
774 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
776 Reviewed by Kenneth Rohde Christiansen.
778 https://bugs.webkit.org/show_bug.cgi?id=30772
779 Add a non-const iterator to QWebElementCollection.
780 Move the two attributes of the iterator to private.
783 (const_iterator::begin):
784 (const_iterator::end):
785 (const_iterator::constBegin):
786 (const_iterator::constEnd):
787 (const_iterator::iterator::iterator):
788 (const_iterator::iterator::operator*):
789 (const_iterator::iterator::operator==):
790 (const_iterator::iterator::operator!=):
791 (const_iterator::iterator::operator<):
792 (const_iterator::iterator::operator<=):
793 (const_iterator::iterator::operator>):
794 (const_iterator::iterator::operator>=):
795 (const_iterator::iterator::operator++):
796 (const_iterator::iterator::operator--):
797 (const_iterator::iterator::operator+=):
798 (const_iterator::iterator::operator-=):
799 (const_iterator::iterator::operator+):
800 (const_iterator::iterator::operator-):
801 * tests/qwebelement/tst_qwebelement.cpp:
802 (tst_QWebElement::nonConstIterator):
803 (tst_QWebElement::constIterator):
805 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
807 Reviewed by Kenneth Christiansen.
809 [Qt] Remove the sessionStorage setting (per Page)
810 https://bugs.webkit.org/show_bug.cgi?id=31249
812 This setting allows to run sessionStorage on/off on a per page
813 basis. Remove this prematurely exposed API.
815 * Api/qwebsettings.cpp:
816 (QWebSettingsPrivate::apply):
817 (QWebSettings::QWebSettings):
818 * tests/qwebpage/tst_qwebpage.cpp:
819 (tst_QWebPage::database):
820 (tst_QWebPage::testOptionalJSObjects):
822 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
824 Reviewed by Simon Hausmann.
826 [Qt] Remove the QWebPage:webInspectorTriggered signal.
827 User customization of the communication between QWebPage
828 and QWebInspector will be properly designed in the next version.
829 https://bugs.webkit.org/show_bug.cgi?id=30773
831 * Api/qwebinspector.cpp:
833 (QWebPagePrivate::getOrCreateInspector):
834 (QWebPage::triggerAction):
836 * QtLauncher/main.cpp:
837 (MainWindow::MainWindow):
839 2009-11-05 Simon Hausmann <hausmann@webkit.org>
841 Reviewed by Tor Arne Vestbø.
843 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
845 * Api/qgraphicswebview.cpp:
846 (QGraphicsWebView::inputMethodQuery):
847 * Api/qgraphicswebview.h:
849 2009-11-04 Simon Hausmann <hausmann@webkit.org>
851 Reviewed by Tor Arne Vestbø.
853 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
856 * Api/qgraphicswebview.cpp:
857 (QGraphicsWebView::sizeHint):
858 * Api/qgraphicswebview.h:
860 2009-11-04 Simon Hausmann <hausmann@webkit.org>
862 Reviewed by Tor Arne Vestbø.
864 Removed zoomFactoryChanged() signal and added
865 linkClicked() to QGraphicsWebView, for consistency with
868 * Api/qgraphicswebview.cpp:
869 (QGraphicsWebView::setPage):
870 (QGraphicsWebView::setZoomFactor):
871 * Api/qgraphicswebview.h:
873 2009-11-04 Simon Hausmann <hausmann@webkit.org>
875 Reviewed by Tor Arne Vestbø.
877 Added QGraphicsWebView::findText() for convenience and consistency
880 * Api/qgraphicswebview.cpp:
881 (QGraphicsWebView::findText):
882 * Api/qgraphicswebview.h:
884 2009-11-04 Simon Hausmann <hausmann@webkit.org>
886 Reviewed by Tor Arne Vestbø.
888 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
889 consistency with QWebView.
891 * Api/qgraphicswebview.cpp:
892 (QGraphicsWebView::pageAction):
893 (QGraphicsWebView::triggerPageAction):
894 * Api/qgraphicswebview.h:
896 2009-11-04 Simon Hausmann <hausmann@webkit.org>
898 Reviewed by Tor Arne Vestbø.
900 Removed QGraphicsWebView::toHtml() after API review.
902 That's consistent with QWebView and also based on the assumption that
903 toHtml() is called less frequently than setHtml().
905 * Api/qgraphicswebview.cpp:
906 * Api/qgraphicswebview.h:
907 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
908 (tst_QGraphicsWebView::qgraphicswebview):
910 2009-11-04 Simon Hausmann <hausmann@webkit.org>
912 Reviewed by Tor Arne Vestbø.
914 Removed the interactive property of QGraphicsWebView.
916 There are clearly use-cases for this feature, but it will require
917 more work to make this fully work with an enum to have fine-grained
918 control over the interactivity levels. For now it is easy to achieve
919 in user-code what the boolean property did.
921 * Api/qgraphicswebview.cpp:
922 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
923 (QGraphicsWebView::hoverMoveEvent):
924 (QGraphicsWebView::mouseMoveEvent):
925 (QGraphicsWebView::mousePressEvent):
926 (QGraphicsWebView::mouseReleaseEvent):
927 (QGraphicsWebView::mouseDoubleClickEvent):
928 (QGraphicsWebView::keyPressEvent):
929 (QGraphicsWebView::keyReleaseEvent):
930 (QGraphicsWebView::dragLeaveEvent):
931 (QGraphicsWebView::dragMoveEvent):
932 (QGraphicsWebView::dropEvent):
933 (QGraphicsWebView::wheelEvent):
934 (QGraphicsWebView::inputMethodEvent):
935 * Api/qgraphicswebview.h:
936 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
937 (tst_QGraphicsWebView::qgraphicswebview):
939 2009-11-04 Simon Hausmann <hausmann@webkit.org>
941 Reviewed by Tor Arne Vestbø.
943 Make the QGraphicsWebView constructor explicit.
945 * Api/qgraphicswebview.h:
947 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
949 Reviewed by Tor Arne Vestbø.
951 Add support for Shift-PageUp and Shift-PageDown key events.
952 https://bugs.webkit.org/show_bug.cgi?id=31166
954 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
956 * WebCoreSupport/EditorClientQt.cpp:
957 (WebCore::EditorClientQt::handleKeyboardEvent):
959 2009-11-05 Simon Hausmann <hausmann@webkit.org>
961 Last Qt 4.5 build fix (*sigh*)
963 * tests/qwebpage/tst_qwebpage.cpp:
964 (inputMethodHints): inputMethodHints() is only used for
965 Qt 4.6, so guard the whole function.
967 2009-11-05 Simon Hausmann <hausmann@webkit.org>
969 Another prospective build fix against Qt 4.5 (build bot)
971 Don't compile & run the QGraphicsWebView portion of the
972 input methods auto test with Qt 4.5.
974 * tests/qwebpage/tst_qwebpage.cpp:
975 (tst_QWebPage::inputMethods_data):
977 (inputMethodEnabled):
978 (tst_QWebPage::inputMethods):
980 2009-11-05 Simon Hausmann <hausmann@webkit.org>
982 Prospective build fix against Qt 4.5 (build bot)
984 * Api/qgraphicswebview.cpp:
985 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
986 use of Qt 4.6 specific API with #ifdefs.
988 2009-11-01 Simon Hausmann <hausmann@webkit.org>
990 Reviewed by Kenneth Christiansen.
992 [Qt] Fix enabling of input method support on QGraphicsWebView.
993 https://bugs.webkit.org/show_bug.cgi?id=30605
995 Instead of setting the unsupported widget attribute on the
996 QGraphicsWidget in setInputMethodEnabled() set the
997 ItemAcceptsInputMethod GraphicsItem flag directly.
999 Changed the existing input method auto test to run once
1000 on a QWebView and once on a QGraphicsWebView.
1002 * Api/qgraphicswebview.cpp:
1003 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1004 * tests/qwebpage/tst_qwebpage.cpp:
1005 (tst_QWebPage::inputMethods_data):
1007 (inputMethodEnabled):
1008 (tst_QWebPage::inputMethods):
1010 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1012 Reviewed by Kenneth Christiansen.
1014 Added QGraphicsWebView::modified property, for consistency
1017 * Api/qgraphicswebview.cpp:
1018 (QGraphicsWebView::isModified):
1019 * Api/qgraphicswebview.h:
1020 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1021 (tst_QGraphicsWebView::qgraphicswebview):
1023 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1025 Reviewed by Kenneth Christiansen.
1027 Removed status and progress properties of QGraphicsWebView.
1028 Added loadProgress and statusBarMessage signals instead,
1031 * Api/qgraphicswebview.cpp:
1032 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1033 (QGraphicsWebView::setPage):
1034 * Api/qgraphicswebview.h:
1035 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1036 (tst_QGraphicsWebView::qgraphicswebview):
1038 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
1040 Reviewed by Simon Hausmann.
1042 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
1043 https://bugs.webkit.org/show_bug.cgi?id=30979
1045 Decouple QWebViewPrivate from QWebPageClient, and automatically create
1046 QWebPageWidgetClient whenever the view is QWidget based.
1049 (QWebPageWidgetClient::QWebPageWidgetClient):
1050 (QWebPageWidgetClient::scroll):
1051 (QWebPageWidgetClient::update):
1052 (QWebPageWidgetClient::setInputMethodEnabled):
1053 (QWebPageWidgetClient::setInputMethodHint):
1054 (QWebPageWidgetClient::cursor):
1055 (QWebPageWidgetClient::updateCursor):
1056 (QWebPageWidgetClient::palette):
1057 (QWebPageWidgetClient::screenNumber):
1058 (QWebPageWidgetClient::ownerWidget):
1059 (QWebPageWidgetClient::pluginParent):
1060 (QWebPage::setView):
1062 (QWebView::~QWebView):
1063 (QWebView::setPage):
1066 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
1068 Reviewed by Simon Hausmann.
1070 [Qt] Fix build of unit-test after r50454.
1072 * tests/qwebpage/tst_qwebpage.cpp:
1074 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1076 Reviewed by Tor Arne Vestbø.
1078 Make QWebPluginDatabase private API for now.
1080 https://bugs.webkit.org/show_bug.cgi?id=30775
1083 * Api/qwebplugindatabase.cpp:
1084 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
1085 * Api/qwebsettings.cpp:
1086 * Api/qwebsettings.h:
1087 * QtLauncher/main.cpp:
1088 (MainWindow::setupUI):
1091 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1093 Rubber-stamped by Tor Arne Vestbø.
1095 Oops, also remove the API docs of the removed networkRequestStarted() signal.
1099 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1101 Reviewed by Tor Arne Vestbø.
1103 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
1104 property set to the QWebFrame that belongs to the request.
1106 https://bugs.webkit.org/show_bug.cgi?id=29975
1109 * WebCoreSupport/FrameLoaderClientQt.cpp:
1110 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1111 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1112 (WebCore::FrameLoaderClientQt::startDownload):
1113 * tests/qwebpage/tst_qwebpage.cpp:
1114 (tst_QWebPage::loadFinished):
1115 (TestNetworkManager::createRequest):
1116 (tst_QWebPage::originatingObjectInNetworkRequests):
1118 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1120 Reviewed by Adam Barth.
1124 The QWebView should not crash if the stop() method is called from
1125 a function triggered by the loadProgress signal.
1127 A null pointer protection was added in the ProgressTracker::incrementProgress.
1129 New autotest was created.
1131 https://bugs.webkit.org/show_bug.cgi?id=29425
1133 * tests/qwebview/tst_qwebview.cpp:
1134 (WebViewCrashTest::WebViewCrashTest):
1135 (WebViewCrashTest::loading):
1136 (tst_QWebView::crashTests):
1138 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1140 Reviewed by Eric Seidel.
1142 Turn on warnings for QtWebKit for gcc
1143 https://bugs.webkit.org/show_bug.cgi?id=30958
1146 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
1147 to fix compiler warnings.
1148 * WebCoreSupport/FrameLoaderClientQt.cpp:
1149 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
1151 2009-10-30 Evan Stade <estade@chromium.org>
1153 Reviewed by David Levin.
1155 Notify the chrome when the focused node has changed.
1156 https://bugs.webkit.org/show_bug.cgi?id=30832
1158 Added stub implementation for new ChromeClient function.
1160 * WebCoreSupport/ChromeClientQt.cpp:
1161 (WebCore::ChromeClientQt::focusedNodeChanged):
1162 * WebCoreSupport/ChromeClientQt.h:
1164 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1166 Reviewed by Tor Arne Vestbø.
1168 [Qt] Remove the QWebInspector::windowTitleChanged signal,
1169 QEvent::WindowTitleChange can be used to achieve the same.
1170 https://bugs.webkit.org/show_bug.cgi?id=30927
1172 * Api/qwebinspector.cpp:
1173 * Api/qwebinspector.h:
1174 * WebCoreSupport/InspectorClientQt.cpp:
1175 (WebCore::InspectorClientQt::updateWindowTitle):
1177 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1179 Reviewed by Tor Arne Vestbø.
1181 [Qt] Implement DELETE HTTP method for XmlHttpRequest
1182 https://bugs.webkit.org/show_bug.cgi?id=30894
1184 No new tests as this functionality is already tested by the
1185 xmlhttprequest LayoutTests. As this patch depends on an unreleased
1186 version of the dependent QtNetwork library and the tests will be
1187 enabled later once the dependent library is released (and the
1188 buildbot is updated).
1190 * Api/qwebframe.cpp:
1193 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
1195 Reviewed by Tor Arne Vestbø.
1197 Remove QWebView::guessUrlFromString() and replace its use
1198 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
1202 * QGVLauncher/main.cpp:
1204 (WebPage::applyProxy):
1206 * QtLauncher/main.cpp:
1208 (MainWindow::MainWindow):
1209 (MainWindow::changeLocation):
1210 * tests/qwebview/tst_qwebview.cpp:
1212 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1214 Reviewed by Tor Arne Vestbø.
1216 Serialize directly to the stream, and not first to an QByteArray,
1217 that is later serialized. That is slower and also uses more bytes.
1219 * Api/qwebhistory.cpp:
1223 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
1225 Reviewed by Eric Seidel.
1227 [Qt] WebFrame::counterValueForElementById must not be exposed
1228 https://bugs.webkit.org/show_bug.cgi?id=30882
1230 * Api/qwebframe.cpp:
1231 (qt_drt_counterValueForElementById):
1234 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
1236 Reviewed by Darin Adler.
1238 Provide a way to get counter values with layoutTestContoller
1239 https://bugs.webkit.org/show_bug.cgi?id=30555
1241 * Api/qwebframe.cpp:
1242 (QWebFrame::counterValueForElementById):
1243 (QWebHitTestResult::frame):
1246 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
1248 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
1250 [Qt] [API] Make it possible to have 'invisible' loads
1251 https://bugs.webkit.org/show_bug.cgi?id=29248
1253 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
1255 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1257 Reviewed by Tor Arne Vestbø.
1259 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1260 https://bugs.webkit.org/show_bug.cgi?id=30710
1262 Make the versioning internal and enforce it in the WebCore
1263 part. Adjust the comments, as well as remove now dead code.
1265 * Api/qwebhistory.cpp:
1268 * Api/qwebhistory.h:
1270 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1272 Reviewed by Holger Freyther.
1274 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1275 https://bugs.webkit.org/show_bug.cgi?id=30710
1277 Remove the QWebHistory::saveState() and ::restoreState() as
1278 they are inconsistent with the Qt API.
1280 Update unittests to reflect the change.
1282 * Api/qwebhistory.cpp:
1285 * Api/qwebhistory.h:
1286 * tests/qwebhistory/tst_qwebhistory.cpp:
1289 (tst_QWebHistory::saveAndRestore_crash_1):
1290 (tst_QWebHistory::saveAndRestore_crash_2):
1291 (tst_QWebHistory::saveAndRestore_crash_3):
1292 (tst_QWebHistory::clear):
1294 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1296 Reviewed by Holger Freyther.
1298 Complementary fix to bug 30779.
1300 By mistake I used QWeakPointer's toStrongRef() method which docs
1301 explicitly say to not be used in this situation (when the tracked
1302 pointer is devired from QObject). Instead QWeakPointer's data()
1308 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1310 Reviewed by Simon Fraser.
1312 Change HitTestResult methods to use (3d) transformation aware methods
1313 https://bugs.webkit.org/show_bug.cgi?id=27347
1315 The HitTestResult::boundingBox method was removed. The
1316 RenderObject must be used directly. In contrast to the
1317 old HitTestResult::boundingBox method this code must use
1318 a (3d) transformation aware method to not run into an
1319 assert in SVGRenderBase::mapLocalToContainer.
1321 * Api/qwebframe.cpp:
1322 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1324 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1326 Rubberstamped by Oliver Hunt.
1328 Change two methods to be internal for DRT use only.
1330 Part of [Qt] Review all new API in Qt 4.6
1331 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1333 * Api/qwebsecurityorigin.cpp:
1334 (qt_drt_whiteListAccessFromOrigin):
1335 (qt_drt_resetOriginAccessWhiteLists):
1336 (QWebSecurityOrigin::localSchemes):
1337 * Api/qwebsecurityorigin.h:
1339 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1341 Reviewed by Tor Arne Vestbø.
1343 Make sure that initiating a rotation while rotating won't make
1344 it end up at rotation positions that are not a multiply of
1347 * QGVLauncher/main.cpp:
1348 (MainView::animatedFlip):
1350 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1352 Unreviewed Qt build fix.
1354 Update the tests as well to the new API change.
1356 * tests/qwebelement/tst_qwebelement.cpp:
1357 (tst_QWebElement::clear):
1359 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1361 Rubberstamped by Tor Arne Vestbø.
1363 [Qt] QWebElement::removeChildren() should be
1364 QWebElement::removeAllChildren()
1365 https://bugs.webkit.org/show_bug.cgi?id=30630
1367 * Api/qwebelement.cpp:
1368 (QWebElement::removeAllChildren):
1369 * Api/qwebelement.h:
1371 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1373 Reviewed by Antti Koivisto and Holger Freyther.
1375 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1376 https://bugs.webkit.org/show_bug.cgi?id=30779
1378 The fact that it was been set from external objects of qwebpage
1379 and not being deleted internally can lead to dangling references.
1381 * Api/qgraphicswebview.cpp:
1382 (QGraphicsWebView::~QGraphicsWebView):
1384 (QWebPagePrivate::QWebPagePrivate):
1385 (QWebPagePrivate::createContextMenu):
1386 (QWebPagePrivate::handleSoftwareInputPanel):
1387 (QWebPagePrivate::keyPressEvent):
1388 (QWebPage::setView):
1390 (QWebPage::javaScriptAlert):
1391 (QWebPage::javaScriptConfirm):
1392 (QWebPage::javaScriptPrompt):
1393 (QWebPage::shouldInterruptJavaScript):
1394 (QWebPage::createWindow):
1395 (QWebPage::extension):
1396 (QWebPage::chooseFile):
1397 (QWebPage::userAgentForUrl):
1400 (QWebView::~QWebView):
1402 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1404 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1406 Removes the check around the RenderHints property documentation
1407 that was clearly added to synchronize the source and header files
1408 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1411 The documentation has also been updated to ensure that Symbian
1412 users know that there is no actual RenderHints property on their
1417 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1419 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1421 Ensure that qdoc will always see the RenderHints property.
1423 The property was only defined in the header file if the Q_OS_SYMBIAN
1424 symbol was not defined, resulting in the property not showing up
1425 in the Qt documentation just because one platform doesn't support it.
1427 A follow up commit will improve the documentation for the property
1428 and note that it is not supported on the Symbiam platform.
1432 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1434 Reviewed by Tor Arne Vestbø.
1436 [Qt] Reintroduce QWebElementCollection
1438 Revert the patch that has replaced QWebElementCollection
1439 with QList<QWebElement>. Update the tests accordingly.
1441 Remove the constness of the return type of QWebElement operator[].
1443 https://bugs.webkit.org/show_bug.cgi?id=30767
1445 * Api/qwebelement.cpp:
1446 (QWebElement::findAll):
1447 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1448 (QWebElementCollectionPrivate::create):
1449 (QWebElementCollection::QWebElementCollection):
1450 (QWebElementCollection::operator=):
1451 (QWebElementCollection::~QWebElementCollection):
1452 (QWebElementCollection::operator+):
1453 (QWebElementCollection::append):
1454 (QWebElementCollection::count):
1455 (QWebElementCollection::at):
1456 (QWebElementCollection::toList):
1457 * Api/qwebelement.h:
1458 (const_iterator::begin):
1459 (const_iterator::end):
1460 (const_iterator::operator[]):
1461 * Api/qwebframe.cpp:
1462 (QWebFrame::findAllElements):
1464 * QtLauncher/main.cpp:
1465 (MainWindow::selectElements):
1466 * tests/qwebelement/tst_qwebelement.cpp:
1467 (tst_QWebElement::simpleCollection):
1468 (tst_QWebElement::iteration):
1469 (tst_QWebElement::emptyCollection):
1470 (tst_QWebElement::appendCollection):
1471 (tst_QWebElement::nullSelect):
1472 (tst_QWebElement::hasSetFocus):
1473 (tst_QWebElement::render):
1474 * tests/qwebpage/tst_qwebpage.cpp:
1475 (tst_QWebPage::inputMethods):
1477 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1479 Reviewed by Holger Freyther.
1481 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1482 https://bugs.webkit.org/show_bug.cgi?id=30476
1484 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1485 to all QtWebkit executables.
1487 * QGVLauncher/QGVLauncher.pro:
1488 * QtLauncher/QtLauncher.pro:
1489 * tests/benchmarks/loading/tst_loading.pro:
1490 * tests/benchmarks/painting/tst_painting.pro:
1491 * tests/qgraphicswebview/qgraphicswebview.pro:
1492 * tests/qwebelement/qwebelement.pro:
1493 * tests/qwebframe/qwebframe.pro:
1494 * tests/qwebhistory/qwebhistory.pro:
1495 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1496 * tests/qwebpage/qwebpage.pro:
1497 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1498 * tests/qwebview/qwebview.pro:
1500 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1502 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1503 Build fix following bug #30696.
1505 * Api/qwebelement.cpp:
1506 (setupScriptContext):
1507 * Api/qwebframe.cpp:
1508 (QWebFrame::evaluateJavaScript):
1510 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1512 Reviewed by Eric Seidel.
1514 [Qt] Enable track visited links in QWebPage
1515 https://bugs.webkit.org/show_bug.cgi?id=30574
1517 Test: fast/history/clicked-link-is-visited.html
1520 (QWebPagePrivate::QWebPagePrivate):
1522 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1524 Reviewed by Eric Seidel.
1526 [Qt] Add Print Shortcut to QtLauncher
1528 https://bugs.webkit.org/show_bug.cgi?id=30682
1530 * QtLauncher/main.cpp:
1531 (MainWindow::setupUI):
1533 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1535 Rubberstamped by Tor Arne Vestbø.
1537 Code standarlization for QGVLauncher.
1539 1) Made member initilization lists in constructors
1541 2) Made applyProxy method inline as all other methods in
1544 * QGVLauncher/main.cpp:
1546 (WebPage::applyProxy):
1547 (MainView::MainView):
1548 (MainWindow::MainWindow):
1551 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1553 Reviewed by Tor Arne Vestbø.
1555 Add a Y-Axis rotation to QGVLauncher.
1557 It uses the QStateMachine API from Qt 4.6.
1559 * QGVLauncher/main.cpp:
1561 (WebView::setYRotation):
1562 (WebView::yRotation):
1564 (MainView::animatedYFlip):
1565 (SharedScene::SharedScene):
1566 (SharedScene::webView):
1568 (MainWindow::animatedYFlip):
1569 (MainWindow::buildUI):
1571 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1573 Reviewed By Adam Barth.
1575 Add some actions to the menu for cursor debugging.
1577 GraphicsView based launcher only.
1579 * QGVLauncher/main.cpp:
1580 (MainView::setWaitCursor):
1581 (MainView::resetCursor):
1583 (MainWindow::setWaitCursor):
1584 (MainWindow::resetCursor):
1585 (MainWindow::buildUI):
1587 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1589 Rubberstamped by Adam Barth.
1591 Remove clipRenderToViewport as agreed upon in
1592 https://bugs.webkit.org/show_bug.cgi?id=29843
1594 * Api/qwebframe.cpp:
1596 * Api/qwebframe_p.h:
1597 (QWebFramePrivate::QWebFramePrivate):
1599 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1601 Reviewed by Adam Barth.
1603 Update the tests to test the new render functionality, and take
1604 into consideration that render() clips to the frame itself as well
1607 QWebFrame::render() now always clips, so the old tests were bogus.
1609 Rendering pure contents (no scrollbars etc) without clipping can now
1610 be accomplished using QWebFrame::documentElement()->render(...)
1612 * Api/qwebframe.cpp:
1614 * Api/qwebframe_p.h:
1615 (QWebFramePrivate::QWebFramePrivate):
1616 * tests/qwebframe/tst_qwebframe.cpp:
1618 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1620 Rubberstamped by Adam Barth.
1622 As we do not support rendering a QWebFrame without it being clipped
1623 the the frame as well as the viewport, we now set the viewport size
1624 to the size of the contents.
1626 Rendering pure contents (no scrollbars etc) without clipping can be
1627 acomplished using QWebFrame::documentElement()->render(...)
1629 * tests/qwebelement/tst_qwebelement.cpp:
1630 (tst_QWebElement::render):
1632 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1634 Reviewed by Tor Arne Vestbø.
1636 Add menu item to dump the plugin list to the console,
1637 which can be handy for debugging.
1639 * QtLauncher/main.cpp:
1640 (MainWindow::dumpPlugins):
1641 (MainWindow::setupUI):
1643 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1645 Reviewed by Tor Arne Vestbø.
1647 Introduce new render method on QWebFrame, which supports specifying
1648 which layers to render (scrollbars, contents, pan-icon).
1650 * Api/qwebframe.cpp:
1651 (QWebFramePrivate::renderPrivate):
1652 (QWebFrame::render):
1654 * Api/qwebframe_p.h:
1656 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1658 Reviewed by Ariya Hidayat.
1660 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1661 https://bugs.webkit.org/show_bug.cgi?id=30549
1663 Patch reimplements QGraphicsItem's itemChange method, and make
1664 CursorChange event to be emitted after cursor has already been
1667 QWidget::setCursor send the event just after it sets the cursor,
1668 then patch makes both behaviors compatible.
1670 * Api/qgraphicswebview.cpp:
1671 (QGraphicsWebView::itemChange):
1672 * Api/qgraphicswebview.h:
1674 2009-10-19 Nate Chapin <japhet@chromium.org>
1676 Unreviewed, build fix.
1678 Update call to FrameLoader::loadFrameRequest().
1681 (QWebPage::triggerAction):
1683 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1685 Reviewed by Ariya Hidayat.
1687 Add QWebElement::render API which allows rendering of single
1690 * Api/qwebelement.cpp:
1691 (QWebElement::render):
1692 * Api/qwebelement.h:
1693 * tests/qwebelement/tst_qwebelement.cpp:
1694 (tst_QWebElement::render):
1695 * tests/qwebelement/qwebelement.qrc:
1696 * tests/qwebelement/image.png: Added.
1698 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1700 Reviewed by Ariya Hidayat.
1702 QWebPage: Doc: setNetworkAccessManager should only be called once.
1706 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1708 Reviewed by Tor Arne.
1710 Wrong ifdef combination in QGraphicsWebView's event method.
1712 * Api/qgraphicswebview.cpp:
1713 (QGraphicsWebView::event):
1715 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1717 Reviewed by Holger Freyther.
1719 [Qt] Windowed Plugins: Don't crash when client is 0.
1721 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1722 In addition, setFrameRect()/updatePluginWidget() is called even if the
1723 plugin was not succesfully loaded. updatePluginWidget() updates the
1724 window rect which is, in theory, useful to draw something that indicates
1725 that we didn't load successfully.
1727 So, a status check is added to setNPWindowIfNeeded.
1729 https://bugs.webkit.org/show_bug.cgi?id=30380
1731 * tests/qwebpage/qwebpage.pro:
1732 * tests/qwebpage/tst_qwebpage.cpp:
1734 (tst_QWebPage::screenshot_data):
1735 (tst_QWebPage::screenshot):
1736 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1738 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1740 Reviewed by Holger Freyther.
1742 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1744 Fixes various sources of crashes:
1745 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1746 the PluginView is not notified about the deletion of PluginContainer.
1747 2. QWebView destructor does not set client to 0.
1748 3. Sometimes pending paint events are sent after the plugin has died, so add
1749 a check in PluginView::setNPWindowIfNeeded.
1751 https://bugs.webkit.org/show_bug.cgi?id=30354
1754 (QWebView::~QWebView):
1755 * tests/qwebview/qwebview.pro:
1756 * tests/qwebview/tst_qwebview.cpp:
1757 (tst_QWebView::reusePage_data):
1758 (tst_QWebView::reusePage):
1760 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1762 Reviewed by Adam Barth.
1764 https://bugs.webkit.org/show_bug.cgi?id=29042
1766 Allow one to costumize the minimal and maximal shrink factors,
1767 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1768 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1771 * Api/qwebsettings.cpp:
1772 (QWebSettingsPrivate::apply):
1773 (QWebSettings::QWebSettings):
1774 (QWebSettings::setPrintingMinimumShrinkFactor):
1775 (QWebSettings::printingMinimumShrinkFactor):
1776 (QWebSettings::setPrintingMaximumShrinkFactor):
1777 (QWebSettings::printingMaximumShrinkFactor):
1778 * Api/qwebsettings.h:
1780 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1782 Reviewed by Simon Hausmann.
1784 Rename fixedContentsSize property to preferredContentsSize as
1785 agreed upon with Simon Hausmann and Matthias Ettrich.
1788 (QWebPage::preferredContentsSize):
1789 (QWebPage::setPreferredContentsSize):
1791 * WebCoreSupport/FrameLoaderClientQt.cpp:
1792 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1794 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1796 Reviewed by Simon Hausmann.
1798 [Qt] QGLauncher leaks WebPage object
1799 https://bugs.webkit.org/show_bug.cgi?id=30465
1801 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1806 * QGVLauncher/main.cpp:
1807 (SharedScene::SharedScene):
1808 (SharedScene::~SharedScene):
1810 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1812 Reviewed by Simon Hausmann.
1814 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1815 https://bugs.webkit.org/show_bug.cgi?id=30459
1817 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1818 since QWebPageClient would do the trick.
1820 * Api/qgraphicswebview.cpp:
1821 (QGraphicsWebView::hoverMoveEvent):
1823 (QWebPagePrivate::mouseMoveEvent):
1824 (QWebPagePrivate::mousePressEvent):
1825 (QWebPagePrivate::mouseDoubleClickEvent):
1826 (QWebPagePrivate::mouseReleaseEvent):
1827 (QWebPagePrivate::wheelEvent):
1828 (QWebPagePrivate::dragEnterEvent):
1829 (QWebPagePrivate::dragLeaveEvent):
1830 (QWebPagePrivate::dragMoveEvent):
1832 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1834 Pull out r49676 as it caused build breakges on Symbian
1838 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1840 Reviewed by Tor Arne Vestbø.
1842 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1843 https://bugs.webkit.org/show_bug.cgi?id=30179
1845 Added "c" style static methods for the application to hook up for
1846 receiving notifications when a plugin is created or destroyed.
1850 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1852 Rubberstamped by Tor Arne.
1854 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1856 * QGVLauncher/main.cpp:
1859 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1861 Reviewed by Tor Arne.
1863 [Qt] QGLauncher crashes while closing a window
1864 https://bugs.webkit.org/show_bug.cgi?id=30385
1866 Set page's pageClient reference to '0' at QGWV deletion.
1868 * Api/qgraphicswebview.cpp:
1869 (QGraphicsWebView::~QGraphicsWebView):
1870 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1872 (WebPage::aborting):
1873 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1875 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1877 Reviewed by Simon Hausmann.
1879 [Qt] Make context menu to work in QGraphicsWebView
1880 https://bugs.webkit.org/show_bug.cgi?id=30336
1882 * Api/qgraphicswebview.cpp:
1883 (QGraphicsWebView::event):
1885 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1887 Reviewed by Simon Hausmann.
1889 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1891 This is a bug for two reasons:
1892 1. Everytime we use winId(), we end up creating a native widget. This causes an
1893 unnecessary copy of contents from the backing store to the native widget.
1894 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1897 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1898 (as opposed to QWidget::find(winId)).
1900 https://bugs.webkit.org/show_bug.cgi?id=30170
1902 * Api/qgraphicswebview.cpp:
1903 (QGraphicsWebViewPrivate::ownerWidget):
1905 (QWebViewPrivate::ownerWidget):
1907 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1909 Reviewed by Simon Hausmann.
1911 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1912 https://bugs.webkit.org/show_bug.cgi?id=30296
1914 * tests/qwebpage/tst_qwebpage.cpp:
1915 (ErrorPage::ErrorPage):
1916 (ErrorPage::supportsExtension):
1917 (ErrorPage::extension):
1918 (tst_QWebPage::errorPageExtension):
1920 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1922 Reviewed by Simon Hausmann.
1924 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1925 https://bugs.webkit.org/show_bug.cgi?id=30216
1927 QWebFrame::requestedUrl can be called at any time during the load
1930 * An error handling (whereas an alternate error page for unsuccessful
1932 * A ssl error exception call;
1933 * During navigation notifications/callbacks (titleChanged, urlChanged,
1934 progresses, addHistoryEntry, etc);
1937 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1938 m_loadError's failingURL when an error has occurred, unless it is
1941 Also, m_loadError is now being reset at each the main frame starts a
1942 load, in order to avoid previous load errors footprints.
1944 * Api/qwebframe.cpp:
1945 (QWebFrame::requestedUrl):
1946 * WebCoreSupport/FrameLoaderClientQt.cpp:
1947 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1949 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1951 Reviewed by Simon Hausmann.
1953 [Qt] Missing default value for the default text encoding.
1954 https://bugs.webkit.org/show_bug.cgi?id=30311
1956 QtWebKit has provided a default, hardcoded value for default charset but since
1957 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1958 value has had no effect.
1960 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1961 which is passing now.
1964 (QWebPagePrivate::QWebPagePrivate):
1965 * Api/qwebsettings.cpp:
1966 (QWebSettings::QWebSettings):
1967 * tests/qwebpage/tst_qwebpage.cpp:
1968 (tst_QWebPage::defaultTextEncoding):
1970 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1972 Reviewed by Simon Hausmann.
1974 Implement the new palette() methods on the page clients
1976 * Api/qgraphicswebview.cpp:
1977 (QGraphicsWebViewPrivate::palette):
1979 (QWebViewPrivate::palette):
1981 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1983 Reviewed by Simon Hausmann.
1985 QWebPage's createViewlessPlugin autotest crash fix.
1987 It is possible that plugins that are QWidgets or QGraphicsWidgets
1988 are created before a view has been assigned to a QWebPage. The
1989 plug-ins won't be fully functional, as by design, they should
1990 visualise something, but they won't crash and will stay in memory.
1992 An autotest that covers this use-case, is included.
1994 https://bugs.webkit.org/show_bug.cgi?id=30118
1996 * WebCoreSupport/FrameLoaderClientQt.cpp:
1997 (WebCore::FrameLoaderClientQt::createPlugin):
1998 * tests/qwebpage/tst_qwebpage.cpp:
1999 (PluginTrackedPageWidget::PluginTrackedPageWidget):
2000 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
2001 (PluginTrackedPageGraphicsWidget::createPlugin):
2002 (tst_QWebPage::destroyPlugin):
2003 (tst_QWebPage::createViewlessPlugin):
2005 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
2007 Reviewed by Simon Hausmann.
2009 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
2010 setInputMethodState. This change is needed so widgets such as the s60 software
2011 input panel can receive input method events for password fields.
2012 It's up to the Qt platform to determine which widget will receive input method
2013 events when these flags are set.
2014 Also added implementation for setInputMethodEnabled and setInputMethodHint
2015 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
2016 dependency on QWebView and uses QWebPageClient.
2017 Added autotest to tst_qwebpage.cpp
2018 https://bugs.webkit.org/show_bug.cgi?id=30023
2020 * Api/qgraphicswebview.cpp:
2021 (QGraphicsWebViewPrivate::setInputMethodEnabled):
2022 (QGraphicsWebViewPrivate::setInputMethodHint):
2024 (QWebViewPrivate::setInputMethodEnabled):
2025 (QWebViewPrivate::setInputMethodHint):
2026 * WebCoreSupport/EditorClientQt.cpp:
2027 (WebCore::EditorClientQt::setInputMethodState):
2028 * tests/qwebpage/tst_qwebpage.cpp:
2029 (tst_QWebPage::inputMethods):
2031 2009-10-08 Adam Barth <abarth@webkit.org>
2033 Reviewed by Eric Seidel.
2035 Move executeScript from FrameLoader to ScriptController
2036 https://bugs.webkit.org/show_bug.cgi?id=30200
2040 * Api/qwebframe.cpp:
2041 (QWebFrame::evaluateJavaScript):
2043 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2045 Reviewed by Simon Hausmann.
2047 Part of testOptionalJSObjects autotest was marked as "expect to fail".
2049 Two places in tst_QWebPage::testOptionalJSObjects were marked as
2050 expected to fail. The problem concern checking if a feature is enabled
2051 or disabled. According to discussion on webkit dev mailing list
2052 a disabled feature should be invisible from java script level, but
2053 there are exceptions from the rule. So we decided to disable the test
2056 https://bugs.webkit.org/show_bug.cgi?id=29867
2058 * tests/qwebpage/tst_qwebpage.cpp:
2059 (tst_QWebPage::testOptionalJSObjects):
2061 2009-10-07 Adam Barth <abarth@webkit.org>
2063 Reviewed by Darin Adler.
2065 Factor PolicyChecker out of FrameLoader
2066 https://bugs.webkit.org/show_bug.cgi?id=30155
2068 Move the policy callback to the policy object.
2070 * WebCoreSupport/FrameLoaderClientQt.cpp:
2071 (WebCore::FrameLoaderClientQt::callPolicyFunction):
2073 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
2075 Reviewed by Simon Hausmann.
2077 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
2078 https://bugs.webkit.org/show_bug.cgi?id=30166
2080 * Api/qgraphicswebview.cpp:
2081 (QGraphicsWebViewPrivate::_q_doLoadFinished):
2082 * Api/qgraphicswebview.h:
2083 * QGVLauncher/main.cpp:
2085 (MainWindow::loadFinished):
2087 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
2089 Reviewed by Simon Hausmann.
2091 Add a simple rotation effect to QGVLauncher
2093 https://bugs.webkit.org/show_bug.cgi?id=30162
2095 * QGVLauncher/main.cpp:
2096 (MainView::animatedFlip):
2097 (MainWindow::animatedFlip):
2098 (MainWindow::buildUI):
2100 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2102 Reviewed by Simon Hausmann.
2104 Doc: Document HTML and status as properties.
2106 * Api/qgraphicswebview.cpp:
2108 2009-10-07 Martin Smith <msmith@trolltech.com>
2110 Reviewed by Simon Hausmann.
2112 Fix qdoc warning about disabled renderHints property
2118 2009-10-06 Adam Barth <abarth@webkit.org>
2120 Reviewed by Eric Seidel.
2122 Move setLocalLoadPolicy and friends to SecurityOrigin
2123 https://bugs.webkit.org/show_bug.cgi?id=30110
2128 (QWebPagePrivate::QWebPagePrivate):
2130 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
2132 Reviewed by Ariya Hidayat.
2134 When the drag data contains an image set it on the QDrag so it will be visible to the user.
2136 * WebCoreSupport/DragClientQt.cpp:
2137 (WebCore::DragClientQt::startDrag):
2139 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2141 Reviewed by Timothy Hatcher.
2143 Web Inspector: close inspector client view on
2144 InspectorController::close API call.
2146 In order to run batch web inspector layout tests (and not affect
2147 subsequent tests) we should close inspector client's view upon
2148 InspectorController::close API call.
2150 https://bugs.webkit.org/show_bug.cgi?id=30009
2152 * WebCoreSupport/InspectorClientQt.cpp:
2153 (WebCore::InspectorClientQt::createPage):
2155 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
2157 Reviewed by Simon Hausmann.
2159 [Qt] don't enable input methods on Symbian by default.
2160 https://bugs.webkit.org/show_bug.cgi?id=30117
2162 If input methods are enabled Symbian FEP will be launched on every
2163 pointer event making webpage navigation impossible with QWebView.
2166 (QWebView::QWebView):
2168 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
2170 Reviewed by Simon Hausmann.
2172 QtLauncher: print the number of loaded urls
2174 When using the -r mode print the number of URLs loaded so far. This
2175 is extremly useful when opening the same URL over and over again and
2176 one wants to see the progress.
2178 * QtLauncher/main.cpp:
2179 (URLLoader::URLLoader):
2180 (URLLoader::loadNext):
2182 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2184 Reviewed by Simon Hausmann.
2186 Add screenshot option to menubar
2188 https://bugs.webkit.org/show_bug.cgi?id=30067
2190 * QtLauncher/main.cpp:
2191 (MainWindow::screenshot):
2192 (MainWindow::setupUI):
2194 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2196 Reviewed by Simon Hausmann.
2198 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
2200 https://bugs.webkit.org/show_bug.cgi?id=30068
2202 * QtLauncher/main.cpp:
2203 (MainWindow::MainWindow):
2205 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2207 Rubberstamped by Simon Hausmann.
2209 Add documentation to the ErrorPageExtension.
2213 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
2215 Reviewed by Simon Hausmann.
2217 [Qt] Inform the application when a new request is created
2218 https://bugs.webkit.org/show_bug.cgi?id=29975
2220 Add a signal to QWebPage, to inform the application when a request is created.
2224 * tests/qwebpage/tst_qwebpage.cpp:
2225 (tst_QWebPage::loadFinished):
2227 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2229 Reviewed by Simon Hausmann.
2231 ErrorPageExtension: Add a pointer to the QWebFrame that had
2235 * WebCoreSupport/FrameLoaderClientQt.cpp:
2236 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2238 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2240 Reviewed by Tor Arne Vestbø.
2242 Do not empty the offline web appcache when clearing
2243 memory caches. That one is not in memory, but stored
2246 * Api/qwebsettings.cpp:
2247 (QWebSettings::clearMemoryCaches):
2249 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
2251 Reviewed by Simon Hausmann.
2253 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
2255 https://bugs.webkit.org/show_bug.cgi?id=29710
2257 * Api/qgraphicswebview.cpp:
2258 (QGraphicsWebViewPrivate::pluginParent):
2260 (QWebViewPrivate::pluginParent):
2261 * WebCoreSupport/FrameLoaderClientQt.cpp:
2263 (WebCore::FrameLoaderClientQt::createPlugin):
2265 2009-10-03 Adam Barth <abarth@webkit.org>
2267 Unreview build fix. I wish I had a try server...
2270 (QWebPagePrivate::updateAction):
2272 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
2274 Reviewed by Simon Hausmann.
2276 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2277 Otherwise, it is inconsistent with class declaration of QCursor.
2279 * Api/qgraphicswebview.cpp:
2282 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
2284 Reviewed by Simon Hausmann.
2286 Fix compiler warnings about unused function arguments.
2288 * Api/qwebframe.cpp:
2289 (QWebFrame::scrollBarMinimum):
2291 (QWebPagePrivate::focusInEvent):
2292 (QWebPagePrivate::focusOutEvent):
2293 (QWebPagePrivate::leaveEvent):
2294 (QWebPage::javaScriptAlert):
2295 (QWebPage::javaScriptConfirm):
2296 (QWebPage::javaScriptPrompt):
2297 (QWebPage::triggerAction):
2298 (QWebPage::acceptNavigationRequest):
2299 (QWebPage::chooseFile):
2300 * WebCoreSupport/ChromeClientQt.cpp:
2301 (WebCore::ChromeClientQt::repaint):
2302 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2303 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2304 * WebCoreSupport/ContextMenuClientQt.cpp:
2305 (WebCore::ContextMenuClientQt::downloadURL):
2306 * WebCoreSupport/FrameLoaderClientQt.cpp:
2307 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2308 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2309 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2310 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2311 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2312 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2313 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2314 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2315 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2316 * WebCoreSupport/InspectorClientQt.cpp:
2317 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2318 (WebCore::InspectorClientQt::highlight):
2319 (WebCore::InspectorClientQt::removeSetting):
2321 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2323 Reviewed by Tor Arne Vestbø.
2325 Make Software Input Panel requests work with QGraphicsWebView
2326 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2329 (QWebPagePrivate::mouseReleaseEvent):
2330 (QWebPagePrivate::handleSoftwareInputPanel):
2333 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2335 Reviewed by Tor Arne Vestbø.
2337 Rename QWebGraphicsItem to QGraphicsWebView
2341 * Api/qwebgraphicsitem.cpp: Renamed.
2342 * Api/qwebgraphicsitem.h: Renamed.
2343 * WebKit/qt/QGVLauncher/main.cpp:
2345 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2346 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2348 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2350 Reviewed by Simon Hausmann.
2352 https://bugs.webkit.org/show_bug.cgi?id=29248
2353 [Qt] [API] Make it possible to have 'invisible' loads
2355 Make QWebFrame's setHtml and setContent methods to not change
2356 session and global history at all.
2358 * Api/qwebframe.cpp:
2359 (QWebFrame::setHtml):
2360 (QWebFrame::setContent):
2361 * tests/qwebframe/qwebframe.pro:
2362 * tests/qwebframe/tst_qwebframe.cpp:
2364 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2366 Reviewed by Simon Hausmann.
2368 Fixed software input panel support on web input elements.
2370 Send the RequestSoftwareInputPanel event if the element supports focus
2371 and the element is clicked.
2374 (QWebPagePrivate::QWebPagePrivate):
2375 (QWebPagePrivate::mousePressEvent):
2376 (QWebPagePrivate::mouseReleaseEvent):
2379 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2381 Reviewed by Simon Hausmann.
2383 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2385 https://bugs.webkit.org/show_bug.cgi?id=29681
2387 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2389 * Fixed surrounding text to exclude preedit string
2390 * Avoid emission of microFocusChanged during setComposition()
2393 (QWebPagePrivate::inputMethodEvent):
2394 (QWebPage::inputMethodQuery):
2395 * WebCoreSupport/EditorClientQt.cpp:
2396 (WebCore::EditorClientQt::respondToChangedSelection):
2397 * tests/qwebpage/tst_qwebpage.cpp:
2398 (tst_QWebPage::inputMethods):
2400 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2402 Reviewed by David Hyatt.
2404 Add the failed URL to the ErrorPageExtension, as it is quite
2405 useful for creating error pages.
2408 * WebCoreSupport/FrameLoaderClientQt.cpp:
2409 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2411 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2413 Reviewed by Tor Arne Vestbø.
2415 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2416 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2418 * Api/qwebsettings.cpp:
2419 (QWebSettings::QWebSettings):
2421 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2423 Reviewed by Simon Hausmann.
2425 https://bugs.webkit.org/show_bug.cgi?id=29844
2427 QWebPage dependency autotest fix.
2429 Fix for database() autotest. All opened databases should be removed at
2432 * tests/qwebpage/tst_qwebpage.cpp:
2433 (tst_QWebPage::database):
2435 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2437 Reviewed by Simon Hausmann.
2439 Some QWebHistory and QWebPage autotest crash fixes.
2441 Some checking for m_mainFrame were added. MainFrame should be created
2442 at some point of QWebPage live cicle.
2444 https://bugs.webkit.org/show_bug.cgi?id=29803
2447 (QWebPage::~QWebPage):
2448 (QWebPage::currentFrame):
2449 (QWebPage::history):
2450 (QWebPage::selectedText):
2451 (QWebPage::updatePositionDependentActions):
2452 * tests/qwebpage/tst_qwebpage.cpp:
2453 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2455 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2457 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2459 Implement QWebPage Extension for error pages, incl.
2460 an example on how to use it in QtLauncher.
2462 Correct our use of ResourceError.
2465 (ExtensionOption::):
2466 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2467 * QtLauncher/main.cpp:
2468 (WebPage::supportsExtension):
2469 (MainWindow::MainWindow):
2470 (MainWindow::selectElements):
2471 (WebPage::extension):
2472 * WebCoreSupport/FrameLoaderClientQt.cpp:
2473 (WebCore::FrameLoaderClientQt::cancelledError):
2474 (WebCore::FrameLoaderClientQt::blockedError):
2475 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2476 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2477 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2478 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2479 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2480 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2481 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2482 * WebCoreSupport/FrameLoaderClientQt.h:
2484 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2486 Reviewed by Simon Hausmann.
2488 Compile fix with namespaced Qt.
2490 * Api/qwebinspector_p.h:
2492 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2494 Reviewed by Simon Hausmann.
2496 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2497 clients that want to check/set the focus node of the document.
2498 https://bugs.webkit.org/show_bug.cgi?id=29682
2500 * Api/qwebelement.cpp:
2501 (QWebElement::hasFocus):
2502 (QWebElement::setFocus):
2503 * Api/qwebelement.h:
2504 * tests/qwebelement/tst_qwebelement.cpp:
2505 (tst_QWebElement::hasSetFocus):
2507 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2509 Reviewed by Simon Hausmann.
2511 [Qt] Make tst_qwebframe work if Qt built without SSL support
2512 https://bugs.webkit.org/show_bug.cgi?id=29735
2514 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2516 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2518 Reviewed by Simon Hausmann.
2520 [Qt] Update QWebElement API to remove script related methods.
2521 QWebElement::evaluateScript is the only one kept, these are
2522 removed to postpone most of the QtWebKit<->JavaScript API design
2524 https://bugs.webkit.org/show_bug.cgi?id=29708
2526 * Api/qwebelement.cpp:
2527 * Api/qwebelement.h:
2529 - QWebElement::callFunction
2530 - QWebElement::functions
2531 - QWebElement::scriptableProperty
2532 - QWebElement::setScriptableProperty
2533 - QWebElement::scriptableProperties
2534 * tests/qwebelement/tst_qwebelement.cpp:
2535 (tst_QWebElement::evaluateScript):
2537 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2539 Reviewed by Simon Hausmann.
2541 [Qt] Rename QWebElement::evaluateScript
2542 to QWebElement::evaluateJavaScript.
2543 https://bugs.webkit.org/show_bug.cgi?id=29709
2545 * Api/qwebelement.cpp:
2546 (QWebElement::evaluateJavaScript):
2547 * Api/qwebelement.h:
2548 * tests/qwebelement/tst_qwebelement.cpp:
2549 (tst_QWebElement::evaluateJavaScript):
2551 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2553 Reviewed by Simon Hausmann.
2555 [Qt] Update the stypeProperty API of QWebElement.
2556 https://bugs.webkit.org/show_bug.cgi?id=29711
2558 * Api/qwebelement.cpp:
2559 (QWebElement::styleProperty):
2560 - Merge the stypeProperty and the computedStyleProperty methods
2561 - Remove the default value for the style resolving enum
2562 - Rename ResolveRule to StyleResolveStrategy
2563 (QWebElement::setStyleProperty):
2564 - Remove the priority argument since it is possible to control the
2565 behaviour by adding !important or removing in the value.
2566 * Api/qwebelement.h:
2567 * tests/qwebelement/tst_qwebelement.cpp:
2568 (tst_QWebElement::style):
2569 (tst_QWebElement::computedStyle):
2570 * tests/qwebframe/tst_qwebframe.cpp:
2572 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2574 Reviewed by Alice Liu.
2577 (QWebPagePrivate::QWebPagePrivate):
2578 Pass 0 for new Page constructor argument.
2580 2009-09-24 Martin Smith <msmith@trolltech.com>
2582 Reviewed by Simon Hausmann.
2584 qdoc: Added \brief texts to all the since 4.6 functions.
2586 * Api/qwebhistory.cpp:
2588 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2590 Reviewed by Simon Hausmann.
2592 Prevent QWebPage::setView() from changing the viewport size on the fly
2593 in case the view doesn't actually change. QWebPage::setView() is
2594 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2595 the viewport size to be equal to the size of the whole graphics view.
2597 https://bugs.webkit.org/show_bug.cgi?id=29676
2600 (QWebPage::setView):
2602 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2604 Reviewed by Simon Hausmann.
2606 [Qt] Crash fix in QWebHistory back and forward methods.
2608 QWebHistory::back() and QWebHistory::forward() were crashing on
2609 ASSERT in WebCore::BackForwardList. The methods should check
2610 canGoBack() and canGoForward() at the beginning.
2612 https://bugs.webkit.org/show_bug.cgi?id=29675
2614 * Api/qwebhistory.cpp:
2615 (QWebHistory::back):
2616 (QWebHistory::forward):
2618 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2620 Reviewed by Simon Hausmann.
2622 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2624 In QWebHistory's methods that change item count or current item call
2625 to QWebPage::updateNavigationActions should be executed.
2626 QWebHistory::clear() and QWebHistory::restorState() were changed.
2627 New helper method, QWebPagePrivate accesor, were created in
2628 QWebHistoryPrivate class.
2629 Two autotest were developed.
2631 https://bugs.webkit.org/show_bug.cgi?id=29246
2633 * Api/qwebhistory.cpp:
2634 (QWebHistory::clear):
2635 (QWebHistory::restoreState):
2636 (QWebHistoryPrivate::page):
2637 * Api/qwebhistory_p.h:
2638 * tests/qwebhistory/tst_qwebhistory.cpp:
2639 (tst_QWebHistory::saveAndRestore_1):
2640 (tst_QWebHistory::clear):
2642 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2644 Reviewed by Tor Arne Vestbø.
2646 Need to guard QX11Info include with Q_WS_X11.
2647 That class may not be available (in QT 4.5 for Symbian, for instance).
2648 Completes fixes in r48627 and r48604.
2650 * Api/qwebgraphicsitem.cpp:
2653 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2655 Reviewed by Simon Hausmann.
2657 [Qt] Add default timeout while waiting for signals in QWebPage auto
2659 https://bugs.webkit.org/show_bug.cgi?id=29637
2661 * tests/qwebpage/tst_qwebpage.cpp:
2664 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2666 Reivewed by Simon Hausmann.
2668 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2670 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2671 takes a QWidget*, not a QWebPageClient*
2673 * Api/qwebgraphicsitem.cpp:
2674 (QWebGraphicsItemPrivate::screenNumber):
2676 (QWebViewPrivate::screenNumber):
2678 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2680 Reviewed by Simon Hausmann.
2682 For Qt, platformPageClient() will now return a class derived from
2683 the QWebPageClient, so the patch adapts our Qt hooks to go though
2684 this class and not depend on the QWebView.
2686 * Api/qwebgraphicsitem.cpp:
2687 (QWebGraphicsItemPrivate::scroll):
2688 (QWebGraphicsItemPrivate::update):
2689 (QWebGraphicsItemPrivate::cursor):
2690 (QWebGraphicsItemPrivate::updateCursor):
2691 (QWebGraphicsItemPrivate::screenNumber):
2692 (QWebGraphicsItemPrivate::winId):
2693 (QWebGraphicsItem::event):
2694 (QWebGraphicsItem::setPage):
2695 * Api/qwebgraphicsitem.h:
2697 (QWebPagePrivate::QWebPagePrivate):
2700 (QWebViewPrivate::scroll):
2701 (QWebViewPrivate::update):
2702 (QWebViewPrivate::cursor):
2703 (QWebViewPrivate::updateCursor):
2704 (QWebViewPrivate::screenNumber):
2705 (QWebViewPrivate::winId):
2706 (QWebView::setPage):
2708 * WebCoreSupport/ChromeClientQt.cpp:
2709 (WebCore::ChromeClientQt::repaint):
2710 (WebCore::ChromeClientQt::scroll):
2711 (WebCore::ChromeClientQt::platformPageClient):
2713 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2715 Reviewed by Simon Hausmann.
2717 https://bugs.webkit.org/show_bug.cgi?id=29609
2718 Build fix for windows when using Qt 4.5.0.
2721 (QWebPage::userAgentForUrl):
2723 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2725 Reviewed by Simon Hausmann.
2727 https://bugs.webkit.org/show_bug.cgi?id=29345
2728 The tests of QWebFrame did not use QTRY_VERIFY for
2729 tests involving the event loop.
2731 * tests/qwebframe/tst_qwebframe.cpp:
2732 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2734 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2736 Reviewed by Simon Hausmann.
2738 [Qt] Add an autotest stub for QWebGraphicsItem.
2740 It just calls all the functions and makes sure they don't crash.
2742 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2743 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2744 (tst_QWebGraphicsItem::qwebgraphicsitem):
2747 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2749 Reviewed by Eric Seidel.
2751 Corrected the Symbian specific UID3 values to be assigned
2752 from the "unprotected" pool that permits self-signing of
2753 those test and demo executables. (Added new UID3 values
2754 where they were missing for new components.)
2756 * QGVLauncher/QGVLauncher.pro:
2757 * QtLauncher/QtLauncher.pro:
2758 * tests/benchmarks/loading/tst_loading.pro:
2759 * tests/benchmarks/painting/tst_painting.pro:
2760 * tests/qwebelement/qwebelement.pro:
2761 * tests/qwebframe/qwebframe.pro:
2762 * tests/qwebhistory/qwebhistory.pro:
2763 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2764 * tests/qwebpage/qwebpage.pro:
2765 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2766 * tests/qwebview/qwebview.pro:
2768 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2770 Reviewed by Simon Hausmann.
2772 Make PlatformWindow return something else than PlatformWidget
2773 https://bugs.webkit.org/show_bug.cgi?id=29085
2775 Reflect the rename of platformWindow and it's return type.
2777 * WebCoreSupport/ChromeClientQt.cpp:
2778 (WebCore::ChromeClientQt::platformPageClient):
2779 * WebCoreSupport/ChromeClientQt.h:
2781 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2783 Reviewed by Simon Hausmann.
2785 [Qt] Add persistence support for configuration options in the
2788 * Api/qwebinspector.cpp:
2789 * QtLauncher/main.cpp:
2791 * WebCoreSupport/InspectorClientQt.cpp:
2792 (WebCore::InspectorClientQt::populateSetting):
2793 (WebCore::InspectorClientQt::storeSetting):
2794 (WebCore::variantToSetting):
2795 (WebCore::settingToVariant):
2797 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2799 Reviewed by Ariya Hidayat.
2801 Fixed a bunch of documentation warnings.
2803 * Api/qwebgraphicsitem.cpp:
2804 * Api/qwebplugindatabase.cpp:
2805 * Api/qwebpluginfactory.cpp:
2806 * Api/qwebsecurityorigin.cpp:
2808 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2810 Reviewed by Simon Hausmann.
2812 Added a test that console output works.
2814 * tests/qwebpage/tst_qwebpage.cpp:
2815 (ConsolePage::ConsolePage):
2816 (ConsolePage::javaScriptConsoleMessage):
2817 (tst_QWebPage::consoleOutput):
2819 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2821 Reviewed by Simon Hausmann.
2823 Improve documentation for Page Cache.
2825 * Api/qwebsettings.cpp:
2827 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2829 Reviewed by Simon Hausmann.
2831 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2833 https://bugs.webkit.org/show_bug.cgi?id=29081
2835 The documentation now specifies that the URL has to be a local file
2836 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2837 only two schemes that the current code path accepts.
2839 The auto-test has been updated to reflect this limitation.
2841 At a later point we should concider adding API for the new way of
2842 doing both user defined stylesheets and scripts.
2844 * Api/qwebsettings.cpp:
2845 * tests/qwebpage/tst_qwebpage.cpp:
2847 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2849 Reviewed by Simon Hausmann.
2853 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2856 QMake is not being able to distinguish between release and debug builds
2857 in Symbian build. This is a Symbian toolchain issue.
2860 (QWebPagePrivate::_q_cleanupLeakMessages):
2864 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2866 Reviewed by Simon Hausmann.
2868 Small cosmetic documentation fixlet in the QWebInspector.
2870 * Api/qwebinspector.cpp:
2872 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2874 Reviewed by Eric Seidel.
2876 Detect and add Windows7 properly to the user agent.
2879 (QWebPage::userAgentForUrl):
2881 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2883 Rubberstamped by Kenneth Christiansen.
2885 [Qt] Build fix for previous changes.
2887 * QGVLauncher/main.cpp:
2890 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2892 Unreviewed potential Qt < 4.6 build fix.
2894 * QGVLauncher/main.cpp:
2897 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2899 Reviewed by Simon Hausmann.
2901 Add a "Flip effect" to our GraphicsView based launcher.
2903 * QGVLauncher/main.cpp:
2904 (MainView::resizeEvent):
2907 (MainWindow::buildUI):
2909 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2911 Rubber-stamped by Simon Hausmann.
2913 [Qt] Typo fix. Pass the window object to the Format
2914 menu. In this way Qt can free its internal graphical
2915 objects during exit.
2917 * QtLauncher/main.cpp:
2918 (MainWindow::setupUI):
2920 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2922 Reviewed by Tor Arne Vestbø.
2924 [Qt] Build break fix on gcc ARM.
2926 * Api/qwebgraphicsitem.cpp:
2927 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2929 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2931 Reviewed by Simon Hausmann.
2933 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2934 when the focused frame is null. We do the same check in other places
2935 where we call kit().
2937 * Api/qwebframe.cpp:
2938 (QWebFrame::hasFocus):
2940 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2942 Reviewed by Simon Hausmann.
2944 Fixed a typo found during translation.
2946 * WebCoreSupport/FrameLoaderClientQt.cpp:
2947 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2949 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2951 Reviewed by Simon Hausmann.
2953 [Qt] QWebGraphicsItem should check for null QWebPage.
2954 https://bugs.webkit.org/show_bug.cgi?id=29185
2956 Don't crash in QWebGraphicsItem when the page is still null, by
2957 either checking if it's the case or constructing the default one.
2959 * Api/qwebgraphicsitem.cpp:
2960 (QWebGraphicsItem::icon):
2961 (QWebGraphicsItem::setZoomFactor):
2962 (QWebGraphicsItem::zoomFactor):
2963 (QWebGraphicsItem::setGeometry):
2964 (QWebGraphicsItem::load):
2965 (QWebGraphicsItem::setHtml):
2966 (QWebGraphicsItem::toHtml):
2967 (QWebGraphicsItem::setContent):
2968 (QWebGraphicsItem::history):
2969 (QWebGraphicsItem::settings):
2971 2009-09-11 David Boddie <dboddie@trolltech.com>
2973 Reviewed by Simon Hausmann.
2975 Doc: Note that Netscape plugins are only available on desktop platforms.
2977 * docs/qtwebkit.qdoc:
2979 2009-09-11 Martin Smith <msmith@trolltech.com>
2981 Reviewed by Simon Hausmann.
2983 Adjust the name of the contentspage for the documentation
2984 to the new name used in Qt 4.6.
2986 * docs/qtwebkit.qdoc:
2988 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
2990 Reviewed by Simon Hausmann.
2992 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
2995 * Api/qwebpluginfactory.cpp:
2996 * docs/webkitsnippets/simple/main.cpp:
2998 * docs/webkitsnippets/webpage/main.cpp:
3001 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3003 Reviewed by Simon Hausmann.
3005 Restructure the documentation, both on a file and on a content level.
3007 * Api/qwebdatabase.cpp:
3008 * Api/qwebelement.cpp:
3009 * Api/qwebframe.cpp:
3010 * Api/qwebhistory.cpp:
3011 * Api/qwebhistoryinterface.cpp:
3013 * Api/qwebpluginfactory.cpp:
3014 * Api/qwebsecurityorigin.cpp:
3015 * Api/qwebsettings.cpp:
3017 * docs/qtwebkit.qdoc:
3019 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
3021 Reviewed by Simon Hausmann.
3023 https://bugs.webkit.org/show_bug.cgi?id=29136
3024 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
3026 emit microFocusChange() signal regardless of view.
3028 * WebCoreSupport/EditorClientQt.cpp:
3029 (WebCore::EditorClientQt::setInputMethodState):
3031 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3033 Reviewed by Simon Hausmann.
3035 https://bugs.webkit.org/show_bug.cgi?id=28806
3037 [Qt] Make the WebInspector available as a QWidget.
3040 * Api/qwebelement.cpp:
3041 (QWebElement::enclosingElement):
3042 * Api/qwebelement.h:
3043 * Api/qwebinspector.cpp: Added.
3044 * Api/qwebinspector.h: Added.
3045 * Api/qwebinspector_p.h: Added.
3047 (QWebPagePrivate::QWebPagePrivate):
3048 (QWebPagePrivate::setInspector):
3049 (QWebPagePrivate::getOrCreateInspector):
3050 (QWebPagePrivate::inspectorController):
3051 (QWebPage::~QWebPage):
3052 (QWebPage::triggerAction):
3055 * Api/qwebsettings.cpp:
3056 * QtLauncher/main.cpp:
3057 (MainWindow::MainWindow):
3058 * WebCoreSupport/InspectorClientQt.cpp:
3059 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3060 (WebCore::InspectorClientWebPage::createWindow):
3061 (WebCore::InspectorClientQt::createPage):
3062 (WebCore::InspectorClientQt::showWindow):
3063 (WebCore::InspectorClientQt::closeWindow):
3064 (WebCore::InspectorClientQt::attachWindow):
3065 (WebCore::InspectorClientQt::detachWindow):
3066 (WebCore::InspectorClientQt::updateWindowTitle):
3067 * WebCoreSupport/InspectorClientQt.h:
3068 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
3070 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3072 Reviewed by Eric Seidel.
3074 [Qt] Fix comparison between signed and unsigned integer warnings
3075 https://bugs.webkit.org/show_bug.cgi?id=29162
3077 No functional change.
3079 * Api/qwebelement.cpp:
3080 (QWebElement::findAll):
3081 * Api/qwebhistory.cpp:
3082 (QWebHistory::items):
3083 (QWebHistory::backItems):
3084 (QWebHistory::forwardItems):
3085 (QWebHistory::saveState):
3086 * Api/qwebplugindatabase.cpp:
3087 (QWebPluginDatabase::setSearchPaths):
3088 * WebCoreSupport/ChromeClientQt.cpp:
3089 (WebCore::ChromeClientQt::runOpenPanel):
3090 * WebCoreSupport/FrameLoaderClientQt.cpp:
3091 (WebCore::FrameLoaderClientQt::createPlugin):
3093 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3095 Rubber-stamped by Ariya Hidayat.
3097 Fix a bunch of qdoc warnings: Invalid references, non-standard
3100 * Api/qwebelement.cpp:
3101 * Api/qwebgraphicsitem.cpp:
3102 * Api/qwebsecurityorigin.cpp:
3104 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3106 Reviewed by Ariya Hidayat.
3108 Fix context menu event delivery with QWebGraphicsItem.
3110 Re-implement the correct context menu virtual function using
3111 a QGraphicsSceneContextMenuEvent and forward & handle it in
3114 * Api/qwebgraphicsitem.cpp:
3115 (QWebGraphicsItem::contextMenuEvent):
3116 * Api/qwebgraphicsitem.h:
3118 (QWebPagePrivate::contextMenuEvent):
3122 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3126 Build fix for QtWebKit for Mac after r48219.
3128 qevent and qstyleoption are QtGui interfaces.
3130 * Api/qwebgraphicsitem.cpp:
3131 * Api/qwebgraphicsitem.h:
3133 2009-09-09 Simon Hausmann <hausmann@webkit.org>
3135 Reviewed by Tor Arne Vestbø.
3137 Call the right base class function QGraphicsWidget::event() instead
3138 of skipping it and using QObject::event() instead.
3140 * Api/qwebgraphicsitem.cpp:
3141 (QWebGraphicsItem::event):
3143 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3147 Fix comment at Tor Arne Vestbø's request.
3149 * Api/qwebgraphicsitem.cpp:
3150 (QWebGraphicsItem::sceneEvent):
3151 (QWebGraphicsItem::event):
3153 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3155 Reviewed by Tor Arne Vestbø.
3157 Implement some virtual event methods so that we can fix
3158 event-related bugs in Qt patch releases.
3160 * Api/qwebgraphicsitem.cpp:
3161 (QWebGraphicsItem::sceneEvent):
3162 (QWebGraphicsItem::event):
3163 * Api/qwebgraphicsitem.h:
3165 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
3167 Reviewed by Simon Hausmann.
3169 Add a new QGraphicsWidget based version of the "QWebView"
3170 under the name "QWebGraphicsItem".
3172 https://bugs.webkit.org/show_bug.cgi?id=28862
3174 Includes an alternative Qt launcher using the QGraphicsView.
3177 * Api/qwebgraphicsitem.cpp: Added.
3178 * Api/qwebgraphicsitem.h: Added.
3180 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
3181 * QGVLauncher/main.cpp: Added.
3182 * WebCoreSupport/ChromeClientQt.cpp:
3183 (WebCore::ChromeClientQt::repaint):
3184 (WebCore::ChromeClientQt::scroll):
3186 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3188 Unreviewed build fix.
3190 Potential build fix for Qt 4.5
3193 (QWebPagePrivate::mousePressEvent):
3195 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
3197 Reviewed by Simon Hausmann.
3199 https://bugs.webkit.org/show_bug.cgi?id=29007
3200 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
3202 * tests/qwebframe/tst_qwebframe.cpp:
3204 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3206 Reviewed by Simon Hausmann.
3208 [Qt] Fix unused variable warnings
3209 https://bugs.webkit.org/show_bug.cgi?id=29018
3212 (QWebPagePrivate::keyPressEvent):
3213 * WebCoreSupport/FrameLoaderClientQt.cpp:
3214 (WebCore::FrameLoaderClientQt::startDownload):
3215 (WebCore::FrameLoaderClientQt::createFrame):
3217 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3219 Reviewed by Ariya Hidayat.
3221 [Qt] Use the declaration order in initializer lists
3222 https://bugs.webkit.org/show_bug.cgi?id=29017
3224 * Api/qwebframe_p.h:
3226 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3228 Reviewed by Simon Hausmann.
3230 Add support for handling QGraphicsScene events.
3233 (QWebPagePrivate::mouseMoveEvent):
3234 (QWebPagePrivate::mousePressEvent):
3235 (QWebPagePrivate::mouseDoubleClickEvent):
3236 (QWebPagePrivate::mouseTripleClickEvent):
3237 (QWebPagePrivate::handleClipboard):
3238 (QWebPagePrivate::mouseReleaseEvent):
3239 (QWebPagePrivate::wheelEvent):
3240 (QWebPagePrivate::dragEnterEvent):
3241 (QWebPagePrivate::dragLeaveEvent):
3242 (QWebPagePrivate::dragMoveEvent):
3243 (QWebPagePrivate::dropEvent):
3247 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3249 Reviewed by Simon Hausmann.
3251 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
3252 https://bugs.webkit.org/show_bug.cgi?id=28865
3254 Clean up the unserCursor hack to use the QCursor set
3255 as a property of the QWidget by WebCore::WidgetQt.
3257 Remove all code that are no longer necessary for getting
3258 cursor change events.
3260 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
3261 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
3266 (QWebViewPrivate::QWebViewPrivate):
3269 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3271 Reviewed by Simon Hausmann.
3273 [Qt] QtWebKit single API to enable persistency
3274 https://bugs.webkit.org/show_bug.cgi?id=28682
3276 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3279 If persistency is enabled the default directory for LocalStorage and
3280 ApplicationCache is now based on QDesktopServices::DataLocation and not
3281 QDesktopServices::CacheLocation (as it is expected to keep this data
3282 around after a reboot).
3284 If persistency is enabled initialize HTML5 offline storage as well - this
3285 fixed offline Storage for QtLauncher.
3288 (QWebPagePrivate::QWebPagePrivate):
3289 * Api/qwebsettings.cpp:
3290 (QWebSettings::QWebSettings):
3291 (QWebSettings::enablePersistentStorage):
3292 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3293 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3296 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3298 Reviewed by Simon Hausmann.
3300 Speed up the QWebPluginInfo::supportsMimeType() function.
3301 https://bugs.webkit.org/show_bug.cgi?id=27651
3303 Instead of going through the MIME types list constructed with
3304 mimeTypes() function, look up the internal mimeToDescriptions map.
3306 * Api/qwebplugindatabase.cpp:
3307 (QWebPluginInfo::supportsMimeType):
3309 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3311 Reviewed by Simon Hausmann.
3313 Speed up the QWebPluginInfo::mimeTypes() function.
3314 https://bugs.webkit.org/show_bug.cgi?id=27651
3316 Instead of constructing a list of MIME types every time it is called,
3319 * Api/qwebplugindatabase.cpp:
3320 (QWebPluginInfo::mimeTypes):
3321 (QWebPluginInfo::operator=):
3322 * Api/qwebplugindatabase.h:
3323 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3324 (tst_QWebPluginDatabase::operatorassign_data):
3325 (tst_QWebPluginDatabase::operatorassign):
3327 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3329 Reviewed by Simon Hausmann.
3331 Remove the private classes from QWebPluginDatabase.
3332 https://bugs.webkit.org/show_bug.cgi?id=27651
3334 Instead, hold the PluginDatabase and PluginPackage objects as class
3335 members and take care of refcounting on our own instead of using RefPtr.
3337 This way we not only made the code cleaner but also got rid of
3338 redundant allocations when constructing null QWebPluginInfo objects.
3340 The private classes have been forward-declared and the d-pointers left
3341 to be on the safe side.
3343 * Api/qwebplugindatabase.cpp:
3344 (QWebPluginInfo::QWebPluginInfo):
3345 (QWebPluginInfo::~QWebPluginInfo):
3346 (QWebPluginInfo::name):
3347 (QWebPluginInfo::description):
3348 (QWebPluginInfo::mimeTypes):
3349 (QWebPluginInfo::path):
3350 (QWebPluginInfo::isNull):
3351 (QWebPluginInfo::setEnabled):
3352 (QWebPluginInfo::isEnabled):
3353 (QWebPluginInfo::operator==):
3354 (QWebPluginInfo::operator!=):
3355 (QWebPluginInfo::operator=):
3356 (QWebPluginDatabase::QWebPluginDatabase):
3357 (QWebPluginDatabase::~QWebPluginDatabase):
3358 (QWebPluginDatabase::plugins):
3359 (QWebPluginDatabase::searchPaths):
3360 (QWebPluginDatabase::setSearchPaths):
3361 (QWebPluginDatabase::addSearchPath):
3362 (QWebPluginDatabase::refresh):
3363 (QWebPluginDatabase::pluginForMimeType):
3364 (QWebPluginDatabase::setPreferredPluginForMimeType):
3365 * Api/qwebplugindatabase.h:
3366 * Api/qwebplugindatabase_p.h: Removed.
3368 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3370 Reviewed by Eric Seidel.
3372 [Qt] r47424 broke binary compatibility
3373 https://bugs.webkit.org/show_bug.cgi?id=28996
3375 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3377 * Api/qwebsettings.h:
3379 2009-09-04 Mark Mentovai <mark@chromium.org>
3381 Reviewed by Dave Hyatt.
3383 https://bugs.webkit.org/show_bug.cgi?id=28614
3385 Account for scrollbar state changes that occur during layout.
3387 * Api/qwebframe.cpp:
3388 (QWebFrame::setScrollBarPolicy):
3390 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3391 FrameView and ScrollView.
3393 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3395 Reviewed by Eric Seidel.
3397 [Qt] Fix tst_QWebPage::database autotest failure
3398 https://bugs.webkit.org/show_bug.cgi?id=28961
3400 Make sure that the test case enables the feature before
3401 the feature gets tested
3403 * tests/qwebpage/tst_qwebpage.cpp:
3404 (tst_QWebPage::database):
3406 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3408 Reviewed by Eric Seidel.
3410 Any QtWebKit application crashes on exit if the inspector is
3411 used during the session rather then exiting.
3413 If a QWebView has a QWebPage that is destroyed the QWebView
3414 does not update its pointer and will crash the next time
3415 it access the page pointers (such as in its destructor).
3417 InspectorClientView should not call deleteLater when the page
3418 is destroyed because it does not have a parent and is a top
3419 level widget. close() needs to be called so that QApplication
3420 can exit the application if quitOnLastWindowClosed is set
3421 and a InspectorClientView is the last window, otherwise
3422 the application will never exit.
3425 (QWebViewPrivate::_q_pageDestroyed):
3426 (QWebView::setPage):
3428 * WebCoreSupport/InspectorClientQt.cpp:
3429 (WebCore::InspectorClientView::InspectorClientView):
3431 2009-09-03 Adam Barth <abarth@webkit.org>
3433 Reviewed by eric@webkit.org.
3435 https://bugs.webkit.org/show_bug.cgi?id=24696
3437 Stub implementations of mixed content methods of FrameLoaderClient.
3439 * WebCoreSupport/FrameLoaderClientQt.cpp:
3440 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3441 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3442 * WebCoreSupport/FrameLoaderClientQt.h:
3444 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3446 Reviewed by Eric Seidel.
3448 [Qt] Add a setting to turn SessionStorage on/off
3449 https://bugs.webkit.org/show_bug.cgi?id=28836
3451 * Api/qwebsettings.cpp:
3452 (QWebSettingsPrivate::apply):
3453 (QWebSettings::QWebSettings):
3454 * Api/qwebsettings.h:
3455 * tests/qwebpage/tst_qwebpage.cpp:
3457 (tst_QWebPage::testOptionalJSObjects):
3459 2009-09-02 Richard Moore <rich@kde.org>
3461 Reviewed by Tor Arne Vestbø.
3463 [Qt] Make sure we relayout the page after evaluating JS
3465 https://bugs.webkit.org/show_bug.cgi?id=28235
3467 QtWebKit does not always seem to reflow the page when evaluating
3468 javascript. This patch changes the way evaluateJavaScript works to
3469 use the frameloader which ensures that this is done properly.
3471 * Api/qwebframe.cpp:
3472 (QWebFrame::evaluateJavaScript):
3473 * tests/qwebframe/tst_qwebframe.cpp:
3475 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3477 Reviewed by Holger Freyther.
3479 https://bugs.webkit.org/show_bug.cgi?id=25889
3480 [GTK] scrollbar policy for main frame is not implementable
3482 Add empty implementation for new ChromeClient method.
3484 * WebCoreSupport/ChromeClientQt.h:
3485 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3487 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3489 Reviewed by Ariya Hidayat.
3491 QWebHistory::clear() modifications.
3493 Clear() method was changed. If QWebHistory is empty (there is no
3494 elements even current) clear() do nothing. If there at least one
3495 element clear() will delete everything apart of current.
3497 New autotests in QWebHistory
3499 New autotests were added to QWebHistory. They should check some crashes
3500 in save and restore state process and clear() method and general
3501 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3503 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3505 * Api/qwebhistory.cpp:
3506 (QWebHistory::clear):
3507 * tests/qwebhistory/tst_qwebhistory.cpp:
3508 (tst_QWebHistory::back):
3509 (tst_QWebHistory::forward):
3510 (tst_QWebHistory::saveAndRestore_crash_1):
3511 (tst_QWebHistory::saveAndRestore_crash_2):
3512 (tst_QWebHistory::saveAndRestore_crash_3):
3513 (tst_QWebHistory::clear):
3515 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3517 Reviewed by Ariya Hidayat.
3519 [Qt] Cleanup, old and commented part of source code was removed.
3520 Fix some formatting problems.
3522 https://bugs.webkit.org/show_bug.cgi?id=28712
3524 * Api/qwebhistory_p.h:
3525 (QWebHistoryPrivate::QWebHistoryPrivate):
3527 2009-08-26 Adam Barth <abarth@webkit.org>
3529 Reviewed by Oliver Hunt.
3531 Don't let local files access web URLs
3532 https://bugs.webkit.org/show_bug.cgi?id=28480
3534 * Api/qwebsettings.cpp:
3535 (QWebSettings::QWebSettings):
3537 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3539 Reviewed by Ariya Hidayat.
3541 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3543 * Api/qwebframe.cpp:
3544 (QWebFrame::requestedUrl):
3545 * WebCoreSupport/FrameLoaderClientQt.cpp:
3546 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3547 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3548 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3549 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3550 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3551 * WebCoreSupport/FrameLoaderClientQt.h:
3553 2009-08-22 Adam Barth <abarth@webkit.org>
3555 Revert 47684. We're going to do this later once clients have had a
3556 chance to opt into the setting they like.
3558 * Api/qwebsettings.cpp:
3559 (QWebSettings::QWebSettings):
3561 2009-08-22 Adam Barth <abarth@webkit.org>
3563 Reviewed by Eric Seidel.
3565 Don't let local files access web URLs
3566 https://bugs.webkit.org/show_bug.cgi?id=28480
3568 * Api/qwebsettings.cpp:
3569 (QWebSettings::QWebSettings):
3571 2009-08-19 Aaron Boodman <aa@chromium.org>
3573 Speculative build break fix for qt.
3575 * Api/qwebsecurityorigin.cpp:
3576 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3577 * Api/qwebsecurityorigin.h:
3579 2009-08-19 Aaron Boodman <aa@chromium.org>
3581 Reviewed by David Levin.
3583 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3584 specify a more granular policy for cross-origin XHR access.
3586 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3587 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3588 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3589 * Api/qwebsecurityorigin.h: Ditto.
3591 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3593 Reviwed by Ariya Hidayat.
3595 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3598 * Api/qwebsettings.cpp:
3599 (QWebSettings::QWebSettings):
3600 * Api/qwebsettings.h:
3602 2009-08-17 Darin Adler <darin@apple.com>
3604 Try to fix Qt build again.
3606 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3608 2009-08-17 Darin Adler <darin@apple.com>
3610 Try to fix Qt build.
3612 * WebCoreSupport/EditorClientQt.cpp:
3613 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3614 Use getAttribute(classAttr) instead of className() function.
3616 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3618 Reviewed by Simon Hausmann.
3620 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3621 QWebView::RenderHints property.
3623 This is a temporary fix and will be revereted when the right symbols
3624 exported from Qt lib in S60.
3626 https://bugs.webkit.org/show_bug.cgi?id=28181
3630 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3632 Reviewed by Simon Hausmann.
3634 [Qt] Public API to configure the storage path for HTML5 localStorage
3635 https://bugs.webkit.org/show_bug.cgi?id=28036
3637 Disables LocalStorage for QtWebKit by default by setting
3638 QWebSettings::LocalStorageEnabled to false.
3640 Sets up a default for the LocalStorage path so that clients would only
3641 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3644 Turn on LocalStorage support for QtLauncher and the relevant test
3645 since LocalStorage is now disabled by default for QtWebkit.
3649 (initializeApplicationCachePathIfNecessary):
3650 (QWebPagePrivate::QWebPagePrivate):
3651 * Api/qwebsettings.cpp:
3652 (QWebSettingsPrivate::apply):
3653 (QWebSettings::QWebSettings):
3654 (QWebSettings::setLocalStoragePath):
3655 (QWebSettings::localStoragePath):
3656 * Api/qwebsettings.h:
3657 * QtLauncher/main.cpp:
3659 * tests/qwebpage/tst_qwebpage.cpp:
3660 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3662 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3664 Reviewed by Simon Hausmann.
3666 [Qt] Allow applications to register their own local URL scheme.
3667 https://bugs.webkit.org/show_bug.cgi?id=28240
3669 * Api/qwebsecurityorigin.cpp:
3670 (QWebSecurityOrigin::addLocalScheme):
3671 (QWebSecurityOrigin::removeLocalScheme):
3672 (QWebSecurityOrigin::localSchemes):
3673 * Api/qwebsecurityorigin.h:
3674 * tests/qwebpage/tst_qwebpage.cpp:
3675 (tst_QWebPage::localURLSchemes):
3677 2009-08-13 Mark Rowe <mrowe@apple.com>
3679 Try and fix the Qt build.
3681 * Api/qwebelement.cpp:
3683 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3685 Reviewed by Simon Hausmann.
3687 Doc - Some cleanup on the documentation of QWebElement
3689 * Api/qwebelement.cpp:
3691 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3693 Reviewed by Simon Hausmann.
3695 Symbian target components (library and executable files)
3696 require Unique Identifiers (i.e., UID3).
3697 These identifiers are defined in the respective project
3698 files, conditionally for "symbian" platform.
3700 * QtLauncher/QtLauncher.pro:
3701 * tests/qwebelement/qwebelement.pro:
3702 * tests/qwebframe/qwebframe.pro:
3703 * tests/qwebhistory/qwebhistory.pro:
3704 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3705 * tests/qwebpage/qwebpage.pro:
3706 * tests/qwebview/qwebview.pro:
3708 2009-08-12 George Wright <george.wright@torchmobile.com>
3710 Reviewed by Adam Treat.
3712 Initialise zoom levels independent of whether a URL is valid or not to
3713 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3715 * QtLauncher/main.cpp:
3716 (MainWindow::MainWindow):
3718 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3720 Reviewed by Simon Hausmann.
3722 QtWebKit compile fix for Windows CE
3724 There's no getenv on Windows CE, use qgetenv instead.
3727 (qt_drt_overwritePluginDirectories):
3729 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3731 Reviewed by Simon Hausmann.
3733 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3735 * Api/qwebplugindatabase.cpp:
3736 * Api/qwebsettings.cpp:
3738 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3740 Reviewed by Simon Hausmann.
3742 Doc: there is no group of explicitly shared classes, only one class uses this.
3744 Explain the implications in the QWebHistoryItem documentation, and get rid
3747 * Api/qwebhistory.cpp: