[UNIX] Add a method to get information for an already loaded plugin module
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2011-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2
3         [UNIX] Add a method to get information for an already loaded plugin module
4         https://bugs.webkit.org/show_bug.cgi?id=69139
5
6         Reviewed by Martin Robinson.
7
8         * Shared/Plugins/Netscape/NetscapePluginModule.h: Add pluginInfo().
9         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
10         (WebKit::NetscapePluginModule::pluginInfo): Private method to get
11         the plugin information from the module, it must be called when the
12         module has been already initialized.
13         (WebKit::NetscapePluginModule::getPluginInfo): Use pluginInfo() to
14         get information of the plugin module for the given path.
15
16 2011-09-30  Zeno Albisser  <zeno.albisser@nokia.com>
17
18         [Qt][WK2] Event delivery in QDesktopWebView is broken after merge of Qt5 refactor
19         https://bugs.webkit.org/show_bug.cgi?id=69105
20
21         This changes QDesktopWebView and QDesktopWebPageProxy to use QMouseEvent instead
22         of QGraphicsSceneMouseEvent.
23         Further it removes an endless loop introduced by the QSGItem::event() function
24         delivering inputMethodEvents but no other events.
25
26         Reviewed by Andreas Kling.
27
28         * Shared/NativeWebMouseEvent.h:
29         (WebKit::NativeWebMouseEvent::nativeEvent):
30         * Shared/NativeWebWheelEvent.h:
31         (WebKit::NativeWebWheelEvent::nativeEvent):
32         * Shared/qt/NativeWebMouseEventQt.cpp:
33         (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
34         * Shared/qt/NativeWebWheelEventQt.cpp:
35         (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
36         * Shared/qt/WebEventFactoryQt.cpp:
37         (WebKit::mouseButtonForEvent):
38         (WebKit::webEventTypeForEvent):
39         (WebKit::WebEventFactory::createWebMouseEvent):
40         (WebKit::WebEventFactory::createWebWheelEvent):
41         * Shared/qt/WebEventFactoryQt.h:
42         * UIProcess/API/qt/qdesktopwebview.cpp:
43         (QDesktopWebView::mousePressEvent):
44         (QDesktopWebView::mouseMoveEvent):
45         (QDesktopWebView::mouseReleaseEvent):
46         (QDesktopWebView::mouseDoubleClickEvent):
47         (QDesktopWebView::wheelEvent):
48         (QDesktopWebView::event):
49         * UIProcess/API/qt/qdesktopwebview.h:
50         * UIProcess/qt/qdesktopwebpageproxy.cpp:
51         (QDesktopWebPageProxy::handleEvent):
52         (QDesktopWebPageProxy::handleMouseMoveEvent):
53         (QDesktopWebPageProxy::handleMousePressEvent):
54         (QDesktopWebPageProxy::handleMouseReleaseEvent):
55         (QDesktopWebPageProxy::handleMouseDoubleClickEvent):
56         (QDesktopWebPageProxy::handleWheelEvent):
57         (QDesktopWebPageProxy::handleHoverMoveEvent):
58         * UIProcess/qt/qdesktopwebpageproxy.h:
59
60 2011-09-29  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
61
62         Initial implementation of WebInspector for WebKit2 GTK port.
63         https://bugs.webkit.org/show_bug.cgi?id=68235
64
65         Reviewed by Martin Robinson.
66
67         * UIProcess/WebInspectorProxy.cpp:
68         (WebKit::WebInspectorProxy::WebInspectorProxy): Initialize the native window handles of GTK.
69         * UIProcess/WebInspectorProxy.h: Add native window handle for inspector window.
70         * UIProcess/gtk/WebInspectorGtk.cpp:
71         (WebKit::inspectorFilesBasePath): Base folder for inspector resources.
72         (WebKit::inspectorWindowDestroyed): Invoked when inspector window is closed by user.
73         (WebKit::WebInspectorProxy::windowDestroyed): Resets the native handles to 0 when user closes the window.
74         (WebKit::WebInspectorProxy::platformCreateInspectorPage): Create the WebView for inspector.
75         (WebKit::WebInspectorProxy::platformOpen): Create the window for inspector.
76         (WebKit::WebInspectorProxy::platformDidClose): Close both WebView & window of inspector.
77         (WebKit::WebInspectorProxy::platformInspectedURLChanged): Update the title of inspector window.
78         (WebKit::WebInspectorProxy::inspectorPageURL): Return the absolute URL of inspector.html.
79         (WebKit::WebInspectorProxy::inspectorBaseURL): Return the location where inspector resources are present.
80         WebProcess is given read access to this folder only for loading file URLs by sandboxed extension.
81
82 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
83
84         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
85
86         QWidget and friends now live in the QtWidgets library. We update
87         includes in implementation files and private headers to us the
88         non-module-prefixed path, and leave the lookup for the include
89         path. For public headers we have to ifdef the includes as the
90         user might now have the modules we need in his QT config.
91
92         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
93         have to update our code and use windowHandle() for setting the
94         parent relationships.
95
96         https://bugs.webkit.org/show_bug.cgi?id=68687
97
98         Reviewed by Andreas Kling.
99
100         * UIProcess/API/qt/qdesktopwebview.cpp:
101         * UIProcess/API/qt/qdesktopwebview.h:
102         * UIProcess/API/qt/tests/tests.pro:
103         * UIProcess/qt/ViewInterface.h:
104         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
105
106 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
107
108         [GTK] Force single header include in WebKit2 GTK+ API
109         https://bugs.webkit.org/show_bug.cgi?id=69084
110
111         Reviewed by Martin Robinson.
112
113         Only <webkit2/webkit2.h> will be allowed for API users.
114
115         * GNUmakefile.am:
116         * UIProcess/API/gtk/WebKitError.h:
117         * UIProcess/API/gtk/WebKitWebContext.h:
118         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
119         * UIProcess/API/gtk/WebKitWebView.h:
120         * UIProcess/API/gtk/WebKitWebViewBase.h:
121         * UIProcess/API/gtk/webkit2.h:
122
123 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
124
125         [GTK] Explicitly call destructors for objects initialized with placement new syntax
126         https://bugs.webkit.org/show_bug.cgi?id=69079
127
128         Reviewed by Xan Lopez.
129
130         * UIProcess/API/gtk/WebKitWebContext.cpp:
131         (webkitWebContextFinalize): Call ~WebKitWebContextPrivate().
132         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
133         (webkitWebLoaderClientFinalize): Call ~WebKitWebLoaderClient().
134         (webkit_web_loader_client_class_init):
135         * UIProcess/API/gtk/WebKitWebView.cpp:
136         (webkitWebViewFinalize): Call ~WebKitWebViewPrivate().
137         (webkit_web_view_class_init):
138
139 2011-09-28  Martin Robinson  <mrobinson@igalia.com>
140
141         Fix the WebGL build on WebKit2 GTK+.
142
143         * GNUmakefile.am: Add OPENGL_LIBS to WebKit2 targets.
144
145 2011-09-28  Brent Fulgham  <bfulgham@webkit.org>
146
147         WinCairo build fix.
148
149         * WebProcess/WebPage/WebFrame.h: Add include of <wtc/RetainPtr.h>
150
151 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
152
153         One more shot at fixing GTK+, this seems to make the dependencies
154         work.
155
156         * GNUmakefile.am:
157
158 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
159
160         GTK+ build fix 3 - the return of the marshal.
161
162         * GNUmakefile.am:
163
164 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
165
166         Second try at fixing the GTK+ build.
167
168         * GNUmakefile.am:
169
170 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
171
172         Try to fix GTK+ build.
173
174         * GNUmakefile.am:
175
176 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
177
178         [GTK] Fix webkit2 unit tests in debug builds
179         https://bugs.webkit.org/show_bug.cgi?id=69006
180
181         Reviewed by Martin Robinson.
182
183         We are currently using the WorQueue name as thread name which in
184         this moment can be com.apple.WebKit.ProcessLauncher or
185         com.apple.CoreIPC.ReceiveQueue. Both names are longer than 31
186         characters which is the limit of Visual Studio for thread
187         names. When log is enabled createThread() will assert instead of
188         truncate the name, so we need to make sure we don't use a name
189         longer than 31 characters.
190
191         * Platform/gtk/WorkQueueGtk.cpp:
192         (WorkQueue::platformInitialize):
193
194 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
195
196         [GTK] Loader client implementation for WebKit2 GTK+ API
197         https://bugs.webkit.org/show_bug.cgi?id=68085
198
199         Reviewed by Martin Robinson.
200
201         Adds a new object, WebKitWebLoaderClient, that emits signals for
202         every page loader callback.
203
204         * GNUmakefile.am: Add new files to compilation.
205         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp: Added.
206         (didStartProvisionalLoadForFrame):
207         (didReceiveServerRedirectForProvisionalLoadForFrame):
208         (didFailProvisionalLoadWithErrorForFrame):
209         (didCommitLoadForFrame):
210         (didFinishLoadForFrame):
211         (didFailLoadWithErrorForFrame):
212         (webkitWebLoaderClientConstructed):
213         (webkitWebLoaderClientSetProperty):
214         (webkitWebLoaderClientGetProperty):
215         (webkit_web_loader_client_init):
216         (webkit_web_loader_client_class_init):
217         * UIProcess/API/gtk/WebKitWebLoaderClient.h: Added.
218         * UIProcess/API/gtk/WebKitWebView.cpp:
219         (webkitWebViewConstructed): Create the loader client for the view.
220         (webkit_web_view_init):
221         (webkit_web_view_get_loader_client): Get the current loader client.
222         (webkit_web_view_set_loader_client): Set a new loader client.
223         * UIProcess/API/gtk/WebKitWebView.h:
224         * UIProcess/API/gtk/tests/testloading.c: Added.
225         (serverCallback):
226         (webLoadingFixtureSetup):
227         (webLoadingFixtureTeardown):
228         (getURIForPath):
229         (loadStatusProvisionalLoadStarted):
230         (loadStatusProvisionalLoadReceivedServerRedirect):
231         (loadStatusProvisionalLoadFailed):
232         (loadStatusLoadCommitted):
233         (loadStatusLoadFinished):
234         (loadStatusLoadFailed):
235         (testLoadingStatus):
236         (loadErrorProvisionalLoadStarted):
237         (loadErrorProvisionalLoadFailed):
238         (loadErrorLoadFinished):
239         (testLoadingError):
240         (main):
241         * UIProcess/API/gtk/webkit2marshal.list: Added.
242
243 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
244
245         [GTK] Add WebKitError to GTK+ WebKit2 API
246         https://bugs.webkit.org/show_bug.cgi?id=68508
247
248         Reviewed by Martin Robinson.
249
250         Add WebKitNetworkError enum to define network errors.
251
252         * GNUmakefile.am: Add new files to compilation.
253         * UIProcess/API/gtk/WebKitError.cpp: Added.
254         (webkit_network_error_quark):
255         * UIProcess/API/gtk/WebKitError.h:
256         * UIProcess/API/gtk/WebKitPrivate.h: Add
257         COMPILE_ASSERT_MATCHING_ENUM macro.
258         * UIProcess/API/gtk/webkit2.h: Add WebKitError.h and
259         WebKitEnumTypes.h
260
261 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
262
263         [GTK] Fix Programs/unittests/webkit2/testwebview
264         https://bugs.webkit.org/show_bug.cgi?id=68993
265
266         Reviewed by Philippe Normand.
267
268         * GNUmakefile.am: Add -DWEBKIT_EXEC_PATH.
269         * UIProcess/API/gtk/tests/testwebview.c:
270         (main): Get WebProcess path from WEBKIT_EXEC_PATH environment
271         variable.
272
273 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
274
275         Add static version of JSCell::getCallData
276         https://bugs.webkit.org/show_bug.cgi?id=68741
277
278         Reviewed by Darin Adler.
279
280         In this patch we just extract the bodies of the virtual getCallData methods
281         throughout the JSCell inheritance hierarchy out into static methods, which are 
282         now called from the virtual methods.  This is an intermediate step in trying to 
283         move the virtual-ness of getCallData into our own method table stored in 
284         ClassInfo.  We need to convert the methods to static methods because static methods 
285         can be represented as function pointers rather than pointers to member functions, and
286         function pointers are smaller and faster to call than pointers to member functions.
287
288         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
289         (WebKit::JSNPMethod::getCallDataVirtual):
290         (WebKit::JSNPMethod::getCallData):
291         * WebProcess/Plugins/Netscape/JSNPMethod.h:
292         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
293         (WebKit::JSNPObject::getCallDataVirtual):
294         (WebKit::JSNPObject::getCallData):
295         * WebProcess/Plugins/Netscape/JSNPObject.h:
296
297 2011-09-27  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
298
299         [Qt] QDesktopWebView load zero size view test missing
300         https://bugs.webkit.org/show_bug.cgi?id=68655
301
302         Reviewed by Chang Shu.
303
304         Added test case to check load behavior with zero size view.
305
306         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Added.
307         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
308
309 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
310
311         [GTK] Use WebKitWebContext in WebKitWebView
312         https://bugs.webkit.org/show_bug.cgi?id=67990
313
314         Reviewed by Martin Robinson.
315
316         Use webkit_web_context_get_default() instead of
317         WKContextGetSharedProcessContext() and add API to create a view
318         with a given web context and to return the current context
319         associated to the view.
320
321         * GNUmakefile.am: Add new files to compilation.
322         * UIProcess/API/gtk/WebKitPrivate.h: Added.
323         * UIProcess/API/gtk/WebKitWebContext.cpp:
324         (webkitWebContextGetWKContext): Private API to get the WKContext
325         wrapped by the WebKitWebContext.
326         * UIProcess/API/gtk/WebKitWebContextPrivate.h: Added.
327         * UIProcess/API/gtk/WebKitWebView.cpp:
328         (webkitWebViewConstructed): Create the webpage using the web
329         context of the view.
330         (webkitWebViewSetProperty):
331         (webkitWebViewGetProperty):
332         (webkit_web_view_init):
333         (webkit_web_view_class_init):
334         (webkit_web_view_new): Create a new view with the default context.
335         (webkit_web_view_new_with_context): Create a new view with the
336         given context.
337         (webkit_web_view_get_context): Return the context.
338         * UIProcess/API/gtk/WebKitWebView.h:
339         * UIProcess/API/gtk/tests/testwebview.c: Added.
340         (testWebViewDefaultContext):
341         (main):
342
343 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
344
345
346         [GTK] Add WebKitWebContext to GTK API
347         https://bugs.webkit.org/show_bug.cgi?id=67931
348
349         Reviewed by Philippe Normand.
350
351         Initial implementation of WebKitWebContext for WebKit2 GTK API.
352
353         * GNUmakefile.am: Add new files to compilation.
354         * UIProcess/API/gtk/WebKitWebContext.cpp: Added.
355         (webkitWebContextFinalize):
356         (webkit_web_context_init):
357         (webkit_web_context_class_init):
358         (createDefaultWebContext):
359         (webkit_web_context_get_default):
360         * UIProcess/API/gtk/WebKitWebContext.h: Added.
361         * UIProcess/API/gtk/tests/testwebcontext.c:
362         (testWebContextDefault):
363         (main):
364         * UIProcess/API/gtk/webkit2.h: Add <webkit2/WebKitWebContext.h>.
365
366 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
367
368         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
369         http://trac.webkit.org/changeset/96108
370         http://trac.webkit.org/changeset/96111
371         http://trac.webkit.org/changeset/96113
372         http://trac.webkit.org/changeset/96116
373         https://bugs.webkit.org/show_bug.cgi?id=68913
374
375         Wait for working Qt5 (Requested by ossy on #webkit).
376
377         * UIProcess/API/qt/qdesktopwebview.cpp:
378         (QDesktopWebViewPrivate::startDrag):
379         (QDesktopWebViewPrivate::didChangeToolTip):
380         (QDesktopWebViewPrivate::didChangeCursor):
381         (QDesktopWebViewPrivate::showContextMenu):
382         (QDesktopWebViewPrivate::chooseFiles):
383         * UIProcess/API/qt/qdesktopwebview.h:
384         * UIProcess/API/qt/tests/tests.pri:
385         * UIProcess/API/qt/tests/tests.pro:
386         * UIProcess/qt/ViewInterface.h:
387         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
388         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
389
390 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
391
392         [GTK] Rename WebKit2 GTK+ API main header as webkit2.h
393         https://bugs.webkit.org/show_bug.cgi?id=65178
394
395         Reviewed by Martin Robinson.
396
397         * GNUmakefile.am: Add webkit2.h.
398         * UIProcess/API/gtk/WebKitWebView.h:
399         * UIProcess/API/gtk/webkit2.h: Renamed from Source/WebKit2/UIProcess/API/gtk/webkit/webkit.h.
400         * webkit2gtk.pc.in: Use webkitgtk-<api-version> as include dir.
401
402 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
403
404         [Qt] Fix build of WebKit2 unit-tests after r96108
405
406         Reviewed by Andreas Kling.
407
408         * UIProcess/API/qt/tests/tests.pri:
409
410 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
411
412         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
413
414         QWidget and friends now live in the QtWidgets library. We update
415         includes in implementation files and private headers to us the
416         non-module-prefixed path, and leave the lookup for the include
417         path. For public headers we have to ifdef the includes as the
418         user might now have the modules we need in his QT config.
419
420         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
421         have to update our code and use windowHandle() for setting the
422         parent relationships.
423
424         https://bugs.webkit.org/show_bug.cgi?id=68687
425
426         Reviewed by Andreas Kling.
427
428         * UIProcess/API/qt/qdesktopwebview.cpp:
429         * UIProcess/API/qt/qdesktopwebview.h:
430         * UIProcess/API/qt/tests/tests.pro:
431         * UIProcess/qt/ViewInterface.h:
432         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
433
434 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
435
436         [Qt][WK2] Add support for hover API in Qt WebKit2
437         https://bugs.webkit.org/show_bug.cgi?id=68369
438
439         Reviewed by Andreas Kling.
440
441         Based on the patch from Igor Oliveira in the same bug.
442
443         Expose a linkHovered() signal in QDesktopWebView, that passes the QUrl and the
444         QString corresponding to the link title. I left textContent out because was
445         unsure of its use case.
446
447         In QDesktopWebView we store the last URL and title emitted to make sure we send
448         the signal only if either value changes. Tests were added to the QML element to
449         check: if values are correctly emitted and if we don't emit more signals than
450         necessary.
451
452         * UIProcess/API/qt/qdesktopwebview.cpp:
453         (QDesktopWebViewPrivate::didMouseMoveOverElement):
454         * UIProcess/API/qt/qdesktopwebview.h:
455         * UIProcess/API/qt/qdesktopwebview_p.h:
456         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml: Added.
457         * UIProcess/API/qt/tests/qmltests/common/test2.html:
458         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
459         * UIProcess/qt/ClientImpl.cpp:
460         (qt_wk_mouseDidMoveOverElement):
461         * UIProcess/qt/ClientImpl.h:
462         * UIProcess/qt/QtWebPageProxy.cpp:
463         (QtWebPageProxy::init):
464         * UIProcess/qt/TouchViewInterface.h:
465         (WebKit::TouchViewInterface::didMouseMoveOverElement):
466         * UIProcess/qt/ViewInterface.h:
467
468 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
469
470         [Qt][WK2] API fixes for QML, the signal parameters needs to be named.
471         https://bugs.webkit.org/show_bug.cgi?id=68889
472
473         Reviewed by Andreas Kling.
474
475         Signal parameters needs to be explicitly named in QML to be accessible.
476         This patch fix this problem.
477
478         * UIProcess/API/qt/qdesktopwebview.h:
479         * UIProcess/API/qt/qtouchwebpage.h:
480
481 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
482
483         [Qt][WK2] Mark FINAL properties which can't be overridden by a subclass.
484         https://bugs.webkit.org/show_bug.cgi?id=68848
485
486         Reviewed by Andreas Kling.
487
488         The presence of the FINAL attribute indicates that the property will not be 
489         overridden by a derived class. This can be used for performance optimizations
490         by QML.
491
492         * UIProcess/API/qt/qdesktopwebview.h:
493         * UIProcess/API/qt/qtouchwebpage.h:
494         * UIProcess/API/qt/qtouchwebview.h:
495         * UIProcess/API/qt/qwebnavigationcontroller.h:
496
497 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
498
499         [Qt] Fix WK2 build after r96014
500         https://bugs.webkit.org/show_bug.cgi?id=68856
501
502         Reviewed by Gustavo Noronha Silva.
503
504         Commit r96014 added inspectorBaseURL for Qt but removed
505         inspectorPageURL, adding it back.
506
507         * UIProcess/qt/WebInspectorProxyQt.cpp:
508         (WebKit::WebInspectorProxy::inspectorPageURL):
509
510 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
511
512         [Qt] [WK2] Fix build after r95982
513         https://bugs.webkit.org/show_bug.cgi?id=68842
514
515         Reviewed by Anders Carlsson.
516
517         The patch in r95982 removed the paint() function, because it was doing
518         nothing (in both implementations). This patch remove the call we had
519         for it to fix the build.
520
521         * UIProcess/qt/qtouchwebpageproxy.cpp:
522         (QTouchWebPageProxy::paintContent):
523
524 2011-09-26  Alexey Proskuryakov  <ap@apple.com>
525
526         REGRESSION (r95747): Activating the web inspector causes the web process to be killed
527         https://bugs.webkit.org/show_bug.cgi?id=68762
528
529         Reviewed by Anders Carlsson.
530
531         * UIProcess/WebInspectorProxy.cpp: (WebKit::WebInspectorProxy::createInspectorPage):
532         Tell Web process that loading resources from WebCore resources directory is OK.
533
534         * UIProcess/WebPageProxy.cpp:
535         (WebKit::WebPageProxy::loadHTMLString):
536         (WebKit::WebPageProxy::loadAlternateHTMLString):
537         * UIProcess/WebProcessProxy.cpp:
538         (WebKit::WebProcessProxy::assumeReadAccessToBaseURL):
539         * UIProcess/WebProcessProxy.h:
540         Renamed willLoadHTMLStringWithBaseURL to more generic assumeReadAccessToBaseURL.
541
542         * UIProcess/WebInspectorProxy.h:
543         * UIProcess/efl/WebInspectorEfl.cpp:
544         (WebKit::WebInspectorProxy::inspectorBaseURL):
545         * UIProcess/gtk/WebInspectorGtk.cpp:
546         (WebKit::WebInspectorProxy::inspectorBaseURL):
547         * UIProcess/mac/WebInspectorProxyMac.mm:
548         (WebKit::WebInspectorProxy::inspectorBaseURL):
549         * UIProcess/qt/WebInspectorProxyQt.cpp:
550         (WebKit::WebInspectorProxy::inspectorBaseURL):
551         * UIProcess/win/WebInspectorProxyWin.cpp:
552         (WebKit::WebInspectorProxy::inspectorBaseURL):
553         Report what base directory Inspector has access to.
554
555 2011-09-26  Nayan Kumar K  <nayankk@motorola.com>
556
557         Added WKHitTestResult API's.
558
559         WKHitTestResult API's are added. These API's can be used to
560         get the hover'ed link/image/media URL as well as link lable and
561         title.
562         https://bugs.webkit.org/show_bug.cgi?id=68426
563
564         Reviewed by Anders Carlsson.
565
566         * CMakeLists.txt:
567         * GNUmakefile.am:
568         * UIProcess/API/C/WKHitTestResult.cpp: Added.
569         (WKHitTestResultGetTypeID):
570         (WKHitTestResultCopyAbsoluteImageURL):
571         (WKHitTestResultCopyAbsoluteLinkURL):
572         (WKHitTestResultCopyAbsoluteMediaURL):
573         (WKHitTestResultCopyLinkLabel):
574         (WKHitTestResultCopyLinkTitle):
575         * UIProcess/API/C/WKHitTestResult.h: Added.
576         * UIProcess/API/C/WebKit2.h:
577         * WebKit2.xcodeproj/project.pbxproj:
578         * WebKit2API.pri:
579         * win/WebKit2.vcproj:
580         * win/WebKit2Generated.make:
581
582 2011-09-26  Csaba Osztrogonác  <ossy@webkit.org>
583
584         [Qt][WK2]Unreviewed speculative buildfix after r95968.
585
586         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
587         (WebKit::WebChromeClient::contentsSizeChanged):
588
589 2011-09-26  Anders Carlsson  <andersca@apple.com>
590
591         Remove an old DrawingAreaProxy::paint member function
592         https://bugs.webkit.org/show_bug.cgi?id=68825
593
594         Reviewed by Dan Bernstein.
595
596         * UIProcess/DrawingAreaProxy.h:
597         * UIProcess/DrawingAreaProxyImpl.cpp:
598         * UIProcess/DrawingAreaProxyImpl.h:
599         * UIProcess/TiledDrawingAreaProxy.cpp:
600         * UIProcess/TiledDrawingAreaProxy.h:
601
602 2011-09-26  Jer Noble  <jer.noble@apple.com>
603
604         White flash when entering full-screen using element.webkitRequestFullScreen()
605         https://bugs.webkit.org/show_bug.cgi?id=68481
606
607         Reviewed by Simon Fraser.
608
609         Do not re-enable screen updates after exiting compositing mode until a repaint has completed.
610
611         * UIProcess/mac/WKFullScreenWindowController.mm:
612         (-[WKFullScreenWindowController exitAcceleratedCompositingMode]):
613         (continueExitCompositingModeAfterRepaintCallback):
614         (-[WKFullScreenWindowController _continueExitCompositingModeAfterRepaint]):
615
616 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
617
618         Repaint tests don't work in WebKit2
619         https://bugs.webkit.org/show_bug.cgi?id=68453
620
621         Reviewed by Sam Weinig.
622         
623         Expose WKBundlePage methods to turn on repaint rect tracking
624         in WebKit2, for WebKitTestRunner.
625         
626         As part of the change, expose utility methods on WebPage
627         to get the main Frame and FrameView, which required renaming
628         the exisiting method that returns a WebFrame. Fix callers
629         of that method to handle null when necessary.
630
631         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
632         (WKBundlePageGetMainFrame):
633         (WKBundlePageSetTracksRepaints):
634         (WKBundlePageIsTrackingRepaints):
635         (WKBundlePageResetTrackedRepaints):
636         (WKBundlePageCopyTrackedRepaintRects):
637         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
638         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
639         (WebKit::findLargestFrameInFrameSet):
640         (WebKit::WebChromeClient::closeWindowSoon):
641         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
642         (WebKit::WebFrameLoaderClient::dispatchDidFirstLayout):
643         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
644         (WebKit::WebFrameLoaderClient::frameLoadCompleted):
645         (WebKit::WebFrameLoaderClient::restoreViewState):
646         (WebKit::WebFrameLoaderClient::provisionalLoadStarted):
647         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
648         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
649         (WebKit::WebFrameLoaderClient::createPlugin):
650         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
651         (WebKit::WebEditorClient::documentFragmentFromAttributedString):
652         * WebProcess/WebPage/WebFrame.cpp:
653         (WebKit::WebFrame::isMainFrame):
654         * WebProcess/WebPage/WebPage.cpp:
655         (WebKit::WebPage::setTracksRepaints):
656         (WebKit::WebPage::isTrackingRepaints):
657         (WebKit::WebPage::resetTrackedRepaints):
658         (WebKit::WebPage::trackedRepaintRects):
659         (WebKit::WebPage::clearMainFrameName):
660         (WebKit::WebPage::layoutIfNeeded):
661         (WebKit::WebPage::mainFrameHasCustomRepresentation):
662         (WebKit::WebPage::mainFrame):
663         (WebKit::WebPage::mainFrameView):
664         * WebProcess/WebPage/WebPage.h:
665         (WebKit::WebPage::mainWebFrame):
666         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
667         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
668
669 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
670
671         Add custom vtable struct to ClassInfo struct
672         https://bugs.webkit.org/show_bug.cgi?id=68567
673
674         Reviewed by Oliver Hunt.
675
676         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
677         specified class in its ClassInfo.  Also added to it the first function to use 
678         this macro, visitChildren.  This is part of the process of getting rid of all 
679         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
680         that can't easily be converted to non-virtual functions will be put into 
681         this custom vtable structure.
682
683         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
684         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
685
686 2011-09-25  Adam Barth  <abarth@webkit.org>
687
688         Finish removing PLATFORM(BREWMP) by removing associated code
689         https://bugs.webkit.org/show_bug.cgi?id=68779
690
691         Reviewed by Sam Weinig.
692
693         * Scripts/generate-forwarding-headers.pl:
694
695 2011-09-25  Adam Barth  <abarth@webkit.org>
696
697         Remove PLATFORM(HAIKU) and associated code
698         https://bugs.webkit.org/show_bug.cgi?id=68774
699
700         Reviewed by Sam Weinig.
701
702         * Scripts/generate-forwarding-headers.pl:
703
704 2011-09-24  Adam Barth  <abarth@webkit.org>
705
706         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
707         https://bugs.webkit.org/show_bug.cgi?id=68767
708
709         Reviewed by Eric Seidel.
710
711         * Configurations/FeatureDefines.xcconfig:
712         * UIProcess/qt/WebContextQt.cpp:
713         (WebKit::WebContext::applicationCacheDirectory):
714         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
715         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
716         (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
717         (WebKit::WebApplicationCacheManager::deleteAllEntries):
718         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
719         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
720         * WebProcess/WebCoreSupport/WebChromeClient.h:
721         * WebProcess/WebProcess.cpp:
722         (WebKit::WebProcess::initializeWebProcess):
723         (WebKit::WebProcess::clearApplicationCache):
724         * WebProcess/WebProcess.h:
725
726 2011-09-23  Adam Klein  <adamk@chromium.org>
727
728         Add ENABLE_MUTATION_OBSERVERS feature flag
729         https://bugs.webkit.org/show_bug.cgi?id=68732
730
731         Reviewed by Ojan Vafai.
732
733         This flag will guard an implementation of the "Mutation Observers" proposed in
734         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
735
736         * Configurations/FeatureDefines.xcconfig:
737
738 2011-09-23  Varun Jain  <varunjain@google.com>
739
740         Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests 
741         https://bugs.webkit.org/show_bug.cgi?id=68198
742
743         Reviewed by Dimitri Glazkov.
744
745         * win/WebKit2.def:
746         * win/WebKit2CFLite.def:
747
748 2011-09-23  Chang Shu  <cshu@webkit.org>
749
750         [WK2] [Qt] Implement MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
751         https://bugs.webkit.org/show_bug.cgi?id=68556
752
753         Implement the MouseDown/MouseUp/MouseMoveTo functions on Qt platform.
754
755         Reviewed by Darin Adler.
756
757         * Shared/API/c/WKGeometry.h:
758         (operator==):
759         * WebProcess/WebPage/WebPage.cpp:
760         (WebKit::WebPage::mouseEventSyncForTesting): initialize "handled"
761
762 2011-09-23  Anders Carlsson  <andersca@apple.com>
763
764         Move WebHitTestResult files to Shared/ in the Xcode project
765         https://bugs.webkit.org/show_bug.cgi?id=68718
766
767         Reviewed by Sam Weinig.
768
769         * WebKit2.xcodeproj/project.pbxproj:
770
771 2011-09-23  Anders Carlsson  <andersca@apple.com>
772
773         Add OVERRIDE to overrides of virtual member functions in client classes
774         https://bugs.webkit.org/show_bug.cgi?id=68702
775
776         Reviewed by Darin Adler.
777
778         Disable the warning in Xcode and VS2005 for using override and final when compiling as C++98,
779         and remove WebEditorClient::isEditable, WebChromeClient::formDidFocus,
780         WebChromeClient::formDidBlur and WebFrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest since
781         they have been removed from their respective base classes.
782         
783         * Configurations/Base.xcconfig:
784         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
785         * WebProcess/WebCoreSupport/WebChromeClient.h:
786         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
787         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
788         * WebProcess/WebCoreSupport/WebDragClient.h:
789         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
790         * WebProcess/WebCoreSupport/WebEditorClient.h:
791         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
792         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
793         * WebProcess/WebCoreSupport/WebGeolocationClient.h:
794         * WebProcess/WebCoreSupport/WebInspectorClient.h:
795         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
796         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
797         * WebProcess/WebCoreSupport/WebPopupMenu.h:
798         * WebProcess/WebCoreSupport/WebSearchPopupMenu.h:
799         * win/WebKit2Common.vsprops:
800
801 2011-09-23  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
802
803         [Qt][WK2] QtFileDownloader ctor shouldn't call QtFileDownloader::onReadyRead()
804         https://bugs.webkit.org/show_bug.cgi?id=68696
805
806         Reviewed by Andreas Kling.
807
808         Instead of connecting signals and calling QtFileDownloader::onReadyRead()
809         on its constructor, QtFileDownloader will now handle this in start().
810
811         * WebProcess/Downloads/qt/DownloadQt.cpp:
812         (WebKit::Download::start):
813         * WebProcess/Downloads/qt/QtFileDownloader.cpp:
814         (WebKit::QtFileDownloader::QtFileDownloader):
815         (WebKit::QtFileDownloader::start):
816         * WebProcess/Downloads/qt/QtFileDownloader.h:
817
818 2011-09-22  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
819
820         [Qt] TouchWebView load test not running
821         https://bugs.webkit.org/show_bug.cgi?id=68620
822
823         Reviewed by Chang Shu.
824
825         Load test was not executed since it was missing in pro file. Added tst_load.qml to qmltests.pro
826
827         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
828
829 2011-09-22  Dean Jackson  <dino@apple.com>
830
831         Add ENABLE_CSS_FILTERS
832         https://bugs.webkit.org/show_bug.cgi?id=68652
833
834         Reviewed by Simon Fraser.
835
836         * Configurations/FeatureDefines.xcconfig:
837
838 2011-09-22  Simon Fraser  <simon.fraser@apple.com>
839
840         Add APIObjects for Size, Point, Rect
841         https://bugs.webkit.org/show_bug.cgi?id=68644
842
843         Reviewed by Sam Weinig.
844         
845         Make APIObjects for size, point and rect so that they can be
846         used in WKArrayRefs.
847         
848         Make some inline helper methods to create WKSize, WKPoint and WKRect
849         types.
850
851         * GNUmakefile.am:
852         * Shared/API/c/WKBase.h:
853         * Shared/API/c/WKGeometry.cpp: Copied from Source/WebKit2/Shared/API/c/WKGeometry.h.
854         (WKSizeGetTypeID):
855         (WKPointGetTypeID):
856         (WKRectGetTypeID):
857         (WKPointCreate):
858         (WKSizeCreate):
859         (WKRectCreate):
860         (WKSizeGetValue):
861         (WKPointGetValue):
862         (WKRectGetValue):
863         * Shared/API/c/WKGeometry.h:
864         (WKPoint::WKPointMake):
865         (WKPoint::WKSizeMake):
866         (WKPoint::WKRectMake):
867         * Shared/API/c/WKSharedAPICast.h:
868         * Shared/APIObject.h:
869         * Shared/UserMessageCoders.h:
870         (WebKit::UserMessageEncoder::baseEncode):
871         (WebKit::UserMessageDecoder::baseDecode):
872         * Shared/WebGeometry.h: Added.
873         (WebKit::WebSize::create):
874         (WebKit::WebSize::size):
875         (WebKit::WebSize::WebSize):
876         (WebKit::WebSize::type):
877         (WebKit::WebPoint::create):
878         (WebKit::WebPoint::point):
879         (WebKit::WebPoint::WebPoint):
880         (WebKit::WebPoint::type):
881         (WebKit::WebRect::create):
882         (WebKit::WebRect::rect):
883         (WebKit::WebRect::WebRect):
884         (WebKit::WebRect::type):
885         * WebKit2.pro:
886         * WebKit2.xcodeproj/project.pbxproj:
887         * WebKit2API.pri:
888         * win/WebKit2.vcproj:
889
890 2011-09-22  Alexey Proskuryakov  <ap@apple.com>
891
892         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
893         https://bugs.webkit.org/show_bug.cgi?id=68573
894
895         Reviewed by Anders Carlsson.
896
897         Re-landing with a slightly less aggressive check.
898
899         * UIProcess/API/mac/WKView.mm:
900         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
901         an extension actually needed to be created
902         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
903         universal file read sandbox extension.
904
905         * UIProcess/WebContext.cpp:
906         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
907         (WebKit::WebContext::didPerformServerRedirect): Ditto.
908         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
909         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
910         assume that a string coming from WebProcess is a ParsedURLString.
911
912         * UIProcess/WebPageProxy.cpp:
913         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
914         is going to get universal file read sandbox extension.
915         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
916         telling the caller whether an extension actually needed to be created.
917         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
918         (WebKit::WebPageProxy::loadURLRequest): Ditto.
919         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
920         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
921         (typically, one where error page resources live), and can load from it.
922         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
923         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
924         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
925         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
926         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
927         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
928         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
929         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
930         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
931         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
932         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
933         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
934         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
935         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
936
937         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
938         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
939
940         * UIProcess/WebProcessProxy.cpp:
941         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
942         It's going to be true if we ever granted an extension for "/".
943         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
944         that WebProcess will load subresources from it.
945         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
946         WebProcess send us a URL like this.
947         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
948
949         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
950
951         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
952         Tell process proxy when the process is going to get universal file read sandbox extension.
953
954 2011-09-22  Alpha Lam  <hclam@chromium.org>
955
956         https://bugs.webkit.org/show_bug.cgi?id=68081
957         Fix scroll in page scaling mode.
958
959         Reviewed by Simon Fraser.
960
961         * WebProcess/Plugins/PluginView.cpp: Rename pageScaleFactor to frameScaleFactor.
962         (WebKit::PluginView::handleEvent):
963         (WebKit::PluginView::viewGeometryDidChange):
964         (WebKit::PluginView::clipRectInWindowCoordinates):
965
966 2011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
967
968         [Qt] Redirection overflow errors have wrong error domain
969         https://bugs.webkit.org/show_bug.cgi?id=68612
970
971         Reviewed by Andreas Kling.
972
973         Redirection overflow currently puts the URL hostname in the errorDomain field
974         and therefore are treated as a QWebError::EngineError. From now on they
975         will be treated as QWebError::HttpError, since their error domain was modified
976         to "HTTP" in QNetworkReplyHandler::redirect().
977
978         * UIProcess/API/qt/qweberror.cpp:
979         (QWebError::type):
980
981 2011-09-22  Csaba Osztrogonác  <ossy@webkit.org>
982
983         REGRESSION(r95679): It broke everything.
984         https://bugs.webkit.org/show_bug.cgi?id=68611
985
986         Unreviewed rolling out r95679 and r95690, because it broke everything.
987
988         * UIProcess/API/mac/WKView.mm:
989         (maybeCreateSandboxExtensionFromPasteboard):
990         (-[WKView performDragOperation:]):
991         * UIProcess/WebContext.cpp:
992         (WebKit::WebContext::didPerformClientRedirect):
993         (WebKit::WebContext::didPerformServerRedirect):
994         (WebKit::WebContext::didUpdateHistoryTitle):
995         (WebKit::WebContext::getPluginPath):
996         * UIProcess/WebPageProxy.cpp:
997         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
998         (WebKit::WebPageProxy::initializeSandboxExtensionHandle):
999         (WebKit::WebPageProxy::loadURL):
1000         (WebKit::WebPageProxy::loadURLRequest):
1001         (WebKit::WebPageProxy::loadHTMLString):
1002         (WebKit::WebPageProxy::loadAlternateHTMLString):
1003         (WebKit::WebPageProxy::goForward):
1004         (WebKit::WebPageProxy::goBack):
1005         (WebKit::WebPageProxy::goToBackForwardItem):
1006         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1007         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
1008         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1009         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1010         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
1011         (WebKit::WebPageProxy::decidePolicyForResponse):
1012         (WebKit::WebPageProxy::didInitiateLoadForResource):
1013         (WebKit::WebPageProxy::didSendRequestForResource):
1014         (WebKit::WebPageProxy::didReceiveResponseForResource):
1015         (WebKit::WebPageProxy::missingPluginButtonClicked):
1016         * UIProcess/WebPageProxy.h:
1017         * UIProcess/WebProcessProxy.cpp:
1018         (WebKit::WebProcessProxy::WebProcessProxy):
1019         (WebKit::WebProcessProxy::addBackForwardItem):
1020         * UIProcess/WebProcessProxy.h:
1021         * UIProcess/cf/WebPageProxyCF.cpp:
1022         (WebKit::WebPageProxy::restoreFromSessionStateData):
1023
1024 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
1025
1026         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
1027         https://bugs.webkit.org/show_bug.cgi?id=68573
1028
1029         Unreviewed follow-up fix.
1030
1031         * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
1032         Just like we allow null URLs, also allow empty strings.
1033
1034 2011-09-21  Julien Chaffraix  <jchaffraix@webkit.org>
1035
1036         Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled
1037         https://bugs.webkit.org/show_bug.cgi?id=68133
1038
1039         Reviewed by Darin Adler.
1040
1041         * win/WebKit2.def:
1042         * win/WebKit2CFLite.def:
1043         Exported the new FrameView::paintControlTints function.
1044
1045 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
1046
1047         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
1048         https://bugs.webkit.org/show_bug.cgi?id=68573
1049
1050         Reviewed by Anders Carlsson.
1051
1052         * UIProcess/API/mac/WKView.mm:
1053         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
1054         an extension actually needed to be created
1055         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
1056         universal file read sandbox extension.
1057
1058         * UIProcess/WebContext.cpp:
1059         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
1060         (WebKit::WebContext::didPerformServerRedirect): Ditto.
1061         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
1062         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
1063         assume that a string coming from WebProcess is a ParsedURLString.
1064
1065         * UIProcess/WebPageProxy.cpp:
1066         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
1067         is going to get universal file read sandbox extension.
1068         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
1069         telling the caller whether an extension actually needed to be created.
1070         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
1071         (WebKit::WebPageProxy::loadURLRequest): Ditto.
1072         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
1073         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
1074         (typically, one where error page resources live), and can load from it.
1075         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
1076         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
1077         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
1078         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
1079         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
1080         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
1081         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
1082         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
1083         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
1084         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
1085         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
1086         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
1087         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
1088         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
1089
1090         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
1091         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
1092
1093         * UIProcess/WebProcessProxy.cpp:
1094         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
1095         It's going to be true if we ever granted an extension for "/".
1096         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
1097         that WebProcess will load subresources from it.
1098         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
1099         WebProcess send us a URL like this.
1100         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
1101
1102         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
1103
1104         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
1105         Tell process proxy when the process is going to get universal file read sandbox extension.
1106
1107 2011-09-19  Jer Noble  <jer.noble@apple.com>
1108
1109         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
1110         https://bugs.webkit.org/show_bug.cgi?id=68382
1111
1112         Add support for the webAudioEnabled preference in WebKit2.
1113
1114         Reviewed by Darin Adler.
1115
1116         * Shared/WebPreferencesStore.h: Add WebAudioEnabled getter and setter macro.
1117         * UIProcess/API/C/WKPreferences.cpp:
1118         (WKPreferencesSetWebAudioEnabled): Added.
1119         (WKPreferencesGetWebAudioEnabled): Added.
1120         * UIProcess/API/C/WKPreferences.h:
1121         * WebProcess/WebPage/WebPage.cpp:
1122         (WebKit::WebPage::updatePreferences): Update the webAudioEnabled preference.
1123
1124 2011-09-21  Dan Bernstein  <mitz@apple.com>
1125
1126         Use the prefix "WK" instead of "Web" for Objective-C classes defined in WebKit2.
1127
1128         Reviewed by Anders Carlsson.
1129
1130         Renamed WebInspectorProxyObjCAdapter to WKWebInspectorProxyObjCAdapter.
1131         Renamed WebInspectorWKView to WKWebInspectorWKView.
1132         Renamed WebFindIndicatorWindowAnimation to WKFindIndicatorWindowAnimation.
1133         Renamed WebFindIndicatorView to WKFindIndicatorView.
1134         Renamed WebUserDataWrapper to WKUserDataWrapper.
1135
1136         Updated the build phase checking for inappropriate Objective-C class names to disallow the prefix
1137         "Web" and only allow "WK".
1138
1139         * UIProcess/API/mac/FindIndicatorWindow.h:
1140         * UIProcess/API/mac/FindIndicatorWindow.mm:
1141         (WebKit::FindIndicatorWindow::setFindIndicator):
1142         (WebKit::FindIndicatorWindow::startFadeOutTimerFired):
1143         * UIProcess/WebInspectorProxy.h:
1144         * UIProcess/mac/WebContextMenuProxyMac.mm:
1145         (-[WKMenuTarget forwardContextMenuAction:]):
1146         (WebKit::nsMenuItemVector):
1147         * UIProcess/mac/WebInspectorProxyMac.mm:
1148         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1149         (WebKit::WebInspectorProxy::platformOpen):
1150         * WebKit2.xcodeproj/project.pbxproj:
1151         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
1152         (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac):
1153
1154 2011-09-21  Chang Shu  <cshu@webkit.org>
1155
1156         [WK2] [Mac] Implement a more-complete MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
1157         https://bugs.webkit.org/show_bug.cgi?id=68108
1158
1159         This patch implements the event sender mouse events through WebKit2 UIProcess which is
1160         closer to the real simulation than a WebProcess-only approach. The patch only supports Mac
1161         platform as the first step so the existing code is still kept for other platforms.
1162
1163         Reviewed by Darin Adler.
1164
1165         * UIProcess/API/C/WKPage.cpp:
1166         (WKPageSetShouldSendEventsSynchronously):
1167         * UIProcess/API/C/WKPagePrivate.h:
1168         * UIProcess/WebPageProxy.cpp:
1169         (WebKit::WebPageProxy::WebPageProxy):
1170         (WebKit::WebPageProxy::handleMouseEvent):
1171         (WebKit::WebPageProxy::handleKeyboardEvent):
1172         * UIProcess/WebPageProxy.h:
1173         (WebKit::WebPageProxy::setShouldSendEventsSynchronously):
1174         * WebProcess/WebPage/WebPage.cpp:
1175         (WebKit::WebPage::mouseEventSyncForTesting):
1176         * WebProcess/WebPage/WebPage.h:
1177         * WebProcess/WebPage/WebPage.messages.in:
1178
1179 2011-09-21  Dan Bernstein  <mitz@apple.com>
1180
1181         WebKit2 part of: Prevent the WebKit frameworks from defining inappropriately-named Objective-C classes
1182         https://bugs.webkit.org/show_bug.cgi?id=68451
1183
1184         Reviewed by Darin Adler.
1185
1186         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that invokes
1187         check-for-inappropriate-objc-class-names, allowing only class names prefixed with "WK" or "Web".
1188
1189 2011-09-21  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1190
1191         [Qt][WK2] Implement Download support in WebProcess
1192         https://bugs.webkit.org/show_bug.cgi?id=68153
1193
1194         Reviewed by Andreas Kling.
1195
1196         We implement the necessary functions of Download.h, and our QtFileDownloader
1197         to handle all network communication and call the necessary functions of Download.
1198
1199         We use the download policy for any MIME type not supported by WebKit. This
1200         behaves like Qt non-WebKit2 except that we don't force download when
1201         we encounter Content-Disposition: attachment. We still use the "filename="
1202         field for file name suggestion though.
1203
1204         Based on original patches by: Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>,
1205         Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
1206         and Zalan Bujtas <zalan.bujtas@nokia.com>.
1207
1208         * UIProcess/API/qt/qweberror.cpp: Adding DownloadError
1209         (QWebError::type):
1210         * UIProcess/API/qt/qweberror.h: Adding DownloadError
1211         * WebKit2.pro:
1212         * WebProcess/Downloads/Download.cpp: Adding QtFileDownloader, Qt platform specific
1213         (WebKit::Download::Download):
1214         * WebProcess/Downloads/Download.h: Adding QtFileDownloader, Qt platform specific
1215         * WebProcess/Downloads/qt/DownloadQt.cpp:
1216         (WebKit::Download::start):
1217         (WebKit::Download::startWithHandle):
1218         (WebKit::Download::cancel):
1219         (WebKit::Download::platformInvalidate):
1220         (WebKit::Download::didDecideDestination):
1221         * WebProcess/Downloads/qt/QtFileDownloader.cpp: Added.
1222         (WebKit::QtFileDownloader::QtFileDownloader):
1223         (WebKit::QtFileDownloader::~QtFileDownloader):
1224         (WebKit::QtFileDownloader::determineFilename):
1225         (WebKit::QtFileDownloader::decidedDestination):
1226         (WebKit::QtFileDownloader::abortDownloadWritingAndEmitError):
1227         (WebKit::QtFileDownloader::onReadyRead):
1228         (WebKit::QtFileDownloader::onFinished):
1229         (WebKit::QtFileDownloader::onError):
1230         (WebKit::QtFileDownloader::cancel):
1231         * WebProcess/Downloads/qt/QtFileDownloader.h: Added.
1232
1233 2011-09-21  Mark Rowe  <mrowe@apple.com>
1234
1235         <rdar://problem/9890932> "Open PDF in Preview" on two PDFs of the same name does nothing the second time
1236
1237         The logic in PDFViewController::pathToPDFOnDisk that deals with constructing a unique
1238         file name if a file of the suggested name already exists was incorrect. It was appending
1239         the template used by mkstemps to the directory name component of the path rather than
1240         using it as a prefix on the filename portion of the path. This resulted in a template path
1241         like WebKitPDFs-ABCDEFXXXXXX-/foo.pdf where WebKitPDFs-ABCDEF/XXXXXX-foo.pdf was expected.
1242
1243         Reviewed by Jon Honeycutt.
1244
1245         * UIProcess/API/mac/PDFViewController.mm:
1246         (WebKit::PDFViewController::pathToPDFOnDisk): Append the template as a new path component,
1247         then append the suggested file name to that component.
1248
1249 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1250
1251         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1252         https://bugs.webkit.org/show_bug.cgi?id=67702
1253
1254         Reviewed by Csaba Osztrogonác.
1255
1256         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype.
1257         (WebKit::WebPlatformStrategies::isLinkVisited):
1258         (WebKit::WebPlatformStrategies::addVisitedLink):
1259         * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Ditto.
1260
1261 2011-09-20  Anders Carlsson  <andersca@apple.com>
1262
1263         Get rid of PluginView::setBoundsSize from WebKit2
1264         https://bugs.webkit.org/show_bug.cgi?id=68489
1265
1266         Reviewed by Dan Bernstein.
1267
1268         Remove m_boundsSize and the setter since they aren't used anywhere.
1269
1270         * WebProcess/Plugins/PluginView.cpp:
1271         * WebProcess/Plugins/PluginView.h:
1272
1273 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1274
1275         [Qt] QTouchWebView missing signal tests for loadProgress
1276         https://bugs.webkit.org/show_bug.cgi?id=68442
1277
1278         Reviewed by Chang Shu.
1279
1280         Added test case to check load progress signal for QTouchWebView
1281
1282         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml: Added.
1283         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1284
1285 2011-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1286
1287         Unreviewed, rolling out r95565.
1288         http://trac.webkit.org/changeset/95565
1289         https://bugs.webkit.org/show_bug.cgi?id=68470
1290
1291         Broke builds (Requested by andersca on #webkit).
1292
1293         * GNUmakefile.am:
1294         * Shared/API/c/WKHitTestResult.cpp: Removed.
1295         * Shared/API/c/WKHitTestResult.h: Removed.
1296         * UIProcess/API/C/WebKit2.h:
1297
1298 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
1299
1300         [Qt] [WK2] Implement a persistent cookie storage.
1301         https://bugs.webkit.org/show_bug.cgi?id=65309
1302
1303         Reviewed by Chang Shu.
1304
1305         Add parameter to the WebProcess creation to specify where cookies should be saved.
1306         It also use the new cookie storage implementation and set it to our network stack
1307         so cookies are used when using it.
1308
1309         * Shared/WebProcessCreationParameters.cpp:
1310         (WebKit::WebProcessCreationParameters::encode):
1311         (WebKit::WebProcessCreationParameters::decode):
1312         * Shared/WebProcessCreationParameters.h:
1313         * UIProcess/qt/WebContextQt.cpp:
1314         (WebKit::WebContext::platformInitializeWebProcess):
1315         * WebProcess/qt/WebProcessQt.cpp:
1316         (WebKit::WebProcess::platformInitializeWebProcess):
1317         (WebKit::WebProcess::platformTerminate):
1318
1319 2011-09-20  Nayan Kumar K  <nayankk@motorola.com>
1320
1321         Added WKHitTestResult API's.
1322
1323         WKHitTestResult API's are added. These API's can be used to
1324         get the hover'ed link/image/media URL as well as link lable and
1325         title.
1326         https://bugs.webkit.org/show_bug.cgi?id=68426
1327
1328         Reviewed by Anders Carlsson.
1329
1330         * GNUmakefile.am:
1331         * Shared/API/c/WKHitTestResult.cpp: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
1332         (WKHitTestResultGetTypeID):
1333         (WKHitTestResultCopyAbsoluteImageURL):
1334         (WKHitTestResultCopyAbsoluteLinkURL):
1335         (WKHitTestResultCopyAbsoluteMediaURL):
1336         (WKHitTestResultCopyLinkLabel):
1337         (WKHitTestResultCopyLinkTitle):
1338         * Shared/API/c/WKHitTestResult.h: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
1339         * UIProcess/API/C/WebKit2.h:
1340
1341 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
1342
1343         [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
1344         https://bugs.webkit.org/show_bug.cgi?id=68444
1345
1346         Reviewed by Andreas Kling.
1347
1348         Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
1349
1350         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Added.
1351         (WebKit::WebFullScreenManagerProxy::invalidate):
1352         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
1353         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
1354         (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
1355         (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
1356         (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
1357         (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
1358         (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
1359         (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
1360         (WebKit::WebFullScreenManagerProxy::getFullScreenRect):
1361         * WebKit2.pro:
1362         * WebProcess/FullScreen/qt: Added.
1363         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp: Added.
1364         (WebKit::WebFullScreenManagerQt::WebFullScreenManagerQt):
1365         (WebKit::WebFullScreenManager::create):
1366         (WebKit::WebFullScreenManagerQt::setRootFullScreenLayer):
1367         (WebKit::WebFullScreenManagerQt::beginEnterFullScreenAnimation):
1368         (WebKit::WebFullScreenManagerQt::beginExitFullScreenAnimation):
1369         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.h: Added.
1370
1371 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
1372
1373         [Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
1374         https://bugs.webkit.org/show_bug.cgi?id=68401
1375
1376         Reviewed by Simon Hausmann.
1377
1378         Add QNetworkReply in the QtWebKit module. We use the enum QNetworkReply::NetworkError
1379         as the error code when the load fails. It is not used in the QtQuick module therefore
1380         the QML team thinks it should belong here. Also added some auto-tests to cover the
1381         loading errors.
1382
1383         * UIProcess/API/qt/qmlplugin/plugin.cpp:
1384         (WebKit2QmlPlugin::registerTypes):
1385         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml: Added.
1386         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Added.
1387
1388 2011-09-20  Csaba Osztrogonác  <ossy@webkit.org>
1389
1390         [Qt][Mac] Buildfix after r95513.
1391
1392         Rubber-stamped by Andras Becsi.
1393
1394         * Scripts/generate-forwarding-headers.pl: Add mm file supporting.
1395
1396 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1397
1398         [Qt] QDesktopWebView missing loadProgress tests
1399         https://bugs.webkit.org/show_bug.cgi?id=68280
1400
1401         Reviewed by Andreas Kling.
1402
1403         Added test case to check load progress property and signal for QDesktopWebView
1404
1405         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgress.qml: Added.
1406         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgressSignal.qml: Added.
1407         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1408
1409 2011-09-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1410
1411         [GTK] WebProcess shouldn't use the GTK+ API
1412         https://bugs.webkit.org/show_bug.cgi?id=68062
1413
1414         Reviewed by Martin Robinson.
1415
1416         Use WebCore API to create errors in WebProcess.
1417
1418         * GNUmakefile.am: Don't use webkit/webkierror.h.
1419         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
1420         (WebKit::cancelledError):
1421         (WebKit::blockedError):
1422         (WebKit::cannotShowURLError):
1423         (WebKit::interruptedForPolicyChangeError):
1424         (WebKit::cannotShowMIMETypeError):
1425         (WebKit::fileDoesNotExistError):
1426         (WebKit::pluginWillHandleLoadError):
1427
1428 2011-09-19  Mark Rowe  <mrowe@apple.com>
1429
1430         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
1431
1432         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
1433         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
1434         a NoIdleSleep assertion as the latter is implied by the former.
1435
1436         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WKFullScreenWindowController.
1437
1438         Reviewed by Dan Bernstein.
1439
1440         * UIProcess/mac/WKFullScreenWindowController.h:
1441         * UIProcess/mac/WKFullScreenWindowController.mm:
1442         (-[WKFullScreenWindowController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
1443         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
1444         disabler that we own. Also adds a FIXME about an error that was noticed while working in this code.
1445
1446 2011-09-19  Adam Barth  <abarth@webkit.org>
1447
1448         Always enable ENABLE(EVENTSOURCE)
1449         https://bugs.webkit.org/show_bug.cgi?id=68414
1450
1451         Reviewed by Eric Seidel.
1452
1453         * Configurations/FeatureDefines.xcconfig:
1454
1455 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
1456
1457         [Qt] Unreviewed coding style fix.
1458
1459         * UIProcess/API/qt/qdesktopwebview.h:
1460         * UIProcess/API/qt/qtouchwebpage.h:
1461         * UIProcess/API/qt/qweberror.h:
1462
1463 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
1464
1465         [Qt][WK2] Make loading errors API easier to use.
1466         https://bugs.webkit.org/show_bug.cgi?id=68357
1467
1468         Reviewed by Tor Arne Vestbø.
1469
1470         Make the API to get loading errors easier to use. 95197 introduced
1471         a QJSValue API that is a bit opaque for the client code. Rather than
1472         using a dedicated object, we can just pass the needed information as
1473         parameters of the slot.
1474
1475         * UIProcess/API/qt/qdesktopwebview.cpp:
1476         (QDesktopWebViewPrivate::loadDidFail):
1477         * UIProcess/API/qt/qdesktopwebview.h:
1478         * UIProcess/API/qt/qdesktopwebview_p.h:
1479         * UIProcess/API/qt/qtouchwebpage.h:
1480         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
1481         (tst_CommonViewTests::loadNonexistentFileUrl):
1482         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
1483         (WebViewAbstraction::WebViewAbstraction):
1484         (WebViewAbstraction::touchViewLoadFailed):
1485         (WebViewAbstraction::desktopViewLoadFailed):
1486         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
1487         * UIProcess/qt/QtWebPageProxy.cpp:
1488         (QtWebPageProxy::loadDidFail):
1489         * UIProcess/qt/TouchViewInterface.cpp:
1490         (WebKit::TouchViewInterface::loadDidFail):
1491         * UIProcess/qt/TouchViewInterface.h:
1492         * UIProcess/qt/ViewInterface.h:
1493
1494 2011-09-19  Dan Bernstein  <mitz@apple.com>
1495
1496         WebKit2 part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
1497         https://bugs.webkit.org/show_bug.cgi?id=68323
1498
1499         Reviewed by Sam Weinig.
1500
1501         Renamed FullKeyboardAccessWatcher to WKFullKeyboardAccessWatcher.
1502         Renamed AccessibilityWebPageObject to WKAccessibilityWebPageObject.
1503
1504         * WebKit2.xcodeproj/project.pbxproj:
1505         * WebProcess/WebPage/WebPage.h:
1506         * WebProcess/WebPage/mac/AccessibilityWebPageObject.h: Removed.
1507         * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm: Removed.
1508         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.h: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.h.
1509         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.mm.
1510         * WebProcess/WebPage/mac/WebPageMac.mm:
1511         (WebKit::WebPage::platformInitialize):
1512         (WebKit::WebPage::accessibilityRemoteObject):
1513         * WebProcess/mac/FullKeyboardAccessWatcher.h: Removed.
1514         * WebProcess/mac/FullKeyboardAccessWatcher.mm: Removed.
1515         * WebProcess/mac/WKFullKeyboardAccessWatcher.h: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.h.
1516         * WebProcess/mac/WKFullKeyboardAccessWatcher.mm: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.mm.
1517         (+[WKFullKeyboardAccessWatcher fullKeyboardAccessEnabled]):
1518         * WebProcess/mac/WebProcessMac.mm:
1519         (WebKit::WebProcess::fullKeyboardAccessEnabled):
1520
1521 2011-09-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1522
1523         [Qt] [WK2] Implement popup menus in QDesktopWebView using QComboBox
1524         https://bugs.webkit.org/show_bug.cgi?id=67938
1525
1526         Reviewed by Andreas Kling.
1527
1528         Implement a WebPopupMenuProxy that uses QtWebComboBox (a QComboBox subclass we
1529         have for WK1). Then use this WebPopupMenuProxy in QDesktopWebView. The implementation
1530         explicitly avoids running a nested mainloop.
1531
1532         * UIProcess/WebPageProxy.cpp:
1533         (WebKit::WebPageProxy::showPopupMenu):
1534         Since we don't run a nested mainloop, we need to keep the client pointer to call
1535         valueChangedForPopupMenu().
1536
1537         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp: Added.
1538         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
1539         (WebKit::WebPopupMenuProxyQtDesktop::~WebPopupMenuProxyQtDesktop):
1540         (WebKit::WebPopupMenuProxyQtDesktop::showPopupMenu):
1541         (WebKit::WebPopupMenuProxyQtDesktop::hidePopupMenu):
1542         (WebKit::WebPopupMenuProxyQtDesktop::setSelectedIndex):
1543         (WebKit::WebPopupMenuProxyQtDesktop::onPopupMenuHidden):
1544         (WebKit::WebPopupMenuProxyQtDesktop::populate):
1545         * UIProcess/qt/WebPopupMenuProxyQtDesktop.h: Added.
1546         (WebKit::WebPopupMenuProxyQtDesktop::create):
1547         * UIProcess/qt/qdesktopwebpageproxy.cpp:
1548         (QDesktopWebPageProxy::createPopupMenuProxy):
1549         * UIProcess/qt/qdesktopwebpageproxy.h:
1550         * WebKit2.pro:
1551
1552 2011-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1553
1554         [GTK] Fix distcheck build
1555         https://bugs.webkit.org/show_bug.cgi?id=68241
1556
1557         Reviewed by Martin Robinson.
1558
1559         * GNUmakefile.am:
1560
1561 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1562
1563         FrameLoaderClient BackForwardList-related methods are unsued
1564         https://bugs.webkit.org/show_bug.cgi?id=68293
1565
1566         Reviewed by Darin Adler.
1567
1568         Remove FrameLoaderClient methods that were added by r51629, since only        
1569         the old (since-deleted) Android port needed them.
1570
1571         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1572         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
1573
1574 2011-09-16  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1575         [Qt] QTouchWebView missing loadProgress tests
1576         https://bugs.webkit.org/show_bug.cgi?id=68183
1577
1578         Reviewed by Chang Shu.
1579
1580         Added test case to check load progress for QTouchWebView
1581
1582         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml: Added.
1583         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1584
1585 2011-09-16  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
1586
1587         Removed unwanted NotImplemented.h inclusion in WebKit2 GTK port & platform independent files
1588         https://bugs.webkit.org/show_bug.cgi?id=68249
1589
1590         Reviewed by Martin Robinson.
1591
1592         * Shared/Plugins/NPIdentifierData.cpp: Removed NotImplemented.h inclusion.
1593         * Shared/Plugins/NPRemoteObjectMap.cpp: Removed NotImplemented.h inclusion.
1594         * Shared/Plugins/NPVariantData.cpp: Removed NotImplemented.h inclusion.
1595         * UIProcess/gtk/WebContextGtk.cpp: Removed NotImplemented.h inclusion.
1596         * WebProcess/Cookies/WebCookieManager.cpp: Removed NotImplemented.h inclusion.
1597         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Removed NotImplemented.h inclusion.
1598         * WebProcess/Plugins/Netscape/JSNPMethod.cpp: Removed NotImplemented.h inclusion.
1599         * WebProcess/Plugins/Netscape/NPJSObject.cpp: Removed NotImplemented.h inclusion.
1600         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp: Removed NotImplemented.h inclusion.
1601         * WebProcess/WebCoreSupport/WebInspectorClient.cpp: Removed NotImplemented.h inclusion.
1602
1603 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
1604
1605         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1606         https://bugs.webkit.org/show_bug.cgi?id=68134
1607
1608         Reviewed by Sam Weinig.
1609
1610         Hook up a private preference that enables the mock scrollbar theme.
1611
1612         * Shared/WebPreferencesStore.h:
1613         * UIProcess/API/C/WKPreferences.cpp:
1614         (WKPreferencesSetMockScrollbarsEnabled):
1615         (WKPreferencesGetMockScrollbarsEnabled):
1616         * UIProcess/API/C/WKPreferencesPrivate.h:
1617         * WebProcess/WebPage/WebPage.cpp:
1618         (WebKit::WebPage::updatePreferences):
1619
1620 2011-09-16  Mark Rowe  <mrowe@apple.com>
1621
1622         Stop installing source and header files in to WebKit2.framework after r95303.
1623
1624         * WebKit2.xcodeproj/project.pbxproj:
1625
1626 2011-09-16  Anders Carlsson  <andersca@apple.com>
1627
1628         Add back the WKHitTestResultRef parameter to mouseDidMoveOverElement in an ABI preserving way
1629         https://bugs.webkit.org/show_bug.cgi?id=68269
1630
1631         Reviewed by Geoffrey Garen.
1632
1633         Add back WKPageMouseDidMoveOverElementCallback last and deprecate the current callback.
1634
1635         * UIProcess/API/C/WKPage.h:
1636         * UIProcess/WebUIClient.cpp:
1637         (WebKit::WebUIClient::mouseDidMoveOverElement):
1638
1639 2011-09-16  Alexey Proskuryakov  <ap@apple.com>
1640
1641         Give local builds of WebProcess different icon to distinguish them from built-in Safari’s WebProcess
1642         https://bugs.webkit.org/show_bug.cgi?id=68268
1643
1644         Reviewed by Darin Adler.
1645
1646         * Configurations/WebProcess.xcconfig: Add an icon in Debug and Release builds.  The empty
1647         value for production resulted in WebKit not adding the key to plist at all, which is what
1648         we want (but I don't know if it's a supported feature).
1649         Also, don't copy the icon file to built framework in production builds.
1650
1651         * WebKit2.xcodeproj/project.pbxproj: Added WebKit.icns.
1652
1653         * WebProcess/Info.plist: Added a key for the icon.
1654
1655         * WebProcess/mac/WebKit.icns: Copied from Websites/webkit.org/images/surfin-safari.icns.
1656
1657 2011-09-16  Anders Carlsson  <andersca@apple.com>
1658
1659         Temporarily remove the WKHitTestResultRef parameter to avoid breaking the WK2 ABI/API
1660         https://bugs.webkit.org/show_bug.cgi?id=68266
1661
1662         Reviewed by John Sullivan.
1663
1664         * UIProcess/API/C/WKPage.h:
1665         * UIProcess/WebUIClient.cpp:
1666         (WebKit::WebUIClient::mouseDidMoveOverElement):
1667
1668 2011-09-16  Filip Pizlo  <fpizlo@apple.com>
1669
1670         DFG JIT should inline Math.abs
1671         https://bugs.webkit.org/show_bug.cgi?id=68227
1672
1673         Reviewed by Oliver Hunt.
1674
1675         Added JavaScriptCore/dfg to include path path.
1676
1677         * CMakeLists.txt:
1678
1679 2011-09-16  Igor Oliveira  <igor.oliveira@openbossa.org>
1680
1681         [WK2] mouseDidMoveOverElement needs to send more information about hovered element to UiProcess.
1682         https://bugs.webkit.org/show_bug.cgi?id=68125
1683
1684         This patch implements support for the UiProcess to know what is the link url of a hovered element.
1685
1686         Reviewed by Anders Carlsson.
1687
1688         * CMakeLists.txt:
1689         * GNUmakefile.am:
1690         * Shared/API/c/WKBase.h:
1691         * Shared/APIObject.h:
1692         * Shared/WebHitTestResult.cpp: Added.
1693
1694         WebHitTestResult has hovered element information.
1695
1696         (WebKit::WebHitTestResult::create):
1697         (WebKit::WebHitTestResult::Data::encode):
1698         (WebKit::WebHitTestResult::Data::decode):
1699         * Shared/WebHitTestResult.h: Added.
1700         (WebKit::WebHitTestResult::absoluteImageURL):
1701         (WebKit::WebHitTestResult::absoluteLinkURL):
1702         (WebKit::WebHitTestResult::absoluteMediaURL):
1703         (WebKit::WebHitTestResult::linkLabel):
1704         (WebKit::WebHitTestResult::linkTitle):
1705         (WebKit::WebHitTestResult::WebHitTestResult):
1706         (WebKit::WebHitTestResult::type):
1707         * UIProcess/API/C/WKAPICast.h:
1708         * UIProcess/API/C/WKPage.h:
1709         * UIProcess/WebPageProxy.cpp:
1710         (WebKit::WebPageProxy::mouseDidMoveOverElement):
1711         * UIProcess/WebPageProxy.h:
1712         * UIProcess/WebPageProxy.messages.in:
1713         * UIProcess/WebUIClient.cpp:
1714         (WebKit::WebUIClient::mouseDidMoveOverElement):
1715         * UIProcess/WebUIClient.h:
1716         * WebKit2.pro:
1717         * WebKit2.xcodeproj/project.pbxproj:
1718         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1719         (WebKit::WebChromeClient::mouseDidMoveOverElement):
1720         * win/WebKit2.vcproj:
1721
1722 2011-09-15  Adam Roben  <aroben@apple.com>
1723
1724         Add support for attributes on message parameters
1725
1726         Parameter attributes are specified as a space-separated list inside square brackets before
1727         the parameter's type. WebKit2 doesn't use this, but other projects that use these scripts
1728         would like to.
1729
1730         Fixes <http://webkit.org/b/68219> Would like a way to specify attributes on message
1731         parameters
1732
1733         Reviewed by Sam Weinig.
1734
1735         * Scripts/webkit2/messages_unittest.py: Added tests for parameter attributes.
1736
1737         * Scripts/webkit2/model.py:
1738         (Parameter.__init__): Added a new attributes parameter, which is stored in the self.attributes
1739         property.
1740         (Parameter.has_attribute): Added. Returns true if this parameter has the given attribute.
1741
1742         * Scripts/webkit2/parser.py:
1743         (parse): Moved attributes-parsing code from here...
1744         (parse_attributes_string): ...to here.
1745         (parse_parameters_string): Renamed from parse_parameter_string. Now also parses parameter
1746         attributes.
1747
1748 2011-09-15  Adam Roben  <aroben@apple.com>
1749
1750         Make WebKit2's message-generation model and parser scripts accessible to other projects
1751
1752         We copy them into the build products directory so other projects can find them.
1753
1754         Fixes <http://webkit.org/b/68169> Would like to be able to use WebKit2's message-generation
1755         scripts in other projects
1756
1757         Reviewed by Darin Adler.
1758
1759         * WebKit2.xcodeproj/project.pbxproj: Copy the scripts to PrivateHeaders.
1760
1761         * win/WebKit2.make: Copy the scripts from obj/WebKit2/scripts to
1762         tools/scripts, like WebCore does.
1763
1764         * win/WebKit2Generated.make: Copy the scripts to obj/WebKit2/scripts, which is similar to what
1765         WebCore does for its bindings scripts.
1766
1767 2011-09-15  Adam Roben  <aroben@apple.com>
1768
1769         Split some of the message-generation code into separate modules
1770
1771         This is in preparation for making these modules scripts usable by other projects.
1772
1773         Fixes <http://webkit.org/b/68217> Model and parsing functionality for WebKit2's
1774         message-generation scripts is trapped inside a much larger module
1775
1776         Reviewed by Darin Adler.
1777
1778         * DerivedSources.make:
1779         * DerivedSources.pro:
1780         * GNUmakefile.am:
1781         * WebKit2.xcodeproj/project.pbxproj:
1782         * win/WebKit2.vcproj:
1783         * win/WebKit2Generated.vcproj:
1784         Added new files.
1785
1786         * Scripts/webkit2/messages.py: Moved some code from here...
1787
1788         * Scripts/webkit2/model.py: Added.
1789         * Scripts/webkit2/parser.py: Added.
1790         ...to here. MessageReceiver.parse was split out into a function in the new parser module.
1791
1792         * Scripts/webkit2/messages_unittest.py: Updated for renames.
1793
1794 2011-09-16  Martin Robinson  <mrobinson@igalia.com>
1795
1796         [GTK] Disable WebKit2 by default in configure.ac, but enable it with build-webkit
1797         https://bugs.webkit.org/show_bug.cgi?id=68178
1798
1799         Reviewed by Xan Lopez.
1800
1801         * GNUmakefile.am: Do not build WebKit2 by default. Re-add pkgconfig support
1802         for WebKit2.
1803
1804 2011-09-15  Adam Barth  <abarth@webkit.org>
1805
1806         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1807         https://bugs.webkit.org/show_bug.cgi?id=68205
1808
1809         Reviewed by Eric Seidel.
1810
1811         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1812         * WebProcess/WebCoreSupport/WebChromeClient.h:
1813         * WebProcess/WebPage/WebPage.cpp:
1814         (WebKit::WebPage::updatePreferences):
1815         * WebProcess/WebProcess.cpp:
1816         (WebKit::WebProcess::initializeWebProcess):
1817
1818 2011-09-15  Eric Seidel  <eric@webkit.org>
1819
1820         Remove ENABLE(SVG_AS_IMAGE) since all major ports have it on by default
1821         https://bugs.webkit.org/show_bug.cgi?id=68182
1822
1823         Reviewed by Adam Barth.
1824
1825         * Configurations/FeatureDefines.xcconfig:
1826
1827 2011-09-15  Eric Seidel  <eric@webkit.org>
1828
1829         Remove ENABLE_SVG_ANIMATION as all major ports have it on by default
1830         https://bugs.webkit.org/show_bug.cgi?id=68022
1831
1832         Reviewed by Ryosuke Niwa.
1833
1834         * Configurations/FeatureDefines.xcconfig:
1835
1836 2011-09-15  Alexis Menard  <alexis.menard@openbossa.org>
1837
1838         [Qt][WK2] Make QWebError more friendly to QML.
1839         https://bugs.webkit.org/show_bug.cgi?id=67785
1840
1841         Reviewed by Simon Hausmann.
1842
1843         Make sure that we can use the loading errors in QML. We send it via a QJSValue which
1844         has the properties needed to get the error code, the url and the type of error.
1845
1846         * UIProcess/API/qt/qdesktopwebview.cpp:
1847         (QDesktopWebViewPrivate::loadDidFail):
1848         (QDesktopWebViewPrivate::engine):
1849         * UIProcess/API/qt/qdesktopwebview.h:
1850         * UIProcess/API/qt/qdesktopwebview_p.h:
1851         * UIProcess/API/qt/qtouchwebpage.h:
1852         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
1853         (tst_CommonViewTests::loadNonexistentFileUrl):
1854         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
1855         (WebViewAbstraction::WebViewAbstraction):
1856         (WebViewAbstraction::touchViewLoadFailed):
1857         (WebViewAbstraction::desktopViewLoadFailed):
1858         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
1859         * UIProcess/API/qt/tests/testwindow.h:
1860         * UIProcess/qt/QtWebPageProxy.cpp:
1861         (QtWebPageProxy::loadDidFail):
1862         * UIProcess/qt/QtWebPageProxy.h:
1863         * UIProcess/qt/TouchViewInterface.cpp:
1864         (WebKit::TouchViewInterface::loadDidFail):
1865         (WebKit::TouchViewInterface::engine):
1866         * UIProcess/qt/TouchViewInterface.h:
1867         * UIProcess/qt/ViewInterface.h:
1868
1869 2011-09-15  Adam Roben  <aroben@apple.com>
1870
1871         Remove WebKit2-specific knowledge from the Message class
1872
1873         This is in preparation for making some of our message-generations scripts usable by other
1874         projects.
1875
1876         Fixes <http://webkit.org/b/68170> Model classes in WebKit2's message-generation scripts know
1877         too much about WebKit2 details
1878
1879         Reviewed by Anders Carlsson.
1880
1881         * Scripts/webkit2/messages.py: Added constants for the message attributes we support.
1882         (MessageReceiver.parse): Instead of recognizing individual attributes, just stick the
1883         attributes into a set and pass it to the Message constructor.
1884         (Message.__init__): Changed to take a generic set of attributes instead of individual
1885         attributes.
1886         (Message.has_attribute): Added. Returns true if the message has an attribute.
1887         (message_is_variadic): Renamed from parameter_type_is_variadic. Code came from
1888         Message.__init__, which set the old message.is_variadic property.
1889
1890         (decode_type):
1891         (message_to_struct_declaration):
1892         (forward_declarations_and_headers):
1893         (async_case_statement):
1894         (sync_case_statement):
1895         (generate_message_handler):
1896         Updated to use Message.has_attribute and message_is_variadic.
1897
1898 2011-09-14  Wajahat Siddiqui  <mdwajahatali.siddiqui@motorola.com>
1899
1900         Eliminate WebKit2 compilation warnings.
1901         https://bugs.webkit.org/show_bug.cgi?id=65025
1902
1903         Warnings found with gcc on linux.
1904
1905         Reviewed by Sam Weinig.
1906
1907         * Platform/CoreIPC/ArgumentEncoder.cpp:
1908         (CoreIPC::ArgumentEncoder::~ArgumentEncoder):
1909         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1910         (WebKit::WebFrameLoaderClient::createPlugin):
1911
1912 2011-09-14  Ada Chan  <adachan@apple.com>
1913
1914         Implement WKBundleFrameCopyWebArchive().
1915         http://bugs.webkit.org/show_bug.cgi?id=67857
1916
1917         Reviewed by Anders Carlsson.
1918
1919         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1920         (WKBundleFrameCopyWebArchive): Call WebFrame::webArchiveData() and create a WKDataRef from the returned CFDataRef.
1921         * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
1922         * WebProcess/WebPage/WebFrame.cpp:
1923         (WebKit::WebFrame::webArchiveData): Add WebFrame::webArchiveData().
1924         * WebProcess/WebPage/WebFrame.h:
1925         * WebProcess/WebPage/WebPage.cpp:
1926         (WebKit::WebPage::getWebArchiveOfFrame): Move the logic to WebFrame::webArchiveData() and call that method here.
1927
1928 2011-09-14  Alexey Proskuryakov  <ap@apple.com>
1929
1930         Web Process doesn't need a permission to look up WebProcess service any more
1931         https://bugs.webkit.org/show_bug.cgi?id=68101
1932
1933         Reviewed by Anders Carlsson.
1934
1935         * WebProcess/com.apple.WebProcess.sb:
1936
1937 2011-09-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1938
1939         Unzip initialization lists and constructors in JSCell hierarchy (6/7)
1940         https://bugs.webkit.org/show_bug.cgi?id=67692
1941
1942         Reviewed by Geoffrey Garen.
1943
1944         Completed the sixth level of the refactoring to add finishCreation() 
1945         methods to all classes within the JSCell hierarchy with non-trivial 
1946         constructor bodies.
1947
1948         This primarily consists of pushing the calls to finishCreation() down 
1949         into the constructors of the subclasses of the fifth level of the hierarchy 
1950         as well as pulling the finishCreation() calls out into the class's corresponding
1951         create() method if it has one.  Doing both simultaneously allows us to 
1952         maintain the invariant that the finishCreation() method chain is called exactly 
1953         once during the creation of an object, since calling it any other number of 
1954         times (0, 2, or more) will cause an assertion failure.
1955
1956         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
1957         (WebKit::JSNPMethod::JSNPMethod):
1958         * WebProcess/Plugins/Netscape/JSNPMethod.h:
1959         (WebKit::JSNPMethod::create):
1960
1961 2011-09-13  Eric Seidel  <eric@webkit.org>
1962
1963         Remove ENABLE_SVG_USE as <use> is required by HTML5
1964         https://bugs.webkit.org/show_bug.cgi?id=68019
1965
1966         Reviewed by Ryosuke Niwa.
1967
1968         * Configurations/FeatureDefines.xcconfig:
1969
1970 2011-09-13  Anders Carlsson  <andersca@apple.com>
1971
1972         Disable C++ exceptions when building with clang
1973         https://bugs.webkit.org/show_bug.cgi?id=68031
1974         <rdar://problem/9556880>
1975
1976         Reviewed by Mark Rowe.
1977
1978         * Configurations/Base.xcconfig:
1979
1980 2011-09-13  Eric Seidel  <eric@webkit.org>
1981
1982         Remove ENABLE_SVG_FOREIGN_OBJECT as it is a required part of HTML5
1983         https://bugs.webkit.org/show_bug.cgi?id=68018
1984
1985         Reviewed by Ryosuke Niwa.
1986
1987         * Configurations/FeatureDefines.xcconfig:
1988
1989 2011-09-13  Chang Shu  <cshu@webkit.org>
1990
1991         [WK2] [Mac] Implement KeyDown function for WebKit2 EventSender.
1992         https://bugs.webkit.org/show_bug.cgi?id=57515
1993
1994         The code change in WebKit2 allows key events being sent to WebProcess from UIProcess synchronously.
1995
1996         Reviewed by Darin Adler.
1997
1998         * UIProcess/API/C/WKPage.cpp:
1999         (WKPageSetShouldSendKeyboardEventSynchronously):
2000         * UIProcess/API/C/WKPagePrivate.h:
2001         * UIProcess/WebPageProxy.cpp:
2002         (WebKit::WebPageProxy::WebPageProxy):
2003         (WebKit::WebPageProxy::handleKeyboardEvent):
2004         * UIProcess/WebPageProxy.h:
2005         (WebKit::WebPageProxy::setShouldSendKeyboardEventSynchronously):
2006         * WebProcess/WebPage/WebPage.cpp:
2007         (WebKit::WebPage::keyEventSyncForTesting):
2008         * WebProcess/WebPage/WebPage.h:
2009         * WebProcess/WebPage/WebPage.messages.in:
2010
2011 2011-09-12  Ryuan Choi  <ryuan.choi@samsung.com>
2012
2013         Reviewed by Eric Seidel.
2014
2015         [CMAKE][WK2] include cmakeconfig.h in WebKit2/config.h
2016         https://bugs.webkit.org/show_bug.cgi?id=62692
2017
2018         * CMakeLists.txt: define WTF_USE_JSC=1.
2019         * config.h: add cmakeconfig.h and define necessary macros for CMake build.
2020
2021 2011-09-12  Igor Oliveira  <igor.oliveira@openbossa.org>
2022
2023         [Qt] [WK2] implement support to upload files in Qt WebKit2
2024         https://bugs.webkit.org/show_bug.cgi?id=67228
2025
2026         This patch implements support to upload files in the Desktop Qt WebKit2 implementation.
2027
2028         Reviewed by Andreas Kling.
2029
2030         * Shared/WebOpenPanelParameters.h:
2031         (WebKit::WebOpenPanelParameters::selectedFileNames):
2032         * UIProcess/API/qt/qdesktopwebview.cpp:
2033         (QDesktopWebViewPrivate::chooseFiles):
2034         (QDesktopWebViewPrivate::onOpenPanelFilesSelected):
2035         (QDesktopWebViewPrivate::onOpenPanelFinished):
2036         * UIProcess/API/qt/qdesktopwebview_p.h:
2037         * UIProcess/qt/ClientImpl.cpp:
2038
2039         qt_wk_runOpenPanel supports single and multiple files selection.
2040
2041         (qt_wk_runOpenPanel):
2042         * UIProcess/qt/ClientImpl.h:
2043         * UIProcess/qt/QtWebPageProxy.cpp:
2044         (QtWebPageProxy::init):
2045         * UIProcess/qt/TouchViewInterface.h:
2046         (WebKit::TouchViewInterface::chooseFiles):
2047         * UIProcess/qt/ViewInterface.h:
2048
2049 2011-09-12  Alexis Menard  <alexis.menard@openbossa.org>
2050
2051         [Qt]Style error fix.
2052
2053         Reviewed by Andreas Kling.
2054
2055         * UIProcess/qt/QtWebPageProxy.cpp:
2056
2057 2011-09-11  Mark Rowe  <mrowe@apple.com>
2058
2059         <rdar://problem/9878268> Pressing caps lock after closing a showModalDialog window results in WebProcess exiting
2060
2061         It's incorrect to try and use -[NSApplication run] to run nested runloops as it is not possible to
2062         interrupt a nested invocation of -run without also causing outer invocations to exit after processing
2063         their next event. We can avoid this issue by using -[NSApplication run] for the outermost invocation
2064         of the main runloop, while using CFRunLoopRun for any nested invocations.
2065
2066         Reviewed by Anders Carlsson.
2067
2068         * Platform/RunLoop.h:
2069         * Platform/mac/RunLoopMac.mm:
2070         (RunLoop::RunLoop): Initialize the nesting level to 0.
2071         (RunLoop::run): Bump the nesting level, and only use -[NSApplication run] for the outermost invocation of the
2072         runloop. We also switch from -[NSRunloop run] to CFRunLoopRun as the former will only exit when it has no sources
2073         left to process, while CFRunLoopRun will return immediately after CFRunLoopStop is called on it.
2074         (RunLoop::stop): Only go down the NSApp path for the outermost invocation of the runloop.
2075
2076 2011-09-11  Balazs Kelemen  <kbalazs@webkit.org>
2077
2078         [Qt][WK2] Qt layer should be hardened against C API versioning in the sense of build failures
2079         https://bugs.webkit.org/show_bug.cgi?id=67094
2080
2081         Reviewed by Andreas Kling.
2082
2083         * UIProcess/qt/QtWebPageProxy.cpp:
2084         (QtWebPageProxy::init):
2085
2086 2011-09-09  Oliver Hunt  <oliver@apple.com>
2087
2088         Remove support for anonymous storage from jsobjects
2089         https://bugs.webkit.org/show_bug.cgi?id=67881
2090
2091         Reviewed by Sam Weinig.
2092
2093         Remove the use of AnonymousSlotCount.
2094
2095         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2096         (WebKit::JSNPMethod::createStructure):
2097         * WebProcess/Plugins/Netscape/JSNPObject.h:
2098         (WebKit::JSNPObject::createStructure):
2099
2100 2011-09-09  Chris Marrin  <cmarrin@apple.com>
2101
2102         requestAnimationFrame doesn't throttle on Mac
2103         https://bugs.webkit.org/show_bug.cgi?id=67171
2104
2105         Reviewed by Simon Fraser.
2106
2107         Removed runLoopObserver for requestAnimationFrame. It's now
2108         done by a Timer in ScriptedAnimationController in WebCore.
2109
2110         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2111         * WebProcess/WebCoreSupport/WebChromeClient.h:
2112         * WebProcess/WebPage/WebPage.cpp:
2113         (WebKit::WebPage::~WebPage):
2114         * WebProcess/WebPage/WebPage.h:
2115         * WebProcess/WebPage/mac/WebPageMac.mm:
2116
2117 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
2118
2119         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
2120         https://bugs.webkit.org/show_bug.cgi?id=67250
2121
2122         Reviewed by Simon Fraser.
2123
2124         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2125         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
2126         * WebProcess/WebPage/WebPage.cpp:
2127         (WebKit::WebPage::scalePage):
2128         (WebKit::WebPage::pageScaleFactor):
2129
2130 2011-09-09  Mark Hahnenberg  <mhahnenberg@apple.com>
2131
2132         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2133         https://bugs.webkit.org/show_bug.cgi?id=67420
2134
2135         Reviewed by Geoffrey Garen.
2136
2137         Completed the fifth level of the refactoring to add finishCreation() 
2138         methods to all classes within the JSCell hierarchy with non-trivial 
2139         constructor bodies.
2140
2141         This primarily consists of pushing the calls to finishCreation() down 
2142         into the constructors of the subclasses of the second level of the hierarchy 
2143         as well as pulling the finishCreation() calls out into the class's corresponding
2144         create() method if it has one.  Doing both simultaneously allows us to 
2145         maintain the invariant that the finishCreation() method chain is called exactly 
2146         once during the creation of an object, since calling it any other number of 
2147         times (0, 2, or more) will cause an assertion failure.
2148
2149         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2150         (WebKit::JSNPMethod::JSNPMethod):
2151         (WebKit::JSNPMethod::finishCreation):
2152         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2153         (WebKit::JSNPMethod::create):
2154         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2155         (WebKit::JSNPObject::JSNPObject):
2156         * WebProcess/Plugins/Netscape/JSNPObject.h:
2157         (WebKit::JSNPObject::create):
2158
2159 2011-09-08  Mark Rowe  <mrowe@apple.com>
2160
2161         <rdar://problem/9742393> Spell checking a text area causes the page to reload
2162
2163         Ensure that m_pendingLearnOrIgnoreWordMessageCount is incremented when we use
2164         executeEditCommand to ignore a word. This will ensure that WebPageProxy::ignoreWord
2165         is expecting to be called, and will not turn around and terminate the web process.
2166
2167         Reviewed by Anders Carlsson.
2168
2169         * UIProcess/WebPageProxy.cpp:
2170         (WebKit::WebPageProxy::executeEditCommand):
2171
2172 2011-09-08  Sam Weinig  <sam@webkit.org>
2173
2174         Remove accidentally committed typo.
2175
2176         * Platform/CoreIPC/Connection.cpp:
2177         (CoreIPC::Connection::waitForSyncReply):
2178
2179 2011-09-08  Brian Weinstein  <bweinstein@apple.com>
2180
2181         WebKit2: Assertion when calling didPerform*Redirect on null source/destination URL string
2182         https://bugs.webkit.org/show_bug.cgi?id=67794
2183         <rdar://problem/9892024>
2184         
2185         Don't call didPerformClientRedirect or didPerformServerRedirect when source or destination URL string
2186         is empty or null.
2187         
2188         If we call didPerformClientRedirect or didPerformServerRedirect when the source or destination is null,
2189         it causes an assert in WKURLCF::WKURLCopyCFURL when we try to convert the WKURLRef into a CFURLRef.
2190
2191         Reviewed by Brady Eidson.
2192
2193         * UIProcess/WebContext.cpp:
2194         (WebKit::WebContext::didPerformClientRedirect): Return early if the source or destination URL string is empty or null.
2195         (WebKit::WebContext::didPerformServerRedirect): Ditto.
2196
2197 2011-09-08  Sam Weinig  <sam@webkit.org>
2198
2199         Remove the Completion object from JSC, I have never liked it
2200         https://bugs.webkit.org/show_bug.cgi?id=67755
2201
2202         Reviewed by Gavin Barraclough.
2203
2204         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2205         (WebKit::NPRuntimeObjectMap::evaluate):
2206
2207 2011-09-08  Anders Carlsson  <andersca@apple.com>
2208
2209         Don't release the modal placeholder window if it's closed
2210         https://bugs.webkit.org/show_bug.cgi?id=67801
2211         <rdar://problem/10088059>
2212
2213         Reviewed by Adam Roben.
2214
2215         This is a speculative fix - nothing should really be able to close the modal placeholder window.
2216
2217         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2218         (WebKit::PluginProcessProxy::beginModal):
2219
2220 2011-09-07  Alexei Svitkine  <asvitkine@chromium.org>
2221
2222         Add test infrastructure to test rubber-banding overhang drawing along with layout tests for existing Chromium Mac overhang drawing in the non-gpu path.
2223         https://bugs.webkit.org/show_bug.cgi?id=67511
2224
2225         Reviewed by Dimitri Glazkov.
2226
2227         * win/WebKit2.def:
2228         * win/WebKit2CFLite.def:
2229
2230 2011-09-06  Oliver Hunt  <oliver@apple.com>
2231
2232         Remove JSObjectWithGlobalObject
2233         https://bugs.webkit.org/show_bug.cgi?id=67689
2234
2235         Reviewed by Geoff Garen.
2236
2237         Remove JSObjectWithGlobalObject usage.
2238
2239         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2240         (WebKit::JSNPObject::JSNPObject):
2241         (WebKit::JSNPObject::finishCreation):
2242         * WebProcess/Plugins/Netscape/JSNPObject.h:
2243
2244 2011-09-05  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2245
2246         [Qt][WK2] Make TiledDrawingArea request tiles only in the direction the viewport is panned to.
2247         https://bugs.webkit.org/show_bug.cgi?id=67606
2248
2249         TiledBackingStore previously used different values for horizontal and vertial multiplication
2250         to calculate the cover area. 
2251         This patch replaces this mechanism, used to give a bigger panning range to vertical panning,
2252         with the possibility to use the motion vector of the viewport to request tiles ahead instead.
2253         This allows economies on rendering resources as tiles won't be rendered beside the trajectory
2254         of the viewport.
2255
2256         * UIProcess/API/qt/qtouchwebview.cpp:
2257         (QTouchWebViewPrivate::QTouchWebViewPrivate):
2258         (QTouchWebViewPrivate::_q_viewportMotionVectorChanged):
2259         * UIProcess/API/qt/qtouchwebview.h:
2260         * UIProcess/API/qt/qtouchwebview_p.h:
2261         * UIProcess/TiledDrawingAreaProxy.cpp:
2262         (WebKit::TiledDrawingAreaProxy::setVisibleContentRectMotionVector):
2263         * UIProcess/TiledDrawingAreaProxy.h:
2264         * UIProcess/qt/ViewportInteractionEngine.cpp:
2265         (WebKit::ViewportInteractionEngine::panGestureRequestUpdate):
2266         (WebKit::ViewportInteractionEngine::panGestureEnded):
2267         (WebKit::ViewportInteractionEngine::pinchGestureStarted):
2268         * UIProcess/qt/ViewportInteractionEngine.h:
2269         * UIProcess/qt/qtouchwebpageproxy.cpp:
2270         (QTouchWebPageProxy::setVisibleContentRectMotionVector):
2271         * UIProcess/qt/qtouchwebpageproxy.h:
2272         * WebProcess/WebPage/DrawingArea.h:
2273         (WebKit::DrawingArea::setVisibleContentRectMotionVector):
2274         * WebProcess/WebPage/DrawingArea.messages.in:
2275         * WebProcess/WebPage/TiledDrawingArea.cpp:
2276         (WebKit::TiledDrawingArea::setVisibleContentRectMotionVector):
2277         * WebProcess/WebPage/TiledDrawingArea.h:
2278
2279 2011-09-01  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2280
2281         [Qt] TiledBackingStore: Import the resizeEdgeTiles logic from TiledDrawindAreaProxy.
2282         https://bugs.webkit.org/show_bug.cgi?id=67416
2283
2284         Reviewed by Kenneth Rohde Christiansen.
2285
2286         Original code by Antti Koivisto.
2287         With the current code, when the page is layouted during load, edge tiles will
2288         get removed instead of continuing to show their front buffer while the tile
2289         is being rendered for the new size.
2290
2291         * WebProcess/WebPage/TiledBackingStoreRemoteTile.cpp:
2292         (WebKit::TiledBackingStoreRemoteTile::updateBackBuffer):
2293         (WebKit::TiledBackingStoreRemoteTile::resize):
2294         * WebProcess/WebPage/TiledBackingStoreRemoteTile.h:
2295
2296 2011-09-01  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2297
2298         TiledDrawingArea: Fix issues where the tiles of the previous scale would be removed too early.
2299         https://bugs.webkit.org/show_bug.cgi?id=67390
2300
2301         Reviewed by Tor Arne Vestbø.
2302
2303         The two issues addresssed are:
2304         - The previous instance of the tile backing store would be destroyed in createTile which
2305           would send removeTile messages for all its tiles before the DidRenderFrame message is sent for the new tiles.
2306         - When quickly changing the scale a second time after a scale change, the previous tile set would
2307           be replaced by the current incomplete tile set which may contain no tiles at all.
2308         * WebProcess/WebPage/TiledDrawingArea.cpp:
2309         (WebKit::TiledDrawingArea::setVisibleContentRectAndScale):
2310         (WebKit::TiledDrawingArea::tiledBackingStorePaintEnd):
2311         (WebKit::TiledDrawingArea::createTile):
2312
2313 2011-08-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2314
2315         [Qt][WK2] The scene graph is rendered continuously even when the page is idle.
2316         https://bugs.webkit.org/show_bug.cgi?id=67195
2317
2318         Reviewed by Tor Arne Vestbø.
2319
2320         Since tiledBackingStorePaintEnd is called even when no tile is dirty, the TiledDrawingArea
2321         and its proxy are looping over DidRenderFrame and RenderNextFrame messages.
2322         This causes QSGItem::update() to be called and consumes a lot of useless CPU cycles on the UI process.
2323
2324         Introduce a bool to send DidRenderFrame only when dirty content was rendered.
2325
2326         * WebProcess/WebPage/TiledDrawingArea.cpp:
2327         (WebKit::TiledDrawingArea::TiledDrawingArea):
2328         (WebKit::TiledDrawingArea::tiledBackingStorePaint):
2329         (WebKit::TiledDrawingArea::tiledBackingStorePaintEnd):
2330         * WebProcess/WebPage/TiledDrawingArea.h:
2331
2332 2011-08-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2333
2334         [Qt][WK2] Make sure that the visible content rect and the content scale get to the web process in one single message.
2335         https://bugs.webkit.org/show_bug.cgi?id=67189
2336
2337         Reviewed by Kenneth Rohde Christiansen.
2338
2339         The TiledBackingStore needs to know the screen size of the viewport to know how many tiles to
2340         create, and since the visible content rect is given in page coordinates, the contents scale is
2341         necessary to calculate the viewport size.
2342         Both the rect and the scale then need to arrive to the web process at the same time to prevent
2343         picking the new visible rect with the old scale or vice-versa which can produce a huge viewport size
2344         and create/render an insane amount of tiles.
2345
2346         Things this patch does:
2347         - Merge the visible contents rect and content scale handling together.
2348         - Make QTouchWebView responsible for telling those viewport values to the web process instead of QTouchWebPage.
2349         - Prevent updating the viewport in ViewportInteractionEngine while a pinch is in progress and update the viewport at the end.
2350
2351         * UIProcess/API/qt/qtouchwebpage.cpp:
2352         * UIProcess/API/qt/qtouchwebpage.h:
2353         * UIProcess/API/qt/qtouchwebpage_p.h:
2354         * UIProcess/API/qt/qtouchwebview.cpp:
2355         (QTouchWebViewPrivate::QTouchWebViewPrivate):
2356         (QTouchWebViewPrivate::_q_viewportUpdated):
2357         (QTouchWebView::geometryChanged):
2358         * UIProcess/API/qt/qtouchwebview.h:
2359         * UIProcess/API/qt/qtouchwebview_p.h:
2360         * UIProcess/TiledDrawingAreaProxy.cpp:
2361         (WebKit::TiledDrawingAreaProxy::setVisibleContentRectAndScale):
2362         * UIProcess/TiledDrawingAreaProxy.h:
2363         * UIProcess/qt/ViewportInteractionEngine.cpp:
2364         (WebKit::ViewportInteractionEngine::ViewportInteractionEngine):
2365         (WebKit::ViewportInteractionEngine::~ViewportInteractionEngine): Allows OwnPtr with the forward declaration of ViewportUpdateGuard.
2366         (WebKit::ViewportInteractionEngine::setConstraints):
2367         (WebKit::ViewportInteractionEngine::pinchGestureStarted):
2368         (WebKit::ViewportInteractionEngine::pinchGestureEnded):
2369         (WebKit::ViewportInteractionEngine::contentViewportChanged):
2370         * UIProcess/qt/ViewportInteractionEngine.h:
2371         * UIProcess/qt/qtouchwebpageproxy.cpp:
2372         (QTouchWebPageProxy::setVisibleContentRectAndScale):
2373         * UIProcess/qt/qtouchwebpageproxy.h:
2374         * WebProcess/WebPage/DrawingArea.h:
2375         (WebKit::DrawingArea::setVisibleContentRectAndScale):
2376         * WebProcess/WebPage/DrawingArea.messages.in:
2377         * WebProcess/WebPage/TiledDrawingArea.cpp:
2378         (WebKit::TiledDrawingArea::setVisibleContentRectAndScale):
2379         * WebProcess/WebPage/TiledDrawingArea.h:
2380
2381 2011-08-29  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2382
2383         [Qt][WK2] Rename SGAgent to SGUpdateQueue to sharpen it's responsability.
2384         https://bugs.webkit.org/show_bug.cgi?id=67122
2385
2386         Reviewed by Tor Arne Vestbø.
2387
2388         * UIProcess/API/qt/qtouchwebpage.cpp:
2389         (QTouchWebPage::updatePaintNode):
2390         (QTouchWebPagePrivate::QTouchWebPagePrivate):
2391         * UIProcess/API/qt/qtouchwebpage_p.h:
2392         * UIProcess/qt/SGUpdateQueue.cpp: Renamed from Source/WebKit2/UIProcess/qt/SGAgent.cpp.
2393         (WebKit::NodeUpdateCreateTile::NodeUpdateCreateTile):
2394         (WebKit::NodeUpdateRemoveTile::NodeUpdateRemoveTile):
2395         (WebKit::NodeUpdateSetBackBuffer::NodeUpdateSetBackBuffer):
2396         (WebKit::NodeUpdateSwapTileBuffers::NodeUpdateSwapTileBuffers):
2397         (WebKit::SGUpdateQueue::SGUpdateQueue):
2398         (WebKit::SGUpdateQueue::createTileNode):
2399         (WebKit::SGUpdateQueue::removeTileNode):
2400         (WebKit::SGUpdateQueue::setNodeBackBuffer):
2401         (WebKit::SGUpdateQueue::swapTileBuffers):
2402         (WebKit::SGUpdateQueue::applyUpdates):
2403         (WebKit::SGUpdateQueue::getScaleNode):
2404         * UIProcess/qt/SGUpdateQueue.h: Renamed from Source/WebKit2/UIProcess/qt/SGAgent.h.
2405         (WebKit::SGUpdateQueue::isSwapPending):
2406         (WebKit::NodeUpdate::NodeUpdate):
2407         (WebKit::NodeUpdate::~NodeUpdate):
2408         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
2409         (WebKit::TiledDrawingAreaProxy::updateWebView):
2410         (WebKit::TiledDrawingAreaProxy::createTile):
2411         (WebKit::TiledDrawingAreaProxy::updateTile):
2412         (WebKit::TiledDrawingAreaProxy::didRenderFrame):
2413         (WebKit::TiledDrawingAreaProxy::removeTile):
2414         * UIProcess/qt/TouchViewInterface.cpp:
2415         (WebKit::TouchViewInterface::sceneGraphUpdateQueue):
2416         * UIProcess/qt/TouchViewInterface.h:
2417         * WebKit2.pro:
2418
2419 2011-09-07  Alexis Menard  <alexis.menard@openbossa.org>
2420
2421         [Qt] Unreviewed suppression of an unnecessary debug output. 
2422
2423         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2424
2425 2011-09-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2426
2427         Unreviewed, rolling out r94627 and r94632.
2428         http://trac.webkit.org/changeset/94627
2429         http://trac.webkit.org/changeset/94632
2430         https://bugs.webkit.org/show_bug.cgi?id=67698
2431
2432         It broke tests on GTK and Qt (Requested by Ossy on #webkit).
2433
2434         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2435         (WebKit::JSNPMethod::JSNPMethod):
2436         (WebKit::JSNPMethod::create):
2437         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2438         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2439         (WebKit::JSNPObject::JSNPObject):
2440         (WebKit::JSNPObject::create):
2441         * WebProcess/Plugins/Netscape/JSNPObject.h:
2442
2443 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2444
2445         fast/forms/suggested-value-crash.html crashes on Windows
2446         https://bugs.webkit.org/show_bug.cgi?id=67688
2447
2448         Reviewed by Adam Barth.
2449
2450         Removed sybmols for inputTag and textareaTag. Added the symbol for StringImpl::equal.
2451
2452         * win/WebKit2.def:
2453         * win/WebKit2CFLite.def:
2454
2455 2011-09-06  Mark Hahnenberg  <mhahnenberg@apple.com>
2456
2457         Unzip initialization lists and constructors in JSCell hierarchy (5/7)
2458         https://bugs.webkit.org/show_bug.cgi?id=67420
2459
2460         Reviewed by Geoffrey Garen.
2461
2462         Completed the fifth level of the refactoring to add finishCreation() 
2463         methods to all classes within the JSCell hierarchy with non-trivial 
2464         constructor bodies.
2465
2466         This primarily consists of pushing the calls to finishCreation() down 
2467         into the constructors of the subclasses of the second level of the hierarchy 
2468         as well as pulling the finishCreation() calls out into the class's corresponding
2469         create() method if it has one.  Doing both simultaneously allows us to 
2470         maintain the invariant that the finishCreation() method chain is called exactly 
2471         once during the creation of an object, since calling it any other number of 
2472         times (0, 2, or more) will cause an assertion failure.
2473
2474         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2475         (WebKit::JSNPMethod::JSNPMethod):
2476         (WebKit::JSNPMethod::finishCreation):
2477         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2478         (WebKit::JSNPMethod::create):
2479         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2480         (WebKit::JSNPObject::JSNPObject):
2481         * WebProcess/Plugins/Netscape/JSNPObject.h:
2482         (WebKit::JSNPObject::create):
2483
2484 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2485
2486         Rename confirmCompositionWithoutDisturbingSelection to cancelComposition
2487         https://bugs.webkit.org/show_bug.cgi?id=67569
2488
2489         Reviewed by Antonio Gomes.
2490
2491         * UIProcess/API/mac/WKView.mm:
2492         (-[WKView resignFirstResponder]):
2493         (-[WKView _updateTextInputStateIncludingSecureInputState:]):
2494         * UIProcess/WebPageProxy.h:
2495         * UIProcess/mac/WebPageProxyMac.mm:
2496         (WebKit::WebPageProxy::cancelComposition):
2497         * WebProcess/WebPage/WebPage.h:
2498         * WebProcess/WebPage/WebPage.messages.in:
2499         * WebProcess/WebPage/mac/WebPageMac.mm:
2500         (WebKit::WebPage::cancelComposition):
2501
2502 2011-09-05  Oliver Hunt  <oliver@apple.com>
2503
2504         An object's structure should reference the global object responsible for its creation
2505         https://bugs.webkit.org/show_bug.cgi?id=67624
2506
2507         Reviewed by Gavin Barraclough.
2508
2509         Update for new Structure::create globalObject parameter.
2510
2511         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2512         (WebKit::JSNPMethod::create):
2513         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2514         (WebKit::JSNPMethod::createStructure):
2515         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2516         (WebKit::JSNPObject::create):
2517         * WebProcess/Plugins/Netscape/JSNPObject.h:
2518         (WebKit::JSNPObject::createStructure):
2519
2520 2011-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2521
2522         REGRESSION(r94274): FormManagerTest.PreviewForm and FillFormNonEmptyField fail on chromium
2523         https://bugs.webkit.org/show_bug.cgi?id=67453
2524
2525         Reviewed by Kent Tamura.
2526
2527         Add symbols for internals.
2528
2529         * win/WebKit2.def:
2530         * win/WebKit2CFLite.def:
2531
2532 2011-09-06  Wajahat Siddiqui  <mdwajahatali.siddiqui@motorola.com>
2533
2534         [GTK] Use soup_session_add_feature_by_type uniformly in WebKit2.
2535         https://bugs.webkit.org/show_bug.cgi?id=67593
2536
2537         Reviewed by Martin Robinson.
2538
2539         Using soup_session_add_feature_by_type for adding all soup features 
2540         instead of adding using GRefPtr.
2541
2542         * WebProcess/gtk/WebProcessMainGtk.cpp:
2543         (WebKit::WebProcessMainGtk):
2544
2545 2011-09-05  Balazs Kelemen  <kbalazs@webkit.org>
2546
2547         [Qt][WK2] Add pixel test support
2548         https://bugs.webkit.org/show_bug.cgi?id=66283
2549
2550         Reviewed by Andreas Kling.
2551
2552         * Shared/API/c/qt/WKImageQt.cpp: Added.
2553         (WKImageCreateQImage):  C style (private) API to get the contents of the backing
2554         store as an image.
2555         * Shared/API/c/qt/WKImageQt.h: Added.
2556         * Shared/qt/ShareableBitmapQt.cpp:
2557         (WebKit::ShareableBitmap::createImage): Typo. Remove useless ifdef.
2558         * WebKit2API.pri:
2559
2560 2011-09-05  Andras Becsi  <andras.becsi@nokia.com>
2561
2562         [Qt][WK2] Fix the build
2563
2564         Rubber-stamped by Csaba Osztrogonác.
2565
2566         * DerivedSources.pro: Add missing PluginProcessConnection.messages.in after r94456.
2567
2568 2011-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2569
2570         Unreviewed, rolling out r94473.
2571         http://trac.webkit.org/changeset/94473
2572         https://bugs.webkit.org/show_bug.cgi?id=67547
2573
2574         Putting http://trac.webkit.org/changeset/94454 back in as
2575         http://trac.webkit.org/changeset/94472 fixed the problem
2576         (Requested by msaboff on #webkit).
2577
2578         * UIProcess/API/C/WKContext.cpp:
2579         (WKContextGarbageCollectJavaScriptObjects):
2580         * UIProcess/API/C/WKContext.h:
2581         * UIProcess/WebContext.cpp:
2582         (WebKit::WebContext::garbageCollectJavaScriptObjects):
2583         * UIProcess/WebContext.h:
2584         * WebProcess/WebProcess.cpp:
2585         (WebKit::WebProcess::garbageCollectJavaScriptObjects):
2586         * WebProcess/WebProcess.h:
2587         * WebProcess/WebProcess.messages.in:
2588
2589 2011-09-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2590
2591         Unreviewed, rolling out r94454.
2592         http://trac.webkit.org/changeset/94454
2593         https://bugs.webkit.org/show_bug.cgi?id=67546
2594
2595         "Broke Windows and SnowLeopard, also no reply on the bug."
2596         (Requested by jchaffraix on #webkit).
2597
2598         * UIProcess/API/C/WKContext.cpp:
2599         * UIProcess/API/C/WKContext.h:
2600         * UIProcess/WebContext.cpp:
2601         * UIProcess/WebContext.h:
2602         * WebProcess/WebProcess.cpp:
2603         * WebProcess/WebProcess.h:
2604         * WebProcess/WebProcess.messages.in:
2605
2606 2011-09-02  Michael Saboff  <msaboff@apple.com>
2607
2608         Fixed release build by removing #ifndef NDEBUG to
2609         allow definition of gcController().
2610
2611         Rubber-stamp by Sam Weinig.
2612
2613         * WebProcess/WebProcess.cpp:
2614
2615 2011-09-02  Anders Carlsson  <andersca@apple.com>
2616
2617         NPN_SetException doesn't work with OOP plug-ins
2618         https://bugs.webkit.org/show_bug.cgi?id=67524
2619
2620         Reviewed by Sam Weinig.
2621
2622         * DerivedSources.make:
2623         Add PluginProcessConnection.messages.in.
2624
2625         * GNUmakefile.am:
2626         Add generated files.
2627
2628         * Platform/CoreIPC/MessageID.h:
2629         Add MessageClassPluginProcessConnection.
2630
2631         * PluginProcess/PluginProcess.cpp:
2632         (WebKit::PluginProcess::initialize):
2633         Set the set exception function.
2634
2635         * PluginProcess/WebProcessConnection.cpp:
2636         (WebKit::ConnectionStack::current):
2637         (WebKit::ConnectionStack::CurrentConnectionPusher::CurrentConnectionPusher):
2638         (WebKit::ConnectionStack::CurrentConnectionPusher::~CurrentConnectionPusher):
2639         Add a helper class for managing a stack of CoreIPC connections, along with a RAII
2640         object to push/pop connections onto it.
2641
2642         (WebKit::connectionStack):
2643         Add getter.
2644
2645         (WebKit::WebProcessConnection::setGlobalException):
2646         Get the current connection and send a PluginProcessConnection::SetException message to it.
2647
2648         (WebKit::WebProcessConnection::didReceiveMessage):
2649         (WebKit::WebProcessConnection::didReceiveSyncMessage):
2650         Create connection pushers.
2651
2652         * PluginProcess/WebProcessConnection.h:
2653         Add setGlobalException.
2654
2655         * WebKit2.pro:
2656         * WebKit2.xcodeproj/project.pbxproj:
2657         Add new files.
2658
2659         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2660         (WebKit::NetscapePlugin::setSetExceptionFunction):
2661         New function for setting the 'setException' function.
2662
2663         (WebKit::NetscapePlugin::setException):
2664         Call the 'setException' function.
2665
2666         * WebProcess/Plugins/PluginProcessConnection.cpp:
2667         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
2668         Call the message receiver function.
2669
2670         (WebKit::PluginProcessConnection::setException):
2671         Call the NPRuntimeObjectMap.
2672         
2673         * WebProcess/Plugins/PluginProcessConnection.messages.in:
2674         Add new messages file.
2675
2676         * WebProcess/WebPage/WebPage.cpp:
2677         (WebKit::WebPage::createPlugin):
2678         When not using the plug-in process, make sure to call NetscapePlugin::setSetExceptionFunction.
2679
2680 2011-09-02  Ada Chan  <adachan@apple.com>
2681
2682         Add WKContextGarbageCollectJavaScriptObjects() which does a garbage collection in the WebProcess
2683         https://bugs.webkit.org/show_bug.cgi?id=67526
2684
2685         Reviewed by Darin Adler.
2686
2687         * UIProcess/API/C/WKContext.cpp:
2688         (WKContextGarbageCollectJavaScriptObjects):
2689         * UIProcess/API/C/WKContext.h:
2690         * UIProcess/WebContext.cpp:
2691         (WebKit::WebContext::garbageCollectJavaScriptObjects): Send a message to WebProcess to garbage collect JS objects.
2692         * UIProcess/WebContext.h:
2693         * WebProcess/WebProcess.cpp:
2694         (WebKit::WebProcess::garbageCollectJavaScriptObjects): Call GCController::garbageCollectNow().
2695         * WebProcess/WebProcess.h:
2696         * WebProcess/WebProcess.messages.in: Add GarbageCollectJavaScriptObjects message.
2697
2698 2011-09-02  Anders Carlsson  <andersca@apple.com>
2699
2700         Remove plug-in paths from web process sandbox
2701         https://bugs.webkit.org/show_bug.cgi?id=67518
2702
2703         Reviewed by Adam Roben.
2704
2705         Plug-ins are never accessed from the web process, so remove plug-in paths from the sandbox profile.
2706
2707         * WebProcess/com.apple.WebProcess.sb:
2708
2709 2011-09-02  Anders Carlsson  <andersca@apple.com>
2710
2711         Assertion/crash when running netscape-plugin-property-access-exception.html test
2712         https://bugs.webkit.org/show_bug.cgi?id=67517
2713
2714         Reviewed by Adam Roben.
2715
2716         Make sure to initialize the NPVariant in case the plug-in returns true from NP_GetProperty,
2717         but doesn't set the result NPVariant to anything.
2718
2719         * Shared/Plugins/NPObjectMessageReceiver.cpp:
2720         (WebKit::NPObjectMessageReceiver::getProperty):
2721
2722 2011-09-02  Anders Carlsson  <andersca@apple.com>
2723
2724         The private browsing state isn't saved when it changes
2725         https://bugs.webkit.org/show_bug.cgi?id=67508
2726
2727         Reviewed by Sam Weinig.
2728
2729         Store the new private browsing state so subsequent queries for it
2730         will return the right value.
2731
2732         * PluginProcess/PluginControllerProxy.cpp:
2733         (WebKit::PluginControllerProxy::privateBrowsingStateChanged):
2734
2735 2011-09-02  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
2736
2737         [WK2] Anchor elements doesn't get focus on TAB key press.
2738         https://bugs.webkit.org/show_bug.cgi?id=66949
2739
2740         Reviewed by Adam Roben.
2741
2742         Setting the default property value of TabsToLinks to true
2743         only for GTK platform since Win & Mac platforms doesn't want 
2744         it to be set to true by default.
2745
2746         * Shared/WebPreferencesStore.h:
2747         Set the default value of key TabsToLinks to true for GTK platform only.
2748
2749 2011-09-02  Balazs Kelemen  <kbalazs@webkit.org>
2750
2751         [Qt][WK2] Cannot gathering glyph page statistics
2752         https://bugs.webkit.org/show_bug.cgi?id=67475
2753
2754         Rubber stamped by Csaba Osztrogonác.
2755
2756         Fix Qt WK2 build without having QRAWFONT.
2757
2758         * WebProcess/WebProcess.cpp:
2759         (WebKit::WebProcess::getWebCoreStatistics):
2760
2761 2011-09-02  Mark Rowe  <mrowe@apple.com>
2762
2763         <http://webkit.org/b/67467> WebProcessProxy::secItemCopyMatching / WebProcessProxy::secItemAdd
2764         leak the results of the APIs they wrap.
2765
2766         Reviewed by Dan Bernstein.
2767
2768         * UIProcess/mac/WebProcessProxyMac.mm:
2769         (WebKit::WebProcessProxy::secItemCopyMatching): Adopt the result of SecItemCopyMatching in to a
2770         RetainPtr to ensure it gets released at the appropriate time.
2771         (WebKit::WebProcessProxy::secItemAdd): Ditto for SecItemAdd.
2772
2773 2011-09-01  Ada Chan  <adachan@apple.com>
2774
2775         Cut down the ifdefs in WebKit::getWebCoreMemoryCacheStatistics() now that 
2776         MemoryCache::Statistics always has the xslStyleSheets field.
2777
2778         Reviewed by Darin Adler.
2779
2780         * WebProcess/WebProcess.cpp:
2781         (WebKit::getWebCoreMemoryCacheStatistics):
2782
2783 2011-09-01  Mark Hahnenberg  <mhahnenberg@apple.com>
2784
2785         Unzip initialization lists and constructors in JSCell hierarchy (4/7)
2786         https://bugs.webkit.org/show_bug.cgi?id=67174
2787
2788         Reviewed by Oliver Hunt.
2789
2790         Completed the fourth level of the refactoring to add finishCreation() 
2791         methods to all classes within the JSCell hierarchy with non-trivial 
2792         constructor bodies.
2793
2794         This primarily consists of pushing the calls to finishCreation() down 
2795         into the constructors of the subclasses of the second level of the hierarchy 
2796         as well as pulling the finishCreation() calls out into the class's corresponding
2797         create() method if it has one.  Doing both simultaneously allows us to 
2798         maintain the invariant that the finishCreation() method chain is called exactly 
2799         once during the creation of an object, since calling it any other number of 
2800         times (0, 2, or more) will cause an assertion failure.
2801
2802         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2803         (WebKit::JSNPObject::JSNPObject):
2804         (WebKit::JSNPObject::finishCreation):
2805         * WebProcess/Plugins/Netscape/JSNPObject.h:
2806
2807 2011-09-01  Ada Chan  <adachan@apple.com>
2808
2809         Gather memory cache statistics in WebProcess::getWebCoreStatistics().
2810         https://bugs.webkit.org/show_bug.cgi?id=67160
2811
2812         Reviewed by Darin Adler.
2813
2814         Encode and decode webCoreCacheStatistics data member in StatisticsData.
2815         * Shared/StatisticsData.cpp:
2816         (WebKit::StatisticsData::encode):
2817         (WebKit::StatisticsData::decode):
2818         * Shared/StatisticsData.h:
2819
2820         Convert the cache statistics data into an ImmutableArray and return it in WebContext::didGetWebCoreStatistics().
2821         * UIProcess/WebContext.cpp:
2822         (WebKit::WebContext::didGetWebCoreStatistics):
2823
2824         Store memory cache statistics into the StatisticsData object.
2825         * WebProcess/WebProcess.cpp:
2826         (WebKit::getWebCoreMemoryCacheStatistics):
2827         (WebKit::WebProcess::getWebCoreStatistics):
2828
2829 2011-09-01  Tim Horton  <timothy_horton@apple.com>
2830
2831         REGRESSION: Rendering artifacts on a rotated, pattern filled shape
2832         https://bugs.webkit.org/show_bug.cgi?id=53055
2833         <rdar://problem/8910917>
2834
2835         Reviewed by Simon Fraser.
2836
2837         Introduce wkCGPatternCreateWithImageAndTransform.
2838
2839         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
2840         (InitWebCoreSystemInterface):
2841
2842 2011-09-01  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
2843
2844         [Qt] TouchWebView crashes with segmentation fault
2845         https://bugs.webkit.org/show_bug.cgi?id=67308
2846
2847         Reviewed by Benjamin Poulain.
2848
2849         If you instantiate TouchWebView element with height and width in a qml file and
2850         load a url it crashes.
2851         The functions setWidth() and setHeight() are called sequentially therefore it can happen
2852         that computeViewportAttributes was called with a size like (width, 0) breaking the
2853         assumption of the function that the size is valid. The patch makes sure we compute the
2854         viewport when both height and width are valid.
2855
2856         * UIProcess/API/qt/qtouchwebview.cpp:
2857         (QTouchWebViewPrivate::updateViewportConstraints):
2858         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_load.qml: Added.
2859         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadNegativeSizeView.qml: Added.
2860         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadZeroSizeView.qml: Added.
2861         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2862
2863 2011-09-01  Ada Chan  <adachan@apple.com>
2864
2865         Gather JavaScript, FastMalloc, icon, font, and glyph page statistics in WebProcess::getWebCoreStatistics().
2866         https://bugs.webkit.org/show_bug.cgi?id=67160
2867
2868         Reviewed by Darin Adler.
2869
2870         Encode and decode the data members in StatisticsData.
2871         * Shared/StatisticsData.cpp:
2872         (WebKit::StatisticsData::encode):
2873         (WebKit::StatisticsData::decode):
2874         (WebKit::StatisticsData::StatisticsData):
2875
2876         Add three data members to StatisticsData:
2877         - statisticsNumbers: Map containing statistics values that are numbers, mapped by their names, such as 
2878         JavaScriptObjectsCount, CachedFontDataCount, etc.
2879         - javaScriptProtectedObjectTypeCounts
2880         - javaScriptObjectTypeCounts
2881         * Shared/StatisticsData.h:
2882
2883         Create a WK::Dictionary containing statistics values mapped by their names and return that dictionary
2884         in WebContext::didGetWebCoreStatistics().
2885         * UIProcess/WebContext.cpp:
2886         (WebKit::createDictionaryFromHashMap):
2887         (WebKit::WebContext::didGetWebCoreStatistics):
2888
2889         Package JavaScript, FastMalloc, icon, font, and glyph page statistics into a StatisticsData object
2890         and send it to the UIProcess.
2891         * WebProcess/WebProcess.cpp:
2892         (WebKit::fromCountedSetToHashMap):
2893         (WebKit::WebProcess::getWebCoreStatistics):
2894
2895 2011-09-01  Xan Lopez  <xlopez@igalia.com>
2896
2897         [GTK] Add XRender lib dependencies explicitly
2898
2899         Reviewed by Philippe Normand.
2900
2901         This is needed when using the GNU/Gold linker, since we use
2902         XRender directly.
2903
2904         * GNUmakefile.am:
2905
2906 2011-08-31  Anders Carlsson  <andersca@apple.com>
2907
2908         Jagged text shown in find-in-page highlight
2909         https://bugs.webkit.org/show_bug.cgi?id=67347
2910         <rdar://problem/9870444>
2911
2912         Reviewed by Dan Bernstein.
2913
2914         When painting each text line in the find indicator, make sure to clip it against
2915         the text rect and not paint the entire rect over and over.
2916
2917         * UIProcess/FindIndicator.cpp:
2918         (WebKit::FindIndicator::draw):
2919
2920 2011-08-31  Beth Dakin  <bdakin@apple.com>
2921
2922         https://bugs.webkit.org/show_bug.cgi?id=67322
2923         Re-name overrideBackingScaleFactor
2924
2925         Reviewed by John Sullivan.
2926
2927         API is now WKPageSetCustomBackingScaleFactor() and WKPageGetBackingScaleFactor() 
2928         which returns the custom scale factor if one was set, and the intrinsic scale 
2929         factor otherwise. 
2930         * UIProcess/API/C/WKPage.cpp:
2931         (WKPageGetBackingScaleFactor):
2932         (WKPageSetCustomBackingScaleFactor):
2933         * UIProcess/API/C/WKPage.h:
2934
2935         Re-named _deviceScaleFactor to _intrinsicDeviceScaleFactor since it only ever 
2936         refers to the intrinsic value.
2937         * UIProcess/API/mac/WKView.mm:
2938         (-[WKView viewDidMoveToWindow]):
2939         (-[WKView _windowDidChangeResolution:]):
2940         (-[WKView _intrinsicDeviceScaleFactor]):
2941
2942         WebPageProxy stores both the customDeviceScaleFactor and the 
2943         intrinsicDeviceScaleFactor. deviceScaleFactor() returns the appropriate value that 
2944         should be the one used. 
2945         * UIProcess/WebPageProxy.cpp:
2946         (WebKit::WebPageProxy::WebPageProxy):
2947         (WebKit::WebPageProxy::setIntrinsicDeviceScaleFactor):
2948         (WebKit::WebPageProxy::deviceScaleFactor):
2949         (WebKit::WebPageProxy::setCustomDeviceScaleFactor):
2950         (WebKit::WebPageProxy::creationParameters):
2951         * UIProcess/WebPageProxy.h:
2952
2953 2011-08-31  Anders Carlsson  <andersca@apple.com>
2954
2955         REGRESSION(r93902): Can't open external links on gmail
2956         https://bugs.webkit.org/show_bug.cgi?id=67234
2957         <rdar://problem/10053636>
2958
2959         Reviewed by Alexey Proskuryakov.
2960
2961         * Shared/cf/ArgumentCodersCF.cpp:
2962         (CoreIPC::decode):
2963         If we encounter an empty URL string, create an empty url by using NSURL, just
2964         like we do in WebCore when converting an empty KURL to an NSURL.
2965
2966         * WebKit2.xcodeproj/project.pbxproj:
2967         Compile ArgumentCodersCF.cpp as Objective-C++ for now.
2968
2969 2011-08-30  Beth Dakin  <bdakin@apple.com>
2970
2971         https://bugs.webkit.org/show_bug.cgi?id=67150
2972         Would like API to use a custom device scale factor for a particular WebView/WKView
2973         -and corresponding-
2974         <rdar://problem/10041016>
2975
2976         Reviewed by Darin Adler.
2977
2978         New API is setOverrideBackingScaleFactor() on WKPage
2979         * UIProcess/API/C/WKPage.cpp:
2980         (WKPageGetOverrideBackingScaleFactor):
2981         (WKPageSetOverrideBackingScaleFactor):
2982         * UIProcess/API/C/WKPage.h:
2983         * UIProcess/WebPageProxy.cpp:
2984         (WebKit::WebPageProxy::WebPageProxy):
2985         (WebKit::WebPageProxy::deviceScaleFactor):
2986         (WebKit::WebPageProxy::setOverrideBackingScaleFactor):
2987         * UIProcess/WebPageProxy.h:
2988         (WebKit::WebPageProxy::overrideBackingScaleFactor):
2989
2990 2011-08-30  Aaron Colwell  <acolwell@chromium.org>
2991
2992         Add MediaSource API to HTMLMediaElement
2993         https://bugs.webkit.org/show_bug.cgi?id=64731
2994
2995         Reviewed by Eric Carlson.
2996
2997         * Configurations/FeatureDefines.xcconfig:
2998
2999 2011-08-30  Ada Chan  <adachan@apple.com>
3000
3001         Laying some groundwork to fetch performance statistics from WebProcess.
3002         https://bugs.webkit.org/show_bug.cgi?id=67160
3003
3004         Reviewed by Darin Adler.
3005
3006         Add WKContextGetStatistics() which sends a message to WebProcess to fetch the performance statistics.
3007         * UIProcess/API/C/WKContext.cpp:
3008         (WKContextGetStatistics):
3009         * UIProcess/API/C/WKContext.h:
3010         * UIProcess/WebContext.cpp:
3011         (WebKit::WebContext::~WebContext):
3012         (WebKit::WebContext::getWebCoreStatistics):
3013         (WebKit::WebContext::didGetWebCoreStatistics):
3014         * UIProcess/WebContext.h:
3015         * UIProcess/WebContext.messages.in: Add the DidGetWebCoreStatistics message that WebProcess can send when it has
3016         the performance statistics ready.
3017
3018         Add WebProcess::getWebCoreStatistics().  Currently it just sends back an empty StatisticsData object.
3019         It will gather the performance statistics to store in the StatisticsData object in a future patch.
3020         * WebProcess/WebProcess.cpp:
3021         (WebKit::WebProcess::getWebCoreStatistics):
3022         * WebProcess/WebProcess.h:
3023         * WebProcess/WebProcess.messages.in:
3024
3025         Add the skeleton for StatisticsData.
3026         * Scripts/webkit2/messages.py:
3027         * Shared/StatisticsData.cpp: Added.
3028         (WebKit::StatisticsData::encode):
3029         (WebKit::StatisticsData::decode):
3030         (WebKit::StatisticsData::StatisticsData):
3031         * Shared/StatisticsData.h: Added.
3032
3033         Add StatisticsData.h/cpp to project.
3034         * CMakeLists.txt:
3035         * GNUmakefile.am:
3036         * WebKit2.pro:
3037         * WebKit2.xcodeproj/project.pbxproj:
3038         * win/WebKit2.vcproj:
3039
3040 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
3041
3042         DumpRenderTree should begin each test with an empty cookie store
3043         https://bugs.webkit.org/show_bug.cgi?id=63545
3044         <rdar://problem/5666907>
3045
3046         Reviewed by Darin Adler.
3047
3048         * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp:
3049         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
3050         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
3051         Updated to use currentCFHTTPCookieStorage() instead of privateBrowsingCookieStorage().
3052
3053         * WebProcess/Cookies/mac/WebCookieManagerMac.mm:
3054         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
3055         There is no no need to access cookie storage through session manually - we already have code
3056         for that in WebCore.
3057
3058         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3059         (WKBundleSwitchNetworkLoaderToNewTestingSession):
3060         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
3061         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3062         (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession):
3063         * WebProcess/InjectedBundle/InjectedBundle.h:
3064         Exposed bundle SPI to use a private default session. It's separate from private browsing,
3065         because some tests enable the latter, and we don't want to mix them up.
3066
3067         * WebProcess/WebPage/mac/WebPageMac.mm:
3068         (WebKit::WebPage::platformHasLocalDataForURL):
3069         (WebKit::cachedResponseForURL):
3070         Updated to use currentStorageSession() instead of privateBrowsingStorageSession().
3071
3072         * WebProcess/win/WebProcessWin.cpp: (WebKit::WebProcess::platformInitializeWebProcess):
3073         ResourceHandle::setDefaultStorageSession() no longer steals a reference, so retain it properly.
3074
3075 2011-08-30  Alexis Menard  <alexis.menard@openbossa.org>
3076
3077         [Qt][WK2] Make mouse over work again for QDesktopWebView.
3078         https://bugs.webkit.org/show_bug.cgi?id=67200
3079
3080         Reviewed by Noam Rosenthal.
3081
3082         The API has changed after QGraphicsView, SceneGraph sends
3083         QHoverEvents now.
3084
3085         * UIProcess/qt/qdesktopwebpageproxy.cpp:
3086         (QDesktopWebPageProxy::handleEvent):
3087         (QDesktopWebPageProxy::handleHoverMoveEvent):
3088         * UIProcess/qt/qdesktopwebpageproxy.h:
3089
3090 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
3091
3092         The unused ScrollView* argument can and should be removed from
3093         scrollRectIntoView.
3094         https://bugs.webkit.org/show_bug.cgi?id=67117
3095
3096         Reviewed by Darin Adler.
3097
3098         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3099         (WebKit::WebChromeClient::scrollRectIntoView):
3100         * WebProcess/WebCoreSupport/WebChromeClient.h:
3101
3102 2011-08-29  Ryosuke Niwa  <rniwa@webkit.org>
3103
3104         Another Windows build fix after r94047.
3105
3106         * win/WebKit2.def:
3107         * win/WebKit2CFLite.def:
3108
3109 2011-08-29  Ryosuke Niwa  <rniwa@webkit.org>
3110
3111         Export more symbols for r94038.
3112
3113         * win/WebKit2.def:
3114         * win/WebKit2CFLite.def:
3115
3116 2011-08-29  Ryosuke Niwa  <rniwa@webkit.org>
3117
3118         Windows build fix for r94038.
3119
3120         * win/WebKit2.def:
3121         * win/WebKit2CFLite.def:
3122
3123 2011-08-29  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3124
3125
3126         [Qt] QTouchWebView url property test missing
3127         https://bugs.webkit.org/show_bug.cgi?id=67159
3128
3129         Reviewed by Noam Rosenthal.
3130
3131         Added qml test case to check url property of QTouchWebView. Since url is a readonly property, we make sure that it's set after load() is called.
3132
3133         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml:
3134
3135 2011-08-29  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3136
3137         [Qt] QDesktopWebView url property test missing
3138         https://bugs.webkit.org/show_bug.cgi?id=67155
3139
3140         Reviewed by Noam Rosenthal.
3141
3142         Added qml test case to check url property. Since url is a readonly property, we make sure that it's set after load() is called.
3143
3144         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml:
3145
3146 2011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
3147
3148         Unreviewed, rolling out r93987, r93992, r93995, r93998, and
3149         r93999.
3150         http://trac.webkit.org/changeset/93987
3151         http://trac.webkit.org/changeset/93992
3152         http://trac.webkit.org/changeset/93995
3153         http://trac.webkit.org/changeset/93998
3154         http://trac.webkit.org/changeset/93999
3155         https://bugs.webkit.org/show_bug.cgi?id=67147
3156
3157         Many failing tests (Requested by ap on #webkit).
3158
3159         * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp:
3160         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
3161         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
3162         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3163         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
3164         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3165         * WebProcess/InjectedBundle/InjectedBundle.h:
3166         * WebProcess/win/WebProcessWin.cpp:
3167         (WebKit::WebProcess::platformInitializeWebProcess):
3168
3169 2011-08-26  Martin Robinson  <mrobinson@igalia.com>
3170
3171         Reviewed by Xan Lopez.
3172
3173         [GTK] Build WebKit2 unconditionally
3174         https://bugs.webkit.org/show_bug.cgi?id=62749
3175
3176         Build WebKit2 by default. This will make the bots build it and catch
3177         build errors when they occur.
3178
3179         * GNUmakefile.am: Enable WebKit2 by default, but remove references to the WebKit2
3180         PC file, which should not be shipped until WebKit2 is actually shipped officially.
3181
3182 2011-08-29  Alexey Proskuryakov  <ap@apple.com>
3183
3184         Windows build fix.
3185
3186         * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp:
3187         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
3188         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
3189         Updated for new function name and signature: currentCFHTTPCookieStorage().
3190
3191 2011-08-26  Alexey Proskuryakov  <ap@apple.com>
3192
3193         DumpRenderTree should begin each test with an empty cookie store
3194         https://bugs.webkit.org/show_bug.cgi?id=63545
3195         <rdar://problem/5666907>
3196
3197         Reviewed by Darin Adler.
3198
3199         * WebProcess/win/WebProcessWin.cpp: (WebKit::WebProcess::platformInitializeWebProcess):
3200         ResourceHandle::setDefaultStorageSession() no longer steals a reference, so retain it properly.
3201
3202         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3203         (WKBundleUsePrivateSessionForNetworkLoading):
3204         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
3205         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3206         (WebKit::InjectedBundle::usePrivateSessionForNetworkLoading):
3207         * WebProcess/InjectedBundle/InjectedBundle.h:
3208         Exposed bundle SPI to use a private default session. It's separate from private browsing,
3209         because some tests enable the latter, and we don't want to mix them up.
3210
3211 2011-08-29  Chris Marrin  <cmarrin@apple.com>
3212
3213         Fixed a build problem caused by http://trac.webkit.org/changeset/93980
3214
3215         Unreviewed.
3216
3217         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3218
3219 2011-08-23  Chris Marrin  <cmarrin@apple.com>
3220
3221         [mac] requestAnimationFrame support for mac port
3222         https://bugs.webkit.org/show_bug.cgi?id=59146
3223
3224         Reviewed by Simon Fraser.
3225
3226         Implement requestAnimationFrame for WebKit2. Add a
3227         CFRunLoopObserver to WebPage, which runs just before
3228         the syncCompositingState RLO and calls into the 
3229         ScriptedAnimationController if scheduleAnimation() has
3230         been called.
3231
3232         * Configurations/FeatureDefines.xcconfig:
3233         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3234         (WebKit::WebChromeClient::scheduleAnimation):
3235         * WebProcess/WebCoreSupport/WebChromeClient.h:
3236         * WebProcess/WebPage/WebPage.cpp:
3237         (WebKit::WebPage::WebPage):
3238         (WebKit::WebPage::~WebPage):
3239         * WebProcess/WebPage/WebPage.h:
3240         * WebProcess/WebPage/mac/WebPageMac.mm:
3241         (WebKit::WebPage::requestAnimationFrameRunLoopObserverCallback):
3242         (WebKit::WebPage::scheduleAnimation):
3243         (WebKit::WebPage::unscheduleAnimation):
3244         * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.cpp:
3245         * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h:
3246
3247 2011-08-29  Pierre Rossi  <pierre.rossi@gmail.com>
3248
3249         [Qt] NPAPI support doesn't honor the ENABLE_NETSCAPE_PLUGIN_API define in WebKit2
3250         https://bugs.webkit.org/show_bug.cgi?id=67123
3251
3252         We could simply use the defines already in place for this.
3253
3254         Reviewed by Andreas Kling.
3255
3256         * WebKit2.pro:
3257
3258 2011-08-29  Vamshikrishna Yellenki  <vamshi@motorola.com>
3259
3260         [GTK][WK2] Compilation error in WebKit2 GTK - Revision 93953
3261         https://bugs.webkit.org/show_bug.cgi?id=67111
3262
3263         Reviewed by Martin Robinson.
3264
3265         WebKit2 GTK build error.
3266
3267         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
3268         Include <WebCore/ResourceError.h> explicitly to remove WebCore::ResourceError
3269         inclusion error.
3270
3271 2011-08-28  Balazs Kelemen  <kbalazs@webkit.org>
3272
3273         [Qt][WK2] Unreviewed build fix.
3274
3275         * UIProcess/qt/QtWebPageProxy.cpp:
3276         (QtWebPageProxy::init): Initialize the WKPageUIClient with memset
3277         to avoid missing initializer warning. The missing initializer is the
3278         result of using a version 0 WKPageUIClient while it has newer version (1).
3279         We have nothing to do with the callbacks in the new version so I voted
3280         for memset.
3281         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Include ResourceError.h.
3282
3283 2011-08-26  Sam Weinig  <sam@webkit.org>
3284
3285         Stop using custom NSErrors for WebKit2 WebErrors
3286         https://bugs.webkit.org/show_bug.cgi?id=67075
3287
3288         Reviewed by Anders Carlsson.
3289
3290         * WebProcess/WebCoreSupport/WebErrors.h:
3291         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
3292         (WebKit::createNSError):
3293         (WebKit::cancelledError):
3294         (WebKit::fileDoesNotExistError):
3295         (WebKit::blockedError):
3296         (WebKit::cannotShowURLError):
3297         (WebKit::interruptedForPolicyChangeError):
3298         (WebKit::cannotShowMIMETypeError):
3299         (WebKit::pluginWillHandleLoadError):
3300         There is no reason to use custom registered NSErrors anymore, so don't.
3301
3302 2011-08-26  Anders Carlsson  <andersca@apple.com>
3303
3304         Fix build.
3305
3306         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
3307
3308 2011-08-26  Sam Weinig  <sam@webkit.org>
3309
3310         Fold _webkit_initWithDomain into _webkit_errorWithDomain in WebKit2
3311         https://bugs.webkit.org/show_bug.cgi?id=67063
3312
3313         Reviewed by Anders Carlsson.
3314
3315         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
3316         (+[NSError _webkit_errorWithDomain:code:URL:]):
3317
3318 2011-08-26  Anders Carlsson  <andersca@apple.com>
3319
3320         Implement NPN_ScheduleTimer/NPN_UnscheduleTimer
3321         https://bugs.webkit.org/show_bug.cgi?id=67062
3322
3323         Reviewed by Sam Weinig.
3324
3325         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
3326         (WebKit::NPN_ScheduleTimer):
3327         Call NetscapePlugin::scheduleTimer.
3328
3329         (WebKit::NPN_UnscheduleTimer):
3330         Call NetscapePlugin::unscheduleTimer.
3331
3332         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3333         (WebKit::NetscapePlugin::NetscapePlugin):
3334         Initialize m_nextTimerID.
3335
3336         (WebKit::NetscapePlugin::Timer::start):
3337         Start the timer.
3338
3339         (WebKit::NetscapePlugin::Timer::stop):
3340         Stop the timer.
3341
3342         (WebKit::NetscapePlugin::Timer::timerFired):
3343         Call the right callback and unschedule the timer object if it's not a repeating timer.
3344
3345         (WebKit::NetscapePlugin::scheduleTimer):
3346         Create a new timer and start it.
3347
3348         (WebKit::NetscapePlugin::unscheduleTimer):
3349         Get the timer from the map and destroy it.
3350         
3351         (WebKit::NetscapePlugin::destroy):
3352         Destroy all timers.
3353
3354         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
3355         Add Timer class.
3356
3357 2011-08-26  Sam Weinig  <sam@webkit.org>
3358
3359         Fix typo in Connection.cpp
3360         https://bugs.webkit.org/show_bug.cgi?id=67060
3361
3362         Reviewed by Anders Carlsson.
3363
3364         * Platform/CoreIPC/Connection.cpp:
3365         (CoreIPC::Connection::waitForSyncReply):
3366         We want timedOut, not timeout.  There is not a current way to cause this
3367         to be an issue. This issue was caught by the Clang Static Analyzer.
3368
3369 2011-08-26  Alice Liu  <alice.liu@apple.com>
3370
3371         https://bugs.webkit.org/show_bug.cgi?id=66823
3372         Add the request info to the WebPageProxy::CreateNewPage message
3373
3374         Reviewed by Anders Carlsson.
3375
3376         Update function declarations with additional ResourceRequest parameter:
3377         * UIProcess/API/C/WKPage.h:
3378         * UIProcess/WebPageProxy.cpp:
3379         (WebKit::WebPageProxy::createNewPage):
3380         * UIProcess/WebPageProxy.h:
3381         * UIProcess/WebPageProxy.messages.in:
3382         * UIProcess/WebUIClient.cpp:
3383         (WebKit::WebUIClient::createNewPage):
3384         * UIProcess/WebUIClient.h:
3385
3386         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3387         (WebKit::WebChromeClient::createWindow): 
3388         Pass the ResourceRequest within the FrameLoadRequest.
3389
3390 2011-08-26  Alexis Menard  <alexis.menard@openbossa.org>
3391
3392         [Qt][WK2]REGRESSION(r93784): It made many tests crash
3393         https://bugs.webkit.org/show_bug.cgi?id=66958
3394
3395         Reviewed by Anders Carlsson.
3396
3397         Don't try to make sure the WebContext is deleted, for now the leak
3398         is intended and when multiple processes per context will be supported
3399         this leak should be fixed. This was the cause of DRT crashing on the bot,
3400         the context was deleted after the first test, letting other tests with nothing
3401         but a bad context.
3402
3403         * UIProcess/qt/QtWebPageProxy.cpp:
3404         (QtWebPageProxy::~QtWebPageProxy):
3405
3406 2011-08-26  Anders Carlsson  <andersca@apple.com>
3407
3408         Fix handling of keyup events in the new Cocoa text input model
3409         https://bugs.webkit.org/show_bug.cgi?id=67045
3410
3411         Reviewed by Sam Weinig.
3412
3413         Use a counter instead of a boolean for deciding when to ignore keyup events, because
3414         if multiple keys are pressed simultaneously then we need to ignore more than one keyup event in a row.
3415
3416         Also if a keyboard event is an autorepeating event we won't get a keyup event so don't increment the counter
3417         in that case.
3418
3419         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3420         (WebKit::NetscapePlugin::NetscapePlugin):
3421         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
3422         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
3423         (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
3424
3425 2011-08-26  Jessie Berlin  <jberlin@apple.com>
3426
3427         Gut WKPageCreateSnapshotOfVisibleContent so that it can be removed later.
3428         https://bugs.webkit.org/show_bug.cgi?id=66979.
3429
3430         Removing the function altogether would break the nightlies.
3431         This patch removes the code behind it so that it is clear that
3432         WKPageCreateSnapshotOfVisibleContent should not be used, and so that the code isn't just
3433         left rotting in the tree.
3434
3435         Reviewed by Brian Weinstein.
3436
3437         * UIProcess/API/C/WKPage.cpp:
3438         (WKPageCreateSnapshotOfVisibleContent):
3439         Return 0.
3440         * UIProcess/API/C/WKPagePrivate.h:
3441         Update the comment and add a link to the bug.
3442
3443         * UIProcess/WebPageProxy.cpp:
3444         * UIProcess/WebPageProxy.h:
3445
3446         * WebProcess/WebPage/WebPage.cpp:
3447         * WebProcess/WebPage/WebPage.h:
3448         * WebProcess/WebPage/WebPage.messages.in:
3449
3450 2011-08-25  Anders Carlsson  <andersca@apple.com>
3451
3452         kNPEventStartIME doesn't work correctly for NPAPI
3453         https://bugs.webkit.org/show_bug.cgi?id=65264
3454         <rdar://problem/9996476>
3455
3456         Reviewed by Sam Weinig.
3457
3458         In order to remain compatible with older plug-ins, the updated input model won't
3459         be turned on unless a plug-in explicitly asks whether we support it. The plug-in must do
3460         this before any keyboard events have been processed.
3461
3462         * PluginProcess/mac/PluginControllerProxyMac.mm:
3463         (WebKit::PluginControllerProxy::setComplexTextInputState):
3464         Add the CoreIPC::DispatchMessageEvenWhenWaitingForSyncReply flag to this message since we want
3465         the web process to handle it while it's waiting for a reply to the PluginControllerProxy::HandleMouseEvent
3466         synchronous message.
3467
3468         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
3469         (WebKit::NPN_GetValue):
3470         Implement the logic for when to turn off the legacy Cocoa text input model support.
3471
3472         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3473         (WebKit::NetscapePlugin::NetscapePlugin):
3474         Initialize m_ignoreNextKeyUpEvent to false.
3475
3476         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
3477         Add m_ignoreNextKeyUpEvent member variable.
3478
3479         (WebKit::NetscapePlugin::hasHandledAKeyDownEvent):
3480         Add a getter.
3481
3482         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
3483         (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
3484         Don't send keydown and keyup events when complex text input is enabled in the updated model.
3485
3486 2011-08-25  Anders Carlsson  <andersca@apple.com>
3487
3488         Correctly handle events in the updated Cocoa text input model
3489         https://bugs.webkit.org/show_bug.cgi?id=67005
3490
3491         Reviewed by Sam Weinig.
3492
3493         * UIProcess/API/mac/WKTextInputWindowController.mm:
3494         (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
3495         When using the updated model, always return a string even for 'simple' characters.
3496
3497         * UIProcess/API/mac/WKView.mm:
3498         (-[WKView _tryHandlePluginComplexTextInputKeyDown:]):
3499         Only let the input method have a crack at the event in the legacy model.
3500
3501 2011-08-25  Jeff Miller  <jeffm@apple.com>
3502
3503         Move Windows-specific WebPageProxy code to WebPageProxyWin.cpp
3504         https://bugs.webkit.org/show_bug.cgi?id=67002
3505
3506         Reviewed by Brian Weinstein.
3507
3508         * UIProcess/WebPageProxy.cpp: Moved Windows-only functions to WebPageProxyWin.cpp.
3509         
3510         * UIProcess/win/WebPageProxyWin.cpp:
3511         (WebKit::WebPageProxy::firstRectForCharacterInSelectedRange): Moved from WebPageProxy.cpp.
3512         (WebKit::WebPageProxy::getSelectedText): Moved from WebPageProxy.cpp.
3513         (WebKit::WebPageProxy::gestureWillBegin): Moved from WebPageProxy.cpp.
3514         (WebKit::WebPageProxy::gestureDidScroll): Moved from WebPageProxy.cpp.
3515         (WebKit::WebPageProxy::gestureDidEnd): Moved from WebPageProxy.cpp.
3516         (WebKit::WebPageProxy::setGestureReachedScrollingLimit): Moved from WebPageProxy.cpp.
3517         (WebKit::WebPageProxy::startDragDrop): Moved from WebPageProxy.cpp.
3518         (WebKit::WebPageProxy::didChangeCompositionSelection): Moved from WebPageProxy.cpp.
3519         (WebKit::WebPageProxy::confirmComposition): Moved from WebPageProxy.cpp.