1 2008-11-19 Darin Fisher <darin@chromium.org>
5 https://bugs.webkit.org/show_bug.cgi?id=22373
6 Ports busted by addition of ScriptValue.{h,cpp}
10 2008-11-19 Simon Hausmann <hausmann@webkit.org>
12 Fix the Qt build, remove file referenced in the qrc file that does not
13 exist and is not needed.
15 * tests/qwebframe/qwebframe.qrc:
17 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
19 Rubber-stamped by Tor Arne Vestbø.
21 Missing file in new unit test for QWebFrame (r38493).
23 * tests/qwebframe/qwebframe.pro:
24 * tests/qwebframe/qwebframe.qrc: Added.
26 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
28 Rubber-stamped by Simon Hausmann.
30 Make sure QWidget based plugins are invisible until placed into the layout
32 * WebCoreSupport/FrameLoaderClientQt.cpp:
33 (WebCore::FrameLoaderClientQt::createPlugin):
35 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
37 Reviewed by Simon Hausmann.
39 React properly to frame rect changes for QWidget based plugins
41 We now set the geometry of the QWidget in frameRectsChanged,
42 intead of setFrameRect, which means we pick up the changes to
43 the frame rect when scrolling. We also set a mask on the
44 widget to keep it from painting over scrollbars and the like
46 * WebCoreSupport/FrameLoaderClientQt.cpp:
49 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
51 Reviewed by Tor Arne Vestbø.
53 Fix crash when trying to pick a file using the file chooser.
55 * WebCoreSupport/ChromeClientQt.cpp:
56 (WebCore::ChromeClientQt::runOpenPanel):
58 2008-11-18 Holger Hans Peter Freyther <zecke@selfish.org>
60 Reviewed by Simon Hausmann.
62 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
64 After Hyatt's work on Widget and ScrollView there is little difference
65 between the implementation of Qt, Gtk+ and Win. In fact any kind of
66 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
67 port and the Qt port has at least one of them left.
69 The only difference between the implementations is in getting the the
70 IntSize for the new FrameView, the background color to be applied and
71 eventually some post processing.
73 Unify the implementations by providing a static helper function that
74 takes a Frame, IntSize, color and transparency bit and calling it from
75 the Gtk+, the Qt and the Windows port.
80 (QWebPage::setPalette):
81 * WebCoreSupport/FrameLoaderClientQt.cpp:
82 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
84 2008-11-17 Geoffrey Garen <ggaren@apple.com>
92 2008-11-17 Ariya Hidayat <ariya.hidayat@trolltech.com>
94 Reviewed by Tor Arne Vestbø and Simon Hausmann.
96 Fix regression when loading resources from Qt resource system using qrc:/.
98 Added a unit test to catch future regression.
101 (QWebPagePrivate::QWebPagePrivate):
102 * tests/qwebframe/image.png: Added.
103 * tests/qwebframe/tst_qwebframe.cpp:
105 2008-11-16 Darin Adler <darin@apple.com>
109 * Api/qwebhistory.cpp: Added include of "KURL.h".
111 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
113 Reviewed by Simon Hausmann.
115 Added some basic unit tests for the public database API.
117 * tests/qwebpage/tst_qwebpage.cpp:
118 (tst_QWebPage::initTestCase):
119 (tst_QWebPage::cleanupTestCase):
120 (tst_QWebPage::database):
122 2008-11-14 Simon Hausmann <hausmann@webkit.org>
124 Fix the Qt build, add missing export macros for the new classes.
126 * Api/qwebdatabase.h:
127 * Api/qwebsecurityorigin.h:
129 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
131 Reviewed by Simon Hausmann.
133 Adding public API to provide access to the security origin
134 (QWebSecurityOrigin) and the databases used for the offline
135 storage (QWebDatabase).
137 In addition QWebSettings gains configuration functions for
138 enabling/disabling offline storage, web application cache
139 and DOM local storage.
141 This commits lands the core feature(s), the unit tests and the
142 documentation are going to follow in the comming days/weeks.
144 Note: The API is not frozen yet.
147 * Api/qwebdatabase.cpp: Added.
148 (QWebDatabase::QWebDatabase):
149 (QWebDatabase::operator=):
150 (QWebDatabase::name):
151 (QWebDatabase::displayName):
152 (QWebDatabase::expectedSize):
153 (QWebDatabase::size):
154 (QWebDatabase::absoluteFilePath):
155 (QWebDatabase::origin):
156 (QWebDatabase::remove):
157 (QWebDatabase::~QWebDatabase):
158 * Api/qwebdatabase.h: Added.
159 * Api/qwebdatabase_p.h: Added.
161 (QWebFrame::securityOrigin):
165 * Api/qwebsecurityorigin.cpp: Added.
166 (QWebSecurityOrigin::QWebSecurityOrigin):
167 (QWebSecurityOrigin::operator=):
168 (QWebSecurityOrigin::scheme):
169 (QWebSecurityOrigin::host):
170 (QWebSecurityOrigin::port):
171 (QWebSecurityOrigin::databaseUsage):
172 (QWebSecurityOrigin::databaseQuota):
173 (QWebSecurityOrigin::setDatabaseQuota):
174 (QWebSecurityOrigin::~QWebSecurityOrigin):
175 (QWebSecurityOrigin::allOrigins):
176 (QWebSecurityOrigin::databases):
177 * Api/qwebsecurityorigin.h: Added.
178 * Api/qwebsecurityorigin_p.h: Added.
179 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
180 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
181 * Api/qwebsettings.cpp:
182 (QWebSettingsPrivate::apply):
183 (QWebSettings::QWebSettings):
184 (QWebSettings::setOfflineStoragePath):
185 (QWebSettings::offlineStoragePath):
186 (QWebSettings::setOfflineStorageDefaultQuota):
187 (QWebSettings::offlineStorageDefaultQuota):
188 (QWebSettings::setOfflineWebApplicationCachePath):
189 (QWebSettings::offlineWebApplicationCachePath):
190 (QWebSettings::setLocalStorageDatabasePath):
191 (QWebSettings::localStorageDatabasePath):
192 * Api/qwebsettings.h:
193 * WebCoreSupport/ChromeClientQt.cpp:
194 (WebCore::ChromeClientQt::exceededDatabaseQuota):
196 2008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
198 Rubber-stamped by Tor Arne Vestbø.
200 Mention the color role change (r38331) in the API doc.
204 2008-11-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
206 Reviewed by Tor Arne Vestbø and Simon Hausmann.
208 Use QPalette::Base (instead of QPalette::Background) for the page
212 (QWebFramePrivate::updateBackground):
214 (QWebView::QWebView):
216 2008-11-11 Cameron Zwarich <zwarich@apple.com>
218 Reviewed by Geoff Garen.
220 Remove pointless dependencies on the now-deleted kjs directory.
224 2008-11-10 Ariya Hidayat <ariya.hidayat@trolltech.com>
226 Rubber-stamped by Simon Hausmann.
228 To fit Qt API, scroll offset is a QPoint instead of a QSize.
231 (QWebFrame::scrollOffset):
232 (QWebFrame::setScrollOffset):
235 2008-11-10 David Boddie <dboddie@trolltech.com>
237 Reviewed by Simon Hausmann.
239 Doc: Fixed qdoc warnings by supplying function documentation.
244 2008-11-10 Tobias Koenig <tobias.koenig@trolltech.com>
246 Reviewed by Simon Hausmann.
248 Removed old and stale prf file that breaks the MingW build.
250 * Api/qtwebkit.prf: Removed.
252 2008-11-10 Kavindra Palaraja <kdpalara@trolltech.com>
254 Reviewed by Simon Hausmann.
256 Clarify QWebFrame/View::setHTML docs with regards to relative URLs
261 2008-11-10 Joerg Bornemann <joerg.bornemann@nokia.com>
263 Reviewed by Simon Hausmann
265 Don't define _CRT_RAND_S on Windows CE in the precompiled
266 header, to fix the CE build.
270 2008-11-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
272 Reviewed by Tor Arne Vestbø and Simon Hausmann.
274 Added an option to allow printing the background color and images.
275 Mostly reworked from a patch by Holger.
276 This setting is enabled by default.
278 * Api/qwebsettings.cpp:
279 (QWebSettingsPrivate::apply):
280 (QWebSettings::QWebSettings):
281 * Api/qwebsettings.h:
283 2008-11-06 Simon Hausmann <hausmann@webkit.org>
285 Reviewed by Tor Arne Vestbø.
287 Added a unit tests for QWebFrame::metaData().
289 * tests/qwebframe/tst_qwebframe.cpp:
291 2008-11-06 Simon Hausmann <hausmann@webkit.org>
293 Reviewed by Tor Arne Vestbø.
295 Improved documentation for QWebFrame::metaData().
299 2008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com>
301 Reviewed by Simon Hausmann.
303 Added QWebFrame::metaData() to provide a way in the public API
304 to retrieve the values of the <meta> tags.
306 See https://bugs.webkit.org/show_bug.cgi?id=22071
309 (QWebFrame::metaData):
312 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
314 Reviewed by Simon Hausmann.
316 Add userData() and setUserData() to QWebHistoryItem.
317 Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
318 Add currentItemIndex() to QWebHistory.
320 See also https://bugs.webkit.org/show_bug.cgi?id=21864
322 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
325 * Api/qwebhistory.cpp:
326 (QWebHistoryItem::userData):
327 (QWebHistoryItem::setUserData):
328 (QWebHistory::currentItemIndex):
329 (QWebHistory::maximumItemCount):
330 (QWebHistory::setMaximumItemCount):
332 * WebCoreSupport/FrameLoaderClientQt.cpp:
333 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
334 * tests/qwebpage/tst_qwebpage.cpp:
335 (tst_QWebPage::modified):
337 2008-11-03 Cameron Zwarich <zwarich@apple.com>
339 Rubber-stamped by Maciej Stachowiak.
341 Move more files into the runtime subdirectory of JavaScriptCore.
345 2008-10-25 Jade Han <jade.han@nokia.com>
349 Enable custom properties for Qt runtime objects in QtWebKit
351 https://bugs.webkit.org/show_bug.cgi?id=21813
353 * tests/qwebframe/tst_qwebframe.cpp:
355 2008-10-24 Sam Weinig <sam@webkit.org>
357 Another Qt build fix.
359 * WebCoreSupport/ChromeClientQt.cpp:
361 2008-10-24 Sam Weinig <sam@webkit.org>
363 Reviewed by Dan Bernstein.
365 Fix https://bugs.webkit.org/show_bug.cgi?id=21759
366 Layering violation: FileChooser should not depend on Document/Frame/Page
368 * WebCoreSupport/ChromeClientQt.cpp:
369 (WebCore::ChromeClientQt::runOpenPanel):
370 * WebCoreSupport/ChromeClientQt.h:
372 2008-10-24 Timothy Hatcher <timothy@apple.com>
374 Stub out new InspectorClient methods.
376 https://bugs.webkit.org/show_bug.cgi?id=21856
378 Reviewed by Darin Adler.
380 * WebCoreSupport/InspectorClientQt.cpp:
381 (WebCore::InspectorClientQt::populateSetting): Not implemented.
382 (WebCore::InspectorClientQt::storeSetting): Ditto.
383 (WebCore::InspectorClientQt::removeSetting): Ditto.
384 * WebCoreSupport/InspectorClientQt.h:
386 2008-10-24 Darin Adler <darin@apple.com>
388 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
391 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
393 2008-10-23 Yael Aharon <yael.aharon@nokia.com>
395 Reviewed by Simon Hausmann.
397 Invalid history entries could cause a crash in QT Webkit
399 * Api/qwebhistory.cpp:
400 (QWebHistoryItem::originalUrl):
401 (QWebHistoryItem::url):
402 (QWebHistoryItem::title):
403 (QWebHistoryItem::lastVisited):
404 (QWebHistoryItem::icon):
405 (QWebHistoryItem::isValid):
407 * Api/qwebhistory_p.h:
408 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
409 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
410 * tests/qwebpage/tst_qwebpage.cpp:
411 (tst_QWebPage::modified):
413 2008-10-22 Yael Aharon <yael.aharon@nokia.com>
415 Reviewed by Simon Hausmann.
417 emit scrollRequested unconditionally when scrolling.
419 See https://bugs.webkit.org/show_bug.cgi?id=21790
421 * WebCoreSupport/ChromeClientQt.cpp:
422 (WebCore::ChromeClientQt::scroll):
424 2008-10-23 Simon Hausmann <hausmann@webkit.org>
426 Reviewed by Tor Arne.
428 Fix handling of mouse events when embedding QWebView into the
431 QWebPage accepts or ignores events to indicate whether the web page
432 handled the event. However for QWebView to behave like a good widget
433 it should always accept the mouse events to indicate that it handled
434 them and that they should not be subject to event propagation.
436 The graphics view relies on acceptance of the initial mouse click to
437 make the embedded widget the focus item.
440 (QWebView::mouseMoveEvent):
441 (QWebView::mousePressEvent):
442 (QWebView::mouseDoubleClickEvent):
443 (QWebView::mouseReleaseEvent):
444 (QWebView::contextMenuEvent):
445 (QWebView::wheelEvent):
447 2008-10-22 Ariya Hidayat <ariya.hidayat@trolltech.com>
449 Reviewed by Simon Hausmann.
451 For public API, use the term boundingRect instead of boundingBox.
454 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
455 (QWebHitTestResult::boundingRect):
459 2008-06-03 Siraj Razick <siraj.razick@collabora.co.uk>
461 Reviewed by Simon Hausmann.
463 https://bugs.webkit.org/show_bug.cgi?id=19374
465 Expose boundingBox value in QWebHitTestResult
467 Add API function QRect QWebHitResult::boundingBox() const
472 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
473 (QWebHitTestResult::boundingBox):
477 2008-10-21 Yael Aharon <yael.aharon@nokia.com>
479 Reviewed by Simon Hausmann.
481 emit repaintRequested unconditionally when repaint is requested.
483 * WebCoreSupport/ChromeClientQt.cpp:
484 (WebCore::ChromeClientQt::repaint):
486 2008-10-20 Sam Weinig <sam@webkit.org>
488 Reviewed by Anders Carlsson.
490 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port.
492 * WebCoreSupport/FrameLoaderClientQt.cpp:
493 * WebCoreSupport/FrameLoaderClientQt.h:
495 2008-10-19 Darin Adler <darin@apple.com>
497 Reviewed by Oliver Hunt.
499 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
500 improve performance by eliminating JSValue as a base class for JSCell
502 Remove most uses of JSValue, which will be removed in a future patch.
505 (QWebFrame::evaluateJavaScript): Use JSValuePtr.
507 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com>
511 Clip painter to dirty rect before passing on to WebKit
513 This was previously done in ScrollViewQt, but after the
514 refactoring of ScrollView we need to do it in QWebFrame
515 instead, similar to Safari/Win.
520 2008-10-08 Matthias Ettrich <ettrich@nokia.com>
524 Make QWebView ignore focus changes with PopupFocusReason to avoid
525 massive updates when menus open and close.
528 (QWebView::focusInEvent):
529 (QWebView::focusOutEvent):
531 2008-10-08 Kavindra Palaraja <kdpalara@trolltech.com>
535 Fixed a qdoc warning and adjusted some spacing
539 2008-10-08 Rhys Weatherley <rhys.weatherley@nokia.com>
543 Compile for platforms without context menus.
546 (QWebPage::createStandardContextMenu):
548 2008-10-08 André Pönitz <apoenitz@trolltech.com>
552 Fix compilation with Qt namespaces.
554 * WebCoreSupport/EditCommandQt.h:
556 2008-10-07 Tor Arne Vestbø <tavestbo@trolltech.com>
558 QtWebKit build fix after changes to FrameLoaderClient.h in r37371
560 * WebCoreSupport/FrameLoaderClientQt.h:
562 2008-10-07 Holger Hans Peter Freyther <zecke@selfish.org>
564 [qt] Build fix after Scrollbar.h and Widget.h changes.
567 (QWebPage::swallowContextMenuEvent):
569 2008-10-06 David Hyatt <hyatt@apple.com>
571 Enable viewless Mac WebKit to paint some basic pages.
573 Reviewed by Sam Weinig
575 * WebCoreSupport/FrameLoaderClientQt.cpp:
576 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
578 2008-10-03 David Hyatt <hyatt@apple.com>
580 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y().
582 Fix the QtPluginWidget to do an invalidate properly.
586 * WebCoreSupport/ChromeClientQt.cpp:
587 (WebCore::ChromeClientQt::scroll):
588 * WebCoreSupport/FrameLoaderClientQt.cpp:
591 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
593 Build fix. Remove addToDirtyRegion from the header file.
595 * WebCoreSupport/ChromeClientQt.h:
597 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
601 * WebCoreSupport/ChromeClientQt.cpp:
602 (WebCore::ChromeClientQt::scroll):
603 * WebCoreSupport/FrameLoaderClientQt.cpp:
605 (WebCore::FrameLoaderClientQt::createPlugin):
607 2008-10-03 David Hyatt <hyatt@apple.com>
609 Remove addToDirtyRegion.
611 Reviewed by Oliver Hunt
613 * WebCoreSupport/ChromeClientQt.cpp:
615 2008-10-02 David Hyatt <hyatt@apple.com>
617 https://bugs.webkit.org/show_bug.cgi?id=21314
619 Make scrollBackingStore cross-platform.
621 Reviewed by Sam Weinig
623 * WebCoreSupport/ChromeClientQt.cpp:
624 (WebCore::ChromeClientQt::repaint):
625 (WebCore::ChromeClientQt::scroll):
626 * WebCoreSupport/ChromeClientQt.h:
628 2008-10-01 David Hyatt <hyatt@apple.com>
630 https://bugs.webkit.org/show_bug.cgi?id=21282
632 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now.
634 Reviewed by Adam Roben
636 * WebCoreSupport/ChromeClientQt.cpp:
637 (WebCore::ChromeClientQt::windowToScreen):
638 (WebCore::ChromeClientQt::screenToWindow):
639 * WebCoreSupport/ChromeClientQt.h:
641 2008-09-30 Dave Hyatt <hyatt@apple.com>
643 http://bugs.webkit.org/show_bug.cgi?id=21250
645 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
646 repaints up through the ChromeClient.
648 Reviewed by Darin Adler
650 * WebCoreSupport/ChromeClientQt.cpp:
651 (WebCore::ChromeClientQt::repaint):
652 * WebCoreSupport/ChromeClientQt.h:
654 2008-09-29 Gunnar Sletta <gunnar@trolltech.com>
658 Compile on windows using MSVC 2005
660 For the PCH We need to define _WIN32_WINNT and include windows.h early on,
661 otherwise we'll miss several functions.
665 2008-09-29 Thiago Macieira <thiago.macieira@nokia.com>
669 Changed copyright from Trolltech ASA to Nokia.
671 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
677 * Api/qwebhistory.cpp:
679 * Api/qwebhistory_p.h:
680 * Api/qwebkitglobal.h:
681 * Api/qwebnetworkinterface.cpp:
682 * Api/qwebnetworkinterface.h:
683 * Api/qwebnetworkinterface_p.h:
687 * Api/qwebpluginfactory.cpp:
688 * Api/qwebpluginfactory.h:
689 * Api/qwebsettings.cpp:
690 * Api/qwebsettings.h:
693 * Plugins/ICOHandler.cpp:
694 * QtLauncher/main.cpp:
695 * WebCoreSupport/FrameLoaderClientQt.cpp:
696 * WebCoreSupport/FrameLoaderClientQt.h:
697 * WebCoreSupport/InspectorClientQt.cpp:
698 * WebCoreSupport/InspectorClientQt.h:
699 * tests/qwebframe/tst_qwebframe.cpp:
700 * tests/qwebpage/tst_qwebpage.cpp:
702 2008-09-28 Simon Hausmann <hausmann@webkit.org>
704 Reviewed by David Hyatt.
706 Ensure the mainThreadIdentifier is set as well as other bits and pieces of
707 the threading machinery, by calling JSC::initializeThreading().
710 (QWebPagePrivate::QWebPagePrivate):
712 2008-09-27 David Hyatt <hyatt@apple.com>
714 Forgot to land renaming changes in WebKit.
719 (QWebFrame::geometry):
721 (QWebPage::viewportSize):
722 (QWebPage::setViewportSize):
724 2008-09-27 Simon Hausmann <hausmann@webkit.org>
726 Qt build fix - use frameRect instead of frameGeometry, adapt
727 to renamed scrollbar frameview methods.
730 (QWebPage::viewportSize):
731 (QWebPage::setViewportSize):
732 * WebCoreSupport/FrameLoaderClientQt.cpp:
733 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
735 2008-09-27 Jan Michael Alonzo <jmalonzo@webkit.org>
737 Qt build fix - rename frameGeometry to frameRect per r36995.
742 (QWebFrame::geometry):
744 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
748 Fixed potential crash when deleting QWebView instance.
750 When deleting the view, sets the page's view to NULL.
751 The reason is that the page is smart and its destructor might lead to a call
752 that operates on a view (which is in the process of being deleted).
756 (QWebView::~QWebView):
758 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
762 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
764 * WebCoreSupport/EditorClientQt.cpp:
765 (WebCore::EditorClientQt::handleKeyboardEvent):
767 2008-09-26 Håvard Wall <hwall@trolltech.com>
771 Fix compilation with QT_NO_MESSAGEBOX
774 (QWebPage::javaScriptAlert):
775 (QWebPage::javaScriptConfirm):
777 2008-09-23 Tor Arne Vestbø <tavestbo@trolltech.com>
781 Remove deprecated JS Qt bindings object call/construct code and fix autotests
783 * tests/qwebframe/tst_qwebframe.cpp:
785 2008-09-16 Alp Toker <alp@nuanti.com>
787 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
792 2008-09-15 Eli Fidler <eli@staikos.net>
796 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
797 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
799 Basically, Yahoo's login procedure for flickr looks like this:
800 1. load flickr.com, click "sign in"
801 2. this is a Yahoo page with a form
802 (https://login.yahoo.com/config/login?.src=flickr...)
803 when you click the "Sign In" button, the form submits to a yahoo.com POST URL
804 3. The POST returns with a 302 (redirect) to another yahoo.com URL
805 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
806 convert the method to GET, which works fine but is definitely not
807 RFC-compliant. It would be compliant for 303, and the RFC says that many
808 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
809 converting to GET is explicitly wrong for 302.
811 * Api/qwebnetworkinterface.cpp:
812 (QWebNetworkManager::started):
814 2008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
818 Make QtInstance::create() private and fix caching
821 (QWebFrame::addToJavaScriptWindowObject):
823 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
825 Rubber-stamped by Simon.
827 Prevent leaking pages and frames in QWebKit autotest
829 * tests/qwebpage/tst_qwebpage.cpp:
831 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
835 Fix QtWebKit autotest
837 * tests/qwebpage/tst_qwebpage.cpp:
838 (tst_QWebPage::userStyleSheet):
840 2008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com>
844 Added missing WebCore prefix to ResourceRequest
846 This is needed for Windows/CE compilation where there is a conflict
847 with a global ResourceRequest type. Elsewhere in this file ResourceRequest
848 is also prefixed with WebCore::
851 (QWebFrame::QWebFrame):
853 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
855 Reviewed by Maciej Stachowiak.
857 Bug 20704: Replace the KJS namespace
858 <https://bugs.webkit.org/show_bug.cgi?id=20704>
860 Rename the KJS namespace to JSC.
863 (QWebFrame::addToJavaScriptWindowObject):
864 (QWebFrame::evaluateJavaScript):
866 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
870 Fix the QtWebKit build to match changes in r36016
873 (QWebFrame::addToJavaScriptWindowObject):
875 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
879 Re-enable support for user stylesheets in QtWebKit
881 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
882 code path, which allows us to keep API support for
883 loading user style sheets from remote URLs.
885 As part of the change UserStyleSheetLoader.cpp/h was
886 moved from WebCore/loader/mac to WebCore/loader.
888 * tests/qwebpage/tst_qwebpage.cpp:
889 (tst_QWebPage::userStyleSheet):
891 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
893 Reviewed by Eric Seidel.
895 [janitor/qt] Start replacing port specific getters with the generic native getter
896 To get the native presentation of an image we currently have platform
897 specific #ifdef's and a generic getter using NativeImagePtr. This patch
898 extends this to the ImageBuffer and updates the Qt platform to get rid
899 of the special #ifdefs.
901 https://bugs.webkit.org/attachment.cgi?id=22861
904 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
905 * Api/qwebhistory.cpp:
906 * Api/qwebsettings.cpp:
907 (QWebSettings::iconForUrl):
909 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
913 Catch up with the introduction of PageGroup in r30840. Enable tracking of
914 visited links, enable this in QWebPage next to the other WebCore init call.
915 Calling this more than once is no issue and a cheap operation, we also do not
916 reset the state. When clearing the history of a page, clear the link state.
918 * Api/qwebhistory.cpp:
919 (QWebHistory::clear):
920 * Api/qwebhistoryinterface.cpp:
921 (QWebHistoryInterface::setDefaultInterface):
923 (QWebPagePrivate::QWebPagePrivate):
925 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
929 Revert revision 34348 which removed the global historyContains() function.
931 This function was needed to implement the public API of QWebHistoryInterface
932 and will be used again in the near future.
934 * Api/qwebhistoryinterface.cpp:
935 (WebCore::historyContains):
937 2008-08-27 Erik Bunce <elbunce@thehive.com>
939 Reviewed by Eric Seidel.
941 https://bugs.webkit.org/show_bug.cgi?id=20223
943 Add QWebPage::contentsChanged() signal to notify of content changes.
947 * WebCoreSupport/EditorClientQt.cpp:
948 (WebCore::EditorClientQt::respondToChangedContents):
950 2008-08-27 Brady Eidson <beidson@apple.com>
954 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
956 * WebCoreSupport/FrameLoaderClientQt.cpp:
957 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
958 * WebCoreSupport/FrameLoaderClientQt.h:
960 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
964 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
965 Allow the user of the API to honor the attachWindow and detachWindow
966 requests and attach the QWebPage/QWebView wherever it is wanted. This needs
967 some more API in QWebPage to be properly exposed.
969 * WebCoreSupport/InspectorClientQt.cpp:
970 (WebCore::InspectorClientQt::createPage):
971 (WebCore::InspectorClientQt::attachWindow):
972 (WebCore::InspectorClientQt::detachWindow):
973 * WebCoreSupport/InspectorClientQt.h:
975 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
977 Reviewed by Geoff Garen.
979 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
982 (QWebFrame::addToJavaScriptWindowObject):
984 2008-08-15 Håvard Wall <hwall@trolltech.com>
988 Fixes: compile with QT_NO_UNDOCOMMAND/STACK
992 (SetCursorEvent::SetCursorEvent):
993 (QWebPagePrivate::createContextMenu):
997 * WebCoreSupport/EditCommandQt.cpp:
998 (EditCommandQt::EditCommandQt):
999 * WebCoreSupport/EditCommandQt.h:
1000 * WebCoreSupport/EditorClientQt.cpp:
1002 (WebCore::EditorClientQt::shouldInsertText):
1003 (WebCore::EditorClientQt::shouldChangeSelectedRange):
1004 (WebCore::EditorClientQt::isEditable):
1005 (WebCore::EditorClientQt::registerCommandForUndo):
1006 (WebCore::EditorClientQt::clearUndoRedoOperations):
1007 (WebCore::EditorClientQt::canUndo):
1008 (WebCore::EditorClientQt::canRedo):
1009 (WebCore::EditorClientQt::undo):
1010 (WebCore::EditorClientQt::redo):
1011 (WebCore::EditorClientQt::shouldInsertNode):
1013 2008-08-15 Håvard Wall <hwall@trolltech.com>
1017 Fixes: compile with QT_NO_STYLE_STYLESHEET
1020 * WebCoreSupport/FrameLoaderClientQt.cpp:
1021 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1022 (WebCore::FrameLoaderClientQt::createPlugin):
1024 2008-08-15 Håvard Wall <hwall@trolltech.com>
1028 Fixes: compile with QT_NO_SHORTCUT
1032 (QWebPagePrivate::mouseMoveEvent):
1033 (QWebPagePrivate::mouseReleaseEvent):
1034 (QWebPagePrivate::dragMoveEvent):
1036 2008-08-15 Håvard Wall <hwall@trolltech.com>
1040 Fixes: compile with QT_NO_CONTEXTMENU
1044 (editorCommandForWebActions):
1045 (QWebPagePrivate::QWebPagePrivate):
1046 (QWebPagePrivate::createMainFrame):
1047 (QWebPagePrivate::updateEditorActions):
1048 (QWebPage::setEditable):
1054 2008-08-15 Håvard Wall <hwall@trolltech.com>
1058 Fixes: compile with QT_NO_WHEELEVENT
1062 (QWebPagePrivate::updateEditorActions):
1068 2008-08-15 Håvard Wall <hwall@trolltech.com>
1072 Fixes: compile with QT_NO_PRINTER
1075 * Api/qwebframe.cpp:
1079 2008-08-15 David Boddie <dboddie@trolltech.com>
1083 Doc: Added documentation for default property values.
1087 (QWebPagePrivate::keyPressEvent):
1088 (QWebPage::triggerAction):
1089 (QWebPage::acceptNavigationRequest):
1093 2008-08-15 David Boddie <dboddie@trolltech.com>
1097 Doc: Renamed snippets that appear in the code directory.
1104 2008-08-12 Timothy Hatcher <timothy@apple.com>
1106 Add a stub for InspectorClient::setAttachedWindowHeight.
1108 * WebCoreSupport/InspectorClientQt.cpp:
1109 (WebCore::InspectorClientQt::setAttachedWindowHeight):
1110 Call notImplemented().
1111 * WebCoreSupport/InspectorClientQt.h:
1113 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1117 Use full-page zoom in QtLauncher.
1119 * QtLauncher/main.cpp:
1120 (MainWindow::zoomIn):
1121 (MainWindow::zoomOut):
1122 (MainWindow::resetZoom):
1123 (MainWindow::setupUI):
1125 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1129 Fix linking with QtWebKit.
1131 * Api/qwebframe.h: remove non-existing function/property.
1133 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1137 Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
1139 https://bugs.webkit.org/show_bug.cgi?id=19125
1141 Added functions to get/set the zoom factor.
1143 Added a QWebFrame/QWebView::zoomFactor as well as a boolean
1144 ZoomTextOnly attribute in QWebSettings.
1146 * Api/qwebframe.cpp:
1147 (QWebFrame::setZoomFactor):
1148 (QWebFrame::zoomFactor):
1150 * Api/qwebsettings.cpp:
1151 (QWebSettingsPrivate::apply):
1152 (QWebSettings::QWebSettings):
1153 * Api/qwebsettings.h:
1155 (QWebView::setZoomFactor):
1156 (QWebView::zoomFactor):
1159 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1163 Fix QWebFrame::setHtml() not setting the new contents immediately.
1165 Added a setter to the DocumentLoader to toggle the deferred loading of the main
1166 resource when it comes from substitute data.
1168 Disable deferred loading of the main resource when we have valid substitute data,
1169 as used by QWebFrame::setHtml.
1171 * WebCoreSupport/FrameLoaderClientQt.cpp:
1172 (WebCore::FrameLoaderClientQt::download):
1174 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1176 Rubber-stamped by Holger.
1178 Fix QWebPage::isModified().
1180 isModified() would return true after loading a new page or it would continue to
1181 return true after undoing modifications. Fix this by eliminating the
1182 QWebPagePrivate::modified variable and use the undoStack's canUndo() property
1185 https://bugs.webkit.org/show_bug.cgi?id=19252
1190 * WebCoreSupport/EditorClientQt.cpp:
1191 (WebCore::EditorClientQt::respondToChangedContents):
1193 2008-08-13 David Boddie <dboddie@trolltech.com>
1197 Updated docs with the signal emission behavior of urlChanged()
1199 * Api/qwebframe.cpp:
1201 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1205 Fix Ctrl+Y to work again when editing text in contextEditable mode.
1207 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
1209 * WebCoreSupport/EditorClientQt.cpp:
1210 (WebCore::EditorClientQt::handleKeyboardEvent):
1212 2008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
1216 Fix encoding of [ and ] in the host part of the URL
1218 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
1219 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
1220 doesn't encode [ and ] when they are found in the host part. That is, the
1223 is valid and should not be reencoded to:
1226 This change adds the automatic test for it.
1228 * tests/qwebframe/tst_qwebframe.cpp:
1230 2008-08-12 Urs Wolfer <uwolfer@kde.org>
1234 https://bugs.webkit.org/show_bug.cgi?id=20357
1236 Fix crash in QWebPage in case contextMenuEvent has been overwritten
1237 because context menu has the view as parent and thus is deleted too early.
1239 Add testcase for this crash.
1242 * tests/qwebpage/tst_qwebpage.cpp:
1243 (tst_QWebPage::contextMenuCrash):
1245 2008-08-07 Simon Hausmann <hausmann@webkit.org>
1247 Rubber-stamped by Lars.
1249 Added API tests for QWebPage/QWebFrame based on QTestLib.
1251 * tests/qwebframe/qwebframe.pro: Added.
1252 * tests/qwebframe/tst_qwebframe.cpp: Added.
1253 * tests/qwebpage/qwebpage.pro: Added.
1254 * tests/qwebpage/tst_qwebpage.cpp: Added.
1255 * tests/tests.pro: Added.
1257 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
1261 During the drag operation only accept the event if the action is not ignore action.
1264 (QWebPagePrivate::dragEnterEvent):
1265 (QWebPagePrivate::dragMoveEvent):
1266 (QWebPagePrivate::dropEvent):
1268 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
1270 Fix the Qt build due to recent ScriptController refactoring.
1272 * Api/qwebframe.cpp:
1273 (QWebFrame::addToJavaScriptWindowObject):
1275 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
1279 Move event handling of the return-key from EditorClientQt to QWebPage.
1281 https://bugs.webkit.org/show_bug.cgi?id=20191
1283 This is a first step in refactoring the big switch block
1284 in EditorClientQt::handleKeyboardEvent to using WebActions
1287 The new logic uses two new StandardKeys from QKeySequence:
1289 - InsertParagraphSeparator
1290 - InsertLineSeparator
1292 Which translate to the commands InsertNewline and InsertLineBreak
1293 respectivly. On Windows/X11 pressing the shift modifier will invoke
1294 the latter action. For Mac this is triggered by pressing the meta
1297 Initial patch by: Erik Bunce
1300 (editorActionForKeyEvent):
1302 * WebCoreSupport/EditorClientQt.cpp:
1303 (WebCore::EditorClientQt::handleKeyboardEvent):
1305 2008-08-04 Erik Bunce <elbunce@thehive.com>
1309 https://bugs.webkit.org/show_bug.cgi?id=20221
1311 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
1312 Add lookup table for mapping web actions to editor commands.
1315 (editorCommandForWebActions):
1316 (QWebPagePrivate::updateAction):
1317 (QWebPagePrivate::updateEditorActions):
1318 (QWebPage::triggerAction):
1319 (QWebPage::setEditable):
1321 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
1325 A bunch of improvements to the QtLauncher.
1328 - Unify and unclutter the toolbar, use menu for addition actions
1329 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
1330 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
1331 - Shortcut keys for most actions
1332 - Simple autocomplete for the URL edit
1333 - Actions for zooming, New Window and Close Window
1334 - Show Format menu only when the content is set to editable
1336 * QtLauncher/main.cpp:
1337 (MainWindow::MainWindow):
1338 (MainWindow::webPage):
1339 (MainWindow::changeLocation):
1340 (MainWindow::loadFinished):
1341 (MainWindow::showLinkHover):
1342 (MainWindow::newWindow):
1343 (MainWindow::zoomIn):
1344 (MainWindow::zoomOut):
1345 (MainWindow::resetZoom):
1346 (MainWindow::print):
1347 (MainWindow::setEditable):
1348 (MainWindow::dumpHtml):
1349 (MainWindow::setupUI):
1352 2008-08-04 Erik Bunce <elbunce@thehive.com>
1356 https://bugs.webkit.org/show_bug.cgi?id=20198
1358 Allow Copy key sequence to work in non-editable areas.
1361 (QWebPagePrivate::keyPressEvent):
1363 2008-07-31 Erik Bunce <elbunce@thehive.com>
1367 Make sure edit actions get updated when the contents change.
1369 * WebCoreSupport/EditorClientQt.cpp:
1370 (WebCore::EditorClientQt::respondToChangedContents):
1372 2008-07-31 Erik Bunce <elbunce@thehive.com>
1376 Add simple edit test abilities to QtLauncher.
1378 * QtLauncher/main.cpp:
1379 (MainWindow::MainWindow):
1380 (MainWindow::setEditable):
1381 (MainWindow::dumpHtml):
1383 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
1385 Rubber-stamped by Maciej.
1387 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
1390 * Api/qwebframe.cpp:
1391 (QWebFrame::addToJavaScriptWindowObject):
1393 2008-07-27 David Kilzer <ddkilzer@apple.com>
1395 Fix Qt build failure.
1398 (QWebFrame::setScrollOffset): Make argument const.
1400 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1402 Reviewed by Simon Hausmann.
1404 https://bugs.webkit.org/show_bug.cgi?id=20010
1405 [Qt] Add API access to scrolling
1407 * Api/qwebframe.cpp: Added access to a frame scroll offset.
1408 (QWebFrame::scroll):
1409 (QWebFrame::scrollOffset):
1410 (QWebFrame::setScrollOffset):
1413 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
1415 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
1418 (QWebPage::triggerAction):
1419 * WebCoreSupport/FrameLoaderClientQt.cpp:
1420 (WebCore::FrameLoaderClientQt::createFrame):
1422 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
1426 Compile with QT_NO_PRINTER.
1428 * QtLauncher/main.cpp:
1429 (MainWindow::MainWindow):
1431 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1435 Don't insert text on keyDown event in EditorClientQt.
1437 * WebCoreSupport/EditorClientQt.cpp:
1438 (WebCore::EditorClientQt::handleKeyboardEvent):
1440 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
1444 Update the webkit version in the QtWebKit useragent string to match trunk
1448 2008-07-02 Simon Hausmann <hausmann@webkit.org>
1453 (QWebPage::triggerAction): The signature of setBaseWritingDirection
1454 changed to take an enum instead of a string.
1456 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
1458 Reviewed by Darin Adler.
1460 Disable JSLock for per-thread contexts.
1462 * Api/qwebframe.cpp:
1463 (QWebFrame::addToJavaScriptWindowObject):
1464 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
1465 Include JSLock.h, as it is no longer brought in implicitly.
1467 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
1471 Don't show the tooltip instantly in the QtLauncher.
1473 Let the QWebView handle tooltips by itself, so we get
1474 the expected delay as everywhere else.
1476 * QtLauncher/main.cpp:
1478 2008-06-30 Simon Hausmann <hausmann@webkit.org>
1480 Rubber-stamped by Niko.
1482 Removed the obsolete and unmaintained WebKitPart. The integration of
1483 QtWebKit into KDE is now done in the webkitkde component inside KDE.
1485 * WebKitPart/WebKitFactory.cpp: Removed.
1486 * WebKitPart/WebKitFactory.h: Removed.
1487 * WebKitPart/WebKitPart.cpp: Removed.
1488 * WebKitPart/WebKitPart.desktop: Removed.
1489 * WebKitPart/WebKitPart.h: Removed.
1490 * WebKitPart/WebKitPart.rc: Removed.
1491 * WebKitPart/WebKitPartBrowser.rc: Removed.
1492 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
1493 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
1494 * WebKitPart/WebKitPartClient.cpp: Removed.
1495 * WebKitPart/WebKitPartClient.h: Removed.
1496 * WebKitPart/WebKitPartInterface.cpp: Removed.
1497 * WebKitPart/WebKitPartInterface.h: Removed.
1498 * WebKitPart/org.kde.WebKitPart.xml: Removed.
1500 2008-06-24 Simon Hausmann <hausmann@webkit.org>
1502 Fix the Qt build, added missing include for RuntimeObjectImp.
1504 * Api/qwebframe.cpp:
1506 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
1510 Add function to retrieve the standard context menu
1512 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1516 https://bugs.webkit.org/show_bug.cgi?id=19082
1517 [Qt] Full-page plugins not activated
1519 * WebCoreSupport/FrameLoaderClientQt.cpp:
1520 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
1521 plugin present, as it can be created during the function.
1523 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
1527 https://bugs.webkit.org/show_bug.cgi?id=19082
1528 [Qt] Full-page plugins not activated
1530 * WebCoreSupport/FrameLoaderClientQt.cpp:
1531 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
1532 MIME type is supported by a plugin.
1534 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
1536 Reviewed by Darin Adler.
1538 Prepare JavaScript heap for being per-thread.
1540 * Api/qwebframe.cpp:
1541 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
1543 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
1545 Qt Build fix after r34627.
1547 * WebCoreSupport/FrameLoaderClientQt.cpp:
1548 (WebCore::FrameLoaderClientQt::createPlugin):
1550 2008-06-15 Darin Adler <darin@apple.com>
1552 - give Frame object functions shorter names: scriptProxy() -> script(),
1553 selectionController() -> selection(), animationController() -> animation()
1555 * Api/qwebframe.cpp:
1556 (QWebFrame::evaluateJavaScript):
1558 (QWebPagePrivate::focusInEvent):
1559 (QWebPagePrivate::focusOutEvent):
1560 (QWebPage::inputMethodQuery):
1561 * WebCoreSupport/EditorClientQt.cpp:
1562 (WebCore::EditorClientQt::handleKeyboardEvent):
1564 2008-06-15 Darin Adler <darin@apple.com>
1566 - new names for more JavaScriptCore files
1570 2008-06-15 Darin Adler <darin@apple.com>
1572 - new names for a few key JavaScriptCore files
1574 * Api/qwebframe.cpp:
1576 2008-06-14 Darin Adler <darin@apple.com>
1578 Rubber stamped by Sam.
1580 - new names for kjs_binding.h and kjs_proxy.h
1582 * Api/qwebframe.cpp:
1583 (QWebFrame::evaluateJavaScript):
1586 2008-06-14 Darin Adler <darin@apple.com>
1590 * Api/qwebframe.cpp:
1591 (QWebFramePrivate::init): Added a missing semicolon.
1593 2008-06-14 Darin Adler <darin@apple.com>
1597 - more https://bugs.webkit.org/show_bug.cgi?id=17257
1598 start ref counts at 1 instead of 0 for speed
1600 * Api/qwebframe.cpp:
1601 (QWebFramePrivate::init): Use create instead of new.
1602 * WebCoreSupport/FrameLoaderClientQt.cpp:
1603 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
1605 2008-06-13 Darin Adler <darin@apple.com>
1609 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
1611 2008-06-13 Darin Adler <darin@apple.com>
1613 Reviewed by John Sullivan.
1615 - updated for addition of FormState argument to action policy functions
1617 * WebCoreSupport/FrameLoaderClientQt.cpp:
1618 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1619 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1621 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1625 Fix left-click and middle-click mouse event are not properly accepted.
1627 When copying or pasting text using left or middle-click, the event must be
1628 accepted so that it will not be potentially processed further by the parent
1629 and/or sub-classed widget.
1633 (QWebPagePrivate::mouseReleaseEvent):
1635 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1639 Fix input element does not accept character typed in using AltGr.
1641 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
1642 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
1644 * WebCoreSupport/EditorClientQt.cpp:
1645 (WebCore::EditorClientQt::handleKeyboardEvent):
1647 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1651 https://bugs.webkit.org/show_bug.cgi?id=19323
1653 Implemented the QWebPage::editable property.
1655 Small documentation fixes by Simon.
1658 (QWebPagePrivate::QWebPagePrivate):
1659 (QWebPage::setEditable):
1660 (QWebPage::isEditable):
1662 * Api/qwebpage_p.h: implement the editable property and add API so that
1663 applications can switch edit mode on and off for a particular QWebPage
1664 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
1665 QWebPage instead of always returning false
1667 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
1671 Make sure web action in context menus have the right enablement,
1672 while not messing up other web actions not included in the menu.
1675 (QWebPagePrivate::createContextMenu):
1676 (QWebPage::updatePositionDependentActions):
1679 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
1683 Add Shift-Space shortcut to go up one screen, the opposite of Space
1684 which goes down one screen.
1687 (QWebPagePrivate::handleScrolling):
1689 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
1693 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
1695 The starting line number has to be 1 instead of 0.
1697 * Api/qwebframe.cpp:
1698 (QWebFrame::evaluateJavaScript):
1700 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1702 Reviewed by Darin Adler.
1704 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
1705 function is not used anywhere internally and is only a convenience
1706 function that can still be accomplished using
1707 QWebHistoryInterface::historyContains();
1709 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1713 Doc: Mention the requirement of a QApplication with QtWebKit
1718 2008-05-29 David Boddie <dboddie@trolltech.com>
1722 Some clarifications for the documentation.
1726 * Api/qwebpluginfactory.cpp:
1728 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
1732 Fix web inspector does not returns its state properly after its window is minimized.
1734 As hinted by Holger, InspectorClientView::hideEvent is not needed.
1735 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
1737 * WebCoreSupport/InspectorClientQt.cpp:
1739 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
1743 Add <param name="classid"/> support for application/x-qt-object plugins
1745 * WebCoreSupport/FrameLoaderClientQt.cpp:
1746 (WebCore::FrameLoaderClientQt::createPlugin):
1748 2008-05-13 Andy Shaw <andy@trolltech.com>
1752 Fixes: QWebHistory::forward() should go forwards and not back
1754 * Api/qwebhistory.cpp:
1756 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
1758 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
1759 SquirrelFish merging.
1761 * Api/qwebframe.cpp:
1762 (QWebFrame::addToJavaScriptWindowObject):
1764 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
1768 Fix bad includes in QtWebKit public headers.
1770 Make sure to include qglobal.h using the QtCore prefix so that an explicit
1771 include/QtCore is not needed in the application's build system. Also make sure
1772 that qwebsettings.h includes the local qwebkitglobal.h.
1775 * Api/qwebkitglobal.h:
1776 * Api/qwebsettings.h:
1778 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1782 https://bugs.webkit.org/show_bug.cgi?id=18935
1784 Based on work by Sriram Neelakandan for the Gtk port.
1786 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
1787 m_hasSentResponseToPlugin.
1788 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1789 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
1791 2008-05-08 Warwick Allison <warwick@trolltech.com>
1795 Fixes: WebKit expects initial input method state to be *disabled*.
1797 At least QWS does not need the initial input method state to be forced to
1798 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
1799 platforms, this is specific to QWS.
1803 (QWebView::QWebView):
1805 2008-05-06 Simon Hausmann <hausmann@webkit.org>
1809 Fix logic error in QWebHitTestResult::isNull().
1811 * Api/qwebframe.cpp:
1813 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
1817 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
1821 2008-05-02 Simon Hausmann <hausmann@webkit.org>
1823 Fix the Qt build, ExecState is required here.
1825 * Api/qwebframe.cpp:
1826 (QWebFrame::addToJavaScriptWindowObject):
1828 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1830 Reviewed by Alp Toker.
1831 Qt parts OK'ed by Simon Hausmann.
1833 https://bugs.webkit.org/show_bug.cgi?id=14750
1834 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
1836 * WebCoreSupport/FrameLoaderClientQt.cpp:
1837 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1838 (WebCore::FrameLoaderClientQt::finishedLoading):
1839 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1840 (WebCore::FrameLoaderClientQt::committedLoad):
1841 (WebCore::FrameLoaderClientQt::objectContentType):
1842 (WebCore::FrameLoaderClientQt::createPlugin):
1843 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
1844 * WebCoreSupport/FrameLoaderClientQt.h:
1846 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
1850 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
1855 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
1859 In focusIn and focusOut event always update the active state of the
1860 focus controller. Fixes ~400 failing layout tests due to missing
1861 editing callbacks that relied on the correct focus.
1864 (QWebPagePrivate::focusInEvent):
1865 (QWebPagePrivate::focusOutEvent):
1867 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
1871 Fix compilation with QT_NO_PRINTER
1877 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1881 Ensure that relative URL is converted to absolute URL.
1883 This is necessary because loading a relative URL is not really supported
1884 (the web page may load, but the subsequent URLs for images and links will
1885 not be resolved properly).
1886 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
1889 * Api/qwebframe.cpp:
1890 (ensureAbsoluteUrl):
1891 (QWebFrame::setUrl):
1894 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1898 Simplification of Qt Launcher (no animation and use standard progress bar widget)
1900 Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind.
1903 * QtLauncher/main.cpp:
1904 (MainWindow::MainWindow):
1906 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1910 Update the cursor when the frame/page loading is finished.
1912 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
1915 * WebCoreSupport/FrameLoaderClientQt.cpp:
1916 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1917 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
1919 2008-04-29 Simon Hausmann <shausman@trolltech.com>
1923 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
1925 Call QWebPage::acceptNavigationRequest when the creation of a new window with
1926 URL is requested. The frame pointer is set to null in this case.
1930 (QWebPage::setViewportSize):
1931 * WebCoreSupport/FrameLoaderClientQt.cpp:
1932 (WebCore::FrameLoaderClientQt::startDownload):
1933 (WebCore::FrameLoaderClientQt::createFrame):
1935 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1939 Use the WebCore facility to do the scrolling. Move some code around.
1942 (QWebPagePrivate::keyPressEvent):
1943 (QWebPagePrivate::shortcutOverrideEvent):
1944 (QWebPagePrivate::handleScrolling):
1947 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1951 fix potential crash when loading image(s)
1953 Crash may occur. If compiled with 4.3, the variable is not initialized.
1956 (QWebPagePrivate::QWebPagePrivate):
1958 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1962 Calling QWebView::setCursor will override the WebCore Cursor.
1963 Calling QWebView::setCursor will override the WebCore Cursor using
1964 QWidget::unsetCursor will revert to the WebCore Cursor.
1966 For detecting the unset we have to compare the shape of the
1967 cursor to the default arrow. Qt::WA_SetCursor can not be used
1968 as it is set unconditionally but conditionally removed.
1970 Calling QWidget::setCursor will immediately send the CursorChange
1971 event. We listen to this event to decide if we currently use a
1972 WebCore cursor, got a cursor from outside, or revert to the default.
1974 This should be race free and work reliable, the manual test for this
1975 is WebCore/manual-tests/cursor.html
1978 (SetCursorEvent::SetCursorEvent):
1981 (QWebViewPrivate::QWebViewPrivate):
1982 (QWebViewPrivate::setCursor):
1983 (QWebView::QWebView):
1986 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1990 Documentation fixes:
1992 - Fixed a qdoc warning
1993 - Mention that fav icons can be of arbitrary size
1994 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
1996 * Api/qwebframe.cpp:
1999 * Api/qwebsettings.cpp:
2002 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2006 Fix QWebView::loadFinished isn't always emitted
2008 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
2009 tracking (start, progres, and finish) to the page instead of the frame. This
2010 ensures that we emit loadFinished even when a subframe started the actual load.
2012 This causes a few regressions in the layout tests that we for now accept for
2013 the sake of the correct API. Layout tests we can fix any time though, including
2014 patch release, the API however we can't change anymore in patch releases.
2016 * Api/qwebframe.cpp:
2019 (QWebPage::totalBytes):
2022 (QWebView::setPage):
2024 * QtLauncher/main.cpp:
2025 (MainWindow::MainWindow):
2026 * WebCoreSupport/FrameLoaderClientQt.cpp:
2027 (drtDescriptionSuitableForTestResult):
2028 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2029 (WebCore::FrameLoaderClientQt::setFrame):
2030 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
2031 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2032 (WebCore::FrameLoaderClientQt::willChangeTitle):
2033 (WebCore::FrameLoaderClientQt::createDocumentLoader):
2034 (WebCore::FrameLoaderClientQt::download):
2035 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2036 * WebCoreSupport/FrameLoaderClientQt.h:
2038 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2042 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
2044 * Api/qwebframe.cpp:
2045 * Api/qwebpluginfactory.cpp:
2046 * Api/qwebsettings.cpp:
2047 (QWebSettings::QWebSettings):
2048 (QWebSettings::setUserStyleSheetUrl):
2049 (QWebSettings::iconForUrl):
2050 (QWebSettings::webGraphic):
2051 (QWebSettings::maximumPagesInCache):
2052 (QWebSettings::setFontFamily):
2053 (QWebSettings::resetFontFamily):
2054 (QWebSettings::testAttribute):
2055 (QWebSettings::resetAttribute):
2057 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
2061 Fix document/frame title not reset when loading a new URI
2063 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
2064 will be called very soon with the correct title.
2065 This properly resets the title when we navigate to a URI without a title.
2068 * WebCoreSupport/FrameLoaderClientQt.cpp:
2070 2008-04-28 David Boddie <dboddie@trolltech.com>
2074 Minor documentation changes.
2078 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2082 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
2086 (QWebPagePrivate::mouseMoveEvent):
2087 (QWebPagePrivate::mousePressEvent):
2088 (QWebPagePrivate::mouseDoubleClickEvent):
2089 (QWebPagePrivate::mouseTripleClickEvent):
2090 (QWebPagePrivate::mouseReleaseEvent):
2092 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2096 Fix scrollbar behavior in QtWebKit to match QScrollBar.
2098 Right click context menu is now supported, along with
2099 middle click to center slider thumb over mouse cursor.
2103 (QWebPage::linkDelegationPolicy):
2105 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2109 Implemented channel-based logging for QtWebKit.
2111 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
2112 Warnings for notImplemented() is still output by default, but can be disabled
2113 by setting DISABLE_NI_WARNINGS=1.
2116 (QWebPagePrivate::QWebPagePrivate):
2118 2008-04-28 Simon Hausmann <shausman@trolltech.com>
2120 Rubber-stamped by Lars
2122 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
2124 * Api/qwebframe.cpp:
2129 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2133 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
2136 * Api/qwebframe.cpp:
2141 (QWebView::changeEvent):
2143 2008-04-28 Simon Hausmann <shausman@trolltech.com>
2147 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
2149 Give the popups the right parent widget and the right coordinates relative within the parent.
2154 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
2158 Doc: Add see also's (and a few minor whitespace/typo corrections)
2161 * Api/qwebframe.cpp:
2162 (QWebFrame::~QWebFrame):
2163 (QWebFrame::setHtml):
2164 (QWebFrame::setContent):
2165 (QWebFrame::parentFrame):
2166 (QWebFrame::childFrames):
2167 (QWebFrame::setScrollBarValue):
2168 (QWebFrame::scrollBarValue):
2169 (QWebFrame::scrollBarMaximum):
2170 (QWebFrame::scrollBarMinimum):
2171 (QWebFrame::render):
2173 (QWebFrame::geometry):
2175 (QWebFrame::evaluateJavaScript):
2177 (QWebPagePrivate::mousePressEvent):
2178 (QWebPagePrivate::mouseDoubleClickEvent):
2179 (QWebPage::~QWebPage):
2180 (QWebPage::javaScriptPrompt):
2182 (QWebPage::setViewportSize):
2183 (QWebPage::acceptNavigationRequest):
2185 (QWebPage::userAgentForUrl):
2186 (QWebPagePrivate::_q_onLoadProgressChanged):
2190 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2194 Submitting more documentation for QWebPage
2199 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2203 Compile when QT_NO_CLIPBOARD is defined.
2207 (QWebPage::triggerAction):
2209 2008-04-28 David Boddie <dboddie@trolltech.com>
2213 Minor documentation fix.
2216 * Api/qwebhistory.cpp:
2218 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
2222 Implement QWebPage::createPlugin
2224 The code is coming from the demo browser and needed here
2225 for some manual tests.
2228 * QtLauncher/QtLauncher.pro:
2229 * QtLauncher/main.cpp:
2230 (WebPage::createPlugin):
2232 2008-04-28 Simon Hausmann <hausmann@webkit.org>
2234 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
2235 inclusion correct with regards to rand_s.
2237 * Api/qwebhistory.cpp:
2239 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2243 https://bugs.webkit.org/show_bug.cgi?id=18713
2245 Fix scrollbar painting issues in QtWebKit.
2247 Hovering and click-draging outside of the scrollbar would
2248 produce unexpected and inconcistent results. We also didn't
2249 pass on leave-events to the underlying WebKit code, which
2250 was nessecary to implement the paint fix.
2252 Note: The event handling of the Leave event should be moved
2253 out of QWebView::event() and into a proper override for 4.5.
2256 (QWebPagePrivate::leaveEvent):
2261 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2263 Reviewed by Simon, Holger.
2265 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
2267 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
2268 without telling the focus controller. We don't want to change the focused frame
2269 - the controller has to remember it in fact - but instead just deactivate the
2270 frame for correct painting as RenderTheme::isFocused() uses the activation
2274 (QWebPagePrivate::focusInEvent):
2275 (QWebPagePrivate::focusOutEvent):
2277 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2281 completed documentation for the Detailed Description section for QWebView
2286 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
2290 Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page.
2293 * Api/qwebhistory.cpp:
2294 (QWebHistory::back):
2295 (QWebHistory::forward):
2296 (QWebHistory::goToItem):
2298 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
2302 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
2305 * WebCoreSupport/FrameLoaderClientQt.cpp:
2306 (WebCore::FrameLoaderClientQt::createFrame):
2308 2008-04-25 Simon Hausmann <hausmann@webkit.org>
2312 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
2314 The shortcut for back on Windows is backspace. Implemented shortcut override
2315 handling in QWebView/QWebPage to prevent this.
2319 (QWebPagePrivate::wheelEvent):
2320 (editorActionForKeyEvent):
2321 (QWebPagePrivate::keyPressEvent):
2322 (QWebPagePrivate::inputMethodEvent):
2323 (QWebPagePrivate::shortcutOverrideEvent):
2329 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
2333 Fix triple-clicking does not work in a web page
2337 (QWebPagePrivate::updateEditorActions):
2338 (QWebPagePrivate::timerEvent):
2339 (QWebPagePrivate::mousePressEvent):
2340 (QWebPagePrivate::mouseDoubleClickEvent):
2341 (QWebPage::undoStack):
2344 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2348 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
2352 (QWebPagePrivate::keyPressEvent):
2354 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
2358 Fix handling of Javascript's confirm() function in QtWebKit.
2363 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2367 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
2372 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2376 QWebPage: missing signal when window.print() is requested from javascript
2381 * WebCoreSupport/ChromeClientQt.cpp:
2383 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2387 Fixes: "Save Image" action wasn't doing anything.
2391 (QWebPage::triggerAction):
2393 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2397 Apply key event changes to the current frame, not the main frame.
2399 Example: hitting space bar should scroll current frame, not the main frame
2400 which doesn't even have a scrollbar.
2404 (QWebPagePrivate::keyPressEvent):
2406 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2410 Fixes: QWebFrame crash when fetching the icon
2412 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
2414 * Api/qwebframe.cpp:
2416 2008-04-25 Warwick Allison <warwick@trolltech.com>
2420 Fixes: Scrollbars did not report correct maximum.
2422 * Api/qwebframe.cpp:
2424 2008-04-25 David Boddie <dboddie@trolltech.com>
2428 Documentation updates for some of the QWeb classes
2430 * Api/qwebframe.cpp:
2431 * Api/qwebhistory.cpp:
2432 * Api/qwebsettings.cpp:
2435 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
2439 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
2441 Similar to Editing and Frameloading we do the dumping within WebCore
2444 * WebCoreSupport/FrameLoaderClientQt.cpp:
2445 (qt_dump_frame_loader):
2446 (qt_dump_resource_load_callbacks):
2447 (drtDescriptionSuitableForTestResult):
2448 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2449 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2450 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2452 2008-04-24 Anders Carlsson <andersca@apple.com>
2456 Change some String arguments to be const references instead.
2458 * WebCoreSupport/EditorClientQt.cpp:
2459 (WebCore::EditorClientQt::shouldInsertText):
2460 * WebCoreSupport/EditorClientQt.h:
2462 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
2466 Cosmetic changes to make the code more readable.
2467 -Early exit if we don't have a webview
2468 -handle the empty tooltip and non-empty tooltip case separately
2471 * WebCoreSupport/ChromeClientQt.cpp:
2472 (WebCore::ChromeClientQt::setToolTip):
2473 (WebCore::ChromeClientQt::print):
2475 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
2479 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
2481 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
2482 Workaround as discussed with Matthias.
2484 * WebCoreSupport/ChromeClientQt.cpp:
2485 (WebCore::ChromeClientQt::setToolTip):
2487 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
2491 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
2493 * Api/qwebsettings.cpp:
2494 (QWebSettings::setObjectCacheCapacities):
2496 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
2500 Improve keyboard scrolling
2502 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
2506 (QWebPagePrivate::keyPressEvent):
2508 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
2512 Fix various compiler warnings in the Qt port.
2514 * Api/qwebframe.cpp:
2516 * Api/qwebsettings.cpp:
2518 * WebCoreSupport/FrameLoaderClientQt.cpp:
2519 (WebCore::FrameLoaderClientQt::createPlugin):
2521 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
2525 Cleaned up copyright headers (removed misplaced class descriptions and
2526 fixed inconsistent whitespace and indentation).
2528 * Api/qwebframe.cpp:
2530 * Api/qwebframe_p.h:
2531 * Api/qwebhistory.cpp:
2532 * Api/qwebhistory.h:
2533 * Api/qwebhistory_p.h:
2534 * Api/qwebhistoryinterface.cpp:
2535 * Api/qwebhistoryinterface.h:
2536 * Api/qwebkitglobal.h:
2537 * Api/qwebnetworkinterface.cpp:
2538 * Api/qwebnetworkinterface.h:
2539 * Api/qwebnetworkinterface_p.h:
2543 * Api/qwebpluginfactory.cpp:
2544 * Api/qwebpluginfactory.h:
2545 * Api/qwebsettings.cpp:
2546 * Api/qwebsettings.h:
2548 * QtLauncher/main.cpp:
2550 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
2554 Added basic URL guessing to QtLauncher (same as in the demo browser).
2557 * QtLauncher/main.cpp:
2558 (MainWindow::changeLocation):
2559 (MainWindow::guessUrlFromString):
2561 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
2563 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2565 Prevent double deletions of the default web interface.
2568 * Api/qwebhistoryinterface.cpp:
2569 (gCleanupInterface):
2570 (QWebHistoryInterface::QWebHistoryInterface):
2572 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2574 Fix compilation against Qt 4.3
2577 (QWebPage::userAgentForUrl):
2578 * QtLauncher/main.cpp:
2581 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
2585 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
2586 to ContextMenu::populate() is not adding it, the ContextMenuController does
2587 add it after the call to populate(). Do that as well.
2591 (QWebPage::updatePositionDependentActions):
2593 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2597 Fix crashes on window.close().
2599 We should not delete the QWebPage object in the ChromeClient but leave it up to
2600 the application when and whether to delete a browser window. For this we now
2601 emit the windowCloseRequested() signal.
2607 * QtLauncher/main.cpp:
2608 (MainWindow::MainWindow):
2609 * WebCoreSupport/ChromeClientQt.cpp:
2611 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2615 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
2617 We used to pass the html string to the frameloader in utf-16, which also meant that the default
2618 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
2619 by default. This is now also documented.
2621 * Api/qwebframe.cpp:
2622 (QWebFrame::setHtml):
2625 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
2629 Fixes background color propagation when using a custom QWebPage
2631 Set the palette in setPage(), not during the creation on-demand.
2636 (QWebView::setPage):
2638 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
2642 Fix the user agent on the mac to be BSD4
2644 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
2648 (QWebPage::userAgentForUrl):
2650 2008-04-23 Simon Hausmann <shausman@trolltech.com>
2654 Added missing copyright notice.
2655 Small fixes to the documentation.
2657 * Api/qwebpluginfactory.cpp:
2659 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
2663 Added a contentsSize() property.
2665 * Api/qwebframe.cpp:
2666 (QWebFrame::contentsSize):
2667 (QWebFrame::hitTestContent):
2670 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2674 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
2676 Don't force the deletion of the object, but let QObject take care of it.
2680 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2684 Documentation for QWebPluginFactory and documentation updates for QWebPage.
2687 (QWebPage::setLinkDelegationPolicy):
2688 (QWebPage::linkDelegationPolicy):
2689 (QWebPage::swallowContextMenuEvent):
2690 (QWebPage::updatePositionDependentActions):
2691 (QWebPage::extension):
2692 (QWebPage::networkAccessManager):
2693 * Api/qwebpluginfactory.cpp:
2694 (QWebPluginFactory::QWebPluginFactory):
2695 (QWebPluginFactory::~QWebPluginFactory):
2696 (QWebPluginFactory::refreshPlugins):
2698 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2702 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
2706 (QWebPagePrivate::QWebPagePrivate):
2707 (QWebPagePrivate::mouseReleaseEvent):
2708 (QWebPage::setLinkDelegationPolicy):
2709 (QWebPage::linkDelegationPolicy):
2710 (QWebPage::swallowContextMenuEvent):
2711 (QWebPage::updatePositionDependentActions):
2717 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2721 Added Extension APIs for QWebPage.
2724 (QWebPage::setLinkDelegationPolicy):
2725 (QWebPage::linkDelegationPolicy):
2726 (QWebPage::extension):
2728 * Api/qwebpluginfactory.cpp:
2729 (QWebPluginFactory::extension):
2731 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
2735 Emit loadProgress() signal on loadStarted().
2738 * WebCoreSupport/FrameLoaderClientQt.cpp:
2739 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2741 2008-04-22 Zack Rusin <zack@kde.org>
2745 Fix background propagation from the QWebView's palette.
2747 The background brush of the palette needs to be propagated to the WebCore::FrameView.
2749 * Api/qwebframe.cpp:
2750 (QWebFramePrivate::updateBackground):
2751 * Api/qwebframe_p.h:
2753 (QWebPagePrivate::dropEvent):
2754 (QWebPage::setPalette):
2759 (QWebView::changeEvent):
2761 * WebCoreSupport/FrameLoaderClientQt.cpp:
2763 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2769 We have to include a version in the Safari tag in the user-agent.
2772 (QWebPage::userAgentForUrl):
2774 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
2778 Add visual focusing hint for clear button and
2779 change focus to web page after user enters new URL.
2781 * QtLauncher/main.cpp:
2782 (ClearButton::paintEvent):
2783 (MainWindow::changeLocation):
2785 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2789 Added QWebFrame::hitTestContent() and QWebHitTestResult.
2791 * Api/qwebframe.cpp:
2792 (QWebFrame::hitTestContent):
2794 (QWebHitTestResult::QWebHitTestResult):
2795 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2796 (QWebHitTestResult::operator=):
2797 (QWebHitTestResult::~QWebHitTestResult):
2798 (QWebHitTestResult::isNull):
2799 (QWebHitTestResult::pos):
2800 (QWebHitTestResult::title):
2801 (QWebHitTestResult::linkText):
2802 (QWebHitTestResult::linkUrl):
2803 (QWebHitTestResult::linkTitle):
2804 (QWebHitTestResult::linkTargetFrame):
2805 (QWebHitTestResult::alternateText):
2806 (QWebHitTestResult::imageUrl):
2807 (QWebHitTestResult::pixmap):
2808 (QWebHitTestResult::isContentEditable):
2809 (QWebHitTestResult::isContentSelected):
2810 (QWebHitTestResult::frame):
2812 * Api/qwebframe_p.h:
2813 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2815 (QWebPagePrivate::contextMenuEvent):
2816 (QWebPage::triggerAction):
2820 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2824 Don't crash if an input method query is done without a page.
2828 (QWebView::inputMethodQuery):
2830 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2834 Added re-implementations of QObject::event for future safety.
2836 This makes it easier to fix bugs with the event handling even in patch releases
2837 and is a general style we follow in Qt.
2840 * Api/qwebframe.cpp:
2846 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2850 Fix construction of the user agent.
2852 The user-agent is now composed of
2853 * the platform and subplatform
2854 * the Qt version or application name and version (if set)
2860 (QWebPage::networkAccessManager):
2861 (QWebPage::setPluginFactory):
2862 (QWebPage::pluginFactory):
2863 (QWebPage::userAgentForUrl):
2864 * QtLauncher/main.cpp:
2866 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
2870 Fixes: Pedantic compilation fix
2872 Don't put semi-colons after braces closing namespaces.
2874 * Api/qwebsettings.h:
2876 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2880 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
2882 * Api/qwebframe.cpp:
2883 (QWebFrame::evaluateJavaScript):
2886 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2890 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
2892 Don't show sub-menus that have only actions that are disabled.
2895 (QWebPagePrivate::createContextMenu):
2897 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
2901 Lots of documentation fixes, fixed all qdoc warnings.
2903 * Api/qwebframe.cpp:
2904 (QWebFrame::setTextSizeMultiplier):
2905 * Api/qwebhistoryinterface.cpp:
2906 (gCleanupInterface):
2907 (QWebHistoryInterface::QWebHistoryInterface):
2908 (QWebHistoryInterface::~QWebHistoryInterface):
2910 (QWebPage::inputMethodQuery):
2912 (QWebPage::javaScriptConsoleMessage):
2913 (QWebPage::javaScriptAlert):
2914 (QWebPage::javaScriptConfirm):
2915 (QWebPage::javaScriptPrompt):
2916 (QWebPage::viewportSize):
2917 (QWebPage::acceptNavigationRequest):
2920 (QWebPage::focusNextPrevChild):
2921 (QWebPage::setForwardUnsupportedContent):
2922 (QWebPage::setLinkDelegationPolicy):
2923 (QWebPage::findText):
2924 (QWebPage::settings):
2925 (QWebPage::networkProxy):
2926 (QWebPage::setNetworkAccessManager):
2928 * Api/qwebsettings.cpp:
2929 (QWebSettings::QWebSettings):
2930 (QWebSettings::setIconDatabasePath):
2931 (QWebSettings::iconForUrl):
2932 (QWebSettings::fontFamily):
2937 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
2941 Fix compile failure on solaris-cc
2943 * Api/qwebpage.h: Removed trailing semicolons and moved the private
2944 d-pointer to not confuse the compiler
2946 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2950 Build fix for Qt 4.3
2952 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
2953 always defined. Do this by adding defines to the compiler line
2954 * For users of our API this is not feasible. Every public header file should
2955 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
2956 when we are building everything < 4.4.0 and don't have them defined.
2958 * Api/qwebkitglobal.h:
2960 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2964 * Initialize the WebGraphics with the one found in WebCore
2967 * Api/qwebsettings.cpp:
2968 (QWebSettingsPrivate::apply):
2970 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2974 * Allow TextAreas to be resized.
2975 * No QWebSettings for this is introduced.
2978 * Api/qwebsettings.cpp:
2979 (QWebSettingsPrivate::apply):
2981 2008-04-21 Simon Hausmann <shausman@trolltech.com>
2985 Fixes: QWebView::url property behaviour strange in designer
2987 Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property.
2989 * Api/qwebframe.cpp:
2990 (QWebFrame::setUrl):
2996 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
2998 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3000 Fix compilation with Qt namespaces
3002 * Api/qwebframe.cpp:
3006 2008-04-21 Simon Hausmann <hausmann@webkit.org>
3010 When printing on high resolution printers we need to scale the painter accordingly (for now).
3012 * Api/qwebframe.cpp:
3015 2008-04-21 Simon Hausmann <hausmann@webkit.org>
3019 Provide a print preview in the QtLauncher
3021 * QtLauncher/main.cpp:
3022 (MainWindow::MainWindow):
3023 (MainWindow::showLinkHover):
3024 (MainWindow::print):
3026 2008-04-20 Simon Hausmann <hausmann@webkit.org>
3028 Reviewed by Alp Toker.
3030 Share the printing code between the Gtk and the Qt port
3031 and added printing to the Qt WebKit API.
3033 * Api/qwebframe.cpp:
3040 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
3042 Qt build fix (renderer() -> contentRenderer()).
3044 * Api/qwebframe.cpp:
3045 (QWebFrame::renderTreeDump):
3046 (QWebFrame::render):
3048 2008-04-18 Simon Hausmann <hausmann@webkit.org>
3052 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
3054 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
3055 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
3056 rules of the Qt API.
3058 * Api/qwebframe.cpp:
3059 (QWebFrame::addToJavaScriptWindowObject):
3060 (QWebFrame::toHtml):
3061 (QWebFrame::toPlainText):
3063 (QWebFrame::setContent):
3064 (QWebFrame::setScrollBarPolicy):
3065 (QWebFrame::render):
3066 (QWebFrame::setTextSizeMultiplier):
3067 (QWebFrame::textSizeMultiplier):
3070 * Api/qwebhistory.cpp:
3071 * Api/qwebhistory.h:
3073 (QWebPagePrivate::QWebPagePrivate):
3074 (QWebPagePrivate::~QWebPagePrivate):
3075 (QWebPagePrivate::acceptNavigationRequest):
3076 (webActionForContextMenuAction):
3077 (QWebPagePrivate::updateAction):
3078 (QWebPagePrivate::keyPressEvent):
3080 (QWebPage::javaScriptPrompt):
3081 (QWebPage::createWindow):
3082 (QWebPage::triggerAction):
3083 (QWebPage::setViewportSize):
3084 (QWebPage::acceptNavigationRequest):
3086 (QWebPage::focusNextPrevChild):
3087 (QWebPage::setForwardUnsupportedContent):
3088 (QWebPage::forwardUnsupportedContent):
3089 (QWebPage::setLinkDelegationPolicy):
3090 (QWebPage::findText):
3091 (QWebPage::networkAccessManager):
3092 (QWebPageContext::imageUrl):
3093 (QWebPageContext::image):
3096 * Api/qwebsettings.cpp:
3097 (QWebSettingsPrivate::apply):
3098 (QWebSettings::QWebSettings):
3099 (QWebSettings::setIconDatabasePath):
3100 (QWebSettings::iconDatabasePath):
3101 (QWebSettings::clearIconDatabase):
3102 (QWebSettings::iconForUrl):
3103 (QWebSettings::setWebGraphic):
3104 (QWebSettings::fontFamily):
3105 (QWebSettings::setAttribute):
3106 (QWebSettings::testAttribute):
3107 (QWebSettings::resetAttribute):
3108 * Api/qwebsettings.h:
3110 (QWebView::setPage):
3112 (QWebView::setTextSizeMultiplier):
3113 (QWebView::textSizeMultiplier):
3114 (QWebView::findText):
3116 (QWebView::mouseMoveEvent):
3118 * QtLauncher/main.cpp:
3119 (MainWindow::MainWindow):
3121 * WebCoreSupport/ChromeClientQt.cpp:
3122 (WebCore::ChromeClientQt::ChromeClientQt):
3123 (WebCore::ChromeClientQt::setWindowRect):
3124 (WebCore::ChromeClientQt::toolbarsVisible):
3125 (WebCore::ChromeClientQt::setStatusbarVisible):
3126 (WebCore::ChromeClientQt::statusbarVisible):
3127 (WebCore::ChromeClientQt::setScrollbarsVisible):
3128 (WebCore::ChromeClientQt::setResizable):
3129 (WebCore::ChromeClientQt::scrollBackingStore):
3130 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3131 (WebCore::ChromeClientQt::setToolTip):
3132 * WebCoreSupport/ChromeClientQt.h:
3133 * WebCoreSupport/FrameLoaderClientQt.cpp:
3134 (WebCore::FrameLoaderClientQt::setFrame):
3135 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
3136 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3137 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
3138 (WebCore::FrameLoaderClientQt::createFrame):
3139 (WebCore::FrameLoaderClientQt::objectContentType):
3140 * WebCoreSupport/FrameLoaderClientQt.h:
3141 * WebCoreSupport/InspectorClientQt.cpp:
3143 2008-04-18 Simon Hausmann <hausmann@webkit.org>
3147 Added QWebView::find/QWebFrame::find.
3150 (QWebPage::focusNextPrevChild):
3157 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
3161 fix potential crash when loading image(s)
3163 Crash may occur. If compiled with 4.3, the variable is not initialized.
3164 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
3167 (QWebPagePrivate::QWebPagePrivate):
3169 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3173 Update the micro focus for input methods as soon as the composition mode changes
3174 or the caret/selection changes.
3180 (QWebView::setPage):
3181 * WebCoreSupport/EditorClientQt.cpp:
3182 (WebCore::EditorClientQt::respondToChangedSelection):
3183 (WebCore::EditorClientQt::setInputMethodState):
3185 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3189 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
3190 it yields undefined behaviour or wrong default codec initialization.
3193 * QtLauncher/main.cpp:
3194 (WebPage::createWindow):
3196 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
3200 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
3203 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
3204 selections then we support copy & paste into the selection.
3206 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
3210 Add basic input method support.
3214 (QWebPagePrivate::dropEvent):
3215 (QWebPagePrivate::inputMethodEvent):
3216 (QWebPage::inputMethodQuery):
3221 (QWebView::QWebView):
3222 (QWebView::inputMethodQuery):
3223 (QWebView::inputMethodEvent):
3225 * WebCoreSupport/EditorClientQt.cpp:
3226 (WebCore::EditorClientQt::setInputMethodState):
3228 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3232 Added (QWebFrame|QWebView)::textZoomFactor.
3235 * Api/qwebframe.cpp:
3236 (QWebFrame::setTextZoomFactor):
3237 (QWebFrame::textZoomFactor):
3240 (QWebView::setTextZoomFactor):
3241 (QWebView::textZoomFactor):
3244 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
3248 Added simple scrolling API to QWebFrame.
3250 The intent is that it works similar to QAbstractScrollArea.
3253 * Api/qwebframe.cpp:
3254 (QWebFrame::setScrollBarValue):
3255 (QWebFrame::scrollBarValue):
3256 (QWebFrame::scrollBarMaximum):
3257 (QWebFrame::scrollBarMinimum):
3260 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
3264 Fixes: implement the OpenFrameInNewWindow action.
3268 (QWebPage::triggerAction):
3270 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
3274 Fix compilation with Qt namespaces
3276 Qt can be configured to have all of its classes inside a specified namespaces.
3277 This is for example used in plugin/component environments like Eclipse.
3279 This change makes it possible to let the Qt port compile against a namespaced
3280 Qt by the use of macros Qt provides to properly forward declare Qt classes in
3286 * Api/qwebpluginfactory.h:
3287 * Api/qwebsettings.h:
3290 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
3294 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
3298 (QWebPage::triggerAction):
3300 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
3304 Fixes: Right click, and "Open image" open the link instead of the image.
3309 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
3313 Added doc stub for QWebSettings so class docs are generated
3316 * Api/qwebsettings.cpp:
3317 (QWebSettings::QWebSettings):
3319 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3323 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
3325 * The question is if these signals belong to QWebPage or QWebFrame.
3326 -It is more easy to have them in QWebPage because ScrollView is invoking
3327 the ChromeClient with the right coordinates
3328 -On the other hand someone wants to render frames separately. But this is partly
3329 doomed as you can have overlapping frames and what you paint would not relate to
3330 what you normally see on webpages.
3335 * WebCoreSupport/ChromeClientQt.cpp:
3336 (WebCore::ChromeClientQt::scrollBackingStore):
3337 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3339 2008-04-03 Simon Hausmann <hausmann@webkit.org>
3341 Reviewed by Mark Rowe.
3343 Roll out r31599 and r31605 again after discussion with Mark Rowe.
3345 * Api/qwebframe.cpp:
3347 * Api/qwebsettings.cpp:
3348 (QWebSettings::iconForUrl):
3350 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3354 * Change IconDatabase::iconForPageURL to return more information. E.g. if
3355 an image has been found, or if the loading of an image has been scheduled.
3356 * Update FrameLoader to use another method to trigger reading from disk
3357 * Update the QWebFrame and QWebSettings
3359 * Api/qwebframe.cpp:
3361 * Api/qwebsettings.cpp:
3362 (QWebSettings::iconForUrl):
3364 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3368 * Safari is using the IconDatabase the following way (assumption). Before they
3369 call iconDatabase()->open they "retain" all URLs they are interested in, these
3370 could come from the history.
3371 * When opening the iconDatabase() a thread will be started that is going to import
3372 the URLs, all none manually retained URLs are scheduled for removal. The removal
3373 is going to happen when the next icon gets stored in the database.
3374 * We do not have any IconDatabase code, we can not retain the URLs before opening the
3375 database. To disable the automatic pruning of the icons we will ask the IconDatabase
3376 to delay this operation. This means our IconDatabase, when used, will grow, so we should
3377 try to have a IconDatabase class in 4.4.
3378 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
3381 * Api/qwebsettings.cpp:
3382 (QWebSettings::clearIconDatabase):
3383 * Api/qwebsettings.h:
3385 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
3389 Add a way to get the site icon for a url
3390 static QPixmap iconForUrl(const QUrl &url);
3393 * Api/qwebsettings.cpp:
3394 (QWebSettings::iconForUrl):
3395 * Api/qwebsettings.h:
3397 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3401 * Update the Copyright info in QWebSettings
3404 * Api/qwebsettings.cpp:
3405 * Api/qwebsettings.h:
3407 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3411 * The isEmpty check is not needed anymore with the earlier backport
3414 * Api/qwebframe.cpp:
3417 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3421 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
3422 is not exporting enough to create the output in DRT itself. Settle with the approach
3423 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
3424 * run-webkit-tests http/tests(/loading) can now be executed.
3425 * For tests in loading/ directories we are going to throw away the dirty
3426 QWebPage to start with something clean.
3429 * WebCoreSupport/FrameLoaderClientQt.cpp:
3430 (qt_dump_frame_loader):
3431 (drtDescriptionSuitableForTestResult):
3432 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3433 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3434 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3435 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3436 (WebCore::FrameLoaderClientQt::dispatchWillClose):
3437 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3438 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3439 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3440 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
3441 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3442 (WebCore::FrameLoaderClientQt::registerForIconNotification):
3443 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3444 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3446 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3450 * Export the PageCache and Cache capacity call one to one. This is only there
3451 to allow the QtLauncher to play with caching.
3452 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
3453 and determine certain values automatically.
3456 * Api/qwebsettings.cpp:
3457 (QWebSettings::setPageCacheCapacity):
3458 (QWebSettings::setObjectCacheCapacities):
3459 * Api/qwebsettings.h:
3460 * QtLauncher/main.cpp:
3462 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3466 Prepapre everything for enabling the PageCache for the Qt Platform:
3467 * Claim that we can cache pages
3468 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
3469 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
3471 Differences to the Windows port:
3472 * attachToWindow/detachFromWindow is not called and is not (yet) part
3473 of Widget/ScrollView of the Qt platform. We might need that for plugin
3474 support in the future.
3475 * We store the margin's and scrolling flag inside QWebFrame and use it when
3476 creating the FrameView.
3479 * API to call pageCache()->setCapacity(XYZ);
3482 * Api/qwebframe.cpp:
3483 (QWebFramePrivate::init):
3484 * Api/qwebframe_p.h:
3485 (QWebFramePrivate::QWebFramePrivate):
3487 (QWebPagePrivate::createMainFrame):
3488 * WebCoreSupport/FrameLoaderClientQt.cpp:
3489 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3490 (WebCore::FrameLoaderClientQt::blockedError):
3492 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3496 * For the PageCache support we do not want to create a FrameView in the constructor
3497 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
3498 create a QWebFrame if no mainFrame is present and this gets called when we try to
3499 create a FrameView...
3500 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
3505 (QWebPagePrivate::QWebPagePrivate):
3506 (QWebPage::triggerAction):
3509 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3513 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
3515 * WebCoreSupport/FrameLoaderClientQt.cpp:
3518 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3522 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
3523 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
3524 call and should stay valid until the destruction of the QWebFrame.
3525 * Currently the same checking is not needed for m_frame as it will only set to 0 in
3526 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
3530 * WebCoreSupport/FrameLoaderClientQt.cpp:
3531 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3532 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3533 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
3534 (WebCore::FrameLoaderClientQt::objectContentType):
3535 (WebCore::FrameLoaderClientQt::createPlugin):
3537 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3541 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
3542 and WebCore::Frame get destroyed if we leave site with subframes and on the
3543 end of the application.
3544 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
3545 do not want to add an extra reference. Without this we are leaking subframes.
3546 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
3547 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
3548 in the frameLoaderDestroyed method to do that.
3549 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
3550 zero in the FrameLoaderClientQt to avoid bad things.
3553 * Api/qwebframe.cpp:
3554 (QWebFrame::~QWebFrame):
3555 * WebCoreSupport/FrameLoaderClientQt.cpp:
3556 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3557 (WebCore::FrameLoaderClientQt::objectContentType):
3558 * WebCoreSupport/FrameLoaderClientQt.h:
3560 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3564 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
3565 QWebFrame should have the same lifetime everything else is a leak
3568 * Api/qwebframe.cpp:
3569 (QWebFramePrivate::init):
3570 * Api/qwebframe_p.h:
3571 * WebCoreSupport/FrameLoaderClientQt.cpp:
3573 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3577 * Do not store the QWebFrame associated with a ScrollView/FrameView
3578 in the WebCore::Widget.
3579 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
3580 and QWebFramePrivate::kit function to convert from and to QWebFrame.
3583 * Api/qwebframe.cpp:
3584 (QWebFramePrivate::init):
3586 (QWebPagePrivate::createMainFrame):
3588 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3592 * Do not store the FrameView in the QWebFrame and cope with the situation when
3593 a WebCore::Frame has no WebCore::FrameView.
3596 * Api/qwebframe.cpp:
3597 (QWebFramePrivate::init):
3598 (QWebFramePrivate::horizontalScrollBar):
3599 (QWebFramePrivate::verticalScrollBar):
3600 (QWebFrame::innerText):
3601 (QWebFrame::renderTreeDump):
3602 (QWebFrame::setVerticalScrollBarPolicy):
3603 (QWebFrame::setHorizontalScrollBarPolicy):
3604 (QWebFrame::render):
3605 (QWebFrame::layout):
3607 * Api/qwebframe_p.h:
3608 (QWebFramePrivate::QWebFramePrivate):
3610 (QWebPagePrivate::updateEditorActions):
3611 (QWebPagePrivate::mouseMoveEvent):
3612 (QWebPagePrivate::mousePressEvent):
3613 (QWebPagePrivate::mouseDoubleClickEvent):
3614 (QWebPagePrivate::contextMenuEvent):
3615 (QWebPagePrivate::wheelEvent):
3616 (QWebPage::triggerAction):
3617 * WebCoreSupport/FrameLoaderClientQt.cpp:
3619 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3623 * Change the order of the methods to match with the FrameLoaderClient.h to ease
3624 removing methods in the future.
3626 * WebCoreSupport/FrameLoaderClientQt.h:
3628 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3632 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
3634 * WebCoreSupport/FrameLoaderClientQt.cpp:
3635 (WebCore::FrameLoaderClientQt::detachedFromParent4):
3636 * WebCoreSupport/FrameLoaderClientQt.h:
3638 2008-03-25 Brady Eidson <beidson@apple.com>
3642 Remove newly obsolete FrameLoaderClient methods
3644 * WebCoreSupport/FrameLoaderClientQt.cpp:
3645 * WebCoreSupport/FrameLoaderClientQt.h:
3647 2008-03-22 Mark Rowe <mrowe@apple.com>
3651 * WebCoreSupport/FrameLoaderClientQt.cpp:
3654 2008-03-18 Simon Hausmann <hausmann@webkit.org>
3658 Fix the Qt build. Don't return void in non-void functions.
3660 * Api/qwebpluginfactory.cpp:
3661 (QWebPluginFactory::extension):
3663 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
3667 Don't use RefPtr in classes you haven't seen the implementation of.
3669 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
3670 cannot *use* said objects until Foo is defined. This is true even for
3671 initialisation with a 0.
3673 Seems the HP aCC compiler is more strict here than gcc.
3675 * Api/qwebframe_p.h:
3677 2008-03-14 Simon Hausmann <hausmann@webkit.org>
3681 * Api/qwebframe.cpp:
3682 (QWebFrame::setHtml):
3683 (QWebFrame::setContent):
3685 2008-03-13 Simon Hausmann <hausmann@webkit.org>
3689 * Api/qwebframe.cpp:
3690 (QWebFrame::addToJSWindowObject):
3692 2008-03-12 Simon Hausmann <hausmann@webkit.org>
3694 Fix compilation against Qt 4.3
3700 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
3704 * WebCoreSupport/FrameLoaderClientQt.cpp:
3705 (FrameLoaderClientQt::CreatePlugin):
3707 2008-03-11 Simon Hausmann <hausmann@webkit.org>
3709 Fix the Qt build (silly typo).
3711 * QtLauncher/main.cpp:
3712 (MainWindow::MainWindow):
3714 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
3718 Moved obscuring progress bar to the lower right corner.
3720 * QtLauncher/main.cpp:
3721 (MainWindow::MainWindow):
3722 (MainWindow::resizeEvent):
3724 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
3728 Added reload action and grouped stop and reload actions together.
3730 * QtLauncher/main.cpp:
3731 (MainWindow::MainWindow):
3733 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3737 * Set a Icon on the QAction if we have one.
3742 2008-03-11 Simon Hausmann <hausmann@webkit.org>
3746 * Api/qwebframe.cpp:
3747 (QWebFrame::addToJSWindowObject):
3749 2008-03-07 Simon Hausmann <hausmann@webkit.org>
3751 Reviewed by Darin Adler.
3755 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
3757 * Api/qwebnetworkinterface.cpp:
3758 (QWebNetworkManager::add):
3759 (QWebNetworkManager::cancel):
3760 (QWebNetworkManager::started):
3761 (QWebNetworkManager::data):
3762 (QWebNetworkManager::finished):
3763 * Api/qwebnetworkinterface_p.h:
3764 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
3765 * Api/qwebobjectplugin.cpp: Removed.
3766 * Api/qwebobjectplugin.h: Removed.
3767 * Api/qwebobjectplugin_p.h: Removed.
3768 * Api/qwebobjectpluginconnector.cpp: Removed.
3769 * Api/qwebobjectpluginconnector.h: Removed.
3771 (QWebPagePrivate::QWebPagePrivate):
3772 (QWebPage::setPluginFactory):
3773 (QWebPage::pluginFactory):
3776 * Api/qwebpluginfactory.cpp: Added.
3777 (QWebPluginFactory::QWebPluginFactory):
3778 (QWebPluginFactory::~QWebPluginFactory):
3779 (QWebPluginFactory::refreshPlugins):
3780 (QWebPluginFactory::extension):
3781 * Api/qwebpluginfactory.h: Added.
3783 * WebCoreSupport/FrameLoaderClientQt.cpp:
3784 (WebCore::FrameLoaderClientQt::objectContentType):
3785 (WebCore::FrameLoaderClientQt::createPlugin):
3787 2008-03-07 Simon Hausmann <hausmann@webkit.org>
3791 * Api/qwebframe.cpp:
3793 2008-03-04 Sam Weinig <sam@webkit.org>
3795 Reviewed by Mark Rowe.
3797 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
3800 * Api/qwebframe.cpp:
3801 (QWebFrame::addToJSWindowObject):
3803 2008-03-04 Mark Rowe <mrowe@apple.com>
3805 Another go at fixing the Qt build.
3807 * Api/qwebframe.cpp:
3808 (QWebFrame::addToJSWindowObject):
3810 2008-02-24 Darin Adler <darin@apple.com>
3814 - remove separate client calls for "standard" and "reload' history
3816 * WebCoreSupport/FrameLoaderClientQt.cpp:
3817 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3818 * WebCoreSupport/FrameLoaderClientQt.h:
3820 2008-02-24 Darin Adler <darin@apple.com>
3822 - another try at fixing the build
3824 * Api/qwebframe.cpp:
3825 (QWebFrame::load): Replace new FormData with FormData::create.
3827 2008-02-22 Sam Weinig <sam@webkit.org>
3831 * Api/qwebhistoryinterface.cpp:
3833 2008-02-22 Sam Weinig <sam@webkit.org>
3835 Rubber-stamped by Adam Roben.
3837 Rid the project of the Devil known as DeprecatedString!
3839 * Api/qwebhistory.cpp:
3840 * Api/qwebhistoryinterface.cpp:
3842 2008-02-18 Darin Adler <darin@apple.com>
3846 * Api/qwebnetworkinterface.cpp:
3847 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
3849 2008-01-24 David Boddie <dboddie@trolltech.com>
3853 Documentation tidying.
3856 * Api/qwebframe.cpp:
3857 * Api/qwebhistoryinterface.cpp:
3860 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
3864 Text for translations were used wrongly as comments
3867 * WebCoreSupport/FrameLoaderClientQt.cpp:
3869 (WebCore::FrameLoaderClientQt::cannotShowURLError):
3870 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3871 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3872 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3873 (WebCore::FrameLoaderClientQt::shouldFallBack):
3875 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3879 * We have a KURL->QUrl conversion on KURL itself, make use of it.
3880 * This conversion is supposed to be loss-free
3883 * Api/qwebframe.cpp:
3885 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3887 * Rubber stamped by Simon
3889 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
3890 This was found while working on the page-cache, other ports are not affected.
3892 * WebCoreSupport/FrameLoaderClientQt.cpp:
3893 (WebCore::FrameLoaderClientQt::createFrame):
3895 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
3897 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3899 Fix Qtopia compilation with QT_NO_TOOLTIP
3902 * WebCoreSupport/ChromeClientQt.cpp:
3903 (WebCore::ChromeClientQt::print):
3905 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
3909 Doc: Replaced \code with snippets in the docs
3914 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
3918 Tweak key presses even to match commonly expected behavior
3919 - space key == page down
3920 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
3921 - Use font height rather then a hard coded "10" for left, right, up, down
3922 - Ctrl-Up moves to the top of the page
3923 - Ctrl-Down move to the bottom of the page
3924 - Backspace == GoBack
3925 - Shift-Backspace == GoForward
3929 (dropActionToDragOp):
3930 (dragOpToDropAction):
3931 (QWebPagePrivate::keyPressEvent):
3933 2008-01-23 Simon Hausmann <hausmann@webkit.org>
3937 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
3939 Added two signals to QWebPage to handle downloading of links and handling of
3940 unsupported content.
3944 (QWebPage::triggerAction):
3946 * WebCoreSupport/FrameLoaderClientQt.cpp:
3947 (WebCore::FrameLoaderClientQt::download):
3948 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3949 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
3950 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
3951 (WebCore::FrameLoaderClientQt::willUseArchive):
3953 2008-01-22 Lars Knoll <lars@trolltech.com>
3957 setup a family for cursive and fantasy fonts as well.
3960 * Api/qwebsettings.cpp:
3961 (QWebSettings::QWebSettings):
3963 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
3967 Implement ChromeClientQt::setToolTip
3968 Implement ChromeClientQt::mouseDidMoveOverElement
3973 * WebCoreSupport/ChromeClientQt.cpp:
3974 (WebCore::ChromeClientQt::ChromeClientQt):
3975 (WebCore::ChromeClientQt::focus):
3976 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3977 (WebCore::ChromeClientQt::setToolTip):
3978 (WebCore::ChromeClientQt::print):
3979 * WebCoreSupport/ChromeClientQt.h:
3981 2008-01-21 Darin Adler <darin@apple.com>
3983 Reviewed by John Sullivan.
3985 - updated for changes to ChromeClient database functions
3987 * WebCoreSupport/ChromeClientQt.cpp:
3988 (WebCore::ChromeClientQt::exceededDatabaseQuota):
3989 * WebCoreSupport/ChromeClientQt.h:
3991 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
3995 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
3998 * Api/qwebhistoryinterface.h:
4000 2008-01-21 Adam Treat <treat@kde.org>
4004 * Don't leak the d-pointer in QWebSettings.
4007 * Api/qwebsettings.cpp:
4008 (QWebSettings::~QWebSettings):
4010 2008-01-21 Simon Hausmann <hausmann@webkit.org>
4014 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
4016 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
4021 2008-01-21 Simon Hausmann <hausmann@webkit.org>
4025 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
4027 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
4028 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
4029 and make the return value depend on whether we successfully determined a focusable
4031 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
4032 if we could not handle the focus chain ourselves.
4033 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
4034 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
4035 used to control the situation of stepping out of the focus chain inside the page.
4036 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
4037 The layout tests expect this to be disabled but for the user it seems sensible to have it
4038 on by default, hence the default in qwebsettings.cpp
4042 (QWebPage::focusNextPrevChild):
4043 * Api/qwebsettings.cpp:
4044 (QWebSettings::QWebSettings):
4045 * Api/qwebsettings.h:
4047 (QWebView::QWebView):
4048 (QWebView::focusNextPrevChild):
4049 * WebCoreSupport/ChromeClientQt.cpp:
4050 (WebCore::ChromeClientQt::canTakeFocus):
4051 (WebCore::ChromeClientQt::takeFocus):
4053 2008-01-18 Simon Hausmann <hausmann@webkit.org>
4057 Coding style fixes and added a comment about the include order.
4061 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
4063 Reviewed by Simon Hausmann <hausmann@webkit.org>.
4065 Add use of precompiled header, when building inside Qt.
4067 Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me.
4070 * WebKit_pch.h: Added.
4072 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
4076 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
4077 we will see a crash in a HashSet.
4078 * It is crashing there because the StringImpl of an empty String is 0.
4079 * We avoid this crash by checking for isEmpty() in WebKit as there is no
4080 use to ask the iconDatabase for an empty string. We will fallback to the
4084 * Api/qwebframe.cpp:
4087 2008-01-17 Simon Hausmann <hausmann@webkit.org>
4091 Minor documentation fixes
4094 * Api/qwebframe.cpp:
4097 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4101 Fix form elements not focusing correctly after the qt widget lost its focus.
4103 When receiving a focus out event notify the focus controller. Otherwise its
4104 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
4105 event shortcuts and doesn't call setActive(true).
4110 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4114 Lots of updates to the documentation.
4117 * Api/qwebframe.cpp:
4118 * Api/qwebhistory.cpp:
4120 (QWebPagePrivate::dropEvent):
4121 (QWebPage::history):
4123 (QWebPage::triggerAction):
4124 (QWebPage::viewportSize):
4125 (QWebPage::navigationRequested):
4128 (QWebPageContext::targetFrame):
4132 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4136 Added a urlChanged signals to QWebFrame and QWebView.
4139 * Api/qwebframe.cpp:
4142 (QWebView::setPage):
4144 * WebCoreSupport/FrameLoaderClientQt.cpp:
4146 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4150 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
4153 * Api/qwebsettings.cpp:
4154 (QWebSettings::setIconDatabaseEnabled):
4156 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4160 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
4164 (QWebPage::createWindow):
4166 (QWebView::createWindow):
4169 2008-01-17 Lars Knoll <lars@trolltech.com>
4173 add a 0 pointer check.
4175 Fixes a crash in the demo web browser.
4177 * WebCoreSupport/FrameLoaderClientQt.cpp:
4178 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
4180 2008-01-17 Simon Hausmann <hausmann@webkit.org>
4184 Fix QWebFrame::title().
4186 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
4187 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
4190 * Api/qwebframe.cpp:
4193 2008-01-17 Simon Hausmann <hausmann@webkit.org>
4195 Reviewed by Maciej, Lars, Holger.
4197 http://bugs.webkit.org/show_bug.cgi?id=16589
4199 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
4201 * Api/qwebnetworkinterface.cpp:
4202 (QWebNetworkRequestPrivate::init):
4203 (QWebNetworkManager::started):
4205 2008-01-17 Warwick Allison <warwick@trolltech.com>
4207 Reviewed by Simon Hausmann <hausmann@webkit.org>.
4209 Follow QWidget::keyPressEvent advice and call parents.
4211 Without this, Back does not work in Qtopia, for example.
4215 (QWebView::keyPressEvent):
4216 (QWebView::keyReleaseEvent):
4218 2008-01-17 Simon Hausmann <hausmann@webkit.org>
4222 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
4224 * Api/qwebnetworkinterface.cpp:
4225 (QWebNetworkManager::started):
4227 2008-01-17 Simon Hausmann <shausman@trolltech.com>
4231 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
4234 * Api/qwebframe.cpp:
4236 * WebCoreSupport/FrameLoaderClientQt.cpp:
4238 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
4240 Reviewed by Simon Hausmann <hausmann@webkit.org>.
4242 Fixes compilation with QT_NO_DRAGANDDROP
4248 (QWebView::dragEnterEvent):
4249 (QWebView::dragLeaveEvent):
4250 (QWebView::dragMoveEvent):
4251 (QWebView::dropEvent):
4253 2008-01-17 Simon Hausmann <hausmann@webkit.org>
4257 Fix compilation, removed obsolete privateBrowsingEnabled() method.
4259 * WebCoreSupport/FrameLoaderClientQt.cpp:
4261 2008-01-16 Lars Knoll <lars@trolltech.com>
4263 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
4265 Removed a whole bunch of notImplemented() warnings.
4267 I don't want to hide the real warnings in lots of things that
4268 I am by now pretty certain we won't need.
4271 * WebCoreSupport/FrameLoaderClientQt.cpp:
4272 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
4273 (WebCore::FrameLoaderClientQt::canShowMIMEType):
4275 2008-01-16 Simon Hausmann <hausmann@webkit.org>
4279 Fix crash when bringing up the context menu on maps.google.com.
4281 If the website provides its own context menu then we don't have a ContextMenu pointer.
4285 (QWebPagePrivate::contextMenuEvent):
4287 2008-01-16 Simon Hausmann <hausmann@webkit.org>
4291 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
4294 (QWebView::mouseMoveEvent):
4295 (QWebView::mousePressEvent):
4296 (QWebView::mouseDoubleClickEvent):
4297 (QWebView::mouseReleaseEvent):
4298 (QWebView::contextMenuEvent):
4299 (QWebView::wheelEvent):
4300 (QWebView::keyPressEvent):
4301 (QWebView::keyReleaseEvent):
4302 (QWebView::focusInEvent):
4303 (QWebView::focusOutEvent):
4304 (QWebView::dragEnterEvent):
4305 (QWebView::dragLeaveEvent):
4306 (QWebView::dragMoveEvent):
4307 (QWebView::dropEvent):
4308 (QWebView::focusNextPrevChild):
4310 2008-01-16 Simon Hausmann <hausmann@webkit.org>
4314 Made the url property read-write.
4318 2008-01-16 Simon Hausmann <hausmann@webkit.org>
4322 Don't crash when showing a default initialized QWebView that has no page/frame yet.
4325 (QWebView::paintEvent):
4327 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
4331 Change hoveringOverLink implementation to have less issues.
4333 * Currently we only compare a pointer. In the worst case we
4334 could delete the Element we have pointed to and a new one
4335 gets the same address. But even if that doesn't happen the
4336 WebCore::Element is mutable and JavaScript could change the
4337 URL, Title or Content. So we have to compare all these three
4339 * This does not seem to be a performance impact.
4343 (QWebPagePrivate::mouseMoveEvent):
4346 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
4350 * Move the hoverElement from QWebFrame to QWebPage. As it is
4354 * Api/qwebframe_p.h:
4355 (QWebFramePrivate::QWebFramePrivate):
4357 (QWebPagePrivate::mouseMoveEvent):
4360 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
4364 EventHandler changes/fixes in QWebPage:
4365 -mouse{Press,Move,Release}Event:
4366 Send the event always to the mainFrame of the QWebPage.
4368 -contextMenuEvent, key{Press,Release}Event:
4369 Send the event to the focused frame.
4371 This is following the Windows port and fixes a issue with the
4372 Web Inspector where we were sending the events to a wrong frame.
4374 It is guaranteed that the mainFrame will always have an eventHandler
4375 and frameView set. There is no need to check for this in QWebPage.
4378 * Api/qwebframe.cpp:
4379 (QWebFramePrivate::init):
4380 * Api/qwebframe_p.h:
4381 (QWebFramePrivate::QWebFramePrivate):
4383 (QWebPagePrivate::updateEditorActions):
4384 (QWebPagePrivate::mouseMoveEvent):
4385 (QWebPagePrivate::mousePressEvent):
4386 (QWebPagePrivate::mouseDoubleClickEvent):
4387 (QWebPagePrivate::mouseReleaseEvent):
4388 (QWebPagePrivate::contextMenuEvent):
4389 (QWebPagePrivate::wheelEvent):
4390 (QWebPagePrivate::keyPressEvent):
4391 (QWebPagePrivate::keyReleaseEvent):
4392 (QWebPagePrivate::focusInEvent):
4395 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
4399 * Add core and kit functions to QWebFramePrivate to convert from
4400 QWebFrame to WebCore::Frame and vice versa.
4403 * Api/qwebframe.cpp:
4404 (QWebFramePrivate::core):
4405 (QWebFramePrivate::kit):
4407 * Api/qwebframe_p.h:
4409 2008-01-16 Lars Knoll <lars@trolltech.com>
4413 add conversion methods from and to QUrl to KURL.
4415 Use them in the places I found at the moment. Fixes a bug
4416 where form data was encoded twice.
4417 Also fix QWebSettings to take a QUrl for the user style sheet
4421 * Api/qwebframe.cpp:
4424 (QWebPage::createPlugin):
4426 (QWebPage::triggerAction):
4427 * Api/qwebsettings.cpp:
4428 (QWebSettingsPrivate::apply):
4429 * Api/qwebsettings.h:
4430 * WebCoreSupport/ChromeClientQt.cpp:
4431 (WebCore::ChromeClientQt::createWindow):
4432 (WebCore::ChromeClientQt::show):
4434 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
4438 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
4439 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
4440 the QWebPage/WebInspector automatically.
4443 * WebCoreSupport/InspectorClientQt.cpp:
4444 (WebCore::InspectorClientWebPage::createWindow):
4445 (WebCore::InspectorClientView::InspectorClientView):
4447 2008-01-10 Maciej Stachowiak <mjs@apple.com>
4451 - remove SecurityOriginData and fold its functionality into SecurityOrigin
4453 * WebCoreSupport/ChromeClientQt.cpp:
4454 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
4455 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
4456 * WebCoreSupport/ChromeClientQt.h:
4458 2008-01-10 Lars Knoll <lars@trolltech.com>
4462 document QWebHistory
4465 * Api/qwebhistory.cpp:
4466 (QWebHistoryItem::QWebHistoryItem):
4467 (QWebHistoryItem::operator=):
4468 (QWebHistoryItem::~QWebHistoryItem):
4469 (QWebHistoryItem::originalUrl):
4470 (QWebHistoryItem::currentUrl):
4471 (QWebHistoryItem::title):
4472 (QWebHistoryItem::icon):
4473 (QWebHistory::canGoBack):
4474 (QWebHistory::canGoForward):
4475 (QWebHistory::goBack):
4476 (QWebHistory::goForward):
4477 (QWebHistory::goToItem):
4478 * Api/qwebhistory.h:
4480 2008-01-10 Simon Hausmann <hausmann@webkit.org>
4484 Make the reset() functions not do any