fe52f239714e05b15b76ff1f8230c900381f1572
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-02-11  Gavin Barraclough  <barraclough@apple.com>
2
3         PluginProcess should quit immediately if idle in response to low-memory notifications
4         https://bugs.webkit.org/show_bug.cgi?id=109103
5         <rdar://problem/12679827>
6
7         Reviewed by Brady Eidson.
8
9         PluginProcess now installs a MemoryPressureHandler for the process, providing
10         a custom callback which will call terminate if appropriate (if the plugin is not
11         currently in use).
12
13         * PluginProcess/PluginProcess.cpp:
14         (WebKit::PluginProcess::lowMemoryHandler):
15             - Custom callback to terminate if appropriate.
16         (WebKit::PluginProcess::initializeProcess):
17             - Install the MemoryPressureHandler.
18         (WebKit::PluginProcess::shouldTerminate):
19             - This method now also needs to be callable in situations where it might return false.
20         * PluginProcess/PluginProcess.h:
21         (PluginProcess):
22             - Added declaration for lowMemoryHandler.
23
24 2013-02-11  Anders Carlsson  <andersca@apple.com>
25
26         Move the PluginProcessCrashed message to PluginProcessConnectionManager
27         https://bugs.webkit.org/show_bug.cgi?id=109493
28
29         Reviewed by Andreas Kling.
30
31         This is in preparation for making PluginProcessConnectionManager a connection queue client.
32
33         * DerivedSources.make:
34         * UIProcess/Plugins/PluginProcessProxy.cpp:
35         (WebKit::PluginProcessProxy::didClose):
36         * WebKit2.xcodeproj/project.pbxproj:
37         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
38         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
39         * WebProcess/Plugins/PluginProcessConnectionManager.h:
40         (PluginProcessConnectionManager):
41         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
42         * WebProcess/WebProcess.cpp:
43         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
44         (WebKit::WebProcess::webResourceLoadScheduler):
45         * WebProcess/WebProcess.h:
46         (WebProcess):
47         * WebProcess/WebProcess.messages.in:
48
49 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
50
51         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
52         https://bugs.webkit.org/show_bug.cgi?id=109349
53
54         Reviewed by Sam Weinig.
55
56         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
57         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
58         * WebProcess/InjectedBundle/InjectedBundle.cpp:
59         * WebProcess/InjectedBundle/InjectedBundle.h:
60         (InjectedBundle):
61
62 2013-02-11  Dean Jackson  <dino@apple.com>
63
64         Snapshotted plug-in should use shadow root
65         https://bugs.webkit.org/show_bug.cgi?id=108284
66
67         Reviewed by Simon Fraser.
68
69         Take three of this commit - after rollout in r142400 and r142405.
70         We no longer have any need for plugInStartLabelImage.
71
72         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
73         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
74         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
75         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
76
77 2013-02-11  Anders Carlsson  <andersca@apple.com>
78
79         The plug-in process connection manager doesn't need to be heap allocated
80         https://bugs.webkit.org/show_bug.cgi?id=109479
81
82         Reviewed by Andreas Kling.
83
84         * WebProcess/WebProcess.cpp:
85         (WebKit::WebProcess::WebProcess):
86         (WebKit::WebProcess::pluginProcessConnectionManager):
87         (WebKit::WebProcess::pluginProcessCrashed):
88         * WebProcess/WebProcess.h:
89         (WebKit):
90         (WebProcess):
91
92 2013-02-11  Tony Chang  <tony@chromium.org>
93
94         Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
95         https://bugs.webkit.org/show_bug.cgi?id=87149
96
97         Reviewed by Simon Fraser.
98
99         * WebProcess/InjectedBundle/InjectedBundle.cpp:
100         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
101
102 2013-02-11  Claudio Saavedra  <csaavedra@igalia.com>
103
104         [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
105         https://bugs.webkit.org/show_bug.cgi?id=108459
106
107         Reviewed by Alexey Proskuryakov.
108
109         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
110         (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
111         Providers might return 0 and we will end up with a null-pointer dereference.
112         Early check against this.
113
114 2013-02-10  Sam Weinig  <sam@webkit.org>
115
116         Make the Plug-in XPCService build work even when building in Xcode
117         <rdar://problem/13011186>
118         https://bugs.webkit.org/show_bug.cgi?id=109392
119
120         Reviewed by Anders Carlsson.
121
122         * Configurations/DebugRelease.xcconfig:
123         Add a DEBUG_OR_RELEASE variable to test against.
124         * Configurations/PluginService.32.xcconfig:
125         * Configurations/PluginService.64.xcconfig:
126         In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
127         not containing the right architectures. This is ok, as these services are not used in non-production builds.
128
129         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
130         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
131         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
132         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
133         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
134         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
135         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
136         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
137         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
138         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
139         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
140         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
141         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
142         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
143         Switch off the the old idiom of defining a macro for the initializer function, and instead set
144         it in the Info.plist, so the XPCServiceBootstrapper can grab it.
145
146         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
147         (WebKit::XPCServiceEventHandler):
148         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
149         (WebKit::XPCServiceEventHandler):
150         Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
151         but also allows us to build without having linked against WebKit2.framework.
152
153         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
154         (WebKit::shouldUseXPC):
155         Re-enable using XPC for plug-ins.
156
157         * WebKit2.xcodeproj/project.pbxproj:
158         Update project.
159
160 2013-02-10  Anders Carlsson  <andersca@apple.com>
161
162         Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
163         https://bugs.webkit.org/show_bug.cgi?id=109379
164
165         Reviewed by Andreas Kling.
166
167         * UIProcess/WebProcessProxy.cpp:
168         (WebKit::WebProcessProxy::getPlugins):
169
170 2013-02-10  Kent Tamura  <tkent@chromium.org>
171
172         Unreviewed, rolling out r142347.
173         http://trac.webkit.org/changeset/142347
174         https://bugs.webkit.org/show_bug.cgi?id=108273
175
176         Because a depending change r142343 was rolled out.
177
178         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
179         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
180         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
181         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
182
183 2013-02-10  Kent Tamura  <tkent@chromium.org>
184
185         Unreviewed, rolling out r142343.
186         http://trac.webkit.org/changeset/142343
187         https://bugs.webkit.org/show_bug.cgi?id=108284
188
189         It might make inspector/profiler/selector-profiler-url.html
190         crashy.
191
192         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
193         (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
194         (WebKit):
195         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
196         (InjectedBundlePageUIClient):
197         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
198         (WebKit::WebChromeClient::plugInStartLabelImage):
199         (WebKit):
200         * WebProcess/WebCoreSupport/WebChromeClient.h:
201         (WebChromeClient):
202
203 2013-02-10  Zan Dobersek  <zdobersek@igalia.com>
204
205         [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
206         https://bugs.webkit.org/show_bug.cgi?id=109352
207
208         Reviewed by Sam Weinig.
209
210         As added for the Mac port in r142160 due to the changes in the same revision, remove
211         the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
212
213         * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
214         (WebKit::WebFullScreenManagerProxy::invalidate):
215
216 2013-02-10  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
217
218         [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
219         https://bugs.webkit.org/show_bug.cgi?id=109364
220
221         Reviewed by Simon Hausmann.
222
223         void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
224
225         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
226         (WebKit::NetscapePlugin::platformPreInitialize):
227         (WebKit):
228
229 2013-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
230
231         Unreviewed, rolling out r137328.
232         http://trac.webkit.org/changeset/137328
233         https://bugs.webkit.org/show_bug.cgi?id=109367
234
235         causes memory usage to balloon if connection queue is filling
236         faster than sending (Requested by kling on #webkit).
237
238         * Platform/CoreIPC/ArgumentEncoder.cpp:
239         (CoreIPC::ArgumentEncoder::ArgumentEncoder):
240         (CoreIPC::ArgumentEncoder::grow):
241         * Platform/CoreIPC/ArgumentEncoder.h:
242         (CoreIPC::ArgumentEncoder::buffer):
243         (ArgumentEncoder):
244
245 2013-02-08  Sam Weinig  <sam@webkit.org>
246
247         Fix ASSERT when the Web Content Process crashes
248         https://bugs.webkit.org/show_bug.cgi?id=109346
249
250         Reviewed by Simon Fraser.
251
252         * UIProcess/WebPageProxy.cpp:
253         (WebKit::WebPageProxy::processDidCrash):
254         We need to remove ourselves as a message receiver before calling out to the client, as
255         the client might want to re-add us (as Safari does).
256
257 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
258
259         Move workerThreadCount from TestRunner to WebCore Internals
260         https://bugs.webkit.org/show_bug.cgi?id=109239
261
262         Reviewed by Darin Adler.
263
264         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
265         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
266         * WebProcess/InjectedBundle/InjectedBundle.cpp:
267         * WebProcess/InjectedBundle/InjectedBundle.h:
268         (InjectedBundle):
269         * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
270
271 2013-02-08  Dean Jackson  <dino@apple.com>
272
273         Remove use of plugInStartLabelImage
274         https://bugs.webkit.org/show_bug.cgi?id=108273
275
276         Reviewed by Simon Fraser.
277
278         Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
279         and plugInStartLabelSubtitle to return the values from the client.
280         implement them.
281
282         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
283         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
284         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
285         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
286
287 2013-02-08  Dean Jackson  <dino@apple.com>
288
289         Snapshotted plug-in should use shadow root
290         https://bugs.webkit.org/show_bug.cgi?id=108284
291
292         Reviewed by Simon Fraser.
293
294         Take two of this commit! We no longer have any need for plugInStartLabelImage.
295
296         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
297         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
298         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
299         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
300
301 2013-02-08  Dean Jackson  <dino@apple.com>
302
303         Rolling out r142333 and r142337 which broke Mac Release builds.
304
305 2013-02-08  Anders Carlsson  <andersca@apple.com>
306
307         Move plug-in enumeration back to the main thread
308         https://bugs.webkit.org/show_bug.cgi?id=109337
309         <rdar://problem/12015046>
310
311         Reviewed by Andreas Kling.
312
313         Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
314         doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
315         Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
316         and have it do the enumeration.
317
318         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
319         (WebKit::getPluginInfoFromCarbonResources):
320         * UIProcess/WebProcessProxy.cpp:
321         (WebKit::WebProcessProxy::connectionWillOpen):
322         (WebKit::WebProcessProxy::connectionWillClose):
323         (WebKit::WebProcessProxy::getPlugins):
324         * UIProcess/WebProcessProxy.h:
325         (WebCore):
326         (WebProcessProxy):
327         * UIProcess/WebProcessProxy.messages.in:
328         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
329         (WebKit):
330         (WebKit::WebPlatformStrategies::populatePluginCache):
331         * WebProcess/WebProcess.cpp:
332         * WebProcess/WebProcess.h:
333         (WebProcess):
334         * WebProcess/WebProcess.messages.in:
335
336 2013-02-08  Dean Jackson  <dino@apple.com>
337
338         Snapshotted plug-in should use shadow root
339         https://bugs.webkit.org/show_bug.cgi?id=108284
340
341         Reviewed by Simon Fraser.
342
343         We no longer have any need for plugInStartLabelImage.
344
345         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
346         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
347         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
348         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
349
350 2013-02-08  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
351
352         [WK2] Fix the build on !Mac after r142314.
353         https://bugs.webkit.org/show_bug.cgi?id=109327
354
355         Reviewed by Benjamin Poulain.
356
357         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
358         (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
359         the newly-added function.
360
361         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
362         (WebKit::NetscapePlugin::platformPreInitialize):
363         (WebKit):
364
365 2013-02-07  Anders Carlsson  <andersca@apple.com>
366
367         Work around a bug in Flash where NSException objects can be released too early
368         https://bugs.webkit.org/show_bug.cgi?id=109242
369         <rdar://problem/13003470>
370
371         Reviewed by Darin Adler.
372
373         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
374         (WebKit::NetscapePluginModule::determineQuirks):
375         Set the new plug-in quirk.
376
377         * Shared/Plugins/PluginQuirks.h:
378         Add a new plug-in quirk.
379
380         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
381         (WebKit::NetscapePlugin::initialize):
382         Call platformPreInitialize.
383
384         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
385         (NetscapePlugin):
386         Add platformPreInitialize.
387
388         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
389         (WebKit::NSException_release):
390         Add new empty function.
391
392         (WebKit::NetscapePlugin::platformPreInitialize):
393         Patch -[NSException release] to be a no-op.
394
395 2013-02-08  Dean Jackson  <dino@apple.com>
396
397         Do not register autostart for plugins from file:// (or nowhere)
398         https://bugs.webkit.org/show_bug.cgi?id=108271
399
400         Reviewed by Tim Horton.
401
402         If the pageOrigin is the empty string don't add
403         it to the auto-start origin list for snapshotting.
404
405         * WebProcess/WebProcess.cpp:
406         (WebKit::WebProcess::addPlugInAutoStartOrigin):
407
408 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
409
410         Unreviewed, rolling out r142212.
411         http://trac.webkit.org/changeset/142212
412         https://bugs.webkit.org/show_bug.cgi?id=109255
413
414         Causes ASSERT(!m_installed) on launch (Requested by smfr on
415         #webkit).
416
417         * PluginProcess/PluginProcess.cpp:
418         (WebKit::PluginProcess::initializeProcess):
419         (WebKit::PluginProcess::shouldTerminate):
420         * PluginProcess/PluginProcess.h:
421         (PluginProcess):
422         * WebProcess/WebProcess.cpp:
423         (WebKit::WebProcess::initializeWebProcess):
424
425 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
426
427         [EFL][WK2] Remove dead code after r142169
428         https://bugs.webkit.org/show_bug.cgi?id=109251
429
430         Reviewed by Benjamin Poulain.
431
432         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
433         (WebKit::WebChromeClient::contentsSizeChanged):
434
435 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
436
437         PluginProcess should quit immediately if idle in response to low-memory notifications
438         https://bugs.webkit.org/show_bug.cgi?id=109103
439         <rdar://problem/12679827>
440
441         Reviewed by Darin Adler.
442
443         PluginProcess now initializes a MemoryPressureHandler for the process, providing
444         a custom callback which will call terminate if appropriate (if the plugin is not
445         currently in use).
446
447         * PluginProcess/PluginProcess.cpp:
448         (WebKit::PluginProcess::lowMemoryHandler):
449             - Custom callback to terminate if appropriate.
450         (WebKit::PluginProcess::initializeProcess):
451             - Initialize the MemoryPressureHandler.
452         (WebKit::PluginProcess::shouldTerminate):
453             - This method now also needs to be callable in situations where it might return false.
454         * PluginProcess/PluginProcess.h:
455         (PluginProcess):
456             - Added declaration for lowMemoryHandler.
457         * WebProcess/WebProcess.cpp:
458         (WebKit::WebProcess::initializeWebProcess):
459             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
460
461 2013-02-07  KwangYong Choi  <ky0.choi@samsung.com>
462
463         Fix build warning after r142017
464         https://bugs.webkit.org/show_bug.cgi?id=109119
465
466         Reviewed by Alexey Proskuryakov.
467
468         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
469
470         * UIProcess/WebPageProxy.cpp:
471         (WebKit::WebPageProxy::getPluginPath):
472
473 2013-02-07  Martin Robinson  <mrobinson@igalia.com>
474
475         [GTK] Cleanup command-line defines
476         https://bugs.webkit.org/show_bug.cgi?id=109213
477
478         Reviewed by Xan Lopez.
479
480         * GNUmakefile.am:  Remove references to flags that are now
481         provided by autotoolsconfig.h.
482
483 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
484
485         Move pauseAnimation/pauseTransition from TestRunner to Internals
486         https://bugs.webkit.org/show_bug.cgi?id=109107
487
488         Reviewed by Anders Carlsson.
489
490         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
491         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
492         * WebProcess/WebPage/WebFrame.cpp:
493         * WebProcess/WebPage/WebFrame.h:
494         (WebFrame):
495
496 2013-02-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
497
498         [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
499         https://bugs.webkit.org/show_bug.cgi?id=109165
500
501         Reviewed by Anders Carlsson.
502
503         Removed non coordinated graphics code path from WK2 EFL as it was not used by
504         anyone and caused a lot of preprocessor macros in the code making it less readable.
505
506         * UIProcess/API/efl/EvasGLContext.cpp:
507         * UIProcess/API/efl/EvasGLContext.h:
508         (WebKit::EvasGLContext::context):
509         * UIProcess/API/efl/EvasGLSurface.cpp:
510         * UIProcess/API/efl/EvasGLSurface.h:
511         (WebKit::EvasGLSurface::surface):
512
513             Removed also 'inline' and 'const' keywords from functions declaration,
514             as both EvasGLContext::context() and EvasGLSurface::surface()
515             are defined inside their classes and return mutable pointer.
516
517         * UIProcess/API/efl/EwkView.cpp:
518         (EwkView::EwkView):
519         (EwkView::transformFromScene):
520         (EwkView::transformToScreen):
521         (EwkView::coordinatedGraphicsScene):
522         (EwkView::displayTimerFired):
523         (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
524         (EwkView::exitAcceleratedCompositingMode):
525         (EwkView::handleEvasObjectCalculate):
526         (EwkView::takeSnapshot):
527         * UIProcess/API/efl/EwkView.h:
528         (WebCore):
529         (EwkView):
530         * UIProcess/API/efl/SnapshotImageGL.cpp:
531         (getImageSurfaceFromFrameBuffer):
532         * UIProcess/API/efl/SnapshotImageGL.h:
533         * UIProcess/API/efl/ewk_view.cpp:
534         * UIProcess/efl/PageClientBase.cpp:
535         (WebKit::PageClientBase::setViewNeedsDisplay):
536         (WebKit::PageClientBase::updateAcceleratedCompositingMode):
537         * UIProcess/efl/PageClientBase.h:
538         (PageClientBase):
539         * UIProcess/efl/PageClientDefaultImpl.cpp:
540         (WebKit::PageClientDefaultImpl::didCommitLoad):
541         (WebKit::PageClientDefaultImpl::updateViewportSize):
542         (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
543         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
544         (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
545         * UIProcess/efl/PageClientDefaultImpl.h:
546         (PageClientDefaultImpl):
547         * UIProcess/efl/PageClientLegacyImpl.cpp:
548         (WebKit::PageClientLegacyImpl::didCommitLoad):
549         (WebKit::PageClientLegacyImpl::updateViewportSize):
550         (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
551         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
552         (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
553         (WebKit::PageClientLegacyImpl::didRenderFrame):
554         (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
555         * UIProcess/efl/PageClientLegacyImpl.h:
556         (PageClientLegacyImpl):
557         * UIProcess/efl/PageLoadClientEfl.cpp:
558         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
559         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
560         * UIProcess/efl/PageLoadClientEfl.h:
561         (PageLoadClientEfl):
562         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
563         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
564         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
565         * UIProcess/efl/PageViewportControllerClientEfl.h:
566         * UIProcess/efl/WebInspectorProxyEfl.cpp:
567         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
568         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
569         (WebKit::WebChromeClient::contentsSizeChanged):
570
571 2013-02-06  Sam Weinig  <sam@webkit.org>
572
573         Make WebPageProxy and sub-objects MessageReceivers
574         https://bugs.webkit.org/show_bug.cgi?id=108785
575
576         Reviewed by Anders Carlsson.
577
578         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
579         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
580         (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
581         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
582         (CoordinatedLayerTreeHostProxy):
583         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
584         * UIProcess/DrawingAreaProxy.cpp:
585         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
586         (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
587         (WebKit::DrawingAreaProxy::contentsRect):
588         * UIProcess/DrawingAreaProxy.h:
589         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
590         * UIProcess/DrawingAreaProxy.messages.in:
591         * UIProcess/DrawingAreaProxyImpl.cpp:
592         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
593         * UIProcess/DrawingAreaProxyImpl.h:
594         * UIProcess/WebFullScreenManagerProxy.cpp:
595         (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
596         * UIProcess/WebFullScreenManagerProxy.h:
597         (WebFullScreenManagerProxy):
598         * UIProcess/WebFullScreenManagerProxy.messages.in:
599         * UIProcess/WebInspectorProxy.cpp:
600         (WebKit::WebInspectorProxy::WebInspectorProxy):
601         (WebKit::WebInspectorProxy::invalidate):
602         * UIProcess/WebInspectorProxy.h:
603         * UIProcess/WebInspectorProxy.messages.in:
604         * UIProcess/WebPageProxy.cpp:
605         (WebKit::WebPageProxy::WebPageProxy):
606         (WebKit::WebPageProxy::reattachToWebProcess):
607         (WebKit::WebPageProxy::close):
608         (WebKit::WebPageProxy::inspector):
609         (WebKit::WebPageProxy::fullScreenManager):
610         (WebKit::WebPageProxy::processDidCrash):
611         * UIProcess/WebPageProxy.h:
612         * UIProcess/WebPageProxy.messages.in:
613         * UIProcess/WebProcessProxy.cpp:
614         (WebKit::WebProcessProxy::didReceiveMessage):
615         (WebKit::WebProcessProxy::didReceiveSyncMessage):
616         * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
617         (WebKit::WebFullScreenManagerProxy::invalidate):
618
619 2013-02-07  Zan Dobersek  <zdobersek@igalia.com>
620
621         [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
622         https://bugs.webkit.org/show_bug.cgi?id=109198
623
624         Reviewed by Martin Robinson.
625
626         * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
627         not set to anything.
628
629 2013-02-07  Kenneth Rohde Christiansen  <kenneth@webkit.org>
630
631         [WK2][EFL] Add WKView methods related to background drawing
632         https://bugs.webkit.org/show_bug.cgi?id=109159
633
634         Reviewed by Anders Carlsson.
635
636         * UIProcess/API/C/efl/WKView.cpp:
637         (WKViewSetDrawsBackground):
638         (WKViewGetDrawsBackground):
639         (WKViewSetDrawsTransparentBackground):
640         (WKViewGetDrawsTransparentBackground):
641          * UIProcess/efl/WebView.cpp:
642         (WebKit::WebView::setDrawsBackground):
643         (WebKit):
644         (WebKit::WebView::drawsBackground):
645         (WebKit::WebView::setDrawsTransparentBackground):
646         (WebKit::WebView::drawsTransparentBackground):
647         * UIProcess/efl/WebView.h:
648         (WebView):
649        * UIProcess/API/C/efl/WKView.h:
650
651             New methods added
652
653         * UIProcess/API/efl/EwkView.cpp:
654         (EwkView::EwkView):
655         (EwkView::displayTimerFired):
656         (EwkView::handleEvasObjectColorSet):
657         * UIProcess/API/efl/EwkView.h:
658         (EwkView):
659         * UIProcess/API/efl/ewk_view.cpp:
660         (ewk_view_draws_page_background_set):
661
662             Remove the unneeded m_setDrawsBackground and replace
663             it with the WKView setting.
664
665 2013-02-07  Christophe Dumez  <dchris@gmail.com>
666
667         [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
668         https://bugs.webkit.org/show_bug.cgi?id=108634
669
670         Reviewed by Alexey Proskuryakov.
671
672         Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
673         so that the test passes consistently. The issue was that the header before the
674         data includes the current date. Depending on the date, the data may start at a
675         different index in the returned string. Instead of hardcoding the data start
676         index in the test, we now use String::contains().
677
678         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
679         (PageContentsCallback):
680         (TEST_F):
681
682 2013-02-07  Gavin Peters  <gavinp@chromium.org>
683
684         Unreviewed, rolling out r142141.
685         http://trac.webkit.org/changeset/142141
686         https://bugs.webkit.org/show_bug.cgi?id=108990
687
688         Reland r142112, will update Chromium expectations and create a
689         Chromium bug instead for the crash.
690
691         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
692         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
693         * WebProcess/WebPage/DrawingAreaImpl.cpp:
694         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
695
696 2013-02-07  Gavin Peters  <gavinp@chromium.org>
697
698         Unreviewed, rolling out r142112.
699         http://trac.webkit.org/changeset/142112
700         https://bugs.webkit.org/show_bug.cgi?id=108990
701
702         The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
703
704         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
705
706         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
707         (WebKit::updateOffsetFromViewportForSelf):
708         (WebKit):
709         (WebKit::updateOffsetFromViewportForLayer):
710         (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
711         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
712         * WebProcess/WebPage/DrawingAreaImpl.cpp:
713         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
714
715 2013-02-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
716
717         [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
718         https://bugs.webkit.org/show_bug.cgi?id=108990
719
720         Reviewed by Noam Rosenthal.
721         Signed off for WebKit2 by Simon Fraser.
722
723         WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
724         don't need to traverse the tree every frame to get this information.
725
726         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
727         syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
728         and are not needed anymore.
729         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
730         * WebProcess/WebPage/DrawingAreaImpl.cpp:
731         (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
732         Coordinated Graphics.
733
734 2013-02-07  Michael Brüning  <michael.bruning@digia.com>
735
736         [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
737         https://bugs.webkit.org/show_bug.cgi?id=108473
738
739         Reviewed by Simon Hausmann.
740         Signed off for WebKit2 by Benjamin Poulain.
741
742         This patch removes the QtWebPageLoadClient and moves the functionality into the
743         QQuickWebViewPrivate as most callback methods are calling the private webview
744         indirectly anyway.
745
746         The patch also moves as much of the functionality to the C API as is possible with
747         the current C API.
748
749         * Target.pri:
750         * UIProcess/API/qt/qquickwebview.cpp:
751         (QQuickWebViewPrivate::initialize):
752         (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
753         (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
754         (QQuickWebViewPrivate::didFailLoad):
755         (QQuickWebViewPrivate::didCommitLoadForFrame):
756         (QQuickWebViewPrivate::didFinishLoadForFrame):
757         (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
758         (QQuickWebViewPrivate::didReceiveTitleForFrame):
759         (QQuickWebViewPrivate::didStartProgress):
760         (QQuickWebViewPrivate::didChangeProgress):
761         (QQuickWebViewPrivate::didFinishProgress):
762         (QQuickWebViewPrivate::didChangeBackForwardList):
763         (QQuickWebViewPrivate::setTransparentBackground):
764         (QQuickWebViewPrivate::transparentBackground):
765         (QQuickWebViewPrivate::loadProgressDidChange):
766         * UIProcess/API/qt/qquickwebview_p.h:
767         (WebKit):
768         * UIProcess/API/qt/qquickwebview_p_p.h:
769         (WebKit):
770         (QQuickWebViewPrivate):
771         * UIProcess/qt/QtWebError.cpp:
772         (WebKit::QtWebError::url):
773         * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
774         * UIProcess/qt/QtWebPageLoadClient.h: Removed.
775
776 2013-02-05  Eunmi Lee  <eunmi15.lee@samsung.com> and Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
777
778         [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
779         https://bugs.webkit.org/show_bug.cgi?id=97173
780
781         Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
782
783         Initialize and shutdown the EFL libraries in the ewk_main.cpp for
784         UIProcess and WebProcessMainEfl.cpp for WebProcess.
785
786         This allows us to shut down the libraries in a proper way, since
787         RunLoop persist until the process exits.
788
789         * UIProcess/API/efl/ewk_main.cpp:
790         (ewk_init):
791         (ewk_shutdown):
792         * WebProcess/efl/WebProcessMainEfl.cpp:
793         (WebKit::WebProcessMainEfl):
794
795 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
796
797         Unreviewed build fix.
798
799         * UIProcess/Downloads/DownloadProxyMap.cpp:
800         (WebKit::DownloadProxyMap::processDidClose):
801         m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
802
803 2013-02-07  Simon Hausmann  <simon.hausmann@digia.com>
804
805         [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
806         https://bugs.webkit.org/show_bug.cgi?id=108920
807
808         Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
809
810         Employ the pattern suggested by Jocelyn to simply implement the C
811         callbacks directly using static functions.
812
813         * Target.pri:
814         * UIProcess/API/qt/qquickwebview.cpp:
815         (toQQuickWebViewPrivate):
816         (QQuickWebViewPrivate::initialize):
817         (QQuickWebViewPrivate::didFindString):
818         (QQuickWebViewPrivate::didFailToFindString):
819         * UIProcess/API/qt/qquickwebview_p_p.h:
820         (QQuickWebViewPrivate):
821         * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
822         * UIProcess/qt/QtWebPageFindClient.h: Removed.
823
824 2013-02-03  Sam Weinig  <sam@webkit.org>
825
826         Make CustomProtocolManagerProxy a MessageReceiver
827         https://bugs.webkit.org/show_bug.cgi?id=108787
828
829         Reviewed by Anders Carlsson.
830
831         * Shared/ChildProcessProxy.cpp:
832         (WebKit::ChildProcessProxy::addMessageReceiver):
833         (WebKit::ChildProcessProxy::removeMessageReceiver):
834         (WebKit::ChildProcessProxy::dispatchMessage):
835         (WebKit::ChildProcessProxy::dispatchSyncMessage):
836         * Shared/ChildProcessProxy.h:
837         Sink the MessageReceiverMap down into the ChildProcessProxy.
838
839         * UIProcess/Downloads/DownloadProxyMap.cpp:
840         (WebKit::DownloadProxyMap::DownloadProxyMap):
841         (WebKit::DownloadProxyMap::createDownloadProxy):
842         (WebKit::DownloadProxyMap::downloadFinished):
843         (WebKit::DownloadProxyMap::processDidClose):
844         * UIProcess/Downloads/DownloadProxyMap.h:
845         Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
846
847         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
848         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
849         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
850         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
851         Convert to a MessageReceiver.
852
853         * UIProcess/Network/NetworkProcessProxy.cpp:
854         (WebKit::NetworkProcessProxy::createDownloadProxy):
855         (WebKit::NetworkProcessProxy::didReceiveMessage):
856         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
857         * UIProcess/Network/NetworkProcessProxy.h:
858         * UIProcess/WebProcessProxy.cpp:
859         (WebKit::WebProcessProxy::didReceiveMessage):
860         (WebKit::WebProcessProxy::didReceiveSyncMessage):
861         (WebKit::WebProcessProxy::createDownloadProxy):
862         * UIProcess/WebProcessProxy.h:
863         (WebProcessProxy):
864         Remove direct chaining to CustomProtocolManagerProxy.
865
866 2013-02-06  Enrica Casucci  <enrica@apple.com>
867
868         ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
869         https://bugs.webkit.org/show_bug.cgi?id=109105.
870
871         Reviewed by Tim Horton.
872
873         In r140769 we changed the way the overlay is destroyed,
874         therefore the assert is no longer valid and should be removed.
875
876         * WebProcess/WebPage/FindController.cpp:
877         (WebKit::FindController::updateFindUIAfterPageScroll):
878
879 2013-02-06  Anders Carlsson  <andersca@apple.com>
880
881         Dispatch storage manager messages to the storage work queue
882         https://bugs.webkit.org/show_bug.cgi?id=109099
883
884         Reviewed by Andreas Kling.
885
886         * UIProcess/Storage/StorageManager.cpp:
887         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
888         (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
889         (WebKit):
890         * UIProcess/Storage/StorageManager.h:
891         (StorageManager):
892
893 2013-02-06  Anders Carlsson  <andersca@apple.com>
894
895         Pass the document source URL to the pluginLoadPolicy callback
896         https://bugs.webkit.org/show_bug.cgi?id=109084
897         <rdar://problem/13154516>
898
899         Reviewed by Andreas Kling.
900
901         * UIProcess/API/C/WKPage.h:
902         * UIProcess/WebPageProxy.cpp:
903         (WebKit::WebPageProxy::getPluginPath):
904         * UIProcess/WebPageProxy.h:
905         (WebPageProxy):
906         * UIProcess/WebPageProxy.messages.in:
907         * UIProcess/WebUIClient.cpp:
908         (WebKit::WebUIClient::pluginLoadPolicy):
909         * UIProcess/WebUIClient.h:
910         (WebUIClient):
911         * WebProcess/WebPage/WebPage.cpp:
912         (WebKit::WebPage::createPlugin):
913         (WebKit::WebPage::canPluginHandleResponse):
914
915 2013-02-06  Alexey Proskuryakov  <ap@apple.com>
916
917         Get rid of unneeded writeable preferences.
918
919         Reviewed by Anders Carlsson.
920
921         com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
922         early in WebKit2 development, before we moved a lot of functionality to UI process.
923         They don't appear to be needed any more.
924
925         Note that we do not even need to allow reading for com.apple.WebProcess.plist -
926         it's read at process initialization before we enter the sandbox, and services
927         have a different plist anyway.
928
929         * WebProcess/com.apple.WebProcess.sb.in:
930
931 2013-02-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
932
933         [EFL][WK2] Assertion failure on MiniBrowser exit
934         https://bugs.webkit.org/show_bug.cgi?id=108932
935
936         Reviewed by Anders Carlsson.
937
938         WorkQueue is now refcounted after r141497, so increase ref
939         count when a new job is scheduled and unref it when it finishes.
940
941         * Platform/efl/WorkQueueEfl.cpp:
942         (WorkQueue::performWork):
943         (WorkQueue::performTimerWork):
944         (WorkQueue::dispatch):
945         (WorkQueue::dispatchAfterDelay):
946
947 2013-02-06  Simon Hausmann  <simon.hausmann@digia.com>, Zoltan Arvai  <zarvai@inf.u-szeged.hu>
948
949         [WK2][Win] Fix build after MessageID.h related changes and after r141619.
950         https://bugs.webkit.org/show_bug.cgi?id=108612
951
952         Reviewed by Anders Carlsson.
953
954         * Platform/CoreIPC/win/ConnectionWin.cpp:
955         (CoreIPC::Connection::platformInvalidate):
956         (CoreIPC::Connection::readEventHandler):
957         (CoreIPC::Connection::open):
958         (CoreIPC::Connection::sendOutgoingMessage):
959         * Platform/WorkQueue.h:
960         (WorkQueue::WorkItemWin::queue):
961         (WorkItemWin):
962         * Platform/win/SharedMemoryWin.cpp:
963         (WebKit::SharedMemory::Handle::decode):
964         * Platform/win/WorkQueueWin.cpp:
965         (WorkQueue::handleCallback):
966         (WorkQueue::performWorkOnRegisteredWorkThread):
967
968 2013-02-06  Mike West  <mkwst@chromium.org>
969
970         Add an ENABLE_NOSNIFF feature flag.
971         https://bugs.webkit.org/show_bug.cgi?id=109029
972
973         Reviewed by Jochen Eisinger.
974
975         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
976         when processing script and other resource types.
977
978         * Configurations/FeatureDefines.xcconfig:
979
980 2013-02-06  Marja Hölttä  <marja@chromium.org>
981
982         Take referrer policy into account when clearing the referrer header
983         https://bugs.webkit.org/show_bug.cgi?id=86000
984
985         Reviewed by Alexey Proskuryakov.
986
987         The referrer should only be cleared when doing a https -> http redirect,
988         if the policy is "default". Otherwise the referrer should be left intact.
989
990         * NetworkProcess/NetworkResourceLoader.cpp:
991         (WebKit::NetworkResourceLoader::start):
992         * NetworkProcess/SchedulableLoader.cpp:
993         (WebKit::SchedulableLoader::SchedulableLoader):
994         * NetworkProcess/SchedulableLoader.h:
995         (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
996         (SchedulableLoader):
997         * NetworkProcess/SyncNetworkResourceLoader.cpp:
998         (WebKit::SyncNetworkResourceLoader::start):
999         * NetworkProcess/mac/RemoteNetworkingContext.h:
1000         (WebKit::RemoteNetworkingContext::create):
1001         (RemoteNetworkingContext):
1002         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1003         (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
1004         (WebKit):
1005         (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
1006         * Shared/Network/NetworkResourceLoadParameters.cpp:
1007         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1008         (WebKit::NetworkResourceLoadParameters::encode):
1009         (WebKit::NetworkResourceLoadParameters::decode):
1010         * Shared/Network/NetworkResourceLoadParameters.h:
1011         (NetworkResourceLoadParameters):
1012         (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
1013         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1014         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
1015         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
1016         (WebKit::WebResourceLoadScheduler::scheduleLoad):
1017         * WebProcess/Network/WebResourceLoadScheduler.h:
1018         (WebResourceLoadScheduler):
1019         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1020         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1021
1022 2013-02-06  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1023
1024         [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
1025         https://bugs.webkit.org/show_bug.cgi?id=108062
1026
1027         Reviewed by Kenneth Rohde Christiansen.
1028
1029         The Ewk View implementation is encapsulated within EwkView class.
1030         Besides multiple refactoring of Ewk View evas smart object code was made.
1031
1032         * UIProcess/API/C/efl/WKView.cpp:
1033         (createWKView): 
1034
1035             Aux function to share WKView creation implementation.
1036
1037         * UIProcess/API/efl/EwkView.cpp:
1038         (smartDataChanged):
1039         (defaultSmartClassInstance):
1040         (toSmartData):
1041         (EwkView::initSmartClassInterface):
1042         (EwkView::toEvasObject):
1043         (EwkView::smartData):
1044
1045             Renamed and moved here from ewk_view.
1046
1047         (EwkViewEventHandler):
1048         (EwkViewEventHandler::subscribe):
1049         (EwkViewEventHandler::unsubscribe):
1050         (::handleEvent):
1051
1052             Added a new template class to encapsulate Ewk View Evas events handling.
1053
1054         (EwkView::EwkView):
1055         (EwkView::~EwkView):
1056
1057             Constructor and desctructor are private.
1058
1059         (EwkView::createEvasObject):
1060
1061             Added factory function for ewk view evas objects creation.
1062
1063         (EwkView::handleEvasObjectAdd):
1064         (EwkView::handleEvasObjectDelete):
1065         (EwkView::handleEvasObjectResize):
1066         (EwkView::handleEvasObjectMove):
1067         (EwkView::handleEvasObjectCalculate):
1068         (EwkView::handleEvasObjectShow):
1069         (EwkView::handleEvasObjectHide):
1070         (EwkView::handleEvasObjectColorSet):
1071
1072             Evas_Smart_Class interface callbacks moved into the EwkView class.
1073
1074         (EwkView::handleEwkViewFocusIn):
1075         (EwkView::handleEwkViewFocusOut):
1076         (EwkView::handleEwkViewMouseWheel):
1077         (EwkView::handleEwkViewMouseDown):
1078         (EwkView::handleEwkViewMouseUp):
1079         (EwkView::handleEwkViewMouseMove):
1080         (EwkView::handleEwkViewKeyDown):
1081         (EwkView::handleEwkViewKeyUp):
1082
1083             Ewk_View_Smart_Class interface callback moved into the EwkView class.
1084
1085         (EwkView::handleTouchDown):
1086         (EwkView::handleTouchUp):
1087         (EwkView::handleTouchMove):
1088
1089             Renamed.
1090
1091         (toEwkView): 
1092
1093             Aux function to get the EwkView instance fromevas object.
1094
1095         (isViewEvasObject):
1096
1097             Aux function to check that given evas object is ewk view.
1098
1099         * UIProcess/API/efl/EwkView.h:
1100         (EwkView::evasObject):
1101         (EwkView):
1102         * UIProcess/API/efl/ewk_view.cpp:
1103         (ewk_view_smart_class_set):
1104         (ewk_view_smart_add):
1105         (ewk_view_add_with_context):
1106         (ewk_view_feed_touch_event):
1107         (Ewk_Page_Contents_Context):
1108
1109         * UIProcess/API/efl/ewk_view_private.h: Removed.
1110
1111         * UIProcess/API/C/efl/WKView.cpp:
1112         (WKViewCreate):
1113         (WKViewCreateWithFixedLayout):
1114         (WKViewCreateSnapshot):
1115         * UIProcess/cairo/BackingStoreCairo.cpp:
1116         (WebKit::BackingStore::incorporateUpdate):
1117         * UIProcess/efl/ContextHistoryClientEfl.cpp:
1118         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
1119         (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
1120         (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
1121         (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
1122         * UIProcess/efl/PageClientBase.cpp:
1123         (WebKit::PageClientBase::processDidCrash):
1124         * UIProcess/efl/PageLoadClientEfl.cpp:
1125         (WebKit::PageLoadClientEfl::didChangeBackForwardList):
1126         * UIProcess/efl/PageUIClientEfl.cpp:
1127         (WebKit::PageUIClientEfl::takeFocus):
1128         (WebKit::PageUIClientEfl::focus):
1129         (WebKit::PageUIClientEfl::unfocus):
1130         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
1131         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
1132         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
1133         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1134         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1135         * UIProcess/efl/WebPageProxyEfl.cpp:
1136         (WebKit::WebPageProxy::viewWidget):
1137
1138              Updated due to changes in EwkView interface.
1139
1140 2013-02-05  Tim Horton  <timothy_horton@apple.com>
1141
1142         [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
1143         https://bugs.webkit.org/show_bug.cgi?id=108992
1144         <rdar://problem/13087365>
1145
1146         Reviewed by Anders Carlsson.
1147
1148         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1149         (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
1150         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1151         (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
1152         hosting context if we're in the window when swapping out contexts.
1153         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
1154         of the layer hosting context (or unset it if we're out of the window).
1155
1156 2013-02-05  Anders Carlsson  <andersca@apple.com>
1157
1158         WebKit clients should be able to override loading of blocked plug-ins
1159         https://bugs.webkit.org/show_bug.cgi?id=108968
1160         <rdar://problem/13154516>
1161
1162         Reviewed by Sam Weinig.
1163
1164         Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
1165         of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
1166         force loading of blacklisted plug-ins (and vice versa).
1167
1168         * UIProcess/API/C/WKPage.h:
1169         * UIProcess/WebPageProxy.cpp:
1170         (WebKit::WebPageProxy::getPluginPath):
1171         * UIProcess/WebUIClient.cpp:
1172         (WebKit::toWKPluginLoadPolicy):
1173         (WebKit):
1174         (WebKit::toPluginModuleLoadPolicy):
1175         (WebKit::WebUIClient::pluginLoadPolicy):
1176         * UIProcess/WebUIClient.h:
1177         (WebUIClient):
1178
1179 2013-02-05  Simon Hausmann  <simon.hausmann@digia.com>
1180
1181         [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
1182         https://bugs.webkit.org/show_bug.cgi?id=108826
1183
1184         Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
1185         Benjamin Poulain.
1186
1187         This patch converts a few more usages of WebPageProxy to functions in
1188         the WKPage API.
1189
1190         * UIProcess/API/qt/qquickwebview.cpp:
1191         (QQuickWebViewPrivate::initialize):
1192         (QQuickWebViewLegacyPrivate::zoomFactor):
1193         (QQuickWebViewLegacyPrivate::setZoomFactor):
1194         (QQuickWebViewExperimental::postMessage):
1195         (QQuickWebViewExperimental::userAgent):
1196         (QQuickWebViewExperimental::setUserAgent):
1197         (QQuickWebViewExperimental::evaluateJavaScript):
1198         (QQuickWebViewExperimental::findText):
1199         (QQuickWebView::goBack):
1200         (QQuickWebView::goForward):
1201         (QQuickWebView::stop):
1202         (QQuickWebView::reload):
1203         (QQuickWebView::setUrl):
1204         (QQuickWebView::canGoBack):
1205         (QQuickWebView::canGoForward):
1206         (QQuickWebView::loading):
1207         (QQuickWebView::title):
1208         (QQuickWebView::pageRef):
1209         (QQuickWebView::loadHtml):
1210         (QQuickWebView::runJavaScriptInMainFrame):
1211         * UIProcess/API/qt/qquickwebview_p_p.h:
1212         (QQuickWebViewPrivate):
1213
1214 2013-02-04  Gwang Yoon Hwang  <ryumiel@company100.net>
1215
1216         Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
1217         https://bugs.webkit.org/show_bug.cgi?id=108807
1218
1219         Reviewed by Anders Carlsson.
1220
1221         We need to add newly created WebCustomFilterProgramProxy to a hashset to
1222         disconnect when CoordinatedLayerTreeHost gets destructed.
1223
1224         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1225         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1226
1227 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
1228
1229         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
1230         https://bugs.webkit.org/show_bug.cgi?id=108741
1231
1232         Reviewed by Tony Chang.
1233
1234         Suspending and resuming application has been useless for a one. Someone just
1235         "forgot" WebKit2.
1236
1237         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1238         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1239         * WebProcess/WebPage/WebFrame.cpp:
1240         * WebProcess/WebPage/WebFrame.h:
1241         (WebFrame):
1242
1243 2013-02-04  Jaehun Lim  <ljaehun.lim@samsung.com>
1244
1245         [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
1246         https://bugs.webkit.org/show_bug.cgi?id=106979
1247
1248         Reviewed by Benjamin Poulain.
1249
1250         Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
1251         We can show confirmation window when beforeunload event is fired.
1252
1253         * UIProcess/efl/PageUIClientEfl.cpp:
1254         (WebKit::PageUIClientEfl::PageUIClientEfl):
1255         (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
1256         (WebKit):
1257         * UIProcess/efl/PageUIClientEfl.h:
1258         (PageUIClientEfl):
1259
1260 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1261
1262         [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
1263         https://bugs.webkit.org/show_bug.cgi?id=107931
1264
1265         Reviewed by Anders Carlsson.
1266
1267         This is just one step of the new plan for the EFL API.
1268
1269         The plan is to move the public EFL-like API on top of the shared
1270         WK2 C API, plus a few EFL extensions (WKView class mostly).
1271
1272         The EFL-like API can be seen as a convenience API which ties
1273         well into EFL and which makes it easy to add web experiences
1274         to existing and new EFL applications. It provides a smart object
1275         like API and a Evas_Object based view.
1276
1277         For more advanced use cases, such as browser and runtime, it is
1278         possible to use the WK* C API, which is gives more flexibility
1279         while being more low level.
1280
1281         The idea is that the WKView class will not depend on Evas_Object
1282         and X11 (future plan) unlike the current EFL-like API. This should
1283         make it possible to use it for cases where none of these are
1284         available.
1285
1286         This patch introduces the WebView class which serves as our
1287         counterpart for the WKView class, and adds a few needed methods.
1288
1289         The EwkView owns the WebView class (and will be constructing it
1290         in the near future when the EwkView class has been changed to
1291         handle all smart object related code)
1292
1293         The clean up of the smart object related code as the proper
1294         construction of EwkView and WebView will be done in follow-up
1295         patches.
1296
1297         * UIProcess/API/C/efl/WKAPICastEfl.h:
1298         (WebKit):
1299
1300             The WKView API is not based on WebView and not Evas_Object*
1301
1302         * UIProcess/API/C/efl/WKView.cpp:
1303         (WKViewCreate):
1304         (WKViewCreateWithFixedLayout):
1305         (WKViewInitialize):
1306         (WKViewGetPage):
1307         (WKViewSetThemePath):
1308         (WKViewSuspendActiveDOMObjectsAndAnimations):
1309         (WKViewResumeActiveDOMObjectsAndAnimations):
1310         (WKViewGetEvasObject):
1311         (WKViewCreateSnapshot):
1312
1313             Add a few new WKView EFL C methods, and update existing
1314             methods to reflect that the WKViewRef is now a WebView*
1315
1316             The construction methods will be rewritten when the smart
1317             object construction has been solved.
1318
1319         * UIProcess/API/C/efl/WKView.h:
1320         * UIProcess/efl/WebView.cpp: Added.
1321         (WebKit):
1322         (WebKit::WebView::WebView):
1323         (WebKit::WebView::~WebView):
1324         (WebKit::WebView::initialize):
1325         (WebKit::WebView::setThemePath):
1326         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
1327         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
1328         * UIProcess/efl/WebView.h: Added.
1329         (WebKit):
1330         (WebView):
1331         (WebKit::WebView::pageRef):
1332         (WebKit::WebView::evasObject):
1333         (WebKit::WebView::page):
1334         (WebKit::WebView::type):
1335
1336             Add a new WebKit::WebView class for EFL.
1337
1338         * UIProcess/API/efl/EwkView.cpp:
1339         (EwkView::EwkView):
1340         (EwkView::~EwkView):
1341         (EwkView::wkPage):
1342         (EwkView::setThemePath):
1343         (EwkView::createGLSurface):
1344
1345             Base methods on C API instead of internal API as much
1346             as currently possible.
1347
1348         * UIProcess/API/efl/EwkView.h:
1349         (WebKit):
1350         (WebView):
1351         (EwkView):
1352         (EwkView::wkView):
1353         (EwkView::page):
1354         * UIProcess/API/efl/ewk_view.cpp:
1355         (createEwkView):
1356         (ewk_view_base_add):
1357         (ewk_view_smart_add):
1358
1359             Modify to return the EwkView class for now.
1360
1361         * UIProcess/API/efl/ewk_view_private.h:
1362         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1363         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1364
1365             Updated due to changed API.
1366
1367 2013-02-04  Anders Carlsson  <andersca@apple.com>
1368
1369         Set up the storage manager as a connection queue
1370         https://bugs.webkit.org/show_bug.cgi?id=108879
1371
1372         Reviewed by Sam Weinig.
1373
1374         * UIProcess/Storage/StorageManager.cpp:
1375         (WebKit::StorageManager::processWillOpenConnection):
1376         Add the storage manager as a connection queue client.
1377
1378         (WebKit::StorageManager::processWillCloseConnection):
1379         Remove the storage manager.
1380
1381         * UIProcess/WebContext.cpp:
1382         (WebKit::WebContext::processWillOpenConnection):
1383         Call the storage manager.
1384
1385         (WebKit::WebContext::processWillCloseConnection):
1386         Call the storage manager.
1387
1388         * UIProcess/WebProcessProxy.cpp:
1389         (WebKit::WebProcessProxy::connectionWillOpen):
1390         Call the context.
1391
1392         (WebKit::WebProcessProxy::connectionWillClose):
1393         Call the context.
1394
1395         (WebKit::WebProcessProxy::didFinishLaunching):
1396         Remove a comment.
1397
1398 2013-02-04  Anders Carlsson  <andersca@apple.com>
1399
1400         Send message when creating and destroying StorageAreaProxy objects
1401         https://bugs.webkit.org/show_bug.cgi?id=108874
1402
1403         Reviewed by Sam Weinig.
1404
1405         * Shared/SecurityOriginData.cpp:
1406         (WebKit::SecurityOriginData::fromSecurityOrigin):
1407         * Shared/SecurityOriginData.h:
1408         (SecurityOriginData):
1409         Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
1410
1411         * WebProcess/Storage/StorageAreaProxy.cpp:
1412         (WebKit::generateStorageAreaID):
1413         New function to create a unique storage area ID.
1414
1415         (WebKit::StorageAreaProxy::StorageAreaProxy):
1416         Send a CreateStorageArea message.
1417         
1418         (WebKit::StorageAreaProxy::~StorageAreaProxy):
1419         Send a DestroyStorageArea message.
1420
1421         (WebKit::StorageAreaProxy::contains):
1422         Remove this assertion for now, it fires too often.
1423         
1424         * WebProcess/Storage/StorageNamespaceProxy.h:
1425         (WebKit::StorageNamespaceProxy::storageNamespaceID):
1426         Add getter.
1427
1428 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1429
1430         [EFL][WK2] Use C API inside EwkView
1431         https://bugs.webkit.org/show_bug.cgi?id=108825
1432
1433         Reviewed by Anders Carlsson.
1434
1435         A straight-forward port towards the C API.
1436
1437         * UIProcess/API/efl/EwkView.cpp:
1438         (EwkView::EwkView): Use C API for common default preferences.
1439         (EwkView::wkPage): Make it const and remove useless comment.
1440         (EwkView::deviceScaleFactor):
1441         (EwkView::title):
1442         (EwkView::customTextEncodingName):
1443         (EwkView::setCustomTextEncodingName):
1444         (EwkView::informURLChange):
1445         * UIProcess/API/efl/EwkView.h:
1446         (EwkView):
1447
1448 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
1449
1450         Remove an unnecessary sandbox rule.
1451
1452         Reviewed by Sam Weinig.
1453
1454         * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
1455         /Library/Managed Preferences, no need for another rule for something inside it.
1456
1457 2013-02-04  Brady Eidson  <beidson@apple.com>
1458
1459         WebProcess crashes handling repeated NetworkProcess crashes.
1460         <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
1461
1462         Reviewed by Alexey Proskuryakov.
1463
1464         - Rename the concept of "unschedulable loader" to "internally failed loader"
1465         - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
1466         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1467         (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
1468         (WebKit::WebResourceLoadScheduler::scheduleLoad):
1469         (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
1470         (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
1471         (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
1472         (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1473         * WebProcess/Network/WebResourceLoadScheduler.h:
1474
1475         WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
1476         * WebProcess/Network/WebResourceLoader.cpp:
1477         * WebProcess/Network/WebResourceLoader.h:
1478         (WebKit::WebResourceLoader::resourceLoader):
1479
1480 2013-02-04  Anders Carlsson  <andersca@apple.com>
1481
1482         Update message generation to use the new queue client semantics
1483         https://bugs.webkit.org/show_bug.cgi?id=108865
1484
1485         Reviewed by Andreas Kling.
1486
1487         * Scripts/webkit2/messages.py:
1488         (connection_work_queue_message_statement):
1489         (async_message_statement):
1490         (generate_message_handler):
1491         * Scripts/webkit2/messages_unittest.py:
1492         * Shared/mac/SecItemShim.cpp:
1493         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1494         * Shared/mac/SecItemShim.h:
1495         (SecItemShim):
1496         * UIProcess/Storage/StorageManager.cpp:
1497         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1498         * UIProcess/Storage/StorageManager.h:
1499         (StorageManager):
1500         * UIProcess/WebProcessProxy.cpp:
1501         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1502         * UIProcess/WebProcessProxy.h:
1503         (WebProcessProxy):
1504         * UIProcess/mac/SecItemShimProxy.cpp:
1505         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1506         * UIProcess/mac/SecItemShimProxy.h:
1507         (SecItemShimProxy):
1508         * WebKit2.xcodeproj/project.pbxproj:
1509         * WebProcess/WebPage/EventDispatcher.cpp:
1510         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1511         * WebProcess/WebPage/EventDispatcher.h:
1512         (EventDispatcher):
1513         * WebProcess/WebProcess.cpp:
1514         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1515         * WebProcess/WebProcess.h:
1516         (WebProcess):
1517
1518 2013-02-04  Abhishek Arya  <inferno@chromium.org>
1519
1520         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1521         https://bugs.webkit.org/show_bug.cgi?id=108668
1522
1523         Reviewed by Eric Seidel.
1524
1525         * Shared/mac/SandboxExtensionMac.mm:
1526         (WebKit::SandboxExtension::HandleArray::operator[]):
1527
1528 2013-02-04  Anders Carlsson  <andersca@apple.com>
1529
1530         Change didReceiveMessageOnConnectionWorkQueue semantics
1531         https://bugs.webkit.org/show_bug.cgi?id=108859
1532
1533         Reviewed by Sam Weinig.
1534
1535         Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
1536         OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
1537         work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
1538         of the decoder implicitly means that the message was handled.
1539         
1540         * Platform/CoreIPC/Connection.cpp:
1541         (CoreIPC::Connection::processIncomingMessage):
1542         * Platform/CoreIPC/Connection.h:
1543         (QueueClient):
1544         * Shared/mac/SecItemShim.cpp:
1545         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1546         * Shared/mac/SecItemShim.h:
1547         (SecItemShim):
1548         * UIProcess/Storage/StorageManager.cpp:
1549         (WebKit::StorageManager::StorageManager):
1550         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1551         * UIProcess/Storage/StorageManager.h:
1552         (WebKit):
1553         (StorageManager):
1554         * UIProcess/WebProcessProxy.cpp:
1555         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1556         * UIProcess/WebProcessProxy.h:
1557         (WebProcessProxy):
1558         * UIProcess/mac/SecItemShimProxy.cpp:
1559         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1560         * UIProcess/mac/SecItemShimProxy.h:
1561         (SecItemShimProxy):
1562         * WebProcess/WebPage/EventDispatcher.cpp:
1563         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1564         * WebProcess/WebPage/EventDispatcher.h:
1565         (EventDispatcher):
1566         * WebProcess/WebProcess.cpp:
1567         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1568         * WebProcess/WebProcess.h:
1569         (WebProcess):
1570
1571 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
1572
1573         <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
1574
1575         Reviewed by Sam Weinig.
1576
1577         * WebProcess/com.apple.WebProcess.sb.in:
1578
1579 2013-02-04  Anders Carlsson  <andersca@apple.com>
1580
1581         Add didCloseOnConnectionWorkQueue to Connection::QueueClient
1582         https://bugs.webkit.org/show_bug.cgi?id=108853
1583
1584         Reviewed by Andreas Kling.
1585
1586         * Platform/CoreIPC/Connection.cpp:
1587         (CoreIPC::Connection::connectionDidClose):
1588         * Platform/CoreIPC/Connection.h:
1589         (QueueClient):
1590         * Shared/mac/SecItemShim.cpp:
1591         (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
1592         * Shared/mac/SecItemShim.h:
1593         (SecItemShim):
1594         * UIProcess/Storage/StorageManager.cpp:
1595         (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
1596         (WebKit):
1597         * UIProcess/Storage/StorageManager.h:
1598         (StorageManager):
1599         * UIProcess/WebProcessProxy.cpp:
1600         (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
1601         (WebKit):
1602         * UIProcess/WebProcessProxy.h:
1603         (WebProcessProxy):
1604         * UIProcess/mac/SecItemShimProxy.cpp:
1605         (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
1606         * UIProcess/mac/SecItemShimProxy.h:
1607         (SecItemShimProxy):
1608         * WebProcess/WebPage/EventDispatcher.cpp:
1609         (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
1610         (WebKit):
1611         * WebProcess/WebPage/EventDispatcher.h:
1612         (EventDispatcher):
1613         * WebProcess/WebProcess.cpp:
1614         (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
1615         (WebKit):
1616         * WebProcess/WebProcess.h:
1617         (WebProcess):
1618
1619 2013-02-04  Martin Robinson  <mrobinson@igalia.com>
1620
1621         Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
1622
1623         * GNUmakefile.am:
1624         * GNUmakefile.list.am:
1625
1626 2013-02-04  Enrica Casucci  <enrica@apple.com>
1627
1628         Add specific EditActions for Bold and Italic commands.
1629         https://bugs.webkit.org/show_bug.cgi?id=108842.
1630         <rdar://problem/13098252>
1631
1632         Reviewed by Ryosuke Niwa.
1633
1634         * UIProcess/WebEditCommandProxy.cpp:
1635         (WebKit::WebEditCommandProxy::nameForEditAction):
1636
1637 2013-02-04  Anders Carlsson  <andersca@apple.com>
1638
1639         Use a separate queue for the connection watchdog callback in the web process
1640         https://bugs.webkit.org/show_bug.cgi?id=108844
1641
1642         Reviewed by Andreas Kling.
1643
1644         Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
1645         Instead, create a new, temporary work queue where the exit call will be dispatched to.
1646
1647         * Platform/CoreIPC/Connection.cpp:
1648         (CoreIPC::Connection::connectionDidClose):
1649         * Platform/CoreIPC/Connection.h:
1650         (Connection):
1651         * Shared/ChildProcess.cpp:
1652         (WebKit::didCloseOnConnectionWorkQueue):
1653
1654 2013-02-04  Tim Horton  <timothy_horton@apple.com>
1655
1656         Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
1657         https://bugs.webkit.org/show_bug.cgi?id=108729
1658         <rdar://problem/13047546>
1659
1660         Reviewed by Anders Carlsson.
1661
1662         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1663         (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
1664         current PlatformLayer corresponding to m_pageOverlayLayer.
1665         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1666         (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
1667         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
1668         (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
1669         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer): Allow the page overlay layer to become tiled. Update its exposed rect and whether or not it respects the exposed rect if it's tiled upon creation.
1670         (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer): If a GraphicsLayer's platform layer changes (because it switched to or from a tiled layer), reparent it. If it's switching to a tiled layer, update the exposed rect and whether or not it should respect the exposed rect.
1671
1672 2013-02-04  Anders Carlsson  <andersca@apple.com>
1673
1674         Use UNUSED_PARAM instead of C style comments.
1675
1676         * UIProcess/Storage/StorageManager.cpp:
1677         (WebKit::StorageManager::createStorageArea):
1678
1679 2013-02-04  Christophe Dumez  <dchris@gmail.com>
1680
1681         [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
1682         https://bugs.webkit.org/show_bug.cgi?id=108816
1683
1684         Reviewed by Anders Carlsson.
1685
1686         As we are trying to minimize use of external dependencies in our WK2 EFL
1687         API implementation, we should stop using libsoup in
1688         ewk_url_scheme_request and use the WK2 C API instead.
1689
1690         * UIProcess/API/efl/ewk_url_scheme_request.cpp:
1691         (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
1692
1693 2013-02-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1694
1695         [WK2][EFL] Weird stripe at the end of the page
1696         https://bugs.webkit.org/show_bug.cgi?id=108820
1697
1698         Reviewed by Noam Rosenthal.
1699
1700         The page scroll bound was artificially enlarged by one causing the artifact appearance.
1701
1702         * UIProcess/PageViewportController.cpp:
1703         (WebKit::PageViewportController::boundContentsPositionAtScale):
1704
1705 2013-02-04  David Kilzer  <ddkilzer@apple.com>
1706
1707         Sort WebKit2 Xcode project file
1708
1709         * WebKit2.xcodeproj/project.pbxproj:
1710
1711 2013-02-04  Simon Hausmann  <simon.hausmann@digia.com>
1712
1713         [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
1714         https://bugs.webkit.org/show_bug.cgi?id=108651
1715
1716         Reviewed by Sam Weinig.
1717
1718         It's straight-forward port towards the C API.
1719
1720         * UIProcess/API/qt/qquickwebview.cpp:
1721         (QQuickWebViewPrivate::initialize):
1722         (readUserScript):
1723         (QQuickWebViewPrivate::updateUserScripts):
1724         * UIProcess/API/qt/qquickwebview_p_p.h:
1725         (QQuickWebViewPrivate):
1726
1727 2013-02-04  Balazs Kelemen  <kbalazs@webkit.org>
1728
1729         [Soup] Wrap SoupSession by NetworkStorageSession
1730         https://bugs.webkit.org/show_bug.cgi?id=108615
1731
1732         Reviewed by Alexey Proskuryakov.
1733
1734         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
1735         (WebKit::WebFrameNetworkingContext::storageSession):
1736         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
1737         (WebFrameNetworkingContext):
1738
1739 2013-02-03  David Kilzer  <ddkilzer@apple.com>
1740
1741         Upstream ENABLE_PDFKIT_PLUGIN settting
1742         <http://webkit.org/b/108792>
1743
1744         Reviewed by Tim Horton.
1745
1746         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1747         on iOS since PDFKit is a Mac-only framework.
1748
1749 2013-02-01  Alexey Proskuryakov  <ap@apple.com>
1750
1751         Silently block one more directory needed for NSApplication initialization.
1752
1753         Reviewed by Sam Weinig.
1754
1755         * WebProcess/com.apple.WebProcess.sb.in:
1756
1757 2013-02-03  KwangYong Choi  <ky0.choi@samsung.com>
1758
1759         Fix build warning after r141648
1760         https://bugs.webkit.org/show_bug.cgi?id=108784
1761
1762         Reviewed by Kentaro Hara.
1763
1764         Fix -Wunused-parameter build warning.
1765
1766         * UIProcess/Storage/StorageManager.cpp:
1767         (WebKit::StorageManager::createStorageArea):
1768         (WebKit::StorageManager::destroyStorageArea):
1769
1770 2013-02-03  Joanmarie Diggs  <jdiggs@igalia.com>
1771
1772         [GTK] Make distcheck fails
1773         https://bugs.webkit.org/show_bug.cgi?id=108756
1774
1775         Reviewed by Kentaro Hara.
1776
1777         * GNUmakefile.list.am: Remove header files which no longer exist
1778
1779 2013-02-02  Sam Weinig  <sam@webkit.org>
1780
1781         Remove more LegacyReceivers
1782         https://bugs.webkit.org/show_bug.cgi?id=108758
1783
1784         Reviewed by Anders Carlsson.
1785
1786         * UIProcess/Downloads/DownloadProxy.cpp:
1787         * UIProcess/Downloads/DownloadProxy.messages.in:
1788         * UIProcess/WebApplicationCacheManagerProxy.cpp:
1789         * UIProcess/WebApplicationCacheManagerProxy.h:
1790         (WebApplicationCacheManagerProxy):
1791         * UIProcess/WebApplicationCacheManagerProxy.messages.in:
1792         * UIProcess/WebCookieManagerProxy.cpp:
1793         * UIProcess/WebCookieManagerProxy.h:
1794         (WebCookieManagerProxy):
1795         * UIProcess/WebCookieManagerProxy.messages.in:
1796         * UIProcess/WebDatabaseManagerProxy.cpp:
1797         * UIProcess/WebDatabaseManagerProxy.h:
1798         (WebDatabaseManagerProxy):
1799         * UIProcess/WebDatabaseManagerProxy.messages.in:
1800         * UIProcess/mac/RemoteLayerTreeHost.h:
1801         (RemoteLayerTreeHost):
1802         * UIProcess/mac/RemoteLayerTreeHost.messages.in:
1803         * UIProcess/mac/RemoteLayerTreeHost.mm:
1804         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1805         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1806         (WebApplicationCacheManager):
1807         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1808         * WebProcess/Cookies/WebCookieManager.cpp:
1809         * WebProcess/Cookies/WebCookieManager.h:
1810         (WebCookieManager):
1811         * WebProcess/Cookies/WebCookieManager.messages.in:
1812         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1813         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1814         (WebDatabaseManager):
1815         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
1816
1817 2013-02-02  Sam Weinig  <sam@webkit.org>
1818
1819         Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
1820         https://bugs.webkit.org/show_bug.cgi?id=108757
1821
1822         Reviewed by Anders Carlsson.
1823
1824         * Shared/Authentication/AuthenticationManager.cpp:
1825         * Shared/Authentication/AuthenticationManager.h:
1826         (AuthenticationManager):
1827         * Shared/Authentication/AuthenticationManager.messages.in:
1828         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1829         (CustomProtocolManager):
1830         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1831         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1832         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1833         (CustomProtocolManagerProxy):
1834         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1835         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1836
1837 2013-02-02  Christophe Dumez  <christophe.dumez@intel.com>
1838
1839         [EFL][WK2] Use C API inside ewk_file_chooser_request
1840         https://bugs.webkit.org/show_bug.cgi?id=107811
1841
1842         Reviewed by Sam Weinig.
1843
1844         Use C API inside ewk_file_chooser_request instead of
1845         accessing the internal C++ classes directly, to
1846         avoid violating API layering.
1847
1848         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
1849         (EwkFileChooserRequest::EwkFileChooserRequest):
1850         (EwkFileChooserRequest::~EwkFileChooserRequest):
1851         (EwkFileChooserRequest::allowMultipleFiles):
1852         (EwkFileChooserRequest::acceptedMIMETypes):
1853         (EwkFileChooserRequest::cancel):
1854         (EwkFileChooserRequest::chooseFiles):
1855         (ewk_file_chooser_request_accepted_mimetypes_get):
1856         (ewk_file_chooser_request_files_choose):
1857         (ewk_file_chooser_request_file_choose):
1858         * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1859         (EwkFileChooserRequest::create):
1860         (EwkFileChooserRequest):
1861         * UIProcess/efl/PageUIClientEfl.cpp:
1862         (WebKit::PageUIClientEfl::runOpenPanel):
1863
1864 2013-02-02  Sam Weinig  <sam@webkit.org>
1865
1866         Stop keeping a frame tree in the UIProcess
1867         https://bugs.webkit.org/show_bug.cgi?id=81728
1868
1869         Reviewed by Oliver Hunt.
1870
1871         This patch removes the parent/child relationships of WebFrameProxys
1872         in the UIProcess
1873
1874         * UIProcess/API/C/WKFrame.cpp:
1875         (WKFrameCopyChildFrames):
1876         (WKFrameGetParentFrame):
1877         * UIProcess/API/C/WKFrame.h:
1878         Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
1879         but keep them around as their symbols are still needed for nightlies.
1880
1881         * UIProcess/WebFrameProxy.cpp:
1882         (WebKit::WebFrameProxy::WebFrameProxy):
1883         (WebKit::WebFrameProxy::disconnect):
1884         * UIProcess/WebFrameProxy.h:
1885         Remove parent/child connections.
1886
1887         * UIProcess/WebPageProxy.cpp:
1888         (WebKit::WebPageProxy::didCreateSubframe):
1889         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1890         * UIProcess/WebPageProxy.h:
1891         * UIProcess/WebPageProxy.messages.in:
1892         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1893         (WebKit::WebFrameLoaderClient::didSaveToPageCache):
1894         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
1895         * WebProcess/WebPage/WebFrame.cpp:
1896         (WebKit::WebFrame::createSubframe):
1897         Remove/Update messages that only served to update the parent/child connection.
1898
1899 2013-02-02  Sam Weinig  <sam@webkit.org>
1900
1901         Make it possible to modify the connection from ChildProcessProxy subclasses.
1902
1903         Reviewed by Anders Carlsson.
1904
1905         * Shared/ChildProcessProxy.cpp:
1906         (WebKit::ChildProcessProxy::ChildProcessProxy):
1907         (WebKit::ChildProcessProxy::didFinishLaunching):
1908         (WebKit::ChildProcessProxy::clearConnection):
1909         (WebKit::ChildProcessProxy::connectionWillOpen):
1910         (WebKit::ChildProcessProxy::connectionWillClose):
1911         * Shared/ChildProcessProxy.h:
1912         (ChildProcessProxy):
1913         * UIProcess/WebProcessProxy.cpp:
1914         (WebKit::WebProcessProxy::WebProcessProxy):
1915         (WebKit::WebProcessProxy::connectionWillOpen):
1916         (WebKit::WebProcessProxy::connectionWillClose):
1917         * UIProcess/WebProcessProxy.h:
1918         (WebProcessProxy):
1919
1920 2013-02-02  David Kilzer  <ddkilzer@apple.com>
1921
1922         Upstream iOS FeatureDefines
1923         <http://webkit.org/b/108753>
1924
1925         Reviewed by Anders Carlsson.
1926
1927         * Configurations/FeatureDefines.xcconfig:
1928         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
1929         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
1930         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
1931           PLATFORM_NAME variant to reduce future merge conflicts. 
1932
1933 2013-02-02  Csaba Osztrogonác  <ossy@webkit.org>
1934
1935         [Qt][WK2] Unreviewed buildfix after r141648.
1936
1937         * DerivedSources.pri:
1938
1939 2013-02-02  Zan Dobersek  <zdobersek@igalia.com>
1940
1941         Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
1942
1943         Unreviewed.
1944
1945         * GNUmakefile.list.am:
1946
1947 2013-02-01  Zan Dobersek  <zdobersek@igalia.com>
1948
1949         Unreviewed GTK build fix after r141648.
1950
1951         * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
1952         should be searched for *.messages.in files.
1953
1954 2013-02-01  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1955
1956         Unreviewed build fix after r141648
1957
1958         Needs to add StorageManager.messages.in to CMakeLists.txt.
1959
1960         * CMakeLists.txt:
1961
1962 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
1963
1964         Build fix for CustomProtocolManagerMac after r141658.
1965
1966         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1967         (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
1968
1969 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
1970
1971         [WK2] Use light supplement names instead of static AtomicStrings
1972         https://bugs.webkit.org/show_bug.cgi?id=108570
1973
1974         Reviewed by Anders Carlsson.
1975
1976         Since all the supplement names are just string literals and are all different,
1977         we can just use their pointer as the key in the supplement hashmaps.
1978
1979         This is lighter and faster than using AtomicString. WebCore already moved to this
1980         in Supplementable.
1981
1982         * NetworkProcess/NetworkProcess.h:
1983         (WebKit::NetworkProcess::addSupplement):
1984         (NetworkProcess):
1985         * Shared/Authentication/AuthenticationManager.cpp:
1986         (WebKit::AuthenticationManager::supplementName):
1987         * Shared/Authentication/AuthenticationManager.h:
1988         (AuthenticationManager):
1989         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1990         (CustomProtocolManager):
1991         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1992         (WebKit::CustomProtocolManager::supplementName):
1993         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1994         (WebKit::WebNotificationManagerProxy::supplementName):
1995         * UIProcess/Notifications/WebNotificationManagerProxy.h:
1996         (WebNotificationManagerProxy):
1997         * UIProcess/WebApplicationCacheManagerProxy.cpp:
1998         (WebKit::WebApplicationCacheManagerProxy::supplementName):
1999         * UIProcess/WebApplicationCacheManagerProxy.h:
2000         (WebApplicationCacheManagerProxy):
2001         * UIProcess/WebContext.h:
2002         (WebContext):
2003         * UIProcess/WebCookieManagerProxy.cpp:
2004         (WebKit::WebCookieManagerProxy::supplementName):
2005         * UIProcess/WebCookieManagerProxy.h:
2006         (WebCookieManagerProxy):
2007         * UIProcess/WebDatabaseManagerProxy.cpp:
2008         (WebKit::WebDatabaseManagerProxy::supplementName):
2009         * UIProcess/WebDatabaseManagerProxy.h:
2010         (WebDatabaseManagerProxy):
2011         * UIProcess/WebGeolocationManagerProxy.cpp:
2012         (WebKit::WebGeolocationManagerProxy::supplementName):
2013         * UIProcess/WebGeolocationManagerProxy.h:
2014         (WebGeolocationManagerProxy):
2015         * UIProcess/WebKeyValueStorageManagerProxy.cpp:
2016         (WebKit::WebKeyValueStorageManagerProxy::supplementName):
2017         * UIProcess/WebKeyValueStorageManagerProxy.h:
2018         (WebKeyValueStorageManagerProxy):
2019         * UIProcess/WebMediaCacheManagerProxy.cpp:
2020         (WebKit::WebMediaCacheManagerProxy::supplementName):
2021         * UIProcess/WebMediaCacheManagerProxy.h:
2022         (WebMediaCacheManagerProxy):
2023         * UIProcess/WebResourceCacheManagerProxy.cpp:
2024         (WebKit::WebResourceCacheManagerProxy::supplementName):
2025         * UIProcess/WebResourceCacheManagerProxy.h:
2026         (WebResourceCacheManagerProxy):
2027         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2028         (WebKit::WebSoupRequestManagerProxy::supplementName):
2029         * UIProcess/soup/WebSoupRequestManagerProxy.h:
2030         (WebSoupRequestManagerProxy):
2031         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2032         (WebKit::WebApplicationCacheManager::supplementName):
2033         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2034         (WebApplicationCacheManager):
2035         * WebProcess/Cookies/WebCookieManager.cpp:
2036         (WebKit::WebCookieManager::supplementName):
2037         * WebProcess/Cookies/WebCookieManager.h:
2038         (WebCookieManager):
2039         * WebProcess/Geolocation/WebGeolocationManager.cpp:
2040         (WebKit::WebGeolocationManager::supplementName):
2041         * WebProcess/Geolocation/WebGeolocationManager.h:
2042         (WebGeolocationManager):
2043         * WebProcess/MediaCache/WebMediaCacheManager.cpp:
2044         (WebKit::WebMediaCacheManager::supplementName):
2045         * WebProcess/MediaCache/WebMediaCacheManager.h:
2046         (WebMediaCacheManager):
2047         * WebProcess/Notifications/WebNotificationManager.cpp:
2048         (WebKit::WebNotificationManager::supplementName):
2049         * WebProcess/Notifications/WebNotificationManager.h:
2050         (WebNotificationManager):
2051         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
2052         (WebKit::WebResourceCacheManager::supplementName):
2053         * WebProcess/ResourceCache/WebResourceCacheManager.h:
2054         (WebResourceCacheManager):
2055         * WebProcess/Storage/WebKeyValueStorageManager.cpp:
2056         (WebKit::WebKeyValueStorageManager::supplementName):
2057         * WebProcess/Storage/WebKeyValueStorageManager.h:
2058         (WebKeyValueStorageManager):
2059         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
2060         (WebKit::WebDatabaseManager::supplementName):
2061         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2062         (WebDatabaseManager):
2063         * WebProcess/WebProcess.h:
2064         (WebKit::WebProcess::addSupplement):
2065         (WebProcess):
2066
2067 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
2068
2069         Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
2070         https://bugs.webkit.org/show_bug.cgi?id=108558
2071
2072         Reviewed by Dean Jackson.
2073
2074         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2075         (WKBundleFramePauseAnimationOnElementWithId):
2076         * WebProcess/WebPage/WebFrame.cpp:
2077         (WebKit::WebFrame::pauseAnimationOnElementWithId):
2078         * WebProcess/WebPage/WebFrame.h:
2079         (WebFrame):
2080
2081 2013-02-01  Anders Carlsson  <andersca@apple.com>
2082
2083         More work on UI side storage
2084         https://bugs.webkit.org/show_bug.cgi?id=108700
2085
2086         Reviewed by Sam Weinig.
2087
2088         * DerivedSources.make:
2089         Add StorageManager.messages.in.
2090
2091         * Platform/CoreIPC/HandleMessage.h:
2092         (CoreIPC::callMemberFunction):
2093         Add new overload.
2094
2095         * UIProcess/Storage/StorageManager.cpp:
2096         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
2097         Call the right function.
2098
2099         (WebKit::StorageManager::createStorageArea):
2100         (WebKit::StorageManager::destroyStorageArea):
2101         Add stubs.
2102
2103         * UIProcess/Storage/StorageManager.messages.in: Added.
2104         Add new messages files.
2105
2106         * WebKit2.xcodeproj/project.pbxproj:
2107         Add new files.
2108
2109         * WebProcess/Storage/StorageAreaProxy.cpp:
2110         (WebKit::StorageAreaProxy::~StorageAreaProxy):
2111         Add another FIXME.
2112
2113         (WebKit::StorageAreaProxy::canAccessStorage):
2114         (WebKit::StorageAreaProxy::incrementAccessCount):
2115         (WebKit::StorageAreaProxy::decrementAccessCount):
2116         Implement these.
2117
2118 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2119
2120         [Gtk] [WK2] Fix build after r141619
2121         https://bugs.webkit.org/show_bug.cgi?id=108687
2122
2123         Reviewed by Benjamin Poulain.
2124
2125         Take a reference instead of a pointer for decoding functions.
2126
2127         * Platform/gtk/SharedMemoryGtk.cpp:
2128         (WebKit::SharedMemory::Handle::decode):
2129         * Shared/gtk/ArgumentCodersGtk.cpp:
2130         (CoreIPC::decodeImage):
2131         (CoreIPC::decodeDataObject):
2132         (CoreIPC::::decode):
2133         (CoreIPC::decodeGKeyFile):
2134         (CoreIPC::decode):
2135         * Shared/gtk/ArgumentCodersGtk.h:
2136         * Shared/gtk/LayerTreeContextGtk.cpp:
2137         (WebKit::LayerTreeContext::decode):
2138
2139 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2140
2141         [EFL] [WK2] Fix build after r141619
2142         https://bugs.webkit.org/show_bug.cgi?id=108683
2143
2144         Reviewed by Benjamin Poulain.
2145
2146         Take a reference instead of a pointer for decoding functions.
2147
2148         * Shared/WebBatteryStatus.cpp:
2149         (WebKit::WebBatteryStatus::Data::decode):
2150         * Shared/WebBatteryStatus.h:
2151         (Data):
2152         * Shared/WebNetworkInfo.cpp:
2153         (WebKit::WebNetworkInfo::Data::decode):
2154         * Shared/WebNetworkInfo.h:
2155         (Data):
2156         * Shared/cairo/LayerTreeContextCairo.cpp:
2157         (WebKit::LayerTreeContext::decode):
2158         * Shared/efl/LayerTreeContextEfl.cpp:
2159         (WebKit::LayerTreeContext::decode):
2160         * Shared/soup/PlatformCertificateInfo.cpp:
2161         (WebKit::PlatformCertificateInfo::decode):
2162         * Shared/soup/PlatformCertificateInfo.h:
2163         (PlatformCertificateInfo):
2164         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
2165         (CoreIPC::::decodePlatformData):
2166
2167 2013-02-01  Brady Eidson  <beidson@apple.com>
2168
2169         Clean up WebArchive loading with the NetworkProcess
2170         <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
2171
2172         Reviewed by Alexey Proskuryakov.
2173
2174         * NetworkProcess/HostRecord.cpp:
2175         (WebKit::HostRecord::servePendingRequestsForQueue):  Add new logging.
2176         (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
2177
2178         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2179         (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
2180
2181         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2182         (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
2183           and add new logging to better explore archive loading behavior in the future.
2184
2185 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2186
2187         [Qt] [WK2] Fix build after r141619
2188         https://bugs.webkit.org/show_bug.cgi?id=108680
2189
2190         Reviewed by Benjamin Poulain.
2191
2192         Take a reference instead of a pointer for decoding functions.
2193
2194         * Platform/unix/SharedMemoryUnix.cpp:
2195         (WebKit::SharedMemory::Handle::decode):
2196         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2197         (CoreIPC::::decode):
2198         (CoreIPC::decodeTimingFunction):
2199         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2200         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
2201         (WebKit::WebCoordinatedSurface::Handle::decode):
2202         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2203         (Handle):
2204         * Shared/qt/ArgumentCodersQt.cpp:
2205         (CoreIPC::::decode):
2206         * Shared/qt/ArgumentCodersQt.h:
2207         (CoreIPC):
2208         * Shared/qt/LayerTreeContextQt.cpp:
2209         (WebKit::LayerTreeContext::decode):
2210         * Shared/qt/PlatformCertificateInfo.h:
2211         (WebKit::PlatformCertificateInfo::decode):
2212         * Shared/qt/QtNetworkReplyData.cpp:
2213         (WebKit::QtNetworkReplyData::decode):
2214         * Shared/qt/QtNetworkReplyData.h:
2215         (QtNetworkReplyData):
2216         * Shared/qt/QtNetworkRequestData.cpp:
2217         (WebKit::QtNetworkRequestData::decode):
2218         * Shared/qt/QtNetworkRequestData.h:
2219         (QtNetworkRequestData):
2220         * Shared/qt/WebCoreArgumentCodersQt.cpp:
2221         (CoreIPC::::decodePlatformData):
2222
2223 2013-02-01  Anders Carlsson  <andersca@apple.com>
2224
2225         Message decoding functions should take a MessageDecoder reference
2226         https://bugs.webkit.org/show_bug.cgi?id=108669
2227
2228         Reviewed by Andreas Kling.
2229
2230         Message encoding functions already take a reference instead of a pointer, so
2231         make the decoding functions take a reference as well.
2232
2233         * Platform/CoreIPC/ArgumentCoder.h:
2234         (CoreIPC::ArgumentCoder::decode):
2235         * Platform/CoreIPC/ArgumentCoders.cpp:
2236         (CoreIPC::::decode):
2237         (CoreIPC::decodeStringText):
2238         * Platform/CoreIPC/ArgumentCoders.h:
2239         (CoreIPC::SimpleArgumentCoder::decode):
2240         * Platform/CoreIPC/ArgumentDecoder.h:
2241         (CoreIPC::ArgumentDecoder::decode):
2242         * Platform/CoreIPC/Arguments.h:
2243         (CoreIPC::Arguments0::decode):
2244         (CoreIPC::Arguments1::decode):
2245         (CoreIPC::Arguments2::decode):
2246         (CoreIPC::Arguments3::decode):
2247         (CoreIPC::Arguments4::decode):
2248         (CoreIPC::Arguments5::decode):
2249         (CoreIPC::Arguments6::decode):
2250         (CoreIPC::Arguments7::decode):
2251         (CoreIPC::Arguments8::decode):
2252         (CoreIPC::Arguments10::decode):
2253         * Platform/CoreIPC/Attachment.cpp:
2254         (CoreIPC::Attachment::decode):
2255         * Platform/CoreIPC/Attachment.h:
2256         (Attachment):
2257         * Platform/CoreIPC/DataReference.cpp:
2258         (CoreIPC::DataReference::decode):
2259         * Platform/CoreIPC/DataReference.h:
2260         (DataReference):
2261         * Platform/CoreIPC/StringReference.cpp:
2262         (CoreIPC::StringReference::decode):
2263         * Platform/CoreIPC/StringReference.h:
2264         (StringReference):
2265         * Platform/CoreIPC/mac/MachPort.h:
2266         (CoreIPC::MachPort::decode):
2267         * Platform/SharedMemory.h:
2268         (Handle):
2269         * Platform/mac/SharedMemoryMac.cpp:
2270         (WebKit::SharedMemory::Handle::decode):
2271         * PluginProcess/PluginCreationParameters.cpp:
2272         (WebKit::PluginCreationParameters::decode):
2273         * PluginProcess/PluginCreationParameters.h:
2274         (PluginCreationParameters):
2275         * Shared/DictionaryPopupInfo.cpp:
2276         (WebKit::DictionaryPopupInfo::decode):
2277         * Shared/DictionaryPopupInfo.h:
2278         (DictionaryPopupInfo):
2279         * Shared/EditorState.cpp:
2280         (WebKit::EditorState::decode):
2281         * Shared/EditorState.h:
2282         (EditorState):
2283         * Shared/FontInfo.cpp:
2284         (WebKit::FontInfo::decode):
2285         * Shared/FontInfo.h:
2286         (FontInfo):
2287         * Shared/LayerTreeContext.h:
2288         (LayerTreeContext):
2289         * Shared/Network/NetworkProcessCreationParameters.cpp:
2290         (WebKit::NetworkProcessCreationParameters::decode):
2291         * Shared/Network/NetworkProcessCreationParameters.h:
2292         (NetworkProcessCreationParameters):
2293         * Shared/Network/NetworkResourceLoadParameters.cpp:
2294         (WebKit::NetworkResourceLoadParameters::decode):
2295         * Shared/Network/NetworkResourceLoadParameters.h:
2296         (NetworkResourceLoadParameters):
2297         * Shared/OriginAndDatabases.cpp:
2298         (WebKit::OriginAndDatabases::decode):
2299         * Shared/OriginAndDatabases.h:
2300         (OriginAndDatabases):
2301         * Shared/PlatformPopupMenuData.cpp:
2302         (WebKit::PlatformPopupMenuData::decode):
2303         * Shared/PlatformPopupMenuData.h:
2304         (PlatformPopupMenuData):
2305         * Shared/Plugins/NPIdentifierData.cpp:
2306         (WebKit::NPIdentifierData::decode):
2307         * Shared/Plugins/NPIdentifierData.h:
2308         (NPIdentifierData):
2309         * Shared/Plugins/NPVariantData.cpp:
2310         (WebKit::NPVariantData::decode):
2311         * Shared/Plugins/NPVariantData.h:
2312         (NPVariantData):
2313         * Shared/Plugins/PluginProcessCreationParameters.cpp:
2314         (WebKit::PluginProcessCreationParameters::decode):
2315         * Shared/Plugins/PluginProcessCreationParameters.h:
2316         (PluginProcessCreationParameters):
2317         * Shared/PrintInfo.cpp:
2318         (WebKit::PrintInfo::decode):
2319         * Shared/PrintInfo.h:
2320         (PrintInfo):
2321         * Shared/SandboxExtension.h:
2322         (Handle):
2323         (HandleArray):
2324         (WebKit::SandboxExtension::Handle::decode):
2325         (WebKit::SandboxExtension::HandleArray::decode):
2326         * Shared/SecurityOriginData.cpp:
2327         (WebKit::SecurityOriginData::decode):
2328         * Shared/SecurityOriginData.h:
2329         (SecurityOriginData):
2330         * Shared/SessionState.cpp:
2331         (WebKit::SessionState::decode):
2332         * Shared/SessionState.h:
2333         (SessionState):
2334         * Shared/ShareableBitmap.cpp:
2335         (WebKit::ShareableBitmap::Handle::decode):
2336         * Shared/ShareableBitmap.h:
2337         (Handle):
2338         * Shared/ShareableResource.cpp:
2339         (WebKit::ShareableResource::Handle::decode):
2340         * Shared/ShareableResource.h:
2341         (Handle):
2342         * Shared/SharedWorkerProcessCreationParameters.cpp:
2343         (WebKit::SharedWorkerProcessCreationParameters::decode):
2344         * Shared/SharedWorkerProcessCreationParameters.h:
2345         (SharedWorkerProcessCreationParameters):
2346         * Shared/StatisticsData.cpp:
2347         (WebKit::StatisticsData::decode):
2348         * Shared/StatisticsData.h:
2349         (StatisticsData):
2350         * Shared/StringPairVector.h:
2351         (WebKit::StringPairVector::decode):
2352         * Shared/UpdateInfo.cpp:
2353         (WebKit::UpdateInfo::decode):
2354         * Shared/UpdateInfo.h:
2355         (UpdateInfo):
2356         * Shared/UserMessageCoders.h:
2357         (WebKit::UserMessageDecoder::baseDecode):
2358         * Shared/WebContextMenuItemData.cpp:
2359         (WebKit::WebContextMenuItemData::decode):
2360         * Shared/WebContextMenuItemData.h:
2361         (WebContextMenuItemData):
2362         * Shared/WebCoreArgumentCoders.cpp:
2363         (CoreIPC::::decode):
2364         (CoreIPC::decodeImage):
2365         * Shared/WebCoreArgumentCoders.h:
2366         * Shared/WebEvent.cpp:
2367         (WebKit::WebEvent::decode):
2368         * Shared/WebEvent.h:
2369         (WebEvent):
2370         (WebMouseEvent):
2371         (WebWheelEvent):
2372         (WebKeyboardEvent):
2373         (WebGestureEvent):
2374         (WebPlatformTouchPoint):
2375         (WebTouchEvent):
2376         * Shared/WebGeolocationPosition.cpp:
2377         (WebKit::WebGeolocationPosition::Data::decode):
2378         * Shared/WebGeolocationPosition.h:
2379         (Data):
2380         * Shared/WebGestureEvent.cpp:
2381         (WebKit::WebGestureEvent::decode):
2382         * Shared/WebHitTestResult.cpp:
2383         (WebKit::WebHitTestResult::Data::decode):
2384         * Shared/WebHitTestResult.h:
2385         (Data):
2386         * Shared/WebKeyboardEvent.cpp:
2387         (WebKit::WebKeyboardEvent::decode):
2388         * Shared/WebMouseEvent.cpp:
2389         (WebKit::WebMouseEvent::decode):
2390         * Shared/WebNavigationDataStore.h:
2391         (WebKit::WebNavigationDataStore::decode):
2392         * Shared/WebPageCreationParameters.cpp:
2393         (WebKit::WebPageCreationParameters::decode):
2394         * Shared/WebPageCreationParameters.h:
2395         (WebPageCreationParameters):
2396         * Shared/WebPageGroupData.cpp:
2397         (WebKit::WebPageGroupData::decode):
2398         * Shared/WebPageGroupData.h:
2399         (WebPageGroupData):
2400         * Shared/WebPlatformTouchPoint.cpp:
2401         (WebKit::WebPlatformTouchPoint::decode):
2402         * Shared/WebPopupItem.cpp:
2403         (WebKit::WebPopupItem::decode):
2404         * Shared/WebPopupItem.h:
2405         * Shared/WebPreferencesStore.cpp:
2406         (WebKit::WebPreferencesStore::decode):
2407         * Shared/WebPreferencesStore.h:
2408         (WebPreferencesStore):
2409         * Shared/WebProcessCreationParameters.cpp:
2410         (WebKit::WebProcessCreationParameters::decode):
2411         * Shared/WebProcessCreationParameters.h:
2412         (WebProcessCreationParameters):
2413         * Shared/WebTouchEvent.cpp:
2414         (WebKit::WebTouchEvent::decode):
2415         * Shared/WebWheelEvent.cpp:
2416         (WebKit::WebWheelEvent::decode):
2417         * Shared/cf/ArgumentCodersCF.cpp:
2418         (CoreIPC::decode):
2419         * Shared/cf/ArgumentCodersCF.h:
2420         (CoreIPC):
2421         * Shared/mac/ArgumentCodersMac.h:
2422         (CoreIPC):
2423         * Shared/mac/ArgumentCodersMac.mm:
2424         (CoreIPC::decode):
2425         * Shared/mac/AttributedString.h:
2426         (AttributedString):
2427         * Shared/mac/AttributedString.mm:
2428         (WebKit::AttributedString::decode):
2429         * Shared/mac/ColorSpaceData.h:
2430         (ColorSpaceData):
2431         * Shared/mac/ColorSpaceData.mm:
2432         (WebKit::ColorSpaceData::decode):
2433         * Shared/mac/LayerTreeContextMac.mm:
2434         (WebKit::LayerTreeContext::decode):
2435         * Shared/mac/ObjCObjectGraphCoders.h:
2436         (WebContextObjCObjectGraphDecoder):
2437         (InjectedBundleObjCObjectGraphDecoder):
2438         * Shared/mac/ObjCObjectGraphCoders.mm:
2439         (WebKit::ObjCObjectGraphDecoder::baseDecode):
2440         (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2441         (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2442         (WebKit::WebContextObjCObjectGraphDecoder::decode):
2443         (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
2444         * Shared/mac/PlatformCertificateInfo.h:
2445         (PlatformCertificateInfo):
2446         * Shared/mac/PlatformCertificateInfo.mm:
2447         (WebKit::PlatformCertificateInfo::decode):
2448         * Shared/mac/RemoteLayerTreeTransaction.h:
2449         (LayerProperties):
2450         (RemoteLayerTreeTransaction):
2451         * Shared/mac/RemoteLayerTreeTransaction.mm:
2452         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
2453         (WebKit::RemoteLayerTreeTransaction::decode):
2454         * Shared/mac/SandboxExtensionMac.mm:
2455         (WebKit::SandboxExtension::Handle::decode):
2456         (WebKit::SandboxExtension::HandleArray::decode):
2457         * Shared/mac/SecItemRequestData.cpp:
2458         (WebKit::SecItemRequestData::decode):
2459         * Shared/mac/SecItemRequestData.h:
2460         * Shared/mac/SecItemResponseData.cpp:
2461         (WebKit::SecItemResponseData::decode):
2462         * Shared/mac/SecItemResponseData.h:
2463         (SecItemResponseData):
2464         * Shared/mac/WebCoreArgumentCodersMac.mm:
2465         (CoreIPC::::decodePlatformData):
2466         (CoreIPC::::decode):
2467         * UIProcess/WebContextUserMessageCoders.h:
2468         (WebKit::WebContextUserMessageDecoder::decode):
2469         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2470         (WebKit::InjectedBundleUserMessageDecoder::decode):
2471         * WebProcess/Plugins/Plugin.cpp:
2472         (WebKit::Plugin::Parameters::decode):
2473         * WebProcess/Plugins/Plugin.h:
2474         (Parameters):
2475
2476 2013-02-01  Carlos Garcia Campos  <cgarcia@igalia.com>
2477
2478         [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
2479         https://bugs.webkit.org/show_bug.cgi?id=108607
2480
2481         Reviewed by Anders Carlsson.
2482
2483         * Platform/gtk/WorkQueueGtk.cpp:
2484         (WorkQueue::EventSource::executeEventSource): Remove the is valid
2485         work queue check.
2486         (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
2487         reference when a new job is scheduled and unref it when it
2488         finishes.
2489
2490 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2491
2492         Unreviewed, rolling out r141319.
2493         http://trac.webkit.org/changeset/141319
2494         https://bugs.webkit.org/show_bug.cgi?id=108629
2495
2496         This patch is causing the UIProcess to hang on GTK port when
2497         loading plugins (Requested by chris-qBT_laptop on #webkit).
2498
2499         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2500         (WebKit::PluginProcessProxy::scanPlugin):
2501
2502 2013-02-01  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2503
2504         [EFL][WK2] EwkContext should be based on C WK2 API
2505         https://bugs.webkit.org/show_bug.cgi?id=107666
2506
2507         Reviewed by Andreas Kling.
2508
2509         EwkContext should be based on C WK2 API so that API layering is not violated.
2510
2511         * UIProcess/API/efl/EwkView.cpp:
2512         (EwkView::EwkView):
2513         * UIProcess/API/efl/ewk_context.cpp:
2514         (EwkContext::EwkContext):
2515         (EwkContext::create):
2516         (EwkContext::cookieManager):
2517         (EwkContext::ensureFaviconDatabase):
2518         (EwkContext::setFaviconDatabaseDirectoryPath):
2519         (EwkContext::addVisitedLink):
2520         (EwkContext::setCacheModel):
2521         (EwkContext::cacheModel):
2522         (EwkContext::setAdditionalPluginPath):
2523         (EwkContext::clearResourceCache):
2524         * UIProcess/API/efl/ewk_context_private.h:
2525         (EwkContext):
2526         * UIProcess/API/efl/ewk_view.cpp:
2527         (ewk_view_base_add):
2528
2529 2013-02-01  Christophe Dumez  <christophe.dumez@intel.com>
2530
2531         [EFL][WK2] Use C API inside ewk_auth_request
2532         https://bugs.webkit.org/show_bug.cgi?id=107806
2533
2534         Reviewed by Andreas Kling.
2535
2536         Use C API inside ewk_auth_request instead of accessing C++ internal
2537         classes directly, to avoid violating layering.
2538
2539         * UIProcess/API/efl/ewk_auth_request.cpp:
2540         (EwkAuthRequest::EwkAuthRequest):
2541         (EwkAuthRequest::suggestedUsername):
2542         (EwkAuthRequest::realm):
2543         (EwkAuthRequest::host):
2544         (EwkAuthRequest::continueWithoutCredential):
2545         (EwkAuthRequest::authenticate):
2546         (EwkAuthRequest::isRetrying):
2547         (ewk_auth_request_authenticate):
2548         * UIProcess/API/efl/ewk_auth_request_private.h:
2549         (EwkAuthRequest::create):
2550         (EwkAuthRequest):
2551         * UIProcess/efl/PageLoadClientEfl.cpp:
2552         (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
2553
2554 2013-02-01  Seulgi Kim  <seulgikim@company100.net>
2555
2556         [Gtk][WK2] Fix build after recent WebKit2 changes
2557         https://bugs.webkit.org/show_bug.cgi?id=108588
2558
2559         Reviewed by Andreas Kling.
2560
2561         Don't remove WorkQueue during execution.
2562         Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2563
2564         * Platform/gtk/WorkQueueGtk.cpp:
2565         (WorkQueue::EventSource::~EventSource):
2566         (WorkQueue::EventSource::executeEventSource):
2567         (WorkQueue::dispatch):
2568         (WorkQueue::dispatchAfterDelay):
2569         (WorkQueue::dispatchOnTermination):
2570
2571 2013-02-01  Alexis Menard  <alexis@webkit.org>
2572
2573         Enable unprefixed CSS transitions by default.
2574         https://bugs.webkit.org/show_bug.cgi?id=108216
2575
2576         Reviewed by Dean Jackson.
2577
2578         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2579         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
2580         guard the unprefixing work for CSS Transforms and animations.
2581
2582         * Configurations/FeatureDefines.xcconfig:
2583
2584 2013-02-01  Jae Hyun Park  <jae.park@company100.net>
2585
2586         Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
2587         https://bugs.webkit.org/show_bug.cgi?id=108590
2588
2589         Reviewed by Noam Rosenthal.
2590
2591         Sort class declarations in alphabetical order.
2592
2593         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2594         (WebCore):
2595
2596 2013-02-01  Gwang Yoon Hwang  <ryumiel@company100.net>
2597
2598         [EFL][WK2] MiniBrowser segfaults on loading google.com
2599         https://bugs.webkit.org/show_bug.cgi?id=108597
2600
2601         Reviewed by Andreas Kling.
2602
2603         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2604         (CoreIPC::Connection::processMessage):
2605         oolMessageBody should be properly initialized before it is used.
2606
2607         This patch also adds omitted break statement.
2608
2609 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
2610
2611         [Qt] Add MessageFlags.h in Target.pri
2612         https://bugs.webkit.org/show_bug.cgi?id=108583
2613
2614         Reviewed by Kentaro Hara.
2615
2616         Since MessageDecoder and MessageEncoder include MessageFlags.h, it
2617         should be included in Target.pri.
2618
2619         * Target.pri:
2620
2621 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
2622
2623         Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
2624         https://bugs.webkit.org/show_bug.cgi?id=108149
2625
2626         Reviewed by Noam Rosenthal.
2627
2628         This patch moves Coordinated Graphics related code to WebCore. To
2629         implement Threaded Coordinated Graphics, most of Coordianted Graphics
2630         code should be shared. Therefore, they should reside in WebCore instead of
2631         WebKit2.
2632
2633         When moving to WebCore, two renamings have been done.
2634
2635         1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
2636
2637         2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
2638         CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
2639         respectively.
2640
2641         No new tests, covered by existing tests.
2642
2643         * CMakeLists.txt:
2644         * Scripts/webkit2/messages.py:
2645         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2646         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2647         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2648         * Target.pri:
2649         * UIProcess/API/efl/EwkView.cpp:
2650         * UIProcess/API/efl/EwkView.h:
2651         * UIProcess/API/qt/qquickwebpage.cpp:
2652         * UIProcess/API/qt/raw/qrawwebview.cpp:
2653         * UIProcess/API/qt/raw/qrawwebview_p.h:
2654         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2655         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2656         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2657         * UIProcess/efl/PageClientBase.cpp:
2658         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2659         * UIProcess/qt/QtWebPageSGNode.cpp:
2660         * UIProcess/qt/QtWebPageSGNode.h:
2661         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2662         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2663
2664 2013-01-31  Rafael Brandao  <rafael.lobo@openbossa.org>
2665
2666         [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
2667         https://bugs.webkit.org/show_bug.cgi?id=108548
2668
2669         Reviewed by Anders Carlsson.
2670
2671         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2672         (CoreIPC::Connection::platformInvalidate):
2673         (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
2674         logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
2675         (CoreIPC::Connection::open):
2676         (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
2677         * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
2678         count when the execution is started and decrease it when the work item is deleted,
2679         following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2680         (WorkQueue::WorkItemQt::~WorkItemQt):
2681         (WorkQueue::WorkItemQt::execute):
2682         (WorkQueue::dispatch):
2683         (WorkQueue::dispatchAfterDelay):
2684         * UIProcess/WebPageProxy.cpp:
2685         (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
2686         mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
2687
2688 2013-01-31  Changhun Kang  <temoochin@company100.net>
2689
2690         Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2691         https://bugs.webkit.org/show_bug.cgi?id=108308
2692
2693         Reviewed by Dimitri Glazkov.
2694
2695 2013-01-31  Anders Carlsson  <andersca@apple.com>
2696
2697         StorageManager should be ref-counted
2698         https://bugs.webkit.org/show_bug.cgi?id=108553
2699
2700         Reviewed by Beth Dakin.
2701
2702         It's likely we'd want to have the storage manager outlive its context at times, so make it
2703         reference counted.
2704
2705         * UIProcess/Storage/StorageManager.cpp:
2706         (WebKit::StorageManager::create):
2707         (WebKit):
2708         * UIProcess/Storage/StorageManager.h:
2709         (StorageManager):
2710         * UIProcess/WebContext.cpp:
2711         (WebKit::WebContext::WebContext):
2712         * UIProcess/WebContext.h:
2713         (WebContext):
2714
2715 2013-01-31  Anders Carlsson  <andersca@apple.com>
2716
2717         WorkQueue should be a ref-counted class
2718         https://bugs.webkit.org/show_bug.cgi?id=108544
2719
2720         Reviewed by Sam Weinig.
2721
2722         Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
2723         implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
2724         and ensures that the WorkQueue object won't go away while dispatched functions are running.
2725
2726         * Platform/CoreIPC/Connection.cpp:
2727         (CoreIPC::Connection::Connection):
2728         (CoreIPC::Connection::~Connection):
2729         (CoreIPC::Connection::addQueueClient):
2730         (CoreIPC::Connection::removeQueueClient):
2731         (CoreIPC::Connection::invalidate):
2732         (CoreIPC::Connection::sendMessage):
2733         (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
2734         (CoreIPC::Connection::connectionDidClose):
2735         * Platform/CoreIPC/Connection.h:
2736         (Connection):
2737         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2738         (CoreIPC::createDataAvailableSource):
2739         (CoreIPC::Connection::open):
2740         (CoreIPC::Connection::initializeDeadNameSource):
2741         * Platform/WorkQueue.cpp:
2742         (WorkQueue::create):
2743         (WorkQueue::WorkQueue):
2744         (WorkQueue::~WorkQueue):
2745         * Platform/WorkQueue.h:
2746         (WorkQueue):
2747         * Platform/mac/WorkQueueMac.cpp:
2748         (WorkQueue::dispatch):
2749         (WorkQueue::dispatchAfterDelay):
2750         * Shared/ChildProcess.cpp:
2751         (WebKit::didCloseOnConnectionWorkQueue):
2752         * UIProcess/Launcher/ProcessLauncher.cpp:
2753         (WebKit::processLauncherWorkQueue):
2754         (WebKit::ProcessLauncher::ProcessLauncher):
2755         * UIProcess/WebProcessProxy.cpp:
2756         (WebKit::pluginWorkQueue):
2757         (WebKit::WebProcessProxy::getPlugins):
2758
2759 2013-01-31  Rafael Brandao  <rafael.lobo@openbossa.org>
2760
2761         [Qt][WK2] Fix build after removal of MessageID.h
2762         https://bugs.webkit.org/show_bug.cgi?id=108534
2763
2764         Reviewed by Anders Carlsson.
2765
2766         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2767         (CoreIPC::MessageInfo::MessageInfo):
2768         (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
2769         (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
2770         (MessageInfo):
2771         (CoreIPC::Connection::processMessage):
2772         (CoreIPC::Connection::sendOutgoingMessage):
2773         * Target.pri:
2774         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2775         * UIProcess/DrawingAreaProxy.cpp:
2776         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2777         * WebProcess/soup/WebSoupRequestManager.cpp:
2778
2779 2013-01-31  Brady Eidson  <beidson@apple.com>
2780
2781         Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
2782         <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
2783
2784         Reviewed by Alexey Proskuryakov.
2785
2786         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2787         (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
2788           NetworkProcess, still add this ResourceLoader to the scheduler's records.
2789
2790 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2791
2792         Unreviewed trivial Unix build fix.
2793
2794         Use Vector<> instead of Deque<> when iterating
2795         over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
2796         case.
2797
2798         * Platform/CoreIPC/ArgumentDecoder.cpp:
2799
2800 2013-01-30  Brian Weinstein  <bweinstein@apple.com>
2801
2802         Add a call to the page UI client to determine if a plug-in should load
2803         https://bugs.webkit.org/show_bug.cgi?id=108407
2804         <rdar://problem/13066332>
2805
2806         Reviewed by Anders Carlsson.
2807
2808         This patch adds a client call to the WKPageUIClient to be called to determine
2809         whether or not a plug-in should load.
2810
2811         * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
2812         * UIProcess/WebPageProxy.cpp:
2813         (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
2814             m_uiClient.shouldInstantiatePlugin.
2815         * UIProcess/WebPageProxy.h:
2816         * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
2817         * UIProcess/WebProcessProxy.cpp:
2818         (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
2819         * UIProcess/WebProcessProxy.h:
2820         * UIProcess/WebUIClient.cpp:
2821         (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
2822             the client function isn't defined, and call the function if it is.
2823         * UIProcess/WebUIClient.h:
2824         * UIProcess/mac/WebInspectorProxyMac.mm:
2825         (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
2826             client function.
2827         * WebProcess/WebPage/WebPage.cpp:
2828         (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
2829         (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
2830             send the message to the WebPageProxy, not the WebProcessProxy.
2831         * WebProcess/WebPage/WebPage.h:
2832
2833 2013-01-31  Anders Carlsson  <andersca@apple.com>
2834
2835         Use a Vector for IPC attachments
2836         https://bugs.webkit.org/show_bug.cgi?id=108517
2837
2838         Reviewed by Sam Weinig.
2839
2840         We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
2841
2842         * Platform/CoreIPC/ArgumentDecoder.cpp:
2843         (CoreIPC::ArgumentDecoder::create):
2844         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2845         (CoreIPC::ArgumentDecoder::removeAttachment):
2846         * Platform/CoreIPC/ArgumentDecoder.h:
2847         (ArgumentDecoder):
2848         * Platform/CoreIPC/Connection.h:
2849         * Platform/CoreIPC/MessageDecoder.cpp:
2850         (CoreIPC::MessageDecoder::create):
2851         (CoreIPC::MessageDecoder::MessageDecoder):
2852         * Platform/CoreIPC/MessageDecoder.h:
2853         (MessageDecoder):
2854         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2855         (CoreIPC::createMessageDecoder):
2856
2857 2013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
2858
2859         Disable ENABLE_FULLSCREEN_API on iOS
2860         https://bugs.webkit.org/show_bug.cgi?id=108250
2861
2862         Reviewed by Benjamin Poulain.
2863
2864         * Configurations/FeatureDefines.xcconfig:
2865
2866 2013-01-31  Enrica Casucci  <enrica@apple.com>
2867
2868         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2869         https://bugs.webkit.org/show_bug.cgi?id=108396.
2870         <rdar://problem/12920461>
2871
2872         Reviewed by Alexey Proskuryakov.
2873
2874         This patch adds new bundle client API to receive notifications
2875         relative the pasteboard activity. There are 2 new API added to
2876         InjectedBundleEditorClient, to receive notification before and
2877         after the pasteboard content is added and one API to provide
2878         additional content to add to the pasteboard.
2879         In order to create content to add to the pasteboard, WKWebArchiveRef
2880         and WKWebArchiveResourcesRef have been added to the set of API level
2881         object.
2882         This work is a joint effort with Sam Weinig who contributed the
2883         support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
2884         files. Sam is the author of the first chunk of changes listed below.
2885         
2886         * Shared/API/c/WKBase.h:
2887         * Shared/API/c/WKSharedAPICast.h:
2888         * Shared/API/c/mac/WKWebArchive.cpp: Added.
2889         (WKWebArchiveGetTypeID):
2890         (WKWebArchiveCreate):
2891         (WKWebArchiveCreateWithData):
2892         (WKWebArchiveCreateFromRange):
2893         (WKWebArchiveCopyMainResource):
2894         (WKWebArchiveCopySubresources):
2895         (WKWebArchiveCopySubframeArchives):
2896         (WKWebArchiveCopyData):
2897         * Shared/API/c/mac/WKWebArchive.h: Added.
2898         * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
2899         (WKWebArchiveResourceGetTypeID):
2900         (WKWebArchiveResourceCreate):
2901         (WKWebArchiveResourceCopyData):
2902         (WKWebArchiveResourceCopyURL):
2903         (WKWebArchiveResourceCopyMIMEType):
2904         (WKWebArchiveResourceCopyTextEncoding):
2905         * Shared/API/c/mac/WKWebArchiveResource.h: Added.
2906         * Shared/APIObject.h:
2907         * Shared/WebArchive.cpp: Added.
2908         (WebKit::WebArchive::create):
2909         (WebKit::WebArchive::WebArchive):
2910         (WebKit::WebArchive::~WebArchive):
2911         (WebKit::WebArchive::mainResource):
2912         (WebKit::WebArchive::subresources):
2913         (WebKit::WebArchive::subframeArchives):
2914         (WebKit::releaseCFData):
2915         (WebKit::WebArchive::data):
2916         (WebKit::WebArchive::coreLegacyWebArchive):
2917         * Shared/WebArchive.h: Added.
2918         (WebKit::WebArchive::type):
2919         * Shared/WebArchiveResource.cpp: Added.
2920         (WebKit::WebArchiveResource::create):
2921         (WebKit::WebArchiveResource::WebArchiveResource):
2922         (WebKit::WebArchiveResource::~WebArchiveResource):
2923         (WebKit::releaseCFData):
2924         (WebKit::WebArchiveResource::data):
2925         (WebKit::WebArchiveResource::URL):
2926         (WebKit::WebArchiveResource::MIMEType):
2927         (WebKit::WebArchiveResource::textEncoding):
2928         (WebKit::WebArchiveResource::coreArchiveResource):
2929         * Shared/WebArchiveResource.h: Added.
2930         (WebKit::WebArchiveResource::type):
2931         * WebKit2.xcodeproj/project.pbxproj:
2932         
2933         * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
2934         * Shared/APIClientTraits.h:
2935         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2936         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2937         (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
2938         (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
2939         (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
2940         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
2941         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2942         (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
2943         (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
2944         (WebKit::WebEditorClient::getClientPasteboardDataForRange):
2945         * WebProcess/WebCoreSupport/WebEditorClient.h:
2946
2947 2013-01-31  Anders Carlsson  <andersca@apple.com>
2948
2949         Remove MessageID.h
2950         https://bugs.webkit.org/show_bug.cgi?id=108516
2951
2952         Reviewed by Sam Weinig.
2953
2954         * Platform/CoreIPC/Connection.cpp:
2955         (CoreIPC::Connection::processIncomingMessage):
2956         (CoreIPC::Connection::sendOutgoingMessages):
2957         (CoreIPC::Connection::dispatchSyncMessage):
2958         (CoreIPC::Connection::dispatchMessage):
2959         * Platform/CoreIPC/Connection.h:
2960         (CoreIPC):
2961         (Connection):
2962         * Platform/CoreIPC/MessageID.h: Removed.
2963         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2964         (CoreIPC::Connection::sendOutgoingMessage):
2965         (CoreIPC::Connection::receiveSourceEventHandler):
2966         * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
2967         * Shared/CoreIPCSupport/WebContextMessageKinds.h:
2968         * UIProcess/DrawingAreaProxy.h:
2969         (CoreIPC):
2970         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2971         * UIProcess/WebApplicationCacheManagerProxy.h:
2972         * UIProcess/WebContext.cpp:
2973         (WebKit::WebContext::WebContext):
2974         (WebKit::WebContext::didReceiveMessage):
2975         (WebKit::WebContext::didReceiveSyncMessage):
2976         * UIProcess/WebCookieManagerProxy.h:
2977         * UIProcess/WebFrameProxy.h:
2978         (CoreIPC):
2979         * UIProcess/WebFullScreenManagerProxy.h:
2980         (CoreIPC):
2981         * UIProcess/WebIconDatabase.h:
2982         (CoreIPC):
2983         * UIProcess/WebPageProxy.cpp:
2984         * UIProcess/WebPageProxy.h:
2985         (CoreIPC):
2986         * WebKit2.xcodeproj/project.pbxproj:
2987         * WebProcess/FullScreen/WebFullScreenManager.cpp:
2988         * WebProcess/FullScreen/WebFullScreenManager.h:
2989         (CoreIPC):
2990         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2991         (WebKit::InjectedBundle::postMessage):
2992         (WebKit::InjectedBundle::postSynchronousMessage):
2993         * WebProcess/InjectedBundle/InjectedBundle.h:
2994         (CoreIPC):
2995         * WebProcess/WebPage/DrawingArea.h:
2996         (CoreIPC):
2997         * WebProcess/WebPage/LayerTreeHost.h:
2998         (CoreIPC):
2999         * WebProcess/WebPage/WebPage.cpp:
3000         * WebProcess/WebPage/WebPage.h:
3001         (CoreIPC):
3002         * WebProcess/WebPage/WebPageGroupProxy.h:
3003         (CoreIPC):
3004
3005 2013-01-31  Mike West  <mkwst@chromium.org>
3006
3007         Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
3008         https://bugs.webkit.org/show_bug.cgi?id=108476
3009
3010         Reviewed by Anders Carlsson.
3011
3012         * WebProcess/Plugins/PluginView.cpp:
3013         (WebKit::PluginView::storageBlockingStateChanged):
3014         (WebKit::PluginView::isPrivateBrowsingEnabled):
3015
3016 2013-01-31  Anders Carlsson  <andersca@apple.com>
3017
3018         Get rid of IncomingMessage
3019         https://bugs.webkit.org/show_bug.cgi?id=108514
3020
3021         Reviewed by Sam Weinig.
3022
3023         * Platform/CoreIPC/Connection.cpp:
3024         (Connection::SyncMessageState):
3025         (ConnectionAndIncomingMessage):
3026         (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
3027         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
3028         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
3029         (CoreIPC::Connection::waitForMessage):
3030         (CoreIPC::Connection::processIncomingMessage):
3031         (CoreIPC::Connection::enqueueIncomingMessage):
3032         (CoreIPC::Connection::dispatchMessage):
3033         (CoreIPC::Connection::dispatchOneMessage):
3034         * Platform/CoreIPC/Connection.h:
3035         (Connection):
3036
3037 2013-01-31  Patrick Gansterer  <paroga@webkit.org>
3038
3039         Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
3040         https://bugs.webkit.org/show_bug.cgi?id=108439
3041
3042         Reviewed by Brent Fulgham.
3043
3044         PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
3045
3046         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
3047
3048 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
3049
3050         Unreviewed build fix: Remove Web Intents files from
3051         the Qt build system.
3052
3053         * Target.pri:
3054
3055 2013-01-31  Zan Dobersek  <zdobersek@igalia.com>
3056
3057         Unreviewed GTK build fix.
3058         Removing build targets for Web Intents files that were removed in r141448.
3059
3060         * GNUmakefile.list.am:
3061
3062 2013-01-31  Anders Carlsson  <andersca@apple.com>
3063
3064         Remove Web Intents code from WebKit2
3065         https://bugs.webkit.org/show_bug.cgi?id=108506
3066
3067         Reviewed by Simon Fraser.
3068
3069         Since nobody builds with Web Intents enabled anymore, and since the code is going to 
3070         be removed from WebCore, remove it from WebKit2.
3071
3072         * Shared/API/c/WKBase.h:
3073         * Shared/APIClientTraits.cpp:
3074         (WebKit):
3075         * Shared/APIObject.h:
3076         * Shared/IntentData.cpp: Removed.
3077         * Shared/IntentData.h: Removed.
3078         * Shared/IntentServiceInfo.cpp: Removed.
3079         * Shared/IntentServiceInfo.h: Removed.
3080         * Shared/WebIntentServiceInfo.cpp: Removed.
3081         * Shared/WebIntentServiceInfo.h: Removed.
3082         * UIProcess/API/C/WKAPICast.h:
3083         (WebKit):
3084         * UIProcess/API/C/WKIntentData.cpp: Removed.
3085         * UIProcess/API/C/WKIntentData.h: Removed.
3086         * UIProcess/API/C/WKIntentServiceInfo.cpp: Removed.
3087         * UIProcess/API/C/WKIntentServiceInfo.h: Removed.
3088         * UIProcess/API/C/WKPage.cpp:
3089         * UIProcess/API/C/WKPage.h:
3090         * UIProcess/WebIntentData.cpp: Removed.
3091         * UIProcess/WebIntentData.h: Removed.
3092         * UIProcess/WebLoaderClient.cpp:
3093         * UIProcess/WebLoaderClient.h:
3094         (WebKit):
3095         (WebLoaderClient):
3096         * UIProcess/WebPageProxy.cpp:
3097         * UIProcess/WebPageProxy.h:
3098         (WebKit):
3099         (WebPageProxy):
3100         * UIProcess/WebPageProxy.messages.in:
3101         * UIProcess/WebProcessProxy.cpp:
3102         * UIProcess/WebProcessProxy.h:
3103         (WebProcessProxy):
3104         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
3105         (WebKit):
3106         * WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp: Removed.
3107         * WebProcess/InjectedBundle/API/c/WKBundleIntent.h: Removed.
3108         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Removed.
3109         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Removed.
3110         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3111         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
3112         * WebProcess/InjectedBundle/InjectedBundleIntent.cpp: Removed.
3113         * WebProcess/InjectedBundle/InjectedBundleIntent.h: Removed.
3114         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Removed.
3115         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Removed.
3116         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3117         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
3118         (WebKit):
3119         (InjectedBundlePageLoaderClient):
3120         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3121         (WebKit):
3122         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3123         (WebFrameLoaderClient):
3124         * WebProcess/WebPage/WebFrame.cpp:
3125         * WebProcess/WebPage/WebFrame.h:
3126         (WebCore):
3127         (WebKit):
3128         (WebFrame):
3129         * WebProcess/WebPage/WebPage.cpp:
3130         * WebProcess/WebPage/WebPage.h:
3131         (WebCore):
3132         (WebKit):
3133         (WebPage):
3134         * WebProcess/WebPage/WebPage.messages.in:
3135         * WebProcess/WebProcess.cpp:
3136         * WebProcess/WebProcess.h:
3137         (WebCore):
3138         (WebProcess):
3139         * WebProcess/WebProcess.messages.in:
3140
3141 2013-01-31  Brady Eidson  <beidson@apple.com>
3142
3143         Lack of a log level string should not obliterate compiled in logging channel state.
3144         https://bugs.webkit.org/show_bug.cgi?id=108502
3145
3146         Reviewed by Alexey Proskuryakov and Sam Weinig.
3147
3148         * Platform/mac/Logging.mac.mm:
3149         (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone.
3150
3151 2013-01-31  Alexey Proskuryakov  <ap@apple.com>
3152
3153         WebProcess sandbox profile overhaul.
3154
3155         Reviewed by Sam Weinig.
3156
3157         Moves some rules together by susbystem for easier maintenance.
3158
3159         Addresses <rdar://problem/9276393>, <rdar://problem/10844321>, <rdar://problem/12408537>,
3160         <rdar://problem/12558524>.
3161
3162         * WebProcess/com.apple.WebProcess.sb.in:
3163
3164 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
3165
3166         Unreviewed trivial build fix: Pre C++11 the use of
3167         >> in nested templates is ambiguous in the grammar and
3168         requires the insertion of a space here. Since these files are
3169         not Mac specific we don't require C++11 yet and a space
3170         fixes the build.
3171
3172         * Platform/CoreIPC/Connection.h:
3173         (Connection):
3174         * Shared/ChildProcessProxy.h:
3175         (ChildProcessProxy):
3176
3177 2013-01-31  Christophe Dumez  <dchris@gmail.com>
3178
3179         [EFL] Disable Web Intents
3180         https://bugs.webkit.org/show_bug.cgi?id=108457
3181
3182         Reviewed by Alexey Proskuryakov.
3183
3184         Remove code related to Web Intents from EFL
3185         WebKit2.
3186
3187         * CMakeLists.txt:
3188         * PlatformEfl.cmake:
3189         * UIProcess/API/efl/EWebKit2.h:
3190         * UIProcess/API/efl/EwkViewCallbacks.h:
3191         * UIProcess/API/efl/ewk_intent.cpp: Removed.
3192         * UIProcess/API/efl/ewk_intent.h: Removed.
3193         * UIProcess/API/efl/ewk_intent_private.h: Removed.
3194         * UIProcess/API/efl/ewk_intent_service.cpp: Removed.
3195         * UIProcess/API/efl/ewk_intent_service.h: Removed.
3196         * UIProcess/API/efl/ewk_intent_service_private.h: Removed.
3197         * UIProcess/API/efl/ewk_view.cpp:
3198         * UIProcess/API/efl/ewk_view.h:
3199         * UIProcess/API/efl/tests/resources/intent-request.html: Removed.
3200         * UIProcess/API/efl/tests/resources/intent-service.html: Removed.
3201         * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed.
3202         * UIProcess/efl/PageLoadClientEfl.cpp:
3203         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
3204         * UIProcess/efl/PageLoadClientEfl.h:
3205         (PageLoadClientEfl):
3206
3207 2013-01-31  Alexey Proskuryakov  <ap@apple.com>
3208
3209         <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3210
3211         Address review comments.
3212
3213         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
3214         * WebProcess/com.apple.WebProcess.sb.in:
3215
3216 2013-01-31  Anders Carlsson  <andersca@apple.com>
3217
3218         Stop using OutgoingMessage
3219         https://bugs.webkit.org/show_bug.cgi?id=108495
3220
3221         Reviewed by Sam Weinig.
3222
3223         * Platform/CoreIPC/Connection.cpp:
3224         (CoreIPC::Connection::sendMessage):
3225         (CoreIPC::Connection::sendOutgoingMessages):
3226         * Platform/CoreIPC/Connection.h:
3227         (Connection):
3228         * Shared/ChildProcessProxy.cpp:
3229         (WebKit::ChildProcessProxy::~ChildProcessProxy):
3230         (WebKit::ChildProcessProxy::sendMessage):
3231         (WebKit::ChildProcessProxy::didFinishLaunching):
3232         * Shared/ChildProcessProxy.h:
3233         (ChildProcessProxy):
3234
3235 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
3236
3237         [Qt] Make it possible to compile WebKit2 Qt related files without access to internal WK2 C++ API
3238         https://bugs.webkit.org/show_bug.cgi?id=108472
3239
3240         Reviewed by Andreas Kling.
3241
3242         Add a new module to the qmake build system that represents the part of the WebKit2 Qt integration
3243         that doesn't depend on WebKit2 internals.
3244
3245         Changed qwebnavigationhistory.cpp to not use any internal headers and compile it as part of the
3246         internals-free module.
3247
3248         * Target.pri:
3249         * UIProcess/API/qt/qwebnavigationhistory.cpp:
3250         * WebKit2.pro:
3251         * WebKit2QML.pri: Added.
3252
3253 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
3254
3255         Unreviewed trivial build fix: Add missing virtual destructor to
3256         LayerTreeRendererClient. Otherwise the build with -Werror breaks, which
3257         complains (rightly so) that we're deleting a sub-class where the super class
3258         doesn't have a virtual destructor.
3259
3260         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3261         (WebKit::LayerTreeRendererClient::~LayerTreeRendererClient):
3262
3263 2013-01-31  Seulgi Kim  <seulgikim@company100.net>
3264
3265         Coordinated Graphics: view the debug border/repaint count of the non composited layer.
3266         https://bugs.webkit.org/show_bug.cgi?id=108401
3267
3268         Reviewed by Noam Rosenthal.
3269
3270         Make non-compositing layer draw debug border and show repaint counter
3271         accroding to settings.
3272
3273         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3274         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3275
3276 2013-01-31  Paweł Forysiuk  <tuxator@o2.pl>
3277
3278         InjectedBundle is being built even with --disable-webkit2
3279         https://bugs.webkit.org/show_bug.cgi?id=108364
3280
3281         Reviewed by Gustavo Noronha Silva.
3282
3283         * GNUmakefile.am: Wrap Injected bundle with ENABLE_WEBKIT2 condition
3284
3285 2013-01-31  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3286
3287         [EFL][WK2] RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl should be based on C API
3288         https://bugs.webkit.org/show_bug.cgi?id=107685
3289
3290         Reviewed by Benjamin Poulain.
3291
3292         RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl
3293         should be based on C API so that API layering is not violated.
3294
3295         * UIProcess/API/efl/ewk_context.cpp:
3296         (EwkContext::EwkContext):
3297         * UIProcess/efl/ContextHistoryClientEfl.cpp:
3298         (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
3299         (WebKit::ContextHistoryClientEfl::~ContextHistoryClientEfl):
3300         * UIProcess/efl/ContextHistoryClientEfl.h:
3301         (WebKit::ContextHistoryClientEfl::create):
3302         (ContextHistoryClientEfl):
3303         * UIProcess/efl/DownloadManagerEfl.cpp:
3304         (WebKit::DownloadManagerEfl::DownloadManagerEfl):
3305         (WebKit::DownloadManagerEfl::~DownloadManagerEfl):
3306         * UIProcess/efl/DownloadManagerEfl.h:
3307         (WebKit::DownloadManagerEfl::create):
3308         (DownloadManagerEfl):
3309         * UIProcess/efl/RequestManagerClientEfl.cpp:
3310         (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
3311         * UIProcess/efl/RequestManagerClientEfl.h:
3312         (WebKit::RequestManagerClientEfl::create):
3313         (RequestManagerClientEfl):
3314
3315 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
3316
3317         Unreviewed, rolling out r141110.
3318         http://trac.webkit.org/changeset/141110
3319         https://bugs.webkit.org/show_bug.cgi?id=108349
3320
3321         This patch broke WK2-EFL unit tests (Requested by grzegorz on
3322         #webkit).
3323
3324         * UIProcess/efl/TextCheckerEfl.cpp:
3325         * WebProcess/WebCoreSupport/WebEditorClient.h:
3326         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
3327
3328 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
3329
3330         Coordinated Graphics : Remove WebCoordinatedSurface dependency from CoordinatedSurface
3331         https://bugs.webkit.org/show_bug.cgi?id=108259
3332
3333         Reviewed by Noam Rosenthal.
3334
3335         This is a preparation patch for Threaded Coordinated Graphics.
3336
3337         WebCoordinatedSurface dependency should be removed from
3338         CoordinatedSurface so as to share CoordinatedSurface between
3339         WebCoordinatedSurface and CoordinatedSurface of WebKit1, which will be
3340         implemented for Threaded Coordinated Graphics.
3341
3342         This patch introduces CoordinatedSurface::Factory, which is a function
3343         pointer that creates CoordinatedSurfaces. CoordinatedLayerTreeHost sets
3344         static CoordinatedSurface::Factory member variable. Classes that use
3345         CoordinatedSurface, which are CoordinatedImageBacking and UpdateAtlas,
3346         create CoordinatedSurfaces by calling CoordinatedSurface::create, which
3347         will call the function set by CoordinatedLayerTreeHost.
3348
3349         This way, we can remove the WebCoordinatedSurface dependency from
3350         CoordinatedSurface and be able to share the code in Threaded Coordinated
3351         Graphics.
3352
3353         No new tests. No change in behavior.
3354
3355         * CMakeLists.txt:
3356         * Shared/CoordinatedGraphics/CoordinatedSurface.cpp: Added.
3357         (WebKit):
3358         (WebKit::CoordinatedSurface::setFactory):
3359         (WebKit::CoordinatedSurface::create):
3360         * Shared/CoordinatedGraphics/CoordinatedSurface.h:
3361         (CoordinatedSurface):
3362         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3363         * Target.pri:
3364         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3365         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3366         (WebKit::CoordinatedLayerTreeHost::createCoordinatedSurface):
3367         (WebKit):
3368         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3369
3370 2013-01-30  Tim Horton  <timothy_horton@apple.com>
3371
3372         Unreviewed build fix after http://trac.webkit.org/changeset/141372.
3373
3374         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3375         (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3376
3377 2013-01-30  Jae Hyun Park  <jae.park@company100.net>
3378
3379         Coordinated Graphics : Remove CoordinatedLayerTreeHostProxy dependency from LayerTreeRenderer
3380         https://bugs.webkit.org/show_bug.cgi?id=108164
3381
3382         Reviewed by Benjamin Poulain.
3383
3384         This is a preparation patch for Threaded Coordinated Graphics.
3385
3386         LayerTreeRenderer should not depend on CoordinatedLayerTreeHostProxy so that it
3387         can be moved to WebCore.  This patch introduces LayerTreeRendererClient which
3388         is implemented in CoordinatedLayerTreeHostProxy. LayerTreeRenderer uses this
3389         client, instead of using CoordinatedLayerTreeHostProxy directly.
3390
3391         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3392         (CoordinatedLayerTreeHostProxy):
3393         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3394         (WebKit::LayerTreeRenderer::LayerTreeRenderer):
3395         (WebKit::LayerTreeRenderer::animationFrameReady):
3396         (WebKit::LayerTreeRenderer::updateViewport):
3397         (WebKit::LayerTreeRenderer::renderNextFrame):
3398         (WebKit::LayerTreeRenderer::purgeBackingStores):
3399         (WebKit::LayerTreeRenderer::detach):
3400         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3401         (WebKit):
3402         (LayerTreeRendererClient):
3403         (LayerTreeRenderer):
3404
3405 2013-01-30  Tim Horton  <timothy_horton@apple.com>
3406
3407         PDFPlugin: Should respond to three-finger tap for dictionary definitions
3408         https://bugs.webkit.org/show_bug.cgi?id=108418
3409         <rdar://problem/13121409>
3410
3411         Reviewed by Simon Fraser.
3412
3413         * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add default implementation of performDictionaryLookupAtLocation.
3414         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add getSelectionForWordAtPoint and searchInDictionaryWithSelection.
3415         * WebProcess/Plugins/PDF/PDFPlugin.h: Add performDictionaryLookupAtLocation.
3416         * WebProcess/Plugins/PDF/PDFPlugin.mm: Grab a PDFSelection representing the word encompassing the given point, and
3417         throw up a dictionary popover.
3418         (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3419         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:  Add default implementation of performDictionaryLookupAtLocation.
3420         * WebProcess/Plugins/Plugin.h:  Add performDictionaryLookupAtLocation.
3421         * WebProcess/Plugins/PluginProxy.h: Add default implementation of performDictionaryLookupAtLocation.
3422         * WebProcess/Plugins/PluginView.cpp: 
3423         (WebKit::PluginView::performDictionaryLookupAtLocation): Forward performDictionaryLookupAtLocation to the plugin.
3424         * WebProcess/Plugins/PluginView.h: Add performDictionaryLookupAtLocation.
3425         * WebProcess/WebPage/mac/WebPageMac.mm:
3426         (WebKit::WebPage::performDictionaryLookupAtLocation): Intercept performDictionaryLookupAtLocation, and give
3427         the main-frame plugin (if it exists) a chance to handle it.
3428
3429 2013-01-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3430
3431         [WK2] Cleanup MessageID parameter after r141332
3432         https://bugs.webkit.org/show_bug.cgi?id=108419
3433
3434         Unreviewed to fix build breaks.
3435
3436         r141332 didn't remove MessageID parameter on some features.
3437         (battery, vibration, coordinate graphics, network info and so on)
3438
3439         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3440         (CoordinatedLayerTreeHostProxy):
3441         * UIProcess/DrawingAreaProxyImpl.cpp:
3442         (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3443         * UIProcess/WebBatteryManagerProxy.h:
3444         (WebBatteryManagerProxy):
3445         * UIProcess/WebNetworkInfoManagerProxy.h:
3446         (WebNetworkInfoManagerProxy):
3447         * UIProcess/WebPageProxy.cpp:
3448         (WebKit::WebPageProxy::didReceiveMessage):
3449         * UIProcess/WebVibrationProxy.h:
3450         (WebVibrationProxy):
3451         * UIProcess/soup/WebSoupRequestManagerProxy.h:
3452         (WebSoupRequestManagerProxy):
3453         * WebProcess/Battery/WebBatteryManager.h:
3454         (WebBatteryManager):
3455         * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
3456         (WebNetworkInfoManager):
3457         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3458         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3459         (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3460         * WebProcess/WebPage/WebPage.cpp:
3461         (WebKit::WebPage::didReceiveMessage):
3462         * WebProcess/soup/WebSoupRequestManager.h:
3463         (WebSoupRequestManager):
3464
3465 2013-01-30  Anders Carlsson  <andersca@apple.com>
3466
3467         Remove MessageID from MessageSender
3468         https://bugs.webkit.org/show_bug.cgi?id=108413
3469
3470         Reviewed by Andreas Kling.
3471
3472         This is another step towards eliminating MessageID.
3473
3474         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3475         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3476         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3477         * NetworkProcess/NetworkConnectionToWebProcess.h:
3478         (NetworkConnectionToWebProcess):
3479         * NetworkProcess/NetworkProcess.cpp:
3480         (WebKit::NetworkProcess::didReceiveMessage):
3481         (WebKit::NetworkProcess::didReceiveSyncMessage):
3482         * NetworkProcess/NetworkProcess.h:
3483         (NetworkProcess):
3484         * Platform/CoreIPC/Connection.cpp:
3485         (CoreIPC::Connection::processIncomingMessage):
3486         (CoreIPC::Connection::dispatchSyncMessage):
3487         (CoreIPC::Connection::dispatchMessage):
3488         * Platform/CoreIPC/Connection.h:
3489         (QueueClient):
3490         (CoreIPC::Connection::waitForAndDispatchImmediately):
3491         * Platform/CoreIPC/MessageReceiver.h:
3492         (MessageReceiver):
3493         (CoreIPC::MessageReceiver::didReceiveSyncMessage):
3494         * Platform/CoreIPC/MessageReceiverMap.cpp:
3495         (CoreIPC::MessageReceiverMap::dispatchMessage):
3496         (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
3497         * Platform/CoreIPC/MessageReceiverMap.h:
3498         (MessageReceiverMap):
3499         * PluginProcess/PluginProcess.cpp:
3500         (WebKit::PluginProcess::didReceiveMessage):
3501         * PluginProcess/PluginProcess.h:
3502         (PluginProcess):
3503         * PluginProcess/WebProcessConnection.cpp:
3504         (WebKit::WebProcessConnection::didReceiveMessage):
3505         (WebKit::WebProcessConnection::didReceiveSyncMessage):
3506         * PluginProcess/WebProcessConnection.h:
3507         (WebProcessConnection):
3508         * Scripts/webkit2/messages.py:
3509         (forward_declarations_and_headers):
3510         (generate_message_handler):
3511         * Scripts/webkit2/messages_unittest.py:
3512         * Shared/Authentication/AuthenticationManager.cpp:
3513         (WebKit::AuthenticationManager::didReceiveMessage):
3514         * Shared/Authentication/AuthenticationManager.h:
3515         (AuthenticationManager):
3516         * Shared/ChildProcessProxy.cpp:
3517         (WebKit::ChildProcessProxy::sendMessage):
3518         * Shared/ChildProcessProxy.h:
3519         (ChildProcessProxy):
3520         (WebKit::ChildProcessProxy::send):
3521         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3522         (CustomProtocolManager):
3523         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3524         (WebKit::CustomProtocolManager::didReceiveMessage):
3525         * Shared/Plugins/NPRemoteObjectMap.cpp:
3526         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3527         * Shared/Plugins/NPRemoteObjectMap.h:
3528         (NPRemoteObjectMap):
3529         * Shared/WebConnection.cpp:
3530         (WebKit::WebConnection::didReceiveMessage):
3531         * Shared/WebConnection.h:
3532         (WebConnection):
3533         * Shared/mac/SecItemShim.cpp:
3534         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3535         * Shared/mac/SecItemShim.h:
3536         (SecItemShim):
3537         * SharedWorkerProcess/SharedWorkerProcess.cpp:
3538         (WebKit::SharedWorkerProcess::didReceiveMessage):
3539         * SharedWorkerProcess/SharedWorkerProcess.h:
3540         (SharedWorkerProcess):
3541         * UIProcess/Downloads/DownloadProxy.cpp:
3542         (WebKit::DownloadProxy::didReceiveMessage):
3543         (WebKit::DownloadProxy::didReceiveSyncMessage):
3544         * UIProcess/Downloads/DownloadProxy.h:
3545         (DownloadProxy):
3546         * UIProcess/DrawingAreaProxy.cpp:
3547         (WebKit::DrawingAreaProxy::didReceiveCoordinatedLayerTreeHostProxyMessage):
3548         * UIProcess/DrawingAreaProxy.h:
3549         (DrawingAreaProxy):
3550         * UIProcess/DrawingAreaProxyImpl.cpp:
3551         (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3552         * UIProcess/DrawingAreaProxyImpl.h:
3553         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3554         (CustomProtocolManagerProxy):
3555         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3556         (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3557         * UIProcess/Network/NetworkProcessProxy.cpp:
3558         (WebKit::NetworkProcessProxy::didReceiveMessage):
3559         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
3560         * UIProcess/Network/NetworkProcessProxy.h:
3561         (NetworkProcessProxy):
3562         * UIProcess/Notifications/WebNotificationManagerProxy.h:
3563         (WebNotificationManagerProxy):
3564         * UIProcess/Plugins/PluginProcessProxy.cpp:
3565         (WebKit::PluginProcessProxy::didReceiveMessage):
3566         * UIProcess/Plugins/PluginProcessProxy.h:
3567         (PluginProcessProxy):
3568         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3569         (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3570         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3571         (SharedWorkerProcessProxy):
3572         * UIProcess/WebApplicationCacheManagerProxy.cpp:
3573         (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3574         * UIProcess/WebApplicationCacheManagerProxy.h:
3575         (WebApplicationCacheManagerProxy):
3576         * UIProcess/WebContext.cpp:
3577         (WebKit::WebContext::dispatchMessage):
3578         (WebKit::WebContext::dispatchSyncMessage):
3579         (WebKit::WebContext::didReceiveMessage):
3580         (WebKit::WebContext::didReceiveSyncMessage):
3581         * UIProcess/WebContext.h:
3582         (WebContext):
3583         * UIProcess/WebCookieManagerProxy.cpp:
3584         (WebKit::WebCookieManagerProxy::didReceiveMessage):
3585         * UIProcess/WebCookieManagerProxy.h:
3586         (WebCookieManagerProxy):
3587         * UIProcess/WebDatabaseManagerProxy.cpp:
3588         (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3589         * UIProcess/WebDatabaseManagerProxy.h:
3590         (WebDatabaseManagerProxy):
3591         * UIProcess/WebFullScreenManagerProxy.cpp:
3592         (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3593         (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3594         * UIProcess/WebFullScreenManagerProxy.h:
3595         (WebFullScreenManagerProxy):
3596         * UIProcess/WebGeolocationManagerProxy.h:
3597         (WebGeolocationManagerProxy):
3598         * UIProcess/WebIconDatabase.h:
3599         (WebIconDatabase):
3600         * UIProcess/WebKeyValueStorageManagerProxy.h:
3601         (WebKeyValueStorageManagerProxy):
3602         * UIProcess/WebMediaCacheManagerProxy.h:
3603         (WebMediaCacheManagerProxy):
3604         * UIProcess/WebPageProxy.cpp:
3605         (WebKit::WebPageProxy::didReceiveMessage):
3606         (WebKit::WebPageProxy::didReceiveSyncMessage):
3607         * UIProcess/WebPageProxy.h:
3608         (WebPageProxy):
3609         * UIProcess/WebProcessProxy.cpp:
3610         (WebKit::WebProcessProxy::didReceiveMessage):
3611         (WebKit::WebProcessProxy::didReceiveSyncMessage):
3612         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3613         * UIProcess/WebProcessProxy.h:
3614         (WebProcessProxy):
3615         * UIProcess/WebResourceCacheManagerProxy.h:
3616         (WebResourceCacheManagerProxy):
3617         * UIProcess/mac/RemoteLayerTreeHost.h:
3618         (RemoteLayerTreeHost):
3619         * UIProcess/mac/RemoteLayerTreeHost.mm:
3620         (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3621         * UIProcess/mac/SecItemShimProxy.cpp:
3622         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3623         * UIProcess/mac/SecItemShimProxy.h:
3624         (SecItemShimProxy):
3625         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3626         (WebKit::WebApplicationCacheManager::didReceiveMessage):
3627         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3628         (WebApplicationCacheManager):
3629         * WebProcess/Cookies/WebCookieManager.cpp:
3630         (WebKit::WebCookieManager::didReceiveMessage):
3631         * WebProcess/Cookies/WebCookieManager.h:
3632         (WebCookieManager):
3633         * WebProcess/FullScreen/WebFullScreenManager.cpp:
3634         (WebKit::WebFullScreenManager::didReceiveMessage):
3635         * WebProcess/FullScreen/WebFullScreenManager.h:
3636         (WebFullScreenManager):
3637         * WebProcess/Geolocation/WebGeolocationManager.h:
3638         (WebGeolocationManager):
3639         * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
3640         (WebIconDatabaseProxy):
3641         * WebProcess/MediaCache/WebMediaCacheManager.h:
3642         (WebMediaCacheManager):
3643         * WebProcess/Network/NetworkProcessConnection.cpp:
3644         (WebKit::NetworkProcessConnection::didReceiveMessage):
3645         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3646         * WebProcess/Network/NetworkProcessConnection.h:
3647         (NetworkProcessConnection):
3648         * WebProcess/Notifications/WebNotificationManager.h:
3649         (WebNotificationManager):
3650         * WebProcess/Plugins/PluginProcessConnection.cpp:
3651         (WebKit::PluginProcessConnection::didReceiveMessage):
3652         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3653         * WebProcess/Plugins/PluginProcessConnection.h:
3654         (PluginProcessConnection):
3655         * WebProcess/ResourceCache/WebResourceCacheManager.h:
3656         (WebResourceCacheManager):
3657         * WebProcess/Storage/WebKeyValueStorageManager.h:
3658         (WebKeyValueStorageManager):
3659         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3660         (WebKit::WebDatabaseManager::didReceiveMessage):
3661         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3662         (WebDatabaseManager):
3663         * WebProcess/WebPage/DrawingArea.h:
3664         (DrawingArea):
3665         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3666         (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3667         * WebProcess/WebPage/DrawingAreaImpl.h:
3668         (DrawingAreaImpl):
3669         * WebProcess/WebPage/EventDispatcher.cpp:
3670         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3671         * WebProcess/WebPage/EventDispatcher.h:
3672         (EventDispatcher):
3673         * WebProcess/WebPage/LayerTreeHost.h:
3674         (LayerTreeHost):
3675         * WebProcess/WebPage/WebPage.cpp:
3676         (WebKit::WebPage::didReceiveMessage):
3677         (WebKit::WebPage::didReceiveSyncMessage):
3678         * WebProcess/WebPage/WebPage.h:
3679         (WebPage):
3680         * WebProcess/WebPage/WebPageGroupProxy.h:
3681         (WebPageGroupProxy):
3682         * WebProcess/WebProcess.cpp:
3683         (WebKit::WebProcess::didReceiveSyncMessage):
3684         (WebKit::WebProcess::didReceiveMessage):
3685         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3686         * WebProcess/WebProcess.h:
3687         (WebProcess):
3688
3689 2013-01-30  Tim Horton  <timothy_horton@apple.com>
3690
3691         PDFPlugin: Update scrollbars if PDFLayerController's display mode changes
3692         https://bugs.webkit.org/show_bug.cgi?id=108412
3693         <rdar://problem/13002261>
3694
3695         Reviewed by Simon Fraser.
3696
3697         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add pdfLayerController:didChangeDisplayMode:
3698         * WebProcess/Plugins/PDF/PDFPlugin.h: Add notifyDisplayModeChanged().
3699         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3700         (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeDisplayMode:]): Forward didChangeDisplayMode to notifyDisplayModeChanged.
3701         (WebKit::PDFPlugin::notifyDisplayModeChanged): Update content size and scrollbar size when display mode changes.
3702
3703 2013-01-30  Alexey Proskuryakov  <ap@apple.com>
3704
3705         <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3706
3707         Reviewed by Sam Weinig.
3708
3709         * DerivedSources.make: Preprocess a .sb.in file to build the profile.
3710
3711         * NetworkProcess/mac/NetworkProcessMac.mm:
3712         Don't prevent entering the sandbox. Override sandbox path, because service
3713         gets a differnt one by default.
3714
3715         * WebKit2.xcodeproj/project.pbxproj:
3716         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in: Added.
3717
3718 2013-01-30  Huang Dongsung  <luxtella@company100.net>
3719
3720         Coordinated Graphics: LayerTreeRenderer manages the surface of UpdateAtlas.
3721         https://bugs.webkit.org/show_bug.cgi?id=107224
3722
3723         Reviewed by Benjamin Poulain.
3724
3725         Currently, CoordinatedLayerTreeHostProxy manages the surface of UpdateAtlas, but
3726         all other resources are managed by LayerTreeRenderer. This patch matches the
3727         surface of UpdateAtlas to other resources.
3728
3729         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3730         (WebKit::CoordinatedLayerTreeHostProxy::updateTileForLayer):
3731         (WebKit::CoordinatedLayerTreeHostProxy::createUpdateAtlas):
3732         (WebKit::CoordinatedLayerTreeHostProxy::removeUpdateAtlas):
3733         (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3734         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3735         (CoordinatedLayerTreeHostProxy):
3736         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3737         (WebKit::LayerTreeRenderer::updateTile):
3738         (WebKit::LayerTreeRenderer::createUpdateAtlas):
3739         (WebKit):
3740         (WebKit::LayerTreeRenderer::removeUpdateAtlas):
3741         (WebKit::LayerTreeRenderer::purgeGLResources):
3742         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3743         (TileUpdate):
3744         (WebKit::LayerTreeRenderer::TileUpdate::TileUpdate):
3745         (LayerTreeRenderer):
3746
3747 2013-01-30  Anders Carlsson  <andersca@apple.com>
3748
3749         Remove MessageID parameter from generated message receivers
3750         https://bugs.webkit.org/show_bug.cgi?id=108379
3751
3752         Reviewed by Beth Dakin.
3753
3754         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3755         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3756         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3757         * NetworkProcess/NetworkConnectionToWebProcess.h:
3758         (NetworkConnectionToWebProcess):
3759         * NetworkProcess/NetworkProcess.cpp:
3760         (WebKit::NetworkProcess::didReceiveMessage):
3761         * NetworkProcess/NetworkProcess.h:
3762         (NetworkProcess):
3763         * PluginProcess/PluginControllerProxy.h:
3764         (PluginControllerProxy):
3765         * PluginProcess/PluginProcess.cpp:
3766         (WebKit::PluginProcess::didReceiveMessage):
3767         * PluginProcess/PluginProcess.h:
3768         (PluginProcess):
3769         * PluginProcess/WebProcessConnection.cpp:
3770         (WebKit::WebProcessConnection::didReceiveMessage):
3771         (WebKit::WebProcessConnection::didReceiveSyncMessage):
3772         * PluginProcess/WebProcessConnection.h:
3773         (WebProcessConnection):
3774         * Scripts/webkit2/messages.py:
3775         (generate_message_handler):
3776         * Scripts/webkit2/messages_unittest.py:
3777         * Shared/Authentication/AuthenticationManager.cpp:
3778         (WebKit::AuthenticationManager::didReceiveMessage):
3779         * Shared/Authentication/AuthenticationManager.h:
3780         (AuthenticationManager):
3781         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3782         (CustomProtocolManager):
3783         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3784         (WebKit::CustomProtocolManager::didReceiveMessage):
3785         * Shared/Plugins/NPObjectMessageReceiver.h:
3786         (NPObjectMessageReceiver):
3787         * Shared/Plugins/NPRemoteObjectMap.cpp:
3788         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3789         * Shared/WebConnection.cpp:
3790         (WebKit::WebConnection::didReceiveMessage):
3791         * Shared/WebConnection.h:
3792         (WebConnection):
3793         * Shared/mac/SecItemShim.cpp:
3794         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3795         * Shared/mac/SecItemShim.h:
3796         (SecItemShim):
3797         * SharedWorkerProcess/SharedWorkerProcess.cpp:
3798         (WebKit::SharedWorkerProcess::didReceiveMessage):
3799         * SharedWorkerProcess/SharedWorkerProcess.h:
3800         (SharedWorkerProcess):
3801         * UIProcess/Downloads/DownloadProxy.cpp:
3802         (WebKit::DownloadProxy::didReceiveMessage):
3803         (WebKit::DownloadProxy::didReceiveSyncMessage):
3804         * UIProcess/Downloads/DownloadProxy.h:
3805         (DownloadProxy):
3806         * UIProcess/DrawingAreaProxy.h:
3807         (DrawingAreaProxy):
3808         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3809         (CustomProtocolManagerProxy):
3810         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3811         (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3812         * UIProcess/Network/NetworkProcessProxy.cpp:
3813         (WebKit::NetworkProcessProxy::didReceiveMessage):
3814         * UIProcess/Network/NetworkProcessProxy.h:
3815         (NetworkProcessProxy):
3816         * UIProcess/Plugins/PluginProcessProxy.cpp:
3817         (WebKit::PluginProcessProxy::didReceiveMessage):
3818         * UIProcess/Plugins/PluginProcessProxy.h:
3819         (PluginProcessProxy):
3820         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3821         (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3822         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3823         (SharedWorkerProcessProxy):
3824         * UIProcess/WebApplicationCacheManagerProxy.cpp:
3825         (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3826         * UIProcess/WebApplicationCacheManagerProxy.h:
3827         (WebApplicationCacheManagerProxy):
3828         * UIProcess/WebContext.cpp:
3829         (WebKit::WebContext::didReceiveMessage):
3830         (WebKit::WebContext::didReceiveSyncMessage):
3831         * UIProcess/WebContext.h:
3832         (WebContext):
3833         * UIProcess/WebCookieManagerProxy.cpp:
3834         (WebKit::WebCookieManagerProxy::didReceiveMessage):
3835         * UIProcess/WebCookieManagerProxy.h:
3836         (WebCookieManagerProxy):
3837         * UIProcess/WebDatabaseManagerProxy.cpp:
3838         (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3839         * UIProcess/WebDatabaseManagerProxy.h:
3840         (WebDatabaseManagerProxy):
3841         * UIProcess/WebFullScreenManagerProxy.cpp:
3842         (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3843         (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3844         * UIProcess/WebFullScreenManagerProxy.h:
3845         (WebFullScreenManagerProxy):
3846         * UIProcess/WebInspectorProxy.h:
3847         (WebInspectorProxy):
3848         * UIProcess/WebPageProxy.cpp:
3849         (WebKit::WebPageProxy::didReceiveMessage):
3850         (WebKit::WebPageProxy::didReceiveSyncMessage):
3851         * UIProcess/WebPageProxy.h:
3852         (WebPageProxy):
3853         * UIProcess/WebProcessProxy.cpp:
3854         (WebKit::WebProcessProxy::didReceiveMessage):
3855         (WebKit::WebProcessProxy::didReceiveSyncMessage):
3856         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3857         * UIProcess/WebProcessProxy.h:
3858         (WebProcessProxy):
3859         * UIProcess/mac/RemoteLayerTreeHost.h:
3860         (RemoteLayerTreeHost):
3861         * UIProcess/mac/RemoteLayerTreeHost.mm:
3862         (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3863         * UIProcess/mac/SecItemShimProxy.cpp:
3864         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3865         * UIProcess/mac/SecItemShimProxy.h:
3866         (SecItemShimProxy):
3867         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3868         (WebKit::WebApplicationCacheManager::didReceiveMessage):
3869         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3870         (WebApplicationCacheManager):
3871         * WebProcess/Cookies/WebCookieManager.cpp:
3872         (WebKit::WebCookieManager::didReceiveMessage):
3873         * WebProcess/Cookies/WebCookieManager.h:
3874         (WebCookieManager):
3875         * WebProcess/FullScreen/WebFullScreenManager.cpp:
3876         (WebKit::WebFullScreenManager::didReceiveMessage):
3877         * WebProcess/FullScreen/WebFullScreenManager.h:
3878         (WebFullScreenManager):
3879         * WebProcess/Network/NetworkProcessConnection.cpp:
3880         (WebKit::NetworkProcessConnection::didReceiveMessage):
3881         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3882         * WebProcess/Network/WebResourceLoader.h:
3883         (WebResourceLoader):
3884         * WebProcess/Plugins/PluginProcessConnection.cpp:
3885         (WebKit::PluginProcessConnection::didReceiveMessage):
3886         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3887         * WebProcess/Plugins/PluginProcessConnection.h:
3888         (PluginProcessConnection):
3889         * WebProcess/Plugins/PluginProxy.h:
3890         (PluginProxy):
3891         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3892         (WebKit::WebDatabaseManager::didReceiveMessage):
3893         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3894         (WebDatabaseManager):
3895         * WebProcess/WebPage/DrawingArea.h:
3896         (DrawingArea):
3897         * WebProcess/WebPage/EventDispatcher.cpp:
3898         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3899         * WebProcess/WebPage/EventDispatcher.h:
3900         (EventDispatcher):
3901         * WebProcess/WebPage/WebInspector.h:
3902         (WebInspector):
3903         * WebProcess/WebPage/WebPage.cpp:
3904         (WebKit::WebPage::didReceiveMessage):
3905         (WebKit::WebPage::didReceiveSyncMessage):
3906         * WebProcess/WebPage/WebPage.h:
3907         (WebPage):
3908         * WebProcess/WebProcess.cpp:
3909         (WebKit::WebProcess::didReceiveMessage):
3910         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3911         * WebProcess/WebProcess.h:
3912         (WebProcess):
3913
3914 2013-01-30  Christophe Dumez  <dchris@gmail.com>
3915
3916         [WK2][UNIX] g_spawn_sync() generates warning in PluginProcessProxy::scanPlugin()
3917         https://bugs.webkit.org/show_bug.cgi?id=108371
3918
3919         Reviewed by Martin Robinson.
3920
3921         g_spawn_sync() was sometimes displaying a warning about the SIGCHLD
3922         signal disposition not being set to SIG_DFL, despite the fix in r133755.
3923         The reason was that the code was only setting the disposition to SIG_DFL
3924         if the previous disposition was SIG_IGN.
3925
3926         In this patch, we set the SIGCHLD signal disposition to SIG_DFL, no
3927         matter what its previous disposition was. Also, the signal disposition
3928         is now restored to its previous state after the call to g_spawn_sync()
3929         to avoid side effects. Finally, we now use SIGCHLD instead of SIDCLD
3930         since this is the more compatible POSIX name.
3931
3932         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
3933         (WebKit::spawnProcessSync):
3934         (WebKit):
3935         (WebKit::PluginProcessProxy::scanPlugin):
3936
3937 2013-01-30  Huang Dongsung  <luxtella@company100.net>
3938
3939         [EFL][Qt][WK2] We should consider a page scale factor in WebCore instead of our own scale factor.
3940         https://bugs.webkit.org/show_bug.cgi?id=105978
3941
3942         Reviewed by Simon Fraser.
3943
3944         Currently, PageViewportController sends a page scale factor to Coordinated
3945         Graphics System regardless of the page scale factor in WebCore. This patch makes
3946         Coordinated Graphics System use the page scale factor in WebCore to match other
3947         ports.
3948
3949         When it is needed to change a page scale, PageViewportController sends the scale
3950         to Page in Web Process via WebPageProxy::scalePage. When the page scale in
3951         WebCore is changed, CoordinatedGraphicsLayer gets notified via
3952         deviceOrPageScaleFactorChanged callback. CoordinatedGraphicsLayer uses the page
3953         scale factor like previous our own scale factor.
3954
3955         We set true to applyDeviceScaleFactorInCompositor and
3956         ApplyPageScaleFactorInCompositor in Settings like chromium, because
3957         TiledBackingStore that is a backing store of each GraphicsLayer applies the
3958         scale to our raster graphics engines instead of applying the scale to the local
3959         transform of each render object.
3960
3961         Thank Kenneth Rohde Christiansen for implementing the base patch of this patch.
3962
3963         No new tests. Covered by existing tests.
3964
3965         * UIProcess/API/qt/qquickwebview.cpp:
3966         (QQuickWebViewLegacyPrivate::updateViewportSize):
3967         * UIProcess/API/qt/raw/qrawwebview.cpp:
3968         (QRawWebView::setSize):
3969         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3970         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
3971         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
3972             Does not receive a pageScaleFactor argument because
3973             PageViewportController sends a page scale factor to Page.
3974             However, this method still receives a scroll position because we
3975             enable delegates scrolling.
3976         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3977         (CoordinatedLayerTreeHostProxy):
3978         * UIProcess/DrawingAreaProxy.h:
3979         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
3980         * UIProcess/DrawingAreaProxyImpl.cpp:
3981         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
3982         * UIProcess/DrawingAreaProxyImpl.h:
3983         * UIProcess/PageViewportController.cpp:
3984         (WebKit::PageViewportController::didRenderFrame):
3985         (WebKit::PageViewportController::didChangeContentsVisibility):
3986         (WebKit::PageViewportController::syncVisibleContents):
3987         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
3988         (WebKit::PageViewportController::applyPositionAfterRenderingContents):
3989         * UIProcess/efl/PageClientLegacyImpl.cpp:
3990         (WebKit::PageClientLegacyImpl::updateViewportSize):
3991         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3992         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3993         (WebCore::CoordinatedGraphicsLayer::deviceOrPageScaleFactorChanged):
3994         (WebCore::CoordinatedGraphicsLayer::effectiveContentsScale):
3995         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3996         (CoordinatedGraphicsLayer):
3997         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3998         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3999         (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
4000         (WebKit::CoordinatedLayerTreeHost::deviceScaleFactor):
4001         (WebKit):
4002         (WebKit::CoordinatedLayerTreeHost::pageScaleFactor):
4003         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
4004         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
4005         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
4006         (CoordinatedLayerTreeHost):
4007         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
4008         * WebProcess/WebPage/WebPage.cpp:
4009         (WebKit::WebPage::setUseFixedLayout):
4010
4011 2013-01-30  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
4012
4013         [Qt] Fix Win build after r141177
4014         https://bugs.webkit.org/show_bug.cgi?id=108325
4015
4016         Reviewed by Anders Carlsson.
4017
4018         * Platform/CoreIPC/win/ConnectionWin.cpp:
4019         (CoreIPC::Connection::readEventHandler):
4020         (CoreIPC::Connection::sendOutgoingMessage):
4021
4022 2013-01-30  Thiago Marcos P. Santos  <thiago.santos@intel.com>
4023
4024         REGRESSION (r141051): Broke plugin support on non-Mac WebKit2 Ports
4025         https://bugs.webkit.org/show_bug.cgi?id=108182
4026
4027         Reviewed by Sam Weinig.
4028
4029         Send the plugin path to the PluginProcess as a parameter.
4030
4031         * PluginProcess/qt/PluginProcessMainQt.cpp:
4032         (WebKit::PluginProcessMain):
4033         * PluginProcess/unix/PluginProcessMainUnix.cpp:
4034         (WebKit::PluginProcessMainUnix):
4035         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
4036         (WebKit::ProcessLauncher::launchProcess):
4037         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
4038         (WebKit::ProcessLauncher::launchProcess):
4039         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
4040         (WebKit::ProcessLauncher::launchProcess):
4041         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
4042         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
4043         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
4044         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
4045
4046 2013-01-30  Christophe Dumez  <christophe.dumez@intel.com>
4047
4048         [EFL][WK2] Use C API inside ewk_window_features
4049         https://bugs.webkit.org/show_bug.cgi?id=107924
4050
4051         Reviewed by Sam Weinig.
4052
4053         Use C API inside ewk_window_features instead of accessing
4054         internal C++ classes directly, to avoid violating API
4055         layering.
4056
4057         * UIProcess/API/efl/EwkView.cpp:
4058         (EwkView::createNewPage):
4059         * UIProcess/API/efl/EwkView.h:
4060         (EwkView):
4061         * UIProcess/API/efl/ewk_window_features.cpp:
4062         (EwkWindowFeatures::EwkWindowFeatures):
4063         (getWindowFeatureValue):
4064         (EwkWindowFeatures::getWindowFeatureBoolValue):
4065         (EwkWindowFeatures::getWindowFeatureDoubleValue):
4066         (ewk_window_features_geometry_get):
4067         * UIProcess/API/efl/ewk_window_features_private.h:
4068         (EwkWindowFeatures::create):
4069         (EwkWindowFeatures::geometry):
4070         (EwkWindowFeatures::setGeometry):
4071         (EwkWindowFeatures):
4072         * UIProcess/efl/PageUIClientEfl.cpp:
4073         (WebKit::PageUIClientEfl::createNewPage):
4074
4075 2013-01-30  Zeno Albisser  <zeno@webkit.org>
4076
4077         [Qt] Fix Qt/Mac build after r141024 and r141037
4078         https://bugs.webkit.org/show_bug.cgi?id=108318
4079
4080         Reviewed by Kentaro Hara.
4081
4082         * Platform/CoreIPC/mac/ConnectionMac.cpp:
4083         (CoreIPC::Connection::platformInvalidate):
4084             Replace nullptr with 0 to allow compiling without C++11 support.
4085
4086 2013-01-30  Kondapally Kalyan  <kalyan.kondapally@intel.com>
4087
4088         [EFL][Qt][WebGL] Avoid deleting an uncreated canvas.
4089         https://bugs.webkit.org/show_bug.cgi?id=106878
4090
4091         Reviewed by Benjamin Poulain.
4092
4093         setContentsToCanvas is responsible for marking canvas for creation or deletion.
4094         The issue here is that the canvas is marked for deletion even though it has not
4095         been created. This causes an assert in LayerTreeRenderer::destroyCanvas.
4096         This patch adds a seperate check to ensure that CoordinatedGraphicsLayer
4097         tries to issue a request for canvas deletion only after request for canvas
4098         creation has been handled.
4099
4100         New test: fast/canvas/webgl/canvas-resize-crash.html
4101
4102         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
4103         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
4104         (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas):
4105         (WebCore::CoordinatedGraphicsLayer::destroyCanvasIfNeeded):
4106         (WebCore::CoordinatedGraphicsLayer::createCanvasIfNeeded):
4107         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
4108         (CoordinatedGraphicsLayer):
4109         (WebCore::CoordinatedGraphicsLayer::fixedToViewport):
4110
4111 2013-01-30  Zan Dobersek  <zdobersek@igalia.com>
4112
4113         Unreviewed GTK build fix.
4114
4115         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: Include GraphicsLayerTextureMapper.h
4116         as a forwarding header from WebCore.
4117
4118 2013-01-30  Huang Dongsung  <luxtella@company100.net>
4119
4120         Coordinated Graphics: Remove m_pendingSyncBackingStores in LayerTreeRenderer.
4121         https://bugs.webkit.org/show_bug.cgi?id=107099
4122
4123         Reviewed by Noam Rosenthal.
4124
4125         Instead of queuing the setting of backing stores in LayerTreeRenderer,
4126         and then setting them directly to TextureMapperLayer, we allow
4127         GraphicsLayerTextureMapper's existing queuing mechanism to handle that.
4128         Instead of a m_pendingSyncBackingStores queue, we have a m_backingStores
4129         queue which can be applied much more easily to the layer tree.
4130
4131         In addition, LayerTreeRenderer::purgeGLResources() does not call
4132         TextureMapperLayer::clearBackingStoresRecursive() because
4133         TextureMapperLayer will be destructed soon.
4134
4135         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
4136         (WebKit::LayerTreeRenderer::deleteLayer):
4137         (WebKit::LayerTreeRenderer::createBackingStoreIfNeeded):
4138         (WebKit::LayerTreeRenderer::removeBackingStoreIfNeeded):
4139         (WebKit::LayerTreeRenderer::resetBackingStoreSizeToLayerSize):
4140         (WebKit::LayerTreeRenderer::createTile):
4141   &nb