1 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3 Reviewed by Simon Hausmann.
5 [Qt] Allow removing 'qrc' as a local security origin scheme
7 * tests/qwebpage/tst_qwebpage.cpp:
9 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
11 Reviewed by Simon Hausmann.
13 [Qt] Clean up argument parsing in the QtLauncher
15 * QtLauncher/main.cpp:
17 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
19 Reviewed by Kenneth Rohde Christiansen.
21 [Qt] Prevent the inspector from closing its wrapping widget.
22 This is not necessary anymore since we now hide the embedded
24 https://bugs.webkit.org/show_bug.cgi?id=32149
26 * WebCoreSupport/InspectorClientQt.cpp:
27 (WebCore::InspectorClientQt::showWindow):
28 (WebCore::InspectorClientQt::closeWindow):
30 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
32 Reviewed by Eric Seidel.
34 Fix compilation when SVG is disabled.
37 (qt_drt_pauseSVGAnimation):
39 2009-12-03 Brady Eidson <beidson@apple.com>
41 Reviewed by Sam Weinig.
43 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
45 * WebCoreSupport/FrameLoaderClientQt.cpp:
46 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
47 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
48 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
49 * WebCoreSupport/FrameLoaderClientQt.h:
51 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
53 Reviewed by Timothy Hatcher.
55 Web Inspector: Simplify the settings support in inspector controller.
57 https://bugs.webkit.org/show_bug.cgi?id=32076
59 * WebCoreSupport/InspectorClientQt.cpp:
60 (WebCore::InspectorClientQt::populateSetting):
61 (WebCore::InspectorClientQt::storeSetting):
62 (WebCore::variantToSetting):
63 (WebCore::settingToVariant):
64 * WebCoreSupport/InspectorClientQt.h:
66 2009-12-03 Ben Murdoch <benm@google.com>
68 Reviewed by Brady Eidson.
70 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
71 https://bugs.webkit.org/show_bug.cgi?id=31914
73 * WebCoreSupport/FrameLoaderClientQt.cpp:
74 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
75 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
76 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
77 * WebCoreSupport/FrameLoaderClientQt.h:
79 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
81 Not reviewed. Try to fix Qt build.
84 (qt_drt_pauseSVGAnimation):
86 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
88 Reviewed by Simon Fraser.
90 Add SVG animation test framework with 'snapshot' functionality
91 https://bugs.webkit.org/show_bug.cgi?id=31897
93 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
94 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
96 Implemented just like the existing pauseAnimation* methods for CSS animations.
99 (qt_drt_pauseSVGAnimation):
101 2009-12-01 Daniel Bates <dbates@webkit.org>
103 Reviewed by Kenneth Rohde Christiansen.
105 https://bugs.webkit.org/show_bug.cgi?id=31898
107 Makes QtLauncher default to the http scheme for URLs.
109 * QtLauncher/main.cpp:
110 (MainWindow::MainWindow):
111 (MainWindow::changeLocation):
114 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
116 Reviewed by Simon Hausmann.
118 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
119 https://bugs.webkit.org/show_bug.cgi?id=31961
122 (QWebPage::userAgentForUrl):
124 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
126 Reviewed by Kenneth Rohde Christiansen.
128 [Qt] Fix minor waning in QtWebKit
129 https://bugs.webkit.org/show_bug.cgi?id=31963
131 * tests/qwebpage/tst_qwebpage.cpp:
132 (ErrorPage::extension): Remove info wariable as it is
135 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
137 Reviewed by Kenneth Rohde Christiansen.
139 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
141 https://bugs.webkit.org/show_bug.cgi?id=31401
143 Don't set the event unless there is a focused node we can use
144 for editing afterwards.
147 (QWebPagePrivate::handleSoftwareInputPanel):
148 * tests/qwebpage/tst_qwebpage.cpp:
149 (tst_QWebPage::inputMethods):
151 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
153 Rubber-stamped by Holger Freyther.
155 Removed unused ICO image plugin handler.
157 * Plugins/ICOHandler.cpp: Removed.
158 * Plugins/ICOHandler.h: Removed.
159 * Plugins/Plugins.pro: Removed.
161 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
163 Reviewed by Kenneth Rohde Christiansen.
165 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
166 https://bugs.webkit.org/show_bug.cgi?id=31203
168 The clipping code was making a QWidget visible even if the
169 WebCore::Widget was hidden. Fix the bug by calling setVisible
170 only if the WebCore::Widget Widget::isSelfVisible.
172 * WebCoreSupport/FrameLoaderClientQt.cpp:
173 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
174 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
175 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
177 2009-11-23 David Boddie <dboddie@trolltech.com>
179 Reviewed by Simon Hausmann.
181 Updated the QWebElement documentation with links to examples and
183 Fixed the project file for the webelement snippet and tidied up the
184 markers used for quoting the code.
186 * Api/qwebelement.cpp:
187 * docs/webkitsnippets/webelement/main.cpp:
189 * docs/webkitsnippets/webelement/webelement.pro:
191 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
193 Reviewed by Kenneth Rohde Christiansen.
195 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
196 the wrapped object died before the gc removed the instance.
198 https://bugs.webkit.org/show_bug.cgi?id=31681
200 Added a unit-test to verify that wrapping a QObject with the
201 same identity as a previously but now dead object works.
203 * tests/qwebframe/tst_qwebframe.cpp:
205 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
207 Reviewed by Kenneth Rohde Christiansen.
209 [Qt] Add instantiation tests for QWebInspector.
211 * tests/qwebinspector/qwebinspector.pro: Added.
212 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
213 (tst_QWebInspector::attachAndDestroy):
216 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
218 Reviewed by Kenneth Rohde Christiansen.
220 [Qt] Fix QWebInspector destruction problem.
221 https://bugs.webkit.org/show_bug.cgi?id=31664
224 (QWebPage::~QWebPage):
226 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
228 Reviewed by Simon Hausmann.
230 [Qt] Normalize signal and slot signatures.
232 * Api/qgraphicswebview.cpp:
233 (QGraphicsWebView::setPage):
236 * WebCoreSupport/FrameLoaderClientQt.cpp:
237 (WebCore::FrameLoaderClientQt::setFrame):
238 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
240 * tests/qwebframe/tst_qwebframe.cpp:
241 * tests/qwebpage/tst_qwebpage.cpp:
242 (tst_QWebPage::modified):
243 (tst_QWebPage::database):
245 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
247 Reviewed by Kenneth Rohde Christiansen.
249 [Qt] Remove support for Qt v4.3 or older versions
250 https://bugs.webkit.org/show_bug.cgi?id=29469
252 * Api/qcookiejar.cpp: Removed.
253 * Api/qcookiejar.h: Removed.
254 * Api/qgraphicswebview.cpp:
255 (QGraphicsWebView::event):
259 * Api/qwebkitglobal.h:
260 * Api/qwebnetworkinterface.cpp: Removed.
261 * Api/qwebnetworkinterface.h: Removed.
262 * Api/qwebnetworkinterface_p.h: Removed.
264 (QWebPagePrivate::QWebPagePrivate):
265 (QWebPagePrivate::acceptNavigationRequest):
266 (QWebPage::acceptNavigationRequest):
268 (QWebPage::userAgentForUrl):
275 * QtLauncher/main.cpp:
277 (MainWindow::setupUI):
279 * WebCoreSupport/FrameLoaderClientQt.cpp:
280 (WebCore::FrameLoaderClientQt::download):
281 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
282 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
283 (WebCore::FrameLoaderClientQt::startDownload):
284 (WebCore::FrameLoaderClientQt::createPlugin):
286 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
288 Reviewed by Eric Seidel.
290 [Qt] Add support for displaying deleteButton.
291 https://bugs.webkit.org/show_bug.cgi?id=31560
293 Test: LayoutTests/editing/deleting/5408255.html
295 * Api/qwebsettings.cpp:
297 * Api/qwebsettings.h:
299 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
301 Reviewed by Simon Hausmann.
303 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
305 * tests/qwebelement/tst_qwebelement.cpp:
306 (tst_QWebElement::render):
308 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
310 Reviewed by Tor Arne Vestbø.
312 Clarify and simplify the legal section in the overview documentation,
313 after review with our legal team.
315 * docs/qtwebkit.qdoc:
317 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
319 Reviewed by Simon Hausmann.
321 [Qt] Add QtLauncher support for opening links in the default browser
323 This can be triggered by either the context menu or by clicking a link
324 while holding down the Alt key. Opening a link in a new windows is
325 triggered by holding down Shift.
327 * QtLauncher/main.cpp:
329 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
331 Reviewed by Kenneth Rohde Christiansen.
333 [Qt] QGLLauncher does not support drag&drop of local files
334 https://bugs.webkit.org/show_bug.cgi?id=31057
336 Enable accepting files in QGraphicsWebView.
338 * Api/qgraphicswebview.cpp:
339 (QGraphicsWebView::QGraphicsWebView):
340 (QGraphicsWebView::dragEnterEvent):
342 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
344 Reviewed by Kenneth Christiansen.
346 [Qt] better test coverage for ErrorPageExtension
347 https://bugs.webkit.org/show_bug.cgi?id=31583
349 Improved the coverage of current ErrorPageExtension tests by
350 adding autotests involving frameset and iframes.
352 * tests/qwebpage/tst_qwebpage.cpp:
353 (ErrorPage::extension): Make the ErrorPageExtension
354 to work for all frames, not only the main frame.
355 (tst_QWebPage::errorPageExtension): Stop using
356 the 'frameset.html' resouce in this method since
357 an autotest specific for frameset's is being added.
358 (tst_QWebPage::errorPageExtensionInIFrames): Added.
359 (tst_QWebPage::errorPageExtensionInFrameset): Added.
361 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
363 Reviewed by Kenneth Rohde Christiansen.
365 API documentation fixes.
367 * Api/qgraphicswebview.cpp: Removed duplicate docs.
368 * Api/qwebelement.cpp: Added missing docs.
369 * Api/qwebsettings.cpp: Ditto.
371 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
373 Reviewed by Antti Koivisto.
375 [Qt] Broken back/forward after using ErrorPageExtension to set error page
376 https://bugs.webkit.org/show_bug.cgi?id=30573
378 Implemented autotests for covering the back/forward
379 reset problem involving error pages.
381 * tests/qwebpage/tst_qwebpage.cpp:
382 (tst_QWebPage::errorPageExtension):
384 2009-11-13 Adam Roben <aroben@apple.com>
386 Update for changes to FrameLoaderClient
388 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
389 window objects in isolated worlds are cleared
391 Reviewed by Dave Hyatt.
393 * WebCoreSupport/FrameLoaderClientQt.cpp:
394 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
395 * WebCoreSupport/FrameLoaderClientQt.h:
396 Replaced windowObjectCleared with this function. Does nothing if the
397 passed-in world is not the mainThreadNormalWorld().
399 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
401 Reviewed by Kenneth Rohde Christiansen.
403 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
404 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
406 * Api/qwebsettings.cpp:
407 (QWebSettingsPrivate::apply):
408 (QWebSettings::setMaximumPagesInCache):
410 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
412 Reviewed by Kenneth Rohde Christiansen.
414 [Qt] Fix initial QWebView focus behavior.
416 focusController->setFocused(true) was not always called.
417 https://bugs.webkit.org/show_bug.cgi?id=31466
420 (QWebPagePrivate::focusInEvent):
422 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
424 Reviewed by Simon Hausmann.
426 Update documentation for the Qt API
428 * Api/qgraphicswebview.cpp:
429 * Api/qwebelement.cpp:
431 * Api/qwebsettings.cpp:
434 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
436 Reviewed by Simon Hausmann.
438 Use correct install-path when running qdoc3
442 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
444 Reviewed by Darin Adler.
446 externalRepresentation should take Frame as the argument
447 https://bugs.webkit.org/show_bug.cgi?id=31393
449 No new tests as this is just a refactoring.
452 (QWebFrame::renderTreeDump):
454 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
456 Reviewed by Jan Alonzo.
458 [Qt] Various doc fixes
459 https://bugs.webkit.org/show_bug.cgi?id=31358
461 QWebPage's constructor docs are mentioning "QWebView":
462 "Constructs an empty QWebView with parent".
466 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
468 Reviewed by Kenneth Rohde Christiansen.
470 Custom printing shrink factors
471 https://bugs.webkit.org/show_bug.cgi?id=29042
473 This reverts commit r49769. The public API for this needs to be reviewed
474 before its inclusion in Qt.
476 * Api/qwebsettings.cpp:
477 (QWebSettingsPrivate::apply):
478 (QWebSettings::QWebSettings):
479 * Api/qwebsettings.h:
481 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
483 Reviewed by Kenneth Christiansen.
485 [Qt] Various doc fixes
486 https://bugs.webkit.org/show_bug.cgi?id=31358
488 Fixed wrong documentation: item's dimensions do fit to Web page
491 Kenneth agreed to land this as a followup patch to the
492 just landed documentation patch.
494 * Api/qgraphicswebview.cpp:
496 2009-11-11 David Boddie <dboddie@trolltech.com>
498 Reviewed by Kenneth Christiansen.
500 [Qt] Various doc fixes
501 https://bugs.webkit.org/show_bug.cgi?id=31323
503 Fixed and synchronized QWebView related documentation.
505 * Api/qgraphicswebview.cpp:
508 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
510 Unreviewed buildbot fix.
512 Export a method to the DRT to know if the document has a
516 (qt_drt_hasDocumentElement):
518 2009-11-11 Liang QI <liang.qi@nokia.com>
520 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
522 * tests/qwebframe/qwebframe.pro:
523 * tests/qwebframe/tst_qwebframe.cpp:
524 * tests/qwebpage/qwebpage.pro:
525 * tests/qwebpage/tst_qwebpage.cpp:
527 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
529 Reviewed by Simon Hausmann.
531 Fix a crash in the layout test plugins/document-open.html
534 (QWebFrame::toPlainText):
536 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
538 Reviewed by Tor Arne Vestbø.
540 [Qt] Regression: Preserve the parent of plugin objects when using
541 QtWebKit with only a QWebPage.
543 * WebCoreSupport/FrameLoaderClientQt.cpp:
544 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
546 * tests/qwebpage/tst_qwebpage.cpp:
547 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
548 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
550 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
551 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
552 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
553 plugin parent remains unchanged.
555 2009-11-11 David Boddie <dboddie@trolltech.com>
557 [Qt] Doc: Added internal or hidden placeholder documentation.
561 2009-11-11 Martin Smith <msmith@trolltech.com>
563 [Qt] doc: Changed Trolltech to Nokia
567 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
569 Reviewed by Kenneth Rohde Christiansen.
571 https://bugs.webkit.org/show_bug.cgi?id=31323
572 Fix a few compiler warnings
574 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
575 to make it explicit where the else case belongs
577 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
579 Reviewed by Tor Arne Vestbø.
581 Fix enabling of software input panel when activating editable elements
584 * Api/qgraphicswebview.cpp:
585 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
586 query for input method support.
588 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
589 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
590 test for input method support. Instead query using QWebPageClient
591 and send the SIPR event to the ownerWidget() instead of the view().
592 The latter is null for QGraphicsWebView.
593 * tests/qwebpage/tst_qwebpage.cpp:
594 (EventSpy::EventSpy):
595 (EventSpy::eventFilter):
596 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
597 events are dispatched when activating focusable content.
599 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
601 Unreviewed documentation fixes.
603 Added a few improvements from Jocelyn Turcotte to the
608 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
610 Unreviewed documentation fix.
612 [Qt] Make qwebpage's createWindow not qwebview dependent.
613 https://bugs.webkit.org/show_bug.cgi?id=30771
615 Update documentation to make it clear that a reimplementation
616 of the createWindow method of the associated QWebPage can
617 result in the QWebView::createWindow method to never be called.
621 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
623 Reviewed by Kenneth Rohde Christiansen.
625 [Qt] Few classes have virtual functions but non-virtual destructor
626 https://bugs.webkit.org/show_bug.cgi?id=31269
628 * Api/qgraphicswebview.cpp:
629 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
632 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
634 Reviewed by Kenneth Rohde Christiansen.
636 https://bugs.webkit.org/show_bug.cgi?id=30628
637 Add an API to get all the attributes from a QWebElement.
639 * Api/qwebelement.cpp:
640 (QWebElement::attributesName):
642 * tests/qwebelement/tst_qwebelement.cpp:
643 (tst_QWebElement::listAttributes):
645 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
647 Reviewed by Kenneth Rohde Christiansen.
649 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
650 https://bugs.webkit.org/show_bug.cgi?id=31040
653 (QWebPagePrivate::handleScrolling):
655 2009-11-09 Mark Mentovai <mark@chromium.org>
657 Reviewed by Dan Bernstein.
659 Track "can have scrollbar" state within FrameView independently of the
660 individual scrollbar states in ScrollView.
662 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
663 REGRESSION (r48064): mint.com loses scrollbars after coming out of
666 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
667 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
669 Test: fast/overflow/scrollbar-restored.html
672 (QWebFrame::setScrollBarPolicy):
674 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
676 Reviewed by Kenneth Rohde Christiansen.
678 https://bugs.webkit.org/show_bug.cgi?id=30772
679 Add a non-const iterator to QWebElementCollection.
680 Move the two attributes of the iterator to private.
683 (const_iterator::begin):
684 (const_iterator::end):
685 (const_iterator::constBegin):
686 (const_iterator::constEnd):
687 (const_iterator::iterator::iterator):
688 (const_iterator::iterator::operator*):
689 (const_iterator::iterator::operator==):
690 (const_iterator::iterator::operator!=):
691 (const_iterator::iterator::operator<):
692 (const_iterator::iterator::operator<=):
693 (const_iterator::iterator::operator>):
694 (const_iterator::iterator::operator>=):
695 (const_iterator::iterator::operator++):
696 (const_iterator::iterator::operator--):
697 (const_iterator::iterator::operator+=):
698 (const_iterator::iterator::operator-=):
699 (const_iterator::iterator::operator+):
700 (const_iterator::iterator::operator-):
701 * tests/qwebelement/tst_qwebelement.cpp:
702 (tst_QWebElement::nonConstIterator):
703 (tst_QWebElement::constIterator):
705 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
707 Reviewed by Kenneth Christiansen.
709 [Qt] Remove the sessionStorage setting (per Page)
710 https://bugs.webkit.org/show_bug.cgi?id=31249
712 This setting allows to run sessionStorage on/off on a per page
713 basis. Remove this prematurely exposed API.
715 * Api/qwebsettings.cpp:
716 (QWebSettingsPrivate::apply):
717 (QWebSettings::QWebSettings):
718 * tests/qwebpage/tst_qwebpage.cpp:
719 (tst_QWebPage::database):
720 (tst_QWebPage::testOptionalJSObjects):
722 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
724 Reviewed by Simon Hausmann.
726 [Qt] Remove the QWebPage:webInspectorTriggered signal.
727 User customization of the communication between QWebPage
728 and QWebInspector will be properly designed in the next version.
729 https://bugs.webkit.org/show_bug.cgi?id=30773
731 * Api/qwebinspector.cpp:
733 (QWebPagePrivate::getOrCreateInspector):
734 (QWebPage::triggerAction):
736 * QtLauncher/main.cpp:
737 (MainWindow::MainWindow):
739 2009-11-05 Simon Hausmann <hausmann@webkit.org>
741 Reviewed by Tor Arne Vestbø.
743 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
745 * Api/qgraphicswebview.cpp:
746 (QGraphicsWebView::inputMethodQuery):
747 * Api/qgraphicswebview.h:
749 2009-11-04 Simon Hausmann <hausmann@webkit.org>
751 Reviewed by Tor Arne Vestbø.
753 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
756 * Api/qgraphicswebview.cpp:
757 (QGraphicsWebView::sizeHint):
758 * Api/qgraphicswebview.h:
760 2009-11-04 Simon Hausmann <hausmann@webkit.org>
762 Reviewed by Tor Arne Vestbø.
764 Removed zoomFactoryChanged() signal and added
765 linkClicked() to QGraphicsWebView, for consistency with
768 * Api/qgraphicswebview.cpp:
769 (QGraphicsWebView::setPage):
770 (QGraphicsWebView::setZoomFactor):
771 * Api/qgraphicswebview.h:
773 2009-11-04 Simon Hausmann <hausmann@webkit.org>
775 Reviewed by Tor Arne Vestbø.
777 Added QGraphicsWebView::findText() for convenience and consistency
780 * Api/qgraphicswebview.cpp:
781 (QGraphicsWebView::findText):
782 * Api/qgraphicswebview.h:
784 2009-11-04 Simon Hausmann <hausmann@webkit.org>
786 Reviewed by Tor Arne Vestbø.
788 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
789 consistency with QWebView.
791 * Api/qgraphicswebview.cpp:
792 (QGraphicsWebView::pageAction):
793 (QGraphicsWebView::triggerPageAction):
794 * Api/qgraphicswebview.h:
796 2009-11-04 Simon Hausmann <hausmann@webkit.org>
798 Reviewed by Tor Arne Vestbø.
800 Removed QGraphicsWebView::toHtml() after API review.
802 That's consistent with QWebView and also based on the assumption that
803 toHtml() is called less frequently than setHtml().
805 * Api/qgraphicswebview.cpp:
806 * Api/qgraphicswebview.h:
807 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
808 (tst_QGraphicsWebView::qgraphicswebview):
810 2009-11-04 Simon Hausmann <hausmann@webkit.org>
812 Reviewed by Tor Arne Vestbø.
814 Removed the interactive property of QGraphicsWebView.
816 There are clearly use-cases for this feature, but it will require
817 more work to make this fully work with an enum to have fine-grained
818 control over the interactivity levels. For now it is easy to achieve
819 in user-code what the boolean property did.
821 * Api/qgraphicswebview.cpp:
822 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
823 (QGraphicsWebView::hoverMoveEvent):
824 (QGraphicsWebView::mouseMoveEvent):
825 (QGraphicsWebView::mousePressEvent):
826 (QGraphicsWebView::mouseReleaseEvent):
827 (QGraphicsWebView::mouseDoubleClickEvent):
828 (QGraphicsWebView::keyPressEvent):
829 (QGraphicsWebView::keyReleaseEvent):
830 (QGraphicsWebView::dragLeaveEvent):
831 (QGraphicsWebView::dragMoveEvent):
832 (QGraphicsWebView::dropEvent):
833 (QGraphicsWebView::wheelEvent):
834 (QGraphicsWebView::inputMethodEvent):
835 * Api/qgraphicswebview.h:
836 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
837 (tst_QGraphicsWebView::qgraphicswebview):
839 2009-11-04 Simon Hausmann <hausmann@webkit.org>
841 Reviewed by Tor Arne Vestbø.
843 Make the QGraphicsWebView constructor explicit.
845 * Api/qgraphicswebview.h:
847 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
849 Reviewed by Tor Arne Vestbø.
851 Add support for Shift-PageUp and Shift-PageDown key events.
852 https://bugs.webkit.org/show_bug.cgi?id=31166
854 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
856 * WebCoreSupport/EditorClientQt.cpp:
857 (WebCore::EditorClientQt::handleKeyboardEvent):
859 2009-11-05 Simon Hausmann <hausmann@webkit.org>
861 Last Qt 4.5 build fix (*sigh*)
863 * tests/qwebpage/tst_qwebpage.cpp:
864 (inputMethodHints): inputMethodHints() is only used for
865 Qt 4.6, so guard the whole function.
867 2009-11-05 Simon Hausmann <hausmann@webkit.org>
869 Another prospective build fix against Qt 4.5 (build bot)
871 Don't compile & run the QGraphicsWebView portion of the
872 input methods auto test with Qt 4.5.
874 * tests/qwebpage/tst_qwebpage.cpp:
875 (tst_QWebPage::inputMethods_data):
877 (inputMethodEnabled):
878 (tst_QWebPage::inputMethods):
880 2009-11-05 Simon Hausmann <hausmann@webkit.org>
882 Prospective build fix against Qt 4.5 (build bot)
884 * Api/qgraphicswebview.cpp:
885 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
886 use of Qt 4.6 specific API with #ifdefs.
888 2009-11-01 Simon Hausmann <hausmann@webkit.org>
890 Reviewed by Kenneth Christiansen.
892 [Qt] Fix enabling of input method support on QGraphicsWebView.
893 https://bugs.webkit.org/show_bug.cgi?id=30605
895 Instead of setting the unsupported widget attribute on the
896 QGraphicsWidget in setInputMethodEnabled() set the
897 ItemAcceptsInputMethod GraphicsItem flag directly.
899 Changed the existing input method auto test to run once
900 on a QWebView and once on a QGraphicsWebView.
902 * Api/qgraphicswebview.cpp:
903 (QGraphicsWebViewPrivate::setInputMethodEnabled):
904 * tests/qwebpage/tst_qwebpage.cpp:
905 (tst_QWebPage::inputMethods_data):
907 (inputMethodEnabled):
908 (tst_QWebPage::inputMethods):
910 2009-11-04 Simon Hausmann <hausmann@webkit.org>
912 Reviewed by Kenneth Christiansen.
914 Added QGraphicsWebView::modified property, for consistency
917 * Api/qgraphicswebview.cpp:
918 (QGraphicsWebView::isModified):
919 * Api/qgraphicswebview.h:
920 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
921 (tst_QGraphicsWebView::qgraphicswebview):
923 2009-11-04 Simon Hausmann <hausmann@webkit.org>
925 Reviewed by Kenneth Christiansen.
927 Removed status and progress properties of QGraphicsWebView.
928 Added loadProgress and statusBarMessage signals instead,
931 * Api/qgraphicswebview.cpp:
932 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
933 (QGraphicsWebView::setPage):
934 * Api/qgraphicswebview.h:
935 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
936 (tst_QGraphicsWebView::qgraphicswebview):
938 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
940 Reviewed by Simon Hausmann.
942 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
943 https://bugs.webkit.org/show_bug.cgi?id=30979
945 Decouple QWebViewPrivate from QWebPageClient, and automatically create
946 QWebPageWidgetClient whenever the view is QWidget based.
949 (QWebPageWidgetClient::QWebPageWidgetClient):
950 (QWebPageWidgetClient::scroll):
951 (QWebPageWidgetClient::update):
952 (QWebPageWidgetClient::setInputMethodEnabled):
953 (QWebPageWidgetClient::setInputMethodHint):
954 (QWebPageWidgetClient::cursor):
955 (QWebPageWidgetClient::updateCursor):
956 (QWebPageWidgetClient::palette):
957 (QWebPageWidgetClient::screenNumber):
958 (QWebPageWidgetClient::ownerWidget):
959 (QWebPageWidgetClient::pluginParent):
962 (QWebView::~QWebView):
966 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
968 Reviewed by Simon Hausmann.
970 [Qt] Fix build of unit-test after r50454.
972 * tests/qwebpage/tst_qwebpage.cpp:
974 2009-11-03 Simon Hausmann <hausmann@webkit.org>
976 Reviewed by Tor Arne Vestbø.
978 Make QWebPluginDatabase private API for now.
980 https://bugs.webkit.org/show_bug.cgi?id=30775
983 * Api/qwebplugindatabase.cpp:
984 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
985 * Api/qwebsettings.cpp:
986 * Api/qwebsettings.h:
987 * QtLauncher/main.cpp:
988 (MainWindow::setupUI):
991 2009-11-03 Simon Hausmann <hausmann@webkit.org>
993 Rubber-stamped by Tor Arne Vestbø.
995 Oops, also remove the API docs of the removed networkRequestStarted() signal.
999 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1001 Reviewed by Tor Arne Vestbø.
1003 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
1004 property set to the QWebFrame that belongs to the request.
1006 https://bugs.webkit.org/show_bug.cgi?id=29975
1009 * WebCoreSupport/FrameLoaderClientQt.cpp:
1010 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1011 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1012 (WebCore::FrameLoaderClientQt::startDownload):
1013 * tests/qwebpage/tst_qwebpage.cpp:
1014 (tst_QWebPage::loadFinished):
1015 (TestNetworkManager::createRequest):
1016 (tst_QWebPage::originatingObjectInNetworkRequests):
1018 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1020 Reviewed by Adam Barth.
1024 The QWebView should not crash if the stop() method is called from
1025 a function triggered by the loadProgress signal.
1027 A null pointer protection was added in the ProgressTracker::incrementProgress.
1029 New autotest was created.
1031 https://bugs.webkit.org/show_bug.cgi?id=29425
1033 * tests/qwebview/tst_qwebview.cpp:
1034 (WebViewCrashTest::WebViewCrashTest):
1035 (WebViewCrashTest::loading):
1036 (tst_QWebView::crashTests):
1038 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1040 Reviewed by Eric Seidel.
1042 Turn on warnings for QtWebKit for gcc
1043 https://bugs.webkit.org/show_bug.cgi?id=30958
1046 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
1047 to fix compiler warnings.
1048 * WebCoreSupport/FrameLoaderClientQt.cpp:
1049 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
1051 2009-10-30 Evan Stade <estade@chromium.org>
1053 Reviewed by David Levin.
1055 Notify the chrome when the focused node has changed.
1056 https://bugs.webkit.org/show_bug.cgi?id=30832
1058 Added stub implementation for new ChromeClient function.
1060 * WebCoreSupport/ChromeClientQt.cpp:
1061 (WebCore::ChromeClientQt::focusedNodeChanged):
1062 * WebCoreSupport/ChromeClientQt.h:
1064 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1066 Reviewed by Tor Arne Vestbø.
1068 [Qt] Remove the QWebInspector::windowTitleChanged signal,
1069 QEvent::WindowTitleChange can be used to achieve the same.
1070 https://bugs.webkit.org/show_bug.cgi?id=30927
1072 * Api/qwebinspector.cpp:
1073 * Api/qwebinspector.h:
1074 * WebCoreSupport/InspectorClientQt.cpp:
1075 (WebCore::InspectorClientQt::updateWindowTitle):
1077 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1079 Reviewed by Tor Arne Vestbø.
1081 [Qt] Implement DELETE HTTP method for XmlHttpRequest
1082 https://bugs.webkit.org/show_bug.cgi?id=30894
1084 No new tests as this functionality is already tested by the
1085 xmlhttprequest LayoutTests. As this patch depends on an unreleased
1086 version of the dependent QtNetwork library and the tests will be
1087 enabled later once the dependent library is released (and the
1088 buildbot is updated).
1090 * Api/qwebframe.cpp:
1093 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
1095 Reviewed by Tor Arne Vestbø.
1097 Remove QWebView::guessUrlFromString() and replace its use
1098 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
1102 * QGVLauncher/main.cpp:
1104 (WebPage::applyProxy):
1106 * QtLauncher/main.cpp:
1108 (MainWindow::MainWindow):
1109 (MainWindow::changeLocation):
1110 * tests/qwebview/tst_qwebview.cpp:
1112 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1114 Reviewed by Tor Arne Vestbø.
1116 Serialize directly to the stream, and not first to an QByteArray,
1117 that is later serialized. That is slower and also uses more bytes.
1119 * Api/qwebhistory.cpp:
1123 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
1125 Reviewed by Eric Seidel.
1127 [Qt] WebFrame::counterValueForElementById must not be exposed
1128 https://bugs.webkit.org/show_bug.cgi?id=30882
1130 * Api/qwebframe.cpp:
1131 (qt_drt_counterValueForElementById):
1134 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
1136 Reviewed by Darin Adler.
1138 Provide a way to get counter values with layoutTestContoller
1139 https://bugs.webkit.org/show_bug.cgi?id=30555
1141 * Api/qwebframe.cpp:
1142 (QWebFrame::counterValueForElementById):
1143 (QWebHitTestResult::frame):
1146 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
1148 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
1150 [Qt] [API] Make it possible to have 'invisible' loads
1151 https://bugs.webkit.org/show_bug.cgi?id=29248
1153 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
1155 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1157 Reviewed by Tor Arne Vestbø.
1159 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1160 https://bugs.webkit.org/show_bug.cgi?id=30710
1162 Make the versioning internal and enforce it in the WebCore
1163 part. Adjust the comments, as well as remove now dead code.
1165 * Api/qwebhistory.cpp:
1168 * Api/qwebhistory.h:
1170 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1172 Reviewed by Holger Freyther.
1174 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1175 https://bugs.webkit.org/show_bug.cgi?id=30710
1177 Remove the QWebHistory::saveState() and ::restoreState() as
1178 they are inconsistent with the Qt API.
1180 Update unittests to reflect the change.
1182 * Api/qwebhistory.cpp:
1185 * Api/qwebhistory.h:
1186 * tests/qwebhistory/tst_qwebhistory.cpp:
1189 (tst_QWebHistory::saveAndRestore_crash_1):
1190 (tst_QWebHistory::saveAndRestore_crash_2):
1191 (tst_QWebHistory::saveAndRestore_crash_3):
1192 (tst_QWebHistory::clear):
1194 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1196 Reviewed by Holger Freyther.
1198 Complementary fix to bug 30779.
1200 By mistake I used QWeakPointer's toStrongRef() method which docs
1201 explicitly say to not be used in this situation (when the tracked
1202 pointer is devired from QObject). Instead QWeakPointer's data()
1208 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1210 Reviewed by Simon Fraser.
1212 Change HitTestResult methods to use (3d) transformation aware methods
1213 https://bugs.webkit.org/show_bug.cgi?id=27347
1215 The HitTestResult::boundingBox method was removed. The
1216 RenderObject must be used directly. In contrast to the
1217 old HitTestResult::boundingBox method this code must use
1218 a (3d) transformation aware method to not run into an
1219 assert in SVGRenderBase::mapLocalToContainer.
1221 * Api/qwebframe.cpp:
1222 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1224 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1226 Rubberstamped by Oliver Hunt.
1228 Change two methods to be internal for DRT use only.
1230 Part of [Qt] Review all new API in Qt 4.6
1231 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1233 * Api/qwebsecurityorigin.cpp:
1234 (qt_drt_whiteListAccessFromOrigin):
1235 (qt_drt_resetOriginAccessWhiteLists):
1236 (QWebSecurityOrigin::localSchemes):
1237 * Api/qwebsecurityorigin.h:
1239 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1241 Reviewed by Tor Arne Vestbø.
1243 Make sure that initiating a rotation while rotating won't make
1244 it end up at rotation positions that are not a multiply of
1247 * QGVLauncher/main.cpp:
1248 (MainView::animatedFlip):
1250 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1252 Unreviewed Qt build fix.
1254 Update the tests as well to the new API change.
1256 * tests/qwebelement/tst_qwebelement.cpp:
1257 (tst_QWebElement::clear):
1259 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1261 Rubberstamped by Tor Arne Vestbø.
1263 [Qt] QWebElement::removeChildren() should be
1264 QWebElement::removeAllChildren()
1265 https://bugs.webkit.org/show_bug.cgi?id=30630
1267 * Api/qwebelement.cpp:
1268 (QWebElement::removeAllChildren):
1269 * Api/qwebelement.h:
1271 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1273 Reviewed by Antti Koivisto and Holger Freyther.
1275 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1276 https://bugs.webkit.org/show_bug.cgi?id=30779
1278 The fact that it was been set from external objects of qwebpage
1279 and not being deleted internally can lead to dangling references.
1281 * Api/qgraphicswebview.cpp:
1282 (QGraphicsWebView::~QGraphicsWebView):
1284 (QWebPagePrivate::QWebPagePrivate):
1285 (QWebPagePrivate::createContextMenu):
1286 (QWebPagePrivate::handleSoftwareInputPanel):
1287 (QWebPagePrivate::keyPressEvent):
1288 (QWebPage::setView):
1290 (QWebPage::javaScriptAlert):
1291 (QWebPage::javaScriptConfirm):
1292 (QWebPage::javaScriptPrompt):
1293 (QWebPage::shouldInterruptJavaScript):
1294 (QWebPage::createWindow):
1295 (QWebPage::extension):
1296 (QWebPage::chooseFile):
1297 (QWebPage::userAgentForUrl):
1300 (QWebView::~QWebView):
1302 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1304 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1306 Removes the check around the RenderHints property documentation
1307 that was clearly added to synchronize the source and header files
1308 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1311 The documentation has also been updated to ensure that Symbian
1312 users know that there is no actual RenderHints property on their
1317 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1319 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1321 Ensure that qdoc will always see the RenderHints property.
1323 The property was only defined in the header file if the Q_OS_SYMBIAN
1324 symbol was not defined, resulting in the property not showing up
1325 in the Qt documentation just because one platform doesn't support it.
1327 A follow up commit will improve the documentation for the property
1328 and note that it is not supported on the Symbiam platform.
1332 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1334 Reviewed by Tor Arne Vestbø.
1336 [Qt] Reintroduce QWebElementCollection
1338 Revert the patch that has replaced QWebElementCollection
1339 with QList<QWebElement>. Update the tests accordingly.
1341 Remove the constness of the return type of QWebElement operator[].
1343 https://bugs.webkit.org/show_bug.cgi?id=30767
1345 * Api/qwebelement.cpp:
1346 (QWebElement::findAll):
1347 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1348 (QWebElementCollectionPrivate::create):
1349 (QWebElementCollection::QWebElementCollection):
1350 (QWebElementCollection::operator=):
1351 (QWebElementCollection::~QWebElementCollection):
1352 (QWebElementCollection::operator+):
1353 (QWebElementCollection::append):
1354 (QWebElementCollection::count):
1355 (QWebElementCollection::at):
1356 (QWebElementCollection::toList):
1357 * Api/qwebelement.h:
1358 (const_iterator::begin):
1359 (const_iterator::end):
1360 (const_iterator::operator[]):
1361 * Api/qwebframe.cpp:
1362 (QWebFrame::findAllElements):
1364 * QtLauncher/main.cpp:
1365 (MainWindow::selectElements):
1366 * tests/qwebelement/tst_qwebelement.cpp:
1367 (tst_QWebElement::simpleCollection):
1368 (tst_QWebElement::iteration):
1369 (tst_QWebElement::emptyCollection):
1370 (tst_QWebElement::appendCollection):
1371 (tst_QWebElement::nullSelect):
1372 (tst_QWebElement::hasSetFocus):
1373 (tst_QWebElement::render):
1374 * tests/qwebpage/tst_qwebpage.cpp:
1375 (tst_QWebPage::inputMethods):
1377 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1379 Reviewed by Holger Freyther.
1381 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1382 https://bugs.webkit.org/show_bug.cgi?id=30476
1384 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1385 to all QtWebkit executables.
1387 * QGVLauncher/QGVLauncher.pro:
1388 * QtLauncher/QtLauncher.pro:
1389 * tests/benchmarks/loading/tst_loading.pro:
1390 * tests/benchmarks/painting/tst_painting.pro:
1391 * tests/qgraphicswebview/qgraphicswebview.pro:
1392 * tests/qwebelement/qwebelement.pro:
1393 * tests/qwebframe/qwebframe.pro:
1394 * tests/qwebhistory/qwebhistory.pro:
1395 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1396 * tests/qwebpage/qwebpage.pro:
1397 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1398 * tests/qwebview/qwebview.pro:
1400 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1402 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1403 Build fix following bug #30696.
1405 * Api/qwebelement.cpp:
1406 (setupScriptContext):
1407 * Api/qwebframe.cpp:
1408 (QWebFrame::evaluateJavaScript):
1410 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1412 Reviewed by Eric Seidel.
1414 [Qt] Enable track visited links in QWebPage
1415 https://bugs.webkit.org/show_bug.cgi?id=30574
1417 Test: fast/history/clicked-link-is-visited.html
1420 (QWebPagePrivate::QWebPagePrivate):
1422 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1424 Reviewed by Eric Seidel.
1426 [Qt] Add Print Shortcut to QtLauncher
1428 https://bugs.webkit.org/show_bug.cgi?id=30682
1430 * QtLauncher/main.cpp:
1431 (MainWindow::setupUI):
1433 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1435 Rubberstamped by Tor Arne Vestbø.
1437 Code standarlization for QGVLauncher.
1439 1) Made member initilization lists in constructors
1441 2) Made applyProxy method inline as all other methods in
1444 * QGVLauncher/main.cpp:
1446 (WebPage::applyProxy):
1447 (MainView::MainView):
1448 (MainWindow::MainWindow):
1451 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1453 Reviewed by Tor Arne Vestbø.
1455 Add a Y-Axis rotation to QGVLauncher.
1457 It uses the QStateMachine API from Qt 4.6.
1459 * QGVLauncher/main.cpp:
1461 (WebView::setYRotation):
1462 (WebView::yRotation):
1464 (MainView::animatedYFlip):
1465 (SharedScene::SharedScene):
1466 (SharedScene::webView):
1468 (MainWindow::animatedYFlip):
1469 (MainWindow::buildUI):
1471 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1473 Reviewed By Adam Barth.
1475 Add some actions to the menu for cursor debugging.
1477 GraphicsView based launcher only.
1479 * QGVLauncher/main.cpp:
1480 (MainView::setWaitCursor):
1481 (MainView::resetCursor):
1483 (MainWindow::setWaitCursor):
1484 (MainWindow::resetCursor):
1485 (MainWindow::buildUI):
1487 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1489 Rubberstamped by Adam Barth.
1491 Remove clipRenderToViewport as agreed upon in
1492 https://bugs.webkit.org/show_bug.cgi?id=29843
1494 * Api/qwebframe.cpp:
1496 * Api/qwebframe_p.h:
1497 (QWebFramePrivate::QWebFramePrivate):
1499 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1501 Reviewed by Adam Barth.
1503 Update the tests to test the new render functionality, and take
1504 into consideration that render() clips to the frame itself as well
1507 QWebFrame::render() now always clips, so the old tests were bogus.
1509 Rendering pure contents (no scrollbars etc) without clipping can now
1510 be accomplished using QWebFrame::documentElement()->render(...)
1512 * Api/qwebframe.cpp:
1514 * Api/qwebframe_p.h:
1515 (QWebFramePrivate::QWebFramePrivate):
1516 * tests/qwebframe/tst_qwebframe.cpp:
1518 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1520 Rubberstamped by Adam Barth.
1522 As we do not support rendering a QWebFrame without it being clipped
1523 the the frame as well as the viewport, we now set the viewport size
1524 to the size of the contents.
1526 Rendering pure contents (no scrollbars etc) without clipping can be
1527 acomplished using QWebFrame::documentElement()->render(...)
1529 * tests/qwebelement/tst_qwebelement.cpp:
1530 (tst_QWebElement::render):
1532 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1534 Reviewed by Tor Arne Vestbø.
1536 Add menu item to dump the plugin list to the console,
1537 which can be handy for debugging.
1539 * QtLauncher/main.cpp:
1540 (MainWindow::dumpPlugins):
1541 (MainWindow::setupUI):
1543 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1545 Reviewed by Tor Arne Vestbø.
1547 Introduce new render method on QWebFrame, which supports specifying
1548 which layers to render (scrollbars, contents, pan-icon).
1550 * Api/qwebframe.cpp:
1551 (QWebFramePrivate::renderPrivate):
1552 (QWebFrame::render):
1554 * Api/qwebframe_p.h:
1556 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1558 Reviewed by Ariya Hidayat.
1560 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1561 https://bugs.webkit.org/show_bug.cgi?id=30549
1563 Patch reimplements QGraphicsItem's itemChange method, and make
1564 CursorChange event to be emitted after cursor has already been
1567 QWidget::setCursor send the event just after it sets the cursor,
1568 then patch makes both behaviors compatible.
1570 * Api/qgraphicswebview.cpp:
1571 (QGraphicsWebView::itemChange):
1572 * Api/qgraphicswebview.h:
1574 2009-10-19 Nate Chapin <japhet@chromium.org>
1576 Unreviewed, build fix.
1578 Update call to FrameLoader::loadFrameRequest().
1581 (QWebPage::triggerAction):
1583 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1585 Reviewed by Ariya Hidayat.
1587 Add QWebElement::render API which allows rendering of single
1590 * Api/qwebelement.cpp:
1591 (QWebElement::render):
1592 * Api/qwebelement.h:
1593 * tests/qwebelement/tst_qwebelement.cpp:
1594 (tst_QWebElement::render):
1595 * tests/qwebelement/qwebelement.qrc:
1596 * tests/qwebelement/image.png: Added.
1598 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1600 Reviewed by Ariya Hidayat.
1602 QWebPage: Doc: setNetworkAccessManager should only be called once.
1606 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1608 Reviewed by Tor Arne.
1610 Wrong ifdef combination in QGraphicsWebView's event method.
1612 * Api/qgraphicswebview.cpp:
1613 (QGraphicsWebView::event):
1615 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1617 Reviewed by Holger Freyther.
1619 [Qt] Windowed Plugins: Don't crash when client is 0.
1621 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1622 In addition, setFrameRect()/updatePluginWidget() is called even if the
1623 plugin was not succesfully loaded. updatePluginWidget() updates the
1624 window rect which is, in theory, useful to draw something that indicates
1625 that we didn't load successfully.
1627 So, a status check is added to setNPWindowIfNeeded.
1629 https://bugs.webkit.org/show_bug.cgi?id=30380
1631 * tests/qwebpage/qwebpage.pro:
1632 * tests/qwebpage/tst_qwebpage.cpp:
1634 (tst_QWebPage::screenshot_data):
1635 (tst_QWebPage::screenshot):
1636 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1638 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1640 Reviewed by Holger Freyther.
1642 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1644 Fixes various sources of crashes:
1645 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1646 the PluginView is not notified about the deletion of PluginContainer.
1647 2. QWebView destructor does not set client to 0.
1648 3. Sometimes pending paint events are sent after the plugin has died, so add
1649 a check in PluginView::setNPWindowIfNeeded.
1651 https://bugs.webkit.org/show_bug.cgi?id=30354
1654 (QWebView::~QWebView):
1655 * tests/qwebview/qwebview.pro:
1656 * tests/qwebview/tst_qwebview.cpp:
1657 (tst_QWebView::reusePage_data):
1658 (tst_QWebView::reusePage):
1660 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1662 Reviewed by Adam Barth.
1664 https://bugs.webkit.org/show_bug.cgi?id=29042
1666 Allow one to costumize the minimal and maximal shrink factors,
1667 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1668 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1671 * Api/qwebsettings.cpp:
1672 (QWebSettingsPrivate::apply):
1673 (QWebSettings::QWebSettings):
1674 (QWebSettings::setPrintingMinimumShrinkFactor):
1675 (QWebSettings::printingMinimumShrinkFactor):
1676 (QWebSettings::setPrintingMaximumShrinkFactor):
1677 (QWebSettings::printingMaximumShrinkFactor):
1678 * Api/qwebsettings.h:
1680 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1682 Reviewed by Simon Hausmann.
1684 Rename fixedContentsSize property to preferredContentsSize as
1685 agreed upon with Simon Hausmann and Matthias Ettrich.
1688 (QWebPage::preferredContentsSize):
1689 (QWebPage::setPreferredContentsSize):
1691 * WebCoreSupport/FrameLoaderClientQt.cpp:
1692 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1694 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1696 Reviewed by Simon Hausmann.
1698 [Qt] QGLauncher leaks WebPage object
1699 https://bugs.webkit.org/show_bug.cgi?id=30465
1701 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1706 * QGVLauncher/main.cpp:
1707 (SharedScene::SharedScene):
1708 (SharedScene::~SharedScene):
1710 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1712 Reviewed by Simon Hausmann.
1714 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1715 https://bugs.webkit.org/show_bug.cgi?id=30459
1717 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1718 since QWebPageClient would do the trick.
1720 * Api/qgraphicswebview.cpp:
1721 (QGraphicsWebView::hoverMoveEvent):
1723 (QWebPagePrivate::mouseMoveEvent):
1724 (QWebPagePrivate::mousePressEvent):
1725 (QWebPagePrivate::mouseDoubleClickEvent):
1726 (QWebPagePrivate::mouseReleaseEvent):
1727 (QWebPagePrivate::wheelEvent):
1728 (QWebPagePrivate::dragEnterEvent):
1729 (QWebPagePrivate::dragLeaveEvent):
1730 (QWebPagePrivate::dragMoveEvent):
1732 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1734 Pull out r49676 as it caused build breakges on Symbian
1738 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1740 Reviewed by Tor Arne Vestbø.
1742 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1743 https://bugs.webkit.org/show_bug.cgi?id=30179
1745 Added "c" style static methods for the application to hook up for
1746 receiving notifications when a plugin is created or destroyed.
1750 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1752 Rubberstamped by Tor Arne.
1754 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1756 * QGVLauncher/main.cpp:
1759 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1761 Reviewed by Tor Arne.
1763 [Qt] QGLauncher crashes while closing a window
1764 https://bugs.webkit.org/show_bug.cgi?id=30385
1766 Set page's pageClient reference to '0' at QGWV deletion.
1768 * Api/qgraphicswebview.cpp:
1769 (QGraphicsWebView::~QGraphicsWebView):
1770 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1772 (WebPage::aborting):
1773 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1775 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1777 Reviewed by Simon Hausmann.
1779 [Qt] Make context menu to work in QGraphicsWebView
1780 https://bugs.webkit.org/show_bug.cgi?id=30336
1782 * Api/qgraphicswebview.cpp:
1783 (QGraphicsWebView::event):
1785 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1787 Reviewed by Simon Hausmann.
1789 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1791 This is a bug for two reasons:
1792 1. Everytime we use winId(), we end up creating a native widget. This causes an
1793 unnecessary copy of contents from the backing store to the native widget.
1794 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1797 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1798 (as opposed to QWidget::find(winId)).
1800 https://bugs.webkit.org/show_bug.cgi?id=30170
1802 * Api/qgraphicswebview.cpp:
1803 (QGraphicsWebViewPrivate::ownerWidget):
1805 (QWebViewPrivate::ownerWidget):
1807 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1809 Reviewed by Simon Hausmann.
1811 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1812 https://bugs.webkit.org/show_bug.cgi?id=30296
1814 * tests/qwebpage/tst_qwebpage.cpp:
1815 (ErrorPage::ErrorPage):
1816 (ErrorPage::supportsExtension):
1817 (ErrorPage::extension):
1818 (tst_QWebPage::errorPageExtension):
1820 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1822 Reviewed by Simon Hausmann.
1824 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1825 https://bugs.webkit.org/show_bug.cgi?id=30216
1827 QWebFrame::requestedUrl can be called at any time during the load
1830 * An error handling (whereas an alternate error page for unsuccessful
1832 * A ssl error exception call;
1833 * During navigation notifications/callbacks (titleChanged, urlChanged,
1834 progresses, addHistoryEntry, etc);
1837 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1838 m_loadError's failingURL when an error has occurred, unless it is
1841 Also, m_loadError is now being reset at each the main frame starts a
1842 load, in order to avoid previous load errors footprints.
1844 * Api/qwebframe.cpp:
1845 (QWebFrame::requestedUrl):
1846 * WebCoreSupport/FrameLoaderClientQt.cpp:
1847 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1849 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1851 Reviewed by Simon Hausmann.
1853 [Qt] Missing default value for the default text encoding.
1854 https://bugs.webkit.org/show_bug.cgi?id=30311
1856 QtWebKit has provided a default, hardcoded value for default charset but since
1857 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1858 value has had no effect.
1860 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1861 which is passing now.
1864 (QWebPagePrivate::QWebPagePrivate):
1865 * Api/qwebsettings.cpp:
1866 (QWebSettings::QWebSettings):
1867 * tests/qwebpage/tst_qwebpage.cpp:
1868 (tst_QWebPage::defaultTextEncoding):
1870 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1872 Reviewed by Simon Hausmann.
1874 Implement the new palette() methods on the page clients
1876 * Api/qgraphicswebview.cpp:
1877 (QGraphicsWebViewPrivate::palette):
1879 (QWebViewPrivate::palette):
1881 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1883 Reviewed by Simon Hausmann.
1885 QWebPage's createViewlessPlugin autotest crash fix.
1887 It is possible that plugins that are QWidgets or QGraphicsWidgets
1888 are created before a view has been assigned to a QWebPage. The
1889 plug-ins won't be fully functional, as by design, they should
1890 visualise something, but they won't crash and will stay in memory.
1892 An autotest that covers this use-case, is included.
1894 https://bugs.webkit.org/show_bug.cgi?id=30118
1896 * WebCoreSupport/FrameLoaderClientQt.cpp:
1897 (WebCore::FrameLoaderClientQt::createPlugin):
1898 * tests/qwebpage/tst_qwebpage.cpp:
1899 (PluginTrackedPageWidget::PluginTrackedPageWidget):
1900 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
1901 (PluginTrackedPageGraphicsWidget::createPlugin):
1902 (tst_QWebPage::destroyPlugin):
1903 (tst_QWebPage::createViewlessPlugin):
1905 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
1907 Reviewed by Simon Hausmann.
1909 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
1910 setInputMethodState. This change is needed so widgets such as the s60 software
1911 input panel can receive input method events for password fields.
1912 It's up to the Qt platform to determine which widget will receive input method
1913 events when these flags are set.
1914 Also added implementation for setInputMethodEnabled and setInputMethodHint
1915 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
1916 dependency on QWebView and uses QWebPageClient.
1917 Added autotest to tst_qwebpage.cpp
1918 https://bugs.webkit.org/show_bug.cgi?id=30023
1920 * Api/qgraphicswebview.cpp:
1921 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1922 (QGraphicsWebViewPrivate::setInputMethodHint):
1924 (QWebViewPrivate::setInputMethodEnabled):
1925 (QWebViewPrivate::setInputMethodHint):
1926 * WebCoreSupport/EditorClientQt.cpp:
1927 (WebCore::EditorClientQt::setInputMethodState):
1928 * tests/qwebpage/tst_qwebpage.cpp:
1929 (tst_QWebPage::inputMethods):
1931 2009-10-08 Adam Barth <abarth@webkit.org>
1933 Reviewed by Eric Seidel.
1935 Move executeScript from FrameLoader to ScriptController
1936 https://bugs.webkit.org/show_bug.cgi?id=30200
1940 * Api/qwebframe.cpp:
1941 (QWebFrame::evaluateJavaScript):
1943 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1945 Reviewed by Simon Hausmann.
1947 Part of testOptionalJSObjects autotest was marked as "expect to fail".
1949 Two places in tst_QWebPage::testOptionalJSObjects were marked as
1950 expected to fail. The problem concern checking if a feature is enabled
1951 or disabled. According to discussion on webkit dev mailing list
1952 a disabled feature should be invisible from java script level, but
1953 there are exceptions from the rule. So we decided to disable the test
1956 https://bugs.webkit.org/show_bug.cgi?id=29867
1958 * tests/qwebpage/tst_qwebpage.cpp:
1959 (tst_QWebPage::testOptionalJSObjects):
1961 2009-10-07 Adam Barth <abarth@webkit.org>
1963 Reviewed by Darin Adler.
1965 Factor PolicyChecker out of FrameLoader
1966 https://bugs.webkit.org/show_bug.cgi?id=30155
1968 Move the policy callback to the policy object.
1970 * WebCoreSupport/FrameLoaderClientQt.cpp:
1971 (WebCore::FrameLoaderClientQt::callPolicyFunction):
1973 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
1975 Reviewed by Simon Hausmann.
1977 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
1978 https://bugs.webkit.org/show_bug.cgi?id=30166
1980 * Api/qgraphicswebview.cpp:
1981 (QGraphicsWebViewPrivate::_q_doLoadFinished):
1982 * Api/qgraphicswebview.h:
1983 * QGVLauncher/main.cpp:
1985 (MainWindow::loadFinished):
1987 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
1989 Reviewed by Simon Hausmann.
1991 Add a simple rotation effect to QGVLauncher
1993 https://bugs.webkit.org/show_bug.cgi?id=30162
1995 * QGVLauncher/main.cpp:
1996 (MainView::animatedFlip):
1997 (MainWindow::animatedFlip):
1998 (MainWindow::buildUI):
2000 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2002 Reviewed by Simon Hausmann.
2004 Doc: Document HTML and status as properties.
2006 * Api/qgraphicswebview.cpp:
2008 2009-10-07 Martin Smith <msmith@trolltech.com>
2010 Reviewed by Simon Hausmann.
2012 Fix qdoc warning about disabled renderHints property
2018 2009-10-06 Adam Barth <abarth@webkit.org>
2020 Reviewed by Eric Seidel.
2022 Move setLocalLoadPolicy and friends to SecurityOrigin
2023 https://bugs.webkit.org/show_bug.cgi?id=30110
2028 (QWebPagePrivate::QWebPagePrivate):
2030 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
2032 Reviewed by Ariya Hidayat.
2034 When the drag data contains an image set it on the QDrag so it will be visible to the user.
2036 * WebCoreSupport/DragClientQt.cpp:
2037 (WebCore::DragClientQt::startDrag):
2039 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2041 Reviewed by Timothy Hatcher.
2043 Web Inspector: close inspector client view on
2044 InspectorController::close API call.
2046 In order to run batch web inspector layout tests (and not affect
2047 subsequent tests) we should close inspector client's view upon
2048 InspectorController::close API call.
2050 https://bugs.webkit.org/show_bug.cgi?id=30009
2052 * WebCoreSupport/InspectorClientQt.cpp:
2053 (WebCore::InspectorClientQt::createPage):
2055 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
2057 Reviewed by Simon Hausmann.
2059 [Qt] don't enable input methods on Symbian by default.
2060 https://bugs.webkit.org/show_bug.cgi?id=30117
2062 If input methods are enabled Symbian FEP will be launched on every
2063 pointer event making webpage navigation impossible with QWebView.
2066 (QWebView::QWebView):
2068 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
2070 Reviewed by Simon Hausmann.
2072 QtLauncher: print the number of loaded urls
2074 When using the -r mode print the number of URLs loaded so far. This
2075 is extremly useful when opening the same URL over and over again and
2076 one wants to see the progress.
2078 * QtLauncher/main.cpp:
2079 (URLLoader::URLLoader):
2080 (URLLoader::loadNext):
2082 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2084 Reviewed by Simon Hausmann.
2086 Add screenshot option to menubar
2088 https://bugs.webkit.org/show_bug.cgi?id=30067
2090 * QtLauncher/main.cpp:
2091 (MainWindow::screenshot):
2092 (MainWindow::setupUI):
2094 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2096 Reviewed by Simon Hausmann.
2098 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
2100 https://bugs.webkit.org/show_bug.cgi?id=30068
2102 * QtLauncher/main.cpp:
2103 (MainWindow::MainWindow):
2105 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2107 Rubberstamped by Simon Hausmann.
2109 Add documentation to the ErrorPageExtension.
2113 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
2115 Reviewed by Simon Hausmann.
2117 [Qt] Inform the application when a new request is created
2118 https://bugs.webkit.org/show_bug.cgi?id=29975
2120 Add a signal to QWebPage, to inform the application when a request is created.
2124 * tests/qwebpage/tst_qwebpage.cpp:
2125 (tst_QWebPage::loadFinished):
2127 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2129 Reviewed by Simon Hausmann.
2131 ErrorPageExtension: Add a pointer to the QWebFrame that had
2135 * WebCoreSupport/FrameLoaderClientQt.cpp:
2136 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2138 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2140 Reviewed by Tor Arne Vestbø.
2142 Do not empty the offline web appcache when clearing
2143 memory caches. That one is not in memory, but stored
2146 * Api/qwebsettings.cpp:
2147 (QWebSettings::clearMemoryCaches):
2149 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
2151 Reviewed by Simon Hausmann.
2153 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
2155 https://bugs.webkit.org/show_bug.cgi?id=29710
2157 * Api/qgraphicswebview.cpp:
2158 (QGraphicsWebViewPrivate::pluginParent):
2160 (QWebViewPrivate::pluginParent):
2161 * WebCoreSupport/FrameLoaderClientQt.cpp:
2163 (WebCore::FrameLoaderClientQt::createPlugin):
2165 2009-10-03 Adam Barth <abarth@webkit.org>
2167 Unreview build fix. I wish I had a try server...
2170 (QWebPagePrivate::updateAction):
2172 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
2174 Reviewed by Simon Hausmann.
2176 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2177 Otherwise, it is inconsistent with class declaration of QCursor.
2179 * Api/qgraphicswebview.cpp:
2182 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
2184 Reviewed by Simon Hausmann.
2186 Fix compiler warnings about unused function arguments.
2188 * Api/qwebframe.cpp:
2189 (QWebFrame::scrollBarMinimum):
2191 (QWebPagePrivate::focusInEvent):
2192 (QWebPagePrivate::focusOutEvent):
2193 (QWebPagePrivate::leaveEvent):
2194 (QWebPage::javaScriptAlert):
2195 (QWebPage::javaScriptConfirm):
2196 (QWebPage::javaScriptPrompt):
2197 (QWebPage::triggerAction):
2198 (QWebPage::acceptNavigationRequest):
2199 (QWebPage::chooseFile):
2200 * WebCoreSupport/ChromeClientQt.cpp:
2201 (WebCore::ChromeClientQt::repaint):
2202 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2203 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2204 * WebCoreSupport/ContextMenuClientQt.cpp:
2205 (WebCore::ContextMenuClientQt::downloadURL):
2206 * WebCoreSupport/FrameLoaderClientQt.cpp:
2207 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2208 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2209 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2210 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2211 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2212 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2213 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2214 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2215 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2216 * WebCoreSupport/InspectorClientQt.cpp:
2217 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2218 (WebCore::InspectorClientQt::highlight):
2219 (WebCore::InspectorClientQt::removeSetting):
2221 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2223 Reviewed by Tor Arne Vestbø.
2225 Make Software Input Panel requests work with QGraphicsWebView
2226 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2229 (QWebPagePrivate::mouseReleaseEvent):
2230 (QWebPagePrivate::handleSoftwareInputPanel):
2233 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2235 Reviewed by Tor Arne Vestbø.
2237 Rename QWebGraphicsItem to QGraphicsWebView
2241 * Api/qwebgraphicsitem.cpp: Renamed.
2242 * Api/qwebgraphicsitem.h: Renamed.
2243 * WebKit/qt/QGVLauncher/main.cpp:
2245 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2246 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2248 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2250 Reviewed by Simon Hausmann.
2252 https://bugs.webkit.org/show_bug.cgi?id=29248
2253 [Qt] [API] Make it possible to have 'invisible' loads
2255 Make QWebFrame's setHtml and setContent methods to not change
2256 session and global history at all.
2258 * Api/qwebframe.cpp:
2259 (QWebFrame::setHtml):
2260 (QWebFrame::setContent):
2261 * tests/qwebframe/qwebframe.pro:
2262 * tests/qwebframe/tst_qwebframe.cpp:
2264 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2266 Reviewed by Simon Hausmann.
2268 Fixed software input panel support on web input elements.
2270 Send the RequestSoftwareInputPanel event if the element supports focus
2271 and the element is clicked.
2274 (QWebPagePrivate::QWebPagePrivate):
2275 (QWebPagePrivate::mousePressEvent):
2276 (QWebPagePrivate::mouseReleaseEvent):
2279 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2281 Reviewed by Simon Hausmann.
2283 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2285 https://bugs.webkit.org/show_bug.cgi?id=29681
2287 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2289 * Fixed surrounding text to exclude preedit string
2290 * Avoid emission of microFocusChanged during setComposition()
2293 (QWebPagePrivate::inputMethodEvent):
2294 (QWebPage::inputMethodQuery):
2295 * WebCoreSupport/EditorClientQt.cpp:
2296 (WebCore::EditorClientQt::respondToChangedSelection):
2297 * tests/qwebpage/tst_qwebpage.cpp:
2298 (tst_QWebPage::inputMethods):
2300 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2302 Reviewed by David Hyatt.
2304 Add the failed URL to the ErrorPageExtension, as it is quite
2305 useful for creating error pages.
2308 * WebCoreSupport/FrameLoaderClientQt.cpp:
2309 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2311 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2313 Reviewed by Tor Arne Vestbø.
2315 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2316 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2318 * Api/qwebsettings.cpp:
2319 (QWebSettings::QWebSettings):
2321 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2323 Reviewed by Simon Hausmann.
2325 https://bugs.webkit.org/show_bug.cgi?id=29844
2327 QWebPage dependency autotest fix.
2329 Fix for database() autotest. All opened databases should be removed at
2332 * tests/qwebpage/tst_qwebpage.cpp:
2333 (tst_QWebPage::database):
2335 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2337 Reviewed by Simon Hausmann.
2339 Some QWebHistory and QWebPage autotest crash fixes.
2341 Some checking for m_mainFrame were added. MainFrame should be created
2342 at some point of QWebPage live cicle.
2344 https://bugs.webkit.org/show_bug.cgi?id=29803
2347 (QWebPage::~QWebPage):
2348 (QWebPage::currentFrame):
2349 (QWebPage::history):
2350 (QWebPage::selectedText):
2351 (QWebPage::updatePositionDependentActions):
2352 * tests/qwebpage/tst_qwebpage.cpp:
2353 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2355 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2357 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2359 Implement QWebPage Extension for error pages, incl.
2360 an example on how to use it in QtLauncher.
2362 Correct our use of ResourceError.
2365 (ExtensionOption::):
2366 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2367 * QtLauncher/main.cpp:
2368 (WebPage::supportsExtension):
2369 (MainWindow::MainWindow):
2370 (MainWindow::selectElements):
2371 (WebPage::extension):
2372 * WebCoreSupport/FrameLoaderClientQt.cpp:
2373 (WebCore::FrameLoaderClientQt::cancelledError):
2374 (WebCore::FrameLoaderClientQt::blockedError):
2375 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2376 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2377 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2378 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2379 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2380 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2381 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2382 * WebCoreSupport/FrameLoaderClientQt.h:
2384 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2386 Reviewed by Simon Hausmann.
2388 Compile fix with namespaced Qt.
2390 * Api/qwebinspector_p.h:
2392 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2394 Reviewed by Simon Hausmann.
2396 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2397 clients that want to check/set the focus node of the document.
2398 https://bugs.webkit.org/show_bug.cgi?id=29682
2400 * Api/qwebelement.cpp:
2401 (QWebElement::hasFocus):
2402 (QWebElement::setFocus):
2403 * Api/qwebelement.h:
2404 * tests/qwebelement/tst_qwebelement.cpp:
2405 (tst_QWebElement::hasSetFocus):
2407 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2409 Reviewed by Simon Hausmann.
2411 [Qt] Make tst_qwebframe work if Qt built without SSL support
2412 https://bugs.webkit.org/show_bug.cgi?id=29735
2414 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2416 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2418 Reviewed by Simon Hausmann.
2420 [Qt] Update QWebElement API to remove script related methods.
2421 QWebElement::evaluateScript is the only one kept, these are
2422 removed to postpone most of the QtWebKit<->JavaScript API design
2424 https://bugs.webkit.org/show_bug.cgi?id=29708
2426 * Api/qwebelement.cpp:
2427 * Api/qwebelement.h:
2429 - QWebElement::callFunction
2430 - QWebElement::functions
2431 - QWebElement::scriptableProperty
2432 - QWebElement::setScriptableProperty
2433 - QWebElement::scriptableProperties
2434 * tests/qwebelement/tst_qwebelement.cpp:
2435 (tst_QWebElement::evaluateScript):
2437 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2439 Reviewed by Simon Hausmann.
2441 [Qt] Rename QWebElement::evaluateScript
2442 to QWebElement::evaluateJavaScript.
2443 https://bugs.webkit.org/show_bug.cgi?id=29709
2445 * Api/qwebelement.cpp:
2446 (QWebElement::evaluateJavaScript):
2447 * Api/qwebelement.h:
2448 * tests/qwebelement/tst_qwebelement.cpp:
2449 (tst_QWebElement::evaluateJavaScript):
2451 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2453 Reviewed by Simon Hausmann.
2455 [Qt] Update the stypeProperty API of QWebElement.
2456 https://bugs.webkit.org/show_bug.cgi?id=29711
2458 * Api/qwebelement.cpp:
2459 (QWebElement::styleProperty):
2460 - Merge the stypeProperty and the computedStyleProperty methods
2461 - Remove the default value for the style resolving enum
2462 - Rename ResolveRule to StyleResolveStrategy
2463 (QWebElement::setStyleProperty):
2464 - Remove the priority argument since it is possible to control the
2465 behaviour by adding !important or removing in the value.
2466 * Api/qwebelement.h:
2467 * tests/qwebelement/tst_qwebelement.cpp:
2468 (tst_QWebElement::style):
2469 (tst_QWebElement::computedStyle):
2470 * tests/qwebframe/tst_qwebframe.cpp:
2472 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2474 Reviewed by Alice Liu.
2477 (QWebPagePrivate::QWebPagePrivate):
2478 Pass 0 for new Page constructor argument.
2480 2009-09-24 Martin Smith <msmith@trolltech.com>
2482 Reviewed by Simon Hausmann.
2484 qdoc: Added \brief texts to all the since 4.6 functions.
2486 * Api/qwebhistory.cpp:
2488 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2490 Reviewed by Simon Hausmann.
2492 Prevent QWebPage::setView() from changing the viewport size on the fly
2493 in case the view doesn't actually change. QWebPage::setView() is
2494 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2495 the viewport size to be equal to the size of the whole graphics view.
2497 https://bugs.webkit.org/show_bug.cgi?id=29676
2500 (QWebPage::setView):
2502 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2504 Reviewed by Simon Hausmann.
2506 [Qt] Crash fix in QWebHistory back and forward methods.
2508 QWebHistory::back() and QWebHistory::forward() were crashing on
2509 ASSERT in WebCore::BackForwardList. The methods should check
2510 canGoBack() and canGoForward() at the beginning.
2512 https://bugs.webkit.org/show_bug.cgi?id=29675
2514 * Api/qwebhistory.cpp:
2515 (QWebHistory::back):
2516 (QWebHistory::forward):
2518 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2520 Reviewed by Simon Hausmann.
2522 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2524 In QWebHistory's methods that change item count or current item call
2525 to QWebPage::updateNavigationActions should be executed.
2526 QWebHistory::clear() and QWebHistory::restorState() were changed.
2527 New helper method, QWebPagePrivate accesor, were created in
2528 QWebHistoryPrivate class.
2529 Two autotest were developed.
2531 https://bugs.webkit.org/show_bug.cgi?id=29246
2533 * Api/qwebhistory.cpp:
2534 (QWebHistory::clear):
2535 (QWebHistory::restoreState):
2536 (QWebHistoryPrivate::page):
2537 * Api/qwebhistory_p.h:
2538 * tests/qwebhistory/tst_qwebhistory.cpp:
2539 (tst_QWebHistory::saveAndRestore_1):
2540 (tst_QWebHistory::clear):
2542 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2544 Reviewed by Tor Arne Vestbø.
2546 Need to guard QX11Info include with Q_WS_X11.
2547 That class may not be available (in QT 4.5 for Symbian, for instance).
2548 Completes fixes in r48627 and r48604.
2550 * Api/qwebgraphicsitem.cpp:
2553 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2555 Reviewed by Simon Hausmann.
2557 [Qt] Add default timeout while waiting for signals in QWebPage auto
2559 https://bugs.webkit.org/show_bug.cgi?id=29637
2561 * tests/qwebpage/tst_qwebpage.cpp:
2564 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2566 Reivewed by Simon Hausmann.
2568 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2570 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2571 takes a QWidget*, not a QWebPageClient*
2573 * Api/qwebgraphicsitem.cpp:
2574 (QWebGraphicsItemPrivate::screenNumber):
2576 (QWebViewPrivate::screenNumber):
2578 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2580 Reviewed by Simon Hausmann.
2582 For Qt, platformPageClient() will now return a class derived from
2583 the QWebPageClient, so the patch adapts our Qt hooks to go though
2584 this class and not depend on the QWebView.
2586 * Api/qwebgraphicsitem.cpp:
2587 (QWebGraphicsItemPrivate::scroll):
2588 (QWebGraphicsItemPrivate::update):
2589 (QWebGraphicsItemPrivate::cursor):
2590 (QWebGraphicsItemPrivate::updateCursor):
2591 (QWebGraphicsItemPrivate::screenNumber):
2592 (QWebGraphicsItemPrivate::winId):
2593 (QWebGraphicsItem::event):
2594 (QWebGraphicsItem::setPage):
2595 * Api/qwebgraphicsitem.h:
2597 (QWebPagePrivate::QWebPagePrivate):
2600 (QWebViewPrivate::scroll):
2601 (QWebViewPrivate::update):
2602 (QWebViewPrivate::cursor):
2603 (QWebViewPrivate::updateCursor):
2604 (QWebViewPrivate::screenNumber):
2605 (QWebViewPrivate::winId):
2606 (QWebView::setPage):
2608 * WebCoreSupport/ChromeClientQt.cpp:
2609 (WebCore::ChromeClientQt::repaint):
2610 (WebCore::ChromeClientQt::scroll):
2611 (WebCore::ChromeClientQt::platformPageClient):
2613 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2615 Reviewed by Simon Hausmann.
2617 https://bugs.webkit.org/show_bug.cgi?id=29609
2618 Build fix for windows when using Qt 4.5.0.
2621 (QWebPage::userAgentForUrl):
2623 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2625 Reviewed by Simon Hausmann.
2627 https://bugs.webkit.org/show_bug.cgi?id=29345
2628 The tests of QWebFrame did not use QTRY_VERIFY for
2629 tests involving the event loop.
2631 * tests/qwebframe/tst_qwebframe.cpp:
2632 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2634 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2636 Reviewed by Simon Hausmann.
2638 [Qt] Add an autotest stub for QWebGraphicsItem.
2640 It just calls all the functions and makes sure they don't crash.
2642 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2643 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2644 (tst_QWebGraphicsItem::qwebgraphicsitem):
2647 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2649 Reviewed by Eric Seidel.
2651 Corrected the Symbian specific UID3 values to be assigned
2652 from the "unprotected" pool that permits self-signing of
2653 those test and demo executables. (Added new UID3 values
2654 where they were missing for new components.)
2656 * QGVLauncher/QGVLauncher.pro:
2657 * QtLauncher/QtLauncher.pro:
2658 * tests/benchmarks/loading/tst_loading.pro:
2659 * tests/benchmarks/painting/tst_painting.pro:
2660 * tests/qwebelement/qwebelement.pro:
2661 * tests/qwebframe/qwebframe.pro:
2662 * tests/qwebhistory/qwebhistory.pro:
2663 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2664 * tests/qwebpage/qwebpage.pro:
2665 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2666 * tests/qwebview/qwebview.pro:
2668 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2670 Reviewed by Simon Hausmann.
2672 Make PlatformWindow return something else than PlatformWidget
2673 https://bugs.webkit.org/show_bug.cgi?id=29085
2675 Reflect the rename of platformWindow and it's return type.
2677 * WebCoreSupport/ChromeClientQt.cpp:
2678 (WebCore::ChromeClientQt::platformPageClient):
2679 * WebCoreSupport/ChromeClientQt.h:
2681 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2683 Reviewed by Simon Hausmann.
2685 [Qt] Add persistence support for configuration options in the
2688 * Api/qwebinspector.cpp:
2689 * QtLauncher/main.cpp:
2691 * WebCoreSupport/InspectorClientQt.cpp:
2692 (WebCore::InspectorClientQt::populateSetting):
2693 (WebCore::InspectorClientQt::storeSetting):
2694 (WebCore::variantToSetting):
2695 (WebCore::settingToVariant):
2697 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2699 Reviewed by Ariya Hidayat.
2701 Fixed a bunch of documentation warnings.
2703 * Api/qwebgraphicsitem.cpp:
2704 * Api/qwebplugindatabase.cpp:
2705 * Api/qwebpluginfactory.cpp:
2706 * Api/qwebsecurityorigin.cpp:
2708 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2710 Reviewed by Simon Hausmann.
2712 Added a test that console output works.
2714 * tests/qwebpage/tst_qwebpage.cpp:
2715 (ConsolePage::ConsolePage):
2716 (ConsolePage::javaScriptConsoleMessage):
2717 (tst_QWebPage::consoleOutput):
2719 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2721 Reviewed by Simon Hausmann.
2723 Improve documentation for Page Cache.
2725 * Api/qwebsettings.cpp:
2727 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2729 Reviewed by Simon Hausmann.
2731 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2733 https://bugs.webkit.org/show_bug.cgi?id=29081
2735 The documentation now specifies that the URL has to be a local file
2736 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2737 only two schemes that the current code path accepts.
2739 The auto-test has been updated to reflect this limitation.
2741 At a later point we should concider adding API for the new way of
2742 doing both user defined stylesheets and scripts.
2744 * Api/qwebsettings.cpp:
2745 * tests/qwebpage/tst_qwebpage.cpp:
2747 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2749 Reviewed by Simon Hausmann.
2753 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2756 QMake is not being able to distinguish between release and debug builds
2757 in Symbian build. This is a Symbian toolchain issue.
2760 (QWebPagePrivate::_q_cleanupLeakMessages):
2764 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2766 Reviewed by Simon Hausmann.
2768 Small cosmetic documentation fixlet in the QWebInspector.
2770 * Api/qwebinspector.cpp:
2772 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2774 Reviewed by Eric Seidel.
2776 Detect and add Windows7 properly to the user agent.
2779 (QWebPage::userAgentForUrl):
2781 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2783 Rubberstamped by Kenneth Christiansen.
2785 [Qt] Build fix for previous changes.
2787 * QGVLauncher/main.cpp:
2790 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2792 Unreviewed potential Qt < 4.6 build fix.
2794 * QGVLauncher/main.cpp:
2797 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2799 Reviewed by Simon Hausmann.
2801 Add a "Flip effect" to our GraphicsView based launcher.
2803 * QGVLauncher/main.cpp:
2804 (MainView::resizeEvent):
2807 (MainWindow::buildUI):
2809 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2811 Rubber-stamped by Simon Hausmann.
2813 [Qt] Typo fix. Pass the window object to the Format
2814 menu. In this way Qt can free its internal graphical
2815 objects during exit.
2817 * QtLauncher/main.cpp:
2818 (MainWindow::setupUI):
2820 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2822 Reviewed by Tor Arne Vestbø.
2824 [Qt] Build break fix on gcc ARM.
2826 * Api/qwebgraphicsitem.cpp:
2827 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2829 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2831 Reviewed by Simon Hausmann.
2833 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2834 when the focused frame is null. We do the same check in other places
2835 where we call kit().
2837 * Api/qwebframe.cpp:
2838 (QWebFrame::hasFocus):
2840 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2842 Reviewed by Simon Hausmann.
2844 Fixed a typo found during translation.
2846 * WebCoreSupport/FrameLoaderClientQt.cpp:
2847 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2849 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2851 Reviewed by Simon Hausmann.
2853 [Qt] QWebGraphicsItem should check for null QWebPage.
2854 https://bugs.webkit.org/show_bug.cgi?id=29185
2856 Don't crash in QWebGraphicsItem when the page is still null, by
2857 either checking if it's the case or constructing the default one.
2859 * Api/qwebgraphicsitem.cpp:
2860 (QWebGraphicsItem::icon):
2861 (QWebGraphicsItem::setZoomFactor):
2862 (QWebGraphicsItem::zoomFactor):
2863 (QWebGraphicsItem::setGeometry):
2864 (QWebGraphicsItem::load):
2865 (QWebGraphicsItem::setHtml):
2866 (QWebGraphicsItem::toHtml):
2867 (QWebGraphicsItem::setContent):
2868 (QWebGraphicsItem::history):
2869 (QWebGraphicsItem::settings):
2871 2009-09-11 David Boddie <dboddie@trolltech.com>
2873 Reviewed by Simon Hausmann.
2875 Doc: Note that Netscape plugins are only available on desktop platforms.
2877 * docs/qtwebkit.qdoc:
2879 2009-09-11 Martin Smith <msmith@trolltech.com>
2881 Reviewed by Simon Hausmann.
2883 Adjust the name of the contentspage for the documentation
2884 to the new name used in Qt 4.6.
2886 * docs/qtwebkit.qdoc:
2888 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
2890 Reviewed by Simon Hausmann.
2892 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
2895 * Api/qwebpluginfactory.cpp:
2896 * docs/webkitsnippets/simple/main.cpp:
2898 * docs/webkitsnippets/webpage/main.cpp:
2901 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2903 Reviewed by Simon Hausmann.
2905 Restructure the documentation, both on a file and on a content level.
2907 * Api/qwebdatabase.cpp:
2908 * Api/qwebelement.cpp:
2909 * Api/qwebframe.cpp:
2910 * Api/qwebhistory.cpp:
2911 * Api/qwebhistoryinterface.cpp:
2913 * Api/qwebpluginfactory.cpp:
2914 * Api/qwebsecurityorigin.cpp:
2915 * Api/qwebsettings.cpp:
2917 * docs/qtwebkit.qdoc:
2919 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
2921 Reviewed by Simon Hausmann.
2923 https://bugs.webkit.org/show_bug.cgi?id=29136
2924 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
2926 emit microFocusChange() signal regardless of view.
2928 * WebCoreSupport/EditorClientQt.cpp:
2929 (WebCore::EditorClientQt::setInputMethodState):
2931 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2933 Reviewed by Simon Hausmann.
2935 https://bugs.webkit.org/show_bug.cgi?id=28806
2937 [Qt] Make the WebInspector available as a QWidget.
2940 * Api/qwebelement.cpp:
2941 (QWebElement::enclosingElement):
2942 * Api/qwebelement.h:
2943 * Api/qwebinspector.cpp: Added.
2944 * Api/qwebinspector.h: Added.
2945 * Api/qwebinspector_p.h: Added.
2947 (QWebPagePrivate::QWebPagePrivate):
2948 (QWebPagePrivate::setInspector):
2949 (QWebPagePrivate::getOrCreateInspector):
2950 (QWebPagePrivate::inspectorController):
2951 (QWebPage::~QWebPage):
2952 (QWebPage::triggerAction):
2955 * Api/qwebsettings.cpp:
2956 * QtLauncher/main.cpp:
2957 (MainWindow::MainWindow):
2958 * WebCoreSupport/InspectorClientQt.cpp:
2959 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2960 (WebCore::InspectorClientWebPage::createWindow):
2961 (WebCore::InspectorClientQt::createPage):
2962 (WebCore::InspectorClientQt::showWindow):
2963 (WebCore::InspectorClientQt::closeWindow):
2964 (WebCore::InspectorClientQt::attachWindow):
2965 (WebCore::InspectorClientQt::detachWindow):
2966 (WebCore::InspectorClientQt::updateWindowTitle):
2967 * WebCoreSupport/InspectorClientQt.h:
2968 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
2970 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2972 Reviewed by Eric Seidel.
2974 [Qt] Fix comparison between signed and unsigned integer warnings
2975 https://bugs.webkit.org/show_bug.cgi?id=29162
2977 No functional change.
2979 * Api/qwebelement.cpp:
2980 (QWebElement::findAll):
2981 * Api/qwebhistory.cpp:
2982 (QWebHistory::items):
2983 (QWebHistory::backItems):
2984 (QWebHistory::forwardItems):
2985 (QWebHistory::saveState):
2986 * Api/qwebplugindatabase.cpp:
2987 (QWebPluginDatabase::setSearchPaths):
2988 * WebCoreSupport/ChromeClientQt.cpp:
2989 (WebCore::ChromeClientQt::runOpenPanel):
2990 * WebCoreSupport/FrameLoaderClientQt.cpp:
2991 (WebCore::FrameLoaderClientQt::createPlugin):
2993 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2995 Rubber-stamped by Ariya Hidayat.
2997 Fix a bunch of qdoc warnings: Invalid references, non-standard
3000 * Api/qwebelement.cpp:
3001 * Api/qwebgraphicsitem.cpp:
3002 * Api/qwebsecurityorigin.cpp:
3004 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3006 Reviewed by Ariya Hidayat.
3008 Fix context menu event delivery with QWebGraphicsItem.
3010 Re-implement the correct context menu virtual function using
3011 a QGraphicsSceneContextMenuEvent and forward & handle it in
3014 * Api/qwebgraphicsitem.cpp:
3015 (QWebGraphicsItem::contextMenuEvent):
3016 * Api/qwebgraphicsitem.h:
3018 (QWebPagePrivate::contextMenuEvent):
3022 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3026 Build fix for QtWebKit for Mac after r48219.
3028 qevent and qstyleoption are QtGui interfaces.
3030 * Api/qwebgraphicsitem.cpp:
3031 * Api/qwebgraphicsitem.h:
3033 2009-09-09 Simon Hausmann <hausmann@webkit.org>
3035 Reviewed by Tor Arne Vestbø.
3037 Call the right base class function QGraphicsWidget::event() instead
3038 of skipping it and using QObject::event() instead.
3040 * Api/qwebgraphicsitem.cpp:
3041 (QWebGraphicsItem::event):
3043 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3047 Fix comment at Tor Arne Vestbø's request.
3049 * Api/qwebgraphicsitem.cpp:
3050 (QWebGraphicsItem::sceneEvent):
3051 (QWebGraphicsItem::event):
3053 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3055 Reviewed by Tor Arne Vestbø.
3057 Implement some virtual event methods so that we can fix
3058 event-related bugs in Qt patch releases.
3060 * Api/qwebgraphicsitem.cpp:
3061 (QWebGraphicsItem::sceneEvent):
3062 (QWebGraphicsItem::event):
3063 * Api/qwebgraphicsitem.h:
3065 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
3067 Reviewed by Simon Hausmann.
3069 Add a new QGraphicsWidget based version of the "QWebView"
3070 under the name "QWebGraphicsItem".
3072 https://bugs.webkit.org/show_bug.cgi?id=28862
3074 Includes an alternative Qt launcher using the QGraphicsView.
3077 * Api/qwebgraphicsitem.cpp: Added.
3078 * Api/qwebgraphicsitem.h: Added.
3080 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
3081 * QGVLauncher/main.cpp: Added.
3082 * WebCoreSupport/ChromeClientQt.cpp:
3083 (WebCore::ChromeClientQt::repaint):
3084 (WebCore::ChromeClientQt::scroll):
3086 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3088 Unreviewed build fix.
3090 Potential build fix for Qt 4.5
3093 (QWebPagePrivate::mousePressEvent):
3095 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
3097 Reviewed by Simon Hausmann.
3099 https://bugs.webkit.org/show_bug.cgi?id=29007
3100 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
3102 * tests/qwebframe/tst_qwebframe.cpp:
3104 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3106 Reviewed by Simon Hausmann.
3108 [Qt] Fix unused variable warnings
3109 https://bugs.webkit.org/show_bug.cgi?id=29018
3112 (QWebPagePrivate::keyPressEvent):
3113 * WebCoreSupport/FrameLoaderClientQt.cpp:
3114 (WebCore::FrameLoaderClientQt::startDownload):
3115 (WebCore::FrameLoaderClientQt::createFrame):
3117 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3119 Reviewed by Ariya Hidayat.
3121 [Qt] Use the declaration order in initializer lists
3122 https://bugs.webkit.org/show_bug.cgi?id=29017
3124 * Api/qwebframe_p.h:
3126 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3128 Reviewed by Simon Hausmann.
3130 Add support for handling QGraphicsScene events.
3133 (QWebPagePrivate::mouseMoveEvent):
3134 (QWebPagePrivate::mousePressEvent):
3135 (QWebPagePrivate::mouseDoubleClickEvent):
3136 (QWebPagePrivate::mouseTripleClickEvent):
3137 (QWebPagePrivate::handleClipboard):
3138 (QWebPagePrivate::mouseReleaseEvent):
3139 (QWebPagePrivate::wheelEvent):
3140 (QWebPagePrivate::dragEnterEvent):
3141 (QWebPagePrivate::dragLeaveEvent):
3142 (QWebPagePrivate::dragMoveEvent):
3143 (QWebPagePrivate::dropEvent):
3147 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3149 Reviewed by Simon Hausmann.
3151 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
3152 https://bugs.webkit.org/show_bug.cgi?id=28865
3154 Clean up the unserCursor hack to use the QCursor set
3155 as a property of the QWidget by WebCore::WidgetQt.
3157 Remove all code that are no longer necessary for getting
3158 cursor change events.
3160 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
3161 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
3166 (QWebViewPrivate::QWebViewPrivate):
3169 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3171 Reviewed by Simon Hausmann.
3173 [Qt] QtWebKit single API to enable persistency
3174 https://bugs.webkit.org/show_bug.cgi?id=28682
3176 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3179 If persistency is enabled the default directory for LocalStorage and
3180 ApplicationCache is now based on QDesktopServices::DataLocation and not
3181 QDesktopServices::CacheLocation (as it is expected to keep this data
3182 around after a reboot).
3184 If persistency is enabled initialize HTML5 offline storage as well - this
3185 fixed offline Storage for QtLauncher.
3188 (QWebPagePrivate::QWebPagePrivate):
3189 * Api/qwebsettings.cpp:
3190 (QWebSettings::QWebSettings):
3191 (QWebSettings::enablePersistentStorage):
3192 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3193 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3196 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3198 Reviewed by Simon Hausmann.
3200 Speed up the QWebPluginInfo::supportsMimeType() function.
3201 https://bugs.webkit.org/show_bug.cgi?id=27651
3203 Instead of going through the MIME types list constructed with
3204 mimeTypes() function, look up the internal mimeToDescriptions map.
3206 * Api/qwebplugindatabase.cpp:
3207 (QWebPluginInfo::supportsMimeType):
3209 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3211 Reviewed by Simon Hausmann.
3213 Speed up the QWebPluginInfo::mimeTypes() function.
3214 https://bugs.webkit.org/show_bug.cgi?id=27651
3216 Instead of constructing a list of MIME types every time it is called,
3219 * Api/qwebplugindatabase.cpp:
3220 (QWebPluginInfo::mimeTypes):
3221 (QWebPluginInfo::operator=):
3222 * Api/qwebplugindatabase.h:
3223 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3224 (tst_QWebPluginDatabase::operatorassign_data):
3225 (tst_QWebPluginDatabase::operatorassign):
3227 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3229 Reviewed by Simon Hausmann.
3231 Remove the private classes from QWebPluginDatabase.
3232 https://bugs.webkit.org/show_bug.cgi?id=27651
3234 Instead, hold the PluginDatabase and PluginPackage objects as class
3235 members and take care of refcounting on our own instead of using RefPtr.
3237 This way we not only made the code cleaner but also got rid of
3238 redundant allocations when constructing null QWebPluginInfo objects.
3240 The private classes have been forward-declared and the d-pointers left
3241 to be on the safe side.
3243 * Api/qwebplugindatabase.cpp:
3244 (QWebPluginInfo::QWebPluginInfo):
3245 (QWebPluginInfo::~QWebPluginInfo):
3246 (QWebPluginInfo::name):
3247 (QWebPluginInfo::description):
3248 (QWebPluginInfo::mimeTypes):
3249 (QWebPluginInfo::path):
3250 (QWebPluginInfo::isNull):
3251 (QWebPluginInfo::setEnabled):
3252 (QWebPluginInfo::isEnabled):
3253 (QWebPluginInfo::operator==):
3254 (QWebPluginInfo::operator!=):
3255 (QWebPluginInfo::operator=):
3256 (QWebPluginDatabase::QWebPluginDatabase):
3257 (QWebPluginDatabase::~QWebPluginDatabase):
3258 (QWebPluginDatabase::plugins):
3259 (QWebPluginDatabase::searchPaths):
3260 (QWebPluginDatabase::setSearchPaths):
3261 (QWebPluginDatabase::addSearchPath):
3262 (QWebPluginDatabase::refresh):
3263 (QWebPluginDatabase::pluginForMimeType):
3264 (QWebPluginDatabase::setPreferredPluginForMimeType):
3265 * Api/qwebplugindatabase.h:
3266 * Api/qwebplugindatabase_p.h: Removed.
3268 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3270 Reviewed by Eric Seidel.
3272 [Qt] r47424 broke binary compatibility
3273 https://bugs.webkit.org/show_bug.cgi?id=28996
3275 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3277 * Api/qwebsettings.h:
3279 2009-09-04 Mark Mentovai <mark@chromium.org>
3281 Reviewed by Dave Hyatt.
3283 https://bugs.webkit.org/show_bug.cgi?id=28614
3285 Account for scrollbar state changes that occur during layout.
3287 * Api/qwebframe.cpp:
3288 (QWebFrame::setScrollBarPolicy):
3290 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3291 FrameView and ScrollView.
3293 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3295 Reviewed by Eric Seidel.
3297 [Qt] Fix tst_QWebPage::database autotest failure
3298 https://bugs.webkit.org/show_bug.cgi?id=28961
3300 Make sure that the test case enables the feature before
3301 the feature gets tested
3303 * tests/qwebpage/tst_qwebpage.cpp:
3304 (tst_QWebPage::database):
3306 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3308 Reviewed by Eric Seidel.
3310 Any QtWebKit application crashes on exit if the inspector is
3311 used during the session rather then exiting.
3313 If a QWebView has a QWebPage that is destroyed the QWebView
3314 does not update its pointer and will crash the next time
3315 it access the page pointers (such as in its destructor).
3317 InspectorClientView should not call deleteLater when the page
3318 is destroyed because it does not have a parent and is a top
3319 level widget. close() needs to be called so that QApplication
3320 can exit the application if quitOnLastWindowClosed is set
3321 and a InspectorClientView is the last window, otherwise
3322 the application will never exit.
3325 (QWebViewPrivate::_q_pageDestroyed):
3326 (QWebView::setPage):
3328 * WebCoreSupport/InspectorClientQt.cpp:
3329 (WebCore::InspectorClientView::InspectorClientView):
3331 2009-09-03 Adam Barth <abarth@webkit.org>
3333 Reviewed by eric@webkit.org.
3335 https://bugs.webkit.org/show_bug.cgi?id=24696
3337 Stub implementations of mixed content methods of FrameLoaderClient.
3339 * WebCoreSupport/FrameLoaderClientQt.cpp:
3340 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3341 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3342 * WebCoreSupport/FrameLoaderClientQt.h:
3344 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3346 Reviewed by Eric Seidel.
3348 [Qt] Add a setting to turn SessionStorage on/off
3349 https://bugs.webkit.org/show_bug.cgi?id=28836
3351 * Api/qwebsettings.cpp:
3352 (QWebSettingsPrivate::apply):
3353 (QWebSettings::QWebSettings):
3354 * Api/qwebsettings.h:
3355 * tests/qwebpage/tst_qwebpage.cpp:
3357 (tst_QWebPage::testOptionalJSObjects):
3359 2009-09-02 Richard Moore <rich@kde.org>
3361 Reviewed by Tor Arne Vestbø.
3363 [Qt] Make sure we relayout the page after evaluating JS
3365 https://bugs.webkit.org/show_bug.cgi?id=28235
3367 QtWebKit does not always seem to reflow the page when evaluating
3368 javascript. This patch changes the way evaluateJavaScript works to
3369 use the frameloader which ensures that this is done properly.
3371 * Api/qwebframe.cpp:
3372 (QWebFrame::evaluateJavaScript):
3373 * tests/qwebframe/tst_qwebframe.cpp:
3375 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3377 Reviewed by Holger Freyther.
3379 https://bugs.webkit.org/show_bug.cgi?id=25889
3380 [GTK] scrollbar policy for main frame is not implementable
3382 Add empty implementation for new ChromeClient method.
3384 * WebCoreSupport/ChromeClientQt.h:
3385 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3387 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3389 Reviewed by Ariya Hidayat.
3391 QWebHistory::clear() modifications.
3393 Clear() method was changed. If QWebHistory is empty (there is no
3394 elements even current) clear() do nothing. If there at least one
3395 element clear() will delete everything apart of current.
3397 New autotests in QWebHistory
3399 New autotests were added to QWebHistory. They should check some crashes
3400 in save and restore state process and clear() method and general
3401 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3403 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3405 * Api/qwebhistory.cpp:
3406 (QWebHistory::clear):
3407 * tests/qwebhistory/tst_qwebhistory.cpp:
3408 (tst_QWebHistory::back):
3409 (tst_QWebHistory::forward):
3410 (tst_QWebHistory::saveAndRestore_crash_1):
3411 (tst_QWebHistory::saveAndRestore_crash_2):
3412 (tst_QWebHistory::saveAndRestore_crash_3):
3413 (tst_QWebHistory::clear):
3415 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3417 Reviewed by Ariya Hidayat.
3419 [Qt] Cleanup, old and commented part of source code was removed.
3420 Fix some formatting problems.
3422 https://bugs.webkit.org/show_bug.cgi?id=28712
3424 * Api/qwebhistory_p.h:
3425 (QWebHistoryPrivate::QWebHistoryPrivate):
3427 2009-08-26 Adam Barth <abarth@webkit.org>
3429 Reviewed by Oliver Hunt.
3431 Don't let local files access web URLs
3432 https://bugs.webkit.org/show_bug.cgi?id=28480
3434 * Api/qwebsettings.cpp:
3435 (QWebSettings::QWebSettings):
3437 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3439 Reviewed by Ariya Hidayat.
3441 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3443 * Api/qwebframe.cpp:
3444 (QWebFrame::requestedUrl):
3445 * WebCoreSupport/FrameLoaderClientQt.cpp:
3446 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3447 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3448 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3449 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3450 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3451 * WebCoreSupport/FrameLoaderClientQt.h:
3453 2009-08-22 Adam Barth <abarth@webkit.org>
3455 Revert 47684. We're going to do this later once clients have had a
3456 chance to opt into the setting they like.
3458 * Api/qwebsettings.cpp:
3459 (QWebSettings::QWebSettings):
3461 2009-08-22 Adam Barth <abarth@webkit.org>
3463 Reviewed by Eric Seidel.
3465 Don't let local files access web URLs
3466 https://bugs.webkit.org/show_bug.cgi?id=28480
3468 * Api/qwebsettings.cpp:
3469 (QWebSettings::QWebSettings):
3471 2009-08-19 Aaron Boodman <aa@chromium.org>
3473 Speculative build break fix for qt.
3475 * Api/qwebsecurityorigin.cpp:
3476 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3477 * Api/qwebsecurityorigin.h:
3479 2009-08-19 Aaron Boodman <aa@chromium.org>
3481 Reviewed by David Levin.
3483 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3484 specify a more granular policy for cross-origin XHR access.
3486 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3487 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3488 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3489 * Api/qwebsecurityorigin.h: Ditto.
3491 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3493 Reviwed by Ariya Hidayat.
3495 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3498 * Api/qwebsettings.cpp:
3499 (QWebSettings::QWebSettings):
3500 * Api/qwebsettings.h:
3502 2009-08-17 Darin Adler <darin@apple.com>
3504 Try to fix Qt build again.
3506 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3508 2009-08-17 Darin Adler <darin@apple.com>
3510 Try to fix Qt build.
3512 * WebCoreSupport/EditorClientQt.cpp:
3513 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3514 Use getAttribute(classAttr) instead of className() function.
3516 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3518 Reviewed by Simon Hausmann.
3520 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3521 QWebView::RenderHints property.
3523 This is a temporary fix and will be revereted when the right symbols
3524 exported from Qt lib in S60.
3526 https://bugs.webkit.org/show_bug.cgi?id=28181
3530 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3532 Reviewed by Simon Hausmann.
3534 [Qt] Public API to configure the storage path for HTML5 localStorage
3535 https://bugs.webkit.org/show_bug.cgi?id=28036
3537 Disables LocalStorage for QtWebKit by default by setting
3538 QWebSettings::LocalStorageEnabled to false.
3540 Sets up a default for the LocalStorage path so that clients would only
3541 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3544 Turn on LocalStorage support for QtLauncher and the relevant test
3545 since LocalStorage is now disabled by default for QtWebkit.
3549 (initializeApplicationCachePathIfNecessary):
3550 (QWebPagePrivate::QWebPagePrivate):
3551 * Api/qwebsettings.cpp:
3552 (QWebSettingsPrivate::apply):
3553 (QWebSettings::QWebSettings):
3554 (QWebSettings::setLocalStoragePath):
3555 (QWebSettings::localStoragePath):
3556 * Api/qwebsettings.h:
3557 * QtLauncher/main.cpp:
3559 * tests/qwebpage/tst_qwebpage.cpp:
3560 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3562 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3564 Reviewed by Simon Hausmann.
3566 [Qt] Allow applications to register their own local URL scheme.
3567 https://bugs.webkit.org/show_bug.cgi?id=28240
3569 * Api/qwebsecurityorigin.cpp:
3570 (QWebSecurityOrigin::addLocalScheme):
3571 (QWebSecurityOrigin::removeLocalScheme):
3572 (QWebSecurityOrigin::localSchemes):
3573 * Api/qwebsecurityorigin.h:
3574 * tests/qwebpage/tst_qwebpage.cpp:
3575 (tst_QWebPage::localURLSchemes):
3577 2009-08-13 Mark Rowe <mrowe@apple.com>
3579 Try and fix the Qt build.
3581 * Api/qwebelement.cpp:
3583 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3585 Reviewed by Simon Hausmann.
3587 Doc - Some cleanup on the documentation of QWebElement
3589 * Api/qwebelement.cpp:
3591 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3593 Reviewed by Simon Hausmann.
3595 Symbian target components (library and executable files)
3596 require Unique Identifiers (i.e., UID3).
3597 These identifiers are defined in the respective project
3598 files, conditionally for "symbian" platform.
3600 * QtLauncher/QtLauncher.pro:
3601 * tests/qwebelement/qwebelement.pro:
3602 * tests/qwebframe/qwebframe.pro:
3603 * tests/qwebhistory/qwebhistory.pro:
3604 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3605 * tests/qwebpage/qwebpage.pro:
3606 * tests/qwebview/qwebview.pro:
3608 2009-08-12 George Wright <george.wright@torchmobile.com>
3610 Reviewed by Adam Treat.
3612 Initialise zoom levels independent of whether a URL is valid or not to
3613 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3615 * QtLauncher/main.cpp:
3616 (MainWindow::MainWindow):
3618 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3620 Reviewed by Simon Hausmann.
3622 QtWebKit compile fix for Windows CE
3624 There's no getenv on Windows CE, use qgetenv instead.
3627 (qt_drt_overwritePluginDirectories):
3629 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3631 Reviewed by Simon Hausmann.
3633 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3635 * Api/qwebplugindatabase.cpp:
3636 * Api/qwebsettings.cpp:
3638 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3640 Reviewed by Simon Hausmann.
3642 Doc: there is no group of explicitly shared classes, only one class uses this.
3644 Explain the implications in the QWebHistoryItem documentation, and get rid
3647 * Api/qwebhistory.cpp:
3649 2009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3651 Reviewed by Simon Hausmann.
3653 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3655 * Api/qwebpluginfactory.h: Export macro added.
3657 2009-08-04 Antonio Gomes <antonio.gomes@openbossa.org>
3659 Reviewed by Simon Hausmann.
3661 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3662 https://bugs.webkit.org/show_bug.cgi?id=27804
3664 * Api/qwebframe.cpp:
3665 (QWebFrame::requestedUrl):
3666 * tests/qwebframe/tst_qwebframe.cpp:
3668 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3670 Reviewed by Tor Arne Vestbø.
3672 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3674 * Api/qwebplugindatabase.cpp:
3675 (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3676 (QWebPluginInfo::QWebPluginInfo):
3677 (QWebPluginInfo::~QWebPluginInfo):
3678 (QWebPluginInfo::name):
3679 (QWebPluginInfo::description):
3680 (QWebPluginInfo::mimeTypes):
3681 (QWebPluginInfo::supportsMimeType):
3682 (QWebPluginInfo::path):
3683 (QWebPluginInfo::isNull):
3684 (QWebPluginInfo::setEnabled):
3685 (QWebPluginInfo::isEnabled):
3686 (QWebPluginInfo::operator==):
3687 (QWebPluginInfo::operator!=):
3688 (QWebPluginInfo::operator=):
3689 (QWebPluginDatabase::plugins):
3690 (QWebPluginDatabase::pluginForMimeType):
3691 (QWebPluginDatabase::setPreferredPluginForMimeType):
3692 * Api/qwebplugindatabase.h:
3693 * Api/qwebplugindatabase_p.h:
3694 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3695 (tst_QWebPluginDatabase::installedPlugins):
3696 (tst_QWebPluginDatabase::searchPaths):
3697 (tst_QWebPluginDatabase::null_data):
3698 (tst_QWebPluginDatabase::null):
3699 (tst_QWebPluginDatabase::pluginForMimeType):
3700 (tst_QWebPluginDatabase::enabled):
3701 (tst_QWebPluginDatabase::operatorequal_data):
3702 (tst_QWebPluginDatabase::operatorequal):
3703 (tst_QWebPluginDatabase::preferredPlugin):
3705 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3707 Reviewed by Adam Treat.
3709 Replace QWebPlugin::MimeType with a typedef to
3710 QWebPluginFactory::MimeType.
3712 * Api/qwebplugindatabase.cpp:
3713 * Api/qwebplugindatabase.h:
3714 * Api/qwebpluginfactory.cpp:
3715 (QWebPluginFactory::MimeType::operator==):
3716 * Api/qwebpluginfactory.h:
3718 2009-08-04 Jakub Wieczorek <faw217@gmail.com>
3720 Reviewed by Simon Hausmann.
3722 Add QWebPluginDatabase API to the Qt API.
3724 https://bugs.webkit.org/show_bug.cgi?id=27651
3727 * Api/qwebplugindatabase.cpp: Added.
3728 (QWebPluginPrivate::QWebPluginPrivate):
3729 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3730 (QWebPlugin::MimeType::operator==):
3731 (QWebPlugin::QWebPlugin):
3732 (QWebPlugin::~QWebPlugin):
3734 (QWebPlugin::description):
3735 (QWebPlugin::mimeTypes):
3736 (QWebPlugin::supportsMimeType):
3738 (QWebPlugin::isNull):
3739 (QWebPlugin::setEnabled):
3740 (QWebPlugin::isEnabled):
3741 (QWebPlugin::operator==):
3742 (QWebPlugin::operator!=):
3743 (QWebPlugin::operator=):
3744 (QWebPluginDatabase::QWebPluginDatabase):
3745 (QWebPluginDatabase::~QWebPluginDatabase):
3746 (QWebPluginDatabase::plugins):
3747 (QWebPluginDatabase::defaultSearchPaths):