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