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