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