2011-03-10 Andreas Kling <kling@webkit.org>
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-03-10  Andreas Kling  <kling@webkit.org>
2
3         Unreviewed build fix after r80774.
4
5         QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
6         See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
7
8         * declarative/plugin.cpp:
9         (WebKitQmlPlugin::registerTypes):
10         * declarative/qdeclarativewebview.cpp:
11         * declarative/qdeclarativewebview_p.h:
12         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
13
14 2011-03-10  Alexis Menard  <alexis.menard@openbossa.org>
15
16         Reviewed by Andreas Kling.
17
18         [Qt] QtDeclarative Webview element has a fixed white background
19         https://bugs.webkit.org/show_bug.cgi?id=40918
20
21         Implement a way to change the background color of the WebView QML element.
22         This feature is activated for QtWebKit 1.1 version of the plugin.
23
24         * declarative/plugin.cpp:
25         (WebKitQmlPlugin::registerTypes):
26         * declarative/qdeclarativewebview.cpp:
27         (QDeclarativeWebView::backgroundColor):
28         (QDeclarativeWebView::setBackgroundColor):
29         * declarative/qdeclarativewebview_p.h:
30         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Added.
31         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
32         (tst_QDeclarativeWebView::backgroundColor):
33         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
34
35 2011-03-10  Stanislav Paltis  <Stanislav.Paltis@nokia.com>
36
37         Reviewed by Laszlo Gombos.
38
39         [Qt] MemoryCache deadDecodedDataDeletionInterval is not exposed for client's usage
40         https://bugs.webkit.org/show_bug.cgi?id=55945
41         
42         Added handling of dynamic/runtime property _q_deadDecodedDataDeletionInterval to 
43         set interval used to trigger when decoded data in dead list of object cache will 
44         be purged from object cache. 
45
46         * Api/qwebpage.cpp:
47         (QWebPagePrivate::dynamicPropertyChangeEvent):
48
49 2011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
50
51         Reviewed by Antonio Gomes.
52
53         Simplify how QWebFrame::requestedUrl() is obtained
54         https://bugs.webkit.org/show_bug.cgi?id=55842
55
56         When a load starts, store the requested URL until we know that it'll be
57         available for us in the document loader -- after load finished.
58
59         The existing auto tests cover the three different code paths in
60         requestedUrl() and the new code passes the autotests. In each of those
61         cases, we looked for the information in a different place, but in all
62         of them, dispatchDidStartProvisionalLoad was called.
63
64         This simplification will be useful to fix bug 32723. The way requestedUrl()
65         is implementent, we can't use it as a fallback for url() when the setUrl()
66         was called with an invalid URL.
67
68         * Api/qwebframe.cpp:
69         (QWebFrame::requestedUrl):
70         * WebCoreSupport/FrameLoaderClientQt.cpp:
71         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
72         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
73         * WebCoreSupport/FrameLoaderClientQt.h:
74         (WebCore::FrameLoaderClientQt::lastRequestedUrl):
75
76 2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
77
78         Reviewed by Kenneth Rohde Christiansen.
79
80         Tiled backing store's delegated scroll request uses incorrect convention
81         https://bugs.webkit.org/show_bug.cgi?id=56011
82
83         Adapt internal API to match the change from delta to point on the
84         WebCore side, and convert the point to a delta for the public API.
85
86         * WebCoreSupport/ChromeClientQt.cpp:
87         (WebCore::ChromeClientQt::delegatedScrollRequested):
88         * WebCoreSupport/ChromeClientQt.h:
89
90 2011-03-09  Peter Kasting  <pkasting@google.com>
91
92         Reviewed by Mihai Parparita.
93
94         Unify Windows version checks.
95         https://bugs.webkit.org/show_bug.cgi?id=55979
96
97         * Api/qwebpage.cpp:
98         (QWebPage::userAgentForUrl):
99
100 2011-03-07  Sam Weinig  <sam@webkit.org>
101
102         Reviewed by Anders Carlsson.
103
104         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
105         https://bugs.webkit.org/show_bug.cgi?id=55827
106
107         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
108         and pass the entire response, instead of just the MIMEType.
109
110         * WebCoreSupport/FrameLoaderClientQt.cpp:
111         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
112         * WebCoreSupport/FrameLoaderClientQt.h:
113
114 2011-03-05  Qi Zhang  <qi.2.zhang@nokia.com>
115
116         Reviewed by Laszlo Gombos.
117
118         [Qt] Mobile Devices should include Model and Firmware Version in Webkit Generated User Agent String
119         https://bugs.webkit.org/show_bug.cgi?id=48636
120
121         Add model infomation into user agent string when qtmobility is available, but only for symbian, Maemo and MeeGo.
122
123         * Api/qwebpage.cpp:
124         (QWebPage::userAgentForUrl):
125
126 2011-03-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
127
128         Reviewed by Kenneth Rohde Christiansen.
129
130         [QT] Implement mock client-based geolocation for layout testing
131         https://bugs.webkit.org/show_bug.cgi?id=54334
132
133         Implement layout testing for Client-Based geolocation. If drt_run is set 
134         then create mock geolocationClient and update the same with controller.
135
136         * Api/qwebpage.cpp:
137         (QWebPagePrivate::QWebPagePrivate):
138         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
139         (DumpRenderTreeSupportQt::mockGeolocationReset):
140         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
141         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
142         (DumpRenderTreeSupportQt::setMockGeolocationError):
143         * WebCoreSupport/DumpRenderTreeSupportQt.h:
144         * WebCoreSupport/GeolocationClientQt.cpp:
145         (WebCore::GeolocationClientQt::GeolocationClientQt):
146         * WebCoreSupport/GeolocationClientQt.h:
147
148 2011-03-03  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
149
150         Reviewed by Kenneth Rohde Christiansen.
151
152         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
153         https://bugs.webkit.org/show_bug.cgi?id=32723
154
155         Create an auto-test for Qt based on the bug description.
156
157         * tests/qwebframe/tst_qwebframe.cpp: add setUrlWithFragment() test.
158
159 2011-03-03  Brady Eidson  <beidson@apple.com>
160
161         Reviewed by Darin Adler.
162
163         https://bugs.webkit.org/show_bug.cgi?id=55721
164         Global IconDatabase should be returned by reference, not as a pointer
165
166         * Api/qwebsettings.cpp:
167         (QWebSettings::setIconDatabasePath):
168         (QWebSettings::iconDatabasePath):
169         (QWebSettings::clearIconDatabase):
170         (QWebSettings::iconForUrl):
171
172 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
173
174         Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
175         via ChromeClient.h
176
177         * WebCoreSupport/ChromeClientQt.h:
178
179 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
180
181         Reviewed by Darin Adler.
182
183         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
184         https://bugs.webkit.org/show_bug.cgi?id=55633
185         <rdar://problem/8963023>
186
187         * WebCoreSupport/ChromeClientQt.cpp (WebCore::ChromeClientQt::keyboardUIMode):
188         * WebCoreSupport/ChromeClientQt.h:
189         Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
190         this platform doesn't observe or have full keyboard access state.
191
192 2011-03-03  Alexis Menard  <alexis.menard@openbossa.org>
193
194         Reviewed by Andreas Kling.
195
196         [Qt] QGraphicsWebView should use updateMicroFocus() of QGraphicsItem
197         https://bugs.webkit.org/show_bug.cgi?id=55568
198
199         We should use updateMicroFocus() from QGraphicsItem rather than the implementation
200         in QGraphicsWebView. _q_updateMicroFocus was added when QGraphicsItem didn't have the feature.
201         In Qt 4.7, updateMicroFocus was added, let's use it, then we can benefit of all bug fixing done
202         in QGraphicsItem.
203
204         * Api/qgraphicswebview.cpp:
205         (QGraphicsWebView::setPage):
206         * Api/qgraphicswebview.h:
207
208 2011-03-03  Peter Kasting  <pkasting@google.com>
209
210         Reviewed by James Robinson.
211
212         Drop redundant "Windows; " from the Windows-specific User Agent string.
213         https://bugs.webkit.org/show_bug.cgi?id=54567
214
215         * Api/qwebpage.cpp:
216         (QWebPage::userAgentForUrl):
217
218 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
219
220         Reviewed by Adam Roben.
221
222         Part of WebKit2: Need a way to send notifications to client when cookies change
223         https://bugs.webkit.org/show_bug.cgi?id=55427
224         <rdar://problem/9056027>
225         
226         Add stubs for CookiesStrategy on Qt WebKit1.
227
228         * WebCoreSupport/WebPlatformStrategies.cpp:
229         (WebPlatformStrategies::createCookiesStrategy):
230         (WebPlatformStrategies::notifyCookiesChanged):
231         * WebCoreSupport/WebPlatformStrategies.h:
232
233 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
234
235         Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
236
237         * Api/qwebpage.cpp:
238         (QWebPage::viewportAttributesForSize):
239         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
240         (DumpRenderTreeSupportQt::viewportAsText):
241
242 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
243
244         Reviewed by Kenneth Rohde Christiansen.
245
246         Viewport Warning/Error Messages Are Now Inaccurate
247         https://bugs.webkit.org/show_bug.cgi?id=53707
248
249         * Api/qwebpage.cpp:
250         (QWebPage::viewportAttributesForSize): pass a Document into computeViewportAttributes for warnings to be reported to.
251         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
252         (DumpRenderTreeSupportQt::viewportAsText): pass a Document into computeViewportAttributes for warnings to be reported to.
253
254 2011-03-01  Andras Becsi  <abecsi@webkit.org>
255
256         Reviewed by Csaba Osztrogonác.
257
258         [Qt] Clean up the project files and move common options to WebKit.pri.
259
260         * QtWebKit.pro: Move common options to WebKit.pri.
261
262 2011-03-01  Aparna Nandyal  <aparna.nand@wipro.com>
263
264         Reviewed by Simon Hausmann.
265
266         [Qt]tst_QWebPage::backActionUpdate fails when there is not network connection
267         https://bugs.webkit.org/show_bug.cgi?id=55319
268
269         The test case required internet connection to be able to connect to
270         google.com. Added new html file which refers to local html file.
271
272         * tests/qwebpage/resources/content.html: Added.
273         * tests/qwebpage/resources/frame_c.html: Added.
274         * tests/qwebpage/resources/framedindex.html: Added.
275         * tests/qwebpage/tst_qwebpage.cpp:
276         (tst_QWebPage::backActionUpdate):
277         * tests/qwebpage/tst_qwebpage.qrc:
278
279 2011-02-25 Steve Block <steveblock@google.com>
280
281         Reviewed by Jeremy Orlow.
282
283         Bridge.h should not include BridgeJSC.h
284         https://bugs.webkit.org/show_bug.cgi?id=55212
285
286         Include BridgeJSC.h directly instead.
287
288         * Api/qwebframe.cpp:
289
290 2011-02-28  Chang Shu  <cshu@webkit.org>
291
292         Reviewed by Ryosuke Niwa.
293
294         Remove the support of Frame::isContentEditable and its dependencies.
295         https://bugs.webkit.org/show_bug.cgi?id=54292
296
297         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
298
299         * Api/qwebpage.cpp:
300         (QWebPagePrivate::QWebPagePrivate):
301         (QWebPage::setContentEditable):
302         (QWebPage::isContentEditable):
303         * Api/qwebpage_p.h:
304         * WebCoreSupport/EditorClientQt.cpp:
305         * WebCoreSupport/EditorClientQt.h:
306
307 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
308
309         Reviewed by Oliver Hunt.
310
311         Build fix for Qt port after API changes of http://trac.webkit.org/changeset/79904.
312
313         * Api/qwebelement.cpp:
314         (QWebElement::evaluateJavaScript):
315
316 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
317
318         Reviewed by Andreas Kling.
319
320         [Qt]tst_QDeclarativeWebView - 8 test cases fail
321         https://bugs.webkit.org/show_bug.cgi?id=55214
322
323         Fix the API tests for the QML WebView element. The default size of the element should be the size of the QGraphicsWebView
324         if no preferred width or height are provided (see http://trac.webkit.org/changeset/79672).
325         I also refactored the tests so we don't use the network but instead a local html file.
326         QML doesn't support qrc loading so I had to workaround by using a property that I update afterwards.
327
328         * tests/qdeclarativewebview/resources/sample.html: Added.
329         * tests/qdeclarativewebview/resources/webviewtest.qml:
330         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
331         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
332         (tst_QDeclarativeWebView::preferredWidthTest):
333         (tst_QDeclarativeWebView::preferredHeightTest):
334         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
335         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
336         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
337
338 2011-02-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
339
340         Reviewed by Andreas Kling.
341
342         [Qt] Add clipped version of QWebElement::render method.
343         Allows faster rendering of web element part.
344         https://bugs.webkit.org/show_bug.cgi?id=50311
345
346         * Api/qwebelement.cpp:
347         (QWebElement::render):
348         * Api/qwebelement.h:
349         * tests/qwebelement/tst_qwebelement.cpp:
350         (tst_QWebElement::render):
351
352 2011-02-28  Kristian Amlie  <kristian.amlie@nokia.com>
353
354         Reviewed by Andreas Kling.
355
356         Added full webkit module profile and a syncqt profile.
357
358         This is for modularized Qt.
359
360         [Qt] WebKit patches required to work with a modularized version of Qt
361         https://bugs.webkit.org/show_bug.cgi?id=53916
362
363         * qt_webkit_version.pri:
364
365 2011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
366
367         Reviewed by Antonio Gomes.
368
369         [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
370         https://bugs.webkit.org/show_bug.cgi?id=53917
371
372         Adding test case to check the scenario to avoid regressions in the
373         future. 
374
375         * tests/qwebframe/tst_qwebframe.cpp:
376
377 2011-02-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
378
379         Reviewed by Andreas Kling.
380
381         [Qt] Reference the documentation of the WebKit bridge from QWebFrame::addToJavaScriptWindowObject()
382         https://bugs.webkit.org/show_bug.cgi?id=55322
383
384         Documentation update, add a reference to the QtWebKit bridge page.
385
386         * Api/qwebframe.cpp:
387
388 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
389
390         Reviewed by Pavel Feldman.
391
392         DumpRenderTree should reset frame opener between tests.
393         https://bugs.webkit.org/show_bug.cgi?id=54874
394
395         Added clearOpener method to DumpRenderTreeSupportQT.
396
397         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
398         (DumpRenderTreeSupportQt::clearOpener):
399         * WebCoreSupport/DumpRenderTreeSupportQt.h:
400
401 2011-02-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
402
403         Reviewed by Andreas Kling.
404
405         Make it possible to test the targetdensity-dpi support
406         https://bugs.webkit.org/show_bug.cgi?id=55142
407
408         Test the viewport meta tag feature targetdensity-dpi by
409         adding extra arguments to dumpConfigurationForViewport
410
411         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
412         (DumpRenderTreeSupportQt::viewportAsText):
413         * WebCoreSupport/DumpRenderTreeSupportQt.h:
414
415 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
416
417         Unreviewed, rolling out r79764.
418         http://trac.webkit.org/changeset/79764
419         https://bugs.webkit.org/show_bug.cgi?id=55295
420
421         "broke Chromium builds" (Requested by rniwa on #webkit).
422
423         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
424         * WebCoreSupport/DumpRenderTreeSupportQt.h:
425
426 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
427
428         Reviewed by Pavel Feldman.
429
430         DumpRenderTree should reset frame opener between tests.
431         https://bugs.webkit.org/show_bug.cgi?id=54874
432
433         Added clearOpener method to DumpRenderTreeSupportQT.
434
435         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
436         (DumpRenderTreeSupportQt::clearOpener):
437         * WebCoreSupport/DumpRenderTreeSupportQt.h:
438
439 2011-02-25  Andras Becsi  <abecsi@webkit.org>
440
441         Reviewed by Csaba Osztrogonác.
442
443         [Qt] Make the WebKit2 build system less confusing for non-Qt developers
444         https://bugs.webkit.org/show_bug.cgi?id=55213
445
446         * QtWebKit.pro: Move the WebKit2 API into a project include file
447         in the WebKit2 directory and include the pri file here.
448
449 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
450
451         Unreviewed build fix for Intel ICC and MSVC.
452
453         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
454         (tst_QGraphicsWebView::setPalette):
455         * tests/qwebview/tst_qwebview.cpp:
456         (tst_QWebView::setPalette):
457
458 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
459
460         Reviewed by Kenneth Rohde Christiansen.
461
462         [Qt] Properly propagate the palette to QWebPage from QGraphicsWebView
463         https://bugs.webkit.org/show_bug.cgi?id=31742
464
465         Discovered while looking at 31742. When we set a palette on the
466         QGraphicsWebView we need to propagate it to the page like QWebView.
467         I have added the same tests as QWebView to be sure to catch potential
468         regressions as well as two extras QVERIFY to check the palette propagation.
469
470         * Api/qgraphicswebview.cpp:
471         (QGraphicsWebView::event):
472         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
473         (tst_QGraphicsWebView::setPalette_data):
474         (tst_QGraphicsWebView::setPalette):
475
476 2011-02-25  Csaba Osztrogonác  <ossy@webkit.org>
477
478         Unreviewed buildfix after r79672.
479
480         [Qt] Build tst_qdeclarativewebview if QT_CONFIG contains declarative.
481
482         * tests/tests.pri:
483         * tests/tests.pro:
484
485 2011-02-25  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
486
487         Reviewed by Kenneth Rohde Christiansen.
488
489         [Qt] QML WebView inside a Flickable shows checkers pattern at startup
490         https://bugs.webkit.org/show_bug.cgi?id=50222.
491
492         This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.
493
494         * declarative/qdeclarativewebview.cpp:
495         (QDeclarativeWebView::init):
496         * tests/qdeclarativewebview: Added.
497         * tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
498         * tests/qdeclarativewebview/resources: Added.
499         * tests/qdeclarativewebview/resources/webviewtest.qml: Added.
500         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
501         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added.
502         (tst_QDeclarativeWebView::initTestCase):
503         (tst_QDeclarativeWebView::cleanupTestCase):
504         (tst_QDeclarativeWebView::init):
505         (tst_QDeclarativeWebView::cleanup):
506         (tst_QDeclarativeWebView::preferredWidthTest):
507         (tst_QDeclarativeWebView::preferredHeightTest):
508         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
509         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
510         (tst_QDeclarativeWebView::checkNoErrors):
511         * tests/tests.pri:
512         * tests/tests.pro:
513
514 2011-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
515
516         Reviewed by Andreas Kling.
517
518         [Qt] Revert the support for QNAM affined to a different thread.
519         https://bugs.webkit.org/show_bug.cgi?id=55149
520
521         Qt 4.8 will have QNAM use its own thread internally by default,
522         no need to keep this complexity in WebKit.
523
524         This mainly reverts:
525         http://trac.webkit.org/changeset/73710
526         http://trac.webkit.org/changeset/73712
527
528         * WebCoreSupport/FrameLoaderClientQt.cpp:
529         (WebCore::FrameLoaderClientQt::download):
530         * tests/qwebpage/tst_qwebpage.cpp:
531
532 2011-02-24  Sam Weinig  <sam@webkit.org>
533
534         Try to fix the Qt build.
535
536         * QtWebKit.pro:
537
538 2011-02-24  Peter Kasting  <pkasting@google.com>
539
540         Reviewed by Eric Seidel.
541
542         Drop the "U; " encryption level from the User Agent string.
543         https://bugs.webkit.org/show_bug.cgi?id=54566
544
545         * Api/qwebpage.cpp:
546         (QWebPage::userAgentForUrl):
547
548 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
549
550         Unreviewed, rolling out r79570.
551         http://trac.webkit.org/changeset/79570
552         https://bugs.webkit.org/show_bug.cgi?id=54874
553
554         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
555         was not updated
556
557         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
558         * WebCoreSupport/DumpRenderTreeSupportQt.h:
559
560 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
561
562         Reviewed by Alexey Proskuryakov.
563
564         DumpRenderTree should reset frame opener between tests.
565         https://bugs.webkit.org/show_bug.cgi?id=54874
566
567         Added clearOpener method to DumpRenderTreeSupportQT.
568
569         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
570         (DumpRenderTreeSupportQt::clearOpener):
571         * WebCoreSupport/DumpRenderTreeSupportQt.h:
572
573 2011-02-24  Alexis Menard  <alexis.menard@openbossa.org>
574
575         Reviewed by Andreas Kling.
576
577         [Qt] tst_QWebView::setPalette(activeFG) fails
578         https://bugs.webkit.org/show_bug.cgi?id=55029
579
580         This time it should be the proper fix. The window needs to be shown before we
581         call activateWindow() otherwise there is no active windows for the application.
582
583         * tests/qwebview/tst_qwebview.cpp:
584         (tst_QWebView::setPalette):
585
586 2011-02-24  Andras Becsi  <abecsi@webkit.org>
587
588         Reviewed by Laszlo Gombos.
589
590         [Qt] MinGW build fails to link
591         https://bugs.webkit.org/show_bug.cgi?id=55050
592
593         Prepend the libraries of subcomponents instead of appending them
594         to fix the library order according to the dependency of the libraries
595
596         * QtWebKit.pro: prepend libraries in the correct order
597
598 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
599
600         Reviewed by Ariya Hidayat.
601
602         [Qt] tst_QWebView::setPalette(activeFG) fails
603         https://bugs.webkit.org/show_bug.cgi?id=55029
604
605         Attempt to make the test more robust. By investigating with the bot virtual machine
606         I discovered that the activation can take some time. In this patch we make sure that
607         the active window we want to have is the same as the QApplication.
608
609         * tests/qwebview/tst_qwebview.cpp:
610         (tst_QWebView::setPalette):
611
612 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
613
614         Reviewed by Dan Bernstein.
615
616         [Qt]REGRESSION(r79167): It broke 3 Qt-API test cases
617         http://trac.webkit.org/changeset/79167 refactored the way the bound size of
618         the frame is handled. A new API setBoundsSize was added, we need to call it
619         in addition to setFrameRect. I could call setBoundSize after setFrameRect but
620         I thought It would be more elegant to use the resize method.
621
622         * Api/qwebpage.cpp:
623         (QWebPage::setViewportSize):
624
625 2011-02-22  Fabrizio Machado  <fabrizio.machado@nokia.com>
626
627         Reviewed by Laszlo Gombos.
628
629         [Qt] Don't fall through case in variantToSetting() if qvariant.type() is Bool
630         https://bugs.webkit.org/show_bug.cgi?id=54976
631
632         Test not needed.
633         
634         * WebCoreSupport/InspectorClientQt.cpp:
635
636 2011-02-22  Alexis Menard  <alexis.menard@openbossa.org>
637
638         Reviewed by Andreas Kling.
639
640         [Qt] QWebView ignores a palette set with QWebView::setPalette()
641         https://bugs.webkit.org/show_bug.cgi?id=31742
642
643         Test case to check that the palette sets on the QWebView is taken
644         into account.
645
646         * tests/qwebview/tst_qwebview.cpp:
647         (tst_QWebView::setPalette_data):
648         (tst_QWebView::setPalette):
649
650 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
651
652         Reviewed by Alexey Proskuryakov.
653
654         Drop the language tag part from the User Agent string
655         https://bugs.webkit.org/show_bug.cgi?id=54560
656
657         * Api/qwebpage.cpp:
658         (QWebPage::userAgentForUrl):
659
660         * tests/qwebpage/tst_qwebpage.cpp: Remove the userAgentLocaleChange
661         test.
662
663 2011-02-22  Chang Shu  <cshu@webkit.org>
664
665         Reviewed by Csaba Osztrogonác.
666
667         [Qt] editing/deleting/5408255.html fails
668         https://bugs.webkit.org/show_bug.cgi?id=54964
669
670         Move WebCore resource file to QtWebKit since they are referred in WebKit.
671
672         * QtWebKit.pro:
673
674 2011-02-22  Andras Becsi  <abecsi@webkit.org>
675
676         Reviewed by Csaba Osztrogonác.
677
678         [Qt] Redesign the build system
679         https://bugs.webkit.org/show_bug.cgi?id=51339
680
681         Move inspector's resource files into the final build step to fix the layout test regression.
682
683         * QtWebKit.pro: Add inspector's reaource files.
684
685 2011-02-22  Andras Becsi  <abecsi@webkit.org>
686
687         Reviewed by Laszlo Gombos.
688         Rubber-stamped by Csaba Osztrogonác.
689
690         [Qt] Redesign the build system
691         https://bugs.webkit.org/show_bug.cgi?id=51339
692
693         The patch landed in r79320 didn't contain the cleanup
694         which was already addressed in the last attachment.
695
696         * QtWebKit.pro: Move common LIB and CONFIG options to WebCore.pri.
697
698 2011-02-22  Andras Becsi  <abecsi@webkit.org>
699
700         Reviewed by Laszlo Gombos.
701
702         [Qt] Redesign the build system
703         https://bugs.webkit.org/show_bug.cgi?id=51339
704
705         Part 2.
706
707         Build WebCore as a static library, compile the WebKit API and WebKit2 API
708         in a final step and link to WebKit2, WebCore and JSC libraries to fix
709         linking issues resulting from stripped away symbols.
710
711         * QtWebKit.pro: Added.
712         Project file for the final build step.
713
714 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
715
716         Reviewed by Kent Tamura.
717
718         Rename Position::node() to Position::deprecatedNode()
719         https://bugs.webkit.org/show_bug.cgi?id=54622
720
721         Replaced the call to node() by a call to containerNode() because the returned node is
722         used to determine whether or not the selected contents are editable and such a check
723         must be done against the container node.
724
725         * WebCoreSupport/EditorClientQt.cpp:
726         (WebCore::EditorClientQt::handleKeyboardEvent):
727
728 2011-02-19  Charlie Reis  <creis@chromium.org>
729
730         Reviewed by Mihai Parparita.
731
732         Ensure loading has stopped in HistoryController::goToItem
733         https://bugs.webkit.org/show_bug.cgi?id=54517
734
735         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
736
737         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
738
739         * WebCoreSupport/FrameLoaderClientQt.cpp:
740         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem): Added.
741         * WebCoreSupport/FrameLoaderClientQt.h:
742
743 2011-02-18  Fabrizio Machado  <fabrizio.machado@nokia.com>
744
745         Reviewed by Eric Seidel.
746
747         Remove reduntant checks.
748         https://bugs.webkit.org/show_bug.cgi?id=54764
749         
750
751         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
752         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
753         * WebCoreSupport/NotificationPresenterClientQt.cpp:
754         (WebCore::NotificationPresenterClientQt::toPage):
755
756 2011-02-18  Csaba Osztrogonác  <ossy@webkit.org>
757
758         Unreviewed.
759
760         [Qt] Buildfix for platforms with geolocation disabled.
761
762         * Api/qwebpage.cpp: Add the missing guard.
763
764 2011-02-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
765
766         Reviewed by Kenneth Rohde Christiansen.
767
768         [Qt] Implement client based geolocation for qtport
769         https://bugs.webkit.org/show_bug.cgi?id=42629
770
771         Implements client based geolocation for qtwebkit.
772         New client based geolocation contains permission API's as well,
773         so removed the implementation from ChromeClientQt.cpp. 
774
775         * Api/qwebpage.cpp:
776         (QWebPagePrivate::QWebPagePrivate):
777         * WebCoreSupport/ChromeClientQt.cpp:
778         * WebCoreSupport/ChromeClientQt.h:
779         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
780         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
781         * WebCoreSupport/GeolocationClientQt.cpp: Added.
782         (WebCore::GeolocationClientQt::GeolocationClientQt):
783         (WebCore::GeolocationClientQt::~GeolocationClientQt):
784         (WebCore::GeolocationClientQt::geolocationDestroyed):
785         (WebCore::GeolocationClientQt::positionUpdated):
786         (WebCore::GeolocationClientQt::startUpdating):
787         (WebCore::GeolocationClientQt::stopUpdating):
788         (WebCore::GeolocationClientQt::setEnableHighAccuracy):
789         (WebCore::GeolocationClientQt::requestPermission):
790         (WebCore::GeolocationClientQt::cancelPermissionRequest):
791         * WebCoreSupport/GeolocationClientQt.h: Added.
792         (WebCore::GeolocationClientQt::lastPosition):
793
794 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
795
796         Reviewed by Adam Roben.
797
798         HTML5 <details> and <summary>: localized text
799         https://bugs.webkit.org/show_bug.cgi?id=54260
800
801         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
802         provide the default label to be used by a <details> tag that has no <summary> child.
803
804         * WebCoreSupport/WebPlatformStrategies.cpp:
805         (WebPlatformStrategies::defaultDetailsSummaryText):
806         * WebCoreSupport/WebPlatformStrategies.h:
807
808 2011-02-17  Hui Huang  <hui.2.huang@nokia.com>
809
810         Reviewed by Laszlo Gombos.
811
812         The URL of HTML5 Video Element is percent encoded at websites such as youtube.
813         It is percent encoded again by QUrl constructor QUrl::QUrl(QString). This causes
814         the HTTP GET request for the video to be rejected by the service provider. 
815         https://bugs.webkit.org/show_bug.cgi?id=53973.
816
817         The bug is fixed by constructing QUrl from the encoded URL in 
818         MediaPlayerPrivateQt::commitLoad. 
819
820         New test function tst_QWebPage::loadHtml5Video() is added to load HTML content with
821         HTML5 Video element. A new public method DumpRenderTreeSupportQt::mediaContentUrlByElementId
822         is added to retrieve the URL of the media content from WebCore MediaPlayerPrivateQt.
823         A new macro ENABLE_QT_MULTIMEDIA is introduced in tests.pri to make sure that the test
824         is skipped if Qt Multimedia is not available.
825
826         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
827         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
828         * WebCoreSupport/DumpRenderTreeSupportQt.h:
829         * tests/qwebpage/tst_qwebpage.cpp:
830         (tst_QWebPage::loadHtml5Video):
831         * tests/tests.pri:
832
833 2011-02-17  Andreas Kling  <kling@webkit.org>
834
835         Reviewed by Antti Koivisto.
836
837         [Qt] Crash when calling QWebFrame::setUrl() while a previous load has pending requests
838         https://bugs.webkit.org/show_bug.cgi?id=49216
839
840         * tests/qwebframe/tst_qwebframe.cpp:
841
842 == Rolled over to ChangeLog-2011-02-16 ==