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