1 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3 Reviewed by Kenneth Rohde Christiansen.
5 [Qt] Add instantiation tests for QWebInspector.
7 * tests/qwebinspector/qwebinspector.pro: Added.
8 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
9 (tst_QWebInspector::attachAndDestroy):
12 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
14 Reviewed by Kenneth Rohde Christiansen.
16 [Qt] Fix QWebInspector destruction problem.
17 https://bugs.webkit.org/show_bug.cgi?id=31664
20 (QWebPage::~QWebPage):
22 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
24 Reviewed by Simon Hausmann.
26 [Qt] Normalize signal and slot signatures.
28 * Api/qgraphicswebview.cpp:
29 (QGraphicsWebView::setPage):
32 * WebCoreSupport/FrameLoaderClientQt.cpp:
33 (WebCore::FrameLoaderClientQt::setFrame):
34 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
36 * tests/qwebframe/tst_qwebframe.cpp:
37 * tests/qwebpage/tst_qwebpage.cpp:
38 (tst_QWebPage::modified):
39 (tst_QWebPage::database):
41 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
43 Reviewed by Kenneth Rohde Christiansen.
45 [Qt] Remove support for Qt v4.3 or older versions
46 https://bugs.webkit.org/show_bug.cgi?id=29469
48 * Api/qcookiejar.cpp: Removed.
49 * Api/qcookiejar.h: Removed.
50 * Api/qgraphicswebview.cpp:
51 (QGraphicsWebView::event):
55 * Api/qwebkitglobal.h:
56 * Api/qwebnetworkinterface.cpp: Removed.
57 * Api/qwebnetworkinterface.h: Removed.
58 * Api/qwebnetworkinterface_p.h: Removed.
60 (QWebPagePrivate::QWebPagePrivate):
61 (QWebPagePrivate::acceptNavigationRequest):
62 (QWebPage::acceptNavigationRequest):
64 (QWebPage::userAgentForUrl):
71 * QtLauncher/main.cpp:
73 (MainWindow::setupUI):
75 * WebCoreSupport/FrameLoaderClientQt.cpp:
76 (WebCore::FrameLoaderClientQt::download):
77 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
78 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
79 (WebCore::FrameLoaderClientQt::startDownload):
80 (WebCore::FrameLoaderClientQt::createPlugin):
82 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
84 Reviewed by Eric Seidel.
86 [Qt] Add support for displaying deleteButton.
87 https://bugs.webkit.org/show_bug.cgi?id=31560
89 Test: LayoutTests/editing/deleting/5408255.html
91 * Api/qwebsettings.cpp:
95 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
97 Reviewed by Simon Hausmann.
99 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
101 * tests/qwebelement/tst_qwebelement.cpp:
102 (tst_QWebElement::render):
104 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
106 Reviewed by Tor Arne Vestbø.
108 Clarify and simplify the legal section in the overview documentation,
109 after review with our legal team.
111 * docs/qtwebkit.qdoc:
113 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
115 Reviewed by Simon Hausmann.
117 [Qt] Add QtLauncher support for opening links in the default browser
119 This can be triggered by either the context menu or by clicking a link
120 while holding down the Alt key. Opening a link in a new windows is
121 triggered by holding down Shift.
123 * QtLauncher/main.cpp:
125 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
127 Reviewed by Kenneth Rohde Christiansen.
129 [Qt] QGLLauncher does not support drag&drop of local files
130 https://bugs.webkit.org/show_bug.cgi?id=31057
132 Enable accepting files in QGraphicsWebView.
134 * Api/qgraphicswebview.cpp:
135 (QGraphicsWebView::QGraphicsWebView):
136 (QGraphicsWebView::dragEnterEvent):
138 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
140 Reviewed by Kenneth Christiansen.
142 [Qt] better test coverage for ErrorPageExtension
143 https://bugs.webkit.org/show_bug.cgi?id=31583
145 Improved the coverage of current ErrorPageExtension tests by
146 adding autotests involving frameset and iframes.
148 * tests/qwebpage/tst_qwebpage.cpp:
149 (ErrorPage::extension): Make the ErrorPageExtension
150 to work for all frames, not only the main frame.
151 (tst_QWebPage::errorPageExtension): Stop using
152 the 'frameset.html' resouce in this method since
153 an autotest specific for frameset's is being added.
154 (tst_QWebPage::errorPageExtensionInIFrames): Added.
155 (tst_QWebPage::errorPageExtensionInFrameset): Added.
157 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
159 Reviewed by Kenneth Rohde Christiansen.
161 API documentation fixes.
163 * Api/qgraphicswebview.cpp: Removed duplicate docs.
164 * Api/qwebelement.cpp: Added missing docs.
165 * Api/qwebsettings.cpp: Ditto.
167 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
169 Reviewed by Antti Koivisto.
171 [Qt] Broken back/forward after using ErrorPageExtension to set error page
172 https://bugs.webkit.org/show_bug.cgi?id=30573
174 Implemented autotests for covering the back/forward
175 reset problem involving error pages.
177 * tests/qwebpage/tst_qwebpage.cpp:
178 (tst_QWebPage::errorPageExtension):
180 2009-11-13 Adam Roben <aroben@apple.com>
182 Update for changes to FrameLoaderClient
184 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
185 window objects in isolated worlds are cleared
187 Reviewed by Dave Hyatt.
189 * WebCoreSupport/FrameLoaderClientQt.cpp:
190 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
191 * WebCoreSupport/FrameLoaderClientQt.h:
192 Replaced windowObjectCleared with this function. Does nothing if the
193 passed-in world is not the mainThreadNormalWorld().
195 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
197 Reviewed by Kenneth Rohde Christiansen.
199 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
200 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
202 * Api/qwebsettings.cpp:
203 (QWebSettingsPrivate::apply):
204 (QWebSettings::setMaximumPagesInCache):
206 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
208 Reviewed by Kenneth Rohde Christiansen.
210 [Qt] Fix initial QWebView focus behavior.
212 focusController->setFocused(true) was not always called.
213 https://bugs.webkit.org/show_bug.cgi?id=31466
216 (QWebPagePrivate::focusInEvent):
218 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
220 Reviewed by Simon Hausmann.
222 Update documentation for the Qt API
224 * Api/qgraphicswebview.cpp:
225 * Api/qwebelement.cpp:
227 * Api/qwebsettings.cpp:
230 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
232 Reviewed by Simon Hausmann.
234 Use correct install-path when running qdoc3
238 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
240 Reviewed by Darin Adler.
242 externalRepresentation should take Frame as the argument
243 https://bugs.webkit.org/show_bug.cgi?id=31393
245 No new tests as this is just a refactoring.
248 (QWebFrame::renderTreeDump):
250 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
252 Reviewed by Jan Alonzo.
254 [Qt] Various doc fixes
255 https://bugs.webkit.org/show_bug.cgi?id=31358
257 QWebPage's constructor docs are mentioning "QWebView":
258 "Constructs an empty QWebView with parent".
262 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
264 Reviewed by Kenneth Rohde Christiansen.
266 Custom printing shrink factors
267 https://bugs.webkit.org/show_bug.cgi?id=29042
269 This reverts commit r49769. The public API for this needs to be reviewed
270 before its inclusion in Qt.
272 * Api/qwebsettings.cpp:
273 (QWebSettingsPrivate::apply):
274 (QWebSettings::QWebSettings):
275 * Api/qwebsettings.h:
277 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
279 Reviewed by Kenneth Christiansen.
281 [Qt] Various doc fixes
282 https://bugs.webkit.org/show_bug.cgi?id=31358
284 Fixed wrong documentation: item's dimensions do fit to Web page
287 Kenneth agreed to land this as a followup patch to the
288 just landed documentation patch.
290 * Api/qgraphicswebview.cpp:
292 2009-11-11 David Boddie <dboddie@trolltech.com>
294 Reviewed by Kenneth Christiansen.
296 [Qt] Various doc fixes
297 https://bugs.webkit.org/show_bug.cgi?id=31323
299 Fixed and synchronized QWebView related documentation.
301 * Api/qgraphicswebview.cpp:
304 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
306 Unreviewed buildbot fix.
308 Export a method to the DRT to know if the document has a
312 (qt_drt_hasDocumentElement):
314 2009-11-11 Liang QI <liang.qi@nokia.com>
316 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
318 * tests/qwebframe/qwebframe.pro:
319 * tests/qwebframe/tst_qwebframe.cpp:
320 * tests/qwebpage/qwebpage.pro:
321 * tests/qwebpage/tst_qwebpage.cpp:
323 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
325 Reviewed by Simon Hausmann.
327 Fix a crash in the layout test plugins/document-open.html
330 (QWebFrame::toPlainText):
332 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
334 Reviewed by Tor Arne Vestbø.
336 [Qt] Regression: Preserve the parent of plugin objects when using
337 QtWebKit with only a QWebPage.
339 * WebCoreSupport/FrameLoaderClientQt.cpp:
340 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
342 * tests/qwebpage/tst_qwebpage.cpp:
343 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
344 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
346 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
347 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
348 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
349 plugin parent remains unchanged.
351 2009-11-11 David Boddie <dboddie@trolltech.com>
353 [Qt] Doc: Added internal or hidden placeholder documentation.
357 2009-11-11 Martin Smith <msmith@trolltech.com>
359 [Qt] doc: Changed Trolltech to Nokia
363 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
365 Reviewed by Kenneth Rohde Christiansen.
367 https://bugs.webkit.org/show_bug.cgi?id=31323
368 Fix a few compiler warnings
370 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
371 to make it explicit where the else case belongs
373 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
375 Reviewed by Tor Arne Vestbø.
377 Fix enabling of software input panel when activating editable elements
380 * Api/qgraphicswebview.cpp:
381 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
382 query for input method support.
384 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
385 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
386 test for input method support. Instead query using QWebPageClient
387 and send the SIPR event to the ownerWidget() instead of the view().
388 The latter is null for QGraphicsWebView.
389 * tests/qwebpage/tst_qwebpage.cpp:
390 (EventSpy::EventSpy):
391 (EventSpy::eventFilter):
392 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
393 events are dispatched when activating focusable content.
395 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
397 Unreviewed documentation fixes.
399 Added a few improvements from Jocelyn Turcotte to the
404 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
406 Unreviewed documentation fix.
408 [Qt] Make qwebpage's createWindow not qwebview dependent.
409 https://bugs.webkit.org/show_bug.cgi?id=30771
411 Update documentation to make it clear that a reimplementation
412 of the createWindow method of the associated QWebPage can
413 result in the QWebView::createWindow method to never be called.
417 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
419 Reviewed by Kenneth Rohde Christiansen.
421 [Qt] Few classes have virtual functions but non-virtual destructor
422 https://bugs.webkit.org/show_bug.cgi?id=31269
424 * Api/qgraphicswebview.cpp:
425 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
428 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
430 Reviewed by Kenneth Rohde Christiansen.
432 https://bugs.webkit.org/show_bug.cgi?id=30628
433 Add an API to get all the attributes from a QWebElement.
435 * Api/qwebelement.cpp:
436 (QWebElement::attributesName):
438 * tests/qwebelement/tst_qwebelement.cpp:
439 (tst_QWebElement::listAttributes):
441 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
443 Reviewed by Kenneth Rohde Christiansen.
445 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
446 https://bugs.webkit.org/show_bug.cgi?id=31040
449 (QWebPagePrivate::handleScrolling):
451 2009-11-09 Mark Mentovai <mark@chromium.org>
453 Reviewed by Dan Bernstein.
455 Track "can have scrollbar" state within FrameView independently of the
456 individual scrollbar states in ScrollView.
458 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
459 REGRESSION (r48064): mint.com loses scrollbars after coming out of
462 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
463 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
465 Test: fast/overflow/scrollbar-restored.html
468 (QWebFrame::setScrollBarPolicy):
470 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
472 Reviewed by Kenneth Rohde Christiansen.
474 https://bugs.webkit.org/show_bug.cgi?id=30772
475 Add a non-const iterator to QWebElementCollection.
476 Move the two attributes of the iterator to private.
479 (const_iterator::begin):
480 (const_iterator::end):
481 (const_iterator::constBegin):
482 (const_iterator::constEnd):
483 (const_iterator::iterator::iterator):
484 (const_iterator::iterator::operator*):
485 (const_iterator::iterator::operator==):
486 (const_iterator::iterator::operator!=):
487 (const_iterator::iterator::operator<):
488 (const_iterator::iterator::operator<=):
489 (const_iterator::iterator::operator>):
490 (const_iterator::iterator::operator>=):
491 (const_iterator::iterator::operator++):
492 (const_iterator::iterator::operator--):
493 (const_iterator::iterator::operator+=):
494 (const_iterator::iterator::operator-=):
495 (const_iterator::iterator::operator+):
496 (const_iterator::iterator::operator-):
497 * tests/qwebelement/tst_qwebelement.cpp:
498 (tst_QWebElement::nonConstIterator):
499 (tst_QWebElement::constIterator):
501 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
503 Reviewed by Kenneth Christiansen.
505 [Qt] Remove the sessionStorage setting (per Page)
506 https://bugs.webkit.org/show_bug.cgi?id=31249
508 This setting allows to run sessionStorage on/off on a per page
509 basis. Remove this prematurely exposed API.
511 * Api/qwebsettings.cpp:
512 (QWebSettingsPrivate::apply):
513 (QWebSettings::QWebSettings):
514 * tests/qwebpage/tst_qwebpage.cpp:
515 (tst_QWebPage::database):
516 (tst_QWebPage::testOptionalJSObjects):
518 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
520 Reviewed by Simon Hausmann.
522 [Qt] Remove the QWebPage:webInspectorTriggered signal.
523 User customization of the communication between QWebPage
524 and QWebInspector will be properly designed in the next version.
525 https://bugs.webkit.org/show_bug.cgi?id=30773
527 * Api/qwebinspector.cpp:
529 (QWebPagePrivate::getOrCreateInspector):
530 (QWebPage::triggerAction):
532 * QtLauncher/main.cpp:
533 (MainWindow::MainWindow):
535 2009-11-05 Simon Hausmann <hausmann@webkit.org>
537 Reviewed by Tor Arne Vestbø.
539 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
541 * Api/qgraphicswebview.cpp:
542 (QGraphicsWebView::inputMethodQuery):
543 * Api/qgraphicswebview.h:
545 2009-11-04 Simon Hausmann <hausmann@webkit.org>
547 Reviewed by Tor Arne Vestbø.
549 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
552 * Api/qgraphicswebview.cpp:
553 (QGraphicsWebView::sizeHint):
554 * Api/qgraphicswebview.h:
556 2009-11-04 Simon Hausmann <hausmann@webkit.org>
558 Reviewed by Tor Arne Vestbø.
560 Removed zoomFactoryChanged() signal and added
561 linkClicked() to QGraphicsWebView, for consistency with
564 * Api/qgraphicswebview.cpp:
565 (QGraphicsWebView::setPage):
566 (QGraphicsWebView::setZoomFactor):
567 * Api/qgraphicswebview.h:
569 2009-11-04 Simon Hausmann <hausmann@webkit.org>
571 Reviewed by Tor Arne Vestbø.
573 Added QGraphicsWebView::findText() for convenience and consistency
576 * Api/qgraphicswebview.cpp:
577 (QGraphicsWebView::findText):
578 * Api/qgraphicswebview.h:
580 2009-11-04 Simon Hausmann <hausmann@webkit.org>
582 Reviewed by Tor Arne Vestbø.
584 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
585 consistency with QWebView.
587 * Api/qgraphicswebview.cpp:
588 (QGraphicsWebView::pageAction):
589 (QGraphicsWebView::triggerPageAction):
590 * Api/qgraphicswebview.h:
592 2009-11-04 Simon Hausmann <hausmann@webkit.org>
594 Reviewed by Tor Arne Vestbø.
596 Removed QGraphicsWebView::toHtml() after API review.
598 That's consistent with QWebView and also based on the assumption that
599 toHtml() is called less frequently than setHtml().
601 * Api/qgraphicswebview.cpp:
602 * Api/qgraphicswebview.h:
603 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
604 (tst_QGraphicsWebView::qgraphicswebview):
606 2009-11-04 Simon Hausmann <hausmann@webkit.org>
608 Reviewed by Tor Arne Vestbø.
610 Removed the interactive property of QGraphicsWebView.
612 There are clearly use-cases for this feature, but it will require
613 more work to make this fully work with an enum to have fine-grained
614 control over the interactivity levels. For now it is easy to achieve
615 in user-code what the boolean property did.
617 * Api/qgraphicswebview.cpp:
618 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
619 (QGraphicsWebView::hoverMoveEvent):
620 (QGraphicsWebView::mouseMoveEvent):
621 (QGraphicsWebView::mousePressEvent):
622 (QGraphicsWebView::mouseReleaseEvent):
623 (QGraphicsWebView::mouseDoubleClickEvent):
624 (QGraphicsWebView::keyPressEvent):
625 (QGraphicsWebView::keyReleaseEvent):
626 (QGraphicsWebView::dragLeaveEvent):
627 (QGraphicsWebView::dragMoveEvent):
628 (QGraphicsWebView::dropEvent):
629 (QGraphicsWebView::wheelEvent):
630 (QGraphicsWebView::inputMethodEvent):
631 * Api/qgraphicswebview.h:
632 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
633 (tst_QGraphicsWebView::qgraphicswebview):
635 2009-11-04 Simon Hausmann <hausmann@webkit.org>
637 Reviewed by Tor Arne Vestbø.
639 Make the QGraphicsWebView constructor explicit.
641 * Api/qgraphicswebview.h:
643 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
645 Reviewed by Tor Arne Vestbø.
647 Add support for Shift-PageUp and Shift-PageDown key events.
648 https://bugs.webkit.org/show_bug.cgi?id=31166
650 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
652 * WebCoreSupport/EditorClientQt.cpp:
653 (WebCore::EditorClientQt::handleKeyboardEvent):
655 2009-11-05 Simon Hausmann <hausmann@webkit.org>
657 Last Qt 4.5 build fix (*sigh*)
659 * tests/qwebpage/tst_qwebpage.cpp:
660 (inputMethodHints): inputMethodHints() is only used for
661 Qt 4.6, so guard the whole function.
663 2009-11-05 Simon Hausmann <hausmann@webkit.org>
665 Another prospective build fix against Qt 4.5 (build bot)
667 Don't compile & run the QGraphicsWebView portion of the
668 input methods auto test with Qt 4.5.
670 * tests/qwebpage/tst_qwebpage.cpp:
671 (tst_QWebPage::inputMethods_data):
673 (inputMethodEnabled):
674 (tst_QWebPage::inputMethods):
676 2009-11-05 Simon Hausmann <hausmann@webkit.org>
678 Prospective build fix against Qt 4.5 (build bot)
680 * Api/qgraphicswebview.cpp:
681 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
682 use of Qt 4.6 specific API with #ifdefs.
684 2009-11-01 Simon Hausmann <hausmann@webkit.org>
686 Reviewed by Kenneth Christiansen.
688 [Qt] Fix enabling of input method support on QGraphicsWebView.
689 https://bugs.webkit.org/show_bug.cgi?id=30605
691 Instead of setting the unsupported widget attribute on the
692 QGraphicsWidget in setInputMethodEnabled() set the
693 ItemAcceptsInputMethod GraphicsItem flag directly.
695 Changed the existing input method auto test to run once
696 on a QWebView and once on a QGraphicsWebView.
698 * Api/qgraphicswebview.cpp:
699 (QGraphicsWebViewPrivate::setInputMethodEnabled):
700 * tests/qwebpage/tst_qwebpage.cpp:
701 (tst_QWebPage::inputMethods_data):
703 (inputMethodEnabled):
704 (tst_QWebPage::inputMethods):
706 2009-11-04 Simon Hausmann <hausmann@webkit.org>
708 Reviewed by Kenneth Christiansen.
710 Added QGraphicsWebView::modified property, for consistency
713 * Api/qgraphicswebview.cpp:
714 (QGraphicsWebView::isModified):
715 * Api/qgraphicswebview.h:
716 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
717 (tst_QGraphicsWebView::qgraphicswebview):
719 2009-11-04 Simon Hausmann <hausmann@webkit.org>
721 Reviewed by Kenneth Christiansen.
723 Removed status and progress properties of QGraphicsWebView.
724 Added loadProgress and statusBarMessage signals instead,
727 * Api/qgraphicswebview.cpp:
728 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
729 (QGraphicsWebView::setPage):
730 * Api/qgraphicswebview.h:
731 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
732 (tst_QGraphicsWebView::qgraphicswebview):
734 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
736 Reviewed by Simon Hausmann.
738 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
739 https://bugs.webkit.org/show_bug.cgi?id=30979
741 Decouple QWebViewPrivate from QWebPageClient, and automatically create
742 QWebPageWidgetClient whenever the view is QWidget based.
745 (QWebPageWidgetClient::QWebPageWidgetClient):
746 (QWebPageWidgetClient::scroll):
747 (QWebPageWidgetClient::update):
748 (QWebPageWidgetClient::setInputMethodEnabled):
749 (QWebPageWidgetClient::setInputMethodHint):
750 (QWebPageWidgetClient::cursor):
751 (QWebPageWidgetClient::updateCursor):
752 (QWebPageWidgetClient::palette):
753 (QWebPageWidgetClient::screenNumber):
754 (QWebPageWidgetClient::ownerWidget):
755 (QWebPageWidgetClient::pluginParent):
758 (QWebView::~QWebView):
762 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
764 Reviewed by Simon Hausmann.
766 [Qt] Fix build of unit-test after r50454.
768 * tests/qwebpage/tst_qwebpage.cpp:
770 2009-11-03 Simon Hausmann <hausmann@webkit.org>
772 Reviewed by Tor Arne Vestbø.
774 Make QWebPluginDatabase private API for now.
776 https://bugs.webkit.org/show_bug.cgi?id=30775
779 * Api/qwebplugindatabase.cpp:
780 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
781 * Api/qwebsettings.cpp:
782 * Api/qwebsettings.h:
783 * QtLauncher/main.cpp:
784 (MainWindow::setupUI):
787 2009-11-03 Simon Hausmann <hausmann@webkit.org>
789 Rubber-stamped by Tor Arne Vestbø.
791 Oops, also remove the API docs of the removed networkRequestStarted() signal.
795 2009-11-03 Simon Hausmann <hausmann@webkit.org>
797 Reviewed by Tor Arne Vestbø.
799 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
800 property set to the QWebFrame that belongs to the request.
802 https://bugs.webkit.org/show_bug.cgi?id=29975
805 * WebCoreSupport/FrameLoaderClientQt.cpp:
806 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
807 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
808 (WebCore::FrameLoaderClientQt::startDownload):
809 * tests/qwebpage/tst_qwebpage.cpp:
810 (tst_QWebPage::loadFinished):
811 (TestNetworkManager::createRequest):
812 (tst_QWebPage::originatingObjectInNetworkRequests):
814 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
816 Reviewed by Adam Barth.
820 The QWebView should not crash if the stop() method is called from
821 a function triggered by the loadProgress signal.
823 A null pointer protection was added in the ProgressTracker::incrementProgress.
825 New autotest was created.
827 https://bugs.webkit.org/show_bug.cgi?id=29425
829 * tests/qwebview/tst_qwebview.cpp:
830 (WebViewCrashTest::WebViewCrashTest):
831 (WebViewCrashTest::loading):
832 (tst_QWebView::crashTests):
834 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
836 Reviewed by Eric Seidel.
838 Turn on warnings for QtWebKit for gcc
839 https://bugs.webkit.org/show_bug.cgi?id=30958
842 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
843 to fix compiler warnings.
844 * WebCoreSupport/FrameLoaderClientQt.cpp:
845 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
847 2009-10-30 Evan Stade <estade@chromium.org>
849 Reviewed by David Levin.
851 Notify the chrome when the focused node has changed.
852 https://bugs.webkit.org/show_bug.cgi?id=30832
854 Added stub implementation for new ChromeClient function.
856 * WebCoreSupport/ChromeClientQt.cpp:
857 (WebCore::ChromeClientQt::focusedNodeChanged):
858 * WebCoreSupport/ChromeClientQt.h:
860 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
862 Reviewed by Tor Arne Vestbø.
864 [Qt] Remove the QWebInspector::windowTitleChanged signal,
865 QEvent::WindowTitleChange can be used to achieve the same.
866 https://bugs.webkit.org/show_bug.cgi?id=30927
868 * Api/qwebinspector.cpp:
869 * Api/qwebinspector.h:
870 * WebCoreSupport/InspectorClientQt.cpp:
871 (WebCore::InspectorClientQt::updateWindowTitle):
873 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
875 Reviewed by Tor Arne Vestbø.
877 [Qt] Implement DELETE HTTP method for XmlHttpRequest
878 https://bugs.webkit.org/show_bug.cgi?id=30894
880 No new tests as this functionality is already tested by the
881 xmlhttprequest LayoutTests. As this patch depends on an unreleased
882 version of the dependent QtNetwork library and the tests will be
883 enabled later once the dependent library is released (and the
884 buildbot is updated).
889 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
891 Reviewed by Tor Arne Vestbø.
893 Remove QWebView::guessUrlFromString() and replace its use
894 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
898 * QGVLauncher/main.cpp:
900 (WebPage::applyProxy):
902 * QtLauncher/main.cpp:
904 (MainWindow::MainWindow):
905 (MainWindow::changeLocation):
906 * tests/qwebview/tst_qwebview.cpp:
908 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
910 Reviewed by Tor Arne Vestbø.
912 Serialize directly to the stream, and not first to an QByteArray,
913 that is later serialized. That is slower and also uses more bytes.
915 * Api/qwebhistory.cpp:
919 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
921 Reviewed by Eric Seidel.
923 [Qt] WebFrame::counterValueForElementById must not be exposed
924 https://bugs.webkit.org/show_bug.cgi?id=30882
927 (qt_drt_counterValueForElementById):
930 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
932 Reviewed by Darin Adler.
934 Provide a way to get counter values with layoutTestContoller
935 https://bugs.webkit.org/show_bug.cgi?id=30555
938 (QWebFrame::counterValueForElementById):
939 (QWebHitTestResult::frame):
942 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
944 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
946 [Qt] [API] Make it possible to have 'invisible' loads
947 https://bugs.webkit.org/show_bug.cgi?id=29248
949 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
951 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
953 Reviewed by Tor Arne Vestbø.
955 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
956 https://bugs.webkit.org/show_bug.cgi?id=30710
958 Make the versioning internal and enforce it in the WebCore
959 part. Adjust the comments, as well as remove now dead code.
961 * Api/qwebhistory.cpp:
966 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
968 Reviewed by Holger Freyther.
970 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
971 https://bugs.webkit.org/show_bug.cgi?id=30710
973 Remove the QWebHistory::saveState() and ::restoreState() as
974 they are inconsistent with the Qt API.
976 Update unittests to reflect the change.
978 * Api/qwebhistory.cpp:
982 * tests/qwebhistory/tst_qwebhistory.cpp:
985 (tst_QWebHistory::saveAndRestore_crash_1):
986 (tst_QWebHistory::saveAndRestore_crash_2):
987 (tst_QWebHistory::saveAndRestore_crash_3):
988 (tst_QWebHistory::clear):
990 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
992 Reviewed by Holger Freyther.
994 Complementary fix to bug 30779.
996 By mistake I used QWeakPointer's toStrongRef() method which docs
997 explicitly say to not be used in this situation (when the tracked
998 pointer is devired from QObject). Instead QWeakPointer's data()
1004 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1006 Reviewed by Simon Fraser.
1008 Change HitTestResult methods to use (3d) transformation aware methods
1009 https://bugs.webkit.org/show_bug.cgi?id=27347
1011 The HitTestResult::boundingBox method was removed. The
1012 RenderObject must be used directly. In contrast to the
1013 old HitTestResult::boundingBox method this code must use
1014 a (3d) transformation aware method to not run into an
1015 assert in SVGRenderBase::mapLocalToContainer.
1017 * Api/qwebframe.cpp:
1018 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1020 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1022 Rubberstamped by Oliver Hunt.
1024 Change two methods to be internal for DRT use only.
1026 Part of [Qt] Review all new API in Qt 4.6
1027 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1029 * Api/qwebsecurityorigin.cpp:
1030 (qt_drt_whiteListAccessFromOrigin):
1031 (qt_drt_resetOriginAccessWhiteLists):
1032 (QWebSecurityOrigin::localSchemes):
1033 * Api/qwebsecurityorigin.h:
1035 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1037 Reviewed by Tor Arne Vestbø.
1039 Make sure that initiating a rotation while rotating won't make
1040 it end up at rotation positions that are not a multiply of
1043 * QGVLauncher/main.cpp:
1044 (MainView::animatedFlip):
1046 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1048 Unreviewed Qt build fix.
1050 Update the tests as well to the new API change.
1052 * tests/qwebelement/tst_qwebelement.cpp:
1053 (tst_QWebElement::clear):
1055 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1057 Rubberstamped by Tor Arne Vestbø.
1059 [Qt] QWebElement::removeChildren() should be
1060 QWebElement::removeAllChildren()
1061 https://bugs.webkit.org/show_bug.cgi?id=30630
1063 * Api/qwebelement.cpp:
1064 (QWebElement::removeAllChildren):
1065 * Api/qwebelement.h:
1067 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1069 Reviewed by Antti Koivisto and Holger Freyther.
1071 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1072 https://bugs.webkit.org/show_bug.cgi?id=30779
1074 The fact that it was been set from external objects of qwebpage
1075 and not being deleted internally can lead to dangling references.
1077 * Api/qgraphicswebview.cpp:
1078 (QGraphicsWebView::~QGraphicsWebView):
1080 (QWebPagePrivate::QWebPagePrivate):
1081 (QWebPagePrivate::createContextMenu):
1082 (QWebPagePrivate::handleSoftwareInputPanel):
1083 (QWebPagePrivate::keyPressEvent):
1084 (QWebPage::setView):
1086 (QWebPage::javaScriptAlert):
1087 (QWebPage::javaScriptConfirm):
1088 (QWebPage::javaScriptPrompt):
1089 (QWebPage::shouldInterruptJavaScript):
1090 (QWebPage::createWindow):
1091 (QWebPage::extension):
1092 (QWebPage::chooseFile):
1093 (QWebPage::userAgentForUrl):
1096 (QWebView::~QWebView):
1098 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1100 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1102 Removes the check around the RenderHints property documentation
1103 that was clearly added to synchronize the source and header files
1104 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1107 The documentation has also been updated to ensure that Symbian
1108 users know that there is no actual RenderHints property on their
1113 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1115 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1117 Ensure that qdoc will always see the RenderHints property.
1119 The property was only defined in the header file if the Q_OS_SYMBIAN
1120 symbol was not defined, resulting in the property not showing up
1121 in the Qt documentation just because one platform doesn't support it.
1123 A follow up commit will improve the documentation for the property
1124 and note that it is not supported on the Symbiam platform.
1128 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1130 Reviewed by Tor Arne Vestbø.
1132 [Qt] Reintroduce QWebElementCollection
1134 Revert the patch that has replaced QWebElementCollection
1135 with QList<QWebElement>. Update the tests accordingly.
1137 Remove the constness of the return type of QWebElement operator[].
1139 https://bugs.webkit.org/show_bug.cgi?id=30767
1141 * Api/qwebelement.cpp:
1142 (QWebElement::findAll):
1143 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1144 (QWebElementCollectionPrivate::create):
1145 (QWebElementCollection::QWebElementCollection):
1146 (QWebElementCollection::operator=):
1147 (QWebElementCollection::~QWebElementCollection):
1148 (QWebElementCollection::operator+):
1149 (QWebElementCollection::append):
1150 (QWebElementCollection::count):
1151 (QWebElementCollection::at):
1152 (QWebElementCollection::toList):
1153 * Api/qwebelement.h:
1154 (const_iterator::begin):
1155 (const_iterator::end):
1156 (const_iterator::operator[]):
1157 * Api/qwebframe.cpp:
1158 (QWebFrame::findAllElements):
1160 * QtLauncher/main.cpp:
1161 (MainWindow::selectElements):
1162 * tests/qwebelement/tst_qwebelement.cpp:
1163 (tst_QWebElement::simpleCollection):
1164 (tst_QWebElement::iteration):
1165 (tst_QWebElement::emptyCollection):
1166 (tst_QWebElement::appendCollection):
1167 (tst_QWebElement::nullSelect):
1168 (tst_QWebElement::hasSetFocus):
1169 (tst_QWebElement::render):
1170 * tests/qwebpage/tst_qwebpage.cpp:
1171 (tst_QWebPage::inputMethods):
1173 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1175 Reviewed by Holger Freyther.
1177 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1178 https://bugs.webkit.org/show_bug.cgi?id=30476
1180 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1181 to all QtWebkit executables.
1183 * QGVLauncher/QGVLauncher.pro:
1184 * QtLauncher/QtLauncher.pro:
1185 * tests/benchmarks/loading/tst_loading.pro:
1186 * tests/benchmarks/painting/tst_painting.pro:
1187 * tests/qgraphicswebview/qgraphicswebview.pro:
1188 * tests/qwebelement/qwebelement.pro:
1189 * tests/qwebframe/qwebframe.pro:
1190 * tests/qwebhistory/qwebhistory.pro:
1191 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1192 * tests/qwebpage/qwebpage.pro:
1193 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1194 * tests/qwebview/qwebview.pro:
1196 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1198 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1199 Build fix following bug #30696.
1201 * Api/qwebelement.cpp:
1202 (setupScriptContext):
1203 * Api/qwebframe.cpp:
1204 (QWebFrame::evaluateJavaScript):
1206 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1208 Reviewed by Eric Seidel.
1210 [Qt] Enable track visited links in QWebPage
1211 https://bugs.webkit.org/show_bug.cgi?id=30574
1213 Test: fast/history/clicked-link-is-visited.html
1216 (QWebPagePrivate::QWebPagePrivate):
1218 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1220 Reviewed by Eric Seidel.
1222 [Qt] Add Print Shortcut to QtLauncher
1224 https://bugs.webkit.org/show_bug.cgi?id=30682
1226 * QtLauncher/main.cpp:
1227 (MainWindow::setupUI):
1229 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1231 Rubberstamped by Tor Arne Vestbø.
1233 Code standarlization for QGVLauncher.
1235 1) Made member initilization lists in constructors
1237 2) Made applyProxy method inline as all other methods in
1240 * QGVLauncher/main.cpp:
1242 (WebPage::applyProxy):
1243 (MainView::MainView):
1244 (MainWindow::MainWindow):
1247 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1249 Reviewed by Tor Arne Vestbø.
1251 Add a Y-Axis rotation to QGVLauncher.
1253 It uses the QStateMachine API from Qt 4.6.
1255 * QGVLauncher/main.cpp:
1257 (WebView::setYRotation):
1258 (WebView::yRotation):
1260 (MainView::animatedYFlip):
1261 (SharedScene::SharedScene):
1262 (SharedScene::webView):
1264 (MainWindow::animatedYFlip):
1265 (MainWindow::buildUI):
1267 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1269 Reviewed By Adam Barth.
1271 Add some actions to the menu for cursor debugging.
1273 GraphicsView based launcher only.
1275 * QGVLauncher/main.cpp:
1276 (MainView::setWaitCursor):
1277 (MainView::resetCursor):
1279 (MainWindow::setWaitCursor):
1280 (MainWindow::resetCursor):
1281 (MainWindow::buildUI):
1283 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1285 Rubberstamped by Adam Barth.
1287 Remove clipRenderToViewport as agreed upon in
1288 https://bugs.webkit.org/show_bug.cgi?id=29843
1290 * Api/qwebframe.cpp:
1292 * Api/qwebframe_p.h:
1293 (QWebFramePrivate::QWebFramePrivate):
1295 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1297 Reviewed by Adam Barth.
1299 Update the tests to test the new render functionality, and take
1300 into consideration that render() clips to the frame itself as well
1303 QWebFrame::render() now always clips, so the old tests were bogus.
1305 Rendering pure contents (no scrollbars etc) without clipping can now
1306 be accomplished using QWebFrame::documentElement()->render(...)
1308 * Api/qwebframe.cpp:
1310 * Api/qwebframe_p.h:
1311 (QWebFramePrivate::QWebFramePrivate):
1312 * tests/qwebframe/tst_qwebframe.cpp:
1314 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1316 Rubberstamped by Adam Barth.
1318 As we do not support rendering a QWebFrame without it being clipped
1319 the the frame as well as the viewport, we now set the viewport size
1320 to the size of the contents.
1322 Rendering pure contents (no scrollbars etc) without clipping can be
1323 acomplished using QWebFrame::documentElement()->render(...)
1325 * tests/qwebelement/tst_qwebelement.cpp:
1326 (tst_QWebElement::render):
1328 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1330 Reviewed by Tor Arne Vestbø.
1332 Add menu item to dump the plugin list to the console,
1333 which can be handy for debugging.
1335 * QtLauncher/main.cpp:
1336 (MainWindow::dumpPlugins):
1337 (MainWindow::setupUI):
1339 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1341 Reviewed by Tor Arne Vestbø.
1343 Introduce new render method on QWebFrame, which supports specifying
1344 which layers to render (scrollbars, contents, pan-icon).
1346 * Api/qwebframe.cpp:
1347 (QWebFramePrivate::renderPrivate):
1348 (QWebFrame::render):
1350 * Api/qwebframe_p.h:
1352 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1354 Reviewed by Ariya Hidayat.
1356 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1357 https://bugs.webkit.org/show_bug.cgi?id=30549
1359 Patch reimplements QGraphicsItem's itemChange method, and make
1360 CursorChange event to be emitted after cursor has already been
1363 QWidget::setCursor send the event just after it sets the cursor,
1364 then patch makes both behaviors compatible.
1366 * Api/qgraphicswebview.cpp:
1367 (QGraphicsWebView::itemChange):
1368 * Api/qgraphicswebview.h:
1370 2009-10-19 Nate Chapin <japhet@chromium.org>
1372 Unreviewed, build fix.
1374 Update call to FrameLoader::loadFrameRequest().
1377 (QWebPage::triggerAction):
1379 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1381 Reviewed by Ariya Hidayat.
1383 Add QWebElement::render API which allows rendering of single
1386 * Api/qwebelement.cpp:
1387 (QWebElement::render):
1388 * Api/qwebelement.h:
1389 * tests/qwebelement/tst_qwebelement.cpp:
1390 (tst_QWebElement::render):
1391 * tests/qwebelement/qwebelement.qrc:
1392 * tests/qwebelement/image.png: Added.
1394 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1396 Reviewed by Ariya Hidayat.
1398 QWebPage: Doc: setNetworkAccessManager should only be called once.
1402 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1404 Reviewed by Tor Arne.
1406 Wrong ifdef combination in QGraphicsWebView's event method.
1408 * Api/qgraphicswebview.cpp:
1409 (QGraphicsWebView::event):
1411 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1413 Reviewed by Holger Freyther.
1415 [Qt] Windowed Plugins: Don't crash when client is 0.
1417 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1418 In addition, setFrameRect()/updatePluginWidget() is called even if the
1419 plugin was not succesfully loaded. updatePluginWidget() updates the
1420 window rect which is, in theory, useful to draw something that indicates
1421 that we didn't load successfully.
1423 So, a status check is added to setNPWindowIfNeeded.
1425 https://bugs.webkit.org/show_bug.cgi?id=30380
1427 * tests/qwebpage/qwebpage.pro:
1428 * tests/qwebpage/tst_qwebpage.cpp:
1430 (tst_QWebPage::screenshot_data):
1431 (tst_QWebPage::screenshot):
1432 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1434 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1436 Reviewed by Holger Freyther.
1438 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1440 Fixes various sources of crashes:
1441 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1442 the PluginView is not notified about the deletion of PluginContainer.
1443 2. QWebView destructor does not set client to 0.
1444 3. Sometimes pending paint events are sent after the plugin has died, so add
1445 a check in PluginView::setNPWindowIfNeeded.
1447 https://bugs.webkit.org/show_bug.cgi?id=30354
1450 (QWebView::~QWebView):
1451 * tests/qwebview/qwebview.pro:
1452 * tests/qwebview/tst_qwebview.cpp:
1453 (tst_QWebView::reusePage_data):
1454 (tst_QWebView::reusePage):
1456 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1458 Reviewed by Adam Barth.
1460 https://bugs.webkit.org/show_bug.cgi?id=29042
1462 Allow one to costumize the minimal and maximal shrink factors,
1463 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1464 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1467 * Api/qwebsettings.cpp:
1468 (QWebSettingsPrivate::apply):
1469 (QWebSettings::QWebSettings):
1470 (QWebSettings::setPrintingMinimumShrinkFactor):
1471 (QWebSettings::printingMinimumShrinkFactor):
1472 (QWebSettings::setPrintingMaximumShrinkFactor):
1473 (QWebSettings::printingMaximumShrinkFactor):
1474 * Api/qwebsettings.h:
1476 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1478 Reviewed by Simon Hausmann.
1480 Rename fixedContentsSize property to preferredContentsSize as
1481 agreed upon with Simon Hausmann and Matthias Ettrich.
1484 (QWebPage::preferredContentsSize):
1485 (QWebPage::setPreferredContentsSize):
1487 * WebCoreSupport/FrameLoaderClientQt.cpp:
1488 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1490 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1492 Reviewed by Simon Hausmann.
1494 [Qt] QGLauncher leaks WebPage object
1495 https://bugs.webkit.org/show_bug.cgi?id=30465
1497 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1502 * QGVLauncher/main.cpp:
1503 (SharedScene::SharedScene):
1504 (SharedScene::~SharedScene):
1506 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1508 Reviewed by Simon Hausmann.
1510 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1511 https://bugs.webkit.org/show_bug.cgi?id=30459
1513 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1514 since QWebPageClient would do the trick.
1516 * Api/qgraphicswebview.cpp:
1517 (QGraphicsWebView::hoverMoveEvent):
1519 (QWebPagePrivate::mouseMoveEvent):
1520 (QWebPagePrivate::mousePressEvent):
1521 (QWebPagePrivate::mouseDoubleClickEvent):
1522 (QWebPagePrivate::mouseReleaseEvent):
1523 (QWebPagePrivate::wheelEvent):
1524 (QWebPagePrivate::dragEnterEvent):
1525 (QWebPagePrivate::dragLeaveEvent):
1526 (QWebPagePrivate::dragMoveEvent):
1528 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1530 Pull out r49676 as it caused build breakges on Symbian
1534 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1536 Reviewed by Tor Arne Vestbø.
1538 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1539 https://bugs.webkit.org/show_bug.cgi?id=30179
1541 Added "c" style static methods for the application to hook up for
1542 receiving notifications when a plugin is created or destroyed.
1546 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1548 Rubberstamped by Tor Arne.
1550 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1552 * QGVLauncher/main.cpp:
1555 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1557 Reviewed by Tor Arne.
1559 [Qt] QGLauncher crashes while closing a window
1560 https://bugs.webkit.org/show_bug.cgi?id=30385
1562 Set page's pageClient reference to '0' at QGWV deletion.
1564 * Api/qgraphicswebview.cpp:
1565 (QGraphicsWebView::~QGraphicsWebView):
1566 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1568 (WebPage::aborting):
1569 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1571 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1573 Reviewed by Simon Hausmann.
1575 [Qt] Make context menu to work in QGraphicsWebView
1576 https://bugs.webkit.org/show_bug.cgi?id=30336
1578 * Api/qgraphicswebview.cpp:
1579 (QGraphicsWebView::event):
1581 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1583 Reviewed by Simon Hausmann.
1585 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1587 This is a bug for two reasons:
1588 1. Everytime we use winId(), we end up creating a native widget. This causes an
1589 unnecessary copy of contents from the backing store to the native widget.
1590 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1593 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1594 (as opposed to QWidget::find(winId)).
1596 https://bugs.webkit.org/show_bug.cgi?id=30170
1598 * Api/qgraphicswebview.cpp:
1599 (QGraphicsWebViewPrivate::ownerWidget):
1601 (QWebViewPrivate::ownerWidget):
1603 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1605 Reviewed by Simon Hausmann.
1607 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1608 https://bugs.webkit.org/show_bug.cgi?id=30296
1610 * tests/qwebpage/tst_qwebpage.cpp:
1611 (ErrorPage::ErrorPage):
1612 (ErrorPage::supportsExtension):
1613 (ErrorPage::extension):
1614 (tst_QWebPage::errorPageExtension):
1616 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1618 Reviewed by Simon Hausmann.
1620 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1621 https://bugs.webkit.org/show_bug.cgi?id=30216
1623 QWebFrame::requestedUrl can be called at any time during the load
1626 * An error handling (whereas an alternate error page for unsuccessful
1628 * A ssl error exception call;
1629 * During navigation notifications/callbacks (titleChanged, urlChanged,
1630 progresses, addHistoryEntry, etc);
1633 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1634 m_loadError's failingURL when an error has occurred, unless it is
1637 Also, m_loadError is now being reset at each the main frame starts a
1638 load, in order to avoid previous load errors footprints.
1640 * Api/qwebframe.cpp:
1641 (QWebFrame::requestedUrl):
1642 * WebCoreSupport/FrameLoaderClientQt.cpp:
1643 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1645 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1647 Reviewed by Simon Hausmann.
1649 [Qt] Missing default value for the default text encoding.
1650 https://bugs.webkit.org/show_bug.cgi?id=30311
1652 QtWebKit has provided a default, hardcoded value for default charset but since
1653 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1654 value has had no effect.
1656 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1657 which is passing now.
1660 (QWebPagePrivate::QWebPagePrivate):
1661 * Api/qwebsettings.cpp:
1662 (QWebSettings::QWebSettings):
1663 * tests/qwebpage/tst_qwebpage.cpp:
1664 (tst_QWebPage::defaultTextEncoding):
1666 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1668 Reviewed by Simon Hausmann.
1670 Implement the new palette() methods on the page clients
1672 * Api/qgraphicswebview.cpp:
1673 (QGraphicsWebViewPrivate::palette):
1675 (QWebViewPrivate::palette):
1677 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1679 Reviewed by Simon Hausmann.
1681 QWebPage's createViewlessPlugin autotest crash fix.
1683 It is possible that plugins that are QWidgets or QGraphicsWidgets
1684 are created before a view has been assigned to a QWebPage. The
1685 plug-ins won't be fully functional, as by design, they should
1686 visualise something, but they won't crash and will stay in memory.
1688 An autotest that covers this use-case, is included.
1690 https://bugs.webkit.org/show_bug.cgi?id=30118
1692 * WebCoreSupport/FrameLoaderClientQt.cpp:
1693 (WebCore::FrameLoaderClientQt::createPlugin):
1694 * tests/qwebpage/tst_qwebpage.cpp:
1695 (PluginTrackedPageWidget::PluginTrackedPageWidget):
1696 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
1697 (PluginTrackedPageGraphicsWidget::createPlugin):
1698 (tst_QWebPage::destroyPlugin):
1699 (tst_QWebPage::createViewlessPlugin):
1701 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
1703 Reviewed by Simon Hausmann.
1705 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
1706 setInputMethodState. This change is needed so widgets such as the s60 software
1707 input panel can receive input method events for password fields.
1708 It's up to the Qt platform to determine which widget will receive input method
1709 events when these flags are set.
1710 Also added implementation for setInputMethodEnabled and setInputMethodHint
1711 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
1712 dependency on QWebView and uses QWebPageClient.
1713 Added autotest to tst_qwebpage.cpp
1714 https://bugs.webkit.org/show_bug.cgi?id=30023
1716 * Api/qgraphicswebview.cpp:
1717 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1718 (QGraphicsWebViewPrivate::setInputMethodHint):
1720 (QWebViewPrivate::setInputMethodEnabled):
1721 (QWebViewPrivate::setInputMethodHint):
1722 * WebCoreSupport/EditorClientQt.cpp:
1723 (WebCore::EditorClientQt::setInputMethodState):
1724 * tests/qwebpage/tst_qwebpage.cpp:
1725 (tst_QWebPage::inputMethods):
1727 2009-10-08 Adam Barth <abarth@webkit.org>
1729 Reviewed by Eric Seidel.
1731 Move executeScript from FrameLoader to ScriptController
1732 https://bugs.webkit.org/show_bug.cgi?id=30200
1736 * Api/qwebframe.cpp:
1737 (QWebFrame::evaluateJavaScript):
1739 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1741 Reviewed by Simon Hausmann.
1743 Part of testOptionalJSObjects autotest was marked as "expect to fail".
1745 Two places in tst_QWebPage::testOptionalJSObjects were marked as
1746 expected to fail. The problem concern checking if a feature is enabled
1747 or disabled. According to discussion on webkit dev mailing list
1748 a disabled feature should be invisible from java script level, but
1749 there are exceptions from the rule. So we decided to disable the test
1752 https://bugs.webkit.org/show_bug.cgi?id=29867
1754 * tests/qwebpage/tst_qwebpage.cpp:
1755 (tst_QWebPage::testOptionalJSObjects):
1757 2009-10-07 Adam Barth <abarth@webkit.org>
1759 Reviewed by Darin Adler.
1761 Factor PolicyChecker out of FrameLoader
1762 https://bugs.webkit.org/show_bug.cgi?id=30155
1764 Move the policy callback to the policy object.
1766 * WebCoreSupport/FrameLoaderClientQt.cpp:
1767 (WebCore::FrameLoaderClientQt::callPolicyFunction):
1769 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
1771 Reviewed by Simon Hausmann.
1773 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
1774 https://bugs.webkit.org/show_bug.cgi?id=30166
1776 * Api/qgraphicswebview.cpp:
1777 (QGraphicsWebViewPrivate::_q_doLoadFinished):
1778 * Api/qgraphicswebview.h:
1779 * QGVLauncher/main.cpp:
1781 (MainWindow::loadFinished):
1783 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
1785 Reviewed by Simon Hausmann.
1787 Add a simple rotation effect to QGVLauncher
1789 https://bugs.webkit.org/show_bug.cgi?id=30162
1791 * QGVLauncher/main.cpp:
1792 (MainView::animatedFlip):
1793 (MainWindow::animatedFlip):
1794 (MainWindow::buildUI):
1796 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
1798 Reviewed by Simon Hausmann.
1800 Doc: Document HTML and status as properties.
1802 * Api/qgraphicswebview.cpp:
1804 2009-10-07 Martin Smith <msmith@trolltech.com>
1806 Reviewed by Simon Hausmann.
1808 Fix qdoc warning about disabled renderHints property
1814 2009-10-06 Adam Barth <abarth@webkit.org>
1816 Reviewed by Eric Seidel.
1818 Move setLocalLoadPolicy and friends to SecurityOrigin
1819 https://bugs.webkit.org/show_bug.cgi?id=30110
1824 (QWebPagePrivate::QWebPagePrivate):
1826 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
1828 Reviewed by Ariya Hidayat.
1830 When the drag data contains an image set it on the QDrag so it will be visible to the user.
1832 * WebCoreSupport/DragClientQt.cpp:
1833 (WebCore::DragClientQt::startDrag):
1835 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
1837 Reviewed by Timothy Hatcher.
1839 Web Inspector: close inspector client view on
1840 InspectorController::close API call.
1842 In order to run batch web inspector layout tests (and not affect
1843 subsequent tests) we should close inspector client's view upon
1844 InspectorController::close API call.
1846 https://bugs.webkit.org/show_bug.cgi?id=30009
1848 * WebCoreSupport/InspectorClientQt.cpp:
1849 (WebCore::InspectorClientQt::createPage):
1851 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
1853 Reviewed by Simon Hausmann.
1855 [Qt] don't enable input methods on Symbian by default.
1856 https://bugs.webkit.org/show_bug.cgi?id=30117
1858 If input methods are enabled Symbian FEP will be launched on every
1859 pointer event making webpage navigation impossible with QWebView.
1862 (QWebView::QWebView):
1864 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
1866 Reviewed by Simon Hausmann.
1868 QtLauncher: print the number of loaded urls
1870 When using the -r mode print the number of URLs loaded so far. This
1871 is extremly useful when opening the same URL over and over again and
1872 one wants to see the progress.
1874 * QtLauncher/main.cpp:
1875 (URLLoader::URLLoader):
1876 (URLLoader::loadNext):
1878 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1880 Reviewed by Simon Hausmann.
1882 Add screenshot option to menubar
1884 https://bugs.webkit.org/show_bug.cgi?id=30067
1886 * QtLauncher/main.cpp:
1887 (MainWindow::screenshot):
1888 (MainWindow::setupUI):
1890 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1892 Reviewed by Simon Hausmann.
1894 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
1896 https://bugs.webkit.org/show_bug.cgi?id=30068
1898 * QtLauncher/main.cpp:
1899 (MainWindow::MainWindow):
1901 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1903 Rubberstamped by Simon Hausmann.
1905 Add documentation to the ErrorPageExtension.
1909 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
1911 Reviewed by Simon Hausmann.
1913 [Qt] Inform the application when a new request is created
1914 https://bugs.webkit.org/show_bug.cgi?id=29975
1916 Add a signal to QWebPage, to inform the application when a request is created.
1920 * tests/qwebpage/tst_qwebpage.cpp:
1921 (tst_QWebPage::loadFinished):
1923 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1925 Reviewed by Simon Hausmann.
1927 ErrorPageExtension: Add a pointer to the QWebFrame that had
1931 * WebCoreSupport/FrameLoaderClientQt.cpp:
1932 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1934 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1936 Reviewed by Tor Arne Vestbø.
1938 Do not empty the offline web appcache when clearing
1939 memory caches. That one is not in memory, but stored
1942 * Api/qwebsettings.cpp:
1943 (QWebSettings::clearMemoryCaches):
1945 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
1947 Reviewed by Simon Hausmann.
1949 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
1951 https://bugs.webkit.org/show_bug.cgi?id=29710
1953 * Api/qgraphicswebview.cpp:
1954 (QGraphicsWebViewPrivate::pluginParent):
1956 (QWebViewPrivate::pluginParent):
1957 * WebCoreSupport/FrameLoaderClientQt.cpp:
1959 (WebCore::FrameLoaderClientQt::createPlugin):
1961 2009-10-03 Adam Barth <abarth@webkit.org>
1963 Unreview build fix. I wish I had a try server...
1966 (QWebPagePrivate::updateAction):
1968 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
1970 Reviewed by Simon Hausmann.
1972 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
1973 Otherwise, it is inconsistent with class declaration of QCursor.
1975 * Api/qgraphicswebview.cpp:
1978 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
1980 Reviewed by Simon Hausmann.
1982 Fix compiler warnings about unused function arguments.
1984 * Api/qwebframe.cpp:
1985 (QWebFrame::scrollBarMinimum):
1987 (QWebPagePrivate::focusInEvent):
1988 (QWebPagePrivate::focusOutEvent):
1989 (QWebPagePrivate::leaveEvent):
1990 (QWebPage::javaScriptAlert):
1991 (QWebPage::javaScriptConfirm):
1992 (QWebPage::javaScriptPrompt):
1993 (QWebPage::triggerAction):
1994 (QWebPage::acceptNavigationRequest):
1995 (QWebPage::chooseFile):
1996 * WebCoreSupport/ChromeClientQt.cpp:
1997 (WebCore::ChromeClientQt::repaint):
1998 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1999 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2000 * WebCoreSupport/ContextMenuClientQt.cpp:
2001 (WebCore::ContextMenuClientQt::downloadURL):
2002 * WebCoreSupport/FrameLoaderClientQt.cpp:
2003 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2004 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2005 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2006 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2007 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2008 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2009 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2010 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2011 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2012 * WebCoreSupport/InspectorClientQt.cpp:
2013 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2014 (WebCore::InspectorClientQt::highlight):
2015 (WebCore::InspectorClientQt::removeSetting):
2017 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2019 Reviewed by Tor Arne Vestbø.
2021 Make Software Input Panel requests work with QGraphicsWebView
2022 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2025 (QWebPagePrivate::mouseReleaseEvent):
2026 (QWebPagePrivate::handleSoftwareInputPanel):
2029 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2031 Reviewed by Tor Arne Vestbø.
2033 Rename QWebGraphicsItem to QGraphicsWebView
2037 * Api/qwebgraphicsitem.cpp: Renamed.
2038 * Api/qwebgraphicsitem.h: Renamed.
2039 * WebKit/qt/QGVLauncher/main.cpp:
2041 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2042 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2044 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2046 Reviewed by Simon Hausmann.
2048 https://bugs.webkit.org/show_bug.cgi?id=29248
2049 [Qt] [API] Make it possible to have 'invisible' loads
2051 Make QWebFrame's setHtml and setContent methods to not change
2052 session and global history at all.
2054 * Api/qwebframe.cpp:
2055 (QWebFrame::setHtml):
2056 (QWebFrame::setContent):
2057 * tests/qwebframe/qwebframe.pro:
2058 * tests/qwebframe/tst_qwebframe.cpp:
2060 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2062 Reviewed by Simon Hausmann.
2064 Fixed software input panel support on web input elements.
2066 Send the RequestSoftwareInputPanel event if the element supports focus
2067 and the element is clicked.
2070 (QWebPagePrivate::QWebPagePrivate):
2071 (QWebPagePrivate::mousePressEvent):
2072 (QWebPagePrivate::mouseReleaseEvent):
2075 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2077 Reviewed by Simon Hausmann.
2079 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2081 https://bugs.webkit.org/show_bug.cgi?id=29681
2083 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2085 * Fixed surrounding text to exclude preedit string
2086 * Avoid emission of microFocusChanged during setComposition()
2089 (QWebPagePrivate::inputMethodEvent):
2090 (QWebPage::inputMethodQuery):
2091 * WebCoreSupport/EditorClientQt.cpp:
2092 (WebCore::EditorClientQt::respondToChangedSelection):
2093 * tests/qwebpage/tst_qwebpage.cpp:
2094 (tst_QWebPage::inputMethods):
2096 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2098 Reviewed by David Hyatt.
2100 Add the failed URL to the ErrorPageExtension, as it is quite
2101 useful for creating error pages.
2104 * WebCoreSupport/FrameLoaderClientQt.cpp:
2105 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2107 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2109 Reviewed by Tor Arne Vestbø.
2111 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2112 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2114 * Api/qwebsettings.cpp:
2115 (QWebSettings::QWebSettings):
2117 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2119 Reviewed by Simon Hausmann.
2121 https://bugs.webkit.org/show_bug.cgi?id=29844
2123 QWebPage dependency autotest fix.
2125 Fix for database() autotest. All opened databases should be removed at
2128 * tests/qwebpage/tst_qwebpage.cpp:
2129 (tst_QWebPage::database):
2131 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2133 Reviewed by Simon Hausmann.
2135 Some QWebHistory and QWebPage autotest crash fixes.
2137 Some checking for m_mainFrame were added. MainFrame should be created
2138 at some point of QWebPage live cicle.
2140 https://bugs.webkit.org/show_bug.cgi?id=29803
2143 (QWebPage::~QWebPage):
2144 (QWebPage::currentFrame):
2145 (QWebPage::history):
2146 (QWebPage::selectedText):
2147 (QWebPage::updatePositionDependentActions):
2148 * tests/qwebpage/tst_qwebpage.cpp:
2149 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2151 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2153 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2155 Implement QWebPage Extension for error pages, incl.
2156 an example on how to use it in QtLauncher.
2158 Correct our use of ResourceError.
2161 (ExtensionOption::):
2162 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2163 * QtLauncher/main.cpp:
2164 (WebPage::supportsExtension):
2165 (MainWindow::MainWindow):
2166 (MainWindow::selectElements):
2167 (WebPage::extension):
2168 * WebCoreSupport/FrameLoaderClientQt.cpp:
2169 (WebCore::FrameLoaderClientQt::cancelledError):
2170 (WebCore::FrameLoaderClientQt::blockedError):
2171 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2172 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2173 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2174 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2175 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2176 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2177 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2178 * WebCoreSupport/FrameLoaderClientQt.h:
2180 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2182 Reviewed by Simon Hausmann.
2184 Compile fix with namespaced Qt.
2186 * Api/qwebinspector_p.h:
2188 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2190 Reviewed by Simon Hausmann.
2192 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2193 clients that want to check/set the focus node of the document.
2194 https://bugs.webkit.org/show_bug.cgi?id=29682
2196 * Api/qwebelement.cpp:
2197 (QWebElement::hasFocus):
2198 (QWebElement::setFocus):
2199 * Api/qwebelement.h:
2200 * tests/qwebelement/tst_qwebelement.cpp:
2201 (tst_QWebElement::hasSetFocus):
2203 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2205 Reviewed by Simon Hausmann.
2207 [Qt] Make tst_qwebframe work if Qt built without SSL support
2208 https://bugs.webkit.org/show_bug.cgi?id=29735
2210 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2212 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2214 Reviewed by Simon Hausmann.
2216 [Qt] Update QWebElement API to remove script related methods.
2217 QWebElement::evaluateScript is the only one kept, these are
2218 removed to postpone most of the QtWebKit<->JavaScript API design
2220 https://bugs.webkit.org/show_bug.cgi?id=29708
2222 * Api/qwebelement.cpp:
2223 * Api/qwebelement.h:
2225 - QWebElement::callFunction
2226 - QWebElement::functions
2227 - QWebElement::scriptableProperty
2228 - QWebElement::setScriptableProperty
2229 - QWebElement::scriptableProperties
2230 * tests/qwebelement/tst_qwebelement.cpp:
2231 (tst_QWebElement::evaluateScript):
2233 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2235 Reviewed by Simon Hausmann.
2237 [Qt] Rename QWebElement::evaluateScript
2238 to QWebElement::evaluateJavaScript.
2239 https://bugs.webkit.org/show_bug.cgi?id=29709
2241 * Api/qwebelement.cpp:
2242 (QWebElement::evaluateJavaScript):
2243 * Api/qwebelement.h:
2244 * tests/qwebelement/tst_qwebelement.cpp:
2245 (tst_QWebElement::evaluateJavaScript):
2247 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2249 Reviewed by Simon Hausmann.
2251 [Qt] Update the stypeProperty API of QWebElement.
2252 https://bugs.webkit.org/show_bug.cgi?id=29711
2254 * Api/qwebelement.cpp:
2255 (QWebElement::styleProperty):
2256 - Merge the stypeProperty and the computedStyleProperty methods
2257 - Remove the default value for the style resolving enum
2258 - Rename ResolveRule to StyleResolveStrategy
2259 (QWebElement::setStyleProperty):
2260 - Remove the priority argument since it is possible to control the
2261 behaviour by adding !important or removing in the value.
2262 * Api/qwebelement.h:
2263 * tests/qwebelement/tst_qwebelement.cpp:
2264 (tst_QWebElement::style):
2265 (tst_QWebElement::computedStyle):
2266 * tests/qwebframe/tst_qwebframe.cpp:
2268 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2270 Reviewed by Alice Liu.
2273 (QWebPagePrivate::QWebPagePrivate):
2274 Pass 0 for new Page constructor argument.
2276 2009-09-24 Martin Smith <msmith@trolltech.com>
2278 Reviewed by Simon Hausmann.
2280 qdoc: Added \brief texts to all the since 4.6 functions.
2282 * Api/qwebhistory.cpp:
2284 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2286 Reviewed by Simon Hausmann.
2288 Prevent QWebPage::setView() from changing the viewport size on the fly
2289 in case the view doesn't actually change. QWebPage::setView() is
2290 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2291 the viewport size to be equal to the size of the whole graphics view.
2293 https://bugs.webkit.org/show_bug.cgi?id=29676
2296 (QWebPage::setView):
2298 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2300 Reviewed by Simon Hausmann.
2302 [Qt] Crash fix in QWebHistory back and forward methods.
2304 QWebHistory::back() and QWebHistory::forward() were crashing on
2305 ASSERT in WebCore::BackForwardList. The methods should check
2306 canGoBack() and canGoForward() at the beginning.
2308 https://bugs.webkit.org/show_bug.cgi?id=29675
2310 * Api/qwebhistory.cpp:
2311 (QWebHistory::back):
2312 (QWebHistory::forward):
2314 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2316 Reviewed by Simon Hausmann.
2318 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2320 In QWebHistory's methods that change item count or current item call
2321 to QWebPage::updateNavigationActions should be executed.
2322 QWebHistory::clear() and QWebHistory::restorState() were changed.
2323 New helper method, QWebPagePrivate accesor, were created in
2324 QWebHistoryPrivate class.
2325 Two autotest were developed.
2327 https://bugs.webkit.org/show_bug.cgi?id=29246
2329 * Api/qwebhistory.cpp:
2330 (QWebHistory::clear):
2331 (QWebHistory::restoreState):
2332 (QWebHistoryPrivate::page):
2333 * Api/qwebhistory_p.h:
2334 * tests/qwebhistory/tst_qwebhistory.cpp:
2335 (tst_QWebHistory::saveAndRestore_1):
2336 (tst_QWebHistory::clear):
2338 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2340 Reviewed by Tor Arne Vestbø.
2342 Need to guard QX11Info include with Q_WS_X11.
2343 That class may not be available (in QT 4.5 for Symbian, for instance).
2344 Completes fixes in r48627 and r48604.
2346 * Api/qwebgraphicsitem.cpp:
2349 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2351 Reviewed by Simon Hausmann.
2353 [Qt] Add default timeout while waiting for signals in QWebPage auto
2355 https://bugs.webkit.org/show_bug.cgi?id=29637
2357 * tests/qwebpage/tst_qwebpage.cpp:
2360 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2362 Reivewed by Simon Hausmann.
2364 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2366 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2367 takes a QWidget*, not a QWebPageClient*
2369 * Api/qwebgraphicsitem.cpp:
2370 (QWebGraphicsItemPrivate::screenNumber):
2372 (QWebViewPrivate::screenNumber):
2374 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2376 Reviewed by Simon Hausmann.
2378 For Qt, platformPageClient() will now return a class derived from
2379 the QWebPageClient, so the patch adapts our Qt hooks to go though
2380 this class and not depend on the QWebView.
2382 * Api/qwebgraphicsitem.cpp:
2383 (QWebGraphicsItemPrivate::scroll):
2384 (QWebGraphicsItemPrivate::update):
2385 (QWebGraphicsItemPrivate::cursor):
2386 (QWebGraphicsItemPrivate::updateCursor):
2387 (QWebGraphicsItemPrivate::screenNumber):
2388 (QWebGraphicsItemPrivate::winId):
2389 (QWebGraphicsItem::event):
2390 (QWebGraphicsItem::setPage):
2391 * Api/qwebgraphicsitem.h:
2393 (QWebPagePrivate::QWebPagePrivate):
2396 (QWebViewPrivate::scroll):
2397 (QWebViewPrivate::update):
2398 (QWebViewPrivate::cursor):
2399 (QWebViewPrivate::updateCursor):
2400 (QWebViewPrivate::screenNumber):
2401 (QWebViewPrivate::winId):
2402 (QWebView::setPage):
2404 * WebCoreSupport/ChromeClientQt.cpp:
2405 (WebCore::ChromeClientQt::repaint):
2406 (WebCore::ChromeClientQt::scroll):
2407 (WebCore::ChromeClientQt::platformPageClient):
2409 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2411 Reviewed by Simon Hausmann.
2413 https://bugs.webkit.org/show_bug.cgi?id=29609
2414 Build fix for windows when using Qt 4.5.0.
2417 (QWebPage::userAgentForUrl):
2419 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2421 Reviewed by Simon Hausmann.
2423 https://bugs.webkit.org/show_bug.cgi?id=29345
2424 The tests of QWebFrame did not use QTRY_VERIFY for
2425 tests involving the event loop.
2427 * tests/qwebframe/tst_qwebframe.cpp:
2428 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2430 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2432 Reviewed by Simon Hausmann.
2434 [Qt] Add an autotest stub for QWebGraphicsItem.
2436 It just calls all the functions and makes sure they don't crash.
2438 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2439 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2440 (tst_QWebGraphicsItem::qwebgraphicsitem):
2443 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2445 Reviewed by Eric Seidel.
2447 Corrected the Symbian specific UID3 values to be assigned
2448 from the "unprotected" pool that permits self-signing of
2449 those test and demo executables. (Added new UID3 values
2450 where they were missing for new components.)
2452 * QGVLauncher/QGVLauncher.pro:
2453 * QtLauncher/QtLauncher.pro:
2454 * tests/benchmarks/loading/tst_loading.pro:
2455 * tests/benchmarks/painting/tst_painting.pro:
2456 * tests/qwebelement/qwebelement.pro:
2457 * tests/qwebframe/qwebframe.pro:
2458 * tests/qwebhistory/qwebhistory.pro:
2459 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2460 * tests/qwebpage/qwebpage.pro:
2461 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2462 * tests/qwebview/qwebview.pro:
2464 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2466 Reviewed by Simon Hausmann.
2468 Make PlatformWindow return something else than PlatformWidget
2469 https://bugs.webkit.org/show_bug.cgi?id=29085
2471 Reflect the rename of platformWindow and it's return type.
2473 * WebCoreSupport/ChromeClientQt.cpp:
2474 (WebCore::ChromeClientQt::platformPageClient):
2475 * WebCoreSupport/ChromeClientQt.h:
2477 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2479 Reviewed by Simon Hausmann.
2481 [Qt] Add persistence support for configuration options in the
2484 * Api/qwebinspector.cpp:
2485 * QtLauncher/main.cpp:
2487 * WebCoreSupport/InspectorClientQt.cpp:
2488 (WebCore::InspectorClientQt::populateSetting):
2489 (WebCore::InspectorClientQt::storeSetting):
2490 (WebCore::variantToSetting):
2491 (WebCore::settingToVariant):
2493 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2495 Reviewed by Ariya Hidayat.
2497 Fixed a bunch of documentation warnings.
2499 * Api/qwebgraphicsitem.cpp:
2500 * Api/qwebplugindatabase.cpp:
2501 * Api/qwebpluginfactory.cpp:
2502 * Api/qwebsecurityorigin.cpp:
2504 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2506 Reviewed by Simon Hausmann.
2508 Added a test that console output works.
2510 * tests/qwebpage/tst_qwebpage.cpp:
2511 (ConsolePage::ConsolePage):
2512 (ConsolePage::javaScriptConsoleMessage):
2513 (tst_QWebPage::consoleOutput):
2515 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2517 Reviewed by Simon Hausmann.
2519 Improve documentation for Page Cache.
2521 * Api/qwebsettings.cpp:
2523 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2525 Reviewed by Simon Hausmann.
2527 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2529 https://bugs.webkit.org/show_bug.cgi?id=29081
2531 The documentation now specifies that the URL has to be a local file
2532 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2533 only two schemes that the current code path accepts.
2535 The auto-test has been updated to reflect this limitation.
2537 At a later point we should concider adding API for the new way of
2538 doing both user defined stylesheets and scripts.
2540 * Api/qwebsettings.cpp:
2541 * tests/qwebpage/tst_qwebpage.cpp:
2543 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2545 Reviewed by Simon Hausmann.
2549 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2552 QMake is not being able to distinguish between release and debug builds
2553 in Symbian build. This is a Symbian toolchain issue.
2556 (QWebPagePrivate::_q_cleanupLeakMessages):
2560 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2562 Reviewed by Simon Hausmann.
2564 Small cosmetic documentation fixlet in the QWebInspector.
2566 * Api/qwebinspector.cpp:
2568 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2570 Reviewed by Eric Seidel.
2572 Detect and add Windows7 properly to the user agent.
2575 (QWebPage::userAgentForUrl):
2577 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2579 Rubberstamped by Kenneth Christiansen.
2581 [Qt] Build fix for previous changes.
2583 * QGVLauncher/main.cpp:
2586 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2588 Unreviewed potential Qt < 4.6 build fix.
2590 * QGVLauncher/main.cpp:
2593 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2595 Reviewed by Simon Hausmann.
2597 Add a "Flip effect" to our GraphicsView based launcher.
2599 * QGVLauncher/main.cpp:
2600 (MainView::resizeEvent):
2603 (MainWindow::buildUI):
2605 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2607 Rubber-stamped by Simon Hausmann.
2609 [Qt] Typo fix. Pass the window object to the Format
2610 menu. In this way Qt can free its internal graphical
2611 objects during exit.
2613 * QtLauncher/main.cpp:
2614 (MainWindow::setupUI):
2616 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2618 Reviewed by Tor Arne Vestbø.
2620 [Qt] Build break fix on gcc ARM.
2622 * Api/qwebgraphicsitem.cpp:
2623 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2625 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2627 Reviewed by Simon Hausmann.
2629 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2630 when the focused frame is null. We do the same check in other places
2631 where we call kit().
2633 * Api/qwebframe.cpp:
2634 (QWebFrame::hasFocus):
2636 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2638 Reviewed by Simon Hausmann.
2640 Fixed a typo found during translation.
2642 * WebCoreSupport/FrameLoaderClientQt.cpp:
2643 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2645 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2647 Reviewed by Simon Hausmann.
2649 [Qt] QWebGraphicsItem should check for null QWebPage.
2650 https://bugs.webkit.org/show_bug.cgi?id=29185
2652 Don't crash in QWebGraphicsItem when the page is still null, by
2653 either checking if it's the case or constructing the default one.
2655 * Api/qwebgraphicsitem.cpp:
2656 (QWebGraphicsItem::icon):
2657 (QWebGraphicsItem::setZoomFactor):
2658 (QWebGraphicsItem::zoomFactor):
2659 (QWebGraphicsItem::setGeometry):
2660 (QWebGraphicsItem::load):
2661 (QWebGraphicsItem::setHtml):
2662 (QWebGraphicsItem::toHtml):
2663 (QWebGraphicsItem::setContent):
2664 (QWebGraphicsItem::history):
2665 (QWebGraphicsItem::settings):
2667 2009-09-11 David Boddie <dboddie@trolltech.com>
2669 Reviewed by Simon Hausmann.
2671 Doc: Note that Netscape plugins are only available on desktop platforms.
2673 * docs/qtwebkit.qdoc:
2675 2009-09-11 Martin Smith <msmith@trolltech.com>
2677 Reviewed by Simon Hausmann.
2679 Adjust the name of the contentspage for the documentation
2680 to the new name used in Qt 4.6.
2682 * docs/qtwebkit.qdoc:
2684 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
2686 Reviewed by Simon Hausmann.
2688 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
2691 * Api/qwebpluginfactory.cpp:
2692 * docs/webkitsnippets/simple/main.cpp:
2694 * docs/webkitsnippets/webpage/main.cpp:
2697 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2699 Reviewed by Simon Hausmann.
2701 Restructure the documentation, both on a file and on a content level.
2703 * Api/qwebdatabase.cpp:
2704 * Api/qwebelement.cpp:
2705 * Api/qwebframe.cpp:
2706 * Api/qwebhistory.cpp:
2707 * Api/qwebhistoryinterface.cpp:
2709 * Api/qwebpluginfactory.cpp:
2710 * Api/qwebsecurityorigin.cpp:
2711 * Api/qwebsettings.cpp:
2713 * docs/qtwebkit.qdoc:
2715 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
2717 Reviewed by Simon Hausmann.
2719 https://bugs.webkit.org/show_bug.cgi?id=29136
2720 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
2722 emit microFocusChange() signal regardless of view.
2724 * WebCoreSupport/EditorClientQt.cpp:
2725 (WebCore::EditorClientQt::setInputMethodState):
2727 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2729 Reviewed by Simon Hausmann.
2731 https://bugs.webkit.org/show_bug.cgi?id=28806
2733 [Qt] Make the WebInspector available as a QWidget.
2736 * Api/qwebelement.cpp:
2737 (QWebElement::enclosingElement):
2738 * Api/qwebelement.h:
2739 * Api/qwebinspector.cpp: Added.
2740 * Api/qwebinspector.h: Added.
2741 * Api/qwebinspector_p.h: Added.
2743 (QWebPagePrivate::QWebPagePrivate):
2744 (QWebPagePrivate::setInspector):
2745 (QWebPagePrivate::getOrCreateInspector):
2746 (QWebPagePrivate::inspectorController):
2747 (QWebPage::~QWebPage):
2748 (QWebPage::triggerAction):
2751 * Api/qwebsettings.cpp:
2752 * QtLauncher/main.cpp:
2753 (MainWindow::MainWindow):
2754 * WebCoreSupport/InspectorClientQt.cpp:
2755 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2756 (WebCore::InspectorClientWebPage::createWindow):
2757 (WebCore::InspectorClientQt::createPage):
2758 (WebCore::InspectorClientQt::showWindow):
2759 (WebCore::InspectorClientQt::closeWindow):
2760 (WebCore::InspectorClientQt::attachWindow):
2761 (WebCore::InspectorClientQt::detachWindow):
2762 (WebCore::InspectorClientQt::updateWindowTitle):
2763 * WebCoreSupport/InspectorClientQt.h:
2764 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
2766 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2768 Reviewed by Eric Seidel.
2770 [Qt] Fix comparison between signed and unsigned integer warnings
2771 https://bugs.webkit.org/show_bug.cgi?id=29162
2773 No functional change.
2775 * Api/qwebelement.cpp:
2776 (QWebElement::findAll):
2777 * Api/qwebhistory.cpp:
2778 (QWebHistory::items):
2779 (QWebHistory::backItems):
2780 (QWebHistory::forwardItems):
2781 (QWebHistory::saveState):
2782 * Api/qwebplugindatabase.cpp:
2783 (QWebPluginDatabase::setSearchPaths):
2784 * WebCoreSupport/ChromeClientQt.cpp:
2785 (WebCore::ChromeClientQt::runOpenPanel):
2786 * WebCoreSupport/FrameLoaderClientQt.cpp:
2787 (WebCore::FrameLoaderClientQt::createPlugin):
2789 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2791 Rubber-stamped by Ariya Hidayat.
2793 Fix a bunch of qdoc warnings: Invalid references, non-standard
2796 * Api/qwebelement.cpp:
2797 * Api/qwebgraphicsitem.cpp:
2798 * Api/qwebsecurityorigin.cpp:
2800 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2802 Reviewed by Ariya Hidayat.
2804 Fix context menu event delivery with QWebGraphicsItem.
2806 Re-implement the correct context menu virtual function using
2807 a QGraphicsSceneContextMenuEvent and forward & handle it in
2810 * Api/qwebgraphicsitem.cpp:
2811 (QWebGraphicsItem::contextMenuEvent):
2812 * Api/qwebgraphicsitem.h:
2814 (QWebPagePrivate::contextMenuEvent):
2818 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2822 Build fix for QtWebKit for Mac after r48219.
2824 qevent and qstyleoption are QtGui interfaces.
2826 * Api/qwebgraphicsitem.cpp:
2827 * Api/qwebgraphicsitem.h:
2829 2009-09-09 Simon Hausmann <hausmann@webkit.org>
2831 Reviewed by Tor Arne Vestbø.
2833 Call the right base class function QGraphicsWidget::event() instead
2834 of skipping it and using QObject::event() instead.
2836 * Api/qwebgraphicsitem.cpp:
2837 (QWebGraphicsItem::event):
2839 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2843 Fix comment at Tor Arne Vestbø's request.
2845 * Api/qwebgraphicsitem.cpp:
2846 (QWebGraphicsItem::sceneEvent):
2847 (QWebGraphicsItem::event):
2849 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2851 Reviewed by Tor Arne Vestbø.
2853 Implement some virtual event methods so that we can fix
2854 event-related bugs in Qt patch releases.
2856 * Api/qwebgraphicsitem.cpp:
2857 (QWebGraphicsItem::sceneEvent):
2858 (QWebGraphicsItem::event):
2859 * Api/qwebgraphicsitem.h:
2861 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
2863 Reviewed by Simon Hausmann.
2865 Add a new QGraphicsWidget based version of the "QWebView"
2866 under the name "QWebGraphicsItem".
2868 https://bugs.webkit.org/show_bug.cgi?id=28862
2870 Includes an alternative Qt launcher using the QGraphicsView.
2873 * Api/qwebgraphicsitem.cpp: Added.
2874 * Api/qwebgraphicsitem.h: Added.
2876 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
2877 * QGVLauncher/main.cpp: Added.
2878 * WebCoreSupport/ChromeClientQt.cpp:
2879 (WebCore::ChromeClientQt::repaint):
2880 (WebCore::ChromeClientQt::scroll):
2882 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2884 Unreviewed build fix.
2886 Potential build fix for Qt 4.5
2889 (QWebPagePrivate::mousePressEvent):
2891 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2893 Reviewed by Simon Hausmann.
2895 https://bugs.webkit.org/show_bug.cgi?id=29007
2896 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
2898 * tests/qwebframe/tst_qwebframe.cpp:
2900 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2902 Reviewed by Simon Hausmann.
2904 [Qt] Fix unused variable warnings
2905 https://bugs.webkit.org/show_bug.cgi?id=29018
2908 (QWebPagePrivate::keyPressEvent):
2909 * WebCoreSupport/FrameLoaderClientQt.cpp:
2910 (WebCore::FrameLoaderClientQt::startDownload):
2911 (WebCore::FrameLoaderClientQt::createFrame):
2913 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2915 Reviewed by Ariya Hidayat.
2917 [Qt] Use the declaration order in initializer lists
2918 https://bugs.webkit.org/show_bug.cgi?id=29017
2920 * Api/qwebframe_p.h:
2922 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2924 Reviewed by Simon Hausmann.
2926 Add support for handling QGraphicsScene events.
2929 (QWebPagePrivate::mouseMoveEvent):
2930 (QWebPagePrivate::mousePressEvent):
2931 (QWebPagePrivate::mouseDoubleClickEvent):
2932 (QWebPagePrivate::mouseTripleClickEvent):
2933 (QWebPagePrivate::handleClipboard):
2934 (QWebPagePrivate::mouseReleaseEvent):
2935 (QWebPagePrivate::wheelEvent):
2936 (QWebPagePrivate::dragEnterEvent):
2937 (QWebPagePrivate::dragLeaveEvent):
2938 (QWebPagePrivate::dragMoveEvent):
2939 (QWebPagePrivate::dropEvent):
2943 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2945 Reviewed by Simon Hausmann.
2947 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
2948 https://bugs.webkit.org/show_bug.cgi?id=28865
2950 Clean up the unserCursor hack to use the QCursor set
2951 as a property of the QWidget by WebCore::WidgetQt.
2953 Remove all code that are no longer necessary for getting
2954 cursor change events.
2956 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
2957 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
2962 (QWebViewPrivate::QWebViewPrivate):
2965 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2967 Reviewed by Simon Hausmann.
2969 [Qt] QtWebKit single API to enable persistency
2970 https://bugs.webkit.org/show_bug.cgi?id=28682
2972 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
2975 If persistency is enabled the default directory for LocalStorage and
2976 ApplicationCache is now based on QDesktopServices::DataLocation and not
2977 QDesktopServices::CacheLocation (as it is expected to keep this data
2978 around after a reboot).
2980 If persistency is enabled initialize HTML5 offline storage as well - this
2981 fixed offline Storage for QtLauncher.
2984 (QWebPagePrivate::QWebPagePrivate):
2985 * Api/qwebsettings.cpp:
2986 (QWebSettings::QWebSettings):
2987 (QWebSettings::enablePersistentStorage):
2988 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
2989 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
2992 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
2994 Reviewed by Simon Hausmann.
2996 Speed up the QWebPluginInfo::supportsMimeType() function.
2997 https://bugs.webkit.org/show_bug.cgi?id=27651
2999 Instead of going through the MIME types list constructed with
3000 mimeTypes() function, look up the internal mimeToDescriptions map.
3002 * Api/qwebplugindatabase.cpp:
3003 (QWebPluginInfo::supportsMimeType):
3005 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3007 Reviewed by Simon Hausmann.
3009 Speed up the QWebPluginInfo::mimeTypes() function.
3010 https://bugs.webkit.org/show_bug.cgi?id=27651
3012 Instead of constructing a list of MIME types every time it is called,
3015 * Api/qwebplugindatabase.cpp:
3016 (QWebPluginInfo::mimeTypes):
3017 (QWebPluginInfo::operator=):
3018 * Api/qwebplugindatabase.h:
3019 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3020 (tst_QWebPluginDatabase::operatorassign_data):
3021 (tst_QWebPluginDatabase::operatorassign):
3023 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3025 Reviewed by Simon Hausmann.
3027 Remove the private classes from QWebPluginDatabase.
3028 https://bugs.webkit.org/show_bug.cgi?id=27651
3030 Instead, hold the PluginDatabase and PluginPackage objects as class
3031 members and take care of refcounting on our own instead of using RefPtr.
3033 This way we not only made the code cleaner but also got rid of
3034 redundant allocations when constructing null QWebPluginInfo objects.
3036 The private classes have been forward-declared and the d-pointers left
3037 to be on the safe side.
3039 * Api/qwebplugindatabase.cpp:
3040 (QWebPluginInfo::QWebPluginInfo):
3041 (QWebPluginInfo::~QWebPluginInfo):
3042 (QWebPluginInfo::name):
3043 (QWebPluginInfo::description):
3044 (QWebPluginInfo::mimeTypes):
3045 (QWebPluginInfo::path):
3046 (QWebPluginInfo::isNull):
3047 (QWebPluginInfo::setEnabled):
3048 (QWebPluginInfo::isEnabled):
3049 (QWebPluginInfo::operator==):
3050 (QWebPluginInfo::operator!=):
3051 (QWebPluginInfo::operator=):
3052 (QWebPluginDatabase::QWebPluginDatabase):
3053 (QWebPluginDatabase::~QWebPluginDatabase):
3054 (QWebPluginDatabase::plugins):
3055 (QWebPluginDatabase::searchPaths):
3056 (QWebPluginDatabase::setSearchPaths):
3057 (QWebPluginDatabase::addSearchPath):
3058 (QWebPluginDatabase::refresh):
3059 (QWebPluginDatabase::pluginForMimeType):
3060 (QWebPluginDatabase::setPreferredPluginForMimeType):
3061 * Api/qwebplugindatabase.h:
3062 * Api/qwebplugindatabase_p.h: Removed.
3064 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3066 Reviewed by Eric Seidel.
3068 [Qt] r47424 broke binary compatibility
3069 https://bugs.webkit.org/show_bug.cgi?id=28996
3071 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3073 * Api/qwebsettings.h:
3075 2009-09-04 Mark Mentovai <mark@chromium.org>
3077 Reviewed by Dave Hyatt.
3079 https://bugs.webkit.org/show_bug.cgi?id=28614
3081 Account for scrollbar state changes that occur during layout.
3083 * Api/qwebframe.cpp:
3084 (QWebFrame::setScrollBarPolicy):
3086 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3087 FrameView and ScrollView.
3089 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3091 Reviewed by Eric Seidel.
3093 [Qt] Fix tst_QWebPage::database autotest failure
3094 https://bugs.webkit.org/show_bug.cgi?id=28961
3096 Make sure that the test case enables the feature before
3097 the feature gets tested
3099 * tests/qwebpage/tst_qwebpage.cpp:
3100 (tst_QWebPage::database):
3102 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3104 Reviewed by Eric Seidel.
3106 Any QtWebKit application crashes on exit if the inspector is
3107 used during the session rather then exiting.
3109 If a QWebView has a QWebPage that is destroyed the QWebView
3110 does not update its pointer and will crash the next time
3111 it access the page pointers (such as in its destructor).
3113 InspectorClientView should not call deleteLater when the page
3114 is destroyed because it does not have a parent and is a top
3115 level widget. close() needs to be called so that QApplication
3116 can exit the application if quitOnLastWindowClosed is set
3117 and a InspectorClientView is the last window, otherwise
3118 the application will never exit.
3121 (QWebViewPrivate::_q_pageDestroyed):
3122 (QWebView::setPage):
3124 * WebCoreSupport/InspectorClientQt.cpp:
3125 (WebCore::InspectorClientView::InspectorClientView):
3127 2009-09-03 Adam Barth <abarth@webkit.org>
3129 Reviewed by eric@webkit.org.
3131 https://bugs.webkit.org/show_bug.cgi?id=24696
3133 Stub implementations of mixed content methods of FrameLoaderClient.
3135 * WebCoreSupport/FrameLoaderClientQt.cpp:
3136 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3137 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3138 * WebCoreSupport/FrameLoaderClientQt.h:
3140 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3142 Reviewed by Eric Seidel.
3144 [Qt] Add a setting to turn SessionStorage on/off
3145 https://bugs.webkit.org/show_bug.cgi?id=28836
3147 * Api/qwebsettings.cpp:
3148 (QWebSettingsPrivate::apply):
3149 (QWebSettings::QWebSettings):
3150 * Api/qwebsettings.h:
3151 * tests/qwebpage/tst_qwebpage.cpp:
3153 (tst_QWebPage::testOptionalJSObjects):
3155 2009-09-02 Richard Moore <rich@kde.org>
3157 Reviewed by Tor Arne Vestbø.
3159 [Qt] Make sure we relayout the page after evaluating JS
3161 https://bugs.webkit.org/show_bug.cgi?id=28235
3163 QtWebKit does not always seem to reflow the page when evaluating
3164 javascript. This patch changes the way evaluateJavaScript works to
3165 use the frameloader which ensures that this is done properly.
3167 * Api/qwebframe.cpp:
3168 (QWebFrame::evaluateJavaScript):
3169 * tests/qwebframe/tst_qwebframe.cpp:
3171 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3173 Reviewed by Holger Freyther.
3175 https://bugs.webkit.org/show_bug.cgi?id=25889
3176 [GTK] scrollbar policy for main frame is not implementable
3178 Add empty implementation for new ChromeClient method.
3180 * WebCoreSupport/ChromeClientQt.h:
3181 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3183 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3185 Reviewed by Ariya Hidayat.
3187 QWebHistory::clear() modifications.
3189 Clear() method was changed. If QWebHistory is empty (there is no
3190 elements even current) clear() do nothing. If there at least one
3191 element clear() will delete everything apart of current.
3193 New autotests in QWebHistory
3195 New autotests were added to QWebHistory. They should check some crashes
3196 in save and restore state process and clear() method and general
3197 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3199 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3201 * Api/qwebhistory.cpp:
3202 (QWebHistory::clear):
3203 * tests/qwebhistory/tst_qwebhistory.cpp:
3204 (tst_QWebHistory::back):
3205 (tst_QWebHistory::forward):
3206 (tst_QWebHistory::saveAndRestore_crash_1):
3207 (tst_QWebHistory::saveAndRestore_crash_2):
3208 (tst_QWebHistory::saveAndRestore_crash_3):
3209 (tst_QWebHistory::clear):
3211 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3213 Reviewed by Ariya Hidayat.
3215 [Qt] Cleanup, old and commented part of source code was removed.
3216 Fix some formatting problems.
3218 https://bugs.webkit.org/show_bug.cgi?id=28712
3220 * Api/qwebhistory_p.h:
3221 (QWebHistoryPrivate::QWebHistoryPrivate):
3223 2009-08-26 Adam Barth <abarth@webkit.org>
3225 Reviewed by Oliver Hunt.
3227 Don't let local files access web URLs
3228 https://bugs.webkit.org/show_bug.cgi?id=28480
3230 * Api/qwebsettings.cpp:
3231 (QWebSettings::QWebSettings):
3233 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3235 Reviewed by Ariya Hidayat.
3237 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3239 * Api/qwebframe.cpp:
3240 (QWebFrame::requestedUrl):
3241 * WebCoreSupport/FrameLoaderClientQt.cpp:
3242 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3243 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3244 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3245 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3246 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3247 * WebCoreSupport/FrameLoaderClientQt.h:
3249 2009-08-22 Adam Barth <abarth@webkit.org>
3251 Revert 47684. We're going to do this later once clients have had a
3252 chance to opt into the setting they like.
3254 * Api/qwebsettings.cpp:
3255 (QWebSettings::QWebSettings):
3257 2009-08-22 Adam Barth <abarth@webkit.org>
3259 Reviewed by Eric Seidel.
3261 Don't let local files access web URLs
3262 https://bugs.webkit.org/show_bug.cgi?id=28480
3264 * Api/qwebsettings.cpp:
3265 (QWebSettings::QWebSettings):
3267 2009-08-19 Aaron Boodman <aa@chromium.org>
3269 Speculative build break fix for qt.
3271 * Api/qwebsecurityorigin.cpp:
3272 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3273 * Api/qwebsecurityorigin.h:
3275 2009-08-19 Aaron Boodman <aa@chromium.org>
3277 Reviewed by David Levin.
3279 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3280 specify a more granular policy for cross-origin XHR access.
3282 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3283 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3284 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3285 * Api/qwebsecurityorigin.h: Ditto.
3287 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3289 Reviwed by Ariya Hidayat.
3291 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3294 * Api/qwebsettings.cpp:
3295 (QWebSettings::QWebSettings):
3296 * Api/qwebsettings.h:
3298 2009-08-17 Darin Adler <darin@apple.com>
3300 Try to fix Qt build again.
3302 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3304 2009-08-17 Darin Adler <darin@apple.com>
3306 Try to fix Qt build.
3308 * WebCoreSupport/EditorClientQt.cpp:
3309 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3310 Use getAttribute(classAttr) instead of className() function.
3312 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3314 Reviewed by Simon Hausmann.
3316 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3317 QWebView::RenderHints property.
3319 This is a temporary fix and will be revereted when the right symbols
3320 exported from Qt lib in S60.
3322 https://bugs.webkit.org/show_bug.cgi?id=28181
3326 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3328 Reviewed by Simon Hausmann.
3330 [Qt] Public API to configure the storage path for HTML5 localStorage
3331 https://bugs.webkit.org/show_bug.cgi?id=28036
3333 Disables LocalStorage for QtWebKit by default by setting
3334 QWebSettings::LocalStorageEnabled to false.
3336 Sets up a default for the LocalStorage path so that clients would only
3337 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3340 Turn on LocalStorage support for QtLauncher and the relevant test
3341 since LocalStorage is now disabled by default for QtWebkit.
3345 (initializeApplicationCachePathIfNecessary):
3346 (QWebPagePrivate::QWebPagePrivate):
3347 * Api/qwebsettings.cpp:
3348 (QWebSettingsPrivate::apply):
3349 (QWebSettings::QWebSettings):
3350 (QWebSettings::setLocalStoragePath):
3351 (QWebSettings::localStoragePath):
3352 * Api/qwebsettings.h:
3353 * QtLauncher/main.cpp:
3355 * tests/qwebpage/tst_qwebpage.cpp:
3356 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3358 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3360 Reviewed by Simon Hausmann.
3362 [Qt] Allow applications to register their own local URL scheme.
3363 https://bugs.webkit.org/show_bug.cgi?id=28240
3365 * Api/qwebsecurityorigin.cpp:
3366 (QWebSecurityOrigin::addLocalScheme):
3367 (QWebSecurityOrigin::removeLocalScheme):
3368 (QWebSecurityOrigin::localSchemes):
3369 * Api/qwebsecurityorigin.h:
3370 * tests/qwebpage/tst_qwebpage.cpp:
3371 (tst_QWebPage::localURLSchemes):
3373 2009-08-13 Mark Rowe <mrowe@apple.com>
3375 Try and fix the Qt build.
3377 * Api/qwebelement.cpp:
3379 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3381 Reviewed by Simon Hausmann.
3383 Doc - Some cleanup on the documentation of QWebElement
3385 * Api/qwebelement.cpp:
3387 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3389 Reviewed by Simon Hausmann.
3391 Symbian target components (library and executable files)
3392 require Unique Identifiers (i.e., UID3).
3393 These identifiers are defined in the respective project
3394 files, conditionally for "symbian" platform.
3396 * QtLauncher/QtLauncher.pro:
3397 * tests/qwebelement/qwebelement.pro:
3398 * tests/qwebframe/qwebframe.pro:
3399 * tests/qwebhistory/qwebhistory.pro:
3400 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3401 * tests/qwebpage/qwebpage.pro:
3402 * tests/qwebview/qwebview.pro:
3404 2009-08-12 George Wright <george.wright@torchmobile.com>
3406 Reviewed by Adam Treat.
3408 Initialise zoom levels independent of whether a URL is valid or not to
3409 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3411 * QtLauncher/main.cpp:
3412 (MainWindow::MainWindow):
3414 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3416 Reviewed by Simon Hausmann.
3418 QtWebKit compile fix for Windows CE
3420 There's no getenv on Windows CE, use qgetenv instead.
3423 (qt_drt_overwritePluginDirectories):
3425 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3427 Reviewed by Simon Hausmann.
3429 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3431 * Api/qwebplugindatabase.cpp:
3432 * Api/qwebsettings.cpp:
3434 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3436 Reviewed by Simon Hausmann.
3438 Doc: there is no group of explicitly shared classes, only one class uses this.
3440 Explain the implications in the QWebHistoryItem documentation, and get rid
3443 * Api/qwebhistory.cpp:
3445 2009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3447 Reviewed by Simon Hausmann.
3449 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3451 * Api/qwebpluginfactory.h: Export macro added.
3453 2009-08-04 Antonio Gomes <antonio.gomes@openbossa.org>
3455 Reviewed by Simon Hausmann.
3457 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3458 https://bugs.webkit.org/show_bug.cgi?id=27804
3460 * Api/qwebframe.cpp:
3461 (QWebFrame::requestedUrl):
3462 * tests/qwebframe/tst_qwebframe.cpp:
3464 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3466 Reviewed by Tor Arne Vestbø.
3468 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3470 * Api/qwebplugindatabase.cpp:
3471 (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3472 (QWebPluginInfo::QWebPluginInfo):
3473 (QWebPluginInfo::~QWebPluginInfo):
3474 (QWebPluginInfo::name):
3475 (QWebPluginInfo::description):
3476 (QWebPluginInfo::mimeTypes):
3477 (QWebPluginInfo::supportsMimeType):
3478 (QWebPluginInfo::path):
3479 (QWebPluginInfo::isNull):
3480 (QWebPluginInfo::setEnabled):
3481 (QWebPluginInfo::isEnabled):
3482 (QWebPluginInfo::operator==):
3483 (QWebPluginInfo::operator!=):
3484 (QWebPluginInfo::operator=):
3485 (QWebPluginDatabase::plugins):
3486 (QWebPluginDatabase::pluginForMimeType):
3487 (QWebPluginDatabase::setPreferredPluginForMimeType):
3488 * Api/qwebplugindatabase.h:
3489 * Api/qwebplugindatabase_p.h:
3490 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3491 (tst_QWebPluginDatabase::installedPlugins):
3492 (tst_QWebPluginDatabase::searchPaths):
3493 (tst_QWebPluginDatabase::null_data):
3494 (tst_QWebPluginDatabase::null):
3495 (tst_QWebPluginDatabase::pluginForMimeType):
3496 (tst_QWebPluginDatabase::enabled):
3497 (tst_QWebPluginDatabase::operatorequal_data):
3498 (tst_QWebPluginDatabase::operatorequal):
3499 (tst_QWebPluginDatabase::preferredPlugin):
3501 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3503 Reviewed by Adam Treat.
3505 Replace QWebPlugin::MimeType with a typedef to
3506 QWebPluginFactory::MimeType.
3508 * Api/qwebplugindatabase.cpp:
3509 * Api/qwebplugindatabase.h:
3510 * Api/qwebpluginfactory.cpp:
3511 (QWebPluginFactory::MimeType::operator==):
3512 * Api/qwebpluginfactory.h:
3514 2009-08-04 Jakub Wieczorek <faw217@gmail.com>
3516 Reviewed by Simon Hausmann.
3518 Add QWebPluginDatabase API to the Qt API.
3520 https://bugs.webkit.org/show_bug.cgi?id=27651
3523 * Api/qwebplugindatabase.cpp: Added.
3524 (QWebPluginPrivate::QWebPluginPrivate):
3525 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3526 (QWebPlugin::MimeType::operator==):
3527 (QWebPlugin::QWebPlugin):
3528 (QWebPlugin::~QWebPlugin):
3530 (QWebPlugin::description):
3531 (QWebPlugin::mimeTypes):
3532 (QWebPlugin::supportsMimeType):
3534 (QWebPlugin::isNull):
3535 (QWebPlugin::setEnabled):
3536 (QWebPlugin::isEnabled):
3537 (QWebPlugin::operator==):
3538 (QWebPlugin::operator!=):
3539 (QWebPlugin::operator=):
3540 (QWebPluginDatabase::QWebPluginDatabase):
3541 (QWebPluginDatabase::~QWebPluginDatabase):
3542 (QWebPluginDatabase::plugins):
3543 (QWebPluginDatabase::defaultSearchPaths):
3544 (QWebPluginDatabase::searchPaths):
3545 (QWebPluginDatabase::setSearchPaths):
3546 (QWebPluginDatabase::addSearchPath):
3547 (QWebPluginDatabase::refresh):
3548 (QWebPluginDatabase::pluginForMimeType):
3549 (QWebPluginDatabase::setPreferredPluginForMimeType):
3550 * Api/qwebplugindatabase.h: Added.
3551 * Api/qwebplugindatabase_p.h: Added.
3552 * Api/qwebsettings.cpp:
3553 (QWebSettings::pluginDatabase):
3554 * Api/qwebsettings.h:
3555 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
3556 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
3557 (tst_QWebPluginDatabase::installedPlugins):
3558 (tst_QWebPluginDatabase::searchPaths):
3559 (tst_QWebPluginDatabase::null_data):
3560 (tst_QWebPluginDatabase::null):
3561 (tst_QWebPluginDatabase::pluginForMimeType):
3562 (tst_QWebPluginDatabase::enabled):
3563 (tst_QWebPluginDatabase::operatorequal_data):
3564 (tst_QWebPluginDatabase::operatorequal):
3565 (tst_QWebPluginDatabase::preferredPlugin):
3568 2009-08-03 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3570 Reviewed by Simon Hausmann.
3572 Do memory cleanup when running robotized QtLauncher in debug as well.
3574 * QtLauncher/main.cpp:
3578 2009-07-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3580 Reviewed by Tor Arne Vestbø.
3582 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
3583 https://bugs.webkit.org/show_bug.cgi?id=27866
3586 (initializeApplicationCachePathIfNecessary):
3587 (QWebPagePrivate::QWebPagePrivate):
3589 2009-07-31 Jakob Petsovits <jakob.petsovits@torchmobile.com>
3591 Reviewed by Adam Treat.
3593 Build QtWebKit without benchmark tests for Qt < 4.5.
3594 https://bugs.webkit.org/show_bug.cgi?id=27886
3596 The QBENCHMARK macro is only available from 4.5 on,
3597 so builds for Qt < 4.5 shouldn't try to build those.
3601 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3603 Reviewed by Adam Treat.
3605 Fix warning by migrating use of QString.sprintf(...) to
3606 QString.arg().arg()...
3608 * WebCoreSupport/EditorClientQt.cpp:
3611 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3613 Reviewed by Tor Arne Vestbø.
3615 Expose the Offline Web Application Cache in the Qt API.
3617 * Api/qwebsettings.cpp:
3618 (QWebSettings::QWebSettings):
3619 (QWebSettings::setOfflineWebApplicationCachePath):
3620 (QWebSettings::offlineWebApplicationCachePath):
3621 (QWebSettings::setOfflineWebApplicationCacheQuota):
3622 (QWebSettings::offlineWebApplicationCacheQuota):
3623 * Api/qwebsettings.h:
3625 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3627 Reviewed by Adam Treat.
3629 Add missing Q_OBJECT to class inheriting from QObject.
3631 * tests/qwebframe/tst_qwebframe.cpp:
3633 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3635 Reviewed by Adam Treat.
3639 * tests/qwebframe/tst_qwebframe.cpp:
3641 2009-07-30 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3643 Reviewed by Simon Hausmann.
3645 Fix documentation links to examples.
3649 2009-07-30 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3651 Reviewed by Simon Hausmann.
3653 Allocate MainWindow on heap in robotized QtLauncher as well.
3655 * QtLauncher/main.cpp:
3658 2009-07-29 Kevin McCullough <kmccullough@apple.com>
3660 Reviewed by Darin Adler.
3662 Added foundation work to allow a testing infrastructure for the Web
3665 * WebCoreSupport/InspectorClientQt.cpp:
3666 (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
3667 * WebCoreSupport/InspectorClientQt.h:
3669 2009-07-29 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
3671 Reviewed by Simon Hausmann.
3673 [Qt] In debug mode, this fix frees cached resources
3674 and other unreferenced objects (by calling the
3675 garbage collector) to remove the LEAK messages.
3676 https://bugs.webkit.org/show_bug.cgi?id=27767
3678 * Api/qwebframe.cpp:
3679 (qt_drt_cache_clear):
3680 * QtLauncher/main.cpp:
3683 2009-07-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
3685 Fix the Qt build by adapting to the changes of ScriptObject.
3687 * Api/qwebelement.cpp:
3688 (setupScriptObject):
3690 2009-07-28 Robert Hogan <robert@roberthogan.net>
3692 Reviewed by Simon Hausmann.
3694 Add WebKit version API to Qt.
3696 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
3697 at compile time and make it available to Qt applications through
3700 Also amend the User Agent string to place the Safari clause outside
3701 the final bracket and to the end of the UA string.
3703 https://bugs.webkit.org/show_bug.cgi?id=27158
3705 Minor build tweak by Simon Hausmann (adding export macros to new functions).
3708 * Api/qwebkitversion.cpp: Added.
3710 (webKitMajorVersion):
3711 (webKitMinorVersion):
3712 * Api/qwebkitversion.h: Added.
3714 (QWebPage::userAgentForUrl):
3715 * tests/qwebview/tst_qwebview.cpp:
3716 (tst_QWebView::getWebKitVersion):
3718 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
3720 Rubber-stamped by Ariya Hidayat.
3722 Fix compilation with the precompiled header.
3724 * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h,
3725 as they include AtomicString.h. AtomicString.cpp needs to enable
3726 a #define before including AtomicString.h, which breaks if the PCH
3727 forces the inclusion beforehand.
3729 2009-07-28 Ariya Hidayat <ariya.hidayat@nokia.com>
3731 Reviewed by Simon Hausmann.
3733 Added tests to ensure that scroll position can be changed
3734 programmatically, even when the scroll bar policy is set to off.
3736 * tests/qwebframe/tst_qwebframe.cpp:
3738 2009-07-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3740 Reviewed by Simon Hausmann.
3742 Fix a few compilation warnings in the QWebFrame tests.
3744 * tests/qwebframe/tst_qwebframe.cpp:
3746 2009-07-28 Andre Pedralho <andre.pedralho@openbossa.org>
3748 Reviewed by Simon Hausmann.
3750 Fixed tst_QWebFrame::hasSetFocus test which was using
3751 an undefined resource.
3752 https://bugs.webkit.org/show_bug.cgi?id=27512
3754 * tests/qwebframe/tst_qwebframe.cpp:
3756 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
3758 Reviewed by Ariya Hidayat.
3760 Make it possible to pass relative file names to QtLauncher.
3762 * QtLauncher/main.cpp:
3763 (MainWindow::MainWindow):
3765 2009-07-27 Alexey Proskuryakov <ap@webkit.org>
3767 Reviewed by Darin Adler.
3769 https://bugs.webkit.org/show_bug.cgi?id=27735
3770 Give a helpful name to JSLock constructor argument
3772 * Api/qwebframe.cpp:
3773 (QWebFrame::addToJavaScriptWindowObject):
3775 2009-07-27 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3777 Reviewed by Simon Hausmann.
3779 QWebView's "enabled" parameter should default to true, as with QGraphicsView and
3782 * Api/qwebview.cpp: Add reference to QPainter::renderHints().
3783 * Api/qwebview.h: Add default for enabled argument.
3785 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3787 Reviewed by Simon Hausmann.
3789 More documentation cleanups in the QWebElement class overview.
3791 * Api/qwebelement.cpp:
3793 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3795 Reviewed by Simon Hausmann.
3797 Clean up documentation of QWebElement's findFirst and findAll functions,
3798 as well as their QWebFrame counterparts.
3800 * Api/qwebelement.cpp:
3801 * Api/qwebframe.cpp:
3803 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3805 Reviewed by Simon Hausmann.
3807 Various documentation cleanups
3809 * Fixed qdoc warnings
3810 * Hide QWebNetworkInterface from the class overview
3811 * Mention QWebElement in the module overview
3814 * Api/qwebframe.cpp:
3815 * Api/qwebnetworkinterface.cpp:
3817 * docs/qtwebkit.qdoc:
3819 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3821 Reviewed by Simon Hausmann.
3823 Added missing class diagram referenced from the docs, taken from the Qt
3826 * docs/qtwebkit.qdocconf: Register the image directory with
3828 * docs/qwebview-diagram.png: Added.
3830 2009-07-24 Antonio Gomes <antonio.gomes@openbossa.org>
3832 Reviewed by Adam Treat.
3834 As per discussion on IRC, changed originalUrl by requestedUrl.
3836 * Api/qwebframe.cpp:
3837 (QWebFrame::requestedUrl):
3839 * tests/qwebframe/tst_qwebframe.cpp:
3841 2009-07-24 Andre Pedralho <andre.pedralho@openbossa.org>
3843 Reviewed by Adam Treat.
3845 Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY
3846 clipRenderToViewport to control whether QWebFrame::render would call
3847 FrameView::paintContents rather than FrameView::paint and do not clip
3848 the frame content to viewport.
3851 * Api/qwebframe.cpp:
3852 (QWebFramePrivate::renderPrivate):
3853 (QWebFrame::clipRenderToViewport):
3854 (QWebFrame::setClipRenderToViewport):
3856 * Api/qwebframe_p.h:
3857 (QWebFramePrivate::QWebFramePrivate):
3858 * tests/qwebframe/tst_qwebframe.cpp:
3860 2009-07-24 Antonio Gomes <antonio.gomes@openbossa.org>
3862 Reviewed by Simon Hausmann.
3864 [QT] Implement originalUrl getter method to the API
3865 https://bugs.webkit.org/show_bug.cgi?id=25867
3867 * Api/qwebframe.cpp:
3868 (QWebFrame::originalUrl):
3870 * tests/qwebframe/qwebframe.qrc:
3871 * tests/qwebframe/test1.html: Added.
3872 * tests/qwebframe/test2.html: Added.
3873 * tests/qwebframe/tst_qwebframe.cpp:
3875 2009-07-24 Kenneth Rohde Christiansen <kenneth@webkit.org>
3879 Fix build issue introduced in 46344
3880 ([Bug 22700] ApplicationCache should have size limit)
3882 Remove method only added to the Qt ChromeClient.
3884 * WebCoreSupport/ChromeClientQt.h:
3886 2009-07-24 Andrei Popescu <andreip@google.com>
3888 Reviewed by Anders Carlsson.
3890 ApplicationCache should have size limit
3891 https://bugs.webkit.org/show_bug.cgi?id=22700
3893 * WebCoreSupport/ChromeClientQt.cpp:
3894 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
3895 Adds empty implementation of the reachedMaxAppCacheSize callback.
3896 * WebCoreSupport/ChromeClientQt.h:
3898 2009-07-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3900 Reviewed by Simon Hausmann.
3902 [Qt] Add simple proxy support for QtLauncher
3903 https://bugs.webkit.org/show_bug.cgi?id=27495
3905 Picks up proxy settings from the http_proxy environment
3908 * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all
3910 * QtLauncher/main.cpp:
3911 (MainWindow::MainWindow):
3913 2009-07-23 Simon Hausmann <simon.hausmann@nokia.com>
3915 Reviewed by Holger Freyther.
3917 Added a testcase to verify that cached methods in the QOBject bindings
3918 remain alife even after garbage collection.
3920 * tests/qwebpage/tst_qwebpage.cpp:
3921 (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
3923 2009-07-23 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
3925 Reviewed by Simon Hausmann.
3927 Fixing two issues related to QtLauncher
3928 - MainWindow objects are not always freed after close
3929 - JavaScript window.close() sometimes crashes
3930 https://bugs.webkit.org/show_bug.cgi?id=27601
3932 * QtLauncher/main.cpp:
3933 (MainWindow::MainWindow):
3936 2009-07-21 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3938 Reviewed by Simon Hausmann.
3940 Various improvements to the API documentation.
3942 * Updated link to W3c Database spec
3943 * Formatting fixes, cleanups
3944 * Add missing \since 4.6 tags to QWebPage::frameAt
3945 * Extend QWebDatabase and QWebSecurityOrigin docs.
3947 * Api/qwebdatabase.cpp:
3949 * Api/qwebsecurityorigin.cpp:
3952 2009-07-21 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3954 Rubber-stamped by Simon Hausmann.
3956 Remove preliminary-tag from QWebElement
3958 * Api/qwebelement.cpp:
3960 2009-07-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
3962 Reviewed by Eric Seidel.
3964 Fix Qt code to follow the WebKit Coding Style.
3966 * Api/qcookiejar.cpp:
3967 (QCookieJar::setCookieJar):
3968 (QCookieJar::cookieJar):
3970 * Api/qwebdatabase.cpp:
3971 (QWebDatabase::QWebDatabase):
3972 (QWebDatabase::removeDatabase):
3973 * Api/qwebdatabase.h:
3974 * Api/qwebdatabase_p.h:
3975 * Api/qwebelement.h:
3976 * Api/qwebframe.cpp:
3980 * Api/qwebframe_p.h:
3981 * Api/qwebhistory.cpp:
3982 (QWebHistory::clear):
3983 * Api/qwebhistory.h:
3984 * Api/qwebhistory_p.h:
3985 * Api/qwebhistoryinterface.cpp:
3986 (gCleanupInterface):
3987 (QWebHistoryInterface::setDefaultInterface):
3988 (QWebHistoryInterface::defaultInterface):
3989 (QWebHistoryInterface::QWebHistoryInterface):
3990 * Api/qwebhistoryinterface.h:
3991 * Api/qwebnetworkinterface.cpp:
3992 (QWebNetworkManager::started):
3993 (QWebNetworkManager::finished):
3994 (QWebNetworkInterfacePrivate::parseDataUrl):
3995 (QWebNetworkInterface::addJob):
3996 (WebCoreHttp::onResponseHeaderReceived):
3997 (WebCoreHttp::onReadyRead):
3998 * Api/qwebnetworkinterface.h:
3999 * Api/qwebnetworkinterface_p.h:
4001 (QWebPagePrivate::editorCommandForWebActions):
4002 (QWebPagePrivate::createContextMenu):
4003 (QWebPagePrivate::focusInEvent):
4004 (QWebPage::fixedContentsSize):
4005 (QWebPage::setContentEditable):
4006 (QWebPage::swallowContextMenuEvent):
4007 (QWebPage::findText):
4010 * Api/qwebpluginfactory.h:
4011 * Api/qwebsecurityorigin.h:
4012 * Api/qwebsecurityorigin_p.h:
4013 * Api/qwebsettings.cpp:
4014 (QWebSettingsPrivate::QWebSettingsPrivate):
4015 (QWebSettingsPrivate::apply):
4016 (QWebSettings::globalSettings):
4017 (QWebSettings::QWebSettings):
4018 (QWebSettings::fontSize):
4019 (QWebSettings::setUserStyleSheetUrl):
4020 (QWebSettings::setDefaultTextEncoding):
4021 (QWebSettings::setIconDatabasePath):
4022 (QWebSettings::iconDatabasePath):
4023 (QWebSettings::iconForUrl):
4024 (QWebSettings::setWebGraphic):
4025 (QWebSettings::setFontFamily):
4026 (QWebSettings::fontFamily):
4027 (QWebSettings::testAttribute):
4028 (qt_websettings_setLocalStorageDatabasePath):
4029 * Api/qwebsettings.h:
4031 (QWebView::setPage):
4035 2009-07-20 Holger Hans Peter Freyther <zecke@selfish.org>
4037 Reviewed by Simon Hausmann.
4039 [Qt] Add test for loading webpages...
4041 Performance test for loading webpages. Wait for the loadFinished
4042 signal to be fired. This should include a non empty layout.
4044 * tests/benchmarks/loading/tst_loading.cpp: Added.
4046 (tst_Loading::init):
4047 (tst_Loading::cleanup):
4048 (tst_Loading::load_data):
4049 (tst_Loading::load):
4050 * tests/benchmarks/loading/tst_loading.pro: Added.
4053 2009-07-20 Holger Hans Peter Freyther <zecke@selfish.org>
4055 Reviewed by Simon Hausmann.
4057 [Qt] Add a test case for drawing a simple viewrect to a QPixmap
4059 * tests/benchmarks/painting/tst_painting.cpp: Added.
4061 (tst_Painting::init):
4062 (tst_Painting::cleanup):
4063 (tst_Painting::paint_data):
4064 (tst_Painting::paint):
4065 * tests/benchmarks/painting/tst_painting.pro: Added.
4068 2009-07-20 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4070 Reviewed by Holger Freyther.
4072 [Qt] Add an option for QtLauncher to build without QtUiTools dependency
4073 https://bugs.webkit.org/show_bug.cgi?id=27438
4075 Based on Norbert Leser's work.
4077 * QtLauncher/main.cpp:
4078 (WebPage::createPlugin):
4080 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
4082 Reviewed by Adam Treat.
4086 * Api/qcookiejar.cpp:
4087 (QCookieJarPrivate::QCookieJarPrivate):
4089 (QCookieJar::cookieJar):
4090 * Api/qwebelement.cpp:
4091 (QWebElement::functions):
4092 (QWebElement::scriptableProperties):
4093 * Api/qwebframe.cpp:
4094 (QWebFrame::metaData):
4095 (QWebFrame::scrollBarValue):
4096 (QWebFrame::scroll):
4097 (QWebFrame::scrollPosition):
4099 * Api/qwebnetworkinterface.cpp:
4100 (decodePercentEncoding):
4101 (QWebNetworkRequestPrivate::init):
4102 (QWebNetworkRequestPrivate::setURL):
4103 (QWebNetworkRequest::QWebNetworkRequest):
4104 (QWebNetworkRequest::operator=):
4105 (QWebNetworkRequest::setUrl):
4106 (QWebNetworkRequest::setHttpHeader):
4107 (QWebNetworkRequest::httpHeaderField):
4108 (QWebNetworkRequest::setHttpHeaderField):
4109 (QWebNetworkRequest::setPostData):
4110 (QWebNetworkJob::setResponse):
4111 (QWebNetworkJob::frame):
4112 (QWebNetworkManager::add):
4113 (QWebNetworkManager::cancel):
4114 (QWebNetworkManager::started):
4115 (QWebNetworkManager::data):
4116 (QWebNetworkManager::finished):
4117 (QWebNetworkManager::addHttpJob):
4118 (QWebNetworkManager::cancelHttpJob):
4119 (QWebNetworkManager::httpConnectionClosed):
4120 (QWebNetworkInterfacePrivate::sendFileData):
4121 (QWebNetworkInterfacePrivate::parseDataUrl):
4122 (QWebNetworkManager::doWork):
4123 (QWebNetworkInterface::setDefaultInterface):
4124 (QWebNetworkInterface::defaultInterface):
4125 (QWebNetworkInterface::QWebNetworkInterface):
4126 (QWebNetworkInterface::addJob):
4127 (QWebNetworkInterface::cancelJob):
4128 (WebCoreHttp::WebCoreHttp):
4129 (WebCoreHttp::request):
4130 (WebCoreHttp::scheduleNextRequest):
4131 (WebCoreHttp::getConnection):
4132 (WebCoreHttp::onResponseHeaderReceived):
4133 (WebCoreHttp::onReadyRead):
4134 (WebCoreHttp::onRequestFinished):
4135 (WebCoreHttp::onAuthenticationRequired):
4136 (WebCoreHttp::onProxyAuthenticationRequired):
4138 (QWebPagePrivate::QWebPagePrivate):
4139 (QWebPagePrivate::mouseReleaseEvent):
4140 (QWebPagePrivate::inputMethodEvent):
4141 (QWebPagePrivate::shortcutOverrideEvent):
4142 (QWebPage::inputMethodQuery):
4143 (QWebPage::javaScriptPrompt):
4144 (QWebPage::updatePositionDependentActions):
4145 (QWebPage::userAgentForUrl):
4146 (QWebPagePrivate::_q_onLoadProgressChanged):
4147 (QWebPage::totalBytes):
4148 (QWebPage::bytesReceived):
4149 * Api/qwebsettings.cpp:
4150 (QWebSettings::iconForUrl):
4151 (QWebSettings::setObjectCacheCapacities):
4153 (QWebView::paintEvent):
4154 (QWebView::changeEvent):
4156 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
4158 Reviewed by Simon Hausmann.
4160 Overwrite the plugin directories for the DRT.
4161 Part of https://bugs.webkit.org/show_bug.cgi?id=27215
4164 (qt_drt_overwritePluginDirectories): Only set the plugin directories
4165 to the ones in the QTWEBKIT_PLUGIN_PATH environment variable.
4167 2009-07-16 Xiaomei Ji <xji@chromium.org>
4169 Reviewed by Dan Bernstein.
4171 This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's."
4172 https://bugs.webkit.org/show_bug.cgi?id=24187
4174 Add one extra parameter to the callee of HitTestResult::title() due to the signature change.
4176 * Api/qwebframe.cpp:
4177 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title().
4178 * WebCoreSupport/ChromeClientQt.cpp:
4179 (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title().
4181 2009-07-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
4183 Reviewed by Adam Treat.
4185 Add new action to qwebpage to reload without cache.
4188 (QWebPagePrivate::updateAction):
4189 (QWebPagePrivate::updateNavigationActions):
4190 (QWebPage::triggerAction):
4193 2009-07-16 Xiaomei Ji <xji@chromium.org>
4195 Reviewed by Darin Adler.
4197 Fix tooltip does not get its directionality from its element's directionality.
4198 https://bugs.webkit.org/show_bug.cgi?id=24187
4200 Per mitz's suggestion in comment #6, while getting the plain-text
4201 title, we also get the directionality of the title. How to handle
4202 the directionality is up to clients. Clients could ignore it,
4203 or use attribute or unicode control characters to display the title
4207 * WebCoreSupport/ChromeClientQt.cpp:
4208 (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet).
4209 * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip().
4211 2009-07-15 Yael Aharon <yael.aharon@nokia.com>
4213 Reviewed by Simon Hausmann.
4215 https://bugs.webkit.org/show_bug.cgi?id=27285
4217 When the user clicks a link with a target attribute, the newly created window should be visible.
4218 Make new windows created in Qtlauncher visible.
4220 * QtLauncher/main.cpp:
4221 (WebPage::createWindow):
4223 2009-07-14 Adam Treat <adam.treat@torchmobile.com>
4225 Reviewed by Zack Rusin.
4227 https://bugs.webkit.org/show_bug.cgi?id=26983
4229 The default constructed values for QSize and WebCore::IntSize are different. The former
4230 produces an invalid size whereas the latter produces a size of zero. This was causing
4231 a layout to be triggered when constructing a view and an assert to be hit. This patch fixes
4232 the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize.
4234 * WebCoreSupport/FrameLoaderClientQt.cpp:
4235 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
4237 2009-07-13 Simon Hausmann <simon.hausmann@nokia.com>
4239 Reviewed by Ariya Hidayat.
4241 Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention
4242 how to re-implement it.
4246 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4248 Reviewed by Ariya Hidayat.
4250 Fix crash with plugins when the plugin stream is cancelled.
4252 Similar to r26667 handle the case where didReceiveResponse on the
4253 plugin view results in failure to set up the stream and
4254 setMainDocumentError being called instead. This will set the
4255 m_pluginView back to 0 and we need check for it before calling
4258 This was triggered by consecutive execution of
4259 LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
4260 followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html
4262 * WebCoreSupport/FrameLoaderClientQt.cpp:
4263 (WebCore::FrameLoaderClientQt::committedLoad):
4265 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4267 Reviewed by Ariya Hidayat.
4269 Added QWebDatabase::removeAllDatabases, as a way to delete all
4270 databases from the offline storage path.
4274 * Api/qwebdatabase.cpp:
4275 (QWebDatabase::removeAllDatabases):
4276 * Api/qwebdatabase.h:
4278 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4280 Reviewed by Ariya Hidayat.
4282 Added loadStarted() and loadFinished() signals to QWebFrame,
4283 to allow load tracking of individual frames, as opposed to
4284 QWebPage's loadStarted/loadFinished signals that are emitted
4285 whenever _any_ child frame loads/finishes.
4287 * Api/qwebframe.cpp: Document new signals.
4288 * Api/qwebframe.h: Add new signals.
4289 * WebCoreSupport/FrameLoaderClientQt.cpp:
4290 (WebCore::FrameLoaderClientQt::setFrame): Connect new signals.
4292 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4294 Reviewed by Ariya Hidayat.
4296 Add hooks for the GCController JavaScript interface needed by the
4299 Fixed sort order of includes in qwebframe.cpp.
4301 * Api/qwebframe.cpp:
4302 (qt_drt_javaScriptObjectsCount):
4303 (qt_drt_garbageCollector_collect):
4304 (qt_drt_garbageCollector_collectOnAlternateThread):
4306 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4308 Reviewed by Ariya Hidayat.
4310 Add hooks for the GCController JavaScript interface needed by the
4313 Fixed sort order of includes in qwebframe.cpp.
4315 * Api/qwebframe.cpp:
4316 (qt_drt_javaScriptObjectsCount):
4317 (qt_drt_garbageCollector_collect):
4318 (qt_drt_garbageCollector_collectOnAlternateThread):
4320 2009-07-12 Brent Fulgham <bfulgham@gmail.com>
4322 Speculative build fix after http://trac.webkit.org/changeset/45786.
4324 * WebCoreSupport/ChromeClientQt.cpp:
4325 (WebCore::ChromeClientQt::addMessageToConsole):
4326 * WebCoreSupport/ChromeClientQt.h:
4328 2009-07-10 Yael Aharon <yael.aharon@nokia.com>
4330 Reviewed by Holger Freyther.
4332 https://bugs.webkit.org/show_bug.cgi?id=27136
4334 Fix a bug where webkit hangs when executing infinite JavaScript loop.
4337 (QWebPage::shouldInterruptJavaScript):
4339 * WebCoreSupport/ChromeClientQt.cpp:
4340 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
4341 * tests/qwebpage/tst_qwebpage.cpp:
4342 (JSTestPage::JSTestPage):
4343 (JSTestPage::shouldInterruptJavaScript):
4344 (tst_QWebPage::infiniteLoopJS):
4346 2009-07-10 Simon Hausmann <simon.hausmann@nokia.com>
4348 Reviewed by Holger Freyther.
4350 https://bugs.webkit.org/show_bug.cgi?id=27108
4352 Fix crash when in frame tree of a new frame before the new frame
4353 has been installed in the frame tree, similar to r35088.
4355 After calling Frame::init() the frame it may have been removed from the
4356 frame tree again through JavaScript. Detect this by checking the page()
4359 To make this check safe the Frame::init() code was moved into
4360 QWebFrameData's constructor, where a RefPtr holds a reference to the frame.
4361 After the check back in FrameLoaderClientQt we would hold the single
4362 reference left and after release() the frame, its frame loader, its
4363 client as well as the QWebFrame should have disappeared then.
4365 * Api/qwebframe.cpp:
4366 (QWebFramePrivate::init): Only call Frame::init here, the rest is
4367 done in QWebFrameData's constructor.
4368 (QWebFrame::QWebFrame):
4369 * Api/qwebframe_p.h: Adjust declaration.
4370 (QWebFrameData::QWebFrameData): Create the Frame here.
4372 (QWebPagePrivate::createMainFrame): Adjust and simplify
4373 to new QWebFrame constructor.
4374 * WebCoreSupport/FrameLoaderClientQt.cpp:
4375 (WebCore::FrameLoaderClientQt::createFrame): Adjust to
4376 new QWebFrame construction using QWebFrameData and add the
4377 check like in r35088.
4379 2009-07-09 Beth Dakin <bdakin@apple.com>
4381 Reviewed by Dave Hyatt.
4383 Make Widget RefCounted to fix:
4385 <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs
4386 at WebCore::Widget::afterMouseDown() after clicking To Do's close
4388 <rdar://problem/6978804> WER #16: Repro Access Violation in
4389 WebCore::PluginView::bindingInstance (1310178023)
4391 <rdar://problem/6991251> WER #13: Crash in WebKit!
4392 WebCore::PluginView::performRequest+203 (1311461169)
4394 * WebCoreSupport/FrameLoaderClientQt.cpp:
4395 (WebCore::FrameLoaderClientQt::createPlugin):
4396 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
4397 * WebCoreSupport/FrameLoaderClientQt.h:
4399 2009-07-08 Pradeepto Bhattacharya <pradeepto@kde.org>
4401 Reviewed by Ariya Hidayat.
4405 * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction().
4407 2009-07-08 Simon Hausmann <hausmann@webkit.org>
4409 Reviewed by Tor Arne Vestbø.
4411 https://bugs.webkit.org/show_bug.cgi?id=27080
4413 Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html
4415 When the form is submitted we call the policy function in the frame
4416 loader delayed with a queued connection. That queued connection
4417 sometimes interferes with the javascript timeout set in the testcase.
4419 Eliminate the entire delayed policy function mechanism and instead always
4420 call back directly, like in the other ports. In most other places we called
4421 the slot directly anyway.
4423 * WebCoreSupport/FrameLoaderClientQt.cpp:
4424 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction.
4425 (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead
4426 of emitting the queued signal.
4427 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly.
4428 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto.
4429 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto.
4430 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto.
4431 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
4432 * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated
4435 2009-07-07 Simon Hausmann <hausmann@webkit.org>
4437 Reviewed by Holger Freyther.
4439 Add Qt DRT hook for clearing the frame name.
4441 * Api/qwebframe.cpp:
4442 (qt_drt_clearFrameName):
4444 2009-07-05 Simon Hausmann &n