[EFL][WK2] Use C API inside ewk_window_features
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-01-30  Christophe Dumez  <christophe.dumez@intel.com>
2
3         [EFL][WK2] Use C API inside ewk_window_features
4         https://bugs.webkit.org/show_bug.cgi?id=107924
5
6         Reviewed by Sam Weinig.
7
8         Use C API inside ewk_window_features instead of accessing
9         internal C++ classes directly, to avoid violating API
10         layering.
11
12         * UIProcess/API/efl/EwkView.cpp:
13         (EwkView::createNewPage):
14         * UIProcess/API/efl/EwkView.h:
15         (EwkView):
16         * UIProcess/API/efl/ewk_window_features.cpp:
17         (EwkWindowFeatures::EwkWindowFeatures):
18         (getWindowFeatureValue):
19         (EwkWindowFeatures::getWindowFeatureBoolValue):
20         (EwkWindowFeatures::getWindowFeatureDoubleValue):
21         (ewk_window_features_geometry_get):
22         * UIProcess/API/efl/ewk_window_features_private.h:
23         (EwkWindowFeatures::create):
24         (EwkWindowFeatures::geometry):
25         (EwkWindowFeatures::setGeometry):
26         (EwkWindowFeatures):
27         * UIProcess/efl/PageUIClientEfl.cpp:
28         (WebKit::PageUIClientEfl::createNewPage):
29
30 2013-01-30  Zeno Albisser  <zeno@webkit.org>
31
32         [Qt] Fix Qt/Mac build after r141024 and r141037
33         https://bugs.webkit.org/show_bug.cgi?id=108318
34
35         Reviewed by Kentaro Hara.
36
37         * Platform/CoreIPC/mac/ConnectionMac.cpp:
38         (CoreIPC::Connection::platformInvalidate):
39             Replace nullptr with 0 to allow compiling without C++11 support.
40
41 2013-01-30  Kondapally Kalyan  <kalyan.kondapally@intel.com>
42
43         [EFL][Qt][WebGL] Avoid deleting an uncreated canvas.
44         https://bugs.webkit.org/show_bug.cgi?id=106878
45
46         Reviewed by Benjamin Poulain.
47
48         setContentsToCanvas is responsible for marking canvas for creation or deletion.
49         The issue here is that the canvas is marked for deletion even though it has not
50         been created. This causes an assert in LayerTreeRenderer::destroyCanvas.
51         This patch adds a seperate check to ensure that CoordinatedGraphicsLayer
52         tries to issue a request for canvas deletion only after request for canvas
53         creation has been handled.
54
55         New test: fast/canvas/webgl/canvas-resize-crash.html
56
57         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
58         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
59         (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas):
60         (WebCore::CoordinatedGraphicsLayer::destroyCanvasIfNeeded):
61         (WebCore::CoordinatedGraphicsLayer::createCanvasIfNeeded):
62         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
63         (CoordinatedGraphicsLayer):
64         (WebCore::CoordinatedGraphicsLayer::fixedToViewport):
65
66 2013-01-30  Zan Dobersek  <zdobersek@igalia.com>
67
68         Unreviewed GTK build fix.
69
70         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: Include GraphicsLayerTextureMapper.h
71         as a forwarding header from WebCore.
72
73 2013-01-30  Huang Dongsung  <luxtella@company100.net>
74
75         Coordinated Graphics: Remove m_pendingSyncBackingStores in LayerTreeRenderer.
76         https://bugs.webkit.org/show_bug.cgi?id=107099
77
78         Reviewed by Noam Rosenthal.
79
80         Instead of queuing the setting of backing stores in LayerTreeRenderer,
81         and then setting them directly to TextureMapperLayer, we allow
82         GraphicsLayerTextureMapper's existing queuing mechanism to handle that.
83         Instead of a m_pendingSyncBackingStores queue, we have a m_backingStores
84         queue which can be applied much more easily to the layer tree.
85
86         In addition, LayerTreeRenderer::purgeGLResources() does not call
87         TextureMapperLayer::clearBackingStoresRecursive() because
88         TextureMapperLayer will be destructed soon.
89
90         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
91         (WebKit::LayerTreeRenderer::deleteLayer):
92         (WebKit::LayerTreeRenderer::createBackingStoreIfNeeded):
93         (WebKit::LayerTreeRenderer::removeBackingStoreIfNeeded):
94         (WebKit::LayerTreeRenderer::resetBackingStoreSizeToLayerSize):
95         (WebKit::LayerTreeRenderer::createTile):
96         (WebKit::LayerTreeRenderer::removeTile):
97         (WebKit::LayerTreeRenderer::updateTile):
98         (WebKit::LayerTreeRenderer::commitPendingBackingStoreOperations):
99         (WebKit::LayerTreeRenderer::purgeGLResources):
100         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
101
102 2013-01-29  Anders Carlsson  <andersca@apple.com>
103
104         Update the expected generated message results
105         https://bugs.webkit.org/show_bug.cgi?id=108293
106
107         Reviewed by Beth Dakin.
108
109         * Scripts/webkit2/messages.py:
110         (generate_messages_header):
111         * Scripts/webkit2/messages_unittest.py:
112
113 2013-01-29  Sam Weinig  <sam@webkit.org>
114
115         Replace unnecessary ArgumentDecoder member functions with decode overloads
116         https://bugs.webkit.org/show_bug.cgi?id=102013
117
118         Reviewed by Anders Carlsson.
119
120         * Platform/CoreIPC/ArgumentCoders.cpp:
121         (CoreIPC::::decode):
122         * Platform/CoreIPC/ArgumentCoders.h:
123         * Platform/CoreIPC/ArgumentDecoder.cpp:
124         (CoreIPC::ArgumentDecoder::decodeVariableLengthByteArray):
125         (CoreIPC::ArgumentDecoder::decode):
126         * Platform/CoreIPC/ArgumentDecoder.h:
127         (ArgumentDecoder):
128         (CoreIPC::ArgumentDecoder::decodeEnum):
129         (CoreIPC):
130         * Platform/CoreIPC/Connection.cpp:
131         (CoreIPC::Connection::dispatchSyncMessage):
132         * Platform/CoreIPC/MessageDecoder.cpp:
133         (CoreIPC::MessageDecoder::MessageDecoder):
134         * Platform/mac/SharedMemoryMac.cpp:
135         (WebKit::SharedMemory::Handle::decode):
136         * Platform/win/SharedMemoryWin.cpp:
137         (WebKit::SharedMemory::Handle::decode):
138         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
139         (CoreIPC::::decode):
140         (CoreIPC::decodeTimingFunction):
141         * Shared/DictionaryPopupInfo.cpp:
142         (WebKit::DictionaryPopupInfo::decode):
143         * Shared/UserMessageCoders.h:
144         (WebKit::UserMessageDecoder::baseDecode):
145         * Shared/cf/ArgumentCodersCF.cpp:
146         (CoreIPC::decode):
147         * Shared/mac/ArgumentCodersMac.mm:
148         (CoreIPC::decode):
149         * Shared/mac/ObjCObjectGraphCoders.mm:
150         (WebKit::ObjCObjectGraphDecoder::baseDecode):
151         * Shared/mac/SandboxExtensionMac.mm:
152         (WebKit::SandboxExtension::HandleArray::decode):
153         * Shared/mac/SecItemRequestData.cpp:
154         (WebKit::SecItemRequestData::decode):
155         * Shared/mac/SecItemResponseData.cpp:
156         (WebKit::SecItemResponseData::decode):
157         * Shared/qt/ArgumentCodersQt.cpp:
158         (CoreIPC::::decode):
159         * Shared/qt/QtNetworkReplyData.cpp:
160         (WebKit::QtNetworkReplyData::decode):
161         * WebProcess/WebPage/DecoderAdapter.cpp:
162         (WebKit::DecoderAdapter::decodeBool):
163         (WebKit::DecoderAdapter::decodeUInt16):
164         (WebKit::DecoderAdapter::decodeUInt32):
165         (WebKit::DecoderAdapter::decodeUInt64):
166         (WebKit::DecoderAdapter::decodeInt32):
167         (WebKit::DecoderAdapter::decodeInt64):
168         (WebKit::DecoderAdapter::decodeFloat):
169         (WebKit::DecoderAdapter::decodeDouble):
170
171 2013-01-29  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
172
173         [WK2] Adjust missing MessageID removals to fix build breaks
174         https://bugs.webkit.org/show_bug.cgi?id=108276
175
176         Unreviewed to fix build breaks.
177
178         Some MessageID removals wasn't adjusted into ConnectionUnix.cpp and coordinated graphics.
179
180         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
181         (CoreIPC::MessageInfo::MessageInfo):
182         (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
183         (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
184         (CoreIPC::Connection::processMessage):
185         (CoreIPC::Connection::sendOutgoingMessage):
186         * UIProcess/WebPageProxy.cpp:
187         (WebKit::WebPageProxy::didReceiveMessage):
188         * UIProcess/WebProcessProxy.cpp:
189         * WebProcess/WebPage/WebPage.cpp:
190         (WebKit::WebPage::didReceiveMessage):
191
192 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
193
194         Unreviewed, rolling out r140983.
195         http://trac.webkit.org/changeset/140983
196         https://bugs.webkit.org/show_bug.cgi?id=108277
197
198         Unfortunately, this API has one last client (Requested by
199         abarth on #webkit).
200
201         * Configurations/FeatureDefines.xcconfig:
202
203 2013-01-29  Anders Carlsson  <andersca@apple.com>
204
205         Remove MessageID parameter from Connection::sendMessage
206         https://bugs.webkit.org/show_bug.cgi?id=108269
207
208         Reviewed by Sam Weinig.
209
210         * Platform/CoreIPC/Connection.cpp:
211         (CoreIPC::Connection::sendMessage):
212         (CoreIPC::Connection::sendSyncReply):
213         (CoreIPC::Connection::sendSyncMessage):
214         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
215         * Platform/CoreIPC/Connection.h:
216         (Connection):
217         (CoreIPC::Connection::send):
218         (CoreIPC::Connection::sendSync):
219         * Platform/CoreIPC/MessageSender.h:
220         (CoreIPC::MessageSender::send):
221         (CoreIPC::MessageSender::sendMessage):
222         * Platform/CoreIPC/mac/ConnectionMac.cpp:
223         (CoreIPC::Connection::open):
224         * Shared/ChildProcessProxy.cpp:
225         (WebKit::ChildProcessProxy::sendMessage):
226         (WebKit::ChildProcessProxy::didFinishLaunching):
227         * Shared/WebConnection.cpp:
228         (WebKit::WebConnection::postMessage):
229         * WebProcess/InjectedBundle/InjectedBundle.cpp:
230         (WebKit::InjectedBundle::postMessage):
231         (WebKit::InjectedBundle::postSynchronousMessage):
232
233 2013-01-29  Anders Carlsson  <andersca@apple.com>
234
235         Stop generating the message kind enum
236         https://bugs.webkit.org/show_bug.cgi?id=108258
237
238         Reviewed by Beth Dakin.
239
240         * Platform/CoreIPC/Connection.h:
241         (CoreIPC::Connection::send):
242         (CoreIPC::Connection::sendSync):
243         (CoreIPC::Connection::waitForAndDispatchImmediately):
244         * Platform/CoreIPC/MessageSender.h:
245         (CoreIPC::MessageSender::send):
246         * Scripts/webkit2/messages.py:
247         (surround_in_condition):
248         (message_to_struct_declaration):
249         (generate_messages_header):
250         * Scripts/webkit2/messages_unittest.py:
251         * Scripts/webkit2/model.py:
252         (Message.__init__):
253         * Shared/ChildProcessProxy.h:
254         (WebKit::ChildProcessProxy::send):
255         * Shared/WebConnection.cpp:
256         (WebKit::WebConnection::postMessage):
257
258 2013-01-29  Kiran Muppala  <cmuppala@apple.com>
259
260         Fix erroneous semicolon causing build failure: if statement has empty body [-Werror,-Wempty-body]
261         https://bugs.webkit.org/show_bug.cgi?id=108241
262
263         Reviewed by Anders Carlsson.
264
265         * UIProcess/WebProcessProxy.cpp:
266         (WebKit::WebProcessProxy::addExistingWebPage): Remove erroneous
267         semicolon following the if condition.
268
269 2013-01-29  Anders Carlsson  <andersca@apple.com>
270
271         Remove almost everything from MessageID
272         https://bugs.webkit.org/show_bug.cgi?id=108244
273
274         Reviewed by Beth Dakin.
275
276         * Platform/CoreIPC/MessageID.h:
277         (CoreIPC::MessageID::MessageID):
278         * Platform/CoreIPC/mac/ConnectionMac.cpp:
279         (CoreIPC):
280         (CoreIPC::Connection::sendOutgoingMessage):
281         (CoreIPC::createMessageDecoder):
282         (CoreIPC::Connection::receiveSourceEventHandler):
283
284 2013-01-29  Anders Carlsson  <andersca@apple.com>
285
286         Get rid of MessageID::is()
287         https://bugs.webkit.org/show_bug.cgi?id=108234
288
289         Reviewed by Beth Dakin.
290
291         Add explicit message receiver name equality checks instead of using MessageID::is.
292
293         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
294         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
295         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
296         * Platform/CoreIPC/MessageID.h:
297         * PluginProcess/WebProcessConnection.cpp:
298         (WebKit::WebProcessConnection::didReceiveMessage):
299         (WebKit::WebProcessConnection::didReceiveSyncMessage):
300         * Shared/mac/SecItemShim.cpp:
301         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
302         * UIProcess/Network/NetworkProcessProxy.cpp:
303         (WebKit::NetworkProcessProxy::didReceiveMessage):
304         * UIProcess/WebContext.cpp:
305         (WebKit::WebContext::didReceiveMessage):
306         (WebKit::WebContext::didReceiveSyncMessage):
307         * UIProcess/WebPageProxy.cpp:
308         (WebKit::WebPageProxy::didReceiveMessage):
309         (WebKit::WebPageProxy::didReceiveSyncMessage):
310         * UIProcess/WebProcessProxy.cpp:
311         (WebKit::WebProcessProxy::didReceiveMessage):
312         (WebKit::WebProcessProxy::didReceiveSyncMessage):
313         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
314         * UIProcess/mac/SecItemShimProxy.cpp:
315         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
316         * WebProcess/Network/NetworkProcessConnection.cpp:
317         (WebKit::NetworkProcessConnection::didReceiveMessage):
318         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
319         * WebProcess/Plugins/PluginProcessConnection.cpp:
320         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
321         * WebProcess/WebPage/EventDispatcher.cpp:
322         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
323         * WebProcess/WebPage/WebPage.cpp:
324         (WebKit::WebPage::didReceiveMessage):
325         * WebProcess/WebProcess.cpp:
326         (WebKit::WebProcess::didReceiveMessage):
327         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
328
329 2012-11-28  Jer Noble  <jer.noble@apple.com>
330
331         Allow clients to ask for the WebView/WKView placeholder view when in full screen mode.
332         https://bugs.webkit.org/show_bug.cgi?id=103558
333         <rdar://problem/12763112>
334
335         Reviewed by Benjamin Poulain.
336
337         Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder
338         view when in full screen mode.  Add a simple accessor for the existing placeholder view to
339         WKFullScreenWindowController and WKView.
340
341         * UIProcess/API/mac/WKView.mm:
342         (-[WKView fullScreenPlaceholderView]): Added simple accessor.
343         * UIProcess/API/mac/WKViewPrivate.h:
344         * UIProcess/mac/WKFullScreenWindowController.h:
345         * UIProcess/mac/WKFullScreenWindowController.mm:
346         (-[WKFullScreenWindowController webViewPlaceholder]): Added simple accessor.
347
348 2013-01-29  Huang Dongsung  <luxtella@company100.net>
349
350         [WK2] Call LayerTreeHost::deviceOrPageScaleFactorChanged() when a device or page scale factor is changed.
351         https://bugs.webkit.org/show_bug.cgi?id=107802
352
353         Reviewed by Simon Fraser.
354
355         Currently, LayerTreeHostMac and *GTK call deviceOrPageScaleFactorChanged()
356         of the non compositing GraphicsLayer when a device scale factor is changed.
357
358         There are two problems.
359         1. We don't notify LayerTreeHost when a page scale factor is changed.
360         2. When using TiledCoreAnimationDrawingAreaProxy, LayerTreeHostMac does
361         not receive the device scale factor changed callback.
362
363         So this patch changes three points.
364         1. Rename from deviceScaleFactorDidChange() to deviceOrPageScaleFactorChanged()
365         in LayerTreeHost.
366         2. WebPage::setDeviceScaleFactor() calls LayerTreeHost::deviceScaleFactorDidChange()
367         because of dealing with TiledCoreAnimationDrawingAreaProxy.
368         3. WebPage::pageScaleFactor() calls LayerTreeHost::deviceScaleFactorDidChange()
369         to call deviceOrPageScaleFactorChanged() of the non compositing GraphicsLayer.
370
371         Unfortunately, I couldn't think of a way to test this in an automated fashion.
372
373         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
374         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
375         * WebProcess/WebPage/DrawingAreaImpl.cpp:
376         (WebKit::DrawingAreaImpl::updateBackingStoreState):
377             Don't call LayerTreeHost::deviceScaleFactorDidChange() because this
378             method calls WebPage::setDeviceScaleFactor() and then
379             LayerTreeHost::deviceScaleFactorDidChange() is called.
380         * WebProcess/WebPage/LayerTreeHost.h:
381         (LayerTreeHost):
382         * WebProcess/WebPage/WebPage.cpp:
383         (WebKit::WebPage::scalePage):
384         (WebKit::WebPage::setDeviceScaleFactor):
385         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
386         (WebKit::LayerTreeHostGtk::deviceOrPageScaleFactorChanged):
387         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
388         (LayerTreeHostGtk):
389         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
390         (LayerTreeHostMac):
391         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
392         (WebKit::LayerTreeHostMac::deviceOrPageScaleFactorChanged):
393
394 2013-01-29  Anders Carlsson  <andersca@apple.com>
395
396         Get rid of MessageID::get()
397         https://bugs.webkit.org/show_bug.cgi?id=108235
398
399         Reviewed by Beth Dakin.
400
401         Just check for the message receiver name and message name explicitly instead.
402
403         * Platform/CoreIPC/MessageID.h:
404         (CoreIPC::MessageID::is):
405         * Shared/CoreIPCSupport/WebContextMessageKinds.h:
406         (WebContextLegacyMessage::messageReceiverName):
407         (WebContextLegacyMessage):
408         (WebContextLegacyMessage::postMessageMessageName):
409         (WebContextLegacyMessage::postSynchronousMessageMessageName):
410         * UIProcess/WebContext.cpp:
411         (WebKit::WebContext::didReceiveMessage):
412         (WebKit::WebContext::didReceiveSyncMessage):
413
414 2013-01-29  Kiran Muppala  <cmuppala@apple.com>
415
416         Add support for enabling process suppression in WebProcesses with no visible pages
417         https://bugs.webkit.org/show_bug.cgi?id=108054
418
419         Reviewed by Anders Carlsson.
420
421         Provide a preference to enable process suppression in WebProcesses with
422         no visible pages even if the application is not completely occluded.
423         This provides more opportunities for process suppression to take effect.
424
425         Replace the messaging of application occlusion status from UI process to
426         ChildProcesses with messages that indicate the current required process
427         suppression state.  WebProcessProxy should determine if the process is
428         eligible for process suppression based on both application occlusion
429         and page visibility.  When either of these parameters changes,
430         the proxy should message the child process of the updated process
431         suppression state.
432
433         * NetworkProcess/NetworkProcess.messages.in: Rename
434         SetApplicationIsOccluded to SetProcessSuppressionEnabled.
435         * PluginProcess/PluginProcess.messages.in: Ditto.
436         * Shared/ChildProcess.h: 
437         (WebKit::ChildProcess::processSuppressionEnabled): Rename
438         applicationIsOccluded.
439         * Shared/WebPreferencesStore.h: Add a new preference
440         pageVisibilityBasedProcessSuppressionEnabled, to enabled/disable
441         process suppression of WebProcesses when all pages are hidden.
442         * Shared/mac/ChildProcessMac.mm:
443         (WebKit::ChildProcess::setProcessSuppressionEnabled): Rename
444         setApplicationIsOccluded.
445         (WebKit::ChildProcess::platformInitialize): Replace call to
446         setApplicationIsOccluded with setProcessSuppressionEnabled.
447         * SharedWorkerProcess/SharedWorkerProcess.messages.in: Rename
448         SetApplicationIsOccluded to SetProcessSuppressionEnabled.
449         * UIProcess/API/C/WKPreferences.cpp:
450         (WKPreferencesSetPageVisibilityBasedProcessSuppressionEnabled):
451         (WKPreferencesGetPageVisibilityBasedProcessSuppressionEnabled):
452         * UIProcess/API/C/WKPreferencesPrivate.h:
453         * UIProcess/Network/NetworkProcessProxy.cpp:
454         (WebKit::NetworkProcessProxy::didFinishLaunching): Use setter
455         to update process suppression state instead of messaging directly.
456         Use WebContext::canEnableProcessSuppressionForNetworkProcess() helper
457         method to determine if process suppression should be enabled.
458         * UIProcess/Network/NetworkProcessProxy.h: Rename
459         setApplicationIsOccluded to setProcessSuppresionEnabled.
460         * UIProcess/Network/mac/NetworkProcessProxyMac.mm:
461         (WebKit::NetworkProcessProxy::setProcessSuppressionEnabled): Ditto.
462         * UIProcess/Plugins/PluginProcessManager.h: Ditto.
463         * UIProcess/Plugins/PluginProcessProxy.cpp:
464         (WebKit::PluginProcessProxy::didFinishLaunching): Use setter
465         to update process suppression state instead of messaging directly.
466         Use WebContext::canEnableProcessSuppressionForGlobalChildProcesses()
467         helper method to determine if process suppression should be enabled.
468         * UIProcess/Plugins/PluginProcessProxy.h: Rename
469         setApplicationIsOccluded to setProcessSuppresionEnabled.
470         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
471         (WebKit::PluginProcessManager::setProcessSuppressionEnabled): Ditto.
472         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
473         (WebKit::PluginProcessProxy::setProcessSuppressionEnabled): Ditto.
474         * UIProcess/SharedWorkers/SharedWorkerProcessManager.h: Ditto.
475         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
476         (WebKit::SharedWorkerProcessProxy::didFinishLaunching): Use setter
477         to update process suppression state instead of messaging directly.
478         Use WebContext::canEnableProcessSuppressionForGlobalChildProcesses()
479         helper method to determine if process suppression should be enabled.
480         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h: Rename
481         setApplicationIsOccluded to setProcessSuppresionEnabled.
482         * UIProcess/SharedWorkers/mac/SharedWorkerProcessManagerMac.mm:
483         (WebKit::SharedWorkerProcessManager::setProcessSuppressionEnabled):
484         Ditto.
485         * UIProcess/SharedWorkers/mac/SharedWorkerProcessProxyMac.mm:
486         (WebKit::SharedWorkerProcessProxy::setProcessSuppressionEnabled): Ditto.
487         * UIProcess/WebContext.h: Replace applicationIsOccluded() getter with
488         helper methods to determine if a child process can have process
489         suppression enabled.
490         * UIProcess/WebPageProxy.cpp:
491         (WebKit::WebPageProxy::viewStateDidChange): Notify WebProcessProxy of
492         page visibility change.
493         (WebKit::WebPageProxy::preferencesDidChange): Notify WebProcessProxy of
494         change in preferences.
495         * UIProcess/WebProcessProxy.cpp:
496         (WebKit::WebProcessProxy::WebProcessProxy): Initialize member variable
497         tracking process suppression state to false.
498         (WebKit::WebProcessProxy::createWebPage): Update set of pages which can
499         be process suppressed and the resulting process suppression state for
500         the child process.
501         (WebKit::WebProcessProxy::addExistingWebPage): Ditto.
502         (WebKit::WebProcessProxy::removeWebPage): Ditto.
503         (WebKit::WebProcessProxy::pageVisibilityChanged): Ditto.
504         (WebKit::WebProcessProxy::pagePreferencesChanged): Ditto.
505         (WebKit::WebProcessProxy::didFinishLaunching): Call
506         updateProcessSuppressionState().
507         * UIProcess/WebProcessProxy.h:
508         * UIProcess/mac/WebContextMac.mm:
509         (WebKit::updateProcessSuppressionStateOfGlobalChildProcesses): Use new
510         helper method canEnableProcessSuppressionForGlobalChildProcesses() to
511         determine if process suppression should be enabled.
512         (WebKit::applicationOcclusionStateChanged): Update renamed methods
513         and variables.
514         (WebKit::enableOcclusionNotifications): Move OmitProcessSuppression
515         user default check into canEnableProcessSuppression methods.
516         (WebKit::omitProcessSuppression):
517         (WebKit::WebContext::updateProcessSuppressionStateOfChildProcesses):
518         Use new helper method canEnableProcessSuppressionForNetworkProcess() to
519         determine if process suppression should be enabled for NetworkProcess.
520         Let WebProcess update process suppression state based on application
521         occlusion state and page visibility.
522         (WebKit::WebContext::canEnableProcessSuppressionForNetworkProcess):
523         (WebKit::WebContext::canEnableProcessSuppressionForWebProcess):
524         (WebKit::WebContext::canEnableProcessSuppressionForGlobalChildProcesses):
525         (WebKit::WebContext::processSuppressionEnabledChanged): Reevaluate if
526         process suppression is enabled for all contexts and update process
527         suppression state of global child processes.
528         * UIProcess/mac/WebProcessProxyMac.mm:
529         (WebKit::WebProcessProxy::pageIsProcessSuppressible):
530         (WebKit::WebProcessProxy::allPagesAreProcessSuppressible):
531         (WebKit::WebProcessProxy::updateProcessSuppressionState):
532         * WebProcess/WebProcess.messages.in:
533
534 2013-01-29  Anders Carlsson  <andersca@apple.com>
535
536         Start using the message flag in MessageEncoder/MessageDecoder
537         https://bugs.webkit.org/show_bug.cgi?id=108227
538
539         Reviewed by Beth Dakin.
540
541         Stop using the flags in MessageID and store the flags directly in the message instead.
542         This is another step towards eliminating MessageID.
543
544         * Platform/CoreIPC/Connection.cpp:
545         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
546         (CoreIPC::Connection::createSyncMessageEncoder):
547         (CoreIPC::Connection::sendMessage):
548         (CoreIPC::Connection::sendSyncMessage):
549         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
550         (CoreIPC::Connection::dispatchSyncMessage):
551         (CoreIPC::Connection::dispatchMessage):
552         * Platform/CoreIPC/Connection.h:
553         * Platform/CoreIPC/MessageDecoder.cpp:
554         (CoreIPC::MessageDecoder::MessageDecoder):
555         (CoreIPC::MessageDecoder::isSyncMessage):
556         (CoreIPC):
557         (CoreIPC::MessageDecoder::shouldDispatchMessageWhenWaitingForSyncReply):
558         * Platform/CoreIPC/MessageDecoder.h:
559         (MessageDecoder):
560         * Platform/CoreIPC/MessageEncoder.cpp:
561         (CoreIPC):
562         (CoreIPC::MessageEncoder::MessageEncoder):
563         (CoreIPC::MessageEncoder::~MessageEncoder):
564         (CoreIPC::MessageEncoder::setIsSyncMessage):
565         (CoreIPC::MessageEncoder::setShouldDispatchMessageWhenWaitingForSyncReply):
566         * Platform/CoreIPC/MessageEncoder.h:
567         (MessageEncoder):
568         * Platform/CoreIPC/MessageFlags.h: Copied from Source/WebKit2/Platform/CoreIPC/MessageEncoder.h.
569         (CoreIPC):
570         * Platform/CoreIPC/MessageID.h:
571         * WebKit2.xcodeproj/project.pbxproj:
572
573 2013-01-29  Anders Carlsson  <andersca@apple.com>
574
575         Encode/decode message send flags in the message
576         https://bugs.webkit.org/show_bug.cgi?id=108208
577
578         Reviewed by Beth Dakin.
579
580         This is another step towards getting rid of MessageID.
581
582         * Platform/CoreIPC/ArgumentDecoder.cpp:
583         (CoreIPC::ArgumentDecoder::decodeUInt8):
584         (CoreIPC):
585         * Platform/CoreIPC/ArgumentDecoder.h:
586         (ArgumentDecoder):
587         (CoreIPC::ArgumentDecoder::decode):
588         (CoreIPC):
589         * Platform/CoreIPC/ArgumentEncoder.cpp:
590         (CoreIPC::ArgumentEncoder::encode):
591         (CoreIPC):
592         * Platform/CoreIPC/ArgumentEncoder.h:
593         (ArgumentEncoder):
594         * Platform/CoreIPC/Connection.cpp:
595         (CoreIPC::Connection::sendMessage):
596         * Platform/CoreIPC/MessageDecoder.cpp:
597         (CoreIPC::MessageDecoder::MessageDecoder):
598         * Platform/CoreIPC/MessageDecoder.h:
599         (CoreIPC::MessageDecoder::messageSendFlags):
600         (MessageDecoder):
601         * Platform/CoreIPC/MessageEncoder.cpp:
602         (CoreIPC):
603         (CoreIPC::MessageEncoder::MessageEncoder):
604         (CoreIPC::MessageEncoder::~MessageEncoder):
605         (CoreIPC::MessageEncoder::setMessageSendFlags):
606         * Platform/CoreIPC/MessageEncoder.h:
607         (MessageEncoder):
608         * UIProcess/Authentication/AuthenticationChallengeProxy.h:
609         (CoreIPC):
610
611 2013-01-29  Mario Sanchez Prada  <mario.prada@samsung.com>
612
613         [GTK] Missing build flags when building with Harfbuzz
614         https://bugs.webkit.org/show_bug.cgi?id=108174
615
616         Reviewed by Martin Robinson.
617
618         Add FREETYPE_CFLAGS and FREETYPE_LIBS to makefiles so -lharfbuzz
619         parameter will be added to linking lines when needed.
620
621         * GNUmakefile.am: Added FREETYPE_CFLAGS and FREETYPE_LIBS.
622         * UIProcess/API/gtk/tests/GNUmakefile.am: Ditto.
623
624 2013-01-29  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
625
626         [EFL] Unified text checker implementation.
627         https://bugs.webkit.org/show_bug.cgi?id=107682
628
629         Reviewed by Anders Carlsson.
630
631         * UIProcess/efl/TextCheckerEfl.cpp:
632         (WebKit):
633         (WebKit::TextChecker::checkTextOfParagraph):
634         Allow to check spelling for multiple words,
635         their misspelling location and length are saved to the vector.
636
637         * WebProcess/WebCoreSupport/WebEditorClient.h:
638         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
639         (WebKit::WebEditorClient::checkTextOfParagraph):
640         (WebKit):
641         As spelling implementation is exposed to UIProcess,
642         send a meesage to UIProcess to call TextChecker::checkTextOfParagraph.
643
644 2013-01-29  Carlos Garcia Campos  <cgarcia@igalia.com>
645
646         [GTK] Add API to prefetch DNS of a given hostname to WebKit2 GTK+ API
647         https://bugs.webkit.org/show_bug.cgi?id=99695
648
649         Reviewed by Anders Carlsson.
650
651         * UIProcess/API/gtk/WebKitWebContext.cpp:
652         (webkit_web_context_prefetch_dns): Public method to resolve the
653         domain name in advance for the given hostname.
654         * UIProcess/API/gtk/WebKitWebContext.h:
655         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add
656         webkit_web_context_prefetch_dns.
657         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp:
658         (webkitWebExtensionDidReceiveMessage): Parse PrefetchDNS message
659         and call WebCore::prefetchDNS() with the given hostname.
660         (didReceiveMessage): Call webkitWebExtensionDidReceiveMessage().
661         (webkitWebExtensionCreate): Add implementation for
662         didReceiveMessage callback.
663
664 2013-01-29  Carlos Garcia Campos  <cgarcia@igalia.com>
665
666         [GTK] Implement resources API using injected bundle
667         https://bugs.webkit.org/show_bug.cgi?id=107457
668
669         Reviewed by Sam Weinig.
670
671         The ResourceLoaderClient was removed from the UI process in
672         r140285, and most of the GTK+ API depends on resources. This patch
673         implements the same API using the ResourceLoaderClient from
674         injected bundle. It fixes the resources unit tests, as well as
675         other 14 unit tests that are timing out because they depend on
676         resource API.
677
678         * GNUmakefile.list.am: Add new files to compilation.
679         * Shared/UserMessageCoders.h:
680         (WebKit::UserMessageEncoder::baseEncode): Add support for encoding
681         WebURLResponse and WebError objects in user messages.
682         (WebKit::UserMessageDecoder::baseDecode): Add support for decoding
683         WebURLResponse and WebError objects from user messages.
684         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp: Added.
685         (didReceiveWebViewMessageFromInjectedBundle): Handle messages sent
686         to the WebView. For now it hanldes all the sresource loader client
687         messages.
688         (didReceiveMessageFromInjectedBundle): Handle messages received
689         from injected bundle.
690         (attachInjectedBundleClientToContext): Initialize the injected
691         bundle client.
692         * UIProcess/API/gtk/WebKitInjectedBundleClient.h: Added.
693         * UIProcess/API/gtk/WebKitWebContext.cpp:
694         (_WebKitWebContextPrivate): Add a HashMap to map page IDs to
695         WebKitWebViews.
696         (createDefaultWebContext): Call
697         attachInjectedBundleClientToContext() to intialize the injected
698         bundle client.
699         (webkitWebContextCreatePageForWebView): Use
700         webkitWebViewBaseCreateWebPage() to create and initialize a new
701         WebPageProxy and map the newly created page with the given
702         WebKitWebView.
703         (webkitWebContextWebViewDestroyed): Called when the given
704         WebKitWebView is being destroyed to remove it from the views map.
705         (webkitWebContextGetWebViewForPage): Returns the WebKitWebView
706         associated to the given page ID.
707         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
708         * UIProcess/API/gtk/WebKitWebView.cpp:
709         (webkitWebViewConstructed): Use
710         webkitWebContextCreatePageForWebView() instead of
711         webkitWebViewBaseCreateWebPage() directly.
712         (webkitWebViewDispose): Call webkitWebContextWebViewDestroyed() to
713         notify the context.
714         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
715         (didInitiateLoadForResource): Send a message to the UI process
716         with the callback parameters encoded.
717         (willSendRequestForFrame): Ditto.
718         (didReceiveResponseForResource): Ditto.
719         (didReceiveContentLengthForResource): Ditto.
720         (didFinishLoadForResource): Ditto.
721         (didFailLoadForResource): Ditto.
722         (webkitWebPageCreate): Initialize the
723         WKBundlePageResourceLoadClient.
724
725 2013-01-29  Laszlo Gombos  <l.gombos@samsung.com>
726
727         [Qt] Remove misspelled ENABLE(SPEECH_INPUT) guard
728         https://bugs.webkit.org/show_bug.cgi?id=105683
729
730         Reviewed by Simon Hausmann.
731
732         The ENABLE(SPEECH_INPUT) guard is only used in one location
733         in the source tree and as such it is always 0.
734
735         I believe that this guard is a left over and is not needed any more
736         as the code guarded is not guarded anywhere else.
737
738         * WebProcess/qt/WebProcessQt.cpp:
739         (WebKit::WebProcess::platformInitializeWebProcess):
740
741 2013-01-29  Zan Dobersek  <zdobersek@igalia.com>
742
743         Unreviewed build fix after r141024.
744         Adding new files to the build.
745
746         * GNUmakefile.am:
747         * GNUmakefile.list.am:
748
749 2013-01-29  Jinwoo Song  <jinwoo7.song@samsung.com>
750
751         [WK2] Fix unused parameter build warning
752         https://bugs.webkit.org/show_bug.cgi?id=108156
753
754         Reviewed by Kentaro Hara.
755
756         Comment out the unused parameters to fix the build warnings.
757
758         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
759         * WebProcess/Plugins/PluginProxy.h:
760
761 2013-01-28  Jae Hyun Park  <jae.park@company100.net>
762
763         [Qt] Build fix
764         https://bugs.webkit.org/show_bug.cgi?id=108142
765
766         Reviewed by Gyuyoung Kim.
767
768         Build fix. Though StorageManager was added to WK2 in r141024,
769         it is not added to Target.pri for qt port.
770
771         * Target.pri:
772
773 2013-01-28  Huang Dongsung  <luxtella@company100.net>
774
775         Coordinated Graphics: Refactor code related to debug border and repaint count.
776         https://bugs.webkit.org/show_bug.cgi?id=107910
777
778         Reviewed by Noam Rosenthal.
779
780         There are two big changes:
781         1. CoordinatedGraphicsLayer sends debugging visuals to UI Process.
782         2. When updating a backing store, increment a repaint count.
783
784         In addition, we don't use QT_WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS
785         environment. EFL, GTK and QT will use WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS
786         after http://webkit.org/b/107198.
787
788         * Shared/CoordinatedGraphics/CoordinatedLayerInfo.h:
789         (WebKit::CoordinatedLayerInfo::CoordinatedLayerInfo):
790         (CoordinatedLayerInfo):
791         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
792         (WebKit::CoordinatedBackingStore::removeAllTiles):
793         (WebKit::CoordinatedBackingStore::updateTile):
794         (WebKit::CoordinatedBackingStore::texture):
795         (WebKit::CoordinatedBackingStore::paintTilesToTextureMapper):
796         (WebKit::CoordinatedBackingStore::adjustedTransformForRect):
797         (WebKit::CoordinatedBackingStore::paintToTextureMapper):
798         (WebKit):
799         (WebKit::CoordinatedBackingStore::drawBorder):
800             Override TextureMapperPlatformLayer::drawBorder() to draw the border
801             for each tile.
802         (WebKit::CoordinatedBackingStore::drawRepaintCounter):
803         (WebKit::CoordinatedBackingStore::commitTileOperations):
804         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h:
805         (WebKit::CoordinatedBackingStoreTile::CoordinatedBackingStoreTile):
806         (CoordinatedBackingStoreTile):
807         (CoordinatedBackingStore):
808         (WebKit::CoordinatedBackingStore::rect):
809         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
810         (WebKit::CoordinatedLayerTreeHostProxy::setLayerRepaintCount):
811         (WebKit):
812         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
813         (CoordinatedLayerTreeHostProxy):
814         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
815         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
816         (WebKit::LayerTreeRenderer::setLayerRepaintCount):
817         (WebKit):
818         (WebKit::LayerTreeRenderer::setLayerState):
819         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
820         (LayerTreeRenderer):
821         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
822         (WebCore::CoordinatedGraphicsLayer::setShowDebugBorder):
823         (WebCore):
824         (WebCore::CoordinatedGraphicsLayer::setShowRepaintCounter):
825         (WebCore::CoordinatedGraphicsLayer::syncLayerState):
826         (WebCore::CoordinatedGraphicsLayer::setDebugBorder):
827         (WebCore::CoordinatedGraphicsLayer::tiledBackingStorePaintEnd):
828         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
829         (CoordinatedGraphicsLayerClient):
830         (CoordinatedGraphicsLayer):
831         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
832         (WebKit::CoordinatedLayerTreeHost::setLayerRepaintCount):
833         (WebKit):
834         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
835
836 2013-01-28  Sam Weinig  <sam@webkit.org>
837
838         Remove support from ArgumentEncoder for deprecated encode functions
839         https://bugs.webkit.org/show_bug.cgi?id=108155
840
841         Reviewed by Dan Bernstein.
842
843         * Platform/CoreIPC/ArgumentEncoder.h:
844         (CoreIPC::ArgumentEncoder::encode):
845
846 2013-01-28  Sam Weinig  <sam@webkit.org>
847
848         Disable default use of the Plug-in XPCService until we can
849         figure out how to deal with the 32-bit one.
850
851         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
852         (WebKit::shouldUseXPC):
853         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
854
855 2013-01-28  Sam Weinig  <sam@webkit.org>
856
857         Plug-ins should initialize their sandbox at creation time
858         https://bugs.webkit.org/show_bug.cgi?id=108098
859
860         Reviewed by Anders Carlsson.
861
862         Add the ability to add string key/value pairs to process creation parameters
863         to allow the plugin process to get passed the plugin path which in turn allows
864         the plugin to initialize its sandbox at the correct time.
865
866         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
867         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
868         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
869         (NetworkServiceInitializer):
870         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
871         (WebKit::PluginProcessMainDelegate::getExtraData):
872         (PluginProcessMainDelegate):
873         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
874         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
875         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
876         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
877         (WebKit):
878         (PluginServiceInitializerDelegate):
879         (WebKit::PluginServiceInitializerDelegate::PluginServiceInitializerDelegate):
880         (WebKit::PluginServiceInitializerDelegate::getExtraData):
881         (PluginServiceInitializer):
882         * PluginProcess/PluginProcess.cpp:
883         (WebKit::PluginProcess::initializeProcess):
884         (WebKit::PluginProcess::initializePluginProcess):
885         (WebKit::PluginProcess::initializeProcessName):
886         (WebKit::PluginProcess::initializeSandbox):
887         * PluginProcess/PluginProcess.h:
888         * PluginProcess/mac/PluginProcessMac.mm:
889         (WebKit::PluginProcess::platformInitializePluginProcess):
890         (WebKit::PluginProcess::platformInitializeProcess):
891         (WebKit::PluginProcess::initializeProcessName):
892         (WebKit::PluginProcess::initializeSandbox):
893         * Shared/ChildProcess.h:
894         (ChildProcessInitializationParameters):
895         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h:
896         (ChildProcessMainDelegate):
897         (WebKit::ChildProcessMain):
898         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm:
899         (WebKit::ChildProcessMainDelegate::getExtraData):
900         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
901         (WebKit::XPCServiceEventHandler):
902         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
903         (WebKit::XPCServiceEventHandler):
904         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h: Added.
905         (XPCServiceInitializerDelegate):
906         (WebKit::XPCServiceInitializerDelegate::XPCServiceInitializerDelegate):
907         (WebKit::XPCServiceInitializer):
908         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm: Added.
909         (WebKit::XPCServiceInitializerDelegate::~XPCServiceInitializerDelegate):
910         (WebKit::XPCServiceInitializerDelegate::getConnectionIdentifier):
911         (WebKit::XPCServiceInitializerDelegate::getClientIdentifier):
912         (WebKit::XPCServiceInitializerDelegate::getClientProcessName):
913         (WebKit::XPCServiceInitializerDelegate::getExtraData):
914         * Shared/Plugins/PluginProcessCreationParameters.cpp:
915         (WebKit::PluginProcessCreationParameters::encode):
916         (WebKit::PluginProcessCreationParameters::decode):
917         * Shared/Plugins/PluginProcessCreationParameters.h:
918         (PluginProcessCreationParameters):
919         * UIProcess/Launcher/ProcessLauncher.h:
920         (LaunchOptions):
921         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
922         (WebKit::connectToService):
923         (WebKit::connectToReExecService):
924         (WebKit::createService):
925         (WebKit::createProcess):
926         (WebKit::ProcessLauncher::launchProcess):
927         * UIProcess/Plugins/PluginProcessProxy.cpp:
928         (WebKit::PluginProcessProxy::didFinishLaunching):
929         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
930         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
931         (WebKit::PluginProcessProxy::platformInitializePluginProcess):
932         * WebKit2.xcodeproj/project.pbxproj:
933         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
934         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
935         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
936         (WebContentServiceInitializer):
937
938 2013-01-28  Kiran Muppala  <cmuppala@apple.com>
939
940         Add window occlusion criteria to determine page visibility on Mac
941         https://bugs.webkit.org/show_bug.cgi?id=107494
942
943         Reviewed by Simon Fraser.
944
945         * UIProcess/API/mac/PageClientImpl.mm:
946         (WebKit::PageClientImpl::isViewVisible): Add window occlusion check.
947         * UIProcess/API/mac/WKView.mm:
948         (-[WKView dealloc]): Remove self from the all views vector.
949         (-[WKView addWindowObserversForWindow:]): Register observer for
950         NSWindowWillOrderOffScreenNotification.
951         (-[WKView removeWindowObservers]): Unregister observer for
952         NSWindowWillOrderOffScreenNotification.
953         (-[WKView viewWillMoveToWindow:]): Disable occlusion notifications.
954         (-[WKView viewDidMoveToWindow]): Enable occlusion notifications.
955         (-[WKView _windowWillOrderOffScreen:]): Disable occlusion notifications.
956         (-[WKView _windowDidOrderOnScreen:]): Enable occlusion notifications.
957         This notification ensures that occlusion notifications are registered
958         correctly even if the NSWindow object is assigned a window number after
959         the viewDidMoveToWindow notification has been received.  This occurs
960         for instance during application launch.
961         (-[WKView _setIsWindowOccluded:]):
962         (-[WKView _enableWindowOcclusionNotifications]):
963         (-[WKView _disableWindowOcclusionNotifications]):
964         (windowBecameVisible):
965         (windowBecameOccluded):
966         (+[WKView _registerWindowOcclusionNotificationHandlers]):
967         (+[WKView _unregisterWindowOcclusionNotificationHandlers]):
968         (+[WKView _allViews]):
969         (-[WKView _isWindowOccluded]):
970         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]): Add
971         self to the all views vector.
972         * UIProcess/API/mac/WKViewInternal.h:
973
974 2013-01-28  Huang Dongsung  <luxtella@company100.net>
975
976         [TexMap] Enable debug borders and repaint counter via Settings.
977         https://bugs.webkit.org/show_bug.cgi?id=107198
978
979         Reviewed by Benjamin Poulain.
980
981         Currently, if the environment variable WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS
982         is set to 1, only CoordinatedBacking shows debug borders and repaint counter.
983
984         This patch makes the environment variable change Settings.
985
986         In addition, Qt uses WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS instead of
987         QT_WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS from now.
988
989         After Bug 105787, all backing stores and platform layers in TextureMapper can
990         show debug borders and repaint counter.
991
992         * UIProcess/API/efl/EwkView.cpp:
993         (EwkView::EwkView):
994         * UIProcess/API/gtk/WebKitSettings.cpp:
995         (webKitSettingsSetProperty):
996         * UIProcess/API/qt/qquickwebview.cpp:
997         (QQuickWebViewPrivate::initialize):
998
999 2013-01-28  Anders Carlsson  <andersca@apple.com>
1000
1001         Move Mach port handling from WorkQueue to Connection
1002         https://bugs.webkit.org/show_bug.cgi?id=108140
1003
1004         Reviewed by Sam Weinig.
1005
1006         Instead of having WorkQueue know about Mach port sources, just fold that
1007         functionality directly into Connection. This lets us get rid of the generic source
1008         handling from WorkQueue.
1009
1010         * Platform/CoreIPC/Connection.h:
1011         (Connection):
1012         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1013         (CoreIPC::Connection::platformInvalidate):
1014         (CoreIPC::createDataAvailableSource):
1015         (CoreIPC):
1016         (CoreIPC::Connection::open):
1017         (CoreIPC::Connection::initializeDeadNameSource):
1018         * Platform/WorkQueue.h:
1019         (WorkQueue::dispatchQueue):
1020         (WorkQueue):
1021         * Platform/mac/WorkQueueMac.cpp:
1022         (WorkQueue::platformInvalidate):
1023
1024 2013-01-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1025
1026         Add StorageManager class to cmake ports
1027
1028         Unreviewed build fix. Though StorageManager was added to WK2 in r141024,
1029         it is not added to cmake ports(EFL).
1030
1031         * CMakeLists.txt:
1032         * PlatformEfl.cmake:
1033
1034 2013-01-28  Sam Weinig  <sam@webkit.org>
1035
1036         <rdar://problem/13098777>
1037         Add (allow mach-lookup (global-name "com.apple.tccd.system"))
1038
1039         Reviewed by Maciej Stachowiak.
1040
1041         * WebProcess/com.apple.WebProcess.sb.in:
1042
1043 2013-01-28  Brady Eidson  <beidson@apple.com>
1044
1045         WebKit2 should notify the client if the NetworkProcess crashes.
1046         <rdar://problem/13090513> and https://bugs.webkit.org/show_bug.cgi?id=108126
1047
1048         Reviewed by Sam Weinig.
1049
1050         Add new client callback to the ContextClient:
1051         * UIProcess/API/C/WKContext.h:
1052         * UIProcess/WebContextClient.cpp:
1053         (WebKit::WebContextClient::networkProcessDidCrash):
1054         * UIProcess/WebContextClient.h:
1055
1056         Call out to the client when the NetworkProcess crashes:
1057         * UIProcess/WebContext.cpp:
1058         (WebKit::WebContext::networkProcessCrashed):
1059         * UIProcess/WebContext.h:
1060
1061         * UIProcess/Network/NetworkProcessProxy.cpp:
1062         (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
1063
1064 2013-01-28  Pratik Solanki  <psolanki@apple.com>
1065
1066         PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED
1067         https://bugs.webkit.org/show_bug.cgi?id=108101
1068
1069         Reviewed by Benjamin Poulain.
1070
1071         Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of
1072         __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check.
1073
1074         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1075         (InitWebCoreSystemInterface):
1076
1077 2013-01-28  Anders Carlsson  <andersca@apple.com>
1078
1079         Add StorageManager class
1080         https://bugs.webkit.org/show_bug.cgi?id=108127
1081
1082         Reviewed by Sam Weinig.
1083
1084         The StorageManager will be in charge of handling access to local and session storage
1085         in the UI process.
1086
1087         * UIProcess/Storage/StorageManager.cpp: Added.
1088         * UIProcess/Storage/StorageManager.h: Added.
1089         * WebKit2.xcodeproj/project.pbxproj:
1090
1091 2013-01-28  Anders Carlsson  <andersca@apple.com>
1092
1093         More work on UI side local storage
1094         https://bugs.webkit.org/show_bug.cgi?id=108119
1095
1096         Reviewed by Beth Dakin.
1097
1098         * WebKit2.xcodeproj/project.pbxproj:
1099         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1100         (WebKit::StorageNamespaceProxy::createSessionStorageNamespace):
1101         Rename create to createSessionStorageNamespace and make it take a WebPage.
1102
1103         (WebKit::StorageNamespaceProxy::StorageNamespaceProxy):
1104         Add WebPage parameter.
1105     
1106         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1107         (WebKit::WebPlatformStrategies::sessionStorageNamespace):
1108         Add an #ifdef for enabling UI side storage.
1109         
1110         * WebProcess/WebPage/WebFrame.cpp:
1111         (WebKit::WebFrame::page):
1112         Call new WebPage::fromCorePage helper.
1113
1114         * WebProcess/WebPage/WebPage.cpp:
1115         (WebKit::WebPage::fromCorePage):
1116         Add new function for getting a WebPage from a WebCore::Page.
1117
1118 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1119
1120         Improve PageVisibility API with enums
1121         https://bugs.webkit.org/show_bug.cgi?id=107364
1122
1123         Reviewed by Sam Weinig.
1124
1125         * Shared/API/c/WKPageVisibilityTypes.h: Added.
1126         * Shared/API/c/WKSharedAPICast.h:
1127         (WebKit::toPageVisibilityState):
1128         Create an enum for page visibility APIs and a conversion function
1129         for the WK2 values to WebCore values.
1130
1131         * Target.pri:
1132         * GNUmakefile.list.am:
1133         * WebKit2.xcodeproj/project.pbxproj:
1134         Add WKPageVisibilityTypes.h to the build as a private export.
1135
1136         * UIProcess/API/C/WKPage.h:
1137         * UIProcess/API/C/WKPage.cpp:
1138         (WKPageSetVisibilityState):
1139         * UIProcess/WebPageProxy.h:
1140         * UIProcess/WebPageProxy.cpp:
1141         (WebKit::WebPageProxy::setVisibilityState):
1142         UIProcess API to set visibility state. WebPageProxy already
1143         had m_visibilityState, so update that when setter is used.
1144
1145         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1146         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
1147         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1148         * WebProcess/InjectedBundle/InjectedBundle.h:
1149         Remove the old SPI for WebKitTestRunner. Tests now use the C API.
1150
1151         * WebProcess/WebPage/WebPage.h:
1152         * WebProcess/WebPage/WebPage.cpp:
1153         (WebKit::WebPage::setVisibilityState):
1154         * WebProcess/WebPage/WebPage.messages.in:
1155         Update the existing WebPage API to use uint32_t, which matches
1156         other enum message types.
1157
1158 2013-01-28  Christophe Dumez  <christophe.dumez@intel.com>
1159
1160         [EFL][WK2] Use C API inside ewk_download_job
1161         https://bugs.webkit.org/show_bug.cgi?id=107810
1162
1163         Reviewed by Anders Carlsson.
1164
1165         Use C API inside ewk_download_job instead of accessing internal C++
1166         classes directly, to avoid violating API layering.
1167
1168         * UIProcess/API/C/WKDownload.cpp:
1169         (WKDownloadGetID): Add C API to get the download ID as we need it to
1170         support our public API and it seems like a useful addition.
1171         * UIProcess/API/C/WKDownload.h:
1172         * UIProcess/API/efl/ewk_download_job.cpp:
1173         (EwkDownloadJob::EwkDownloadJob):
1174         (EwkDownloadJob::id):
1175         (EwkDownloadJob::request):
1176         (EwkDownloadJob::cancel):
1177         * UIProcess/API/efl/ewk_download_job_private.h:
1178         (EwkDownloadJob::create):
1179         (EwkDownloadJob):
1180         * UIProcess/efl/DownloadManagerEfl.cpp:
1181         (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename):
1182         (WebKit::DownloadManagerEfl::didReceiveResponse):
1183         (WebKit::DownloadManagerEfl::didCreateDestination):
1184         (WebKit::DownloadManagerEfl::didReceiveData):
1185         (WebKit::DownloadManagerEfl::didFail):
1186         (WebKit::DownloadManagerEfl::didCancel):
1187         (WebKit::DownloadManagerEfl::didFinish):
1188         (WebKit::DownloadManagerEfl::registerDownloadJob): Rename
1189         registerDownload() to registerDownloadJob() for consistency with
1190         unregisterDownloadJob().
1191         (WebKit::DownloadManagerEfl::ewkDownloadJob): Rename downloadJob() to
1192         ewkDownloadJob() for clarity since it returns a EwkDownload object.
1193         Also take a WKDownloadRef in argument instead of an identifier since
1194         all the callers have a WKDownloadRef and it makes their code simpler.
1195         Finally, make the getter non-const since it returns a non-const pointer.
1196         (WebKit::DownloadManagerEfl::unregisterDownloadJob): Take a
1197         WKDownloadRef in argument instead of an identifier since all the
1198         callers have a WKDownloadRef and it makes their code simpler.
1199         * UIProcess/efl/DownloadManagerEfl.h:
1200         (DownloadManagerEfl):
1201         * UIProcess/efl/PageClientBase.cpp:
1202         (WebKit::PageClientBase::handleDownloadRequest):
1203
1204 2013-01-28  Tim Horton  <timothy_horton@apple.com>
1205
1206         PDFPlugin: getMainResourceDataOfFrame should return PDFPlugin's data so that Save... works
1207         https://bugs.webkit.org/show_bug.cgi?id=108060
1208         <rdar://problem/13075454>
1209
1210         Reviewed by Sam Weinig.
1211
1212         * WebProcess/Plugins/Netscape/NetscapePlugin.h: Implement getResourceData.
1213         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
1214         * WebProcess/Plugins/PDF/SimplePDFPlugin.mm: Implement getResourceData, returning the accumulated
1215         data if it exists and has finished loading.
1216         (WebKit::SimplePDFPlugin::getResourceData):
1217         * WebProcess/Plugins/Plugin.h: Add getResourceData, which hands out a raw pointer/size pair
1218         to the plugin's "main resource" data.
1219         * WebProcess/Plugins/PluginProxy.h: Implement getResourceData.
1220         * WebProcess/Plugins/PluginView.cpp:
1221         (WebKit::PluginView::getResourceData): Forward getResourceData through to the plugin.
1222         * WebProcess/Plugins/PluginView.h:
1223         * WebProcess/WebPage/WebPage.cpp:
1224         (WebKit::WebPage::getMainResourceDataOfFrame): If the requested frame is backed by a PluginDocument,
1225         attempt to ask the PluginView for its resource data.
1226
1227 2013-01-28  Tim Horton  <timothy_horton@apple.com>
1228
1229         [wk2] WKView's intrinsicContentSize should only report a flexible width if the content width is less than the minimum width
1230         https://bugs.webkit.org/show_bug.cgi?id=108056
1231
1232         Reviewed by Simon Fraser.
1233
1234         We're currently reporting a flexible width if the intrinsic
1235         content size is less than *or equal* to the minimum layout
1236         width. This is wrong and causes ping-ponging between flexible
1237         and inflexible width in cases where autolayout fits our
1238         view to exactly the intrinsic content size. It should be strictly
1239         less than instead.
1240
1241         * UIProcess/API/mac/WKView.mm:
1242         (-[WKView _setIntrinsicContentSize:]):
1243
1244 2013-01-28  Anders Carlsson  <andersca@apple.com>
1245
1246         Add StorageStrategy member functions to WebKit2
1247         https://bugs.webkit.org/show_bug.cgi?id=108105
1248
1249         Reviewed by Tim Horton.
1250
1251         Add default implementations that just chain up to the base class for now.
1252
1253         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1254         (WebKit::WebPlatformStrategies::localStorageNamespace):
1255         (WebKit::WebPlatformStrategies::sessionStorageNamespace):
1256         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1257         (WebPlatformStrategies):
1258
1259 2013-01-28  Adam Barth  <abarth@webkit.org>
1260
1261         Remove webkitNotifications.createHTMLNotification
1262         https://bugs.webkit.org/show_bug.cgi?id=107598
1263
1264         Reviewed by Benjamin Poulain.
1265
1266         * Configurations/FeatureDefines.xcconfig:
1267
1268 2013-01-28  Andy Estes  <aestes@apple.com>
1269
1270         Fix non-fat builds by excluding PluginService.32 as a target dependency for WebKit2.
1271
1272         * WebKit2.xcodeproj/project.pbxproj:
1273
1274 2013-01-28  Renata Hodovan  <reni@webkit.org>
1275
1276         [Qt][Win][WK2] Build fix after r140957.
1277
1278         Rubber-stamped by Csaba Osztrogonác.
1279
1280         <sys/wait.h> is only needed and available on linux therefore it's moved into an ifdef block.
1281
1282         * WebProcess/qt/WebProcessMainQt.cpp:
1283
1284 2013-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1285
1286         [EFL][WK2] Use C API inside ewk_url_response
1287         https://bugs.webkit.org/show_bug.cgi?id=107826
1288
1289         Reviewed by Andreas Kling.
1290
1291         * Shared/API/c/WKURLResponse.cpp:
1292         (WKURLResponseGetExpectedContentsLength):
1293         * Shared/API/c/WKURLResponse.h:
1294
1295             Add new WK2 C API to get the expected contents length.
1296
1297         * UIProcess/API/efl/ewk_url_response.cpp:
1298         (EwkUrlResponse::EwkUrlResponse):
1299         (EwkUrlResponse::httpStatusCode):
1300         (EwkUrlResponse::contentLength):
1301         * UIProcess/API/efl/ewk_url_response_private.h:
1302         (EwkUrlResponse::create):
1303         (EwkUrlResponse):
1304
1305             Change the methods to not call WebCore methods.
1306
1307 2013-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1308
1309         [WK2][EFL] Remove unneeded private methods
1310         https://bugs.webkit.org/show_bug.cgi?id=107693
1311
1312         Reviewed by Andreas Kling.
1313
1314         Care has been taken to verify that the wrappers can
1315         never be null when called.
1316
1317         * UIProcess/API/efl/EwkViewImpl.cpp:
1318         (EwkViewImpl::displayTimerFired):
1319         (EwkViewImpl::createGLSurface):
1320         * UIProcess/API/efl/EwkViewImpl.h:
1321         (EwkViewImpl):
1322
1323 2013-01-28  Renata Hodovan  <reni@webkit.org>
1324
1325         [WK2] Putting QtWebProcess into a chrooted sandbox
1326         https://bugs.webkit.org/show_bug.cgi?id=90005
1327
1328         Reviewed by Anders Carlsson and Zoltan Herczeg.
1329
1330         This new feature makes possible to run WebProcess inside a chroot. In this case UIProcess calls the
1331         internal SandboxProcess binary what makes up an environment for WebProcess inside the sandbox and runs the WebProcess.
1332         SandboxProcess first creates two needed device files (random and urandom), mounts filesystems (proc and shared memory),
1333         then links run-time dependencies of WebProcess. After this, SandboxProcess moves to a new pid namespace (cloning with
1334         CLONE_NEWPID flag). Then after an other cloning (with CLONE_FS flag) we share our filesystem with our children. This is
1335         needed because we want to call chroot() function from here and jail our child (WebProcess) too. This will be performed
1336         when WebProcess sends a request for it via an socketpair. If sandboxing is done, SandboxProcess exits.
1337         Since chroot() system call needs sudoer rights SandboxProcess binary should have set its suid flag. However we can reduce
1338         its capabilites. First we restrict the capabilities of the process and the number of its possible resources. Furthermore
1339         we fallback to the nobody or the real user.
1340
1341         * Configurations/FeatureDefines.xcconfig:
1342         * SandboxProcess.pro: Added.
1343         * Shared/linux/SandboxProcess/SandboxEnvironmentLinux.cpp: Added.
1344         (launchChangeRootHelper):
1345         (setEnvironmentVariablesForChangeRootHelper):
1346         (prepareAndStartChangeRootHelper):
1347         (setCapabilities):
1348         (dropPrivileges):
1349         (fileExists):
1350         (directoryPermissions):
1351         (createDirectory):
1352         (createDirectoryPath):
1353         (createDeviceFiles):
1354         (mountFileSystems):
1355         (linkFile):
1356         (linkDirectory):
1357         (collectRunTimeDependencies):
1358         (setupXauthorityForNobodyUser):
1359         (initSandbox):
1360         (restrictCapabilities):
1361         (moveToNewPidNamespace):
1362         (run):
1363         (main):
1364         * Shared/linux/SandboxProcess/SandboxEnvironmentLinux.h: Added.
1365         * Shared/linux/SandboxProcess/StringOperations.cpp: Added.
1366         (stringCopy):
1367         (stringConcat):
1368         (stringAppend):
1369         * Shared/linux/SandboxProcess/StringOperations.h: Added.
1370         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
1371         (WebKit::ProcessLauncher::launchProcess):
1372         * WebKit2.pri:
1373         * WebProcess.pro:
1374         * WebProcess/qt/WebProcessMainQt.cpp:
1375         (WebKit):
1376         (WebKit::chrootMe):
1377         (WebKit::WebProcessMainQt):
1378
1379 2013-01-28  Christophe Dumez  <christophe.dumez@intel.com>
1380
1381         [EFL][WK2] Rely more on C API in ewk_favicon_database
1382         https://bugs.webkit.org/show_bug.cgi?id=108035
1383
1384         Reviewed by Benjamin Poulain.
1385
1386         Rely less on internal C++ API in ewk_favicon_database and use C API
1387         instead of avoid breaking API layering.
1388
1389         * PlatformEfl.cmake:
1390         * UIProcess/API/C/cairo/WKIconDatabaseCairo.cpp: Added.
1391         (WKIconDatabaseTryGetCairoSurfaceForURL): Add C API for getting the
1392         favicon for a given page URL as a cairo_surface_t*.
1393         * UIProcess/API/C/cairo/WKIconDatabaseCairo.h: Added.
1394         * UIProcess/API/efl/ewk_favicon_database.cpp:
1395         (EwkFaviconDatabase::didChangeIconForPageURL):
1396         (EwkFaviconDatabase::getIconSurfaceSynchronously):
1397         (EwkFaviconDatabase::iconDataReadyForPageURL):
1398
1399 2013-01-27  Alexey Proskuryakov  <ap@apple.com>
1400
1401         Fix location of sandbox profiles in built products
1402         https://bugs.webkit.org/show_bug.cgi?id=108026
1403
1404         Reviewed by Sam Weinig.
1405
1406         * WebKit2.xcodeproj/project.pbxproj: Sandbox profiles go into WebKit2 framework resources.
1407
1408 2013-01-27  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
1409
1410         Fixing atomicIncrement implementation for Windows by dropping support before XP SP2.
1411         https://bugs.webkit.org/show_bug.cgi?id=106740
1412
1413         Reviewed by Benjamin Poulain.
1414
1415         * config.h:
1416
1417 2013-01-27  Sam Weinig  <sam@webkit.org>
1418
1419         Add support for launching WebKit2 plugins using XPC
1420         https://bugs.webkit.org/show_bug.cgi?id=108040
1421
1422         Reviewed by Dan Bernstein.
1423
1424         * Configurations/PluginService.32.xcconfig: Copied from Source/WebKit2/Configurations/WebContentService.xcconfig.
1425         * Configurations/PluginService.64.xcconfig: Copied from Source/WebKit2/Configurations/WebContentService.xcconfig.
1426         * Configurations/PluginService.Development.xcconfig: Copied from Source/WebKit2/Configurations/WebContentService.xcconfig.
1427         Add configurations.
1428
1429         * PluginProcess/EntryPoint/mac/XPCService: Added.
1430         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32: Added.
1431         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist: Copied from Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist.
1432         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm: Copied from Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm.
1433         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64: Added.
1434         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist: Copied from Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist.
1435         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm: Copied from Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm.
1436         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development: Added.
1437         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist: Added.
1438         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm: Added.
1439         (main):
1440         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm: Copied from Source/WebKit2/NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm.
1441         (initializePluginService):
1442         Add entry points.
1443
1444         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1445         (WebKit::serviceName):
1446         Add plugin process service names and move into correct #ifdef.
1447
1448         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1449         (WebKit::shouldUseXPC):
1450         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
1451         Opt into xpc using the same rules as the WebProcess.
1452
1453         * WebKit2.xcodeproj/project.pbxproj:
1454         Add files.
1455
1456 2013-01-26  Alexey Proskuryakov  <ap@apple.com>
1457
1458         Use shared ChildProcess code to enter plug-in sandbox.
1459
1460         Reviewed by Sam Weinig.
1461
1462         There is one known behavior change from this refactoring: getpwuid_r is used
1463         instead of NSHomeDirectory for home directory, mathcing other client processes.
1464
1465         * PluginProcess/PluginProcess.cpp: (WebKit::PluginProcess::enterSandbox):
1466         * PluginProcess/PluginProcess.h:
1467         PluginProcess prevents ChildProcess attempt to enter the sandbox immediately on
1468         launch for now, because we don't have a sandbox profile directory path yet.
1469         It now keeps a copy of ChildProcessInitializationParameters, so that
1470         ChildProcess::initializeSandbox() could be called later.
1471
1472         * PluginProcess/mac/PluginProcessMac.mm:
1473         (WebKit::PluginProcess::platformInitializeProcess): Store a copy of ChildProcessInitializationParameters
1474         for later.
1475         (WebKit::loadSandboxProfile): Build a sandbox profile from a common prefix and
1476         a plugin-specific part.
1477         (WebKit::PluginProcess::platformInitializePluginProcess): We can enter the sandbox now.
1478         (WebKit::PluginProcess::enterSandbox): Prepare SandboxInitializationParameters,
1479         and call ChildProcess::initializeSandbox().
1480
1481         * Shared/mac/ChildProcessMac.mm:
1482         (WebKit::ChildProcess::initializeSandbox): Actually handle system directory suffix
1483         from parameters.
1484
1485         * WebKit2.xcodeproj/project.pbxproj:
1486         * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.h: Removed.
1487         * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm: Removed.
1488
1489 2013-01-26  Sam Weinig  <sam@webkit.org>
1490
1491         Add support for running the networking process as an XPCService
1492         https://bugs.webkit.org/show_bug.cgi?id=108025
1493
1494         Reviewed by Dan Bernstein.
1495
1496         * Configurations/NetworkService.Development.xcconfig: Copied from Source/WebKit2/Configurations/WebContentService.Development.xcconfig.
1497         * Configurations/NetworkService.xcconfig: Copied from Source/WebKit2/Configurations/WebContentService.xcconfig.
1498         Add configurations.
1499
1500         * NetworkProcess/EntryPoint/mac/XPCService: Added.
1501         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService: Added.
1502         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development: Added.
1503         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist: Copied from Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist.
1504         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm: Copied from Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm.
1505         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist: Copied from Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist.
1506         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm: Copied from Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm.
1507         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm: Copied from Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm.
1508         (initializeNetworkService):
1509         Add entry points.
1510
1511         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1512         (WebKit::serviceName):
1513         (WebKit::connectToServiceForDevelopment):
1514         (WebKit::createServiceForDevelopment):
1515         (WebKit::createService):
1516         (WebKit::createProcess):
1517         (WebKit::ProcessLauncher::launchProcess):
1518         Rework service creation to work for arbitrary services.
1519
1520         * UIProcess/Network/NetworkProcessProxy.cpp:
1521         (WebKit::NetworkProcessProxy::~NetworkProcessProxy):
1522         (WebKit::NetworkProcessProxy::getLaunchOptions):
1523         * UIProcess/Network/NetworkProcessProxy.h:
1524         * UIProcess/Network/mac/NetworkProcessProxyMac.mm:
1525         (WebKit::shouldUseXPC):
1526         (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
1527         Opt into xpc using the same rules as the WebProcess.
1528
1529         * WebKit2.xcodeproj/project.pbxproj:
1530         Update files.
1531
1532         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
1533         (initializeWebContentService):
1534         Fix the comment to refer to the shim correctly.
1535
1536 2013-01-26  Sam Weinig  <sam@webkit.org>
1537
1538         Simplify environment creation in XPC service re-exec
1539         https://bugs.webkit.org/show_bug.cgi?id=108017
1540
1541         Reviewed by Dan Bernstein.
1542
1543         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
1544         (WebKit::XPCServiceEventHandler):
1545         There is no need to copy these strings.
1546
1547 2013-01-26  Alexey Proskuryakov  <ap@apple.com>
1548
1549         Remove code for handling NetworkProcess authentication challenges in WebProcess
1550         https://bugs.webkit.org/show_bug.cgi?id=108003
1551
1552         Reviewed by Sam Weinig.
1553
1554         * DerivedSources.make:
1555         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1556         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
1557         * WebKit2.xcodeproj/project.pbxproj:
1558         * NetworkProcess/NetworkResourceLoader.messages.in: Removed. We no longer have
1559         an messages to NetworkResourceLoader.
1560
1561         * Shared/WebCoreArgumentCoders.cpp:
1562         (CoreIPC::::encode):
1563         (CoreIPC::::decode):
1564         There is no longer an identifier inside AuthenticationChallenge.
1565
1566         * NetworkProcess/NetworkResourceLoader.cpp:
1567         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge):
1568         (WebKit::NetworkResourceLoader::didCancelAuthenticationChallenge):
1569         * NetworkProcess/NetworkResourceLoader.h:
1570         Removed code for receiving authentication responses from WebProcess. Removed
1571         m_currentAuthenticationChallenge - AuthenticationMAnager now keeps track of that.
1572
1573         * WebProcess/Network/WebResourceLoader.cpp:
1574         * WebProcess/Network/WebResourceLoader.h:
1575         * WebProcess/Network/WebResourceLoader.messages.in:
1576         Removed code for handling authentication challenges. They are now sent directly to
1577         UI Process. The only thing WebProcess still does is decide whether is can authenticate
1578         against a particular authentication space.
1579
1580 2013-01-26  Sam Weinig  <sam@webkit.org>
1581
1582         Fix the development build.
1583
1584         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
1585         (WebKit::XPCServiceEventHandler):
1586         Use the right stringizer.
1587
1588 2013-01-26  Sam Weinig  <sam@webkit.org>
1589
1590         Refactor XPCService initialization to make it easier to add more services
1591         https://bugs.webkit.org/show_bug.cgi?id=108015
1592
1593         Reviewed by Dan Bernstein.
1594
1595         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h: Added.
1596         (WebKit::XPCServiceEventHandler):
1597         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h: Added.
1598         (WebKit::XPCServiceEventHandler):
1599         Move bootstrapping to Shared (like we have for the legacy process). For now, we use
1600         a macro to define the actual initialization point function to use, in the future, we
1601         could consider alternatives, such as getting the function name from the bundle.
1602
1603         * WebKit2.xcodeproj/project.pbxproj:
1604         Update files.
1605
1606         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
1607         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
1608         Simplify to use the new XPCServiceBootstrapper.
1609
1610         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm: Copied from Source/WebKit2/WebProcess/mac/WebProcessServiceEntryPoints.mm.
1611         (initializeWebContentService):
1612         * WebProcess/mac/WebProcessServiceEntryPoints.h: Removed.
1613         * WebProcess/mac/WebProcessServiceEntryPoints.mm: Removed.
1614         Move the entry point to where it belongs and extract the bootstrapping parts.
1615
1616 2013-01-26  Adenilson Cavalcanti  <cavalcantii@gmail.com>
1617
1618         [Qt]Qt build fix
1619         https://bugs.webkit.org/show_bug.cgi?id=108013
1620
1621         Changes on process initialization classes broke webkit building with Qt5. This
1622         patch fix it.
1623
1624         Reviewed by Sam Weinig.
1625
1626         * PluginProcess/qt/PluginProcessMainQt.cpp:
1627
1628 2013-01-26  Sam Weinig  <sam@webkit.org>
1629
1630         Hoist command line parsing into ChildProcessMain
1631         https://bugs.webkit.org/show_bug.cgi?id=108010
1632
1633         Reviewed by Dan Bernstein.
1634
1635         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
1636         (NetworkProcessMain):
1637         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
1638         (PluginProcessMain):
1639         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h:
1640         (WebKit::ChildProcessMain):
1641         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
1642         (SharedWorkerProcessMain):
1643         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
1644         (WebContentProcessMain):
1645
1646 2013-01-26  Sam Weinig  <sam@webkit.org>
1647
1648         Move LegacyProcess entry points into new EntryPoint directories
1649         https://bugs.webkit.org/show_bug.cgi?id=108008
1650
1651         Reviewed by Anders Carlsson.
1652
1653         Also refactors to remove the need for the overly general WebKitMain, by putting the
1654         framework lazy loading into a helper function each legacy process can call (in ChildProcessMainBootstrapper.h)
1655
1656         * Configurations/NetworkProcess.xcconfig:
1657         * Configurations/PluginProcess.xcconfig:
1658         * Configurations/SharedWorkerProcess.xcconfig:
1659         * Configurations/WebProcess.xcconfig:
1660         * NetworkProcess/EntryPoint: Added.
1661         * NetworkProcess/EntryPoint/mac: Added.
1662         * NetworkProcess/EntryPoint/mac/LegacyProcess: Added.
1663         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/NetworkProcess/Info.plist.
1664         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm: Copied from Source/WebKit2/NetworkProcess/mac/NetworkProcessMainMac.mm.
1665         (NetworkProcessMain):
1666         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Added.
1667         (main):
1668         * NetworkProcess/Info.plist: Removed.
1669         * NetworkProcess/NetworkProcessMain.h: Removed.
1670         * NetworkProcess/mac/NetworkProcessMainMac.mm: Removed.
1671         * PluginProcess/EntryPoint: Added.
1672         * PluginProcess/EntryPoint/mac: Added.
1673         * PluginProcess/EntryPoint/mac/LegacyProcess: Added.
1674         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/PluginProcess/Info.plist.
1675         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm: Copied from Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm.
1676         (PluginProcessMain):
1677         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Added.
1678         (main):
1679         * PluginProcess/Info.plist: Removed.
1680         * PluginProcess/PluginProcessMain.h: Removed.
1681         * PluginProcess/mac/PluginProcessMainMac.mm: Removed.
1682         * Shared/EntryPointUtilities: Added.
1683         * Shared/EntryPointUtilities/mac: Added.
1684         * Shared/EntryPointUtilities/mac/LegacyProcess: Added.
1685         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Copied from Source/WebKit2/Shared/mac/ChildProcessMain.h.
1686         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Copied from Source/WebKit2/Shared/mac/ChildProcessMain.mm.
1687         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Added.
1688         (closeUnusedFileDescriptors):
1689         (getBootstrapMainFunction):
1690         * Shared/EntryPointUtilities/mac/XPCService: Added.
1691         * Shared/mac/ChildProcessMain.h: Removed.
1692         * Shared/mac/ChildProcessMain.mm: Removed.
1693         * SharedWorkerProcess/EntryPoint: Added.
1694         * SharedWorkerProcess/EntryPoint/mac: Added.
1695         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess: Added.
1696         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/SharedWorkerProcess/Info.plist.
1697         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm: Copied from Source/WebKit2/SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm.
1698         (SharedWorkerProcessMain):
1699         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Added.
1700         (main):
1701         * SharedWorkerProcess/Info.plist: Removed.
1702         * SharedWorkerProcess/SharedWorkerProcessMain.h: Removed.
1703         * SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm: Removed.
1704         * WebKit2.xcodeproj/project.pbxproj:
1705         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist: Copied from Source/WebKit2/WebProcess/Info.plist.
1706         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm: Copied from Source/WebKit2/WebProcess/mac/WebProcessMainMac.mm.
1707         (WebKit::WebContentProcessMainDelegate::WebContentProcessMainDelegate):
1708         (WebKit):
1709         (WebContentProcessMain):
1710         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Added.
1711         (main):
1712         * WebProcess/Info.plist: Removed.
1713         * WebProcess/WebKitMain.cpp: Removed.
1714         * WebProcess/WebProcessMain.h: Removed.
1715         * WebProcess/mac/WebProcessMainMac.mm: Removed.
1716         * mac/MainMacProcess.cpp: Removed.
1717
1718 2013-01-25  Christophe Dumez  <christophe.dumez@intel.com>
1719
1720         [EFL][WK2] Use C API inside ewk_database_manager and ewk_storage_manager
1721         https://bugs.webkit.org/show_bug.cgi?id=107920
1722
1723         Reviewed by Benjamin Poulain.
1724
1725         Use C API inside ewk_database_manager and ewk_storage_manager instead
1726         of accessing internal C++ classes directly, to avoid violating API
1727         layering.
1728
1729         * UIProcess/API/efl/ewk_context.cpp:
1730         (EwkContext::EwkContext):
1731         * UIProcess/API/efl/ewk_database_manager.cpp:
1732         (EwkDatabaseManager::EwkDatabaseManager):
1733         (EwkDatabaseManager::getDatabaseOrigins):
1734         * UIProcess/API/efl/ewk_database_manager_private.h:
1735         (EwkDatabaseManager::create):
1736         (EwkDatabaseManager):
1737         * UIProcess/API/efl/ewk_storage_manager.cpp:
1738         (EwkStorageManager::EwkStorageManager):
1739         (EwkStorageManager::getStorageOrigins):
1740         * UIProcess/API/efl/ewk_storage_manager_private.h:
1741         (EwkStorageManager::create):
1742         (EwkStorageManager):
1743
1744 2013-01-25  Andreas Kling  <akling@apple.com>
1745
1746         [Mac] Defer loading the Web Inspector bundle until it's necessary.
1747         <http://webkit.org/b/107999>
1748         <rdar://problem/13091861>
1749
1750         Reviewed by Anders Carlsson.
1751
1752         Don't instantiate an NSBundle for the Web Inspector before it's needed.
1753         1.51MB progression on Membuster3.
1754
1755         * WebProcess/WebPage/WebInspector.cpp:
1756         (WebKit::WebInspector::WebInspector):
1757         * WebProcess/WebPage/WebInspector.h:
1758         (WebInspector):
1759         * WebProcess/WebPage/mac/WebInspectorMac.mm:
1760         (WebKit::WebInspector::setInspectorUsesWebKitUserInterface):
1761         (WebKit::WebInspector::localizedStringsURL):
1762
1763 2013-01-25  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1764
1765         [EFL][WK2] Fix build break after r140891.
1766
1767         Unreviewed build fix. SerializedScriptValue needs to use PassRefPtr in WK2 as well.
1768
1769         * Shared/WebSerializedScriptValue.h:
1770         (WebKit::WebSerializedScriptValue::create):
1771
1772 2013-01-25  Mark Rowe  <mrowe@apple.com>
1773
1774         Don't crash when the WKBundlePageUIClient doesn't implement createPlugInExtraStyleSheet.
1775
1776         Reviewed by Dean Jackson.
1777
1778         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1779         (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet): Check that createPlugInExtraStyleSheet
1780         is provided before calling it.
1781
1782 2013-01-25  Andy Estes  <aestes@apple.com>
1783
1784         Wrap content filtering code in an object
1785         https://bugs.webkit.org/show_bug.cgi?id=107914
1786
1787         Reviewed by Alexey Proskuryakov.
1788
1789         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1790         (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
1791
1792 2013-01-25  Brady Eidson  <beidson@apple.com>
1793
1794         HTTP Authentication should be directly between the NetworkProcess and the UIProcess
1795         <rdar://problem/13074829> and https://bugs.webkit.org/show_bug.cgi?id=107974
1796
1797         Reviewed by Alexey Proskuryakov.
1798
1799         Some of this patch is refactoring to enable more flexibility in the authentication mechanism
1800         and the rest is actually implementing Network->UI process authentication.
1801
1802         Expose the same AuthenticationManager to anyone in the NetworkProcess asking for it:
1803         * NetworkProcess/NetworkProcess.cpp:
1804         (WebKit::NetworkProcess::authenticationManager):
1805         (WebKit::NetworkProcess::downloadsAuthenticationManager):
1806         * NetworkProcess/NetworkProcess.h:
1807
1808         * NetworkProcess/NetworkResourceLoader.cpp:
1809         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge): Instead of messaging to
1810           the WebProcess, tell the NetworkProcess AuthenticationManager.
1811
1812         Add WebPageID and WebFrameID members to SchedulableLoader that they receive from 
1813         * NetworkProcess/SchedulableLoader.cpp:
1814         * NetworkProcess/SchedulableLoader.h:
1815         (WebKit::SchedulableLoader::webPageID):
1816         (WebKit::SchedulableLoader::webFrameID):
1817
1818         Add a 3rd form of "didReceiveAuthenticationChallenge" for NetworkProcess use:
1819         * Shared/Authentication/AuthenticationManager.cpp:
1820         (WebKit::AuthenticationManager::mapChallengeToIdentifier):
1821         (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
1822         * Shared/Authentication/AuthenticationManager.h:
1823         * Shared/Authentication/mac/AuthenticationManager.mac.mm:
1824         (WebKit::AuthenticationManager::tryUsePlatformCertificateInfoForChallenge): Remove a now obsolete comment
1825
1826         Include the WebPage and WebFrame ID for the originator of this request in case it results in a challenge:
1827         * Shared/Network/NetworkResourceLoadParameters.cpp:
1828         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1829         (WebKit::NetworkResourceLoadParameters::encode):
1830         (WebKit::NetworkResourceLoadParameters::decode):
1831         * Shared/Network/NetworkResourceLoadParameters.h:
1832         (WebKit::NetworkResourceLoadParameters::webPageID):
1833         (WebKit::NetworkResourceLoadParameters::webFrameID):
1834
1835         Create a AuthenticationChallengeProxy pointing back to the NetworkProcess (instead of a WebProcess),
1836         and send the challenge to the appropriate WebPageProxy:
1837         * UIProcess/Network/NetworkProcessProxy.cpp:
1838         (WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
1839         * UIProcess/Network/NetworkProcessProxy.h:
1840         * UIProcess/Network/NetworkProcessProxy.messages.in:
1841
1842         Refactor didReceiveAuthenticationChallenge so an outsider can directly hand over an AuthenticationChallengeProxy:
1843         * UIProcess/WebPageProxy.cpp:
1844         (WebKit::WebPageProxy::didReceiveAuthenticationChallenge):
1845         (WebKit::WebPageProxy::didReceiveAuthenticationChallengeProxy):
1846         * UIProcess/WebPageProxy.h:
1847
1848         Add a global WebPageID -> WebPageProxy map so parties with an ID don't need to know which process it belongs to:
1849         * UIProcess/WebProcessProxy.cpp:
1850         (WebKit::globalPageMap):
1851         (WebKit::WebProcessProxy::webPage):
1852         (WebKit::WebProcessProxy::createWebPage):
1853         (WebKit::WebProcessProxy::addExistingWebPage):
1854         (WebKit::WebProcessProxy::removeWebPage):
1855         * UIProcess/WebProcessProxy.h:
1856
1857         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1858         (WebKit::WebResourceLoadScheduler::scheduleLoad):
1859
1860         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1861         (WebKit::WebPlatformStrategies::loadResourceSynchronously): Pass 0 for WebFrameID and WebPageID since synchronous
1862           loads don't go through "normal" authentication channels and don't need them. Yet.
1863
1864 2013-01-25  Alexey Proskuryakov  <ap@apple.com>
1865
1866         <rdar://problem/13089261> Crash in WKSandboxExtensionGetSerializedFormat when opening Web Inspector
1867
1868         Reviewed by Brady Eidson.
1869
1870         * WebProcess/com.apple.WebProcess.sb.in: Should be able to issue extensions for
1871         Inspector files.
1872
1873 2013-01-25  Sam Weinig  <sam@webkit.org>
1874
1875         Try to fix the debug build.
1876
1877         * WebKit2.xcodeproj/project.pbxproj:
1878
1879 2013-01-25  Sam Weinig  <sam@webkit.org>
1880
1881         Move the WebContentServices to WebProcess/EntryPoint/mac/XPCService/.
1882
1883         Reviewed by Anders Carlsson.
1884
1885         * Configurations/WebContentService.Development.xcconfig:
1886         * Configurations/WebContentService.xcconfig:
1887         * WebKit2.xcodeproj/project.pbxproj:
1888         * WebProcess/EntryPoint: Added.
1889         * WebProcess/EntryPoint/mac: Added.
1890         * WebProcess/EntryPoint/mac/LegacyProcess: Added.
1891         * WebProcess/EntryPoint/mac/XPCService: Added.
1892         * WebProcess/EntryPoint/mac/XPCService/WebContentService: Copied from WebProcessService.
1893         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development: Copied from WebProcessServiceForWebKitDevelopment.
1894         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm: Copied from WebProcessServiceForWebKitDevelopment/WebProcessServiceForWebKitDevelopmentMain.mm.
1895         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebProcessServiceForWebKitDevelopmentMain.mm: Removed.
1896         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm: Copied from WebProcessService/WebProcessServiceMain.mm.
1897         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebProcessServiceMain.mm: Removed.
1898         * WebProcessService: Removed.
1899         * WebProcessService/Info.plist: Removed.
1900         * WebProcessService/WebProcessServiceMain.mm: Removed.
1901         * WebProcessServiceForWebKitDevelopment: Removed.
1902         * WebProcessServiceForWebKitDevelopment/Info.plist: Removed.
1903         * WebProcessServiceForWebKitDevelopment/WebProcessServiceForWebKitDevelopmentMain.mm: Removed.
1904
1905 2013-01-25  Ivan Krstić  <ike@apple.com>
1906
1907         Prepend common plugin sandbox profile to specific per-plugin one.
1908         <rdar://problem/13044349>
1909
1910         Reviewed by Alexey Proskuryakov.
1911
1912         * PluginProcess/mac/PluginProcessMac.mm:
1913         (WebKit::initializeSandbox):
1914
1915 2013-01-25  Dean Jackson  <dino@apple.com>
1916
1917         Add a user agent stylesheet for plugins
1918         https://bugs.webkit.org/show_bug.cgi?id=107890
1919
1920         Reviewed by Alexey Proskuryakov.
1921
1922         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Rename client callbacks
1923         to have a "create" prefix, making it clear that these generate new Strings.
1924         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Actually call into
1925         the injected bundle to retrieve any custom stylesheet for plugins.
1926         (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
1927         * WebProcess/WebCoreSupport/WebChromeClient.h:
1928         (WebChromeClient): Add override keyword onto virtual functions now
1929         that the base class has implementations.
1930
1931 2013-01-25  Alexey Proskuryakov  <ap@apple.com>
1932
1933         NetworkProcess cannot load files with non-ASCII names
1934         https://bugs.webkit.org/show_bug.cgi?id=107977
1935
1936         Reviewed by Brady Eidson.
1937
1938         * Shared/Network/NetworkResourceLoadParameters.cpp:
1939         (WebKit::NetworkResourceLoadParameters::encode): Use the correct path accessor.
1940
1941 2013-01-25  Alexey Proskuryakov  <ap@apple.com>
1942
1943         REGRESSION: System directory prefix doesn't have a "+"
1944         https://bugs.webkit.org/show_bug.cgi?id=107971
1945
1946         Reviewed by Brady Eidson.
1947
1948         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
1949         Re-added the "+".
1950
1951 2013-01-25  Brady Eidson  <beidson@apple.com>
1952
1953         New NetworkProcess can ASSERT after old NetworkProcess crashes
1954         https://bugs.webkit.org/show_bug.cgi?id=107970
1955
1956         Reviewed by Alexey Proskuryakov.
1957
1958         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1959         (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier): Don't tell the scheduler
1960           to remove a loader that doesn't exist, as we might be recovering from a crash.
1961
1962 2013-01-25  Alexey Proskuryakov  <ap@apple.com>
1963
1964         Send sandbox extensions for local files to NetworkProcess
1965         https://bugs.webkit.org/show_bug.cgi?id=107872
1966
1967         Reviewed by Brady Eidson.
1968
1969         Send sandbox extensions in NetworkResourceLoadParameters, and consume/invalidate
1970         them during loading. Changed NetworkProcess code to only use that class for IPC,
1971         not for actual implementation.
1972
1973         * NetworkProcess/HostRecord.cpp:
1974         (WebKit::HostRecord::scheduleResourceLoader):
1975         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1976         (WebKit::NetworkResourceLoadScheduler::scheduleLoader):
1977         (WebKit::NetworkResourceLoadScheduler::removeLoader):
1978         (WebKit::NetworkResourceLoadScheduler::receivedRedirect):
1979         * NetworkProcess/NetworkResourceLoader.cpp:
1980         (WebKit::NetworkResourceLoader::destinationID):
1981         (WebKit::NetworkResourceLoader::start):
1982         (WebKit::NetworkResourceLoader::resourceHandleStopped):
1983         (WebKit::NetworkResourceLoader::didReceiveResponse):
1984         (WebKit::NetworkResourceLoader::didFinishLoading):
1985         (WebKit::NetworkResourceLoader::didFail):
1986         (WebKit::NetworkResourceLoader::shouldUseCredentialStorage):
1987         * NetworkProcess/SchedulableLoader.cpp:
1988         (WebKit::SchedulableLoader::SchedulableLoader):
1989         (WebKit::SchedulableLoader::consumeSandboxExtensions):
1990         (WebKit::SchedulableLoader::invalidateSandboxExtensions):
1991         * NetworkProcess/SchedulableLoader.h:
1992         (WebKit::SchedulableLoader::identifier):
1993         (WebKit::SchedulableLoader::request):
1994         (WebKit::SchedulableLoader::priority):
1995         (WebKit::SchedulableLoader::contentSniffingPolicy):
1996         (WebKit::SchedulableLoader::allowStoredCredentials):
1997         (WebKit::SchedulableLoader::inPrivateBrowsingMode):
1998         (SchedulableLoader):
1999         * NetworkProcess/SyncNetworkResourceLoader.cpp:
2000         (WebKit::SyncNetworkResourceLoader::start):
2001         * Shared/Network/NetworkResourceLoadParameters.cpp:
2002         (WebKit::NetworkResourceLoadParameters::encode):
2003         (WebKit::NetworkResourceLoadParameters::decode):
2004         * Shared/Network/NetworkResourceLoadParameters.h:
2005         (WebKit::NetworkResourceLoadParameters::requestBodyExtensions):
2006         (WebKit::NetworkResourceLoadParameters::resourceSandboxExtension):
2007
2008 2013-01-25  Claudio Saavedra  <csaavedra@igalia.com>
2009
2010         Remove stale class include
2011         https://bugs.webkit.org/show_bug.cgi?id=107945
2012
2013         Reviewed by Andreas Kling.
2014
2015         * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.h:
2016         GeolocationPermissionRequestProxy has nothing to do here.
2017
2018 2013-01-25  Zan Dobersek  <zdobersek@igalia.com>
2019
2020         Unreviewed.
2021
2022         Now searching for *.messages.in in Source/WebKit2/WebProcess/Storage
2023         instead of Source/WebKit2/WebProcess/KeyValueStorage after the
2024         WebKeyValueStorageManager.messages.in was moved there.
2025
2026         * GNUmakefile.am:
2027
2028 2013-01-25  Zan Dobersek  <zdobersek@igalia.com>
2029
2030         Unreviewed.
2031
2032         Reincluding the input file for WebKeyValueStorageManager IPC messages
2033         into the extra distribution list after the file was moved.
2034
2035         * GNUmakefile.am:
2036
2037 2013-01-25  Zan Dobersek  <zdobersek@igalia.com>
2038
2039         Further GTK build fixing.
2040         Adding Source/WebKit2/WebProcess/Storage to the list of directories
2041         to be searched for header inclusion.
2042
2043         * GNUmakefile.am:
2044
2045 2013-01-25  Zan Dobersek  <zdobersek@igalia.com>
2046
2047         Unreviewed GTK build fix.
2048         Adjusting the build targets after WebKeyValueStorageManager.cpp was moved
2049         to a different directory.
2050
2051         * GNUmakefile.list.am:
2052
2053 2013-01-25  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2054
2055         [WK2][EFL] PagePolicyClientEfl should be based on C WK2 API
2056         https://bugs.webkit.org/show_bug.cgi?id=107854
2057
2058         Reviewed by Benjamin Poulain.
2059
2060         PagePolicyClientEfl should be based on C WK2 API in order not to
2061         break API layering.
2062
2063         * UIProcess/efl/PagePolicyClientEfl.cpp:
2064         (WebKit::PagePolicyClientEfl::decidePolicyForResponseCallback):
2065
2066 2013-01-25  Huang Dongsung  <luxtella@company100.net>
2067
2068         [Qt][Gtk] build fix after r140752.
2069         https://bugs.webkit.org/show_bug.cgi?id=107908
2070
2071         Reviewed by Kentaro Hara.
2072
2073         Build break after r140752.
2074
2075         Move Authentication and Downloads to Shared.
2076
2077         * DerivedSources.pri:
2078         * GNUmakefile.am:
2079         * WebKit2.pri:
2080
2081 2013-01-24  Tim Horton  <timothy_horton@apple.com>
2082
2083         [wk2] Page overlays should do their own animation, instead of relying on implicit animation
2084         https://bugs.webkit.org/show_bug.cgi?id=107896
2085         <rdar://problem/12900058>
2086
2087         Reviewed by Sam Weinig.
2088
2089         Use PageOverlay's animation instead of CA implicit animations for uninstallPageOverlay.
2090
2091         Make WKBundlePageInstallPageOverlay/WKBundlePageUninstallPageOverlay default to no animation.
2092
2093         Add WKBundlePageInstallPageOverlayWithAnimation/WKBundlePageUninstallPageOverlayWithAnimation.
2094
2095         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2096         (WKBundlePageUninstallPageOverlay): The default for shouldFadeOut is now false, so we don't need to pass it.
2097         (WKBundlePageInstallPageOverlayWithAnimation): Add a version of WKBundlePageInstallPageOverlay that fades in.
2098         (WKBundlePageUninstallPageOverlayWithAnimation): Add a version of WKBundlePageUninstallPageOverlay that fades out.
2099         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2100         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
2101         (WebKit::WebInspectorClient::highlight): installPageOverlay used to animate by default, now we need to ask for it.
2102         (WebKit::WebInspectorClient::hideHighlight): uninstallPageOverlay used to implicitly animate accidentally, now we need to ask for it.
2103         * WebProcess/WebPage/FindController.cpp:
2104         (WebKit::FindController::updateFindUIAfterPageScroll): Ditto.
2105         (WebKit::FindController::hideFindUI): Ditto.
2106         * WebProcess/WebPage/WebPage.cpp:
2107         (WebKit::WebPage::installPageOverlay): Add shouldFadeIn parameter.
2108         (WebKit::WebPage::uninstallPageOverlay):
2109         * WebProcess/WebPage/WebPage.h:
2110         (WebPage): Add shouldFadeIn to installPageOverlay; make both it and uninstallPageOverlay's shouldFade out default to false.
2111         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2112         (WebKit::TiledCoreAnimationDrawingArea::destroyPageOverlayLayer): Disable implicit animations when removing a page overlay.
2113
2114 2013-01-24  Huang Dongsung  <luxtella@company100.net>
2115
2116         [EFL] Unreviewed build fix after r140752.
2117         https://bugs.webkit.org/show_bug.cgi?id=107886
2118
2119         Build break after r140752.
2120
2121         * PlatformEfl.cmake: Move DownloadSoupErrorsEfl and DownloadSoup to Shared/Downloads.
2122
2123 2013-01-24  Tim Horton  <timothy_horton@apple.com>
2124
2125         Fix NetworkProcess loading after r140730.
2126
2127         Reviewed by Sam Weinig.
2128
2129         If a process' sandbox profile path is empty, don't try to initialize the sandbox.
2130
2131         * Shared/mac/ChildProcessMac.mm:
2132         (WebKit::ChildProcess::initializeSandbox):
2133
2134 2013-01-24  Ryosuke Niwa  <rniwa@webkit.org>
2135
2136         Mac build fix after r140752.
2137
2138         * DerivedSources.make:
2139
2140 2013-01-24  Jae Hyun Park  <jae.park@company100.net>
2141
2142         Redundant LegacyReceiver attribute in WebPage.messages.in
2143         https://bugs.webkit.org/show_bug.cgi?id=107875
2144
2145         Reviewed by Anders Carlsson.
2146
2147         To generate WebPageMessageReceiver with legacy, just one LegacyReceiver
2148         attribute in WebPage.messages.in is enough. This patch removes this
2149         redundant attribute.
2150
2151         * WebProcess/WebPage/WebPage.messages.in:
2152
2153 2013-01-24  Anders Carlsson  <andersca@apple.com>
2154
2155         Fix release build.
2156
2157         * WebProcess/Storage/StorageAreaProxy.cpp:
2158         (WebKit::StorageAreaProxy::length):
2159
2160 2013-01-24  Alexey Proskuryakov  <ap@apple.com>
2161
2162         <rdar://problem/9971916> [WK2] Update sandbox extension usage
2163         https://bugs.webkit.org/show_bug.cgi?id=107861
2164
2165         Reviewed by Sam Weinig.
2166
2167         * Shared/SandboxExtension.h:
2168         * Shared/mac/SandboxExtensionMac.mm:
2169         (WebKit::wkSandboxExtensionType):
2170         * UIProcess/Downloads/DownloadProxy.cpp:
2171         (WebKit::DownloadProxy::decideDestinationWithSuggestedFilename):
2172         * UIProcess/WebContext.cpp:
2173         (WebKit::WebContext::createNewWebProcess):
2174         (WebKit::WebContext::processDidFinishLaunching):
2175         (WebKit::WebContext::startMemorySampler):
2176         * WebProcess/com.apple.WebProcess.sb.in:
2177
2178 2013-01-24  Brady Eidson  <beidson@apple.com>
2179
2180         Move Authentication and Downloads from WebProcess to Shared.
2181         https://bugs.webkit.org/show_bug.cgi?id=107879
2182
2183         Reviewed by Anders Carlsson.
2184
2185         * Shared/Authentication/AuthenticationManager.cpp: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.cpp.
2186         * Shared/Authentication/AuthenticationManager.h: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.h.
2187         * Shared/Authentication/AuthenticationManager.messages.in: Renamed from Source/WebKit2/WebProcess/Authentication/AuthenticationManager.messages.in.
2188         * Shared/Authentication/mac/AuthenticationManager.mac.mm: Renamed from Source/WebKit2/WebProcess/Authentication/mac/AuthenticationManager.mac.mm.
2189         * Shared/Downloads/Download.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/Download.cpp.
2190         * Shared/Downloads/Download.h: Renamed from Source/WebKit2/WebProcess/Downloads/Download.h.
2191         * Shared/Downloads/DownloadAuthenticationClient.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadAuthenticationClient.cpp.
2192         * Shared/Downloads/DownloadAuthenticationClient.h: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadAuthenticationClient.h.
2193         * Shared/Downloads/DownloadManager.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadManager.cpp.
2194         * Shared/Downloads/DownloadManager.h: Renamed from Source/WebKit2/WebProcess/Downloads/DownloadManager.h.
2195         * Shared/Downloads/cfnet/DownloadCFNet.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/cfnet/DownloadCFNet.cpp.
2196         * Shared/Downloads/curl/DownloadCurl.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/curl/DownloadCurl.cpp.
2197         * Shared/Downloads/efl/DownloadSoupErrorsEfl.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp.
2198         * Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp.
2199         * Shared/Downloads/mac/DownloadMac.mm: Renamed from Source/WebKit2/WebProcess/Downloads/mac/DownloadMac.mm.
2200         * Shared/Downloads/qt/DownloadQt.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/qt/DownloadQt.cpp.
2201         * Shared/Downloads/qt/QtFileDownloader.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.cpp.
2202         * Shared/Downloads/qt/QtFileDownloader.h: Renamed from Source/WebKit2/WebProcess/Downloads/qt/QtFileDownloader.h.
2203         * Shared/Downloads/soup/DownloadSoup.cpp: Renamed from Source/WebKit2/WebProcess/Downloads/soup/DownloadSoup.cpp.
2204         * Shared/Downloads/soup/DownloadSoupErrors.h: Renamed from Source/WebKit2/WebProcess/Downloads/soup/DownloadSoupErrors.h.
2205
2206         * CMakeLists.txt:
2207         * GNUmakefile.list.am:
2208         * Target.pri:
2209         * WebKit2.xcodeproj/project.pbxproj:
2210
2211 2013-01-24  Seokju Kwon  <seokju.kwon@gmail.com>
2212
2213         [EFL] Unreviewed build fix after r140711
2214         https://bugs.webkit.org/show_bug.cgi?id=107873
2215
2216         Unreviewed build fix.
2217
2218         Build break after r140711.
2219
2220         * CMakeLists.txt: Move WebKeyValueStorageManager to WebProcess/Storage.
2221
2222 2013-01-24  Jae Hyun Park  <jae.park@company100.net>
2223
2224         Coordinated Graphics: remove SurfaceUpdateInfo::encode/decode
2225         https://bugs.webkit.org/show_bug.cgi?id=107794
2226
2227         Reviewed by Anders Carlsson.
2228
2229         We want to remove the dependency on CoreIPC from SurfaceUpdateInfo
2230         because we will extract Coordinated Graphics from WK2. Since
2231         SurfaceUpdateInfo is only used in Coordinated Graphics, this patch
2232         moves it to Shared/CoordinatedGraphics, and removes CoreIPC
2233         dependency.
2234
2235         No new tests, no change in behavior.
2236
2237         * CMakeLists.txt:
2238         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2239         (CoreIPC::::encode):
2240         (CoreIPC):
2241         (CoreIPC::::decode):
2242         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2243         (WebKit):
2244         * Shared/CoordinatedGraphics/SurfaceUpdateInfo.h: Renamed from Source/WebKit2/Shared/SurfaceUpdateInfo.h.
2245         (WebKit):
2246         (SurfaceUpdateInfo):
2247         (WebKit::SurfaceUpdateInfo::SurfaceUpdateInfo):
2248         * Shared/SurfaceUpdateInfo.cpp: Removed.
2249         * Target.pri:
2250
2251 2013-01-24  Anders Carlsson  <andersca@apple.com>
2252
2253         More StorageAreaProxy cleanup
2254         https://bugs.webkit.org/show_bug.cgi?id=107870
2255
2256         Reviewed by Beth Dakin.
2257
2258         Remove some unnecessary 'WebCore::' qualifications, 
2259         and implement StorageNamespaceProxy::storageArea.
2260         
2261         * WebProcess/Storage/StorageAreaProxy.cpp:
2262         * WebProcess/Storage/StorageAreaProxy.h:
2263         * WebProcess/Storage/StorageNamespaceProxy.cpp:
2264
2265 2013-01-24  Sam Weinig  <sam@webkit.org>
2266
2267         Cleanup sandbox initialization a bit
2268         https://bugs.webkit.org/show_bug.cgi?id=107847
2269
2270         Reviewed by Alexey Proskuryakov.
2271
2272         * NetworkProcess/NetworkProcess.cpp:
2273         (WebKit::NetworkProcess::initializeSandbox):
2274         * NetworkProcess/NetworkProcess.h:
2275         * NetworkProcess/mac/NetworkProcessMac.mm:
2276         (WebKit::NetworkProcess::initializeSandbox):
2277         * PluginProcess/PluginProcess.h:
2278         * Shared/ChildProcess.cpp:
2279         (WebKit::ChildProcess::initialize):
2280         (WebKit::ChildProcess::initializeSandbox):
2281         * Shared/ChildProcess.h:
2282         (ChildProcess):
2283         * Shared/SandboxInitializationParameters.h:
2284         (SandboxInitializationParameters):
2285         (WebKit::SandboxInitializationParameters::mode):
2286         (WebKit::SandboxInitializationParameters::setOverrideSandboxProfilePath):
2287         (WebKit::SandboxInitializationParameters::overrideSandboxProfilePath):
2288         (WebKit::SandboxInitializationParameters::setSandboxProfile):
2289         (WebKit::SandboxInitializationParameters::sandboxProfile):
2290         (WebKit::SandboxInitializationParameters::SandboxInitializationParameters):
2291         (WebKit::SandboxInitializationParameters::~SandboxInitializationParameters):
2292         * Shared/mac/ChildProcessMac.mm:
2293         (WebKit::ChildProcess::platformInitialize):
2294         (WebKit::ChildProcess::initializeSandbox):
2295         * Shared/mac/SandboxInitialiationParametersMac.mm:
2296         (WebKit::SandboxInitializationParameters::SandboxInitializationParameters):
2297         * WebProcess/WebProcess.cpp:
2298         (WebKit::WebProcess::initializeSandbox):
2299         * WebProcess/WebProcess.h:
2300         * WebProcess/mac/WebProcessMac.mm:
2301         (WebKit::ChildProcess::initializeSandbox):
2302
2303 2013-01-24  Anders Carlsson  <andersca@apple.com>
2304
2305         Add stubbed out StorageAreaProxy class
2306         https://bugs.webkit.org/show_bug.cgi?id=107864
2307
2308         Reviewed by Beth Dakin.
2309
2310         * WebKit2.xcodeproj/project.pbxproj:
2311         * WebProcess/Storage/StorageAreaProxy.cpp: Added.
2312         * WebProcess/Storage/StorageAreaProxy.h: Added.
2313
2314 2013-01-24  Csaba Osztrogonác  <ossy@webkit.org>
2315
2316         Unreviewed trivial buildfix after r140711.
2317
2318         * DerivedSources.pri:
2319         * Target.pri:
2320
2321 2013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
2322
2323         Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
2324         https://bugs.webkit.org/show_bug.cgi?id=107327
2325
2326         Reviewed by Filip Pizlo.
2327
2328         We're renaming these two files, so we have to replace the names everywhere.
2329
2330         * WebProcess/WebPage/WebPage.cpp:
2331
2332 2013-01-24  Dean Jackson  <dino@apple.com>
2333
2334         Allow some plugin snapshot UI content to come from Injected Bundle
2335         https://bugs.webkit.org/show_bug.cgi?id=107852
2336
2337         Reviewed by Anders Carlsson.
2338
2339         Hook up three new methods: plugInStartLabelTitle, plugInStartLabelSubtitle and
2340         plugInExtraStyleSheet to allow some custom styling and content to come
2341         from the InjectedBundle.
2342
2343         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Callbacks added to
2344         WKBundlePageUIClient structure.
2345         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Stub implementations
2346         of the three new methods.
2347         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
2348         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
2349         (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
2350         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2351         (InjectedBundlePageUIClient):
2352         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Call into the injected bundle
2353         for each of these methods.
2354         (WebKit::WebChromeClient::plugInStartLabelTitle):
2355         (WebKit::WebChromeClient::plugInStartLabelSubtitle):
2356         (WebKit::WebChromeClient::plugInExtraStyleSheet):
2357         * WebProcess/WebCoreSupport/WebChromeClient.h:
2358         (WebChromeClient): Declare the virtual methods in the Chrome
2359         Client so that they can accessed from WebCore eventually.
2360
2361 2013-01-24  Anders Carlsson  <andersca@apple.com>
2362
2363         Add stubbed out StorageNamespaceProxy class
2364         https://bugs.webkit.org/show_bug.cgi?id=107846
2365
2366         Reviewed by Sam Weinig.
2367
2368         Add new class.
2369
2370         * WebKit2.xcodeproj/project.pbxproj:
2371         * WebProcess/Storage/StorageNamespaceProxy.cpp: Added.
2372         * WebProcess/Storage/StorageNamespaceProxy.h: Added.
2373
2374 2013-01-24  Anders Carlsson  <andersca@apple.com>
2375
2376         Move WebKeyValueStorageManager to WebProcess/Storage.
2377
2378         Rubber-stamped by Sam Weinig.
2379
2380         Try this again, with DerivedSources.make correctly updated this time.
2381
2382         * DerivedSources.make:
2383         * WebKit2.xcodeproj/project.pbxproj:
2384         * WebProcess/Storage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp.
2385         * WebProcess/Storage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.h.
2386         * WebProcess/Storage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in.
2387
2388 2013-01-24  Christophe Dumez  <christophe.dumez@intel.com>
2389
2390         [EFL][WK2] Use C API inside ewk_favicon_database
2391         https://bugs.webkit.org/show_bug.cgi?id=107680
2392
2393         Reviewed by Kenneth Rohde Christiansen.
2394
2395         Use C API inside ewk_favicon_database instead of
2396         accessible the C++ classes and violating layering.
2397         We still rely on some C++ methods but this will be
2398         addressed later since there is no equivalent in
2399         the C API and it will require more refactoring.
2400
2401         * UIProcess/API/efl/ewk_context.cpp:
2402         (EwkContext::ensureFaviconDatabase):
2403         * UIProcess/API/efl/ewk_favicon_database.cpp:
2404         (EwkFaviconDatabase::EwkFaviconDatabase):
2405         (EwkFaviconDatabase::~EwkFaviconDatabase):
2406         (EwkFaviconDatabase::iconURLForPageURL):
2407         (EwkFaviconDatabase::iconForPageURL):
2408         (EwkFaviconDatabase::getIconSurfaceSynchronously):
2409         (EwkFaviconDatabase::iconDataReadyForPageURL):
2410         (ewk_favicon_database_async_icon_get):
2411         * UIProcess/API/efl/ewk_favicon_database_private.h:
2412         (EwkFaviconDatabase::create):
2413         (EwkFaviconDatabase):
2414
2415 2013-01-24  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2416
2417         [EFL][WK2] Rename EwkViewImpl class to EwkView
2418         https://bugs.webkit.org/show_bug.cgi?id=107719
2419
2420         Reviewed by Andreas Kling.
2421
2422         Rename EwkViewImpl class to EwkView, due to ewk view
2423         refactoring plan (https://bugs.webkit.org/show_bug.cgi?id=107662#c1).
2424
2425         * PlatformEfl.cmake:
2426         * UIProcess/API/C/efl/WKView.cpp:
2427         (WKViewCreate):
2428         (WKViewCreateWithFixedLayout):
2429         (WKViewGetPage):
2430         (WKViewCreateSnapshot):
2431         * UIProcess/API/efl/EwkView.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp.
2432         (pageViewMap):
2433         (EwkView::addToPageViewMap):
2434         (EwkView::removeFromPageViewMap):
2435         (EwkView::viewFromPageViewMap):
2436         (EwkView::EwkView):
2437         (EwkView::~EwkView):
2438         (EwkView::smartData):
2439         (EwkView::fromEvasObject):
2440         (EwkView::wkPage):
2441         (EwkView::setCursor):
2442         (EwkView::setDeviceScaleFactor):
2443         (EwkView::deviceScaleFactor):
2444         (EwkView::transformFromScene):
2445         (EwkView::transformToScene):
2446         (EwkView::transformToScreen):
2447         (EwkView::layerTreeRenderer):
2448         (EwkView::displayTimerFired):
2449         (EwkView::update):
2450         (EwkView::enterFullScreen):
2451         (EwkView::exitFullScreen):
2452         (EwkView::windowGeometry):
2453         (EwkView::setWindowGeometry):
2454         (EwkView::setImageData):
2455         (EwkView::size):
2456         (EwkView::isFocused):
2457         (EwkView::isVisible):
2458         (EwkView::title):
2459         (EwkView::inputMethodContext):
2460         (EwkView::themePath):
2461         (EwkView::setThemePath):
2462         (EwkView::customTextEncodingName):
2463         (EwkView::setCustomTextEncodingName):
2464         (EwkView::setMouseEventsEnabled):
2465         (EwkView::setTouchEventsEnabled):
2466         (EwkView::informIconChange):
2467         (EwkView::createGLSurface):
2468         (EwkView::enterAcceleratedCompositingMode):
2469         (EwkView::exitAcceleratedCompositingMode):
2470         (EwkView::requestColorPicker):
2471         (EwkView::dismissColorPicker):
2472         (EwkView::showContextMenu):
2473         (EwkView::hideContextMenu):
2474         (EwkView::requestPopupMenu):
2475         (EwkView::closePopupMenu):
2476         (EwkView::requestJSAlertPopup):
2477         (EwkView::requestJSConfirmPopup):
2478         (EwkView::requestJSPromptPopup):
2479         (EwkView::informDatabaseQuotaReached):
2480         (EwkView::informURLChange):
2481         (EwkView::windowFeatures):
2482         (EwkView::createNewPage):
2483         (EwkView::close):
2484         (EwkView::onMouseDown):
2485         (EwkView::onMouseUp):
2486         (EwkView::onMouseMove):
2487         (EwkView::feedTouchEvents):
2488         (EwkView::onTouchDown):
2489         (EwkView::onTouchUp):
2490         (EwkView::onTouchMove):
2491         (EwkView::onFaviconChanged):
2492         (EwkView::takeSnapshot):
2493         * UIProcess/API/efl/EwkView.h: Renamed from Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h.
2494         (WebKit):
2495         (WebCore):
2496         (EwkView):
2497         (EwkView::view):
2498         (EwkView::page):
2499         (EwkView::ewkContext):
2500         (EwkView::settings):
2501         (EwkView::backForwardList):
2502         (EwkView::url):
2503         (EwkView::faviconURL):
2504         (EwkView::mouseEventsEnabled):
2505         (EwkView::touchEventsEnabled):
2506         (EwkView::setNeedsSurfaceResize):
2507         (EwkView::smartCallback):
2508         (EwkView::pageClient):
2509         (EwkView::setPageScaleFactor):
2510         (EwkView::pageScaleFactor):
2511         (EwkView::setPagePosition):
2512         (EwkView::pagePosition):
2513         (EwkView::isHardwareAccelerated):
2514         (EwkView::setDrawsBackground):
2515         (EwkView::evasGLContext):
2516         (EwkView::evasGLSurface):
2517         * UIProcess/API/efl/ewk_context_menu.cpp:
2518         (EwkContextMenu::EwkContextMenu):
2519         * UIProcess/API/efl/ewk_context_menu_private.h:
2520         (EwkContextMenu::create):
2521         (EwkContextMenu):
2522         * UIProcess/API/efl/ewk_download_job.cpp:
2523         (EwkDownloadJob::EwkDownloadJob):
2524         (EwkDownloadJob::view):
2525         * UIProcess/API/efl/ewk_download_job_private.h:
2526         (EwkDownloadJob::create):
2527         (EwkDownloadJob):
2528         * UIProcess/API/efl/ewk_popup_menu.cpp:
2529         (EwkPopupMenu::EwkPopupMenu):
2530         (EwkPopupMenu::close):
2531         * UIProcess/API/efl/ewk_popup_menu_private.h:
2532         (EwkPopupMenu::create):
2533         (EwkPopupMenu):
2534         * UIProcess/API/efl/ewk_settings.cpp:
2535         (EwkSettings::preferences):
2536         * UIProcess/API/efl/ewk_settings_private.h:
2537         (EwkSettings::create):
2538         (EwkSettings::EwkSettings):
2539         (EwkSettings):
2540         * UIProcess/API/efl/ewk_view.cpp:
2541         (createEwkView):
2542         (ewk_view_base_add):
2543         * UIProcess/API/efl/ewk_view.h:
2544         * UIProcess/API/efl/ewk_view_private.h:
2545         * UIProcess/API/efl/ewk_window_features.cpp:
2546         (EwkWindowFeatures::EwkWindowFeatures):
2547         (EwkWindowFeatures::setToolbarVisible):
2548         (EwkWindowFeatures::setStatusBarVisible):
2549         (EwkWindowFeatures::setMenuBarVisible):
2550         (EwkWindowFeatures::setResizable):
2551         * UIProcess/API/efl/ewk_window_features_private.h:
2552         (EwkWindowFeatures::create):
2553         (EwkWindowFeatures):
2554         * UIProcess/cairo/BackingStoreCairo.cpp:
2555         (WebKit::BackingStore::incorporateUpdate):
2556         * UIProcess/efl/ContextHistoryClientEfl.cpp:
2557         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
2558         (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
2559         (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
2560         (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
2561         * UIProcess/efl/ContextMenuClientEfl.cpp:
2562         (ContextMenuClientEfl::ContextMenuClientEfl):
2563         * UIProcess/efl/ContextMenuClientEfl.h:
2564         (WebKit::ContextMenuClientEfl::create):
2565         (ContextMenuClientEfl):
2566         * UIProcess/efl/DownloadManagerEfl.cpp:
2567         (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename):
2568         (WebKit::DownloadManagerEfl::didFail):
2569         (WebKit::DownloadManagerEfl::didCancel):
2570         (WebKit::DownloadManagerEfl::didFinish):
2571         (WebKit::DownloadManagerEfl::registerDownload):
2572         * UIProcess/efl/DownloadManagerEfl.h:
2573         (DownloadManagerEfl):
2574         * UIProcess/efl/FindClientEfl.cpp:
2575         (WebKit::FindClientEfl::didFindString):
2576         (WebKit::FindClientEfl::didFailToFindString):
2577         (WebKit::FindClientEfl::FindClientEfl):
2578         * UIProcess/efl/FindClientEfl.h:
2579         (WebKit::FindClientEfl::create):
2580         (FindClientEfl):
2581         * UIProcess/efl/FormClientEfl.cpp:
2582         (WebKit::FormClientEfl::willSubmitForm):
2583         (WebKit::FormClientEfl::FormClientEfl):
2584         * UIProcess/efl/FormClientEfl.h:
2585         (WebKit::FormClientEfl::create):
2586         (FormClientEfl):
2587         * UIProcess/efl/InputMethodContextEfl.cpp:
2588         (WebKit::InputMethodContextEfl::InputMethodContextEfl):
2589         (WebKit::InputMethodContextEfl::onIMFInputSequenceComplete):
2590         (WebKit::InputMethodContextEfl::onIMFPreeditSequenceChanged):
2591         (WebKit::InputMethodContextEfl::updateTextInputState):
2592         * UIProcess/efl/InputMethodContextEfl.h:
2593         (WebKit::InputMethodContextEfl::create):
2594         (InputMethodContextEfl):
2595         * UIProcess/efl/PageClientBase.cpp:
2596         (WebKit::PageClientBase::PageClientBase):
2597         (WebKit::PageClientBase::view):
2598         (WebKit::PageClientBase::createDrawingAreaProxy):
2599         (WebKit::PageClientBase::setViewNeedsDisplay):
2600         (WebKit::PageClientBase::viewSize):
2601         (WebKit::PageClientBase::isViewFocused):
2602         (WebKit::PageClientBase::isViewVisible):
2603         (WebKit::PageClientBase::processDidCrash):
2604         (WebKit::PageClientBase::didRelaunchProcess):
2605         (WebKit::PageClientBase::toolTipChanged):
2606         (WebKit::PageClientBase::setCursor):
2607         (WebKit::PageClientBase::createPopupMenuProxy):
2608         (WebKit::PageClientBase::createContextMenuProxy):
2609         (WebKit::PageClientBase::enterAcceleratedCompositingMode):
2610         (WebKit::PageClientBase::exitAcceleratedCompositingMode):
2611         (WebKit::PageClientBase::updateTextInputState):
2612         (WebKit::PageClientBase::handleDownloadRequest):
2613         * UIProcess/efl/PageClientBase.h:
2614         (PageClientBase):
2615         * UIProcess/efl/PageClientDefaultImpl.cpp:
2616         (WebKit::PageClientDefaultImpl::PageClientDefaultImpl):
2617         (WebKit::PageClientDefaultImpl::updateViewportSize):
2618         (WebKit::PageClientDefaultImpl::convertToDeviceSpace):
2619         (WebKit::PageClientDefaultImpl::convertToUserSpace):
2620         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
2621         * UIProcess/efl/PageClientDefaultImpl.h:
2622         (WebKit::PageClientDefaultImpl::create):
2623         (PageClientDefaultImpl):
2624         * UIProcess/efl/PageClientLegacyImpl.cpp:
2625         (WebKit::PageClientLegacyImpl::PageClientLegacyImpl):
2626         (WebKit::PageClientLegacyImpl::didCommitLoad):
2627         (WebKit::PageClientLegacyImpl::updateViewportSize):
2628         (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
2629         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
2630         (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
2631         (WebKit::PageClientLegacyImpl::didRenderFrame):
2632         (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
2633         * UIProcess/efl/PageClientLegacyImpl.h:
2634         (WebKit::PageClientLegacyImpl::create):
2635         (PageClientLegacyImpl):
2636         * UIProcess/efl/PageLoadClientEfl.cpp:
2637         (WebKit::PageLoadClientEfl::didReceiveTitleForFrame):
2638         (WebKit::PageLoadClientEfl::didReceiveIntentForFrame):
2639         (WebKit::PageLoadClientEfl::registerIntentServiceForFrame):
2640         (WebKit::PageLoadClientEfl::didChangeProgress):
2641         (WebKit::PageLoadClientEfl::didFinishLoadForFrame):
2642         (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame):
2643         (WebKit::PageLoadClientEfl::didStartProvisionalLoadForFrame):
2644         (WebKit::PageLoadClientEfl::didReceiveServerRedirectForProvisionalLoadForFrame):
2645         (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame):
2646         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
2647         (WebKit::PageLoadClientEfl::didChangeBackForwardList):
2648         (WebKit::PageLoadClientEfl::didSameDocumentNavigationForFrame):
2649         (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
2650         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
2651         * UIProcess/efl/PageLoadClientEfl.h:
2652         (WebKit::PageLoadClientEfl::create):
2653         (PageLoadClientEfl):
2654         (WebKit::PageLoadClientEfl::view):
2655         * UIProcess/efl/PagePolicyClientEfl.cpp:
2656         (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction):
2657         (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction):
2658         (WebKit::PagePolicyClientEfl::PagePolicyClientEfl):
2659         * UIProcess/efl/PagePolicyClientEfl.h:
2660         (WebKit::PagePolicyClientEfl::create):
2661         (PagePolicyClientEfl):
2662         * UIProcess/efl/PageUIClientEfl.cpp:
2663         (WebKit::PageUIClientEfl::PageUIClientEfl):
2664         (WebKit::PageUIClientEfl::close):
2665         (WebKit::PageUIClientEfl::takeFocus):
2666         (WebKit::PageUIClientEfl::focus):
2667         (WebKit::PageUIClientEfl::unfocus):
2668         (WebKit::PageUIClientEfl::runJavaScriptAlert):
2669         (WebKit::PageUIClientEfl::runJavaScriptConfirm):
2670         (WebKit::PageUIClientEfl::runJavaScriptPrompt):
2671         (WebKit::PageUIClientEfl::toolbarsAreVisible):
2672         (WebKit::PageUIClientEfl::setToolbarsAreVisible):
2673         (WebKit::PageUIClientEfl::menuBarIsVisible):
2674         (WebKit::PageUIClientEfl::setMenuBarIsVisible):
2675         (WebKit::PageUIClientEfl::statusBarIsVisible):
2676         (WebKit::PageUIClientEfl::setStatusBarIsVisible):
2677         (WebKit::PageUIClientEfl::isResizable):
2678         (WebKit::PageUIClientEfl::setIsResizable):
2679         (WebKit::PageUIClientEfl::getWindowFrame):
2680         (WebKit::PageUIClientEfl::setWindowFrame):
2681         (WebKit::PageUIClientEfl::exceededDatabaseQuota):
2682         (WebKit::PageUIClientEfl::runOpenPanel):
2683         (WebKit::PageUIClientEfl::createNewPage):
2684         (WebKit::PageUIClientEfl::showColorPicker):
2685         (WebKit::PageUIClientEfl::hideColorPicker):
2686         * UIProcess/efl/PageUIClientEfl.h:
2687         (WebKit::PageUIClientEfl::create):
2688         (PageUIClientEfl):
2689         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2690         (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl):
2691         (WebKit::PageViewportControllerClientEfl::drawingArea):
2692         (WebKit::PageViewportControllerClientEfl::updateViewportSize):
2693         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2694         (WebKit::PageViewportControllerClientEfl::setViewportPosition):
2695         (WebKit::PageViewportControllerClientEfl::setPageScaleFactor):
2696         (WebKit::PageViewportControllerClientEfl::didResumeContent):
2697         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
2698         * UIProcess/efl/PageViewportControllerClientEfl.h:
2699         (WebKit::PageViewportControllerClientEfl::create):
2700         (PageViewportControllerClientEfl):
2701         * UIProcess/efl/VibrationClientEfl.cpp:
2702         (VibrationClientEfl::vibrateCallback):
2703         (VibrationClientEfl::cancelVibrationCallback):
2704         (VibrationClientEfl::create):
2705         (VibrationClientEfl::VibrationClientEfl):
2706         (VibrationClientEfl::~VibrationClientEfl):
2707         * UIProcess/efl/VibrationClientEfl.h:
2708         (VibrationClientEfl):
2709         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
2710         (WebKit::WebContextMenuProxyEfl::WebContextMenuProxyEfl):
2711         (WebKit::WebContextMenuProxyEfl::showContextMenu):
2712         (WebKit::WebContextMenuProxyEfl::hideContextMenu):
2713         * UIProcess/efl/WebContextMenuProxyEfl.h:
2714         (WebKit::WebContextMenuProxyEfl::create):
2715         (WebContextMenuProxyEfl):
2716         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
2717         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
2718         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
2719         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2720         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2721         * UIProcess/efl/WebPageProxyEfl.cpp:
2722         (WebKit::WebPageProxy::viewWidget):
2723         * UIProcess/efl/WebPopupMenuProxyEfl.cpp:
2724         (WebKit::WebPopupMenuProxyEfl::WebPopupMenuProxyEfl):
2725         (WebKit::WebPopupMenuProxyEfl::showPopupMenu):
2726         (WebKit::WebPopupMenuProxyEfl::hidePopupMenu):
2727         * UIProcess/efl/WebPopupMenuProxyEfl.h:
2728         (WebKit::WebPopupMenuProxyEfl::create):
2729         (WebPopupMenuProxyEfl):
2730
2731 2013-01-24  Andras Becsi  <andras.becsi@digia.com>
2732
2733         Remove nonexistent header from WebKit2/Target.pri
2734
2735         Unreviewed cleanup after r139919.
2736
2737         * Target.pri:
2738
2739 2013-01-24  Michael Brüning  <michael.bruning@digia.com>
2740
2741         [Qt][WK2] Pages / resources cannot be loaded from qrc files.
2742         https://bugs.webkit.org/show_bug.cgi?id=107031
2743
2744         Reviewed by Jocelyn Turcotte.
2745
2746         Enables WebKit2 Qt applications to load files from the bundled
2747         qrc files. This is achieved by adding a url scheme handler for
2748         the "qrc" scheme using the application scheme handler and ignoring
2749         all handlers for the qrc application scheme that the application might
2750         set.
2751
2752         * UIProcess/API/qt/qquickurlschemedelegate.cpp:
2753         (QQuickQrcSchemeDelegate::QQuickQrcSchemeDelegate):
2754         (QQuickQrcSchemeDelegate::readResourceAndSend):
2755         * UIProcess/API/qt/qquickurlschemedelegate_p.h:
2756         (QQuickQrcSchemeDelegate):
2757         * UIProcess/API/qt/qquickwebview.cpp:
2758         (QQuickWebViewPrivate::initialize):
2759         (QQuickWebViewExperimental::schemeDelegates_Append):
2760         (QQuickWebViewExperimental::invokeApplicationSchemeHandler):
2761         * UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:
2762         * UIProcess/API/qt/tests/qmltests/common/qrctest.html: Added.
2763         * UIProcess/API/qt/tests/qmltests/resources.qrc:
2764
2765 2013-01-24  Krzysztof Czech  <k.czech@samsung.com>
2766
2767         [EFL][WK2] Expose accessibility hierarchy in WebKit2-EFL.
2768         https://bugs.webkit.org/show_bug.cgi?id=106216
2769
2770         Reviewed by Andreas Kling.
2771
2772         Create WebPage's accessibility object on WebPage initialization.
2773         Wrap around WebCore's accessibility objects.
2774         Updating accessibility hierarchy. Expands accessibility implementation
2775         of WebKit-GTK to be used in EFL.
2776
2777         * PlatformEfl.cmake:
2778         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2779         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
2780         * WebProcess/WebPage/WebPage.h:
2781         (WebPage):
2782         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
2783         (webPageAccessibilityObjectGetIndexInParent):
2784         (web_page_accessibility_object_init):
2785         * WebProcess/WebPage/efl/WebPageEfl.cpp:
2786         (WebKit::WebPage::platformInitialize):
2787         (WebKit):
2788         (WebKit::WebPage::updateAccessibilityTree):
2789
2790 2013-01-23  Seokju Kwon  <seokju.kwon@gmail.com>
2791
2792         [EFL] Unreviewed build fix after r140605
2793         https://bugs.webkit.org/show_bug.cgi?id=107787
2794
2795         Unreviewed build fix.
2796
2797         Build break after r140605.
2798
2799         * UIProcess/WebBatteryManagerProxy.cpp:
2800         * UIProcess/WebBatteryManagerProxy.h:
2801         (WebBatteryManagerProxy):
2802         * UIProcess/WebNetworkInfoManagerProxy.cpp:
2803         * UIProcess/WebNetworkInfoManagerProxy.h:
2804         (WebNetworkInfoManagerProxy):
2805         * UIProcess/WebVibrationProxy.cpp:
2806         * UIProcess/WebVibrationProxy.h:
2807         (WebVibrationProxy):
2808         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2809         * UIProcess/soup/WebSoupRequestManagerProxy.h:
2810         (WebSoupRequestManagerProxy):
2811         * WebProcess/Battery/WebBatteryManager.cpp:
2812         * WebProcess/Battery/WebBatteryManager.h:
2813         (WebBatteryManager):
2814         * WebProcess/NetworkInfo/WebNetworkInfoManager.cpp:
2815         * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
2816         (WebNetworkInfoManager):
2817         * WebProcess/soup/WebSoupRequestManager.cpp:
2818         * WebProcess/soup/WebSoupRequestManager.h:
2819         (WebSoupRequestManager):
2820
2821 2013-01-23  Sam Weinig  <sam@webkit.org>
2822
2823         Cleanup the names of the WebKit2 xpc services
2824         https://bugs.webkit.org/show_bug.cgi?id=107759
2825
2826         Reviewed by Anders Carlsson.
2827
2828         Renames:
2829             com.apple.WebKit2.WebProcessService -> com.apple.WebKit.WebContent
2830             com.apple.WebKit2.WebProcessServiceForWebKitDevelopment -> com.apple.WebKit.WebContent.Development
2831
2832         * Configurations/BaseXPCService.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessService.xcconfig.
2833         * Configurations/WebContentService.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessService.xcconfig.
2834         * Configurations/WebContentServiceForDevelopment.xcconfig: Copied from Source/WebKit2/Configurations/WebProcessServiceForWebKitDevelopment.xcconfig.
2835         * Configurations/WebProcessService.xcconfig: Removed.
2836         * Configurations/WebProcessServiceForWebKitDevelopment.xcconfig: Removed.
2837         Rename config files to match new service names and add base config.
2838
2839         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2840         (WebKit::connectToWebProcessServiceForWebKitDevelopment):
2841         (WebKit::createWebProcessServiceForWebKitDevelopment):
2842         (WebKit::createWebProcessService):
2843         * WebKit2.xcodeproj/project.pbxproj:
2844         * WebKit2Service: Removed.
2845         * WebProcessService/Info.plist:
2846         * WebProcessServiceForWebKitDevelopment/Info.plist:
2847         Update for new names.
2848
2849 2013-01-23  Seulgi Kim  <seulgikim@company100.net>
2850
2851         Coordinated Graphics : Reduce the number of calls to Functional and number of IPC messages by sending the created/deleted layers in a vector.
2852         https://bugs.webkit.org/show_bug.cgi?id=107625
2853
2854         Reviewed by Benjamin Poulain.
2855
2856         Currently, the number of messages sent by CoordinatedLayerTreeHost is
2857         equal to the number of layers created/deleted even though they requested
2858         in the same cycle.
2859         It's not good since CoreIPC creates functional before sending messages,
2860         and CoordinatedLayerTreeHostProxy creates functional before
2861         create/delete layers.
2862
2863         This patch makes CoordinatedLayerTreeHost send just one
2864         CreateCompositingLayers message and CoordinatedLayerTreeHostProxy create
2865         just one functional in a cycle. The same work has been done with
2866         DeleteCompositingLayers message.
2867
2868         This patch will reduce the number of calls to Functional and number of
2869         IPC messages by sending the created/deleted layers in a vector.
2870
2871         No new tests, no change in behavior.
2872
2873         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2874         (WebKit::CoordinatedLayerTreeHostProxy::createCompositingLayers):
2875         (WebKit::CoordinatedLayerTreeHostProxy::deleteCompositingLayers):
2876         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2877         (CoordinatedLayerTreeHostProxy):
2878         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2879         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2880         (WebKit::LayerTreeRenderer::createLayers):
2881         (WebKit):
2882         (WebKit::LayerTreeRenderer::deleteLayers):
2883         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2884         (LayerTreeRenderer):
2885         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2886         (WebKit::CoordinatedLayerTreeHost::createCompositingLayers):
2887         (WebKit::CoordinatedLayerTreeHost::deleteCompositingLayers):
2888
2889 2013-01-23  Huang Dongsung  <luxtella@company100.net>
2890
2891         Coordinated Graphics: Add LegacyReceiver to messages.in files.
2892         https://bugs.webkit.org/show_bug.cgi?id=107760
2893
2894         Reviewed by Anders Carlsson.
2895
2896         After r140605, LegacyReceiver attribute is needed to use recevier specific
2897         memeber functions.
2898
2899         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2900         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
2901
2902 2013-01-23  Sheriff Bot  <webkit.review.bot@gmail.com>
2903
2904         Unreviewed, rolling out r140612.
2905         http://trac.webkit.org/changeset/140612
2906         https://bugs.webkit.org/show_bug.cgi?id=107768
2907
2908          broke the build (Requested by smfr on #webkit).
2909
2910         * WebKit2.xcodeproj/project.pbxproj:
2911         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.cpp.
2912         (WebKit):
2913         (WebKit::WebKeyValueStorageManager::supplementName):
2914         (WebKit::WebKeyValueStorageManager::WebKeyValueStorageManager):
2915         (WebKit::WebKeyValueStorageManager::initialize):
2916         (WebKit::keyValueStorageOriginIdentifiers):
2917         (WebKit::WebKeyValueStorageManager::dispatchDidGetKeyValueStorageOrigins):
2918         (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
2919         (WebKit::WebKeyValueStorageManager::didFinishLoadingOrigins):
2920         (WebKit::WebKeyValueStorageManager::dispatchDidModifyOrigin):
2921         (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
2922         (WebKit::WebKeyValueStorageManager::deleteAllEntries):
2923         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.h.
2924         (WebKit):
2925         (WebKeyValueStorageManager):
2926         (WebKit::WebKeyValueStorageManager::localStorageDirectory):
2927         (WebKit::WebKeyValueStorageManager::indexedDBDatabaseDirectory):
2928         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/Storage/WebKeyValueStorageManager.messages.in.
2929
2930 2013-01-23  Ian Vollick  <vollick@chromium.org>
2931
2932         Introduce the "stacking container" concept.
2933         https://bugs.webkit.org/show_bug.cgi?id=107734
2934
2935         Reviewed by Simon Fraser.
2936
2937         A stacking container is treated just like a stacking context. That
2938         is, it has z-order lists, it and its descendants are stacked as a
2939         unit, and when the RenderLayerCompositor does its overlap testing,
2940         the composited regions for all layer lists take effect only once the
2941         stacking container is done being processed.
2942
2943         This patch also adds the function RenderLayer::isStackingContainer().
2944         Currently, this is equivalent to RenderLayer::isStackingContext(),
2945         but in future, the definition of stacking container will be broadened
2946         to encompass more than just stacking contexts.
2947
2948         Other than the addition of this extra function, the patch is mostly
2949         comprised of name changes. Any code that used to refer to the
2950         stacking context concept, but didn't necessarily require a stacking
2951         context in the strict, CSS-sense, was switched to refer to stacking
2952         container. No functionality was changed.
2953
2954         No new tests, no change in functionality.
2955
2956         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2957         (WebKit::updateOffsetFromViewportForSelf):
2958
2959 2013-01-23  Anders Carlsson  <andersca@apple.com>
2960
2961         Move Move WebKeyValueStorageManager to WebProcess/Storage.
2962
2963         Rubber-stamped by Sam Weinig.
2964
2965         * WebKit2.xcodeproj/project.pbxproj:
2966         * WebProcess/Storage/WebKeyValueStorageManager.cpp: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp.
2967         * WebProcess/Storage/WebKeyValueStorageManager.h: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.h.
2968         * WebProcess/Storage/WebKeyValueStorageManager.messages.in: Renamed from Source/WebKit2/WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in.
2969
2970 2013-01-23  Anders Carlsson  <andersca@apple.com>
2971
2972         Remove LegacyReceiver from a couple of .messages.in files
2973         https://bugs.webkit.org/show_bug.cgi?id=107749
2974
2975         Reviewed by Beth Dakin.
2976
2977         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2978         (WebKit):
2979         * UIProcess/Notifications/WebNotificationManagerProxy.h:
2980         (WebNotificationManagerProxy):
2981         * UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
2982         * UIProcess/WebGeolocationManagerProxy.cpp:
2983         * UIProcess/WebGeolocationManagerProxy.h:
2984         (WebGeolocationManagerProxy):
2985         * UIProcess/WebGeolocationManagerProxy.messages.in:
2986         * UIProcess/WebIconDatabase.cpp:
2987         * UIProcess/WebIconDatabase.h:
2988         (WebIconDatabase):
2989         * UIProcess/WebIconDatabase.messages.in:
2990         * UIProcess/WebKeyValueStorageManagerProxy.cpp:
2991         * UIProcess/WebKeyValueStorageManagerProxy.h:
2992         (WebKeyValueStorageManagerProxy):
2993         * UIProcess/WebKeyValueStorageManagerProxy.messages.in:
2994         * UIProcess/WebMediaCacheManagerProxy.cpp:
2995         * UIProcess/WebMediaCacheManagerProxy.h:
2996         (WebMediaCacheManagerProxy):
2997         * UIProcess/WebMediaCacheManagerProxy.messages.in:
2998         * UIProcess/WebResourceCacheManagerProxy.cpp:
2999         * UIProcess/WebResourceCacheManagerProxy.h:
3000         (WebResourceCacheManagerProxy):
3001         * UIProcess/WebResourceCacheManagerProxy.messages.in:
3002         * WebProcess/Geolocation/WebGeolocationManager.cpp:
3003         * WebProcess/Geolocation/WebGeolocationManager.h:
3004         (WebGeolocationManager):
3005         * WebProcess/Geolocation/WebGeolocationManager.messages.in:
3006         * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
3007         * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
3008         (WebIconDatabaseProxy):
3009         * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
3010         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp:
3011         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.h:
3012         (WebKeyValueStorageManager):
3013         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
3014         * WebProcess/MediaCache/WebMediaCacheManager.cpp:
3015         * WebProcess/MediaCache/WebMediaCacheManager.h:
3016         (WebMediaCacheManager):
3017         * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
3018         * WebProcess/Notifications/WebNotificationManager.cpp:
3019         * WebProcess/Notifications/WebNotificationManager.h:
3020         (WebNotificationManager):
3021         * WebProcess/Notifications/WebNotificationManager.messages.in:
3022         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
3023         * WebProcess/ResourceCache/WebResourceCacheManager.h:
3024         (WebResourceCacheManager):
3025         * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
3026         * WebProcess/WebPage/WebPageGroupProxy.cpp:
3027         (WebKit):
3028         * WebProcess/WebPage/WebPageGroupProxy.h:
3029         (WebPageGroupProxy):
3030         * WebProcess/WebPage/WebPageGroupProxy.messages.in:
3031
3032 2013-01-23  Anders Carlsson  <andersca@apple.com>
3033
3034         Message receiver generation should work in terms of MessageReceiver objects
3035         https://bugs.webkit.org/show_bug.cgi?id=107742
3036
3037         Reviewed by Beth Dakin.
3038
3039         The generated message receiver code should generate the MessageReceiver
3040         member functions didReceiveMessage and didReceiveSyncMessage instead of
3041         receiver specific member functions.
3042
3043         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
3044         * NetworkProcess/NetworkProcess.messages.in:
3045         * NetworkProcess/NetworkResourceLoader.messages.in:
3046         * PluginProcess/PluginControllerProxy.messages.in:
3047         * PluginProcess/PluginProcess.messages.in:
3048         * PluginProcess/WebProcessConnection.messages.in:
3049         * Scripts/webkit2/messages.py:
3050         (generate_message_handler):
3051         * Scripts/webkit2/messages_unittest.py:
3052         * Scripts/webkit2/model.py:
3053         (MessageReceiver.__init__):
3054         (MessageReceiver.has_attribute):
3055         * Scripts/webkit2/parser.py:
3056         (parse):
3057         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
3058         * Shared/Plugins/NPObjectMessageReceiver.messages.in:
3059         * Shared/WebConnection.messages.in:
3060         * Shared/mac/SecItemShim.messages.in:
3061         * SharedWorkerProcess/SharedWorkerProcess.messages.in:
3062         * UIProcess/Downloads/DownloadProxy.messages.in:
3063         * UIProcess/DrawingAreaProxy.messages.in:
3064         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
3065         * UIProcess/Network/NetworkProcessProxy.messages.in:
3066         * UIProcess/Notifications/WebNotificationManagerProxy.messages.in:
3067         * UIProcess/Plugins/PluginProcessProxy.messages.in:
3068         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.messages.in:
3069         * UIProcess/WebApplicationCacheManagerProxy.messages.in:
3070         * UIProcess/WebContext.messages.in:
3071         * UIProcess/WebCookieManagerProxy.messages.in:
3072         * UIProcess/WebDatabaseManagerProxy.messages.in:
3073         * UIProcess/WebFullScreenManagerProxy.messages.in:
3074         * UIProcess/WebGeolocationManagerProxy.messages.in:
3075         * UIProcess/WebIconDatabase.messages.in:
3076         * UIProcess/WebInspectorProxy.messages.in:
3077         * UIProcess/WebKeyValueStorageManagerProxy.messages.in:
3078         * UIProcess/WebMediaCacheManagerProxy.messages.in:
3079         * UIProcess/WebPageProxy.messages.in:
3080         * UIProcess/WebProcessProxy.messages.in:
3081         * UIProcess/WebResourceCacheManagerProxy.messages.in:
3082         * UIProcess/mac/RemoteLayerTreeHost.messages.in:
3083         * UIProcess/mac/SecItemShimProxy.messages.in:
3084         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
3085         * WebProcess/Authentication/AuthenticationManager.h:
3086         * WebProcess/Authentication/AuthenticationManager.messages.in:
3087         * WebProcess/Cookies/WebCookieManager.messages.in:
3088         * WebProcess/FullScreen/WebFullScreenManager.messages.in:
3089         * WebProcess/Geolocation/WebGeolocationManager.messages.in:
3090         * WebProcess/IconDatabase/WebIconDatabaseProxy.messages.in:
3091         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.messages.in:
3092         * WebProcess/MediaCache/WebMediaCacheManager.messages.in:
3093         * WebProcess/Network/NetworkProcessConnection.messages.in:
3094         * WebProcess/Network/WebResourceLoader.messages.in:
3095         * WebProcess/Notifications/WebNotificationManager.messages.in:
3096         * WebProcess/Plugins/PluginProcessConnection.messages.in:
3097         * WebProcess/Plugins/PluginProxy.messages.in:
3098         * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
3099         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
3100         * WebProcess/WebPage/DrawingArea.messages.in:
3101         * WebProcess/WebPage/EventDispatcher.messages.in:
3102         * WebProcess/WebPage/WebInspector.messages.in:
3103         * WebProcess/WebPage/WebPage.messages.in:
3104         * WebProcess/WebPage/WebPageGroupProxy.messages.in:
3105         * WebProcess/WebProcess.messages.in:
3106
3107 2013-01-23  Huang Dongsung  <luxtella@company100.net>
3108
3109         Coordinated Graphics: remove CoordinatedLayerInfo::encode/decode.
3110         https://bugs.webkit.org/show_bug.cgi?id=107644
3111
3112         Reviewed by Anders Carlsson.
3113
3114         We want to remove the dependency on CoreIPC from CoordinatedLayerInfo because we
3115         will extract Coordinated Graphics from WK2.
3116
3117         * CMakeLists.txt:
3118         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3119         (CoreIPC::::encode):
3120         (CoreIPC):
3121         (CoreIPC::::decode):
3122         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
3123         (WebKit):
3124         * Shared/CoordinatedGraphics/CoordinatedLayerInfo.cpp: Removed.
3125         * Shared/CoordinatedGraphics/CoordinatedLayerInfo.h:
3126         * Target.pri:
3127
3128 2013-01-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3129
3130         [WK2] Replace some internal API usage in EwkView with C API
3131         https://bugs.webkit.org/show_bug.cgi?id=107652
3132
3133         Reviewed by Benjamin Poulain.
3134
3135         * UIProcess/API/efl/ewk_view.cpp:
3136         (ewk_view_url_set):
3137         (ewk_view_reload):
3138         (ewk_view_reload_bypass_cache):
3139         (ewk_view_stop):
3140         (ewk_view_load_progress_get):
3141         (ewk_view_scale_set):
3142         (ewk_view_scale_get):
3143         (ewk_view_device_pixel_ratio_get):
3144         (ewk_view_back):
3145         (ewk_view_forward):
3146         (ewk_view_back_possible):
3147         (ewk_view_forward_possible):
3148         (ewk_view_html_string_load):
3149         (ewk_view_text_find):
3150         (ewk_view_text_find_highlight_clear):
3151         (ewk_view_text_matches_count):
3152         (ewk_view_inspector_show):
3153         (ewk_view_inspector_close):
3154
3155 2013-01-23  Alexey Proskuryakov  <ap@apple.com>
3156
3157         Build fix.
3158
3159         * Platform/CoreIPC/Connection.cpp: (CoreIPC::Connection::sendSyncMessage):
3160         Copy/paste trouble fix.
3161
3162 2013-01-23  Alexey Proskuryakov  <ap@apple.com>
3163
3164         <rdar://problem/13064414> REGRESSION(r139514): didFailToSendSyncMessage is not called by Connection
3165         https://bugs.webkit.org/show_bug.cgi?id=107715
3166
3167         Reviewed by Anders Carlsson.
3168
3169         * Platform/CoreIPC/Connection.cpp:
3170         (CoreIPC::Connection::sendSyncMessage):
3171         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
3172         Correcting a misapplied edit - didFailToSendSyncMessage should be kept in main
3173         thread message sending, not in secondary thread.
3174
3175 2013-01-23  Brady Eidson  <beidson@apple.com>
3176
3177         Recursion handling cancelled authentication challenges in NetworkProcess
3178         <rdar://problem/13024541> and https://bugs.webkit.org/show_bug.cgi?id=107702
3179
3180         Reviewed by Alexey Proskuryakov.
3181
3182         This turned in to both a bug fix with authentication and a minimal refactoring of NetworkResourceLoader.
3183
3184         - Rename ::stop to ::resourceHandleStopped
3185         - Move all cleanup code to ::resourceHandleStopped
3186         - Schedule a resourceHandleStopped call when an authentication cancellation occurs
3187         - Tell the WebResourceLoader to cancel when an authentication cancellation occurs
3188
3189         * NetworkProcess/NetworkResourceLoader.cpp:
3190         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
3191         (WebKit::NetworkResourceLoader::start):
3192         (WebKit::NetworkResourceLoader::performStops):
3193         (WebKit::NetworkResourceLoader::resourceHandleStopped):
3194         (WebKit::NetworkResourceLoader::didFail):
3195         (WebKit::NetworkResourceLoader::receivedAuthenticationCancellation):
3196         * NetworkProcess/NetworkResourceLoader.h:
3197
3198         * WebProcess/Network/WebResourceLoader.cpp:
3199         (WebKit::WebResourceLoader::cancelResourceLoader):
3200         * WebProcess/Network/WebResourceLoader.h:
3201         * WebProcess/Network/WebResourceLoader.messages.in:
3202
3203 2013-01-23  Christophe Dumez  <christophe.dumez@intel.com>
3204
3205         [EFL][WK2] Use C API inside ewk_cookie_manager
3206         https://bugs.webkit.org/show_bug.cgi?id=107661
3207
3208         Reviewed by Alexey Proskuryakov.
3209
3210         Use C API inside ewk_cookie_manager instead of
3211         accessing C++ classes directly and violating
3212         layering.
3213
3214         * PlatformEfl.cmake:
3215         * UIProcess/API/C/soup/WKCookieManagerSoup.cpp: Added.
3216         (toSoupCookiePersistentStorageType):
3217         (WKCookieManagerSetCookiePersistentStorage): Add C API for setting
3218         the persistent storage path and type when using libsoup.
3219         * UIProcess/API/C/soup/WKCookieManagerSoup.h: Added.
3220         * UIProcess/API/efl/ewk_context.cpp:
3221         (EwkContext::cookieManager):
3222         * UIProcess/API/efl/ewk_cookie_manager.cpp:
3223         (EwkCookieManager::EwkCookieManager):
3224         (EwkCookieManager::~EwkCookieManager):
3225         (EwkCookieManager::setPersistentStorage):
3226         (EwkCookieManager::setHTTPAcceptPolicy):
3227         (EwkCookieManager::clearHostnameCookies):
3228         (EwkCookieManager::clearAllCookies):
3229         (EwkCookieManager::watchChanges):
3230         (EwkCookieManager::getHostNamesWithCookies):
3231         (EwkCookieManager::getHTTPAcceptPolicy):
3232         (ewk_cookie_manager_persistent_storage_set):
3233         (ewk_cookie_manager_hostname_cookies_clear):
3234         * UIProcess/API/efl/ewk_cookie_manager_private.h:
3235         (EwkCookieManager::create):
3236         (EwkCookieManager):
3237
3238 2013-01-22  Anders Carlsson  <andersca@apple.com>
3239
3240         Use a platforom strategy for local storage
3241         https://bugs.webkit.org/show_bug.cgi?id=107600
3242
3243         Reviewed by Andreas Kling.
3244
3245         Update for new storage strategy.
3246
3247         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3248         (WebKit::WebPlatformStrategies::createStorageStrategy):
3249         (WebKit):
3250         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
3251         (WebPlatformStrategies):
3252
3253 2013-01-21  Kentaro Hara  <haraken@chromium.org>
3254
3255         Implement UIEvent constructor
3256         https://bugs.webkit.org/show_bug.cgi?id=107430
3257
3258         Reviewed by Adam Barth.
3259
3260         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
3261
3262         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
3263         which is enabled on Safari and Chromium for now.
3264
3265         * Configurations/FeatureDefines.xcconfig:
3266
3267 2013-01-22  Alexey Proskuryakov  <ap@apple.com>
3268
3269         Move sandbox initialization to ChildProcess
3270         https://bugs.webkit.org/show_bug.cgi?id=107486
3271
3272         Reviewed by Sam Weinig.
3273
3274         * NetworkProcess/NetworkProcess.h:
3275         * NetworkProcess/NetworkProcess.cpp:
3276         (WebKit::NetworkProcess::initializeSandbox): Removed. We no longer need this function
3277         to be implemented in each process type.
3278
3279         * NetworkProcess/mac/NetworkProcessMac.mm:
3280         (WebKit::initializeSandbox): Removed a custom (and incomplete) implementation.
3281         (WebKit::NetworkProcess::processUpdateSandboxInitializationParameters): Clear
3282         sandbox profile path in parameters, telling ChildProcess to not enter a sandbox.
3283
3284         * PluginProcess/PluginProcess.h:
3285         * PluginProcess/mac/PluginProcessMac.mm:
3286         Added FIXMEs, saying that we should switch to ChildProcess implementation.
3287
3288         * Shared/ChildProcess.cpp: Dummy implementations for other platforms.
3289
3290         * Shared/ChildProcess.h: Added processUpdateSandboxInitializationParameters, which
3291         child processes will override to change sandbox initialization parameters.
3292
3293         * Shared/SandboxInitializationParameters.h: Added.
3294         * Shared/mac/SandboxInitialiationParametersMac.mm: Added.
3295         Abstracts out sandbox parameter vector for coding safety. Encapsulates other
3296         things that subclasses will want to do differently.
3297
3298         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
3299         Added a shared implementation, based largely on WebProcess version.
3300
3301         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm: Removed custom sandboxing code.
3302
3303         * WebKit2.xcodeproj/project.pbxproj: Added SandboxInitializationParameters files.
3304
3305         * WebProcess/WebProcess.cpp:
3306         * WebProcess/WebProcess.h:
3307         Updated dummy implementations to match ChildProcess.
3308
3309         * WebProcess/mac/WebProcessMac.mm:
3310         (WebKit): Moved sandboxing code to ChildProcess.
3311         (WebKit::WebProcess::processUpdateSandboxInitializationParameters): Override
3312         profile path, because default one doesn't work for WebProcessService.
3313
3314 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
3315
3316         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
3317         https://bugs.webkit.org/show_bug.cgi?id=107230
3318
3319         Reviewed by David Kilzer.
3320
3321         * Configurations/FeatureDefines.xcconfig:
3322
3323 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
3324
3325         Remove empty file WebPageProxyMessageKinds.h
3326         https://bugs.webkit.org/show_bug.cgi?id=107335
3327
3328         Reviewed by Kentaro Hara.
3329
3330         * GNUmakefile.list.am:
3331         * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h: Removed.
3332
3333 2013-01-22  Tim Horton  <timothy_horton@apple.com>
3334
3335         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
3336         https://bugs.webkit.org/show_bug.cgi?id=107117
3337
3338         Reviewed by Alexey Proskuryakov.
3339
3340         Since PDFLayerController SPI is all forward-declared, the plugin should build
3341         on all Mac platforms, and can be enabled at runtime.
3342
3343         * Configurations/FeatureDefines.xcconfig:
3344
3345 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
3346
3347         Add build flag for Canvas's Path object (disabled by default)
3348         https://bugs.webkit.org/show_bug.cgi?id=107473
3349
3350         Reviewed by Dean Jackson.
3351
3352         Add CANVAS_PATH build flag to build systems.
3353
3354         * Configurations/FeatureDefines.xcconfig:
3355
3356 2013-01-21  Jinwoo Song  <jinwoo7.song@samsung.com>
3357
3358         [EFL][WK2] Add APIs to set/get view source mode
3359         https://bugs.webkit.org/show_bug.cgi?id=106633
3360
3361         Reviewed by Gyuyoung Kim.
3362
3363         Added APIs to set/get view source mode for enabling to load
3364         the source code of the web page.
3365
3366         * UIProcess/API/efl/ewk_view.cpp:
3367         (ewk_view_source_mode_set):
3368         (ewk_view_source_mode_get):
3369         * UIProcess/API/efl/ewk_view.h:
3370         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3371         (TEST_F):
3372         * UIProcess/WebPageProxy.cpp:
3373         (WebKit::WebPageProxy::WebPageProxy):
3374         (WebKit::WebPageProxy::setMainFrameInViewSourceMode):
3375         * UIProcess/WebPageProxy.h:
3376         (WebKit::WebPageProxy::mainFrameInViewSourceMode):
3377         (WebPageProxy):
3378
3379 2013-01-21  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3380
3381         [EFL][WK2] Implement WebInspector::localizedStringsURL() on EFL
3382         https://bugs.webkit.org/show_bug.cgi?id=107363
3383
3384         Reviewed by Benjamin Poulain.
3385
3386         Implement WebInspector::localizedStringsURL() method to return the
3387         file URL of the localizedStrings.js.
3388
3389         This prevents printing warnings about "Localized string not found" in
3390         the console and fixes Web inspector related failing tests on the bots.
3391
3392         * WebProcess/WebPage/efl/WebInspectorEfl.cpp:
3393         (WebKit::WebInspector::localizedStringsURL):
3394
3395 2013-01-21  Kiran Muppala  <cmuppala@apple.com>
3396
3397         Enable process suppression by default on Mac
3398         https://bugs.webkit.org/show_bug.cgi?id=106804
3399
3400         Reviewed by Alexey Proskuryakov.
3401
3402         * UIProcess/WebContext.cpp:
3403         (WebKit::WebContext::WebContext): Change initialized value of
3404         m_processSuppressionEnabled from false to true.
3405         * UIProcess/mac/WebContextMac.mm:
3406         (WebKit::WebContext::platformInitialize): Since process suppression
3407         is no longer disabled on construction, do not disable it for global
3408         child processes either.  Instead enable occlusion notifications as
3409         they are needed to trigger process suppression.
3410
3411 2013-01-17  Andy Estes  <aestes@apple.com>
3412
3413         Add a USE() macro for content filtering code
3414         https://bugs.webkit.org/show_bug.cgi?id=107098
3415
3416         Reviewed by Mark Rowe.
3417
3418         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3419         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
3420
3421 2013-01-21  Anders Carlsson  <andersca@apple.com>
3422
3423         Don't null out the IPC connection in ChildProcess:terminate
3424         https://bugs.webkit.org/show_bug.cgi?id=107469
3425         <rdar://problem/13015294>
3426
3427         Reviewed by Dan Bernstein.
3428
3429         We already invalidate the connection, and Connection::sendMessage checks if a connection
3430         is valid and bails if it isn't, so the only thing that nulling out the connection here does
3431         is that it would force us to add random connection null checks everywhere.
3432
3433         * Shared/ChildProcess.cpp:
3434         (WebKit::ChildProcess::terminate):
3435
3436 2013-01-21  Joone Hur  <joone.hur@intel.com>
3437
3438         [EFL] API unit tests are running extremely slow on the bots
3439         https://bugs.webkit.org/show_bug.cgi?id=104665
3440
3441         Reviewed by Gyuyoung Kim.
3442
3443         Clear HTTP cache files before running the unit tests, which prevents 
3444         performance degradation due to so many cache files.
3445
3446         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
3447         (EWK2UnitTest::EWK2UnitTestBase::SetUp):
3448
3449 2013-01-21  Gustavo Noronha Silva  <gns@gnome.org>
3450
3451         REGRESSION (r140285): GTK uses WKPageResourceLoadClient which was removed
3452         https://bugs.webkit.org/show_bug.cgi?id=107421
3453
3454         Unreviewed buildfix.
3455
3456         * GNUmakefile.list.am:
3457         * UIProcess/API/gtk/WebKitResourceLoadClient.cpp: Removed.
3458         * UIProcess/API/gtk/WebKitResourceLoadClient.h: Removed.
3459         * UIProcess/API/gtk/WebKitWebView.cpp: No longer attach unexisting ResourceLoadClient.
3460         (webkitWebViewConstructed):
3461
3462 2013-01-21  Sheriff Bot  <webkit.review.bot@gmail.com>
3463
3464         Unreviewed, rolling out r139781.
3465         http://trac.webkit.org/changeset/139781
3466         https://bugs.webkit.org/show_bug.cgi?id=107443
3467
3468         This patch seems to cause flakiness on Qt (Requested by chris-
3469         qBT_work on #webkit).
3470
3471         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3472         (WebKit::CoordinatedLayerTreeHost::forceRepaintAsync):