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}
9 (QWebFrame::evaluateJavaScript):
11 2008-11-19 Darin Fisher <darin@chromium.org>
15 https://bugs.webkit.org/show_bug.cgi?id=22373
16 Ports busted by addition of ScriptValue.{h,cpp}
20 2008-11-19 Simon Hausmann <hausmann@webkit.org>
22 Fix the Qt build, remove file referenced in the qrc file that does not
23 exist and is not needed.
25 * tests/qwebframe/qwebframe.qrc:
27 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
29 Rubber-stamped by Tor Arne Vestbø.
31 Missing file in new unit test for QWebFrame (r38493).
33 * tests/qwebframe/qwebframe.pro:
34 * tests/qwebframe/qwebframe.qrc: Added.
36 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
38 Rubber-stamped by Simon Hausmann.
40 Make sure QWidget based plugins are invisible until placed into the layout
42 * WebCoreSupport/FrameLoaderClientQt.cpp:
43 (WebCore::FrameLoaderClientQt::createPlugin):
45 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
47 Reviewed by Simon Hausmann.
49 React properly to frame rect changes for QWidget based plugins
51 We now set the geometry of the QWidget in frameRectsChanged,
52 intead of setFrameRect, which means we pick up the changes to
53 the frame rect when scrolling. We also set a mask on the
54 widget to keep it from painting over scrollbars and the like
56 * WebCoreSupport/FrameLoaderClientQt.cpp:
59 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
61 Reviewed by Tor Arne Vestbø.
63 Fix crash when trying to pick a file using the file chooser.
65 * WebCoreSupport/ChromeClientQt.cpp:
66 (WebCore::ChromeClientQt::runOpenPanel):
68 2008-11-18 Holger Hans Peter Freyther <zecke@selfish.org>
70 Reviewed by Simon Hausmann.
72 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
74 After Hyatt's work on Widget and ScrollView there is little difference
75 between the implementation of Qt, Gtk+ and Win. In fact any kind of
76 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
77 port and the Qt port has at least one of them left.
79 The only difference between the implementations is in getting the the
80 IntSize for the new FrameView, the background color to be applied and
81 eventually some post processing.
83 Unify the implementations by providing a static helper function that
84 takes a Frame, IntSize, color and transparency bit and calling it from
85 the Gtk+, the Qt and the Windows port.
90 (QWebPage::setPalette):
91 * WebCoreSupport/FrameLoaderClientQt.cpp:
92 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
94 2008-11-17 Geoffrey Garen <ggaren@apple.com>
102 2008-11-17 Ariya Hidayat <ariya.hidayat@trolltech.com>
104 Reviewed by Tor Arne Vestbø and Simon Hausmann.
106 Fix regression when loading resources from Qt resource system using qrc:/.
108 Added a unit test to catch future regression.
111 (QWebPagePrivate::QWebPagePrivate):
112 * tests/qwebframe/image.png: Added.
113 * tests/qwebframe/tst_qwebframe.cpp:
115 2008-11-16 Darin Adler <darin@apple.com>
119 * Api/qwebhistory.cpp: Added include of "KURL.h".
121 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
123 Reviewed by Simon Hausmann.
125 Added some basic unit tests for the public database API.
127 * tests/qwebpage/tst_qwebpage.cpp:
128 (tst_QWebPage::initTestCase):
129 (tst_QWebPage::cleanupTestCase):
130 (tst_QWebPage::database):
132 2008-11-14 Simon Hausmann <hausmann@webkit.org>
134 Fix the Qt build, add missing export macros for the new classes.
136 * Api/qwebdatabase.h:
137 * Api/qwebsecurityorigin.h:
139 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
141 Reviewed by Simon Hausmann.
143 Adding public API to provide access to the security origin
144 (QWebSecurityOrigin) and the databases used for the offline
145 storage (QWebDatabase).
147 In addition QWebSettings gains configuration functions for
148 enabling/disabling offline storage, web application cache
149 and DOM local storage.
151 This commits lands the core feature(s), the unit tests and the
152 documentation are going to follow in the comming days/weeks.
154 Note: The API is not frozen yet.
157 * Api/qwebdatabase.cpp: Added.
158 (QWebDatabase::QWebDatabase):
159 (QWebDatabase::operator=):
160 (QWebDatabase::name):
161 (QWebDatabase::displayName):
162 (QWebDatabase::expectedSize):
163 (QWebDatabase::size):
164 (QWebDatabase::absoluteFilePath):
165 (QWebDatabase::origin):
166 (QWebDatabase::remove):
167 (QWebDatabase::~QWebDatabase):
168 * Api/qwebdatabase.h: Added.
169 * Api/qwebdatabase_p.h: Added.
171 (QWebFrame::securityOrigin):
175 * Api/qwebsecurityorigin.cpp: Added.
176 (QWebSecurityOrigin::QWebSecurityOrigin):
177 (QWebSecurityOrigin::operator=):
178 (QWebSecurityOrigin::scheme):
179 (QWebSecurityOrigin::host):
180 (QWebSecurityOrigin::port):
181 (QWebSecurityOrigin::databaseUsage):
182 (QWebSecurityOrigin::databaseQuota):
183 (QWebSecurityOrigin::setDatabaseQuota):
184 (QWebSecurityOrigin::~QWebSecurityOrigin):
185 (QWebSecurityOrigin::allOrigins):
186 (QWebSecurityOrigin::databases):
187 * Api/qwebsecurityorigin.h: Added.
188 * Api/qwebsecurityorigin_p.h: Added.
189 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
190 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
191 * Api/qwebsettings.cpp:
192 (QWebSettingsPrivate::apply):
193 (QWebSettings::QWebSettings):
194 (QWebSettings::setOfflineStoragePath):
195 (QWebSettings::offlineStoragePath):
196 (QWebSettings::setOfflineStorageDefaultQuota):
197 (QWebSettings::offlineStorageDefaultQuota):
198 (QWebSettings::setOfflineWebApplicationCachePath):
199 (QWebSettings::offlineWebApplicationCachePath):
200 (QWebSettings::setLocalStorageDatabasePath):
201 (QWebSettings::localStorageDatabasePath):
202 * Api/qwebsettings.h:
203 * WebCoreSupport/ChromeClientQt.cpp:
204 (WebCore::ChromeClientQt::exceededDatabaseQuota):
206 2008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
208 Rubber-stamped by Tor Arne Vestbø.
210 Mention the color role change (r38331) in the API doc.
214 2008-11-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
216 Reviewed by Tor Arne Vestbø and Simon Hausmann.
218 Use QPalette::Base (instead of QPalette::Background) for the page
222 (QWebFramePrivate::updateBackground):
224 (QWebView::QWebView):
226 2008-11-11 Cameron Zwarich <zwarich@apple.com>
228 Reviewed by Geoff Garen.
230 Remove pointless dependencies on the now-deleted kjs directory.
234 2008-11-10 Ariya Hidayat <ariya.hidayat@trolltech.com>
236 Rubber-stamped by Simon Hausmann.
238 To fit Qt API, scroll offset is a QPoint instead of a QSize.
241 (QWebFrame::scrollOffset):
242 (QWebFrame::setScrollOffset):
245 2008-11-10 David Boddie <dboddie@trolltech.com>
247 Reviewed by Simon Hausmann.
249 Doc: Fixed qdoc warnings by supplying function documentation.
254 2008-11-10 Tobias Koenig <tobias.koenig@trolltech.com>
256 Reviewed by Simon Hausmann.
258 Removed old and stale prf file that breaks the MingW build.
260 * Api/qtwebkit.prf: Removed.
262 2008-11-10 Kavindra Palaraja <kdpalara@trolltech.com>
264 Reviewed by Simon Hausmann.
266 Clarify QWebFrame/View::setHTML docs with regards to relative URLs
271 2008-11-10 Joerg Bornemann <joerg.bornemann@nokia.com>
273 Reviewed by Simon Hausmann
275 Don't define _CRT_RAND_S on Windows CE in the precompiled
276 header, to fix the CE build.
280 2008-11-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
282 Reviewed by Tor Arne Vestbø and Simon Hausmann.
284 Added an option to allow printing the background color and images.
285 Mostly reworked from a patch by Holger.
286 This setting is enabled by default.
288 * Api/qwebsettings.cpp:
289 (QWebSettingsPrivate::apply):
290 (QWebSettings::QWebSettings):
291 * Api/qwebsettings.h:
293 2008-11-06 Simon Hausmann <hausmann@webkit.org>
295 Reviewed by Tor Arne Vestbø.
297 Added a unit tests for QWebFrame::metaData().
299 * tests/qwebframe/tst_qwebframe.cpp:
301 2008-11-06 Simon Hausmann <hausmann@webkit.org>
303 Reviewed by Tor Arne Vestbø.
305 Improved documentation for QWebFrame::metaData().
309 2008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com>
311 Reviewed by Simon Hausmann.
313 Added QWebFrame::metaData() to provide a way in the public API
314 to retrieve the values of the <meta> tags.
316 See https://bugs.webkit.org/show_bug.cgi?id=22071
319 (QWebFrame::metaData):
322 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
324 Reviewed by Simon Hausmann.
326 Add userData() and setUserData() to QWebHistoryItem.
327 Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
328 Add currentItemIndex() to QWebHistory.
330 See also https://bugs.webkit.org/show_bug.cgi?id=21864
332 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
335 * Api/qwebhistory.cpp:
336 (QWebHistoryItem::userData):
337 (QWebHistoryItem::setUserData):
338 (QWebHistory::currentItemIndex):
339 (QWebHistory::maximumItemCount):
340 (QWebHistory::setMaximumItemCount):
342 * WebCoreSupport/FrameLoaderClientQt.cpp:
343 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
344 * tests/qwebpage/tst_qwebpage.cpp:
345 (tst_QWebPage::modified):
347 2008-11-03 Cameron Zwarich <zwarich@apple.com>
349 Rubber-stamped by Maciej Stachowiak.
351 Move more files into the runtime subdirectory of JavaScriptCore.
355 2008-10-25 Jade Han <jade.han@nokia.com>
359 Enable custom properties for Qt runtime objects in QtWebKit
361 https://bugs.webkit.org/show_bug.cgi?id=21813
363 * tests/qwebframe/tst_qwebframe.cpp:
365 2008-10-24 Sam Weinig <sam@webkit.org>
367 Another Qt build fix.
369 * WebCoreSupport/ChromeClientQt.cpp:
371 2008-10-24 Sam Weinig <sam@webkit.org>
373 Reviewed by Dan Bernstein.
375 Fix https://bugs.webkit.org/show_bug.cgi?id=21759
376 Layering violation: FileChooser should not depend on Document/Frame/Page
378 * WebCoreSupport/ChromeClientQt.cpp:
379 (WebCore::ChromeClientQt::runOpenPanel):
380 * WebCoreSupport/ChromeClientQt.h:
382 2008-10-24 Timothy Hatcher <timothy@apple.com>
384 Stub out new InspectorClient methods.
386 https://bugs.webkit.org/show_bug.cgi?id=21856
388 Reviewed by Darin Adler.
390 * WebCoreSupport/InspectorClientQt.cpp:
391 (WebCore::InspectorClientQt::populateSetting): Not implemented.
392 (WebCore::InspectorClientQt::storeSetting): Ditto.
393 (WebCore::InspectorClientQt::removeSetting): Ditto.
394 * WebCoreSupport/InspectorClientQt.h:
396 2008-10-24 Darin Adler <darin@apple.com>
398 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
401 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
403 2008-10-23 Yael Aharon <yael.aharon@nokia.com>
405 Reviewed by Simon Hausmann.
407 Invalid history entries could cause a crash in QT Webkit
409 * Api/qwebhistory.cpp:
410 (QWebHistoryItem::originalUrl):
411 (QWebHistoryItem::url):
412 (QWebHistoryItem::title):
413 (QWebHistoryItem::lastVisited):
414 (QWebHistoryItem::icon):
415 (QWebHistoryItem::isValid):
417 * Api/qwebhistory_p.h:
418 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
419 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
420 * tests/qwebpage/tst_qwebpage.cpp:
421 (tst_QWebPage::modified):
423 2008-10-22 Yael Aharon <yael.aharon@nokia.com>
425 Reviewed by Simon Hausmann.
427 emit scrollRequested unconditionally when scrolling.
429 See https://bugs.webkit.org/show_bug.cgi?id=21790
431 * WebCoreSupport/ChromeClientQt.cpp:
432 (WebCore::ChromeClientQt::scroll):
434 2008-10-23 Simon Hausmann <hausmann@webkit.org>
436 Reviewed by Tor Arne.
438 Fix handling of mouse events when embedding QWebView into the
441 QWebPage accepts or ignores events to indicate whether the web page
442 handled the event. However for QWebView to behave like a good widget
443 it should always accept the mouse events to indicate that it handled
444 them and that they should not be subject to event propagation.
446 The graphics view relies on acceptance of the initial mouse click to
447 make the embedded widget the focus item.
450 (QWebView::mouseMoveEvent):
451 (QWebView::mousePressEvent):
452 (QWebView::mouseDoubleClickEvent):
453 (QWebView::mouseReleaseEvent):
454 (QWebView::contextMenuEvent):
455 (QWebView::wheelEvent):
457 2008-10-22 Ariya Hidayat <ariya.hidayat@trolltech.com>
459 Reviewed by Simon Hausmann.
461 For public API, use the term boundingRect instead of boundingBox.
464 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
465 (QWebHitTestResult::boundingRect):
469 2008-06-03 Siraj Razick <siraj.razick@collabora.co.uk>
471 Reviewed by Simon Hausmann.
473 https://bugs.webkit.org/show_bug.cgi?id=19374
475 Expose boundingBox value in QWebHitTestResult
477 Add API function QRect QWebHitResult::boundingBox() const
482 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
483 (QWebHitTestResult::boundingBox):
487 2008-10-21 Yael Aharon <yael.aharon@nokia.com>
489 Reviewed by Simon Hausmann.
491 emit repaintRequested unconditionally when repaint is requested.
493 * WebCoreSupport/ChromeClientQt.cpp:
494 (WebCore::ChromeClientQt::repaint):
496 2008-10-20 Sam Weinig <sam@webkit.org>
498 Reviewed by Anders Carlsson.
500 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port.
502 * WebCoreSupport/FrameLoaderClientQt.cpp:
503 * WebCoreSupport/FrameLoaderClientQt.h:
505 2008-10-19 Darin Adler <darin@apple.com>
507 Reviewed by Oliver Hunt.
509 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
510 improve performance by eliminating JSValue as a base class for JSCell
512 Remove most uses of JSValue, which will be removed in a future patch.
515 (QWebFrame::evaluateJavaScript): Use JSValuePtr.
517 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com>
521 Clip painter to dirty rect before passing on to WebKit
523 This was previously done in ScrollViewQt, but after the
524 refactoring of ScrollView we need to do it in QWebFrame
525 instead, similar to Safari/Win.
530 2008-10-08 Matthias Ettrich <ettrich@nokia.com>
534 Make QWebView ignore focus changes with PopupFocusReason to avoid
535 massive updates when menus open and close.
538 (QWebView::focusInEvent):
539 (QWebView::focusOutEvent):
541 2008-10-08 Kavindra Palaraja <kdpalara@trolltech.com>
545 Fixed a qdoc warning and adjusted some spacing
549 2008-10-08 Rhys Weatherley <rhys.weatherley@nokia.com>
553 Compile for platforms without context menus.
556 (QWebPage::createStandardContextMenu):
558 2008-10-08 André Pönitz <apoenitz@trolltech.com>
562 Fix compilation with Qt namespaces.
564 * WebCoreSupport/EditCommandQt.h:
566 2008-10-07 Tor Arne Vestbø <tavestbo@trolltech.com>
568 QtWebKit build fix after changes to FrameLoaderClient.h in r37371
570 * WebCoreSupport/FrameLoaderClientQt.h:
572 2008-10-07 Holger Hans Peter Freyther <zecke@selfish.org>
574 [qt] Build fix after Scrollbar.h and Widget.h changes.
577 (QWebPage::swallowContextMenuEvent):
579 2008-10-06 David Hyatt <hyatt@apple.com>
581 Enable viewless Mac WebKit to paint some basic pages.
583 Reviewed by Sam Weinig
585 * WebCoreSupport/FrameLoaderClientQt.cpp:
586 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
588 2008-10-03 David Hyatt <hyatt@apple.com>
590 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y().
592 Fix the QtPluginWidget to do an invalidate properly.
596 * WebCoreSupport/ChromeClientQt.cpp:
597 (WebCore::ChromeClientQt::scroll):
598 * WebCoreSupport/FrameLoaderClientQt.cpp:
601 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
603 Build fix. Remove addToDirtyRegion from the header file.
605 * WebCoreSupport/ChromeClientQt.h:
607 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
611 * WebCoreSupport/ChromeClientQt.cpp:
612 (WebCore::ChromeClientQt::scroll):
613 * WebCoreSupport/FrameLoaderClientQt.cpp:
615 (WebCore::FrameLoaderClientQt::createPlugin):
617 2008-10-03 David Hyatt <hyatt@apple.com>
619 Remove addToDirtyRegion.
621 Reviewed by Oliver Hunt
623 * WebCoreSupport/ChromeClientQt.cpp:
625 2008-10-02 David Hyatt <hyatt@apple.com>
627 https://bugs.webkit.org/show_bug.cgi?id=21314
629 Make scrollBackingStore cross-platform.
631 Reviewed by Sam Weinig
633 * WebCoreSupport/ChromeClientQt.cpp:
634 (WebCore::ChromeClientQt::repaint):
635 (WebCore::ChromeClientQt::scroll):
636 * WebCoreSupport/ChromeClientQt.h:
638 2008-10-01 David Hyatt <hyatt@apple.com>
640 https://bugs.webkit.org/show_bug.cgi?id=21282
642 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now.
644 Reviewed by Adam Roben
646 * WebCoreSupport/ChromeClientQt.cpp:
647 (WebCore::ChromeClientQt::windowToScreen):
648 (WebCore::ChromeClientQt::screenToWindow):
649 * WebCoreSupport/ChromeClientQt.h:
651 2008-09-30 Dave Hyatt <hyatt@apple.com>
653 http://bugs.webkit.org/show_bug.cgi?id=21250
655 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
656 repaints up through the ChromeClient.
658 Reviewed by Darin Adler
660 * WebCoreSupport/ChromeClientQt.cpp:
661 (WebCore::ChromeClientQt::repaint):
662 * WebCoreSupport/ChromeClientQt.h:
664 2008-09-29 Gunnar Sletta <gunnar@trolltech.com>
668 Compile on windows using MSVC 2005
670 For the PCH We need to define _WIN32_WINNT and include windows.h early on,
671 otherwise we'll miss several functions.
675 2008-09-29 Thiago Macieira <thiago.macieira@nokia.com>
679 Changed copyright from Trolltech ASA to Nokia.
681 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
687 * Api/qwebhistory.cpp:
689 * Api/qwebhistory_p.h:
690 * Api/qwebkitglobal.h:
691 * Api/qwebnetworkinterface.cpp:
692 * Api/qwebnetworkinterface.h:
693 * Api/qwebnetworkinterface_p.h:
697 * Api/qwebpluginfactory.cpp:
698 * Api/qwebpluginfactory.h:
699 * Api/qwebsettings.cpp:
700 * Api/qwebsettings.h:
703 * Plugins/ICOHandler.cpp:
704 * QtLauncher/main.cpp:
705 * WebCoreSupport/FrameLoaderClientQt.cpp:
706 * WebCoreSupport/FrameLoaderClientQt.h:
707 * WebCoreSupport/InspectorClientQt.cpp:
708 * WebCoreSupport/InspectorClientQt.h:
709 * tests/qwebframe/tst_qwebframe.cpp:
710 * tests/qwebpage/tst_qwebpage.cpp:
712 2008-09-28 Simon Hausmann <hausmann@webkit.org>
714 Reviewed by David Hyatt.
716 Ensure the mainThreadIdentifier is set as well as other bits and pieces of
717 the threading machinery, by calling JSC::initializeThreading().
720 (QWebPagePrivate::QWebPagePrivate):
722 2008-09-27 David Hyatt <hyatt@apple.com>
724 Forgot to land renaming changes in WebKit.
729 (QWebFrame::geometry):
731 (QWebPage::viewportSize):
732 (QWebPage::setViewportSize):
734 2008-09-27 Simon Hausmann <hausmann@webkit.org>
736 Qt build fix - use frameRect instead of frameGeometry, adapt
737 to renamed scrollbar frameview methods.
740 (QWebPage::viewportSize):
741 (QWebPage::setViewportSize):
742 * WebCoreSupport/FrameLoaderClientQt.cpp:
743 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
745 2008-09-27 Jan Michael Alonzo <jmalonzo@webkit.org>
747 Qt build fix - rename frameGeometry to frameRect per r36995.
752 (QWebFrame::geometry):
754 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
758 Fixed potential crash when deleting QWebView instance.
760 When deleting the view, sets the page's view to NULL.
761 The reason is that the page is smart and its destructor might lead to a call
762 that operates on a view (which is in the process of being deleted).
766 (QWebView::~QWebView):
768 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
772 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
774 * WebCoreSupport/EditorClientQt.cpp:
775 (WebCore::EditorClientQt::handleKeyboardEvent):
777 2008-09-26 Håvard Wall <hwall@trolltech.com>
781 Fix compilation with QT_NO_MESSAGEBOX
784 (QWebPage::javaScriptAlert):
785 (QWebPage::javaScriptConfirm):
787 2008-09-23 Tor Arne Vestbø <tavestbo@trolltech.com>
791 Remove deprecated JS Qt bindings object call/construct code and fix autotests
793 * tests/qwebframe/tst_qwebframe.cpp:
795 2008-09-16 Alp Toker <alp@nuanti.com>
797 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
802 2008-09-15 Eli Fidler <eli@staikos.net>
806 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
807 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
809 Basically, Yahoo's login procedure for flickr looks like this:
810 1. load flickr.com, click "sign in"
811 2. this is a Yahoo page with a form
812 (https://login.yahoo.com/config/login?.src=flickr...)
813 when you click the "Sign In" button, the form submits to a yahoo.com POST URL
814 3. The POST returns with a 302 (redirect) to another yahoo.com URL
815 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
816 convert the method to GET, which works fine but is definitely not
817 RFC-compliant. It would be compliant for 303, and the RFC says that many
818 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
819 converting to GET is explicitly wrong for 302.
821 * Api/qwebnetworkinterface.cpp:
822 (QWebNetworkManager::started):
824 2008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
828 Make QtInstance::create() private and fix caching
831 (QWebFrame::addToJavaScriptWindowObject):
833 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
835 Rubber-stamped by Simon.
837 Prevent leaking pages and frames in QWebKit autotest
839 * tests/qwebpage/tst_qwebpage.cpp:
841 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
845 Fix QtWebKit autotest
847 * tests/qwebpage/tst_qwebpage.cpp:
848 (tst_QWebPage::userStyleSheet):
850 2008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com>
854 Added missing WebCore prefix to ResourceRequest
856 This is needed for Windows/CE compilation where there is a conflict
857 with a global ResourceRequest type. Elsewhere in this file ResourceRequest
858 is also prefixed with WebCore::
861 (QWebFrame::QWebFrame):
863 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
865 Reviewed by Maciej Stachowiak.
867 Bug 20704: Replace the KJS namespace
868 <https://bugs.webkit.org/show_bug.cgi?id=20704>
870 Rename the KJS namespace to JSC.
873 (QWebFrame::addToJavaScriptWindowObject):
874 (QWebFrame::evaluateJavaScript):
876 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
880 Fix the QtWebKit build to match changes in r36016
883 (QWebFrame::addToJavaScriptWindowObject):
885 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
889 Re-enable support for user stylesheets in QtWebKit
891 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
892 code path, which allows us to keep API support for
893 loading user style sheets from remote URLs.
895 As part of the change UserStyleSheetLoader.cpp/h was
896 moved from WebCore/loader/mac to WebCore/loader.
898 * tests/qwebpage/tst_qwebpage.cpp:
899 (tst_QWebPage::userStyleSheet):
901 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
903 Reviewed by Eric Seidel.
905 [janitor/qt] Start replacing port specific getters with the generic native getter
906 To get the native presentation of an image we currently have platform
907 specific #ifdef's and a generic getter using NativeImagePtr. This patch
908 extends this to the ImageBuffer and updates the Qt platform to get rid
909 of the special #ifdefs.
911 https://bugs.webkit.org/attachment.cgi?id=22861
914 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
915 * Api/qwebhistory.cpp:
916 * Api/qwebsettings.cpp:
917 (QWebSettings::iconForUrl):
919 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
923 Catch up with the introduction of PageGroup in r30840. Enable tracking of
924 visited links, enable this in QWebPage next to the other WebCore init call.
925 Calling this more than once is no issue and a cheap operation, we also do not
926 reset the state. When clearing the history of a page, clear the link state.
928 * Api/qwebhistory.cpp:
929 (QWebHistory::clear):
930 * Api/qwebhistoryinterface.cpp:
931 (QWebHistoryInterface::setDefaultInterface):
933 (QWebPagePrivate::QWebPagePrivate):
935 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
939 Revert revision 34348 which removed the global historyContains() function.
941 This function was needed to implement the public API of QWebHistoryInterface
942 and will be used again in the near future.
944 * Api/qwebhistoryinterface.cpp:
945 (WebCore::historyContains):
947 2008-08-27 Erik Bunce <elbunce@thehive.com>
949 Reviewed by Eric Seidel.
951 https://bugs.webkit.org/show_bug.cgi?id=20223
953 Add QWebPage::contentsChanged() signal to notify of content changes.
957 * WebCoreSupport/EditorClientQt.cpp:
958 (WebCore::EditorClientQt::respondToChangedContents):
960 2008-08-27 Brady Eidson <beidson@apple.com>
964 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
966 * WebCoreSupport/FrameLoaderClientQt.cpp:
967 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
968 * WebCoreSupport/FrameLoaderClientQt.h:
970 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
974 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
975 Allow the user of the API to honor the attachWindow and detachWindow
976 requests and attach the QWebPage/QWebView wherever it is wanted. This needs
977 some more API in QWebPage to be properly exposed.
979 * WebCoreSupport/InspectorClientQt.cpp:
980 (WebCore::InspectorClientQt::createPage):
981 (WebCore::InspectorClientQt::attachWindow):
982 (WebCore::InspectorClientQt::detachWindow):
983 * WebCoreSupport/InspectorClientQt.h:
985 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
987 Reviewed by Geoff Garen.
989 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
992 (QWebFrame::addToJavaScriptWindowObject):
994 2008-08-15 Håvard Wall <hwall@trolltech.com>
998 Fixes: compile with QT_NO_UNDOCOMMAND/STACK
1002 (SetCursorEvent::SetCursorEvent):
1003 (QWebPagePrivate::createContextMenu):
1007 * WebCoreSupport/EditCommandQt.cpp:
1008 (EditCommandQt::EditCommandQt):
1009 * WebCoreSupport/EditCommandQt.h:
1010 * WebCoreSupport/EditorClientQt.cpp:
1012 (WebCore::EditorClientQt::shouldInsertText):
1013 (WebCore::EditorClientQt::shouldChangeSelectedRange):
1014 (WebCore::EditorClientQt::isEditable):
1015 (WebCore::EditorClientQt::registerCommandForUndo):
1016 (WebCore::EditorClientQt::clearUndoRedoOperations):
1017 (WebCore::EditorClientQt::canUndo):
1018 (WebCore::EditorClientQt::canRedo):
1019 (WebCore::EditorClientQt::undo):
1020 (WebCore::EditorClientQt::redo):
1021 (WebCore::EditorClientQt::shouldInsertNode):
1023 2008-08-15 Håvard Wall <hwall@trolltech.com>
1027 Fixes: compile with QT_NO_STYLE_STYLESHEET
1030 * WebCoreSupport/FrameLoaderClientQt.cpp:
1031 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1032 (WebCore::FrameLoaderClientQt::createPlugin):
1034 2008-08-15 Håvard Wall <hwall@trolltech.com>
1038 Fixes: compile with QT_NO_SHORTCUT
1042 (QWebPagePrivate::mouseMoveEvent):
1043 (QWebPagePrivate::mouseReleaseEvent):
1044 (QWebPagePrivate::dragMoveEvent):
1046 2008-08-15 Håvard Wall <hwall@trolltech.com>
1050 Fixes: compile with QT_NO_CONTEXTMENU
1054 (editorCommandForWebActions):
1055 (QWebPagePrivate::QWebPagePrivate):
1056 (QWebPagePrivate::createMainFrame):
1057 (QWebPagePrivate::updateEditorActions):
1058 (QWebPage::setEditable):
1064 2008-08-15 Håvard Wall <hwall@trolltech.com>
1068 Fixes: compile with QT_NO_WHEELEVENT
1072 (QWebPagePrivate::updateEditorActions):
1078 2008-08-15 Håvard Wall <hwall@trolltech.com>
1082 Fixes: compile with QT_NO_PRINTER
1085 * Api/qwebframe.cpp:
1089 2008-08-15 David Boddie <dboddie@trolltech.com>
1093 Doc: Added documentation for default property values.
1097 (QWebPagePrivate::keyPressEvent):
1098 (QWebPage::triggerAction):
1099 (QWebPage::acceptNavigationRequest):
1103 2008-08-15 David Boddie <dboddie@trolltech.com>
1107 Doc: Renamed snippets that appear in the code directory.
1114 2008-08-12 Timothy Hatcher <timothy@apple.com>
1116 Add a stub for InspectorClient::setAttachedWindowHeight.
1118 * WebCoreSupport/InspectorClientQt.cpp:
1119 (WebCore::InspectorClientQt::setAttachedWindowHeight):
1120 Call notImplemented().
1121 * WebCoreSupport/InspectorClientQt.h:
1123 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1127 Use full-page zoom in QtLauncher.
1129 * QtLauncher/main.cpp:
1130 (MainWindow::zoomIn):
1131 (MainWindow::zoomOut):
1132 (MainWindow::resetZoom):
1133 (MainWindow::setupUI):
1135 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1139 Fix linking with QtWebKit.
1141 * Api/qwebframe.h: remove non-existing function/property.
1143 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1147 Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
1149 https://bugs.webkit.org/show_bug.cgi?id=19125
1151 Added functions to get/set the zoom factor.
1153 Added a QWebFrame/QWebView::zoomFactor as well as a boolean
1154 ZoomTextOnly attribute in QWebSettings.
1156 * Api/qwebframe.cpp:
1157 (QWebFrame::setZoomFactor):
1158 (QWebFrame::zoomFactor):
1160 * Api/qwebsettings.cpp:
1161 (QWebSettingsPrivate::apply):
1162 (QWebSettings::QWebSettings):
1163 * Api/qwebsettings.h:
1165 (QWebView::setZoomFactor):
1166 (QWebView::zoomFactor):
1169 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1173 Fix QWebFrame::setHtml() not setting the new contents immediately.
1175 Added a setter to the DocumentLoader to toggle the deferred loading of the main
1176 resource when it comes from substitute data.
1178 Disable deferred loading of the main resource when we have valid substitute data,
1179 as used by QWebFrame::setHtml.
1181 * WebCoreSupport/FrameLoaderClientQt.cpp:
1182 (WebCore::FrameLoaderClientQt::download):
1184 2008-08-13 Simon Hausmann <hausmann@webkit.org>
1186 Rubber-stamped by Holger.
1188 Fix QWebPage::isModified().
1190 isModified() would return true after loading a new page or it would continue to
1191 return true after undoing modifications. Fix this by eliminating the
1192 QWebPagePrivate::modified variable and use the undoStack's canUndo() property
1195 https://bugs.webkit.org/show_bug.cgi?id=19252
1200 * WebCoreSupport/EditorClientQt.cpp:
1201 (WebCore::EditorClientQt::respondToChangedContents):
1203 2008-08-13 David Boddie <dboddie@trolltech.com>
1207 Updated docs with the signal emission behavior of urlChanged()
1209 * Api/qwebframe.cpp:
1211 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
1215 Fix Ctrl+Y to work again when editing text in contextEditable mode.
1217 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
1219 * WebCoreSupport/EditorClientQt.cpp:
1220 (WebCore::EditorClientQt::handleKeyboardEvent):
1222 2008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
1226 Fix encoding of [ and ] in the host part of the URL
1228 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
1229 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
1230 doesn't encode [ and ] when they are found in the host part. That is, the
1233 is valid and should not be reencoded to:
1236 This change adds the automatic test for it.
1238 * tests/qwebframe/tst_qwebframe.cpp:
1240 2008-08-12 Urs Wolfer <uwolfer@kde.org>
1244 https://bugs.webkit.org/show_bug.cgi?id=20357
1246 Fix crash in QWebPage in case contextMenuEvent has been overwritten
1247 because context menu has the view as parent and thus is deleted too early.
1249 Add testcase for this crash.
1252 * tests/qwebpage/tst_qwebpage.cpp:
1253 (tst_QWebPage::contextMenuCrash):
1255 2008-08-07 Simon Hausmann <hausmann@webkit.org>
1257 Rubber-stamped by Lars.
1259 Added API tests for QWebPage/QWebFrame based on QTestLib.
1261 * tests/qwebframe/qwebframe.pro: Added.
1262 * tests/qwebframe/tst_qwebframe.cpp: Added.
1263 * tests/qwebpage/qwebpage.pro: Added.
1264 * tests/qwebpage/tst_qwebpage.cpp: Added.
1265 * tests/tests.pro: Added.
1267 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
1271 During the drag operation only accept the event if the action is not ignore action.
1274 (QWebPagePrivate::dragEnterEvent):
1275 (QWebPagePrivate::dragMoveEvent):
1276 (QWebPagePrivate::dropEvent):
1278 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
1280 Fix the Qt build due to recent ScriptController refactoring.
1282 * Api/qwebframe.cpp:
1283 (QWebFrame::addToJavaScriptWindowObject):
1285 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
1289 Move event handling of the return-key from EditorClientQt to QWebPage.
1291 https://bugs.webkit.org/show_bug.cgi?id=20191
1293 This is a first step in refactoring the big switch block
1294 in EditorClientQt::handleKeyboardEvent to using WebActions
1297 The new logic uses two new StandardKeys from QKeySequence:
1299 - InsertParagraphSeparator
1300 - InsertLineSeparator
1302 Which translate to the commands InsertNewline and InsertLineBreak
1303 respectivly. On Windows/X11 pressing the shift modifier will invoke
1304 the latter action. For Mac this is triggered by pressing the meta
1307 Initial patch by: Erik Bunce
1310 (editorActionForKeyEvent):
1312 * WebCoreSupport/EditorClientQt.cpp:
1313 (WebCore::EditorClientQt::handleKeyboardEvent):
1315 2008-08-04 Erik Bunce <elbunce@thehive.com>
1319 https://bugs.webkit.org/show_bug.cgi?id=20221
1321 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
1322 Add lookup table for mapping web actions to editor commands.
1325 (editorCommandForWebActions):
1326 (QWebPagePrivate::updateAction):
1327 (QWebPagePrivate::updateEditorActions):
1328 (QWebPage::triggerAction):
1329 (QWebPage::setEditable):
1331 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
1335 A bunch of improvements to the QtLauncher.
1338 - Unify and unclutter the toolbar, use menu for addition actions
1339 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
1340 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
1341 - Shortcut keys for most actions
1342 - Simple autocomplete for the URL edit
1343 - Actions for zooming, New Window and Close Window
1344 - Show Format menu only when the content is set to editable
1346 * QtLauncher/main.cpp:
1347 (MainWindow::MainWindow):
1348 (MainWindow::webPage):
1349 (MainWindow::changeLocation):
1350 (MainWindow::loadFinished):
1351 (MainWindow::showLinkHover):
1352 (MainWindow::newWindow):
1353 (MainWindow::zoomIn):
1354 (MainWindow::zoomOut):
1355 (MainWindow::resetZoom):
1356 (MainWindow::print):
1357 (MainWindow::setEditable):
1358 (MainWindow::dumpHtml):
1359 (MainWindow::setupUI):
1362 2008-08-04 Erik Bunce <elbunce@thehive.com>
1366 https://bugs.webkit.org/show_bug.cgi?id=20198
1368 Allow Copy key sequence to work in non-editable areas.
1371 (QWebPagePrivate::keyPressEvent):
1373 2008-07-31 Erik Bunce <elbunce@thehive.com>
1377 Make sure edit actions get updated when the contents change.
1379 * WebCoreSupport/EditorClientQt.cpp:
1380 (WebCore::EditorClientQt::respondToChangedContents):
1382 2008-07-31 Erik Bunce <elbunce@thehive.com>
1386 Add simple edit test abilities to QtLauncher.
1388 * QtLauncher/main.cpp:
1389 (MainWindow::MainWindow):
1390 (MainWindow::setEditable):
1391 (MainWindow::dumpHtml):
1393 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
1395 Rubber-stamped by Maciej.
1397 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
1400 * Api/qwebframe.cpp:
1401 (QWebFrame::addToJavaScriptWindowObject):
1403 2008-07-27 David Kilzer <ddkilzer@apple.com>
1405 Fix Qt build failure.
1408 (QWebFrame::setScrollOffset): Make argument const.
1410 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1412 Reviewed by Simon Hausmann.
1414 https://bugs.webkit.org/show_bug.cgi?id=20010
1415 [Qt] Add API access to scrolling
1417 * Api/qwebframe.cpp: Added access to a frame scroll offset.
1418 (QWebFrame::scroll):
1419 (QWebFrame::scrollOffset):
1420 (QWebFrame::setScrollOffset):
1423 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
1425 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
1428 (QWebPage::triggerAction):
1429 * WebCoreSupport/FrameLoaderClientQt.cpp:
1430 (WebCore::FrameLoaderClientQt::createFrame):
1432 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
1436 Compile with QT_NO_PRINTER.
1438 * QtLauncher/main.cpp:
1439 (MainWindow::MainWindow):
1441 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1445 Don't insert text on keyDown event in EditorClientQt.
1447 * WebCoreSupport/EditorClientQt.cpp:
1448 (WebCore::EditorClientQt::handleKeyboardEvent):
1450 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
1454 Update the webkit version in the QtWebKit useragent string to match trunk
1458 2008-07-02 Simon Hausmann <hausmann@webkit.org>
1463 (QWebPage::triggerAction): The signature of setBaseWritingDirection
1464 changed to take an enum instead of a string.
1466 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
1468 Reviewed by Darin Adler.
1470 Disable JSLock for per-thread contexts.
1472 * Api/qwebframe.cpp:
1473 (QWebFrame::addToJavaScriptWindowObject):
1474 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
1475 Include JSLock.h, as it is no longer brought in implicitly.
1477 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
1481 Don't show the tooltip instantly in the QtLauncher.
1483 Let the QWebView handle tooltips by itself, so we get
1484 the expected delay as everywhere else.
1486 * QtLauncher/main.cpp:
1488 2008-06-30 Simon Hausmann <hausmann@webkit.org>
1490 Rubber-stamped by Niko.
1492 Removed the obsolete and unmaintained WebKitPart. The integration of
1493 QtWebKit into KDE is now done in the webkitkde component inside KDE.
1495 * WebKitPart/WebKitFactory.cpp: Removed.
1496 * WebKitPart/WebKitFactory.h: Removed.
1497 * WebKitPart/WebKitPart.cpp: Removed.
1498 * WebKitPart/WebKitPart.desktop: Removed.
1499 * WebKitPart/WebKitPart.h: Removed.
1500 * WebKitPart/WebKitPart.rc: Removed.
1501 * WebKitPart/WebKitPartBrowser.rc: Removed.
1502 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
1503 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
1504 * WebKitPart/WebKitPartClient.cpp: Removed.
1505 * WebKitPart/WebKitPartClient.h: Removed.
1506 * WebKitPart/WebKitPartInterface.cpp: Removed.
1507 * WebKitPart/WebKitPartInterface.h: Removed.
1508 * WebKitPart/org.kde.WebKitPart.xml: Removed.
1510 2008-06-24 Simon Hausmann <hausmann@webkit.org>
1512 Fix the Qt build, added missing include for RuntimeObjectImp.
1514 * Api/qwebframe.cpp:
1516 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
1520 Add function to retrieve the standard context menu
1522 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1526 https://bugs.webkit.org/show_bug.cgi?id=19082
1527 [Qt] Full-page plugins not activated
1529 * WebCoreSupport/FrameLoaderClientQt.cpp:
1530 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
1531 plugin present, as it can be created during the function.
1533 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
1537 https://bugs.webkit.org/show_bug.cgi?id=19082
1538 [Qt] Full-page plugins not activated
1540 * WebCoreSupport/FrameLoaderClientQt.cpp:
1541 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
1542 MIME type is supported by a plugin.
1544 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
1546 Reviewed by Darin Adler.
1548 Prepare JavaScript heap for being per-thread.
1550 * Api/qwebframe.cpp:
1551 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
1553 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
1555 Qt Build fix after r34627.
1557 * WebCoreSupport/FrameLoaderClientQt.cpp:
1558 (WebCore::FrameLoaderClientQt::createPlugin):
1560 2008-06-15 Darin Adler <darin@apple.com>
1562 - give Frame object functions shorter names: scriptProxy() -> script(),
1563 selectionController() -> selection(), animationController() -> animation()
1565 * Api/qwebframe.cpp:
1566 (QWebFrame::evaluateJavaScript):
1568 (QWebPagePrivate::focusInEvent):
1569 (QWebPagePrivate::focusOutEvent):
1570 (QWebPage::inputMethodQuery):
1571 * WebCoreSupport/EditorClientQt.cpp:
1572 (WebCore::EditorClientQt::handleKeyboardEvent):
1574 2008-06-15 Darin Adler <darin@apple.com>
1576 - new names for more JavaScriptCore files
1580 2008-06-15 Darin Adler <darin@apple.com>
1582 - new names for a few key JavaScriptCore files
1584 * Api/qwebframe.cpp:
1586 2008-06-14 Darin Adler <darin@apple.com>
1588 Rubber stamped by Sam.
1590 - new names for kjs_binding.h and kjs_proxy.h
1592 * Api/qwebframe.cpp:
1593 (QWebFrame::evaluateJavaScript):
1596 2008-06-14 Darin Adler <darin@apple.com>
1600 * Api/qwebframe.cpp:
1601 (QWebFramePrivate::init): Added a missing semicolon.
1603 2008-06-14 Darin Adler <darin@apple.com>
1607 - more https://bugs.webkit.org/show_bug.cgi?id=17257
1608 start ref counts at 1 instead of 0 for speed
1610 * Api/qwebframe.cpp:
1611 (QWebFramePrivate::init): Use create instead of new.
1612 * WebCoreSupport/FrameLoaderClientQt.cpp:
1613 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
1615 2008-06-13 Darin Adler <darin@apple.com>
1619 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
1621 2008-06-13 Darin Adler <darin@apple.com>
1623 Reviewed by John Sullivan.
1625 - updated for addition of FormState argument to action policy functions
1627 * WebCoreSupport/FrameLoaderClientQt.cpp:
1628 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1629 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1631 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1635 Fix left-click and middle-click mouse event are not properly accepted.
1637 When copying or pasting text using left or middle-click, the event must be
1638 accepted so that it will not be potentially processed further by the parent
1639 and/or sub-classed widget.
1643 (QWebPagePrivate::mouseReleaseEvent):
1645 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1649 Fix input element does not accept character typed in using AltGr.
1651 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
1652 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
1654 * WebCoreSupport/EditorClientQt.cpp:
1655 (WebCore::EditorClientQt::handleKeyboardEvent):
1657 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1661 https://bugs.webkit.org/show_bug.cgi?id=19323
1663 Implemented the QWebPage::editable property.
1665 Small documentation fixes by Simon.
1668 (QWebPagePrivate::QWebPagePrivate):
1669 (QWebPage::setEditable):
1670 (QWebPage::isEditable):
1672 * Api/qwebpage_p.h: implement the editable property and add API so that
1673 applications can switch edit mode on and off for a particular QWebPage
1674 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
1675 QWebPage instead of always returning false
1677 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
1681 Make sure web action in context menus have the right enablement,
1682 while not messing up other web actions not included in the menu.
1685 (QWebPagePrivate::createContextMenu):
1686 (QWebPage::updatePositionDependentActions):
1689 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
1693 Add Shift-Space shortcut to go up one screen, the opposite of Space
1694 which goes down one screen.
1697 (QWebPagePrivate::handleScrolling):
1699 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
1703 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
1705 The starting line number has to be 1 instead of 0.
1707 * Api/qwebframe.cpp:
1708 (QWebFrame::evaluateJavaScript):
1710 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
1712 Reviewed by Darin Adler.
1714 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
1715 function is not used anywhere internally and is only a convenience
1716 function that can still be accomplished using
1717 QWebHistoryInterface::historyContains();
1719 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1723 Doc: Mention the requirement of a QApplication with QtWebKit
1728 2008-05-29 David Boddie <dboddie@trolltech.com>
1732 Some clarifications for the documentation.
1736 * Api/qwebpluginfactory.cpp:
1738 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
1742 Fix web inspector does not returns its state properly after its window is minimized.
1744 As hinted by Holger, InspectorClientView::hideEvent is not needed.
1745 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
1747 * WebCoreSupport/InspectorClientQt.cpp:
1749 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
1753 Add <param name="classid"/> support for application/x-qt-object plugins
1755 * WebCoreSupport/FrameLoaderClientQt.cpp:
1756 (WebCore::FrameLoaderClientQt::createPlugin):
1758 2008-05-13 Andy Shaw <andy@trolltech.com>
1762 Fixes: QWebHistory::forward() should go forwards and not back
1764 * Api/qwebhistory.cpp:
1766 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
1768 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
1769 SquirrelFish merging.
1771 * Api/qwebframe.cpp:
1772 (QWebFrame::addToJavaScriptWindowObject):
1774 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
1778 Fix bad includes in QtWebKit public headers.
1780 Make sure to include qglobal.h using the QtCore prefix so that an explicit
1781 include/QtCore is not needed in the application's build system. Also make sure
1782 that qwebsettings.h includes the local qwebkitglobal.h.
1785 * Api/qwebkitglobal.h:
1786 * Api/qwebsettings.h:
1788 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1792 https://bugs.webkit.org/show_bug.cgi?id=18935
1794 Based on work by Sriram Neelakandan for the Gtk port.
1796 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
1797 m_hasSentResponseToPlugin.
1798 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1799 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
1801 2008-05-08 Warwick Allison <warwick@trolltech.com>
1805 Fixes: WebKit expects initial input method state to be *disabled*.
1807 At least QWS does not need the initial input method state to be forced to
1808 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
1809 platforms, this is specific to QWS.
1813 (QWebView::QWebView):
1815 2008-05-06 Simon Hausmann <hausmann@webkit.org>
1819 Fix logic error in QWebHitTestResult::isNull().
1821 * Api/qwebframe.cpp:
1823 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
1827 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
1831 2008-05-02 Simon Hausmann <hausmann@webkit.org>
1833 Fix the Qt build, ExecState is required here.
1835 * Api/qwebframe.cpp:
1836 (QWebFrame::addToJavaScriptWindowObject):
1838 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
1840 Reviewed by Alp Toker.
1841 Qt parts OK'ed by Simon Hausmann.
1843 https://bugs.webkit.org/show_bug.cgi?id=14750
1844 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
1846 * WebCoreSupport/FrameLoaderClientQt.cpp:
1847 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1848 (WebCore::FrameLoaderClientQt::finishedLoading):
1849 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1850 (WebCore::FrameLoaderClientQt::committedLoad):
1851 (WebCore::FrameLoaderClientQt::objectContentType):
1852 (WebCore::FrameLoaderClientQt::createPlugin):
1853 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
1854 * WebCoreSupport/FrameLoaderClientQt.h:
1856 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
1860 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
1865 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
1869 In focusIn and focusOut event always update the active state of the
1870 focus controller. Fixes ~400 failing layout tests due to missing
1871 editing callbacks that relied on the correct focus.
1874 (QWebPagePrivate::focusInEvent):
1875 (QWebPagePrivate::focusOutEvent):
1877 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
1881 Fix compilation with QT_NO_PRINTER
1887 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1891 Ensure that relative URL is converted to absolute URL.
1893 This is necessary because loading a relative URL is not really supported
1894 (the web page may load, but the subsequent URLs for images and links will
1895 not be resolved properly).
1896 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
1899 * Api/qwebframe.cpp:
1900 (ensureAbsoluteUrl):
1901 (QWebFrame::setUrl):
1904 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1908 Simplification of Qt Launcher (no animation and use standard progress bar widget)
1910 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.
1913 * QtLauncher/main.cpp:
1914 (MainWindow::MainWindow):
1916 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1920 Update the cursor when the frame/page loading is finished.
1922 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
1925 * WebCoreSupport/FrameLoaderClientQt.cpp:
1926 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1927 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
1929 2008-04-29 Simon Hausmann <shausman@trolltech.com>
1933 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
1935 Call QWebPage::acceptNavigationRequest when the creation of a new window with
1936 URL is requested. The frame pointer is set to null in this case.
1940 (QWebPage::setViewportSize):
1941 * WebCoreSupport/FrameLoaderClientQt.cpp:
1942 (WebCore::FrameLoaderClientQt::startDownload):
1943 (WebCore::FrameLoaderClientQt::createFrame):
1945 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1949 Use the WebCore facility to do the scrolling. Move some code around.
1952 (QWebPagePrivate::keyPressEvent):
1953 (QWebPagePrivate::shortcutOverrideEvent):
1954 (QWebPagePrivate::handleScrolling):
1957 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1961 fix potential crash when loading image(s)
1963 Crash may occur. If compiled with 4.3, the variable is not initialized.
1966 (QWebPagePrivate::QWebPagePrivate):
1968 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1972 Calling QWebView::setCursor will override the WebCore Cursor.
1973 Calling QWebView::setCursor will override the WebCore Cursor using
1974 QWidget::unsetCursor will revert to the WebCore Cursor.
1976 For detecting the unset we have to compare the shape of the
1977 cursor to the default arrow. Qt::WA_SetCursor can not be used
1978 as it is set unconditionally but conditionally removed.
1980 Calling QWidget::setCursor will immediately send the CursorChange
1981 event. We listen to this event to decide if we currently use a
1982 WebCore cursor, got a cursor from outside, or revert to the default.
1984 This should be race free and work reliable, the manual test for this
1985 is WebCore/manual-tests/cursor.html
1988 (SetCursorEvent::SetCursorEvent):
1991 (QWebViewPrivate::QWebViewPrivate):
1992 (QWebViewPrivate::setCursor):
1993 (QWebView::QWebView):
1996 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2000 Documentation fixes:
2002 - Fixed a qdoc warning
2003 - Mention that fav icons can be of arbitrary size
2004 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
2006 * Api/qwebframe.cpp:
2009 * Api/qwebsettings.cpp:
2012 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2016 Fix QWebView::loadFinished isn't always emitted
2018 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
2019 tracking (start, progres, and finish) to the page instead of the frame. This
2020 ensures that we emit loadFinished even when a subframe started the actual load.
2022 This causes a few regressions in the layout tests that we for now accept for
2023 the sake of the correct API. Layout tests we can fix any time though, including
2024 patch release, the API however we can't change anymore in patch releases.
2026 * Api/qwebframe.cpp:
2029 (QWebPage::totalBytes):
2032 (QWebView::setPage):
2034 * QtLauncher/main.cpp:
2035 (MainWindow::MainWindow):
2036 * WebCoreSupport/FrameLoaderClientQt.cpp:
2037 (drtDescriptionSuitableForTestResult):
2038 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2039 (WebCore::FrameLoaderClientQt::setFrame):
2040 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
2041 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2042 (WebCore::FrameLoaderClientQt::willChangeTitle):
2043 (WebCore::FrameLoaderClientQt::createDocumentLoader):
2044 (WebCore::FrameLoaderClientQt::download):
2045 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2046 * WebCoreSupport/FrameLoaderClientQt.h:
2048 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2052 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
2054 * Api/qwebframe.cpp:
2055 * Api/qwebpluginfactory.cpp:
2056 * Api/qwebsettings.cpp:
2057 (QWebSettings::QWebSettings):
2058 (QWebSettings::setUserStyleSheetUrl):
2059 (QWebSettings::iconForUrl):
2060 (QWebSettings::webGraphic):
2061 (QWebSettings::maximumPagesInCache):
2062 (QWebSettings::setFontFamily):
2063 (QWebSettings::resetFontFamily):
2064 (QWebSettings::testAttribute):
2065 (QWebSettings::resetAttribute):
2067 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
2071 Fix document/frame title not reset when loading a new URI
2073 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
2074 will be called very soon with the correct title.
2075 This properly resets the title when we navigate to a URI without a title.
2078 * WebCoreSupport/FrameLoaderClientQt.cpp:
2080 2008-04-28 David Boddie <dboddie@trolltech.com>
2084 Minor documentation changes.
2088 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2092 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
2096 (QWebPagePrivate::mouseMoveEvent):
2097 (QWebPagePrivate::mousePressEvent):
2098 (QWebPagePrivate::mouseDoubleClickEvent):
2099 (QWebPagePrivate::mouseTripleClickEvent):
2100 (QWebPagePrivate::mouseReleaseEvent):
2102 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2106 Fix scrollbar behavior in QtWebKit to match QScrollBar.
2108 Right click context menu is now supported, along with
2109 middle click to center slider thumb over mouse cursor.
2113 (QWebPage::linkDelegationPolicy):
2115 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2119 Implemented channel-based logging for QtWebKit.
2121 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
2122 Warnings for notImplemented() is still output by default, but can be disabled
2123 by setting DISABLE_NI_WARNINGS=1.
2126 (QWebPagePrivate::QWebPagePrivate):
2128 2008-04-28 Simon Hausmann <shausman@trolltech.com>
2130 Rubber-stamped by Lars
2132 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
2134 * Api/qwebframe.cpp:
2139 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2143 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
2146 * Api/qwebframe.cpp:
2151 (QWebView::changeEvent):
2153 2008-04-28 Simon Hausmann <shausman@trolltech.com>
2157 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
2159 Give the popups the right parent widget and the right coordinates relative within the parent.
2164 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
2168 Doc: Add see also's (and a few minor whitespace/typo corrections)
2171 * Api/qwebframe.cpp:
2172 (QWebFrame::~QWebFrame):
2173 (QWebFrame::setHtml):
2174 (QWebFrame::setContent):
2175 (QWebFrame::parentFrame):
2176 (QWebFrame::childFrames):
2177 (QWebFrame::setScrollBarValue):
2178 (QWebFrame::scrollBarValue):
2179 (QWebFrame::scrollBarMaximum):
2180 (QWebFrame::scrollBarMinimum):
2181 (QWebFrame::render):
2183 (QWebFrame::geometry):
2185 (QWebFrame::evaluateJavaScript):
2187 (QWebPagePrivate::mousePressEvent):
2188 (QWebPagePrivate::mouseDoubleClickEvent):
2189 (QWebPage::~QWebPage):
2190 (QWebPage::javaScriptPrompt):
2192 (QWebPage::setViewportSize):
2193 (QWebPage::acceptNavigationRequest):
2195 (QWebPage::userAgentForUrl):
2196 (QWebPagePrivate::_q_onLoadProgressChanged):
2200 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2204 Submitting more documentation for QWebPage
2209 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2213 Compile when QT_NO_CLIPBOARD is defined.
2217 (QWebPage::triggerAction):
2219 2008-04-28 David Boddie <dboddie@trolltech.com>
2223 Minor documentation fix.
2226 * Api/qwebhistory.cpp:
2228 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
2232 Implement QWebPage::createPlugin
2234 The code is coming from the demo browser and needed here
2235 for some manual tests.
2238 * QtLauncher/QtLauncher.pro:
2239 * QtLauncher/main.cpp:
2240 (WebPage::createPlugin):
2242 2008-04-28 Simon Hausmann <hausmann@webkit.org>
2244 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
2245 inclusion correct with regards to rand_s.
2247 * Api/qwebhistory.cpp:
2249 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
2253 https://bugs.webkit.org/show_bug.cgi?id=18713
2255 Fix scrollbar painting issues in QtWebKit.
2257 Hovering and click-draging outside of the scrollbar would
2258 produce unexpected and inconcistent results. We also didn't
2259 pass on leave-events to the underlying WebKit code, which
2260 was nessecary to implement the paint fix.
2262 Note: The event handling of the Leave event should be moved
2263 out of QWebView::event() and into a proper override for 4.5.
2266 (QWebPagePrivate::leaveEvent):
2271 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2273 Reviewed by Simon, Holger.
2275 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
2277 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
2278 without telling the focus controller. We don't want to change the focused frame
2279 - the controller has to remember it in fact - but instead just deactivate the
2280 frame for correct painting as RenderTheme::isFocused() uses the activation
2284 (QWebPagePrivate::focusInEvent):
2285 (QWebPagePrivate::focusOutEvent):
2287 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2291 completed documentation for the Detailed Description section for QWebView
2296 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
2300 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.
2303 * Api/qwebhistory.cpp:
2304 (QWebHistory::back):
2305 (QWebHistory::forward):
2306 (QWebHistory::goToItem):
2308 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
2312 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
2315 * WebCoreSupport/FrameLoaderClientQt.cpp:
2316 (WebCore::FrameLoaderClientQt::createFrame):
2318 2008-04-25 Simon Hausmann <hausmann@webkit.org>
2322 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
2324 The shortcut for back on Windows is backspace. Implemented shortcut override
2325 handling in QWebView/QWebPage to prevent this.
2329 (QWebPagePrivate::wheelEvent):
2330 (editorActionForKeyEvent):
2331 (QWebPagePrivate::keyPressEvent):
2332 (QWebPagePrivate::inputMethodEvent):
2333 (QWebPagePrivate::shortcutOverrideEvent):
2339 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
2343 Fix triple-clicking does not work in a web page
2347 (QWebPagePrivate::updateEditorActions):
2348 (QWebPagePrivate::timerEvent):
2349 (QWebPagePrivate::mousePressEvent):
2350 (QWebPagePrivate::mouseDoubleClickEvent):
2351 (QWebPage::undoStack):
2354 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2358 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
2362 (QWebPagePrivate::keyPressEvent):
2364 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
2368 Fix handling of Javascript's confirm() function in QtWebKit.
2373 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
2377 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
2382 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2386 QWebPage: missing signal when window.print() is requested from javascript
2391 * WebCoreSupport/ChromeClientQt.cpp:
2393 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2397 Fixes: "Save Image" action wasn't doing anything.
2401 (QWebPage::triggerAction):
2403 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2407 Apply key event changes to the current frame, not the main frame.
2409 Example: hitting space bar should scroll current frame, not the main frame
2410 which doesn't even have a scrollbar.
2414 (QWebPagePrivate::keyPressEvent):
2416 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
2420 Fixes: QWebFrame crash when fetching the icon
2422 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
2424 * Api/qwebframe.cpp:
2426 2008-04-25 Warwick Allison <warwick@trolltech.com>
2430 Fixes: Scrollbars did not report correct maximum.
2432 * Api/qwebframe.cpp:
2434 2008-04-25 David Boddie <dboddie@trolltech.com>
2438 Documentation updates for some of the QWeb classes
2440 * Api/qwebframe.cpp:
2441 * Api/qwebhistory.cpp:
2442 * Api/qwebsettings.cpp:
2445 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
2449 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
2451 Similar to Editing and Frameloading we do the dumping within WebCore
2454 * WebCoreSupport/FrameLoaderClientQt.cpp:
2455 (qt_dump_frame_loader):
2456 (qt_dump_resource_load_callbacks):
2457 (drtDescriptionSuitableForTestResult):
2458 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2459 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2460 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2462 2008-04-24 Anders Carlsson <andersca@apple.com>
2466 Change some String arguments to be const references instead.
2468 * WebCoreSupport/EditorClientQt.cpp:
2469 (WebCore::EditorClientQt::shouldInsertText):
2470 * WebCoreSupport/EditorClientQt.h:
2472 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
2476 Cosmetic changes to make the code more readable.
2477 -Early exit if we don't have a webview
2478 -handle the empty tooltip and non-empty tooltip case separately
2481 * WebCoreSupport/ChromeClientQt.cpp:
2482 (WebCore::ChromeClientQt::setToolTip):
2483 (WebCore::ChromeClientQt::print):
2485 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
2489 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
2491 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
2492 Workaround as discussed with Matthias.
2494 * WebCoreSupport/ChromeClientQt.cpp:
2495 (WebCore::ChromeClientQt::setToolTip):
2497 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
2501 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
2503 * Api/qwebsettings.cpp:
2504 (QWebSettings::setObjectCacheCapacities):
2506 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
2510 Improve keyboard scrolling
2512 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
2516 (QWebPagePrivate::keyPressEvent):
2518 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
2522 Fix various compiler warnings in the Qt port.
2524 * Api/qwebframe.cpp:
2526 * Api/qwebsettings.cpp:
2528 * WebCoreSupport/FrameLoaderClientQt.cpp:
2529 (WebCore::FrameLoaderClientQt::createPlugin):
2531 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
2535 Cleaned up copyright headers (removed misplaced class descriptions and
2536 fixed inconsistent whitespace and indentation).
2538 * Api/qwebframe.cpp:
2540 * Api/qwebframe_p.h:
2541 * Api/qwebhistory.cpp:
2542 * Api/qwebhistory.h:
2543 * Api/qwebhistory_p.h:
2544 * Api/qwebhistoryinterface.cpp:
2545 * Api/qwebhistoryinterface.h:
2546 * Api/qwebkitglobal.h:
2547 * Api/qwebnetworkinterface.cpp:
2548 * Api/qwebnetworkinterface.h:
2549 * Api/qwebnetworkinterface_p.h:
2553 * Api/qwebpluginfactory.cpp:
2554 * Api/qwebpluginfactory.h:
2555 * Api/qwebsettings.cpp:
2556 * Api/qwebsettings.h:
2558 * QtLauncher/main.cpp:
2560 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
2564 Added basic URL guessing to QtLauncher (same as in the demo browser).
2567 * QtLauncher/main.cpp:
2568 (MainWindow::changeLocation):
2569 (MainWindow::guessUrlFromString):
2571 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
2573 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2575 Prevent double deletions of the default web interface.
2578 * Api/qwebhistoryinterface.cpp:
2579 (gCleanupInterface):
2580 (QWebHistoryInterface::QWebHistoryInterface):
2582 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2584 Fix compilation against Qt 4.3
2587 (QWebPage::userAgentForUrl):
2588 * QtLauncher/main.cpp:
2591 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
2595 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
2596 to ContextMenu::populate() is not adding it, the ContextMenuController does
2597 add it after the call to populate(). Do that as well.
2601 (QWebPage::updatePositionDependentActions):
2603 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2607 Fix crashes on window.close().
2609 We should not delete the QWebPage object in the ChromeClient but leave it up to
2610 the application when and whether to delete a browser window. For this we now
2611 emit the windowCloseRequested() signal.
2617 * QtLauncher/main.cpp:
2618 (MainWindow::MainWindow):
2619 * WebCoreSupport/ChromeClientQt.cpp:
2621 2008-04-23 Simon Hausmann <hausmann@webkit.org>
2625 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
2627 We used to pass the html string to the frameloader in utf-16, which also meant that the default
2628 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
2629 by default. This is now also documented.
2631 * Api/qwebframe.cpp:
2632 (QWebFrame::setHtml):
2635 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
2639 Fixes background color propagation when using a custom QWebPage
2641 Set the palette in setPage(), not during the creation on-demand.
2646 (QWebView::setPage):
2648 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
2652 Fix the user agent on the mac to be BSD4
2654 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
2658 (QWebPage::userAgentForUrl):
2660 2008-04-23 Simon Hausmann <shausman@trolltech.com>
2664 Added missing copyright notice.
2665 Small fixes to the documentation.
2667 * Api/qwebpluginfactory.cpp:
2669 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
2673 Added a contentsSize() property.
2675 * Api/qwebframe.cpp:
2676 (QWebFrame::contentsSize):
2677 (QWebFrame::hitTestContent):
2680 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2684 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
2686 Don't force the deletion of the object, but let QObject take care of it.
2690 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2694 Documentation for QWebPluginFactory and documentation updates for QWebPage.
2697 (QWebPage::setLinkDelegationPolicy):
2698 (QWebPage::linkDelegationPolicy):
2699 (QWebPage::swallowContextMenuEvent):
2700 (QWebPage::updatePositionDependentActions):
2701 (QWebPage::extension):
2702 (QWebPage::networkAccessManager):
2703 * Api/qwebpluginfactory.cpp:
2704 (QWebPluginFactory::QWebPluginFactory):
2705 (QWebPluginFactory::~QWebPluginFactory):
2706 (QWebPluginFactory::refreshPlugins):
2708 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2712 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
2716 (QWebPagePrivate::QWebPagePrivate):
2717 (QWebPagePrivate::mouseReleaseEvent):
2718 (QWebPage::setLinkDelegationPolicy):
2719 (QWebPage::linkDelegationPolicy):
2720 (QWebPage::swallowContextMenuEvent):
2721 (QWebPage::updatePositionDependentActions):
2727 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2731 Added Extension APIs for QWebPage.
2734 (QWebPage::setLinkDelegationPolicy):
2735 (QWebPage::linkDelegationPolicy):
2736 (QWebPage::extension):
2738 * Api/qwebpluginfactory.cpp:
2739 (QWebPluginFactory::extension):
2741 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
2745 Emit loadProgress() signal on loadStarted().
2748 * WebCoreSupport/FrameLoaderClientQt.cpp:
2749 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2751 2008-04-22 Zack Rusin <zack@kde.org>
2755 Fix background propagation from the QWebView's palette.
2757 The background brush of the palette needs to be propagated to the WebCore::FrameView.
2759 * Api/qwebframe.cpp:
2760 (QWebFramePrivate::updateBackground):
2761 * Api/qwebframe_p.h:
2763 (QWebPagePrivate::dropEvent):
2764 (QWebPage::setPalette):
2769 (QWebView::changeEvent):
2771 * WebCoreSupport/FrameLoaderClientQt.cpp:
2773 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2779 We have to include a version in the Safari tag in the user-agent.
2782 (QWebPage::userAgentForUrl):
2784 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
2788 Add visual focusing hint for clear button and
2789 change focus to web page after user enters new URL.
2791 * QtLauncher/main.cpp:
2792 (ClearButton::paintEvent):
2793 (MainWindow::changeLocation):
2795 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2799 Added QWebFrame::hitTestContent() and QWebHitTestResult.
2801 * Api/qwebframe.cpp:
2802 (QWebFrame::hitTestContent):
2804 (QWebHitTestResult::QWebHitTestResult):
2805 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2806 (QWebHitTestResult::operator=):
2807 (QWebHitTestResult::~QWebHitTestResult):
2808 (QWebHitTestResult::isNull):
2809 (QWebHitTestResult::pos):
2810 (QWebHitTestResult::title):
2811 (QWebHitTestResult::linkText):
2812 (QWebHitTestResult::linkUrl):
2813 (QWebHitTestResult::linkTitle):
2814 (QWebHitTestResult::linkTargetFrame):
2815 (QWebHitTestResult::alternateText):
2816 (QWebHitTestResult::imageUrl):
2817 (QWebHitTestResult::pixmap):
2818 (QWebHitTestResult::isContentEditable):
2819 (QWebHitTestResult::isContentSelected):
2820 (QWebHitTestResult::frame):
2822 * Api/qwebframe_p.h:
2823 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2825 (QWebPagePrivate::contextMenuEvent):
2826 (QWebPage::triggerAction):
2830 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2834 Don't crash if an input method query is done without a page.
2838 (QWebView::inputMethodQuery):
2840 2008-04-22 Simon Hausmann <hausmann@webkit.org>
2844 Added re-implementations of QObject::event for future safety.
2846 This makes it easier to fix bugs with the event handling even in patch releases
2847 and is a general style we follow in Qt.
2850 * Api/qwebframe.cpp:
2856 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
2860 Fix construction of the user agent.
2862 The user-agent is now composed of
2863 * the platform and subplatform
2864 * the Qt version or application name and version (if set)
2870 (QWebPage::networkAccessManager):
2871 (QWebPage::setPluginFactory):
2872 (QWebPage::pluginFactory):
2873 (QWebPage::userAgentForUrl):
2874 * QtLauncher/main.cpp:
2876 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
2880 Fixes: Pedantic compilation fix
2882 Don't put semi-colons after braces closing namespaces.
2884 * Api/qwebsettings.h:
2886 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2890 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
2892 * Api/qwebframe.cpp:
2893 (QWebFrame::evaluateJavaScript):
2896 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2900 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
2902 Don't show sub-menus that have only actions that are disabled.
2905 (QWebPagePrivate::createContextMenu):
2907 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
2911 Lots of documentation fixes, fixed all qdoc warnings.
2913 * Api/qwebframe.cpp:
2914 (QWebFrame::setTextSizeMultiplier):
2915 * Api/qwebhistoryinterface.cpp:
2916 (gCleanupInterface):
2917 (QWebHistoryInterface::QWebHistoryInterface):
2918 (QWebHistoryInterface::~QWebHistoryInterface):
2920 (QWebPage::inputMethodQuery):
2922 (QWebPage::javaScriptConsoleMessage):
2923 (QWebPage::javaScriptAlert):
2924 (QWebPage::javaScriptConfirm):
2925 (QWebPage::javaScriptPrompt):
2926 (QWebPage::viewportSize):
2927 (QWebPage::acceptNavigationRequest):
2930 (QWebPage::focusNextPrevChild):
2931 (QWebPage::setForwardUnsupportedContent):
2932 (QWebPage::setLinkDelegationPolicy):
2933 (QWebPage::findText):
2934 (QWebPage::settings):
2935 (QWebPage::networkProxy):
2936 (QWebPage::setNetworkAccessManager):
2938 * Api/qwebsettings.cpp:
2939 (QWebSettings::QWebSettings):
2940 (QWebSettings::setIconDatabasePath):
2941 (QWebSettings::iconForUrl):
2942 (QWebSettings::fontFamily):
2947 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
2951 Fix compile failure on solaris-cc
2953 * Api/qwebpage.h: Removed trailing semicolons and moved the private
2954 d-pointer to not confuse the compiler
2956 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2960 Build fix for Qt 4.3
2962 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
2963 always defined. Do this by adding defines to the compiler line
2964 * For users of our API this is not feasible. Every public header file should
2965 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
2966 when we are building everything < 4.4.0 and don't have them defined.
2968 * Api/qwebkitglobal.h:
2970 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2974 * Initialize the WebGraphics with the one found in WebCore
2977 * Api/qwebsettings.cpp:
2978 (QWebSettingsPrivate::apply):
2980 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2984 * Allow TextAreas to be resized.
2985 * No QWebSettings for this is introduced.
2988 * Api/qwebsettings.cpp:
2989 (QWebSettingsPrivate::apply):
2991 2008-04-21 Simon Hausmann <shausman@trolltech.com>
2995 Fixes: QWebView::url property behaviour strange in designer
2997 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.
2999 * Api/qwebframe.cpp:
3000 (QWebFrame::setUrl):
3006 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
3008 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3010 Fix compilation with Qt namespaces
3012 * Api/qwebframe.cpp:
3016 2008-04-21 Simon Hausmann <hausmann@webkit.org>
3020 When printing on high resolution printers we need to scale the painter accordingly (for now).
3022 * Api/qwebframe.cpp:
3025 2008-04-21 Simon Hausmann <hausmann@webkit.org>
3029 Provide a print preview in the QtLauncher
3031 * QtLauncher/main.cpp:
3032 (MainWindow::MainWindow):
3033 (MainWindow::showLinkHover):
3034 (MainWindow::print):
3036 2008-04-20 Simon Hausmann <hausmann@webkit.org>
3038 Reviewed by Alp Toker.
3040 Share the printing code between the Gtk and the Qt port
3041 and added printing to the Qt WebKit API.
3043 * Api/qwebframe.cpp:
3050 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
3052 Qt build fix (renderer() -> contentRenderer()).
3054 * Api/qwebframe.cpp:
3055 (QWebFrame::renderTreeDump):
3056 (QWebFrame::render):
3058 2008-04-18 Simon Hausmann <hausmann@webkit.org>
3062 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
3064 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
3065 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
3066 rules of the Qt API.
3068 * Api/qwebframe.cpp:
3069 (QWebFrame::addToJavaScriptWindowObject):
3070 (QWebFrame::toHtml):
3071 (QWebFrame::toPlainText):
3073 (QWebFrame::setContent):
3074 (QWebFrame::setScrollBarPolicy):
3075 (QWebFrame::render):
3076 (QWebFrame::setTextSizeMultiplier):
3077 (QWebFrame::textSizeMultiplier):
3080 * Api/qwebhistory.cpp:
3081 * Api/qwebhistory.h:
3083 (QWebPagePrivate::QWebPagePrivate):
3084 (QWebPagePrivate::~QWebPagePrivate):
3085 (QWebPagePrivate::acceptNavigationRequest):
3086 (webActionForContextMenuAction):
3087 (QWebPagePrivate::updateAction):
3088 (QWebPagePrivate::keyPressEvent):
3090 (QWebPage::javaScriptPrompt):
3091 (QWebPage::createWindow):
3092 (QWebPage::triggerAction):
3093 (QWebPage::setViewportSize):
3094 (QWebPage::acceptNavigationRequest):
3096 (QWebPage::focusNextPrevChild):
3097 (QWebPage::setForwardUnsupportedContent):
3098 (QWebPage::forwardUnsupportedContent):
3099 (QWebPage::setLinkDelegationPolicy):
3100 (QWebPage::findText):
3101 (QWebPage::networkAccessManager):
3102 (QWebPageContext::imageUrl):
3103 (QWebPageContext::image):
3106 * Api/qwebsettings.cpp:
3107 (QWebSettingsPrivate::apply):
3108 (QWebSettings::QWebSettings):
3109 (QWebSettings::setIconDatabasePath):
3110 (QWebSettings::iconDatabasePath):
3111 (QWebSettings::clearIconDatabase):
3112 (QWebSettings::iconForUrl):
3113 (QWebSettings::setWebGraphic):
3114 (QWebSettings::fontFamily):
3115 (QWebSettings::setAttribute):
3116 (QWebSettings::testAttribute):
3117 (QWebSettings::resetAttribute):
3118 * Api/qwebsettings.h:
3120 (QWebView::setPage):
3122 (QWebView::setTextSizeMultiplier):
3123 (QWebView::textSizeMultiplier):
3124 (QWebView::findText):
3126 (QWebView::mouseMoveEvent):
3128 * QtLauncher/main.cpp:
3129 (MainWindow::MainWindow):
3131 * WebCoreSupport/ChromeClientQt.cpp:
3132 (WebCore::ChromeClientQt::ChromeClientQt):
3133 (WebCore::ChromeClientQt::setWindowRect):
3134 (WebCore::ChromeClientQt::toolbarsVisible):
3135 (WebCore::ChromeClientQt::setStatusbarVisible):
3136 (WebCore::ChromeClientQt::statusbarVisible):
3137 (WebCore::ChromeClientQt::setScrollbarsVisible):
3138 (WebCore::ChromeClientQt::setResizable):
3139 (WebCore::ChromeClientQt::scrollBackingStore):
3140 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3141 (WebCore::ChromeClientQt::setToolTip):
3142 * WebCoreSupport/ChromeClientQt.h:
3143 * WebCoreSupport/FrameLoaderClientQt.cpp:
3144 (WebCore::FrameLoaderClientQt::setFrame):
3145 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
3146 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3147 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
3148 (WebCore::FrameLoaderClientQt::createFrame):
3149 (WebCore::FrameLoaderClientQt::objectContentType):
3150 * WebCoreSupport/FrameLoaderClientQt.h:
3151 * WebCoreSupport/InspectorClientQt.cpp:
3153 2008-04-18 Simon Hausmann <hausmann@webkit.org>
3157 Added QWebView::find/QWebFrame::find.
3160 (QWebPage::focusNextPrevChild):
3167 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
3171 fix potential crash when loading image(s)
3173 Crash may occur. If compiled with 4.3, the variable is not initialized.
3174 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
3177 (QWebPagePrivate::QWebPagePrivate):
3179 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3183 Update the micro focus for input methods as soon as the composition mode changes
3184 or the caret/selection changes.
3190 (QWebView::setPage):
3191 * WebCoreSupport/EditorClientQt.cpp:
3192 (WebCore::EditorClientQt::respondToChangedSelection):
3193 (WebCore::EditorClientQt::setInputMethodState):
3195 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3199 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
3200 it yields undefined behaviour or wrong default codec initialization.
3203 * QtLauncher/main.cpp:
3204 (WebPage::createWindow):
3206 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
3210 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
3213 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
3214 selections then we support copy & paste into the selection.
3216 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
3220 Add basic input method support.
3224 (QWebPagePrivate::dropEvent):
3225 (QWebPagePrivate::inputMethodEvent):
3226 (QWebPage::inputMethodQuery):
3231 (QWebView::QWebView):
3232 (QWebView::inputMethodQuery):
3233 (QWebView::inputMethodEvent):
3235 * WebCoreSupport/EditorClientQt.cpp:
3236 (WebCore::EditorClientQt::setInputMethodState):
3238 2008-04-15 Simon Hausmann <hausmann@webkit.org>
3242 Added (QWebFrame|QWebView)::textZoomFactor.
3245 * Api/qwebframe.cpp:
3246 (QWebFrame::setTextZoomFactor):
3247 (QWebFrame::textZoomFactor):
3250 (QWebView::setTextZoomFactor):
3251 (QWebView::textZoomFactor):
3254 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
3258 Added simple scrolling API to QWebFrame.
3260 The intent is that it works similar to QAbstractScrollArea.
3263 * Api/qwebframe.cpp:
3264 (QWebFrame::setScrollBarValue):
3265 (QWebFrame::scrollBarValue):
3266 (QWebFrame::scrollBarMaximum):
3267 (QWebFrame::scrollBarMinimum):
3270 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
3274 Fixes: implement the OpenFrameInNewWindow action.
3278 (QWebPage::triggerAction):
3280 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
3284 Fix compilation with Qt namespaces
3286 Qt can be configured to have all of its classes inside a specified namespaces.
3287 This is for example used in plugin/component environments like Eclipse.
3289 This change makes it possible to let the Qt port compile against a namespaced
3290 Qt by the use of macros Qt provides to properly forward declare Qt classes in
3296 * Api/qwebpluginfactory.h:
3297 * Api/qwebsettings.h:
3300 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
3304 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
3308 (QWebPage::triggerAction):
3310 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
3314 Fixes: Right click, and "Open image" open the link instead of the image.
3319 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
3323 Added doc stub for QWebSettings so class docs are generated
3326 * Api/qwebsettings.cpp:
3327 (QWebSettings::QWebSettings):
3329 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3333 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
3335 * The question is if these signals belong to QWebPage or QWebFrame.
3336 -It is more easy to have them in QWebPage because ScrollView is invoking
3337 the ChromeClient with the right coordinates
3338 -On the other hand someone wants to render frames separately. But this is partly
3339 doomed as you can have overlapping frames and what you paint would not relate to
3340 what you normally see on webpages.
3345 * WebCoreSupport/ChromeClientQt.cpp:
3346 (WebCore::ChromeClientQt::scrollBackingStore):
3347 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3349 2008-04-03 Simon Hausmann <hausmann@webkit.org>
3351 Reviewed by Mark Rowe.
3353 Roll out r31599 and r31605 again after discussion with Mark Rowe.
3355 * Api/qwebframe.cpp:
3357 * Api/qwebsettings.cpp:
3358 (QWebSettings::iconForUrl):
3360 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3364 * Change IconDatabase::iconForPageURL to return more information. E.g. if
3365 an image has been found, or if the loading of an image has been scheduled.
3366 * Update FrameLoader to use another method to trigger reading from disk
3367 * Update the QWebFrame and QWebSettings
3369 * Api/qwebframe.cpp:
3371 * Api/qwebsettings.cpp:
3372 (QWebSettings::iconForUrl):
3374 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3378 * Safari is using the IconDatabase the following way (assumption). Before they
3379 call iconDatabase()->open they "retain" all URLs they are interested in, these
3380 could come from the history.
3381 * When opening the iconDatabase() a thread will be started that is going to import
3382 the URLs, all none manually retained URLs are scheduled for removal. The removal
3383 is going to happen when the next icon gets stored in the database.
3384 * We do not have any IconDatabase code, we can not retain the URLs before opening the
3385 database. To disable the automatic pruning of the icons we will ask the IconDatabase
3386 to delay this operation. This means our IconDatabase, when used, will grow, so we should
3387 try to have a IconDatabase class in 4.4.
3388 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
3391 * Api/qwebsettings.cpp:
3392 (QWebSettings::clearIconDatabase):
3393 * Api/qwebsettings.h:
3395 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
3399 Add a way to get the site icon for a url
3400 static QPixmap iconForUrl(const QUrl &url);
3403 * Api/qwebsettings.cpp:
3404 (QWebSettings::iconForUrl):
3405 * Api/qwebsettings.h:
3407 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3411 * Update the Copyright info in QWebSettings
3414 * Api/qwebsettings.cpp:
3415 * Api/qwebsettings.h:
3417 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3421 * The isEmpty check is not needed anymore with the earlier backport
3424 * Api/qwebframe.cpp:
3427 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3431 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
3432 is not exporting enough to create the output in DRT itself. Settle with the approach
3433 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
3434 * run-webkit-tests http/tests(/loading) can now be executed.
3435 * For tests in loading/ directories we are going to throw away the dirty
3436 QWebPage to start with something clean.
3439 * WebCoreSupport/FrameLoaderClientQt.cpp:
3440 (qt_dump_frame_loader):
3441 (drtDescriptionSuitableForTestResult):
3442 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3443 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3444 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3445 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3446 (WebCore::FrameLoaderClientQt::dispatchWillClose):
3447 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3448 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3449 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3450 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
3451 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3452 (WebCore::FrameLoaderClientQt::registerForIconNotification):
3453 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3454 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3456 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3460 * Export the PageCache and Cache capacity call one to one. This is only there
3461 to allow the QtLauncher to play with caching.
3462 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
3463 and determine certain values automatically.
3466 * Api/qwebsettings.cpp:
3467 (QWebSettings::setPageCacheCapacity):
3468 (QWebSettings::setObjectCacheCapacities):
3469 * Api/qwebsettings.h:
3470 * QtLauncher/main.cpp:
3472 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3476 Prepapre everything for enabling the PageCache for the Qt Platform:
3477 * Claim that we can cache pages
3478 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
3479 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
3481 Differences to the Windows port:
3482 * attachToWindow/detachFromWindow is not called and is not (yet) part
3483 of Widget/ScrollView of the Qt platform. We might need that for plugin
3484 support in the future.
3485 * We store the margin's and scrolling flag inside QWebFrame and use it when
3486 creating the FrameView.
3489 * API to call pageCache()->setCapacity(XYZ);
3492 * Api/qwebframe.cpp:
3493 (QWebFramePrivate::init):
3494 * Api/qwebframe_p.h:
3495 (QWebFramePrivate::QWebFramePrivate):
3497 (QWebPagePrivate::createMainFrame):
3498 * WebCoreSupport/FrameLoaderClientQt.cpp:
3499 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3500 (WebCore::FrameLoaderClientQt::blockedError):
3502 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3506 * For the PageCache support we do not want to create a FrameView in the constructor
3507 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
3508 create a QWebFrame if no mainFrame is present and this gets called when we try to
3509 create a FrameView...
3510 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
3515 (QWebPagePrivate::QWebPagePrivate):
3516 (QWebPage::triggerAction):
3519 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3523 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
3525 * WebCoreSupport/FrameLoaderClientQt.cpp:
3528 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3532 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
3533 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
3534 call and should stay valid until the destruction of the QWebFrame.
3535 * Currently the same checking is not needed for m_frame as it will only set to 0 in
3536 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
3540 * WebCoreSupport/FrameLoaderClientQt.cpp:
3541 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3542 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3543 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
3544 (WebCore::FrameLoaderClientQt::objectContentType):
3545 (WebCore::FrameLoaderClientQt::createPlugin):
3547 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3551 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
3552 and WebCore::Frame get destroyed if we leave site with subframes and on the
3553 end of the application.
3554 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
3555 do not want to add an extra reference. Without this we are leaking subframes.
3556 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
3557 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
3558 in the frameLoaderDestroyed method to do that.
3559 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
3560 zero in the FrameLoaderClientQt to avoid bad things.
3563 * Api/qwebframe.cpp:
3564 (QWebFrame::~QWebFrame):
3565 * WebCoreSupport/FrameLoaderClientQt.cpp:
3566 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3567 (WebCore::FrameLoaderClientQt::objectContentType):
3568 * WebCoreSupport/FrameLoaderClientQt.h:
3570 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3574 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
3575 QWebFrame should have the same lifetime everything else is a leak
3578 * Api/qwebframe.cpp:
3579 (QWebFramePrivate::init):
3580 * Api/qwebframe_p.h:
3581 * WebCoreSupport/FrameLoaderClientQt.cpp:
3583 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3587 * Do not store the QWebFrame associated with a ScrollView/FrameView
3588 in the WebCore::Widget.
3589 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
3590 and QWebFramePrivate::kit function to convert from and to QWebFrame.
3593 * Api/qwebframe.cpp:
3594 (QWebFramePrivate::init):
3596 (QWebPagePrivate::createMainFrame):
3598 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3602 * Do not store the FrameView in the QWebFrame and cope with the situation when
3603 a WebCore::Frame has no WebCore::FrameView.
3606 * Api/qwebframe.cpp:
3607 (QWebFramePrivate::init):
3608 (QWebFramePrivate::horizontalScrollBar):
3609 (QWebFramePrivate::verticalScrollBar):
3610 (QWebFrame::innerText):
3611 (QWebFrame::renderTreeDump):
3612 (QWebFrame::setVerticalScrollBarPolicy):
3613 (QWebFrame::setHorizontalScrollBarPolicy):
3614 (QWebFrame::render):
3615 (QWebFrame::layout):
3617 * Api/qwebframe_p.h:
3618 (QWebFramePrivate::QWebFramePrivate):
3620 (QWebPagePrivate::updateEditorActions):
3621 (QWebPagePrivate::mouseMoveEvent):
3622 (QWebPagePrivate::mousePressEvent):
3623 (QWebPagePrivate::mouseDoubleClickEvent):
3624 (QWebPagePrivate::contextMenuEvent):
3625 (QWebPagePrivate::wheelEvent):
3626 (QWebPage::triggerAction):
3627 * WebCoreSupport/FrameLoaderClientQt.cpp:
3629 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3633 * Change the order of the methods to match with the FrameLoaderClient.h to ease
3634 removing methods in the future.
3636 * WebCoreSupport/FrameLoaderClientQt.h:
3638 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3642 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
3644 * WebCoreSupport/FrameLoaderClientQt.cpp:
3645 (WebCore::FrameLoaderClientQt::detachedFromParent4):
3646 * WebCoreSupport/FrameLoaderClientQt.h:
3648 2008-03-25 Brady Eidson <beidson@apple.com>
3652 Remove newly obsolete FrameLoaderClient methods
3654 * WebCoreSupport/FrameLoaderClientQt.cpp:
3655 * WebCoreSupport/FrameLoaderClientQt.h:
3657 2008-03-22 Mark Rowe <mrowe@apple.com>
3661 * WebCoreSupport/FrameLoaderClientQt.cpp:
3664 2008-03-18 Simon Hausmann <hausmann@webkit.org>
3668 Fix the Qt build. Don't return void in non-void functions.
3670 * Api/qwebpluginfactory.cpp:
3671 (QWebPluginFactory::extension):
3673 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
3677 Don't use RefPtr in classes you haven't seen the implementation of.
3679 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
3680 cannot *use* said objects until Foo is defined. This is true even for
3681 initialisation with a 0.
3683 Seems the HP aCC compiler is more strict here than gcc.
3685 * Api/qwebframe_p.h:
3687 2008-03-14 Simon Hausmann <hausmann@webkit.org>
3691 * Api/qwebframe.cpp:
3692 (QWebFrame::setHtml):
3693 (QWebFrame::setContent):
3695 2008-03-13 Simon Hausmann <hausmann@webkit.org>
3699 * Api/qwebframe.cpp:
3700 (QWebFrame::addToJSWindowObject):
3702 2008-03-12 Simon Hausmann <hausmann@webkit.org>
3704 Fix compilation against Qt 4.3
3710 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
3714 * WebCoreSupport/FrameLoaderClientQt.cpp:
3715 (FrameLoaderClientQt::CreatePlugin):
3717 2008-03-11 Simon Hausmann <hausmann@webkit.org>
3719 Fix the Qt build (silly typo).
3721 * QtLauncher/main.cpp:
3722 (MainWindow::MainWindow):
3724 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
3728 Moved obscuring progress bar to the lower right corner.
3730 * QtLauncher/main.cpp:
3731 (MainWindow::MainWindow):
3732 (MainWindow::resizeEvent):
3734 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
3738 Added reload action and grouped stop and reload actions together.
3740 * QtLauncher/main.cpp:
3741 (MainWindow::MainWindow):
3743 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3747 * Set a Icon on the QAction if we have one.
3752 2008-03-11 Simon Hausmann <hausmann@webkit.org>
3756 * Api/qwebframe.cpp:
3757 (QWebFrame::addToJSWindowObject):
3759 2008-03-07 Simon Hausmann <hausmann@webkit.org>
3761 Reviewed by Darin Adler.
3765 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
3767 * Api/qwebnetworkinterface.cpp:
3768 (QWebNetworkManager::add):
3769 (QWebNetworkManager::cancel):