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