1 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
3 Reviewed by Kenneth Rohde Christiansen.
5 [Qt] Improve the autotests of QtWebkit
6 https://bugs.webkit.org/show_bug.cgi?id=32216
8 Remove the calls to qWait() of the autotest of QWebView
10 * tests/qwebview/tst_qwebview.cpp:
11 (tst_QWebView::reusePage):
13 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
15 Reviewed by Kenneth Rohde Christiansen.
17 [Qt] Improve the autotests of QtWebkit
18 https://bugs.webkit.org/show_bug.cgi?id=32216
20 Refactor tst_qwebframe to remove qWait() and use
21 the function waitForSignal() from util.h
23 * tests/qwebframe/tst_qwebframe.cpp:
25 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
27 Reviewed by Kenneth Rohde Christiansen.
29 [Qt] Improve the autotests of QtWebkit
30 https://bugs.webkit.org/show_bug.cgi?id=32216
32 Refactor the test of QGraphicsWebView:
33 -make waitForSignal() available to all the tests.
34 -remove QTest::qWait()
36 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
37 (tst_QGraphicsWebView::crashOnViewlessWebPages):
41 2009-12-07 Girish Ramakrishnan <girish@forwardbias.in>
43 Reviewed by Simon Hausmann.
45 [Qt] Plugins: Force windowless mode when there is no native window handle
47 Inject wmode=opaque while instantiating the plugin for the case when the
48 webpage is not backed by a native window handle.
50 https://bugs.webkit.org/show_bug.cgi?id=32059
52 * WebCoreSupport/FrameLoaderClientQt.cpp:
53 (WebCore::FrameLoaderClientQt::createPlugin):
55 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
57 Reviewed by Kenneth Rohde Christiansen.
59 [Qt] Corrects QtLauncher style
61 * QtLauncher/main.cpp:
62 (WebPage::acceptNavigationRequest):
63 (MainWindow::MainWindow):
64 (MainWindow::webPage):
65 (MainWindow::webView):
66 (MainWindow::changeLocation):
67 (MainWindow::loadFinished):
68 (MainWindow::showLinkHover):
70 (MainWindow::zoomOut):
72 (MainWindow::setEditable):
73 (MainWindow::dumpHtml):
74 (MainWindow::selectElements):
75 (MainWindow::newWindow):
76 (MainWindow::setupUI):
77 (WebPage::createWindow):
78 (WebPage::createPlugin):
81 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
83 Reviewed by Kenneth Rohde Christiansen.
85 [Qt] QtLauncher: add a menu to show or hide the web inspector.
86 https://bugs.webkit.org/show_bug.cgi?id=32149
88 * QtLauncher/main.cpp:
89 (WebInspector::WebInspector):
90 (WebInspector::showEvent):
91 (WebInspector::hideEvent):
92 (MainWindow::MainWindow):
93 (MainWindow::setupUI):
95 2009-12-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
97 Reviewed by Antti Koivisto.
99 Split out the renderPrivate in two methods, one for working on
100 relative coordinates (relative to the viewport) and one for
101 working on absolute coordinates. The latter is more effecient
102 for implementing tiling, as you don't need translate the coords,
103 and because it avoid clipping to the viewport.
105 No behaviour changes, so no new tests.
108 (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
109 (QWebFramePrivate::renderRelativeCoords):
113 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
115 Reviewed by Simon Hausmann.
117 [Qt] Allow removing 'qrc' as a local security origin scheme
119 * tests/qwebpage/tst_qwebpage.cpp:
121 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
123 Reviewed by Simon Hausmann.
125 [Qt] Clean up argument parsing in the QtLauncher
127 * QtLauncher/main.cpp:
129 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
131 Reviewed by Kenneth Rohde Christiansen.
133 [Qt] Prevent the inspector from closing its wrapping widget.
134 This is not necessary anymore since we now hide the embedded
136 https://bugs.webkit.org/show_bug.cgi?id=32149
138 * WebCoreSupport/InspectorClientQt.cpp:
139 (WebCore::InspectorClientQt::showWindow):
140 (WebCore::InspectorClientQt::closeWindow):
142 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
144 Reviewed by Eric Seidel.
146 Fix compilation when SVG is disabled.
149 (qt_drt_pauseSVGAnimation):
151 2009-12-03 Brady Eidson <beidson@apple.com>
153 Reviewed by Sam Weinig.
155 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
157 * WebCoreSupport/FrameLoaderClientQt.cpp:
158 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
159 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
160 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
161 * WebCoreSupport/FrameLoaderClientQt.h:
163 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
165 Reviewed by Timothy Hatcher.
167 Web Inspector: Simplify the settings support in inspector controller.
169 https://bugs.webkit.org/show_bug.cgi?id=32076
171 * WebCoreSupport/InspectorClientQt.cpp:
172 (WebCore::InspectorClientQt::populateSetting):
173 (WebCore::InspectorClientQt::storeSetting):
174 (WebCore::variantToSetting):
175 (WebCore::settingToVariant):
176 * WebCoreSupport/InspectorClientQt.h:
178 2009-12-03 Ben Murdoch <benm@google.com>
180 Reviewed by Brady Eidson.
182 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
183 https://bugs.webkit.org/show_bug.cgi?id=31914
185 * WebCoreSupport/FrameLoaderClientQt.cpp:
186 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
187 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
188 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
189 * WebCoreSupport/FrameLoaderClientQt.h:
191 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
193 Not reviewed. Try to fix Qt build.
196 (qt_drt_pauseSVGAnimation):
198 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
200 Reviewed by Simon Fraser.
202 Add SVG animation test framework with 'snapshot' functionality
203 https://bugs.webkit.org/show_bug.cgi?id=31897
205 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
206 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
208 Implemented just like the existing pauseAnimation* methods for CSS animations.
211 (qt_drt_pauseSVGAnimation):
213 2009-12-01 Daniel Bates <dbates@webkit.org>
215 Reviewed by Kenneth Rohde Christiansen.
217 https://bugs.webkit.org/show_bug.cgi?id=31898
219 Makes QtLauncher default to the http scheme for URLs.
221 * QtLauncher/main.cpp:
222 (MainWindow::MainWindow):
223 (MainWindow::changeLocation):
226 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
228 Reviewed by Simon Hausmann.
230 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
231 https://bugs.webkit.org/show_bug.cgi?id=31961
234 (QWebPage::userAgentForUrl):
236 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
238 Reviewed by Kenneth Rohde Christiansen.
240 [Qt] Fix minor waning in QtWebKit
241 https://bugs.webkit.org/show_bug.cgi?id=31963
243 * tests/qwebpage/tst_qwebpage.cpp:
244 (ErrorPage::extension): Remove info wariable as it is
247 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
249 Reviewed by Kenneth Rohde Christiansen.
251 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
253 https://bugs.webkit.org/show_bug.cgi?id=31401
255 Don't set the event unless there is a focused node we can use
256 for editing afterwards.
259 (QWebPagePrivate::handleSoftwareInputPanel):
260 * tests/qwebpage/tst_qwebpage.cpp:
261 (tst_QWebPage::inputMethods):
263 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
265 Rubber-stamped by Holger Freyther.
267 Removed unused ICO image plugin handler.
269 * Plugins/ICOHandler.cpp: Removed.
270 * Plugins/ICOHandler.h: Removed.
271 * Plugins/Plugins.pro: Removed.
273 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
275 Reviewed by Kenneth Rohde Christiansen.
277 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
278 https://bugs.webkit.org/show_bug.cgi?id=31203
280 The clipping code was making a QWidget visible even if the
281 WebCore::Widget was hidden. Fix the bug by calling setVisible
282 only if the WebCore::Widget Widget::isSelfVisible.
284 * WebCoreSupport/FrameLoaderClientQt.cpp:
285 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
286 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
287 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
289 2009-11-23 David Boddie <dboddie@trolltech.com>
291 Reviewed by Simon Hausmann.
293 Updated the QWebElement documentation with links to examples and
295 Fixed the project file for the webelement snippet and tidied up the
296 markers used for quoting the code.
298 * Api/qwebelement.cpp:
299 * docs/webkitsnippets/webelement/main.cpp:
301 * docs/webkitsnippets/webelement/webelement.pro:
303 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
305 Reviewed by Kenneth Rohde Christiansen.
307 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
308 the wrapped object died before the gc removed the instance.
310 https://bugs.webkit.org/show_bug.cgi?id=31681
312 Added a unit-test to verify that wrapping a QObject with the
313 same identity as a previously but now dead object works.
315 * tests/qwebframe/tst_qwebframe.cpp:
317 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
319 Reviewed by Kenneth Rohde Christiansen.
321 [Qt] Add instantiation tests for QWebInspector.
323 * tests/qwebinspector/qwebinspector.pro: Added.
324 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
325 (tst_QWebInspector::attachAndDestroy):
328 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
330 Reviewed by Kenneth Rohde Christiansen.
332 [Qt] Fix QWebInspector destruction problem.
333 https://bugs.webkit.org/show_bug.cgi?id=31664
336 (QWebPage::~QWebPage):
338 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
340 Reviewed by Simon Hausmann.
342 [Qt] Normalize signal and slot signatures.
344 * Api/qgraphicswebview.cpp:
345 (QGraphicsWebView::setPage):
348 * WebCoreSupport/FrameLoaderClientQt.cpp:
349 (WebCore::FrameLoaderClientQt::setFrame):
350 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
352 * tests/qwebframe/tst_qwebframe.cpp:
353 * tests/qwebpage/tst_qwebpage.cpp:
354 (tst_QWebPage::modified):
355 (tst_QWebPage::database):
357 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
359 Reviewed by Kenneth Rohde Christiansen.
361 [Qt] Remove support for Qt v4.3 or older versions
362 https://bugs.webkit.org/show_bug.cgi?id=29469
364 * Api/qcookiejar.cpp: Removed.
365 * Api/qcookiejar.h: Removed.
366 * Api/qgraphicswebview.cpp:
367 (QGraphicsWebView::event):
371 * Api/qwebkitglobal.h:
372 * Api/qwebnetworkinterface.cpp: Removed.
373 * Api/qwebnetworkinterface.h: Removed.
374 * Api/qwebnetworkinterface_p.h: Removed.
376 (QWebPagePrivate::QWebPagePrivate):
377 (QWebPagePrivate::acceptNavigationRequest):
378 (QWebPage::acceptNavigationRequest):
380 (QWebPage::userAgentForUrl):
387 * QtLauncher/main.cpp:
389 (MainWindow::setupUI):
391 * WebCoreSupport/FrameLoaderClientQt.cpp:
392 (WebCore::FrameLoaderClientQt::download):
393 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
394 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
395 (WebCore::FrameLoaderClientQt::startDownload):
396 (WebCore::FrameLoaderClientQt::createPlugin):
398 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
400 Reviewed by Eric Seidel.
402 [Qt] Add support for displaying deleteButton.
403 https://bugs.webkit.org/show_bug.cgi?id=31560
405 Test: LayoutTests/editing/deleting/5408255.html
407 * Api/qwebsettings.cpp:
409 * Api/qwebsettings.h:
411 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
413 Reviewed by Simon Hausmann.
415 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
417 * tests/qwebelement/tst_qwebelement.cpp:
418 (tst_QWebElement::render):
420 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
422 Reviewed by Tor Arne Vestbø.
424 Clarify and simplify the legal section in the overview documentation,
425 after review with our legal team.
427 * docs/qtwebkit.qdoc:
429 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
431 Reviewed by Simon Hausmann.
433 [Qt] Add QtLauncher support for opening links in the default browser
435 This can be triggered by either the context menu or by clicking a link
436 while holding down the Alt key. Opening a link in a new windows is
437 triggered by holding down Shift.
439 * QtLauncher/main.cpp:
441 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
443 Reviewed by Kenneth Rohde Christiansen.
445 [Qt] QGLLauncher does not support drag&drop of local files
446 https://bugs.webkit.org/show_bug.cgi?id=31057
448 Enable accepting files in QGraphicsWebView.
450 * Api/qgraphicswebview.cpp:
451 (QGraphicsWebView::QGraphicsWebView):
452 (QGraphicsWebView::dragEnterEvent):
454 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
456 Reviewed by Kenneth Christiansen.
458 [Qt] better test coverage for ErrorPageExtension
459 https://bugs.webkit.org/show_bug.cgi?id=31583
461 Improved the coverage of current ErrorPageExtension tests by
462 adding autotests involving frameset and iframes.
464 * tests/qwebpage/tst_qwebpage.cpp:
465 (ErrorPage::extension): Make the ErrorPageExtension
466 to work for all frames, not only the main frame.
467 (tst_QWebPage::errorPageExtension): Stop using
468 the 'frameset.html' resouce in this method since
469 an autotest specific for frameset's is being added.
470 (tst_QWebPage::errorPageExtensionInIFrames): Added.
471 (tst_QWebPage::errorPageExtensionInFrameset): Added.
473 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
475 Reviewed by Kenneth Rohde Christiansen.
477 API documentation fixes.
479 * Api/qgraphicswebview.cpp: Removed duplicate docs.
480 * Api/qwebelement.cpp: Added missing docs.
481 * Api/qwebsettings.cpp: Ditto.
483 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
485 Reviewed by Antti Koivisto.
487 [Qt] Broken back/forward after using ErrorPageExtension to set error page
488 https://bugs.webkit.org/show_bug.cgi?id=30573
490 Implemented autotests for covering the back/forward
491 reset problem involving error pages.
493 * tests/qwebpage/tst_qwebpage.cpp:
494 (tst_QWebPage::errorPageExtension):
496 2009-11-13 Adam Roben <aroben@apple.com>
498 Update for changes to FrameLoaderClient
500 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
501 window objects in isolated worlds are cleared
503 Reviewed by Dave Hyatt.
505 * WebCoreSupport/FrameLoaderClientQt.cpp:
506 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
507 * WebCoreSupport/FrameLoaderClientQt.h:
508 Replaced windowObjectCleared with this function. Does nothing if the
509 passed-in world is not the mainThreadNormalWorld().
511 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
513 Reviewed by Kenneth Rohde Christiansen.
515 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
516 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
518 * Api/qwebsettings.cpp:
519 (QWebSettingsPrivate::apply):
520 (QWebSettings::setMaximumPagesInCache):
522 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
524 Reviewed by Kenneth Rohde Christiansen.
526 [Qt] Fix initial QWebView focus behavior.
528 focusController->setFocused(true) was not always called.
529 https://bugs.webkit.org/show_bug.cgi?id=31466
532 (QWebPagePrivate::focusInEvent):
534 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
536 Reviewed by Simon Hausmann.
538 Update documentation for the Qt API
540 * Api/qgraphicswebview.cpp:
541 * Api/qwebelement.cpp:
543 * Api/qwebsettings.cpp:
546 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
548 Reviewed by Simon Hausmann.
550 Use correct install-path when running qdoc3
554 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
556 Reviewed by Darin Adler.
558 externalRepresentation should take Frame as the argument
559 https://bugs.webkit.org/show_bug.cgi?id=31393
561 No new tests as this is just a refactoring.
564 (QWebFrame::renderTreeDump):
566 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
568 Reviewed by Jan Alonzo.
570 [Qt] Various doc fixes
571 https://bugs.webkit.org/show_bug.cgi?id=31358
573 QWebPage's constructor docs are mentioning "QWebView":
574 "Constructs an empty QWebView with parent".
578 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
580 Reviewed by Kenneth Rohde Christiansen.
582 Custom printing shrink factors
583 https://bugs.webkit.org/show_bug.cgi?id=29042
585 This reverts commit r49769. The public API for this needs to be reviewed
586 before its inclusion in Qt.
588 * Api/qwebsettings.cpp:
589 (QWebSettingsPrivate::apply):
590 (QWebSettings::QWebSettings):
591 * Api/qwebsettings.h:
593 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
595 Reviewed by Kenneth Christiansen.
597 [Qt] Various doc fixes
598 https://bugs.webkit.org/show_bug.cgi?id=31358
600 Fixed wrong documentation: item's dimensions do fit to Web page
603 Kenneth agreed to land this as a followup patch to the
604 just landed documentation patch.
606 * Api/qgraphicswebview.cpp:
608 2009-11-11 David Boddie <dboddie@trolltech.com>
610 Reviewed by Kenneth Christiansen.
612 [Qt] Various doc fixes
613 https://bugs.webkit.org/show_bug.cgi?id=31323
615 Fixed and synchronized QWebView related documentation.
617 * Api/qgraphicswebview.cpp:
620 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
622 Unreviewed buildbot fix.
624 Export a method to the DRT to know if the document has a
628 (qt_drt_hasDocumentElement):
630 2009-11-11 Liang QI <liang.qi@nokia.com>
632 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
634 * tests/qwebframe/qwebframe.pro:
635 * tests/qwebframe/tst_qwebframe.cpp:
636 * tests/qwebpage/qwebpage.pro:
637 * tests/qwebpage/tst_qwebpage.cpp:
639 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
641 Reviewed by Simon Hausmann.
643 Fix a crash in the layout test plugins/document-open.html
646 (QWebFrame::toPlainText):
648 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
650 Reviewed by Tor Arne Vestbø.
652 [Qt] Regression: Preserve the parent of plugin objects when using
653 QtWebKit with only a QWebPage.
655 * WebCoreSupport/FrameLoaderClientQt.cpp:
656 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
658 * tests/qwebpage/tst_qwebpage.cpp:
659 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
660 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
662 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
663 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
664 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
665 plugin parent remains unchanged.
667 2009-11-11 David Boddie <dboddie@trolltech.com>
669 [Qt] Doc: Added internal or hidden placeholder documentation.
673 2009-11-11 Martin Smith <msmith@trolltech.com>
675 [Qt] doc: Changed Trolltech to Nokia
679 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
681 Reviewed by Kenneth Rohde Christiansen.
683 https://bugs.webkit.org/show_bug.cgi?id=31323
684 Fix a few compiler warnings
686 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
687 to make it explicit where the else case belongs
689 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
691 Reviewed by Tor Arne Vestbø.
693 Fix enabling of software input panel when activating editable elements
696 * Api/qgraphicswebview.cpp:
697 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
698 query for input method support.
700 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
701 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
702 test for input method support. Instead query using QWebPageClient
703 and send the SIPR event to the ownerWidget() instead of the view().
704 The latter is null for QGraphicsWebView.
705 * tests/qwebpage/tst_qwebpage.cpp:
706 (EventSpy::EventSpy):
707 (EventSpy::eventFilter):
708 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
709 events are dispatched when activating focusable content.
711 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
713 Unreviewed documentation fixes.
715 Added a few improvements from Jocelyn Turcotte to the
720 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
722 Unreviewed documentation fix.
724 [Qt] Make qwebpage's createWindow not qwebview dependent.
725 https://bugs.webkit.org/show_bug.cgi?id=30771
727 Update documentation to make it clear that a reimplementation
728 of the createWindow method of the associated QWebPage can
729 result in the QWebView::createWindow method to never be called.
733 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
735 Reviewed by Kenneth Rohde Christiansen.
737 [Qt] Few classes have virtual functions but non-virtual destructor
738 https://bugs.webkit.org/show_bug.cgi?id=31269
740 * Api/qgraphicswebview.cpp:
741 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
744 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
746 Reviewed by Kenneth Rohde Christiansen.
748 https://bugs.webkit.org/show_bug.cgi?id=30628
749 Add an API to get all the attributes from a QWebElement.
751 * Api/qwebelement.cpp:
752 (QWebElement::attributesName):
754 * tests/qwebelement/tst_qwebelement.cpp:
755 (tst_QWebElement::listAttributes):
757 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
759 Reviewed by Kenneth Rohde Christiansen.
761 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
762 https://bugs.webkit.org/show_bug.cgi?id=31040
765 (QWebPagePrivate::handleScrolling):
767 2009-11-09 Mark Mentovai <mark@chromium.org>
769 Reviewed by Dan Bernstein.
771 Track "can have scrollbar" state within FrameView independently of the
772 individual scrollbar states in ScrollView.
774 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
775 REGRESSION (r48064): mint.com loses scrollbars after coming out of
778 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
779 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
781 Test: fast/overflow/scrollbar-restored.html
784 (QWebFrame::setScrollBarPolicy):
786 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
788 Reviewed by Kenneth Rohde Christiansen.
790 https://bugs.webkit.org/show_bug.cgi?id=30772
791 Add a non-const iterator to QWebElementCollection.
792 Move the two attributes of the iterator to private.
795 (const_iterator::begin):
796 (const_iterator::end):
797 (const_iterator::constBegin):
798 (const_iterator::constEnd):
799 (const_iterator::iterator::iterator):
800 (const_iterator::iterator::operator*):
801 (const_iterator::iterator::operator==):
802 (const_iterator::iterator::operator!=):
803 (const_iterator::iterator::operator<):
804 (const_iterator::iterator::operator<=):
805 (const_iterator::iterator::operator>):
806 (const_iterator::iterator::operator>=):
807 (const_iterator::iterator::operator++):
808 (const_iterator::iterator::operator--):
809 (const_iterator::iterator::operator+=):
810 (const_iterator::iterator::operator-=):
811 (const_iterator::iterator::operator+):
812 (const_iterator::iterator::operator-):
813 * tests/qwebelement/tst_qwebelement.cpp:
814 (tst_QWebElement::nonConstIterator):
815 (tst_QWebElement::constIterator):
817 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
819 Reviewed by Kenneth Christiansen.
821 [Qt] Remove the sessionStorage setting (per Page)
822 https://bugs.webkit.org/show_bug.cgi?id=31249
824 This setting allows to run sessionStorage on/off on a per page
825 basis. Remove this prematurely exposed API.
827 * Api/qwebsettings.cpp:
828 (QWebSettingsPrivate::apply):
829 (QWebSettings::QWebSettings):
830 * tests/qwebpage/tst_qwebpage.cpp:
831 (tst_QWebPage::database):
832 (tst_QWebPage::testOptionalJSObjects):
834 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
836 Reviewed by Simon Hausmann.
838 [Qt] Remove the QWebPage:webInspectorTriggered signal.
839 User customization of the communication between QWebPage
840 and QWebInspector will be properly designed in the next version.
841 https://bugs.webkit.org/show_bug.cgi?id=30773
843 * Api/qwebinspector.cpp:
845 (QWebPagePrivate::getOrCreateInspector):
846 (QWebPage::triggerAction):
848 * QtLauncher/main.cpp:
849 (MainWindow::MainWindow):
851 2009-11-05 Simon Hausmann <hausmann@webkit.org>
853 Reviewed by Tor Arne Vestbø.
855 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
857 * Api/qgraphicswebview.cpp:
858 (QGraphicsWebView::inputMethodQuery):
859 * Api/qgraphicswebview.h:
861 2009-11-04 Simon Hausmann <hausmann@webkit.org>
863 Reviewed by Tor Arne Vestbø.
865 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
868 * Api/qgraphicswebview.cpp:
869 (QGraphicsWebView::sizeHint):
870 * Api/qgraphicswebview.h:
872 2009-11-04 Simon Hausmann <hausmann@webkit.org>
874 Reviewed by Tor Arne Vestbø.
876 Removed zoomFactoryChanged() signal and added
877 linkClicked() to QGraphicsWebView, for consistency with
880 * Api/qgraphicswebview.cpp:
881 (QGraphicsWebView::setPage):
882 (QGraphicsWebView::setZoomFactor):
883 * Api/qgraphicswebview.h:
885 2009-11-04 Simon Hausmann <hausmann@webkit.org>
887 Reviewed by Tor Arne Vestbø.
889 Added QGraphicsWebView::findText() for convenience and consistency
892 * Api/qgraphicswebview.cpp:
893 (QGraphicsWebView::findText):
894 * Api/qgraphicswebview.h:
896 2009-11-04 Simon Hausmann <hausmann@webkit.org>
898 Reviewed by Tor Arne Vestbø.
900 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
901 consistency with QWebView.
903 * Api/qgraphicswebview.cpp:
904 (QGraphicsWebView::pageAction):
905 (QGraphicsWebView::triggerPageAction):
906 * Api/qgraphicswebview.h:
908 2009-11-04 Simon Hausmann <hausmann@webkit.org>
910 Reviewed by Tor Arne Vestbø.
912 Removed QGraphicsWebView::toHtml() after API review.
914 That's consistent with QWebView and also based on the assumption that
915 toHtml() is called less frequently than setHtml().
917 * Api/qgraphicswebview.cpp:
918 * Api/qgraphicswebview.h:
919 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
920 (tst_QGraphicsWebView::qgraphicswebview):
922 2009-11-04 Simon Hausmann <hausmann@webkit.org>
924 Reviewed by Tor Arne Vestbø.
926 Removed the interactive property of QGraphicsWebView.
928 There are clearly use-cases for this feature, but it will require
929 more work to make this fully work with an enum to have fine-grained
930 control over the interactivity levels. For now it is easy to achieve
931 in user-code what the boolean property did.
933 * Api/qgraphicswebview.cpp:
934 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
935 (QGraphicsWebView::hoverMoveEvent):
936 (QGraphicsWebView::mouseMoveEvent):
937 (QGraphicsWebView::mousePressEvent):
938 (QGraphicsWebView::mouseReleaseEvent):
939 (QGraphicsWebView::mouseDoubleClickEvent):
940 (QGraphicsWebView::keyPressEvent):
941 (QGraphicsWebView::keyReleaseEvent):
942 (QGraphicsWebView::dragLeaveEvent):
943 (QGraphicsWebView::dragMoveEvent):
944 (QGraphicsWebView::dropEvent):
945 (QGraphicsWebView::wheelEvent):
946 (QGraphicsWebView::inputMethodEvent):
947 * Api/qgraphicswebview.h:
948 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
949 (tst_QGraphicsWebView::qgraphicswebview):
951 2009-11-04 Simon Hausmann <hausmann@webkit.org>
953 Reviewed by Tor Arne Vestbø.
955 Make the QGraphicsWebView constructor explicit.
957 * Api/qgraphicswebview.h:
959 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
961 Reviewed by Tor Arne Vestbø.
963 Add support for Shift-PageUp and Shift-PageDown key events.
964 https://bugs.webkit.org/show_bug.cgi?id=31166
966 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
968 * WebCoreSupport/EditorClientQt.cpp:
969 (WebCore::EditorClientQt::handleKeyboardEvent):
971 2009-11-05 Simon Hausmann <hausmann@webkit.org>
973 Last Qt 4.5 build fix (*sigh*)
975 * tests/qwebpage/tst_qwebpage.cpp:
976 (inputMethodHints): inputMethodHints() is only used for
977 Qt 4.6, so guard the whole function.
979 2009-11-05 Simon Hausmann <hausmann@webkit.org>
981 Another prospective build fix against Qt 4.5 (build bot)
983 Don't compile & run the QGraphicsWebView portion of the
984 input methods auto test with Qt 4.5.
986 * tests/qwebpage/tst_qwebpage.cpp:
987 (tst_QWebPage::inputMethods_data):
989 (inputMethodEnabled):
990 (tst_QWebPage::inputMethods):
992 2009-11-05 Simon Hausmann <hausmann@webkit.org>
994 Prospective build fix against Qt 4.5 (build bot)
996 * Api/qgraphicswebview.cpp:
997 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
998 use of Qt 4.6 specific API with #ifdefs.
1000 2009-11-01 Simon Hausmann <hausmann@webkit.org>
1002 Reviewed by Kenneth Christiansen.
1004 [Qt] Fix enabling of input method support on QGraphicsWebView.
1005 https://bugs.webkit.org/show_bug.cgi?id=30605
1007 Instead of setting the unsupported widget attribute on the
1008 QGraphicsWidget in setInputMethodEnabled() set the
1009 ItemAcceptsInputMethod GraphicsItem flag directly.
1011 Changed the existing input method auto test to run once
1012 on a QWebView and once on a QGraphicsWebView.
1014 * Api/qgraphicswebview.cpp:
1015 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1016 * tests/qwebpage/tst_qwebpage.cpp:
1017 (tst_QWebPage::inputMethods_data):
1019 (inputMethodEnabled):
1020 (tst_QWebPage::inputMethods):
1022 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1024 Reviewed by Kenneth Christiansen.
1026 Added QGraphicsWebView::modified property, for consistency
1029 * Api/qgraphicswebview.cpp:
1030 (QGraphicsWebView::isModified):
1031 * Api/qgraphicswebview.h:
1032 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1033 (tst_QGraphicsWebView::qgraphicswebview):
1035 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1037 Reviewed by Kenneth Christiansen.
1039 Removed status and progress properties of QGraphicsWebView.
1040 Added loadProgress and statusBarMessage signals instead,
1043 * Api/qgraphicswebview.cpp:
1044 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1045 (QGraphicsWebView::setPage):
1046 * Api/qgraphicswebview.h:
1047 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1048 (tst_QGraphicsWebView::qgraphicswebview):
1050 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
1052 Reviewed by Simon Hausmann.
1054 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
1055 https://bugs.webkit.org/show_bug.cgi?id=30979
1057 Decouple QWebViewPrivate from QWebPageClient, and automatically create
1058 QWebPageWidgetClient whenever the view is QWidget based.
1061 (QWebPageWidgetClient::QWebPageWidgetClient):
1062 (QWebPageWidgetClient::scroll):
1063 (QWebPageWidgetClient::update):
1064 (QWebPageWidgetClient::setInputMethodEnabled):
1065 (QWebPageWidgetClient::setInputMethodHint):
1066 (QWebPageWidgetClient::cursor):
1067 (QWebPageWidgetClient::updateCursor):
1068 (QWebPageWidgetClient::palette):
1069 (QWebPageWidgetClient::screenNumber):
1070 (QWebPageWidgetClient::ownerWidget):
1071 (QWebPageWidgetClient::pluginParent):
1072 (QWebPage::setView):
1074 (QWebView::~QWebView):
1075 (QWebView::setPage):
1078 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
1080 Reviewed by Simon Hausmann.
1082 [Qt] Fix build of unit-test after r50454.
1084 * tests/qwebpage/tst_qwebpage.cpp:
1086 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1088 Reviewed by Tor Arne Vestbø.
1090 Make QWebPluginDatabase private API for now.
1092 https://bugs.webkit.org/show_bug.cgi?id=30775
1095 * Api/qwebplugindatabase.cpp:
1096 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
1097 * Api/qwebsettings.cpp:
1098 * Api/qwebsettings.h:
1099 * QtLauncher/main.cpp:
1100 (MainWindow::setupUI):
1103 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1105 Rubber-stamped by Tor Arne Vestbø.
1107 Oops, also remove the API docs of the removed networkRequestStarted() signal.
1111 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1113 Reviewed by Tor Arne Vestbø.
1115 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
1116 property set to the QWebFrame that belongs to the request.
1118 https://bugs.webkit.org/show_bug.cgi?id=29975
1121 * WebCoreSupport/FrameLoaderClientQt.cpp:
1122 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1123 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1124 (WebCore::FrameLoaderClientQt::startDownload):
1125 * tests/qwebpage/tst_qwebpage.cpp:
1126 (tst_QWebPage::loadFinished):
1127 (TestNetworkManager::createRequest):
1128 (tst_QWebPage::originatingObjectInNetworkRequests):
1130 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1132 Reviewed by Adam Barth.
1136 The QWebView should not crash if the stop() method is called from
1137 a function triggered by the loadProgress signal.
1139 A null pointer protection was added in the ProgressTracker::incrementProgress.
1141 New autotest was created.
1143 https://bugs.webkit.org/show_bug.cgi?id=29425
1145 * tests/qwebview/tst_qwebview.cpp:
1146 (WebViewCrashTest::WebViewCrashTest):
1147 (WebViewCrashTest::loading):
1148 (tst_QWebView::crashTests):
1150 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1152 Reviewed by Eric Seidel.
1154 Turn on warnings for QtWebKit for gcc
1155 https://bugs.webkit.org/show_bug.cgi?id=30958
1158 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
1159 to fix compiler warnings.
1160 * WebCoreSupport/FrameLoaderClientQt.cpp:
1161 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
1163 2009-10-30 Evan Stade <estade@chromium.org>
1165 Reviewed by David Levin.
1167 Notify the chrome when the focused node has changed.
1168 https://bugs.webkit.org/show_bug.cgi?id=30832
1170 Added stub implementation for new ChromeClient function.
1172 * WebCoreSupport/ChromeClientQt.cpp:
1173 (WebCore::ChromeClientQt::focusedNodeChanged):
1174 * WebCoreSupport/ChromeClientQt.h:
1176 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1178 Reviewed by Tor Arne Vestbø.
1180 [Qt] Remove the QWebInspector::windowTitleChanged signal,
1181 QEvent::WindowTitleChange can be used to achieve the same.
1182 https://bugs.webkit.org/show_bug.cgi?id=30927
1184 * Api/qwebinspector.cpp:
1185 * Api/qwebinspector.h:
1186 * WebCoreSupport/InspectorClientQt.cpp:
1187 (WebCore::InspectorClientQt::updateWindowTitle):
1189 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1191 Reviewed by Tor Arne Vestbø.
1193 [Qt] Implement DELETE HTTP method for XmlHttpRequest
1194 https://bugs.webkit.org/show_bug.cgi?id=30894
1196 No new tests as this functionality is already tested by the
1197 xmlhttprequest LayoutTests. As this patch depends on an unreleased
1198 version of the dependent QtNetwork library and the tests will be
1199 enabled later once the dependent library is released (and the
1200 buildbot is updated).
1202 * Api/qwebframe.cpp:
1205 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
1207 Reviewed by Tor Arne Vestbø.
1209 Remove QWebView::guessUrlFromString() and replace its use
1210 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
1214 * QGVLauncher/main.cpp:
1216 (WebPage::applyProxy):
1218 * QtLauncher/main.cpp:
1220 (MainWindow::MainWindow):
1221 (MainWindow::changeLocation):
1222 * tests/qwebview/tst_qwebview.cpp:
1224 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1226 Reviewed by Tor Arne Vestbø.
1228 Serialize directly to the stream, and not first to an QByteArray,
1229 that is later serialized. That is slower and also uses more bytes.
1231 * Api/qwebhistory.cpp:
1235 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
1237 Reviewed by Eric Seidel.
1239 [Qt] WebFrame::counterValueForElementById must not be exposed
1240 https://bugs.webkit.org/show_bug.cgi?id=30882
1242 * Api/qwebframe.cpp:
1243 (qt_drt_counterValueForElementById):
1246 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
1248 Reviewed by Darin Adler.
1250 Provide a way to get counter values with layoutTestContoller
1251 https://bugs.webkit.org/show_bug.cgi?id=30555
1253 * Api/qwebframe.cpp:
1254 (QWebFrame::counterValueForElementById):
1255 (QWebHitTestResult::frame):
1258 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
1260 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
1262 [Qt] [API] Make it possible to have 'invisible' loads
1263 https://bugs.webkit.org/show_bug.cgi?id=29248
1265 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
1267 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1269 Reviewed by Tor Arne Vestbø.
1271 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1272 https://bugs.webkit.org/show_bug.cgi?id=30710
1274 Make the versioning internal and enforce it in the WebCore
1275 part. Adjust the comments, as well as remove now dead code.
1277 * Api/qwebhistory.cpp:
1280 * Api/qwebhistory.h:
1282 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1284 Reviewed by Holger Freyther.
1286 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1287 https://bugs.webkit.org/show_bug.cgi?id=30710
1289 Remove the QWebHistory::saveState() and ::restoreState() as
1290 they are inconsistent with the Qt API.
1292 Update unittests to reflect the change.
1294 * Api/qwebhistory.cpp:
1297 * Api/qwebhistory.h:
1298 * tests/qwebhistory/tst_qwebhistory.cpp:
1301 (tst_QWebHistory::saveAndRestore_crash_1):
1302 (tst_QWebHistory::saveAndRestore_crash_2):
1303 (tst_QWebHistory::saveAndRestore_crash_3):
1304 (tst_QWebHistory::clear):
1306 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1308 Reviewed by Holger Freyther.
1310 Complementary fix to bug 30779.
1312 By mistake I used QWeakPointer's toStrongRef() method which docs
1313 explicitly say to not be used in this situation (when the tracked
1314 pointer is devired from QObject). Instead QWeakPointer's data()
1320 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1322 Reviewed by Simon Fraser.
1324 Change HitTestResult methods to use (3d) transformation aware methods
1325 https://bugs.webkit.org/show_bug.cgi?id=27347
1327 The HitTestResult::boundingBox method was removed. The
1328 RenderObject must be used directly. In contrast to the
1329 old HitTestResult::boundingBox method this code must use
1330 a (3d) transformation aware method to not run into an
1331 assert in SVGRenderBase::mapLocalToContainer.
1333 * Api/qwebframe.cpp:
1334 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1336 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1338 Rubberstamped by Oliver Hunt.
1340 Change two methods to be internal for DRT use only.
1342 Part of [Qt] Review all new API in Qt 4.6
1343 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1345 * Api/qwebsecurityorigin.cpp:
1346 (qt_drt_whiteListAccessFromOrigin):
1347 (qt_drt_resetOriginAccessWhiteLists):
1348 (QWebSecurityOrigin::localSchemes):
1349 * Api/qwebsecurityorigin.h:
1351 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1353 Reviewed by Tor Arne Vestbø.
1355 Make sure that initiating a rotation while rotating won't make
1356 it end up at rotation positions that are not a multiply of
1359 * QGVLauncher/main.cpp:
1360 (MainView::animatedFlip):
1362 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1364 Unreviewed Qt build fix.
1366 Update the tests as well to the new API change.
1368 * tests/qwebelement/tst_qwebelement.cpp:
1369 (tst_QWebElement::clear):
1371 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1373 Rubberstamped by Tor Arne Vestbø.
1375 [Qt] QWebElement::removeChildren() should be
1376 QWebElement::removeAllChildren()
1377 https://bugs.webkit.org/show_bug.cgi?id=30630
1379 * Api/qwebelement.cpp:
1380 (QWebElement::removeAllChildren):
1381 * Api/qwebelement.h:
1383 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1385 Reviewed by Antti Koivisto and Holger Freyther.
1387 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1388 https://bugs.webkit.org/show_bug.cgi?id=30779
1390 The fact that it was been set from external objects of qwebpage
1391 and not being deleted internally can lead to dangling references.
1393 * Api/qgraphicswebview.cpp:
1394 (QGraphicsWebView::~QGraphicsWebView):
1396 (QWebPagePrivate::QWebPagePrivate):
1397 (QWebPagePrivate::createContextMenu):
1398 (QWebPagePrivate::handleSoftwareInputPanel):
1399 (QWebPagePrivate::keyPressEvent):
1400 (QWebPage::setView):
1402 (QWebPage::javaScriptAlert):
1403 (QWebPage::javaScriptConfirm):
1404 (QWebPage::javaScriptPrompt):
1405 (QWebPage::shouldInterruptJavaScript):
1406 (QWebPage::createWindow):
1407 (QWebPage::extension):
1408 (QWebPage::chooseFile):
1409 (QWebPage::userAgentForUrl):
1412 (QWebView::~QWebView):
1414 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1416 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1418 Removes the check around the RenderHints property documentation
1419 that was clearly added to synchronize the source and header files
1420 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1423 The documentation has also been updated to ensure that Symbian
1424 users know that there is no actual RenderHints property on their
1429 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1431 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1433 Ensure that qdoc will always see the RenderHints property.
1435 The property was only defined in the header file if the Q_OS_SYMBIAN
1436 symbol was not defined, resulting in the property not showing up
1437 in the Qt documentation just because one platform doesn't support it.
1439 A follow up commit will improve the documentation for the property
1440 and note that it is not supported on the Symbiam platform.
1444 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1446 Reviewed by Tor Arne Vestbø.
1448 [Qt] Reintroduce QWebElementCollection
1450 Revert the patch that has replaced QWebElementCollection
1451 with QList<QWebElement>. Update the tests accordingly.
1453 Remove the constness of the return type of QWebElement operator[].
1455 https://bugs.webkit.org/show_bug.cgi?id=30767
1457 * Api/qwebelement.cpp:
1458 (QWebElement::findAll):
1459 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1460 (QWebElementCollectionPrivate::create):
1461 (QWebElementCollection::QWebElementCollection):
1462 (QWebElementCollection::operator=):
1463 (QWebElementCollection::~QWebElementCollection):
1464 (QWebElementCollection::operator+):
1465 (QWebElementCollection::append):
1466 (QWebElementCollection::count):
1467 (QWebElementCollection::at):
1468 (QWebElementCollection::toList):
1469 * Api/qwebelement.h:
1470 (const_iterator::begin):
1471 (const_iterator::end):
1472 (const_iterator::operator[]):
1473 * Api/qwebframe.cpp:
1474 (QWebFrame::findAllElements):
1476 * QtLauncher/main.cpp:
1477 (MainWindow::selectElements):
1478 * tests/qwebelement/tst_qwebelement.cpp:
1479 (tst_QWebElement::simpleCollection):
1480 (tst_QWebElement::iteration):
1481 (tst_QWebElement::emptyCollection):
1482 (tst_QWebElement::appendCollection):
1483 (tst_QWebElement::nullSelect):
1484 (tst_QWebElement::hasSetFocus):
1485 (tst_QWebElement::render):
1486 * tests/qwebpage/tst_qwebpage.cpp:
1487 (tst_QWebPage::inputMethods):
1489 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1491 Reviewed by Holger Freyther.
1493 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1494 https://bugs.webkit.org/show_bug.cgi?id=30476
1496 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1497 to all QtWebkit executables.
1499 * QGVLauncher/QGVLauncher.pro:
1500 * QtLauncher/QtLauncher.pro:
1501 * tests/benchmarks/loading/tst_loading.pro:
1502 * tests/benchmarks/painting/tst_painting.pro:
1503 * tests/qgraphicswebview/qgraphicswebview.pro:
1504 * tests/qwebelement/qwebelement.pro:
1505 * tests/qwebframe/qwebframe.pro:
1506 * tests/qwebhistory/qwebhistory.pro:
1507 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1508 * tests/qwebpage/qwebpage.pro:
1509 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1510 * tests/qwebview/qwebview.pro:
1512 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1514 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1515 Build fix following bug #30696.
1517 * Api/qwebelement.cpp:
1518 (setupScriptContext):
1519 * Api/qwebframe.cpp:
1520 (QWebFrame::evaluateJavaScript):
1522 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1524 Reviewed by Eric Seidel.
1526 [Qt] Enable track visited links in QWebPage
1527 https://bugs.webkit.org/show_bug.cgi?id=30574
1529 Test: fast/history/clicked-link-is-visited.html
1532 (QWebPagePrivate::QWebPagePrivate):
1534 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1536 Reviewed by Eric Seidel.
1538 [Qt] Add Print Shortcut to QtLauncher
1540 https://bugs.webkit.org/show_bug.cgi?id=30682
1542 * QtLauncher/main.cpp:
1543 (MainWindow::setupUI):
1545 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1547 Rubberstamped by Tor Arne Vestbø.
1549 Code standarlization for QGVLauncher.
1551 1) Made member initilization lists in constructors
1553 2) Made applyProxy method inline as all other methods in
1556 * QGVLauncher/main.cpp:
1558 (WebPage::applyProxy):
1559 (MainView::MainView):
1560 (MainWindow::MainWindow):
1563 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1565 Reviewed by Tor Arne Vestbø.
1567 Add a Y-Axis rotation to QGVLauncher.
1569 It uses the QStateMachine API from Qt 4.6.
1571 * QGVLauncher/main.cpp:
1573 (WebView::setYRotation):
1574 (WebView::yRotation):
1576 (MainView::animatedYFlip):
1577 (SharedScene::SharedScene):
1578 (SharedScene::webView):
1580 (MainWindow::animatedYFlip):
1581 (MainWindow::buildUI):
1583 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1585 Reviewed By Adam Barth.
1587 Add some actions to the menu for cursor debugging.
1589 GraphicsView based launcher only.
1591 * QGVLauncher/main.cpp:
1592 (MainView::setWaitCursor):
1593 (MainView::resetCursor):
1595 (MainWindow::setWaitCursor):
1596 (MainWindow::resetCursor):
1597 (MainWindow::buildUI):
1599 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1601 Rubberstamped by Adam Barth.
1603 Remove clipRenderToViewport as agreed upon in
1604 https://bugs.webkit.org/show_bug.cgi?id=29843
1606 * Api/qwebframe.cpp:
1608 * Api/qwebframe_p.h:
1609 (QWebFramePrivate::QWebFramePrivate):
1611 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1613 Reviewed by Adam Barth.
1615 Update the tests to test the new render functionality, and take
1616 into consideration that render() clips to the frame itself as well
1619 QWebFrame::render() now always clips, so the old tests were bogus.
1621 Rendering pure contents (no scrollbars etc) without clipping can now
1622 be accomplished using QWebFrame::documentElement()->render(...)
1624 * Api/qwebframe.cpp:
1626 * Api/qwebframe_p.h:
1627 (QWebFramePrivate::QWebFramePrivate):
1628 * tests/qwebframe/tst_qwebframe.cpp:
1630 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1632 Rubberstamped by Adam Barth.
1634 As we do not support rendering a QWebFrame without it being clipped
1635 the the frame as well as the viewport, we now set the viewport size
1636 to the size of the contents.
1638 Rendering pure contents (no scrollbars etc) without clipping can be
1639 acomplished using QWebFrame::documentElement()->render(...)
1641 * tests/qwebelement/tst_qwebelement.cpp:
1642 (tst_QWebElement::render):
1644 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1646 Reviewed by Tor Arne Vestbø.
1648 Add menu item to dump the plugin list to the console,
1649 which can be handy for debugging.
1651 * QtLauncher/main.cpp:
1652 (MainWindow::dumpPlugins):
1653 (MainWindow::setupUI):
1655 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1657 Reviewed by Tor Arne Vestbø.
1659 Introduce new render method on QWebFrame, which supports specifying
1660 which layers to render (scrollbars, contents, pan-icon).
1662 * Api/qwebframe.cpp:
1663 (QWebFramePrivate::renderPrivate):
1664 (QWebFrame::render):
1666 * Api/qwebframe_p.h:
1668 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1670 Reviewed by Ariya Hidayat.
1672 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1673 https://bugs.webkit.org/show_bug.cgi?id=30549
1675 Patch reimplements QGraphicsItem's itemChange method, and make
1676 CursorChange event to be emitted after cursor has already been
1679 QWidget::setCursor send the event just after it sets the cursor,
1680 then patch makes both behaviors compatible.
1682 * Api/qgraphicswebview.cpp:
1683 (QGraphicsWebView::itemChange):
1684 * Api/qgraphicswebview.h:
1686 2009-10-19 Nate Chapin <japhet@chromium.org>
1688 Unreviewed, build fix.
1690 Update call to FrameLoader::loadFrameRequest().
1693 (QWebPage::triggerAction):
1695 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1697 Reviewed by Ariya Hidayat.
1699 Add QWebElement::render API which allows rendering of single
1702 * Api/qwebelement.cpp:
1703 (QWebElement::render):
1704 * Api/qwebelement.h:
1705 * tests/qwebelement/tst_qwebelement.cpp:
1706 (tst_QWebElement::render):
1707 * tests/qwebelement/qwebelement.qrc:
1708 * tests/qwebelement/image.png: Added.
1710 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1712 Reviewed by Ariya Hidayat.
1714 QWebPage: Doc: setNetworkAccessManager should only be called once.
1718 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1720 Reviewed by Tor Arne.
1722 Wrong ifdef combination in QGraphicsWebView's event method.
1724 * Api/qgraphicswebview.cpp:
1725 (QGraphicsWebView::event):
1727 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1729 Reviewed by Holger Freyther.
1731 [Qt] Windowed Plugins: Don't crash when client is 0.
1733 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1734 In addition, setFrameRect()/updatePluginWidget() is called even if the
1735 plugin was not succesfully loaded. updatePluginWidget() updates the
1736 window rect which is, in theory, useful to draw something that indicates
1737 that we didn't load successfully.
1739 So, a status check is added to setNPWindowIfNeeded.
1741 https://bugs.webkit.org/show_bug.cgi?id=30380
1743 * tests/qwebpage/qwebpage.pro:
1744 * tests/qwebpage/tst_qwebpage.cpp:
1746 (tst_QWebPage::screenshot_data):
1747 (tst_QWebPage::screenshot):
1748 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1750 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1752 Reviewed by Holger Freyther.
1754 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1756 Fixes various sources of crashes:
1757 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1758 the PluginView is not notified about the deletion of PluginContainer.
1759 2. QWebView destructor does not set client to 0.
1760 3. Sometimes pending paint events are sent after the plugin has died, so add
1761 a check in PluginView::setNPWindowIfNeeded.
1763 https://bugs.webkit.org/show_bug.cgi?id=30354
1766 (QWebView::~QWebView):
1767 * tests/qwebview/qwebview.pro:
1768 * tests/qwebview/tst_qwebview.cpp:
1769 (tst_QWebView::reusePage_data):
1770 (tst_QWebView::reusePage):
1772 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1774 Reviewed by Adam Barth.
1776 https://bugs.webkit.org/show_bug.cgi?id=29042
1778 Allow one to costumize the minimal and maximal shrink factors,
1779 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1780 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1783 * Api/qwebsettings.cpp:
1784 (QWebSettingsPrivate::apply):
1785 (QWebSettings::QWebSettings):
1786 (QWebSettings::setPrintingMinimumShrinkFactor):
1787 (QWebSettings::printingMinimumShrinkFactor):
1788 (QWebSettings::setPrintingMaximumShrinkFactor):
1789 (QWebSettings::printingMaximumShrinkFactor):
1790 * Api/qwebsettings.h:
1792 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1794 Reviewed by Simon Hausmann.
1796 Rename fixedContentsSize property to preferredContentsSize as
1797 agreed upon with Simon Hausmann and Matthias Ettrich.
1800 (QWebPage::preferredContentsSize):
1801 (QWebPage::setPreferredContentsSize):
1803 * WebCoreSupport/FrameLoaderClientQt.cpp:
1804 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1806 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1808 Reviewed by Simon Hausmann.
1810 [Qt] QGLauncher leaks WebPage object
1811 https://bugs.webkit.org/show_bug.cgi?id=30465
1813 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1818 * QGVLauncher/main.cpp:
1819 (SharedScene::SharedScene):
1820 (SharedScene::~SharedScene):
1822 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1824 Reviewed by Simon Hausmann.
1826 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1827 https://bugs.webkit.org/show_bug.cgi?id=30459
1829 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1830 since QWebPageClient would do the trick.
1832 * Api/qgraphicswebview.cpp:
1833 (QGraphicsWebView::hoverMoveEvent):
1835 (QWebPagePrivate::mouseMoveEvent):
1836 (QWebPagePrivate::mousePressEvent):
1837 (QWebPagePrivate::mouseDoubleClickEvent):
1838 (QWebPagePrivate::mouseReleaseEvent):
1839 (QWebPagePrivate::wheelEvent):
1840 (QWebPagePrivate::dragEnterEvent):
1841 (QWebPagePrivate::dragLeaveEvent):
1842 (QWebPagePrivate::dragMoveEvent):
1844 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1846 Pull out r49676 as it caused build breakges on Symbian
1850 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1852 Reviewed by Tor Arne Vestbø.
1854 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1855 https://bugs.webkit.org/show_bug.cgi?id=30179
1857 Added "c" style static methods for the application to hook up for
1858 receiving notifications when a plugin is created or destroyed.
1862 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1864 Rubberstamped by Tor Arne.
1866 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1868 * QGVLauncher/main.cpp:
1871 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1873 Reviewed by Tor Arne.
1875 [Qt] QGLauncher crashes while closing a window
1876 https://bugs.webkit.org/show_bug.cgi?id=30385
1878 Set page's pageClient reference to '0' at QGWV deletion.
1880 * Api/qgraphicswebview.cpp:
1881 (QGraphicsWebView::~QGraphicsWebView):
1882 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1884 (WebPage::aborting):
1885 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1887 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1889 Reviewed by Simon Hausmann.
1891 [Qt] Make context menu to work in QGraphicsWebView
1892 https://bugs.webkit.org/show_bug.cgi?id=30336
1894 * Api/qgraphicswebview.cpp:
1895 (QGraphicsWebView::event):
1897 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1899 Reviewed by Simon Hausmann.
1901 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1903 This is a bug for two reasons:
1904 1. Everytime we use winId(), we end up creating a native widget. This causes an
1905 unnecessary copy of contents from the backing store to the native widget.
1906 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1909 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1910 (as opposed to QWidget::find(winId)).
1912 https://bugs.webkit.org/show_bug.cgi?id=30170
1914 * Api/qgraphicswebview.cpp:
1915 (QGraphicsWebViewPrivate::ownerWidget):
1917 (QWebViewPrivate::ownerWidget):
1919 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1921 Reviewed by Simon Hausmann.
1923 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1924 https://bugs.webkit.org/show_bug.cgi?id=30296
1926 * tests/qwebpage/tst_qwebpage.cpp:
1927 (ErrorPage::ErrorPage):
1928 (ErrorPage::supportsExtension):
1929 (ErrorPage::extension):
1930 (tst_QWebPage::errorPageExtension):
1932 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1934 Reviewed by Simon Hausmann.
1936 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1937 https://bugs.webkit.org/show_bug.cgi?id=30216
1939 QWebFrame::requestedUrl can be called at any time during the load
1942 * An error handling (whereas an alternate error page for unsuccessful
1944 * A ssl error exception call;
1945 * During navigation notifications/callbacks (titleChanged, urlChanged,
1946 progresses, addHistoryEntry, etc);
1949 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1950 m_loadError's failingURL when an error has occurred, unless it is
1953 Also, m_loadError is now being reset at each the main frame starts a
1954 load, in order to avoid previous load errors footprints.
1956 * Api/qwebframe.cpp:
1957 (QWebFrame::requestedUrl):
1958 * WebCoreSupport/FrameLoaderClientQt.cpp:
1959 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1961 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1963 Reviewed by Simon Hausmann.
1965 [Qt] Missing default value for the default text encoding.
1966 https://bugs.webkit.org/show_bug.cgi?id=30311
1968 QtWebKit has provided a default, hardcoded value for default charset but since
1969 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1970 value has had no effect.
1972 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1973 which is passing now.
1976 (QWebPagePrivate::QWebPagePrivate):
1977 * Api/qwebsettings.cpp:
1978 (QWebSettings::QWebSettings):
1979 * tests/qwebpage/tst_qwebpage.cpp:
1980 (tst_QWebPage::defaultTextEncoding):
1982 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1984 Reviewed by Simon Hausmann.
1986 Implement the new palette() methods on the page clients
1988 * Api/qgraphicswebview.cpp:
1989 (QGraphicsWebViewPrivate::palette):
1991 (QWebViewPrivate::palette):
1993 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1995 Reviewed by Simon Hausmann.
1997 QWebPage's createViewlessPlugin autotest crash fix.
1999 It is possible that plugins that are QWidgets or QGraphicsWidgets
2000 are created before a view has been assigned to a QWebPage. The
2001 plug-ins won't be fully functional, as by design, they should
2002 visualise something, but they won't crash and will stay in memory.
2004 An autotest that covers this use-case, is included.
2006 https://bugs.webkit.org/show_bug.cgi?id=30118
2008 * WebCoreSupport/FrameLoaderClientQt.cpp:
2009 (WebCore::FrameLoaderClientQt::createPlugin):
2010 * tests/qwebpage/tst_qwebpage.cpp:
2011 (PluginTrackedPageWidget::PluginTrackedPageWidget):
2012 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
2013 (PluginTrackedPageGraphicsWidget::createPlugin):
2014 (tst_QWebPage::destroyPlugin):
2015 (tst_QWebPage::createViewlessPlugin):
2017 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
2019 Reviewed by Simon Hausmann.
2021 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
2022 setInputMethodState. This change is needed so widgets such as the s60 software
2023 input panel can receive input method events for password fields.
2024 It's up to the Qt platform to determine which widget will receive input method
2025 events when these flags are set.
2026 Also added implementation for setInputMethodEnabled and setInputMethodHint
2027 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
2028 dependency on QWebView and uses QWebPageClient.
2029 Added autotest to tst_qwebpage.cpp
2030 https://bugs.webkit.org/show_bug.cgi?id=30023
2032 * Api/qgraphicswebview.cpp:
2033 (QGraphicsWebViewPrivate::setInputMethodEnabled):
2034 (QGraphicsWebViewPrivate::setInputMethodHint):
2036 (QWebViewPrivate::setInputMethodEnabled):
2037 (QWebViewPrivate::setInputMethodHint):
2038 * WebCoreSupport/EditorClientQt.cpp:
2039 (WebCore::EditorClientQt::setInputMethodState):
2040 * tests/qwebpage/tst_qwebpage.cpp:
2041 (tst_QWebPage::inputMethods):
2043 2009-10-08 Adam Barth <abarth@webkit.org>
2045 Reviewed by Eric Seidel.
2047 Move executeScript from FrameLoader to ScriptController
2048 https://bugs.webkit.org/show_bug.cgi?id=30200
2052 * Api/qwebframe.cpp:
2053 (QWebFrame::evaluateJavaScript):
2055 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2057 Reviewed by Simon Hausmann.
2059 Part of testOptionalJSObjects autotest was marked as "expect to fail".
2061 Two places in tst_QWebPage::testOptionalJSObjects were marked as
2062 expected to fail. The problem concern checking if a feature is enabled
2063 or disabled. According to discussion on webkit dev mailing list
2064 a disabled feature should be invisible from java script level, but
2065 there are exceptions from the rule. So we decided to disable the test
2068 https://bugs.webkit.org/show_bug.cgi?id=29867
2070 * tests/qwebpage/tst_qwebpage.cpp:
2071 (tst_QWebPage::testOptionalJSObjects):
2073 2009-10-07 Adam Barth <abarth@webkit.org>
2075 Reviewed by Darin Adler.
2077 Factor PolicyChecker out of FrameLoader
2078 https://bugs.webkit.org/show_bug.cgi?id=30155
2080 Move the policy callback to the policy object.
2082 * WebCoreSupport/FrameLoaderClientQt.cpp:
2083 (WebCore::FrameLoaderClientQt::callPolicyFunction):
2085 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
2087 Reviewed by Simon Hausmann.
2089 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
2090 https://bugs.webkit.org/show_bug.cgi?id=30166
2092 * Api/qgraphicswebview.cpp:
2093 (QGraphicsWebViewPrivate::_q_doLoadFinished):
2094 * Api/qgraphicswebview.h:
2095 * QGVLauncher/main.cpp:
2097 (MainWindow::loadFinished):
2099 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
2101 Reviewed by Simon Hausmann.
2103 Add a simple rotation effect to QGVLauncher
2105 https://bugs.webkit.org/show_bug.cgi?id=30162
2107 * QGVLauncher/main.cpp:
2108 (MainView::animatedFlip):
2109 (MainWindow::animatedFlip):
2110 (MainWindow::buildUI):
2112 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2114 Reviewed by Simon Hausmann.
2116 Doc: Document HTML and status as properties.
2118 * Api/qgraphicswebview.cpp:
2120 2009-10-07 Martin Smith <msmith@trolltech.com>
2122 Reviewed by Simon Hausmann.
2124 Fix qdoc warning about disabled renderHints property
2130 2009-10-06 Adam Barth <abarth@webkit.org>
2132 Reviewed by Eric Seidel.
2134 Move setLocalLoadPolicy and friends to SecurityOrigin
2135 https://bugs.webkit.org/show_bug.cgi?id=30110
2140 (QWebPagePrivate::QWebPagePrivate):
2142 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
2144 Reviewed by Ariya Hidayat.
2146 When the drag data contains an image set it on the QDrag so it will be visible to the user.
2148 * WebCoreSupport/DragClientQt.cpp:
2149 (WebCore::DragClientQt::startDrag):
2151 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2153 Reviewed by Timothy Hatcher.
2155 Web Inspector: close inspector client view on
2156 InspectorController::close API call.
2158 In order to run batch web inspector layout tests (and not affect
2159 subsequent tests) we should close inspector client's view upon
2160 InspectorController::close API call.
2162 https://bugs.webkit.org/show_bug.cgi?id=30009
2164 * WebCoreSupport/InspectorClientQt.cpp:
2165 (WebCore::InspectorClientQt::createPage):
2167 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
2169 Reviewed by Simon Hausmann.
2171 [Qt] don't enable input methods on Symbian by default.
2172 https://bugs.webkit.org/show_bug.cgi?id=30117
2174 If input methods are enabled Symbian FEP will be launched on every
2175 pointer event making webpage navigation impossible with QWebView.
2178 (QWebView::QWebView):
2180 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
2182 Reviewed by Simon Hausmann.
2184 QtLauncher: print the number of loaded urls
2186 When using the -r mode print the number of URLs loaded so far. This
2187 is extremly useful when opening the same URL over and over again and
2188 one wants to see the progress.
2190 * QtLauncher/main.cpp:
2191 (URLLoader::URLLoader):
2192 (URLLoader::loadNext):
2194 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2196 Reviewed by Simon Hausmann.
2198 Add screenshot option to menubar
2200 https://bugs.webkit.org/show_bug.cgi?id=30067
2202 * QtLauncher/main.cpp:
2203 (MainWindow::screenshot):
2204 (MainWindow::setupUI):
2206 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2208 Reviewed by Simon Hausmann.
2210 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
2212 https://bugs.webkit.org/show_bug.cgi?id=30068
2214 * QtLauncher/main.cpp:
2215 (MainWindow::MainWindow):
2217 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2219 Rubberstamped by Simon Hausmann.
2221 Add documentation to the ErrorPageExtension.
2225 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
2227 Reviewed by Simon Hausmann.
2229 [Qt] Inform the application when a new request is created
2230 https://bugs.webkit.org/show_bug.cgi?id=29975
2232 Add a signal to QWebPage, to inform the application when a request is created.
2236 * tests/qwebpage/tst_qwebpage.cpp:
2237 (tst_QWebPage::loadFinished):
2239 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2241 Reviewed by Simon Hausmann.
2243 ErrorPageExtension: Add a pointer to the QWebFrame that had
2247 * WebCoreSupport/FrameLoaderClientQt.cpp:
2248 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2250 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2252 Reviewed by Tor Arne Vestbø.
2254 Do not empty the offline web appcache when clearing
2255 memory caches. That one is not in memory, but stored
2258 * Api/qwebsettings.cpp:
2259 (QWebSettings::clearMemoryCaches):
2261 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
2263 Reviewed by Simon Hausmann.
2265 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
2267 https://bugs.webkit.org/show_bug.cgi?id=29710
2269 * Api/qgraphicswebview.cpp:
2270 (QGraphicsWebViewPrivate::pluginParent):
2272 (QWebViewPrivate::pluginParent):
2273 * WebCoreSupport/FrameLoaderClientQt.cpp:
2275 (WebCore::FrameLoaderClientQt::createPlugin):
2277 2009-10-03 Adam Barth <abarth@webkit.org>
2279 Unreview build fix. I wish I had a try server...
2282 (QWebPagePrivate::updateAction):
2284 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
2286 Reviewed by Simon Hausmann.
2288 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2289 Otherwise, it is inconsistent with class declaration of QCursor.
2291 * Api/qgraphicswebview.cpp:
2294 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
2296 Reviewed by Simon Hausmann.
2298 Fix compiler warnings about unused function arguments.
2300 * Api/qwebframe.cpp:
2301 (QWebFrame::scrollBarMinimum):
2303 (QWebPagePrivate::focusInEvent):
2304 (QWebPagePrivate::focusOutEvent):
2305 (QWebPagePrivate::leaveEvent):
2306 (QWebPage::javaScriptAlert):
2307 (QWebPage::javaScriptConfirm):
2308 (QWebPage::javaScriptPrompt):
2309 (QWebPage::triggerAction):
2310 (QWebPage::acceptNavigationRequest):
2311 (QWebPage::chooseFile):
2312 * WebCoreSupport/ChromeClientQt.cpp:
2313 (WebCore::ChromeClientQt::repaint):
2314 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2315 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2316 * WebCoreSupport/ContextMenuClientQt.cpp:
2317 (WebCore::ContextMenuClientQt::downloadURL):
2318 * WebCoreSupport/FrameLoaderClientQt.cpp:
2319 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2320 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2321 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2322 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2323 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2324 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2325 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2326 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2327 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2328 * WebCoreSupport/InspectorClientQt.cpp:
2329 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2330 (WebCore::InspectorClientQt::highlight):
2331 (WebCore::InspectorClientQt::removeSetting):
2333 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2335 Reviewed by Tor Arne Vestbø.
2337 Make Software Input Panel requests work with QGraphicsWebView
2338 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2341 (QWebPagePrivate::mouseReleaseEvent):
2342 (QWebPagePrivate::handleSoftwareInputPanel):
2345 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2347 Reviewed by Tor Arne Vestbø.
2349 Rename QWebGraphicsItem to QGraphicsWebView
2353 * Api/qwebgraphicsitem.cpp: Renamed.
2354 * Api/qwebgraphicsitem.h: Renamed.
2355 * WebKit/qt/QGVLauncher/main.cpp:
2357 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2358 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2360 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2362 Reviewed by Simon Hausmann.
2364 https://bugs.webkit.org/show_bug.cgi?id=29248
2365 [Qt] [API] Make it possible to have 'invisible' loads
2367 Make QWebFrame's setHtml and setContent methods to not change
2368 session and global history at all.
2370 * Api/qwebframe.cpp:
2371 (QWebFrame::setHtml):
2372 (QWebFrame::setContent):
2373 * tests/qwebframe/qwebframe.pro:
2374 * tests/qwebframe/tst_qwebframe.cpp:
2376 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2378 Reviewed by Simon Hausmann.
2380 Fixed software input panel support on web input elements.
2382 Send the RequestSoftwareInputPanel event if the element supports focus
2383 and the element is clicked.
2386 (QWebPagePrivate::QWebPagePrivate):
2387 (QWebPagePrivate::mousePressEvent):
2388 (QWebPagePrivate::mouseReleaseEvent):
2391 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2393 Reviewed by Simon Hausmann.
2395 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2397 https://bugs.webkit.org/show_bug.cgi?id=29681
2399 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2401 * Fixed surrounding text to exclude preedit string
2402 * Avoid emission of microFocusChanged during setComposition()
2405 (QWebPagePrivate::inputMethodEvent):
2406 (QWebPage::inputMethodQuery):
2407 * WebCoreSupport/EditorClientQt.cpp:
2408 (WebCore::EditorClientQt::respondToChangedSelection):
2409 * tests/qwebpage/tst_qwebpage.cpp:
2410 (tst_QWebPage::inputMethods):
2412 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2414 Reviewed by David Hyatt.
2416 Add the failed URL to the ErrorPageExtension, as it is quite
2417 useful for creating error pages.
2420 * WebCoreSupport/FrameLoaderClientQt.cpp:
2421 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2423 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2425 Reviewed by Tor Arne Vestbø.
2427 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2428 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2430 * Api/qwebsettings.cpp:
2431 (QWebSettings::QWebSettings):
2433 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2435 Reviewed by Simon Hausmann.
2437 https://bugs.webkit.org/show_bug.cgi?id=29844
2439 QWebPage dependency autotest fix.
2441 Fix for database() autotest. All opened databases should be removed at
2444 * tests/qwebpage/tst_qwebpage.cpp:
2445 (tst_QWebPage::database):
2447 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2449 Reviewed by Simon Hausmann.
2451 Some QWebHistory and QWebPage autotest crash fixes.
2453 Some checking for m_mainFrame were added. MainFrame should be created
2454 at some point of QWebPage live cicle.
2456 https://bugs.webkit.org/show_bug.cgi?id=29803
2459 (QWebPage::~QWebPage):
2460 (QWebPage::currentFrame):
2461 (QWebPage::history):
2462 (QWebPage::selectedText):
2463 (QWebPage::updatePositionDependentActions):
2464 * tests/qwebpage/tst_qwebpage.cpp:
2465 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2467 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2469 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2471 Implement QWebPage Extension for error pages, incl.
2472 an example on how to use it in QtLauncher.
2474 Correct our use of ResourceError.
2477 (ExtensionOption::):
2478 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2479 * QtLauncher/main.cpp:
2480 (WebPage::supportsExtension):
2481 (MainWindow::MainWindow):
2482 (MainWindow::selectElements):
2483 (WebPage::extension):
2484 * WebCoreSupport/FrameLoaderClientQt.cpp:
2485 (WebCore::FrameLoaderClientQt::cancelledError):
2486 (WebCore::FrameLoaderClientQt::blockedError):
2487 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2488 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2489 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2490 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2491 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2492 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2493 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2494 * WebCoreSupport/FrameLoaderClientQt.h:
2496 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2498 Reviewed by Simon Hausmann.
2500 Compile fix with namespaced Qt.
2502 * Api/qwebinspector_p.h:
2504 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2506 Reviewed by Simon Hausmann.
2508 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2509 clients that want to check/set the focus node of the document.
2510 https://bugs.webkit.org/show_bug.cgi?id=29682
2512 * Api/qwebelement.cpp:
2513 (QWebElement::hasFocus):
2514 (QWebElement::setFocus):
2515 * Api/qwebelement.h:
2516 * tests/qwebelement/tst_qwebelement.cpp:
2517 (tst_QWebElement::hasSetFocus):
2519 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2521 Reviewed by Simon Hausmann.
2523 [Qt] Make tst_qwebframe work if Qt built without SSL support
2524 https://bugs.webkit.org/show_bug.cgi?id=29735
2526 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2528 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2530 Reviewed by Simon Hausmann.
2532 [Qt] Update QWebElement API to remove script related methods.
2533 QWebElement::evaluateScript is the only one kept, these are
2534 removed to postpone most of the QtWebKit<->JavaScript API design
2536 https://bugs.webkit.org/show_bug.cgi?id=29708
2538 * Api/qwebelement.cpp:
2539 * Api/qwebelement.h:
2541 - QWebElement::callFunction
2542 - QWebElement::functions
2543 - QWebElement::scriptableProperty
2544 - QWebElement::setScriptableProperty
2545 - QWebElement::scriptableProperties
2546 * tests/qwebelement/tst_qwebelement.cpp:
2547 (tst_QWebElement::evaluateScript):
2549 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2551 Reviewed by Simon Hausmann.
2553 [Qt] Rename QWebElement::evaluateScript
2554 to QWebElement::evaluateJavaScript.
2555 https://bugs.webkit.org/show_bug.cgi?id=29709
2557 * Api/qwebelement.cpp:
2558 (QWebElement::evaluateJavaScript):
2559 * Api/qwebelement.h:
2560 * tests/qwebelement/tst_qwebelement.cpp:
2561 (tst_QWebElement::evaluateJavaScript):
2563 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2565 Reviewed by Simon Hausmann.
2567 [Qt] Update the stypeProperty API of QWebElement.
2568 https://bugs.webkit.org/show_bug.cgi?id=29711
2570 * Api/qwebelement.cpp:
2571 (QWebElement::styleProperty):
2572 - Merge the stypeProperty and the computedStyleProperty methods
2573 - Remove the default value for the style resolving enum
2574 - Rename ResolveRule to StyleResolveStrategy
2575 (QWebElement::setStyleProperty):
2576 - Remove the priority argument since it is possible to control the
2577 behaviour by adding !important or removing in the value.
2578 * Api/qwebelement.h:
2579 * tests/qwebelement/tst_qwebelement.cpp:
2580 (tst_QWebElement::style):
2581 (tst_QWebElement::computedStyle):
2582 * tests/qwebframe/tst_qwebframe.cpp:
2584 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2586 Reviewed by Alice Liu.
2589 (QWebPagePrivate::QWebPagePrivate):
2590 Pass 0 for new Page constructor argument.
2592 2009-09-24 Martin Smith <msmith@trolltech.com>
2594 Reviewed by Simon Hausmann.
2596 qdoc: Added \brief texts to all the since 4.6 functions.
2598 * Api/qwebhistory.cpp:
2600 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2602 Reviewed by Simon Hausmann.
2604 Prevent QWebPage::setView() from changing the viewport size on the fly
2605 in case the view doesn't actually change. QWebPage::setView() is
2606 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2607 the viewport size to be equal to the size of the whole graphics view.
2609 https://bugs.webkit.org/show_bug.cgi?id=29676
2612 (QWebPage::setView):
2614 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2616 Reviewed by Simon Hausmann.
2618 [Qt] Crash fix in QWebHistory back and forward methods.
2620 QWebHistory::back() and QWebHistory::forward() were crashing on
2621 ASSERT in WebCore::BackForwardList. The methods should check
2622 canGoBack() and canGoForward() at the beginning.
2624 https://bugs.webkit.org/show_bug.cgi?id=29675
2626 * Api/qwebhistory.cpp:
2627 (QWebHistory::back):
2628 (QWebHistory::forward):
2630 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2632 Reviewed by Simon Hausmann.
2634 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2636 In QWebHistory's methods that change item count or current item call
2637 to QWebPage::updateNavigationActions should be executed.
2638 QWebHistory::clear() and QWebHistory::restorState() were changed.
2639 New helper method, QWebPagePrivate accesor, were created in
2640 QWebHistoryPrivate class.
2641 Two autotest were developed.
2643 https://bugs.webkit.org/show_bug.cgi?id=29246
2645 * Api/qwebhistory.cpp:
2646 (QWebHistory::clear):
2647 (QWebHistory::restoreState):
2648 (QWebHistoryPrivate::page):
2649 * Api/qwebhistory_p.h:
2650 * tests/qwebhistory/tst_qwebhistory.cpp:
2651 (tst_QWebHistory::saveAndRestore_1):
2652 (tst_QWebHistory::clear):
2654 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2656 Reviewed by Tor Arne Vestbø.
2658 Need to guard QX11Info include with Q_WS_X11.
2659 That class may not be available (in QT 4.5 for Symbian, for instance).
2660 Completes fixes in r48627 and r48604.
2662 * Api/qwebgraphicsitem.cpp:
2665 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2667 Reviewed by Simon Hausmann.
2669 [Qt] Add default timeout while waiting for signals in QWebPage auto
2671 https://bugs.webkit.org/show_bug.cgi?id=29637
2673 * tests/qwebpage/tst_qwebpage.cpp:
2676 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2678 Reivewed by Simon Hausmann.
2680 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2682 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2683 takes a QWidget*, not a QWebPageClient*
2685 * Api/qwebgraphicsitem.cpp:
2686 (QWebGraphicsItemPrivate::screenNumber):
2688 (QWebViewPrivate::screenNumber):
2690 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2692 Reviewed by Simon Hausmann.
2694 For Qt, platformPageClient() will now return a class derived from
2695 the QWebPageClient, so the patch adapts our Qt hooks to go though
2696 this class and not depend on the QWebView.
2698 * Api/qwebgraphicsitem.cpp:
2699 (QWebGraphicsItemPrivate::scroll):
2700 (QWebGraphicsItemPrivate::update):
2701 (QWebGraphicsItemPrivate::cursor):
2702 (QWebGraphicsItemPrivate::updateCursor):
2703 (QWebGraphicsItemPrivate::screenNumber):
2704 (QWebGraphicsItemPrivate::winId):
2705 (QWebGraphicsItem::event):
2706 (QWebGraphicsItem::setPage):
2707 * Api/qwebgraphicsitem.h:
2709 (QWebPagePrivate::QWebPagePrivate):
2712 (QWebViewPrivate::scroll):
2713 (QWebViewPrivate::update):
2714 (QWebViewPrivate::cursor):
2715 (QWebViewPrivate::updateCursor):
2716 (QWebViewPrivate::screenNumber):
2717 (QWebViewPrivate::winId):
2718 (QWebView::setPage):
2720 * WebCoreSupport/ChromeClientQt.cpp:
2721 (WebCore::ChromeClientQt::repaint):
2722 (WebCore::ChromeClientQt::scroll):
2723 (WebCore::ChromeClientQt::platformPageClient):
2725 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2727 Reviewed by Simon Hausmann.
2729 https://bugs.webkit.org/show_bug.cgi?id=29609
2730 Build fix for windows when using Qt 4.5.0.
2733 (QWebPage::userAgentForUrl):
2735 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2737 Reviewed by Simon Hausmann.
2739 https://bugs.webkit.org/show_bug.cgi?id=29345
2740 The tests of QWebFrame did not use QTRY_VERIFY for
2741 tests involving the event loop.
2743 * tests/qwebframe/tst_qwebframe.cpp:
2744 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2746 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2748 Reviewed by Simon Hausmann.
2750 [Qt] Add an autotest stub for QWebGraphicsItem.
2752 It just calls all the functions and makes sure they don't crash.
2754 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2755 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2756 (tst_QWebGraphicsItem::qwebgraphicsitem):
2759 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2761 Reviewed by Eric Seidel.
2763 Corrected the Symbian specific UID3 values to be assigned
2764 from the "unprotected" pool that permits self-signing of
2765 those test and demo executables. (Added new UID3 values
2766 where they were missing for new components.)
2768 * QGVLauncher/QGVLauncher.pro:
2769 * QtLauncher/QtLauncher.pro:
2770 * tests/benchmarks/loading/tst_loading.pro:
2771 * tests/benchmarks/painting/tst_painting.pro:
2772 * tests/qwebelement/qwebelement.pro:
2773 * tests/qwebframe/qwebframe.pro:
2774 * tests/qwebhistory/qwebhistory.pro:
2775 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2776 * tests/qwebpage/qwebpage.pro:
2777 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2778 * tests/qwebview/qwebview.pro:
2780 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2782 Reviewed by Simon Hausmann.
2784 Make PlatformWindow return something else than PlatformWidget
2785 https://bugs.webkit.org/show_bug.cgi?id=29085
2787 Reflect the rename of platformWindow and it's return type.
2789 * WebCoreSupport/ChromeClientQt.cpp:
2790 (WebCore::ChromeClientQt::platformPageClient):
2791 * WebCoreSupport/ChromeClientQt.h:
2793 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2795 Reviewed by Simon Hausmann.
2797 [Qt] Add persistence support for configuration options in the
2800 * Api/qwebinspector.cpp:
2801 * QtLauncher/main.cpp:
2803 * WebCoreSupport/InspectorClientQt.cpp:
2804 (WebCore::InspectorClientQt::populateSetting):
2805 (WebCore::InspectorClientQt::storeSetting):
2806 (WebCore::variantToSetting):
2807 (WebCore::settingToVariant):
2809 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2811 Reviewed by Ariya Hidayat.
2813 Fixed a bunch of documentation warnings.
2815 * Api/qwebgraphicsitem.cpp:
2816 * Api/qwebplugindatabase.cpp:
2817 * Api/qwebpluginfactory.cpp:
2818 * Api/qwebsecurityorigin.cpp:
2820 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2822 Reviewed by Simon Hausmann.
2824 Added a test that console output works.
2826 * tests/qwebpage/tst_qwebpage.cpp:
2827 (ConsolePage::ConsolePage):
2828 (ConsolePage::javaScriptConsoleMessage):
2829 (tst_QWebPage::consoleOutput):
2831 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2833 Reviewed by Simon Hausmann.
2835 Improve documentation for Page Cache.
2837 * Api/qwebsettings.cpp:
2839 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2841 Reviewed by Simon Hausmann.
2843 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2845 https://bugs.webkit.org/show_bug.cgi?id=29081
2847 The documentation now specifies that the URL has to be a local file
2848 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2849 only two schemes that the current code path accepts.
2851 The auto-test has been updated to reflect this limitation.
2853 At a later point we should concider adding API for the new way of
2854 doing both user defined stylesheets and scripts.
2856 * Api/qwebsettings.cpp:
2857 * tests/qwebpage/tst_qwebpage.cpp:
2859 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2861 Reviewed by Simon Hausmann.
2865 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2868 QMake is not being able to distinguish between release and debug builds
2869 in Symbian build. This is a Symbian toolchain issue.
2872 (QWebPagePrivate::_q_cleanupLeakMessages):
2876 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2878 Reviewed by Simon Hausmann.
2880 Small cosmetic documentation fixlet in the QWebInspector.
2882 * Api/qwebinspector.cpp:
2884 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2886 Reviewed by Eric Seidel.
2888 Detect and add Windows7 properly to the user agent.
2891 (QWebPage::userAgentForUrl):
2893 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2895 Rubberstamped by Kenneth Christiansen.
2897 [Qt] Build fix for previous changes.
2899 * QGVLauncher/main.cpp:
2902 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2904 Unreviewed potential Qt < 4.6 build fix.
2906 * QGVLauncher/main.cpp:
2909 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2911 Reviewed by Simon Hausmann.
2913 Add a "Flip effect" to our GraphicsView based launcher.
2915 * QGVLauncher/main.cpp:
2916 (MainView::resizeEvent):
2919 (MainWindow::buildUI):
2921 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2923 Rubber-stamped by Simon Hausmann.
2925 [Qt] Typo fix. Pass the window object to the Format
2926 menu. In this way Qt can free its internal graphical
2927 objects during exit.
2929 * QtLauncher/main.cpp:
2930 (MainWindow::setupUI):
2932 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2934 Reviewed by Tor Arne Vestbø.
2936 [Qt] Build break fix on gcc ARM.
2938 * Api/qwebgraphicsitem.cpp:
2939 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2941 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2943 Reviewed by Simon Hausmann.
2945 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2946 when the focused frame is null. We do the same check in other places
2947 where we call kit().
2949 * Api/qwebframe.cpp:
2950 (QWebFrame::hasFocus):
2952 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2954 Reviewed by Simon Hausmann.
2956 Fixed a typo found during translation.
2958 * WebCoreSupport/FrameLoaderClientQt.cpp:
2959 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2961 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2963 Reviewed by Simon Hausmann.
2965 [Qt] QWebGraphicsItem should check for null QWebPage.
2966 https://bugs.webkit.org/show_bug.cgi?id=29185
2968 Don't crash in QWebGraphicsItem when the page is still null, by
2969 either checking if it's the case or constructing the default one.
2971 * Api/qwebgraphicsitem.cpp:
2972 (QWebGraphicsItem::icon):
2973 (QWebGraphicsItem::setZoomFactor):
2974 (QWebGraphicsItem::zoomFactor):
2975 (QWebGraphicsItem::setGeometry):
2976 (QWebGraphicsItem::load):
2977 (QWebGraphicsItem::setHtml):
2978 (QWebGraphicsItem::toHtml):
2979 (QWebGraphicsItem::setContent):
2980 (QWebGraphicsItem::history):
2981 (QWebGraphicsItem::settings):
2983 2009-09-11 David Boddie <dboddie@trolltech.com>
2985 Reviewed by Simon Hausmann.
2987 Doc: Note that Netscape plugins are only available on desktop platforms.
2989 * docs/qtwebkit.qdoc:
2991 2009-09-11 Martin Smith <msmith@trolltech.com>
2993 Reviewed by Simon Hausmann.
2995 Adjust the name of the contentspage for the documentation
2996 to the new name used in Qt 4.6.
2998 * docs/qtwebkit.qdoc:
3000 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
3002 Reviewed by Simon Hausmann.
3004 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
3007 * Api/qwebpluginfactory.cpp:
3008 * docs/webkitsnippets/simple/main.cpp:
3010 * docs/webkitsnippets/webpage/main.cpp:
3013 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3015 Reviewed by Simon Hausmann.
3017 Restructure the documentation, both on a file and on a content level.
3019 * Api/qwebdatabase.cpp:
3020 * Api/qwebelement.cpp:
3021 * Api/qwebframe.cpp:
3022 * Api/qwebhistory.cpp:
3023 * Api/qwebhistoryinterface.cpp:
3025 * Api/qwebpluginfactory.cpp:
3026 * Api/qwebsecurityorigin.cpp:
3027 * Api/qwebsettings.cpp:
3029 * docs/qtwebkit.qdoc:
3031 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
3033 Reviewed by Simon Hausmann.
3035 https://bugs.webkit.org/show_bug.cgi?id=29136
3036 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
3038 emit microFocusChange() signal regardless of view.
3040 * WebCoreSupport/EditorClientQt.cpp:
3041 (WebCore::EditorClientQt::setInputMethodState):
3043 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3045 Reviewed by Simon Hausmann.
3047 https://bugs.webkit.org/show_bug.cgi?id=28806
3049 [Qt] Make the WebInspector available as a QWidget.
3052 * Api/qwebelement.cpp:
3053 (QWebElement::enclosingElement):
3054 * Api/qwebelement.h:
3055 * Api/qwebinspector.cpp: Added.
3056 * Api/qwebinspector.h: Added.
3057 * Api/qwebinspector_p.h: Added.
3059 (QWebPagePrivate::QWebPagePrivate):
3060 (QWebPagePrivate::setInspector):
3061 (QWebPagePrivate::getOrCreateInspector):
3062 (QWebPagePrivate::inspectorController):
3063 (QWebPage::~QWebPage):
3064 (QWebPage::triggerAction):
3067 * Api/qwebsettings.cpp:
3068 * QtLauncher/main.cpp:
3069 (MainWindow::MainWindow):
3070 * WebCoreSupport/InspectorClientQt.cpp:
3071 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3072 (WebCore::InspectorClientWebPage::createWindow):
3073 (WebCore::InspectorClientQt::createPage):
3074 (WebCore::InspectorClientQt::showWindow):
3075 (WebCore::InspectorClientQt::closeWindow):
3076 (WebCore::InspectorClientQt::attachWindow):
3077 (WebCore::InspectorClientQt::detachWindow):
3078 (WebCore::InspectorClientQt::updateWindowTitle):
3079 * WebCoreSupport/InspectorClientQt.h:
3080 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
3082 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3084 Reviewed by Eric Seidel.
3086 [Qt] Fix comparison between signed and unsigned integer warnings
3087 https://bugs.webkit.org/show_bug.cgi?id=29162
3089 No functional change.
3091 * Api/qwebelement.cpp:
3092 (QWebElement::findAll):
3093 * Api/qwebhistory.cpp:
3094 (QWebHistory::items):
3095 (QWebHistory::backItems):
3096 (QWebHistory::forwardItems):
3097 (QWebHistory::saveState):
3098 * Api/qwebplugindatabase.cpp:
3099 (QWebPluginDatabase::setSearchPaths):
3100 * WebCoreSupport/ChromeClientQt.cpp:
3101 (WebCore::ChromeClientQt::runOpenPanel):
3102 * WebCoreSupport/FrameLoaderClientQt.cpp:
3103 (WebCore::FrameLoaderClientQt::createPlugin):
3105 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3107 Rubber-stamped by Ariya Hidayat.
3109 Fix a bunch of qdoc warnings: Invalid references, non-standard
3112 * Api/qwebelement.cpp:
3113 * Api/qwebgraphicsitem.cpp:
3114 * Api/qwebsecurityorigin.cpp:
3116 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3118 Reviewed by Ariya Hidayat.
3120 Fix context menu event delivery with QWebGraphicsItem.
3122 Re-implement the correct context menu virtual function using
3123 a QGraphicsSceneContextMenuEvent and forward & handle it in
3126 * Api/qwebgraphicsitem.cpp:
3127 (QWebGraphicsItem::contextMenuEvent):
3128 * Api/qwebgraphicsitem.h:
3130 (QWebPagePrivate::contextMenuEvent):
3134 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3138 Build fix for QtWebKit for Mac after r48219.
3140 qevent and qstyleoption are QtGui interfaces.
3142 * Api/qwebgraphicsitem.cpp:
3143 * Api/qwebgraphicsitem.h:
3145 2009-09-09 Simon Hausmann <hausmann@webkit.org>
3147 Reviewed by Tor Arne Vestbø.
3149 Call the right base class function QGraphicsWidget::event() instead
3150 of skipping it and using QObject::event() instead.
3152 * Api/qwebgraphicsitem.cpp:
3153 (QWebGraphicsItem::event):
3155 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3159 Fix comment at Tor Arne Vestbø's request.
3161 * Api/qwebgraphicsitem.cpp:
3162 (QWebGraphicsItem::sceneEvent):
3163 (QWebGraphicsItem::event):
3165 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3167 Reviewed by Tor Arne Vestbø.
3169 Implement some virtual event methods so that we can fix
3170 event-related bugs in Qt patch releases.
3172 * Api/qwebgraphicsitem.cpp:
3173 (QWebGraphicsItem::sceneEvent):
3174 (QWebGraphicsItem::event):
3175 * Api/qwebgraphicsitem.h:
3177 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
3179 Reviewed by Simon Hausmann.
3181 Add a new QGraphicsWidget based version of the "QWebView"
3182 under the name "QWebGraphicsItem".
3184 https://bugs.webkit.org/show_bug.cgi?id=28862
3186 Includes an alternative Qt launcher using the QGraphicsView.
3189 * Api/qwebgraphicsitem.cpp: Added.
3190 * Api/qwebgraphicsitem.h: Added.
3192 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
3193 * QGVLauncher/main.cpp: Added.
3194 * WebCoreSupport/ChromeClientQt.cpp:
3195 (WebCore::ChromeClientQt::repaint):
3196 (WebCore::ChromeClientQt::scroll):
3198 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3200 Unreviewed build fix.
3202 Potential build fix for Qt 4.5
3205 (QWebPagePrivate::mousePressEvent):
3207 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
3209 Reviewed by Simon Hausmann.
3211 https://bugs.webkit.org/show_bug.cgi?id=29007
3212 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
3214 * tests/qwebframe/tst_qwebframe.cpp:
3216 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3218 Reviewed by Simon Hausmann.
3220 [Qt] Fix unused variable warnings
3221 https://bugs.webkit.org/show_bug.cgi?id=29018
3224 (QWebPagePrivate::keyPressEvent):
3225 * WebCoreSupport/FrameLoaderClientQt.cpp:
3226 (WebCore::FrameLoaderClientQt::startDownload):
3227 (WebCore::FrameLoaderClientQt::createFrame):
3229 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3231 Reviewed by Ariya Hidayat.
3233 [Qt] Use the declaration order in initializer lists
3234 https://bugs.webkit.org/show_bug.cgi?id=29017
3236 * Api/qwebframe_p.h:
3238 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3240 Reviewed by Simon Hausmann.
3242 Add support for handling QGraphicsScene events.
3245 (QWebPagePrivate::mouseMoveEvent):
3246 (QWebPagePrivate::mousePressEvent):
3247 (QWebPagePrivate::mouseDoubleClickEvent):
3248 (QWebPagePrivate::mouseTripleClickEvent):
3249 (QWebPagePrivate::handleClipboard):
3250 (QWebPagePrivate::mouseReleaseEvent):
3251 (QWebPagePrivate::wheelEvent):
3252 (QWebPagePrivate::dragEnterEvent):
3253 (QWebPagePrivate::dragLeaveEvent):
3254 (QWebPagePrivate::dragMoveEvent):
3255 (QWebPagePrivate::dropEvent):
3259 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3261 Reviewed by Simon Hausmann.
3263 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
3264 https://bugs.webkit.org/show_bug.cgi?id=28865
3266 Clean up the unserCursor hack to use the QCursor set
3267 as a property of the QWidget by WebCore::WidgetQt.
3269 Remove all code that are no longer necessary for getting
3270 cursor change events.
3272 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
3273 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
3278 (QWebViewPrivate::QWebViewPrivate):
3281 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3283 Reviewed by Simon Hausmann.
3285 [Qt] QtWebKit single API to enable persistency
3286 https://bugs.webkit.org/show_bug.cgi?id=28682
3288 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3291 If persistency is enabled the default directory for LocalStorage and
3292 ApplicationCache is now based on QDesktopServices::DataLocation and not
3293 QDesktopServices::CacheLocation (as it is expected to keep this data
3294 around after a reboot).
3296 If persistency is enabled initialize HTML5 offline storage as well - this
3297 fixed offline Storage for QtLauncher.
3300 (QWebPagePrivate::QWebPagePrivate):
3301 * Api/qwebsettings.cpp:
3302 (QWebSettings::QWebSettings):
3303 (QWebSettings::enablePersistentStorage):
3304 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3305 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3308 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3310 Reviewed by Simon Hausmann.
3312 Speed up the QWebPluginInfo::supportsMimeType() function.
3313 https://bugs.webkit.org/show_bug.cgi?id=27651
3315 Instead of going through the MIME types list constructed with
3316 mimeTypes() function, look up the internal mimeToDescriptions map.
3318 * Api/qwebplugindatabase.cpp:
3319 (QWebPluginInfo::supportsMimeType):
3321 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3323 Reviewed by Simon Hausmann.
3325 Speed up the QWebPluginInfo::mimeTypes() function.
3326 https://bugs.webkit.org/show_bug.cgi?id=27651
3328 Instead of constructing a list of MIME types every time it is called,
3331 * Api/qwebplugindatabase.cpp:
3332 (QWebPluginInfo::mimeTypes):
3333 (QWebPluginInfo::operator=):
3334 * Api/qwebplugindatabase.h:
3335 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3336 (tst_QWebPluginDatabase::operatorassign_data):
3337 (tst_QWebPluginDatabase::operatorassign):
3339 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3341 Reviewed by Simon Hausmann.
3343 Remove the private classes from QWebPluginDatabase.
3344 https://bugs.webkit.org/show_bug.cgi?id=27651
3346 Instead, hold the PluginDatabase and PluginPackage objects as class
3347 members and take care of refcounting on our own instead of using RefPtr.
3349 This way we not only made the code cleaner but also got rid of
3350 redundant allocations when constructing null QWebPluginInfo objects.
3352 The private classes have been forward-declared and the d-pointers left
3353 to be on the safe side.
3355 * Api/qwebplugindatabase.cpp:
3356 (QWebPluginInfo::QWebPluginInfo):
3357 (QWebPluginInfo::~QWebPluginInfo):
3358 (QWebPluginInfo::name):
3359 (QWebPluginInfo::description):
3360 (QWebPluginInfo::mimeTypes):
3361 (QWebPluginInfo::path):
3362 (QWebPluginInfo::isNull):
3363 (QWebPluginInfo::setEnabled):
3364 (QWebPluginInfo::isEnabled):
3365 (QWebPluginInfo::operator==):
3366 (QWebPluginInfo::operator!=):
3367 (QWebPluginInfo::operator=):
3368 (QWebPluginDatabase::QWebPluginDatabase):
3369 (QWebPluginDatabase::~QWebPluginDatabase):
3370 (QWebPluginDatabase::plugins):
3371 (QWebPluginDatabase::searchPaths):
3372 (QWebPluginDatabase::setSearchPaths):
3373 (QWebPluginDatabase::addSearchPath):
3374 (QWebPluginDatabase::refresh):
3375 (QWebPluginDatabase::pluginForMimeType):
3376 (QWebPluginDatabase::setPreferredPluginForMimeType):
3377 * Api/qwebplugindatabase.h:
3378 * Api/qwebplugindatabase_p.h: Removed.
3380 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3382 Reviewed by Eric Seidel.
3384 [Qt] r47424 broke binary compatibility
3385 https://bugs.webkit.org/show_bug.cgi?id=28996
3387 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3389 * Api/qwebsettings.h:
3391 2009-09-04 Mark Mentovai <mark@chromium.org>
3393 Reviewed by Dave Hyatt.
3395 https://bugs.webkit.org/show_bug.cgi?id=28614
3397 Account for scrollbar state changes that occur during layout.
3399 * Api/qwebframe.cpp:
3400 (QWebFrame::setScrollBarPolicy):
3402 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3403 FrameView and ScrollView.
3405 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3407 Reviewed by Eric Seidel.
3409 [Qt] Fix tst_QWebPage::database autotest failure
3410 https://bugs.webkit.org/show_bug.cgi?id=28961
3412 Make sure that the test case enables the feature before
3413 the feature gets tested
3415 * tests/qwebpage/tst_qwebpage.cpp:
3416 (tst_QWebPage::database):
3418 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3420 Reviewed by Eric Seidel.
3422 Any QtWebKit application crashes on exit if the inspector is
3423 used during the session rather then exiting.
3425 If a QWebView has a QWebPage that is destroyed the QWebView
3426 does not update its pointer and will crash the next time
3427 it access the page pointers (such as in its destructor).
3429 InspectorClientView should not call deleteLater when the page
3430 is destroyed because it does not have a parent and is a top
3431 level widget. close() needs to be called so that QApplication
3432 can exit the application if quitOnLastWindowClosed is set
3433 and a InspectorClientView is the last window, otherwise
3434 the application will never exit.
3437 (QWebViewPrivate::_q_pageDestroyed):
3438 (QWebView::setPage):
3440 * WebCoreSupport/InspectorClientQt.cpp:
3441 (WebCore::InspectorClientView::InspectorClientView):
3443 2009-09-03 Adam Barth <abarth@webkit.org>
3445 Reviewed by eric@webkit.org.
3447 https://bugs.webkit.org/show_bug.cgi?id=24696
3449 Stub implementations of mixed content methods of FrameLoaderClient.
3451 * WebCoreSupport/FrameLoaderClientQt.cpp:
3452 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3453 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3454 * WebCoreSupport/FrameLoaderClientQt.h:
3456 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3458 Reviewed by Eric Seidel.
3460 [Qt] Add a setting to turn SessionStorage on/off
3461 https://bugs.webkit.org/show_bug.cgi?id=28836
3463 * Api/qwebsettings.cpp:
3464 (QWebSettingsPrivate::apply):
3465 (QWebSettings::QWebSettings):
3466 * Api/qwebsettings.h:
3467 * tests/qwebpage/tst_qwebpage.cpp:
3469 (tst_QWebPage::testOptionalJSObjects):
3471 2009-09-02 Richard Moore <rich@kde.org>
3473 Reviewed by Tor Arne Vestbø.
3475 [Qt] Make sure we relayout the page after evaluating JS
3477 https://bugs.webkit.org/show_bug.cgi?id=28235
3479 QtWebKit does not always seem to reflow the page when evaluating
3480 javascript. This patch changes the way evaluateJavaScript works to
3481 use the frameloader which ensures that this is done properly.
3483 * Api/qwebframe.cpp:
3484 (QWebFrame::evaluateJavaScript):
3485 * tests/qwebframe/tst_qwebframe.cpp:
3487 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3489 Reviewed by Holger Freyther.
3491 https://bugs.webkit.org/show_bug.cgi?id=25889
3492 [GTK] scrollbar policy for main frame is not implementable
3494 Add empty implementation for new ChromeClient method.
3496 * WebCoreSupport/ChromeClientQt.h:
3497 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3499 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3501 Reviewed by Ariya Hidayat.
3503 QWebHistory::clear() modifications.
3505 Clear() method was changed. If QWebHistory is empty (there is no
3506 elements even current) clear() do nothing. If there at least one
3507 element clear() will delete everything apart of current.
3509 New autotests in QWebHistory
3511 New autotests were added to QWebHistory. They should check some crashes
3512 in save and restore state process and clear() method and general
3513 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3515 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3517 * Api/qwebhistory.cpp:
3518 (QWebHistory::clear):
3519 * tests/qwebhistory/tst_qwebhistory.cpp:
3520 (tst_QWebHistory::back):
3521 (tst_QWebHistory::forward):
3522 (tst_QWebHistory::saveAndRestore_crash_1):
3523 (tst_QWebHistory::saveAndRestore_crash_2):
3524 (tst_QWebHistory::saveAndRestore_crash_3):
3525 (tst_QWebHistory::clear):
3527 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3529 Reviewed by Ariya Hidayat.
3531 [Qt] Cleanup, old and commented part of source code was removed.
3532 Fix some formatting problems.
3534 https://bugs.webkit.org/show_bug.cgi?id=28712
3536 * Api/qwebhistory_p.h:
3537 (QWebHistoryPrivate::QWebHistoryPrivate):
3539 2009-08-26 Adam Barth <abarth@webkit.org>
3541 Reviewed by Oliver Hunt.
3543 Don't let local files access web URLs
3544 https://bugs.webkit.org/show_bug.cgi?id=28480
3546 * Api/qwebsettings.cpp:
3547 (QWebSettings::QWebSettings):
3549 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3551 Reviewed by Ariya Hidayat.
3553 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3555 * Api/qwebframe.cpp:
3556 (QWebFrame::requestedUrl):
3557 * WebCoreSupport/FrameLoaderClientQt.cpp:
3558 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3559 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3560 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3561 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3562 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3563 * WebCoreSupport/FrameLoaderClientQt.h:
3565 2009-08-22 Adam Barth <abarth@webkit.org>
3567 Revert 47684. We're going to do this later once clients have had a
3568 chance to opt into the setting they like.
3570 * Api/qwebsettings.cpp:
3571 (QWebSettings::QWebSettings):
3573 2009-08-22 Adam Barth <abarth@webkit.org>
3575 Reviewed by Eric Seidel.
3577 Don't let local files access web URLs
3578 https://bugs.webkit.org/show_bug.cgi?id=28480
3580 * Api/qwebsettings.cpp:
3581 (QWebSettings::QWebSettings):
3583 2009-08-19 Aaron Boodman <aa@chromium.org>
3585 Speculative build break fix for qt.
3587 * Api/qwebsecurityorigin.cpp:
3588 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3589 * Api/qwebsecurityorigin.h:
3591 2009-08-19 Aaron Boodman <aa@chromium.org>
3593 Reviewed by David Levin.
3595 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3596 specify a more granular policy for cross-origin XHR access.
3598 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3599 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3600 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3601 * Api/qwebsecurityorigin.h: Ditto.
3603 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3605 Reviwed by Ariya Hidayat.
3607 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3610 * Api/qwebsettings.cpp:
3611 (QWebSettings::QWebSettings):
3612 * Api/qwebsettings.h:
3614 2009-08-17 Darin Adler <darin@apple.com>
3616 Try to fix Qt build again.
3618 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3620 2009-08-17 Darin Adler <darin@apple.com>
3622 Try to fix Qt build.
3624 * WebCoreSupport/EditorClientQt.cpp:
3625 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3626 Use getAttribute(classAttr) instead of className() function.
3628 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3630 Reviewed by Simon Hausmann.
3632 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3633 QWebView::RenderHints property.
3635 This is a temporary fix and will be revereted when the right symbols
3636 exported from Qt lib in S60.
3638 https://bugs.webkit.org/show_bug.cgi?id=28181
3642 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3644 Reviewed by Simon Hausmann.
3646 [Qt] Public API to configure the storage path for HTML5 localStorage
3647 https://bugs.webkit.org/show_bug.cgi?id=28036
3649 Disables LocalStorage for QtWebKit by default by setting
3650 QWebSettings::LocalStorageEnabled to false.
3652 Sets up a default for the LocalStorage path so that clients would only
3653 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3656 Turn on LocalStorage support for QtLauncher and the relevant test
3657 since LocalStorage is now disabled by default for QtWebkit.
3661 (initializeApplicationCachePathIfNecessary):
3662 (QWebPagePrivate::QWebPagePrivate):
3663 * Api/qwebsettings.cpp:
3664 (QWebSettingsPrivate::apply):
3665 (QWebSettings::QWebSettings):
3666 (QWebSettings::setLocalStoragePath):
3667 (QWebSettings::localStoragePath):
3668 * Api/qwebsettings.h:
3669 * QtLauncher/main.cpp:
3671 * tests/qwebpage/tst_qwebpage.cpp:
3672 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3674 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3676 Reviewed by Simon Hausmann.
3678 [Qt] Allow applications to register their own local URL scheme.
3679 https://bugs.webkit.org/show_bug.cgi?id=28240
3681 * Api/qwebsecurityorigin.cpp:
3682 (QWebSecurityOrigin::addLocalScheme):
3683 (QWebSecurityOrigin::removeLocalScheme):
3684 (QWebSecurityOrigin::localSchemes):
3685 * Api/qwebsecurityorigin.h:
3686 * tests/qwebpage/tst_qwebpage.cpp:
3687 (tst_QWebPage::localURLSchemes):
3689 2009-08-13 Mark Rowe <mrowe@apple.com>
3691 Try and fix the Qt build.
3693 * Api/qwebelement.cpp:
3695 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3697 Reviewed by Simon Hausmann.
3699 Doc - Some cleanup on the documentation of QWebElement
3701 * Api/qwebelement.cpp:
3703 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3705 Reviewed by Simon Hausmann.
3707 Symbian target components (library and executable files)
3708 require Unique Identifiers (i.e., UID3).
3709 These identifiers are defined in the respective project
3710 files, conditionally for "symbian" platform.
3712 * QtLauncher/QtLauncher.pro:
3713 * tests/qwebelement/qwebelement.pro:
3714 * tests/qwebframe/qwebframe.pro:
3715 * tests/qwebhistory/qwebhistory.pro:
3716 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3717 * tests/qwebpage/qwebpage.pro:
3718 * tests/qwebview/qwebview.pro:
3720 2009-08-12 George Wright <george.wright@torchmobile.com>
3722 Reviewed by Adam Treat.
3724 Initialise zoom levels independent of whether a URL is valid or not to
3725 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3727 * QtLauncher/main.cpp:
3728 (MainWindow::MainWindow):
3730 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3732 Reviewed by Simon Hausmann.
3734 QtWebKit compile fix for Windows CE
3736 There's no getenv on Windows CE, use qgetenv instead.
3739 (qt_drt_overwritePluginDirectories):
3741 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3743 Reviewed by Simon Hausmann.
3745 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3747 * Api/qwebplugindatabase.cpp:
3748 * Api/qwebsettings.cpp: