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