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