1 2013-02-12 Joseph Pecoraro <pecoraro@apple.com>
3 [iOS] Enable PAGE_VISIBILITY_API
4 https://bugs.webkit.org/show_bug.cgi?id=109399
6 Reviewed by David Kilzer.
8 * Configurations/FeatureDefines.xcconfig:
10 2013-02-12 Brady Eidson <beidson@apple.com>
12 Update a comment in NetworkProcess to be more accurate.
14 Rubberstamped by Sam Weinig.
16 * NetworkProcess/NetworkProcess.cpp:
17 (WebKit::NetworkProcess::didClose):
19 2013-02-12 Anders Carlsson <andersca@apple.com>
21 SecItemShim should be a WorkQueueMessageReceiver
22 https://bugs.webkit.org/show_bug.cgi?id=109636
24 Reviewed by Sam Weinig.
26 * Platform/CoreIPC/Connection.cpp:
27 (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
28 Add a helper function for dispatching a work queue message receiver message.
30 (CoreIPC::Connection::processIncomingMessage):
31 Check if there are any work queue message receivers registered for this message.
33 * Shared/mac/SecItemShim.cpp:
34 (WebKit::SecItemShim::shared):
35 Use dispatch_once instead of the AtomicallyInitializedStatic macro.
37 (WebKit::SecItemShim::SecItemShim):
40 (WebKit::SecItemShim::secItemResponse):
41 Remove the connection parameter.
43 (WebKit::SecItemShim::initializeConnection):
44 Register the shim object as a work queue message receiver.
46 * Shared/mac/SecItemShim.h:
47 Inherit from WorkQueueMessageReceiver.
49 * Shared/mac/SecItemShim.messages.in:
50 Remove LegacyReceiver and DispatchOnConnectionQueue.
52 2013-02-12 Sam Weinig <sam@webkit.org>
54 Make Plug-in XPC services "join existing sessions"
55 <rdar://problem/13196448>
57 Reviewed by Mark Rowe.
59 * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
60 * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
61 * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
63 2013-02-12 Sam Weinig <sam@webkit.org>
65 Add skeleton of the OfflineStorageProcess
66 https://bugs.webkit.org/show_bug.cgi?id=109615
68 Reviewed by Anders Carlsson.
70 This adds the skeleton of a new process to contain Database and Local Storage
71 backends in (hence, offline storage). We're adding a new process, rather than
72 using the Network or UIProcesses, to allow us to tightly sandbox these activities
73 away from networking and full filesystem access.
75 * Configurations/OfflineStorageProcess.xcconfig: Added.
76 * Configurations/OfflineStorageService.Development.xcconfig: Added.
77 * Configurations/OfflineStorageService.xcconfig: Added.
78 * DerivedSources.make:
79 * OfflineStorageProcess: Added.
80 * OfflineStorageProcess/EntryPoint: Added.
81 * OfflineStorageProcess/EntryPoint/mac: Added.
82 * OfflineStorageProcess/EntryPoint/mac/LegacyProcess: Added.
83 * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist: Added.
84 * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm: Added.
85 * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Added.
86 * OfflineStorageProcess/EntryPoint/mac/XPCService: Added.
87 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService: Added.
88 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development: Added.
89 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/Info.plist: Added.
90 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Added.
91 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/Info.plist: Added.
92 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Added.
93 * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageServiceEntryPoint.mm: Added.
94 * OfflineStorageProcess/OfflineStorageProcess.cpp: Added.
95 * OfflineStorageProcess/OfflineStorageProcess.h: Added.
96 * OfflineStorageProcess/OfflineStorageProcess.messages.in: Added.
97 * OfflineStorageProcess/mac: Added.
98 * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm: Added.
99 (WebKit::OfflineStorageProcess::initializeProcessName):
100 (WebKit::OfflineStorageProcess::initializeSandbox):
101 * OfflineStorageProcess/mac/com.apple.WebKit.OfflineStorage.sb: Added.
102 * Shared/OfflineStorage: Added.
103 * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.cpp: Added.
104 * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.h: Added.
106 * Scripts/webkit2/messages.py:
108 Added OfflineStorageProcessCreationParameters.
110 * WebKit2.xcodeproj/project.pbxproj:
112 2013-02-12 Jinwoo Song <jinwoo7.song@samsung.com>
114 [EFL][WK2] Fix build warning after r142579
115 https://bugs.webkit.org/show_bug.cgi?id=109547
117 Reviewed by Alexey Proskuryakov.
119 Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
121 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
122 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
124 2013-02-12 Christophe Dumez <ch.dumez@sisa.samsung.com>
126 [EFL][WK2] Reenable ewk_auth_request API tests
127 https://bugs.webkit.org/show_bug.cgi?id=108451
129 Reviewed by Benjamin Poulain.
131 ewk_auth_request API tests were temporarily disabled after
132 the C API for resource loading was removed from WebKit2.
133 This patches updates the tests so that they no longer rely
134 on the resource loading events and renables them.
136 This patch also corrects the naming of the static variables
137 in the test to follow more closely the WebKit coding style.
140 * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
145 2013-02-12 Anders Carlsson <andersca@apple.com>
147 Introduce a WorkQueueMessageReceiver class as a replacement for QueueClient
148 https://bugs.webkit.org/show_bug.cgi?id=109612
150 Reviewed by Andreas Kling.
152 * Platform/CoreIPC/Connection.cpp:
153 (CoreIPC::Connection::addWorkQueueMessageReceiver):
155 (CoreIPC::Connection::removeWorkQueueMessageReceiver):
156 (CoreIPC::Connection::addWorkQueueMessageReceiverOnConnectionWorkQueue):
157 (CoreIPC::Connection::removeWorkQueueMessageReceiverOnConnectionWorkQueue):
158 * Platform/CoreIPC/Connection.h:
161 2013-02-12 Csaba Osztrogonác <ossy@webkit.org>
163 Typo fix after r142663.
165 * GNUmakefile.list.am:
167 2013-02-12 Csaba Osztrogonác <ossy@webkit.org>
169 [WK2] Unreviewed trivial buildfix after r142630 and r142651.
172 * GNUmakefile.list.am:
174 * UIProcess/Plugins/PluginProcessProxy.cpp:
175 (WebKit::PluginProcessProxy::didFinishLaunching):
176 * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
177 (WebKit::PluginProcessProxy::platformGetLaunchOptions):
178 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
179 (WebKit::PluginProcessProxy::platformGetLaunchOptions):
181 2013-02-12 Anders Carlsson <andersca@apple.com>
183 Change the queue client base class to be private everywhere
184 https://bugs.webkit.org/show_bug.cgi?id=109604
186 Reviewed by Andreas Kling.
188 Move connection queue client registration inside of the respective queue client classes.
190 Also, it's too late to add queue clients in ChildProcessProxy::didFinishLaunching, so do this in
191 ChildProcessProxy::connectionWillOpen instead.
193 Finally, assert that queue clients are only being added and removed from the client thread.
195 * NetworkProcess/NetworkProcess.cpp:
196 (WebKit::NetworkProcess::initializeConnection):
197 * Platform/CoreIPC/Connection.cpp:
198 (CoreIPC::Connection::addQueueClient):
199 (CoreIPC::Connection::removeQueueClient):
200 * Shared/mac/SecItemShim.cpp:
201 (WebKit::SecItemShim::initializeConnection):
203 * Shared/mac/SecItemShim.h:
205 * UIProcess/Network/NetworkProcessProxy.cpp:
206 (WebKit::NetworkProcessProxy::connectionWillOpen):
208 (WebKit::NetworkProcessProxy::connectionWillClose):
209 (WebKit::NetworkProcessProxy::didFinishLaunching):
210 * UIProcess/Network/NetworkProcessProxy.h:
211 (NetworkProcessProxy):
212 * UIProcess/WebProcessProxy.cpp:
213 (WebKit::WebProcessProxy::connectionWillOpen):
214 (WebKit::WebProcessProxy::didFinishLaunching):
215 * UIProcess/mac/SecItemShimProxy.cpp:
216 (WebKit::SecItemShimProxy::initializeConnection):
218 * UIProcess/mac/SecItemShimProxy.h:
220 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
221 (WebKit::PluginProcessConnectionManager::initializeConnection):
223 * WebProcess/Plugins/PluginProcessConnectionManager.h:
224 (PluginProcessConnectionManager):
225 * WebProcess/WebPage/EventDispatcher.cpp:
226 (WebKit::EventDispatcher::initializeConnection):
228 * WebProcess/WebPage/EventDispatcher.h:
230 * WebProcess/WebProcess.cpp:
231 (WebKit::WebProcess::initializeConnection):
233 2013-02-12 Brady Eidson <beidson@apple.com>
235 Add WKContext API to retrieve basic network process statistics
236 https://bugs.webkit.org/show_bug.cgi?id=109329
238 Reviewed by Sam Weinig.
240 This patch adds a WKContextGetStatisticsWithOptions which allows the client to ask for
241 certain types of statistics.
243 It also expands the "get statistics" callback mechanism to allow for a statistics request
244 to be answered by multiple child processes.
246 That mechanism still has some rough edges but will eventually allow for getting statistics
247 from multiple web processes, as well.
249 * NetworkProcess/HostRecord.cpp:
250 (WebKit::HostRecord::pendingRequestCount):
251 (WebKit::HostRecord::activeLoadCount):
252 * NetworkProcess/HostRecord.h:
254 * NetworkProcess/NetworkProcess.cpp:
255 (WebKit::NetworkProcess::getNetworkProcessStatistics):
256 * NetworkProcess/NetworkProcess.h:
257 * NetworkProcess/NetworkProcess.messages.in:
259 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
260 (WebKit::NetworkResourceLoadScheduler::hostsPendingCount):
261 (WebKit::NetworkResourceLoadScheduler::loadsPendingCount):
262 (WebKit::NetworkResourceLoadScheduler::hostsActiveCount):
263 (WebKit::NetworkResourceLoadScheduler::loadsActiveCount):
264 * NetworkProcess/NetworkResourceLoadScheduler.h:
266 * Shared/Authentication/AuthenticationManager.h:
267 (WebKit::AuthenticationManager::outstandingAuthenticationChallengeCount):
268 * Shared/Downloads/DownloadManager.h:
270 * UIProcess/API/C/WKContext.cpp:
271 (WKContextGetStatistics):
272 (WKContextGetStatisticsWithOptions):
273 * UIProcess/API/C/WKContext.h:
275 * UIProcess/StatisticsRequest.cpp: Added.
276 (WebKit::StatisticsRequest::StatisticsRequest):
277 (WebKit::StatisticsRequest::~StatisticsRequest):
278 (WebKit::StatisticsRequest::addOutstandingRequest):
279 (WebKit::addToDictionaryFromHashMap):
280 (WebKit::createDictionaryFromHashMap):
281 (WebKit::StatisticsRequest::completedRequest):
282 * UIProcess/StatisticsRequest.h: Added.
283 (WebKit::StatisticsRequest::create):
285 * UIProcess/WebContext.cpp:
286 (WebKit::WebContext::networkingProcessConnection):
287 (WebKit::WebContext::getStatistics):
288 (WebKit::WebContext::requestWebContentStatistics):
289 (WebKit::WebContext::requestNetworkingStatistics):
290 (WebKit::WebContext::didGetStatistics):
291 * UIProcess/WebContext.h:
292 * UIProcess/WebContext.messages.in:
294 * WebProcess/WebProcess.cpp:
295 (WebKit::WebProcess::getWebCoreStatistics):
297 * WebKit2.xcodeproj/project.pbxproj:
299 2013-02-12 Anders Carlsson <andersca@apple.com>
303 Add back the files to the Xcode project that were removed in r142580.
305 * WebKit2.xcodeproj/project.pbxproj:
306 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
308 2013-02-12 Jessie Berlin <jberlin@apple.com>
310 Build fix after r142540 and r142518
312 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
313 (WebKit::PluginProcessConnectionManager::didReceivePluginProcessConnectionManagerMessageOnConnectionWorkQueue):
314 This function was added to the header in r142518 but not implemented in that revision.
315 It wasn't a problem until r142540 started using it.
316 Add a stub implementation for it.
318 2013-02-11 Brady Eidson <beidson@apple.com>
320 Make PluginProcessProxy a ChildProcessProxy.
321 https://bugs.webkit.org/show_bug.cgi?id=109513
323 Reviewed by Anders Carlsson.
325 * Shared/ChildProcessProxy.h: Inherit from ThreadSafeRefCounted.
326 * UIProcess/Network/NetworkProcessProxy.h: Don't inherit from RefCounted.
327 * UIProcess/WebProcessProxy.h: Don't inherit from ThreadSafeRefCounted
328 * UIProcess/Plugins/PluginProcessProxy.h: Don't inherit from RefCounted, do inherit from ChildProcessProxy
330 Rely on ChildProcessProxy for process launcher management and launch options:
331 * UIProcess/Plugins/PluginProcessProxy.cpp:
332 (WebKit::PluginProcessProxy::PluginProcessProxy):
333 (WebKit::PluginProcessProxy::getLaunchOptions):
334 (WebKit::PluginProcessProxy::getPluginProcessConnection):
335 (WebKit::PluginProcessProxy::getSitesWithData):
336 (WebKit::PluginProcessProxy::clearSiteData):
337 * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
338 (WebKit::PluginProcessProxy::platformGetLaunchOptions):
339 (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
341 2013-02-11 Alexey Proskuryakov <ap@apple.com>
343 <rdar://problem/13196331> NetworkProcess deny mach-lookup com.apple.PowerManagement.control
345 Reviewed by Sam Weinig.
347 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
349 2013-02-11 Huang Dongsung <luxtella@company100.net>
351 Coordinated Graphics: Make CoordinatedGraphicsScene not know contents size.
352 https://bugs.webkit.org/show_bug.cgi?id=108922
354 Reviewed by Noam Rosenthal.
355 Signed off for WebKit2 by Benjamin Poulain.
357 Currently, CoordinatedGraphicsScene has two methods to know contents
358 size: setContentsSize() and setVisibleContentsRect(). Contents size is
359 used when adjusting a scroll position, but adjustment is not needed
360 because EFL and Qt platform code (currently PageViewportController)
361 already adjusts a scroll position, and it is natural for each platform
362 to be in charge of adjusting. So this patch makes CoordinatedGraphicsScene
363 not know contents size.
365 In addition, now DrawingAreaProxy::coordinatedLayerTreeHostProxy() is only used
366 to get CoordinatedGraphicsScene.
368 * UIProcess/API/qt/qquickwebpage.cpp:
369 (QQuickWebPagePrivate::updateSize):
370 * UIProcess/API/qt/raw/qrawwebview.cpp:
371 (QRawWebView::setSize):
372 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
373 (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
374 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
375 (CoordinatedLayerTreeHostProxy):
376 * UIProcess/efl/PageClientLegacyImpl.cpp:
377 (WebKit::PageClientLegacyImpl::didChangeContentsSize):
378 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
379 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
381 2013-02-11 Huang Dongsung <luxtella@company100.net>
383 Coordinated Graphics: remove the DidChangeScrollPosition message.
384 https://bugs.webkit.org/show_bug.cgi?id=108051
386 Reviewed by Noam Rosenthal.
387 Signed off for WebKit2 by Benjamin Poulain.
389 Currently, we use the DidChangeScrollPosition message to send the scroll
390 position that WebCore used in this frame to UI Process. We had to have
391 some member variables for the DidChangeScrollPosition message.
392 However, we can send a scroll position via the DidRenderFrame message,
393 because CoordinatedGraphicsScene::m_renderedContentsScrollPosition is
394 updated at the moment of flushing. So we can remove the
395 DidChangeScrollPosition message and some redundant member variables.
397 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
398 (WebKit::CoordinatedLayerTreeHostProxy::didRenderFrame):
400 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
401 (CoordinatedLayerTreeHostProxy):
402 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
403 Remove the DidChangeScrollPosition message.
404 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
405 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
406 (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
407 Send a scroll position via the DidChangeScrollPosition message.
408 (WebKit::CoordinatedLayerTreeHost::syncLayerState):
409 Don't send a scroll position because flushPendingLayerChanges() does
410 that. In addition, it is weird to check if we must send a scroll
411 position at the moment of sending the SyncLayerState message of every
413 (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
414 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
416 2013-02-11 Ryosuke Niwa <rniwa@webkit.org>
418 Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
419 https://bugs.webkit.org/show_bug.cgi?id=109534
421 Reviewed by Anders Carlsson.
423 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
425 * WebProcess/WebCoreSupport/WebEditorClient.h:
427 2013-02-11 Jae Hyun Park <jae.park@company100.net>
430 https://bugs.webkit.org/show_bug.cgi?id=109518
432 Reviewed by Laszlo Gombos.
434 Fix EFL build by including PluginProcessConnectionManager.messages.in in
439 2013-02-11 Anders Carlsson <andersca@apple.com>
443 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
444 (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
445 * WebProcess/WebProcess.cpp:
447 2013-02-11 Seulgi Kim <seulgikim@company100.net>
450 https://bugs.webkit.org/show_bug.cgi?id=109516
452 Reviewed by Csaba Osztrogonác.
454 PluginProcessConnectionManagerMessages are omitted from messages list.
456 * GNUmakefile.list.am:
458 2013-02-11 Tim Horton <timothy_horton@apple.com>
460 [WK2] setMinimumLayoutWidth should bail if there's no WebProcess
461 https://bugs.webkit.org/show_bug.cgi?id=109512
462 <rdar://problem/13093627>
464 Reviewed by Anders Carlsson.
466 * UIProcess/WebPageProxy.cpp:
467 (WebKit::WebPageProxy::setMinimumLayoutWidth):
469 2013-02-11 Anders Carlsson <andersca@apple.com>
471 PluginProcessConnectionManager should be a QueueClient
472 https://bugs.webkit.org/show_bug.cgi?id=109496
474 Reviewed by Andreas Kling.
476 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
477 (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
479 (WebKit::PluginProcessConnectionManager::didCloseOnConnectionWorkQueue):
480 * WebProcess/Plugins/PluginProcessConnectionManager.h:
481 (PluginProcessConnectionManager):
482 * WebProcess/WebProcess.cpp:
483 (WebKit::WebProcess::initializeConnection):
484 * WebProcess/WebProcess.h:
487 2013-02-11 Csaba Osztrogonác <ossy@webkit.org>
489 Unreviewed WK2 buildfix after r142518.
491 * DerivedSources.pri:
493 2013-02-11 Gavin Barraclough <barraclough@apple.com>
495 PluginProcess should quit immediately if idle in response to low-memory notifications
496 https://bugs.webkit.org/show_bug.cgi?id=109103
497 <rdar://problem/12679827>
499 Reviewed by Brady Eidson.
501 PluginProcess now installs a MemoryPressureHandler for the process, providing
502 a custom callback which will call terminate if appropriate (if the plugin is not
505 * PluginProcess/PluginProcess.cpp:
506 (WebKit::PluginProcess::lowMemoryHandler):
507 - Custom callback to terminate if appropriate.
508 (WebKit::PluginProcess::initializeProcess):
509 - Install the MemoryPressureHandler.
510 (WebKit::PluginProcess::shouldTerminate):
511 - This method now also needs to be callable in situations where it might return false.
512 * PluginProcess/PluginProcess.h:
514 - Added declaration for lowMemoryHandler.
516 2013-02-11 Anders Carlsson <andersca@apple.com>
518 Move the PluginProcessCrashed message to PluginProcessConnectionManager
519 https://bugs.webkit.org/show_bug.cgi?id=109493
521 Reviewed by Andreas Kling.
523 This is in preparation for making PluginProcessConnectionManager a connection queue client.
525 * DerivedSources.make:
526 * UIProcess/Plugins/PluginProcessProxy.cpp:
527 (WebKit::PluginProcessProxy::didClose):
528 * WebKit2.xcodeproj/project.pbxproj:
529 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
530 (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
531 * WebProcess/Plugins/PluginProcessConnectionManager.h:
532 (PluginProcessConnectionManager):
533 * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
534 * WebProcess/WebProcess.cpp:
535 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
536 (WebKit::WebProcess::webResourceLoadScheduler):
537 * WebProcess/WebProcess.h:
539 * WebProcess/WebProcess.messages.in:
541 2013-02-11 Benjamin Poulain <benjamin@webkit.org>
543 Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
544 https://bugs.webkit.org/show_bug.cgi?id=109349
546 Reviewed by Sam Weinig.
548 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
549 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
550 * WebProcess/InjectedBundle/InjectedBundle.cpp:
551 * WebProcess/InjectedBundle/InjectedBundle.h:
554 2013-02-11 Dean Jackson <dino@apple.com>
556 Snapshotted plug-in should use shadow root
557 https://bugs.webkit.org/show_bug.cgi?id=108284
559 Reviewed by Simon Fraser.
561 Take three of this commit - after rollout in r142400 and r142405.
562 We no longer have any need for plugInStartLabelImage.
564 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
565 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
566 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
567 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
569 2013-02-11 Anders Carlsson <andersca@apple.com>
571 The plug-in process connection manager doesn't need to be heap allocated
572 https://bugs.webkit.org/show_bug.cgi?id=109479
574 Reviewed by Andreas Kling.
576 * WebProcess/WebProcess.cpp:
577 (WebKit::WebProcess::WebProcess):
578 (WebKit::WebProcess::pluginProcessConnectionManager):
579 (WebKit::WebProcess::pluginProcessCrashed):
580 * WebProcess/WebProcess.h:
584 2013-02-11 Tony Chang <tony@chromium.org>
586 Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
587 https://bugs.webkit.org/show_bug.cgi?id=87149
589 Reviewed by Simon Fraser.
591 * WebProcess/InjectedBundle/InjectedBundle.cpp:
592 (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
594 2013-02-11 Claudio Saavedra <csaavedra@igalia.com>
596 [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
597 https://bugs.webkit.org/show_bug.cgi?id=108459
599 Reviewed by Alexey Proskuryakov.
601 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
602 (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
603 Providers might return 0 and we will end up with a null-pointer dereference.
604 Early check against this.
606 2013-02-10 Sam Weinig <sam@webkit.org>
608 Make the Plug-in XPCService build work even when building in Xcode
609 <rdar://problem/13011186>
610 https://bugs.webkit.org/show_bug.cgi?id=109392
612 Reviewed by Anders Carlsson.
614 * Configurations/DebugRelease.xcconfig:
615 Add a DEBUG_OR_RELEASE variable to test against.
616 * Configurations/PluginService.32.xcconfig:
617 * Configurations/PluginService.64.xcconfig:
618 In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
619 not containing the right architectures. This is ok, as these services are not used in non-production builds.
621 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
622 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
623 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
624 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
625 * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
626 * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
627 * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
628 * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
629 * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
630 * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
631 * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
632 * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
633 * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
634 * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
635 Switch off the the old idiom of defining a macro for the initializer function, and instead set
636 it in the Info.plist, so the XPCServiceBootstrapper can grab it.
638 * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
639 (WebKit::XPCServiceEventHandler):
640 * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
641 (WebKit::XPCServiceEventHandler):
642 Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
643 but also allows us to build without having linked against WebKit2.framework.
645 * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
646 (WebKit::shouldUseXPC):
647 Re-enable using XPC for plug-ins.
649 * WebKit2.xcodeproj/project.pbxproj:
652 2013-02-10 Anders Carlsson <andersca@apple.com>
654 Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
655 https://bugs.webkit.org/show_bug.cgi?id=109379
657 Reviewed by Andreas Kling.
659 * UIProcess/WebProcessProxy.cpp:
660 (WebKit::WebProcessProxy::getPlugins):
662 2013-02-10 Kent Tamura <tkent@chromium.org>
664 Unreviewed, rolling out r142347.
665 http://trac.webkit.org/changeset/142347
666 https://bugs.webkit.org/show_bug.cgi?id=108273
668 Because a depending change r142343 was rolled out.
670 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
671 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
672 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
673 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
675 2013-02-10 Kent Tamura <tkent@chromium.org>
677 Unreviewed, rolling out r142343.
678 http://trac.webkit.org/changeset/142343
679 https://bugs.webkit.org/show_bug.cgi?id=108284
681 It might make inspector/profiler/selector-profiler-url.html
684 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
685 (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
687 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
688 (InjectedBundlePageUIClient):
689 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
690 (WebKit::WebChromeClient::plugInStartLabelImage):
692 * WebProcess/WebCoreSupport/WebChromeClient.h:
695 2013-02-10 Zan Dobersek <zdobersek@igalia.com>
697 [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
698 https://bugs.webkit.org/show_bug.cgi?id=109352
700 Reviewed by Sam Weinig.
702 As added for the Mac port in r142160 due to the changes in the same revision, remove
703 the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
705 * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
706 (WebKit::WebFullScreenManagerProxy::invalidate):
708 2013-02-10 Zoltan Arvai <zarvai@inf.u-szeged.hu>
710 [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
711 https://bugs.webkit.org/show_bug.cgi?id=109364
713 Reviewed by Simon Hausmann.
715 void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
717 * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
718 (WebKit::NetscapePlugin::platformPreInitialize):
721 2013-02-09 Sheriff Bot <webkit.review.bot@gmail.com>
723 Unreviewed, rolling out r137328.
724 http://trac.webkit.org/changeset/137328
725 https://bugs.webkit.org/show_bug.cgi?id=109367
727 causes memory usage to balloon if connection queue is filling
728 faster than sending (Requested by kling on #webkit).
730 * Platform/CoreIPC/ArgumentEncoder.cpp:
731 (CoreIPC::ArgumentEncoder::ArgumentEncoder):
732 (CoreIPC::ArgumentEncoder::grow):
733 * Platform/CoreIPC/ArgumentEncoder.h:
734 (CoreIPC::ArgumentEncoder::buffer):
737 2013-02-08 Sam Weinig <sam@webkit.org>
739 Fix ASSERT when the Web Content Process crashes
740 https://bugs.webkit.org/show_bug.cgi?id=109346
742 Reviewed by Simon Fraser.
744 * UIProcess/WebPageProxy.cpp:
745 (WebKit::WebPageProxy::processDidCrash):
746 We need to remove ourselves as a message receiver before calling out to the client, as
747 the client might want to re-add us (as Safari does).
749 2013-02-08 Benjamin Poulain <bpoulain@apple.com>
751 Move workerThreadCount from TestRunner to WebCore Internals
752 https://bugs.webkit.org/show_bug.cgi?id=109239
754 Reviewed by Darin Adler.
756 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
757 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
758 * WebProcess/InjectedBundle/InjectedBundle.cpp:
759 * WebProcess/InjectedBundle/InjectedBundle.h:
761 * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
763 2013-02-08 Dean Jackson <dino@apple.com>
765 Remove use of plugInStartLabelImage
766 https://bugs.webkit.org/show_bug.cgi?id=108273
768 Reviewed by Simon Fraser.
770 Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
771 and plugInStartLabelSubtitle to return the values from the client.
774 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
775 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
776 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
777 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
779 2013-02-08 Dean Jackson <dino@apple.com>
781 Snapshotted plug-in should use shadow root
782 https://bugs.webkit.org/show_bug.cgi?id=108284
784 Reviewed by Simon Fraser.
786 Take two of this commit! We no longer have any need for plugInStartLabelImage.
788 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
789 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
790 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
791 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
793 2013-02-08 Dean Jackson <dino@apple.com>
795 Rolling out r142333 and r142337 which broke Mac Release builds.
797 2013-02-08 Anders Carlsson <andersca@apple.com>
799 Move plug-in enumeration back to the main thread
800 https://bugs.webkit.org/show_bug.cgi?id=109337
801 <rdar://problem/12015046>
803 Reviewed by Andreas Kling.
805 Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
806 doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
807 Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
808 and have it do the enumeration.
810 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
811 (WebKit::getPluginInfoFromCarbonResources):
812 * UIProcess/WebProcessProxy.cpp:
813 (WebKit::WebProcessProxy::connectionWillOpen):
814 (WebKit::WebProcessProxy::connectionWillClose):
815 (WebKit::WebProcessProxy::getPlugins):
816 * UIProcess/WebProcessProxy.h:
819 * UIProcess/WebProcessProxy.messages.in:
820 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
822 (WebKit::WebPlatformStrategies::populatePluginCache):
823 * WebProcess/WebProcess.cpp:
824 * WebProcess/WebProcess.h:
826 * WebProcess/WebProcess.messages.in:
828 2013-02-08 Dean Jackson <dino@apple.com>
830 Snapshotted plug-in should use shadow root
831 https://bugs.webkit.org/show_bug.cgi?id=108284
833 Reviewed by Simon Fraser.
835 We no longer have any need for plugInStartLabelImage.
837 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
838 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
839 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
840 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
842 2013-02-08 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
844 [WK2] Fix the build on !Mac after r142314.
845 https://bugs.webkit.org/show_bug.cgi?id=109327
847 Reviewed by Benjamin Poulain.
849 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
850 (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
851 the newly-added function.
853 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
854 (WebKit::NetscapePlugin::platformPreInitialize):
857 2013-02-07 Anders Carlsson <andersca@apple.com>
859 Work around a bug in Flash where NSException objects can be released too early
860 https://bugs.webkit.org/show_bug.cgi?id=109242
861 <rdar://problem/13003470>
863 Reviewed by Darin Adler.
865 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
866 (WebKit::NetscapePluginModule::determineQuirks):
867 Set the new plug-in quirk.
869 * Shared/Plugins/PluginQuirks.h:
870 Add a new plug-in quirk.
872 * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
873 (WebKit::NetscapePlugin::initialize):
874 Call platformPreInitialize.
876 * WebProcess/Plugins/Netscape/NetscapePlugin.h:
878 Add platformPreInitialize.
880 * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
881 (WebKit::NSException_release):
882 Add new empty function.
884 (WebKit::NetscapePlugin::platformPreInitialize):
885 Patch -[NSException release] to be a no-op.
887 2013-02-08 Dean Jackson <dino@apple.com>
889 Do not register autostart for plugins from file:// (or nowhere)
890 https://bugs.webkit.org/show_bug.cgi?id=108271
892 Reviewed by Tim Horton.
894 If the pageOrigin is the empty string don't add
895 it to the auto-start origin list for snapshotting.
897 * WebProcess/WebProcess.cpp:
898 (WebKit::WebProcess::addPlugInAutoStartOrigin):
900 2013-02-07 Sheriff Bot <webkit.review.bot@gmail.com>
902 Unreviewed, rolling out r142212.
903 http://trac.webkit.org/changeset/142212
904 https://bugs.webkit.org/show_bug.cgi?id=109255
906 Causes ASSERT(!m_installed) on launch (Requested by smfr on
909 * PluginProcess/PluginProcess.cpp:
910 (WebKit::PluginProcess::initializeProcess):
911 (WebKit::PluginProcess::shouldTerminate):
912 * PluginProcess/PluginProcess.h:
914 * WebProcess/WebProcess.cpp:
915 (WebKit::WebProcess::initializeWebProcess):
917 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
919 [EFL][WK2] Remove dead code after r142169
920 https://bugs.webkit.org/show_bug.cgi?id=109251
922 Reviewed by Benjamin Poulain.
924 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
925 (WebKit::WebChromeClient::contentsSizeChanged):
927 2013-02-06 Gavin Barraclough <barraclough@apple.com>
929 PluginProcess should quit immediately if idle in response to low-memory notifications
930 https://bugs.webkit.org/show_bug.cgi?id=109103
931 <rdar://problem/12679827>
933 Reviewed by Darin Adler.
935 PluginProcess now initializes a MemoryPressureHandler for the process, providing
936 a custom callback which will call terminate if appropriate (if the plugin is not
939 * PluginProcess/PluginProcess.cpp:
940 (WebKit::PluginProcess::lowMemoryHandler):
941 - Custom callback to terminate if appropriate.
942 (WebKit::PluginProcess::initializeProcess):
943 - Initialize the MemoryPressureHandler.
944 (WebKit::PluginProcess::shouldTerminate):
945 - This method now also needs to be callable in situations where it might return false.
946 * PluginProcess/PluginProcess.h:
948 - Added declaration for lowMemoryHandler.
949 * WebProcess/WebProcess.cpp:
950 (WebKit::WebProcess::initializeWebProcess):
951 - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
953 2013-02-07 KwangYong Choi <ky0.choi@samsung.com>
955 Fix build warning after r142017
956 https://bugs.webkit.org/show_bug.cgi?id=109119
958 Reviewed by Alexey Proskuryakov.
960 Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
962 * UIProcess/WebPageProxy.cpp:
963 (WebKit::WebPageProxy::getPluginPath):
965 2013-02-07 Martin Robinson <mrobinson@igalia.com>
967 [GTK] Cleanup command-line defines
968 https://bugs.webkit.org/show_bug.cgi?id=109213
970 Reviewed by Xan Lopez.
972 * GNUmakefile.am: Remove references to flags that are now
973 provided by autotoolsconfig.h.
975 2013-02-07 Benjamin Poulain <bpoulain@apple.com>
977 Move pauseAnimation/pauseTransition from TestRunner to Internals
978 https://bugs.webkit.org/show_bug.cgi?id=109107
980 Reviewed by Anders Carlsson.
982 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
983 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
984 * WebProcess/WebPage/WebFrame.cpp:
985 * WebProcess/WebPage/WebFrame.h:
988 2013-02-07 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
990 [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
991 https://bugs.webkit.org/show_bug.cgi?id=109165
993 Reviewed by Anders Carlsson.
995 Removed non coordinated graphics code path from WK2 EFL as it was not used by
996 anyone and caused a lot of preprocessor macros in the code making it less readable.
998 * UIProcess/API/efl/EvasGLContext.cpp:
999 * UIProcess/API/efl/EvasGLContext.h:
1000 (WebKit::EvasGLContext::context):
1001 * UIProcess/API/efl/EvasGLSurface.cpp:
1002 * UIProcess/API/efl/EvasGLSurface.h:
1003 (WebKit::EvasGLSurface::surface):
1005 Removed also 'inline' and 'const' keywords from functions declaration,
1006 as both EvasGLContext::context() and EvasGLSurface::surface()
1007 are defined inside their classes and return mutable pointer.
1009 * UIProcess/API/efl/EwkView.cpp:
1011 (EwkView::transformFromScene):
1012 (EwkView::transformToScreen):
1013 (EwkView::coordinatedGraphicsScene):
1014 (EwkView::displayTimerFired):
1015 (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
1016 (EwkView::exitAcceleratedCompositingMode):
1017 (EwkView::handleEvasObjectCalculate):
1018 (EwkView::takeSnapshot):
1019 * UIProcess/API/efl/EwkView.h:
1022 * UIProcess/API/efl/SnapshotImageGL.cpp:
1023 (getImageSurfaceFromFrameBuffer):
1024 * UIProcess/API/efl/SnapshotImageGL.h:
1025 * UIProcess/API/efl/ewk_view.cpp:
1026 * UIProcess/efl/PageClientBase.cpp:
1027 (WebKit::PageClientBase::setViewNeedsDisplay):
1028 (WebKit::PageClientBase::updateAcceleratedCompositingMode):
1029 * UIProcess/efl/PageClientBase.h:
1031 * UIProcess/efl/PageClientDefaultImpl.cpp:
1032 (WebKit::PageClientDefaultImpl::didCommitLoad):
1033 (WebKit::PageClientDefaultImpl::updateViewportSize):
1034 (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
1035 (WebKit::PageClientDefaultImpl::didChangeContentsSize):
1036 (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
1037 * UIProcess/efl/PageClientDefaultImpl.h:
1038 (PageClientDefaultImpl):
1039 * UIProcess/efl/PageClientLegacyImpl.cpp:
1040 (WebKit::PageClientLegacyImpl::didCommitLoad):
1041 (WebKit::PageClientLegacyImpl::updateViewportSize):
1042 (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
1043 (WebKit::PageClientLegacyImpl::didChangeContentsSize):
1044 (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
1045 (WebKit::PageClientLegacyImpl::didRenderFrame):
1046 (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
1047 * UIProcess/efl/PageClientLegacyImpl.h:
1048 (PageClientLegacyImpl):
1049 * UIProcess/efl/PageLoadClientEfl.cpp:
1050 (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
1051 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
1052 * UIProcess/efl/PageLoadClientEfl.h:
1053 (PageLoadClientEfl):
1054 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
1055 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
1056 (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
1057 * UIProcess/efl/PageViewportControllerClientEfl.h:
1058 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1059 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1060 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1061 (WebKit::WebChromeClient::contentsSizeChanged):
1063 2013-02-06 Sam Weinig <sam@webkit.org>
1065 Make WebPageProxy and sub-objects MessageReceivers
1066 https://bugs.webkit.org/show_bug.cgi?id=108785
1068 Reviewed by Anders Carlsson.
1070 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1071 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
1072 (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
1073 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1074 (CoordinatedLayerTreeHostProxy):
1075 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
1076 * UIProcess/DrawingAreaProxy.cpp:
1077 (WebKit::DrawingAreaProxy::DrawingAreaProxy):
1078 (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
1079 (WebKit::DrawingAreaProxy::contentsRect):
1080 * UIProcess/DrawingAreaProxy.h:
1081 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
1082 * UIProcess/DrawingAreaProxy.messages.in:
1083 * UIProcess/DrawingAreaProxyImpl.cpp:
1084 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
1085 * UIProcess/DrawingAreaProxyImpl.h:
1086 * UIProcess/WebFullScreenManagerProxy.cpp:
1087 (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
1088 * UIProcess/WebFullScreenManagerProxy.h:
1089 (WebFullScreenManagerProxy):
1090 * UIProcess/WebFullScreenManagerProxy.messages.in:
1091 * UIProcess/WebInspectorProxy.cpp:
1092 (WebKit::WebInspectorProxy::WebInspectorProxy):
1093 (WebKit::WebInspectorProxy::invalidate):
1094 * UIProcess/WebInspectorProxy.h:
1095 * UIProcess/WebInspectorProxy.messages.in:
1096 * UIProcess/WebPageProxy.cpp:
1097 (WebKit::WebPageProxy::WebPageProxy):
1098 (WebKit::WebPageProxy::reattachToWebProcess):
1099 (WebKit::WebPageProxy::close):
1100 (WebKit::WebPageProxy::inspector):
1101 (WebKit::WebPageProxy::fullScreenManager):
1102 (WebKit::WebPageProxy::processDidCrash):
1103 * UIProcess/WebPageProxy.h:
1104 * UIProcess/WebPageProxy.messages.in:
1105 * UIProcess/WebProcessProxy.cpp:
1106 (WebKit::WebProcessProxy::didReceiveMessage):
1107 (WebKit::WebProcessProxy::didReceiveSyncMessage):
1108 * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
1109 (WebKit::WebFullScreenManagerProxy::invalidate):
1111 2013-02-07 Zan Dobersek <zdobersek@igalia.com>
1113 [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
1114 https://bugs.webkit.org/show_bug.cgi?id=109198
1116 Reviewed by Martin Robinson.
1118 * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
1119 not set to anything.
1121 2013-02-07 Kenneth Rohde Christiansen <kenneth@webkit.org>
1123 [WK2][EFL] Add WKView methods related to background drawing
1124 https://bugs.webkit.org/show_bug.cgi?id=109159
1126 Reviewed by Anders Carlsson.
1128 * UIProcess/API/C/efl/WKView.cpp:
1129 (WKViewSetDrawsBackground):
1130 (WKViewGetDrawsBackground):
1131 (WKViewSetDrawsTransparentBackground):
1132 (WKViewGetDrawsTransparentBackground):
1133 * UIProcess/efl/WebView.cpp:
1134 (WebKit::WebView::setDrawsBackground):
1136 (WebKit::WebView::drawsBackground):
1137 (WebKit::WebView::setDrawsTransparentBackground):
1138 (WebKit::WebView::drawsTransparentBackground):
1139 * UIProcess/efl/WebView.h:
1141 * UIProcess/API/C/efl/WKView.h:
1145 * UIProcess/API/efl/EwkView.cpp:
1147 (EwkView::displayTimerFired):
1148 (EwkView::handleEvasObjectColorSet):
1149 * UIProcess/API/efl/EwkView.h:
1151 * UIProcess/API/efl/ewk_view.cpp:
1152 (ewk_view_draws_page_background_set):
1154 Remove the unneeded m_setDrawsBackground and replace
1155 it with the WKView setting.
1157 2013-02-07 Christophe Dumez <dchris@gmail.com>
1159 [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
1160 https://bugs.webkit.org/show_bug.cgi?id=108634
1162 Reviewed by Alexey Proskuryakov.
1164 Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
1165 so that the test passes consistently. The issue was that the header before the
1166 data includes the current date. Depending on the date, the data may start at a
1167 different index in the returned string. Instead of hardcoding the data start
1168 index in the test, we now use String::contains().
1170 * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1171 (PageContentsCallback):
1174 2013-02-07 Gavin Peters <gavinp@chromium.org>
1176 Unreviewed, rolling out r142141.
1177 http://trac.webkit.org/changeset/142141
1178 https://bugs.webkit.org/show_bug.cgi?id=108990
1180 Reland r142112, will update Chromium expectations and create a
1181 Chromium bug instead for the crash.
1183 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1184 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1185 * WebProcess/WebPage/DrawingAreaImpl.cpp:
1186 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
1188 2013-02-07 Gavin Peters <gavinp@chromium.org>
1190 Unreviewed, rolling out r142112.
1191 http://trac.webkit.org/changeset/142112
1192 https://bugs.webkit.org/show_bug.cgi?id=108990
1194 The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
1196 See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
1198 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1199 (WebKit::updateOffsetFromViewportForSelf):
1201 (WebKit::updateOffsetFromViewportForLayer):
1202 (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
1203 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1204 * WebProcess/WebPage/DrawingAreaImpl.cpp:
1205 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
1207 2013-02-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1209 [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
1210 https://bugs.webkit.org/show_bug.cgi?id=108990
1212 Reviewed by Noam Rosenthal.
1213 Signed off for WebKit2 by Simon Fraser.
1215 WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
1216 don't need to traverse the tree every frame to get this information.
1218 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
1219 syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
1220 and are not needed anymore.
1221 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1222 * WebProcess/WebPage/DrawingAreaImpl.cpp:
1223 (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
1224 Coordinated Graphics.
1226 2013-02-07 Michael Brüning <michael.bruning@digia.com>
1228 [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
1229 https://bugs.webkit.org/show_bug.cgi?id=108473
1231 Reviewed by Simon Hausmann.
1232 Signed off for WebKit2 by Benjamin Poulain.
1234 This patch removes the QtWebPageLoadClient and moves the functionality into the
1235 QQuickWebViewPrivate as most callback methods are calling the private webview
1238 The patch also moves as much of the functionality to the C API as is possible with
1242 * UIProcess/API/qt/qquickwebview.cpp:
1243 (QQuickWebViewPrivate::initialize):
1244 (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
1245 (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
1246 (QQuickWebViewPrivate::didFailLoad):
1247 (QQuickWebViewPrivate::didCommitLoadForFrame):
1248 (QQuickWebViewPrivate::didFinishLoadForFrame):
1249 (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
1250 (QQuickWebViewPrivate::didReceiveTitleForFrame):
1251 (QQuickWebViewPrivate::didStartProgress):
1252 (QQuickWebViewPrivate::didChangeProgress):
1253 (QQuickWebViewPrivate::didFinishProgress):
1254 (QQuickWebViewPrivate::didChangeBackForwardList):
1255 (QQuickWebViewPrivate::setTransparentBackground):
1256 (QQuickWebViewPrivate::transparentBackground):
1257 (QQuickWebViewPrivate::loadProgressDidChange):
1258 * UIProcess/API/qt/qquickwebview_p.h:
1260 * UIProcess/API/qt/qquickwebview_p_p.h:
1262 (QQuickWebViewPrivate):
1263 * UIProcess/qt/QtWebError.cpp:
1264 (WebKit::QtWebError::url):
1265 * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
1266 * UIProcess/qt/QtWebPageLoadClient.h: Removed.
1268 2013-02-05 Eunmi Lee <eunmi15.lee@samsung.com> and Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
1270 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
1271 https://bugs.webkit.org/show_bug.cgi?id=97173
1273 Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
1275 Initialize and shutdown the EFL libraries in the ewk_main.cpp for
1276 UIProcess and WebProcessMainEfl.cpp for WebProcess.
1278 This allows us to shut down the libraries in a proper way, since
1279 RunLoop persist until the process exits.
1281 * UIProcess/API/efl/ewk_main.cpp:
1284 * WebProcess/efl/WebProcessMainEfl.cpp:
1285 (WebKit::WebProcessMainEfl):
1287 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
1289 Unreviewed build fix.
1291 * UIProcess/Downloads/DownloadProxyMap.cpp:
1292 (WebKit::DownloadProxyMap::processDidClose):
1293 m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
1295 2013-02-07 Simon Hausmann <simon.hausmann@digia.com>
1297 [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
1298 https://bugs.webkit.org/show_bug.cgi?id=108920
1300 Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
1302 Employ the pattern suggested by Jocelyn to simply implement the C
1303 callbacks directly using static functions.
1306 * UIProcess/API/qt/qquickwebview.cpp:
1307 (toQQuickWebViewPrivate):
1308 (QQuickWebViewPrivate::initialize):
1309 (QQuickWebViewPrivate::didFindString):
1310 (QQuickWebViewPrivate::didFailToFindString):
1311 * UIProcess/API/qt/qquickwebview_p_p.h:
1312 (QQuickWebViewPrivate):
1313 * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
1314 * UIProcess/qt/QtWebPageFindClient.h: Removed.
1316 2013-02-03 Sam Weinig <sam@webkit.org>
1318 Make CustomProtocolManagerProxy a MessageReceiver
1319 https://bugs.webkit.org/show_bug.cgi?id=108787
1321 Reviewed by Anders Carlsson.
1323 * Shared/ChildProcessProxy.cpp:
1324 (WebKit::ChildProcessProxy::addMessageReceiver):
1325 (WebKit::ChildProcessProxy::removeMessageReceiver):
1326 (WebKit::ChildProcessProxy::dispatchMessage):
1327 (WebKit::ChildProcessProxy::dispatchSyncMessage):
1328 * Shared/ChildProcessProxy.h:
1329 Sink the MessageReceiverMap down into the ChildProcessProxy.
1331 * UIProcess/Downloads/DownloadProxyMap.cpp:
1332 (WebKit::DownloadProxyMap::DownloadProxyMap):
1333 (WebKit::DownloadProxyMap::createDownloadProxy):
1334 (WebKit::DownloadProxyMap::downloadFinished):
1335 (WebKit::DownloadProxyMap::processDidClose):
1336 * UIProcess/Downloads/DownloadProxyMap.h:
1337 Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
1339 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1340 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1341 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1342 (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
1343 Convert to a MessageReceiver.
1345 * UIProcess/Network/NetworkProcessProxy.cpp:
1346 (WebKit::NetworkProcessProxy::createDownloadProxy):
1347 (WebKit::NetworkProcessProxy::didReceiveMessage):
1348 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
1349 * UIProcess/Network/NetworkProcessProxy.h:
1350 * UIProcess/WebProcessProxy.cpp:
1351 (WebKit::WebProcessProxy::didReceiveMessage):
1352 (WebKit::WebProcessProxy::didReceiveSyncMessage):
1353 (WebKit::WebProcessProxy::createDownloadProxy):
1354 * UIProcess/WebProcessProxy.h:
1356 Remove direct chaining to CustomProtocolManagerProxy.
1358 2013-02-06 Enrica Casucci <enrica@apple.com>
1360 ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
1361 https://bugs.webkit.org/show_bug.cgi?id=109105.
1363 Reviewed by Tim Horton.
1365 In r140769 we changed the way the overlay is destroyed,
1366 therefore the assert is no longer valid and should be removed.
1368 * WebProcess/WebPage/FindController.cpp:
1369 (WebKit::FindController::updateFindUIAfterPageScroll):
1371 2013-02-06 Anders Carlsson <andersca@apple.com>
1373 Dispatch storage manager messages to the storage work queue
1374 https://bugs.webkit.org/show_bug.cgi?id=109099
1376 Reviewed by Andreas Kling.
1378 * UIProcess/Storage/StorageManager.cpp:
1379 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1380 (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
1382 * UIProcess/Storage/StorageManager.h:
1385 2013-02-06 Anders Carlsson <andersca@apple.com>
1387 Pass the document source URL to the pluginLoadPolicy callback
1388 https://bugs.webkit.org/show_bug.cgi?id=109084
1389 <rdar://problem/13154516>
1391 Reviewed by Andreas Kling.
1393 * UIProcess/API/C/WKPage.h:
1394 * UIProcess/WebPageProxy.cpp:
1395 (WebKit::WebPageProxy::getPluginPath):
1396 * UIProcess/WebPageProxy.h:
1398 * UIProcess/WebPageProxy.messages.in:
1399 * UIProcess/WebUIClient.cpp:
1400 (WebKit::WebUIClient::pluginLoadPolicy):
1401 * UIProcess/WebUIClient.h:
1403 * WebProcess/WebPage/WebPage.cpp:
1404 (WebKit::WebPage::createPlugin):
1405 (WebKit::WebPage::canPluginHandleResponse):
1407 2013-02-06 Alexey Proskuryakov <ap@apple.com>
1409 Get rid of unneeded writeable preferences.
1411 Reviewed by Anders Carlsson.
1413 com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
1414 early in WebKit2 development, before we moved a lot of functionality to UI process.
1415 They don't appear to be needed any more.
1417 Note that we do not even need to allow reading for com.apple.WebProcess.plist -
1418 it's read at process initialization before we enter the sandbox, and services
1419 have a different plist anyway.
1421 * WebProcess/com.apple.WebProcess.sb.in:
1423 2013-02-06 Sudarsana Nagineni <sudarsana.nagineni@intel.com>
1425 [EFL][WK2] Assertion failure on MiniBrowser exit
1426 https://bugs.webkit.org/show_bug.cgi?id=108932
1428 Reviewed by Anders Carlsson.
1430 WorkQueue is now refcounted after r141497, so increase ref
1431 count when a new job is scheduled and unref it when it finishes.
1433 * Platform/efl/WorkQueueEfl.cpp:
1434 (WorkQueue::performWork):
1435 (WorkQueue::performTimerWork):
1436 (WorkQueue::dispatch):
1437 (WorkQueue::dispatchAfterDelay):
1439 2013-02-06 Simon Hausmann <simon.hausmann@digia.com>, Zoltan Arvai <zarvai@inf.u-szeged.hu>
1441 [WK2][Win] Fix build after MessageID.h related changes and after r141619.
1442 https://bugs.webkit.org/show_bug.cgi?id=108612
1444 Reviewed by Anders Carlsson.
1446 * Platform/CoreIPC/win/ConnectionWin.cpp:
1447 (CoreIPC::Connection::platformInvalidate):
1448 (CoreIPC::Connection::readEventHandler):
1449 (CoreIPC::Connection::open):
1450 (CoreIPC::Connection::sendOutgoingMessage):
1451 * Platform/WorkQueue.h:
1452 (WorkQueue::WorkItemWin::queue):
1454 * Platform/win/SharedMemoryWin.cpp:
1455 (WebKit::SharedMemory::Handle::decode):
1456 * Platform/win/WorkQueueWin.cpp:
1457 (WorkQueue::handleCallback):
1458 (WorkQueue::performWorkOnRegisteredWorkThread):
1460 2013-02-06 Mike West <mkwst@chromium.org>
1462 Add an ENABLE_NOSNIFF feature flag.
1463 https://bugs.webkit.org/show_bug.cgi?id=109029
1465 Reviewed by Jochen Eisinger.
1467 This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
1468 when processing script and other resource types.
1470 * Configurations/FeatureDefines.xcconfig:
1472 2013-02-06 Marja Hölttä <marja@chromium.org>
1474 Take referrer policy into account when clearing the referrer header
1475 https://bugs.webkit.org/show_bug.cgi?id=86000
1477 Reviewed by Alexey Proskuryakov.
1479 The referrer should only be cleared when doing a https -> http redirect,
1480 if the policy is "default". Otherwise the referrer should be left intact.
1482 * NetworkProcess/NetworkResourceLoader.cpp:
1483 (WebKit::NetworkResourceLoader::start):
1484 * NetworkProcess/SchedulableLoader.cpp:
1485 (WebKit::SchedulableLoader::SchedulableLoader):
1486 * NetworkProcess/SchedulableLoader.h:
1487 (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
1488 (SchedulableLoader):
1489 * NetworkProcess/SyncNetworkResourceLoader.cpp:
1490 (WebKit::SyncNetworkResourceLoader::start):
1491 * NetworkProcess/mac/RemoteNetworkingContext.h:
1492 (WebKit::RemoteNetworkingContext::create):
1493 (RemoteNetworkingContext):
1494 * NetworkProcess/mac/RemoteNetworkingContext.mm:
1495 (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
1497 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
1498 * Shared/Network/NetworkResourceLoadParameters.cpp:
1499 (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1500 (WebKit::NetworkResourceLoadParameters::encode):
1501 (WebKit::NetworkResourceLoadParameters::decode):
1502 * Shared/Network/NetworkResourceLoadParameters.h:
1503 (NetworkResourceLoadParameters):
1504 (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
1505 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1506 (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
1507 (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
1508 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1509 * WebProcess/Network/WebResourceLoadScheduler.h:
1510 (WebResourceLoadScheduler):
1511 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1512 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1514 2013-02-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
1516 [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
1517 https://bugs.webkit.org/show_bug.cgi?id=108062
1519 Reviewed by Kenneth Rohde Christiansen.
1521 The Ewk View implementation is encapsulated within EwkView class.
1522 Besides multiple refactoring of Ewk View evas smart object code was made.
1524 * UIProcess/API/C/efl/WKView.cpp:
1527 Aux function to share WKView creation implementation.
1529 * UIProcess/API/efl/EwkView.cpp:
1531 (defaultSmartClassInstance):
1533 (EwkView::initSmartClassInterface):
1534 (EwkView::toEvasObject):
1535 (EwkView::smartData):
1537 Renamed and moved here from ewk_view.
1539 (EwkViewEventHandler):
1540 (EwkViewEventHandler::subscribe):
1541 (EwkViewEventHandler::unsubscribe):
1544 Added a new template class to encapsulate Ewk View Evas events handling.
1547 (EwkView::~EwkView):
1549 Constructor and desctructor are private.
1551 (EwkView::createEvasObject):
1553 Added factory function for ewk view evas objects creation.
1555 (EwkView::handleEvasObjectAdd):
1556 (EwkView::handleEvasObjectDelete):
1557 (EwkView::handleEvasObjectResize):
1558 (EwkView::handleEvasObjectMove):
1559 (EwkView::handleEvasObjectCalculate):
1560 (EwkView::handleEvasObjectShow):
1561 (EwkView::handleEvasObjectHide):
1562 (EwkView::handleEvasObjectColorSet):
1564 Evas_Smart_Class interface callbacks moved into the EwkView class.
1566 (EwkView::handleEwkViewFocusIn):
1567 (EwkView::handleEwkViewFocusOut):
1568 (EwkView::handleEwkViewMouseWheel):
1569 (EwkView::handleEwkViewMouseDown):
1570 (EwkView::handleEwkViewMouseUp):
1571 (EwkView::handleEwkViewMouseMove):
1572 (EwkView::handleEwkViewKeyDown):
1573 (EwkView::handleEwkViewKeyUp):
1575 Ewk_View_Smart_Class interface callback moved into the EwkView class.
1577 (EwkView::handleTouchDown):
1578 (EwkView::handleTouchUp):
1579 (EwkView::handleTouchMove):
1585 Aux function to get the EwkView instance fromevas object.
1589 Aux function to check that given evas object is ewk view.
1591 * UIProcess/API/efl/EwkView.h:
1592 (EwkView::evasObject):
1594 * UIProcess/API/efl/ewk_view.cpp:
1595 (ewk_view_smart_class_set):
1596 (ewk_view_smart_add):
1597 (ewk_view_add_with_context):
1598 (ewk_view_feed_touch_event):
1599 (Ewk_Page_Contents_Context):
1601 * UIProcess/API/efl/ewk_view_private.h: Removed.
1603 * UIProcess/API/C/efl/WKView.cpp:
1605 (WKViewCreateWithFixedLayout):
1606 (WKViewCreateSnapshot):
1607 * UIProcess/cairo/BackingStoreCairo.cpp:
1608 (WebKit::BackingStore::incorporateUpdate):
1609 * UIProcess/efl/ContextHistoryClientEfl.cpp:
1610 (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
1611 (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
1612 (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
1613 (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
1614 * UIProcess/efl/PageClientBase.cpp:
1615 (WebKit::PageClientBase::processDidCrash):
1616 * UIProcess/efl/PageLoadClientEfl.cpp:
1617 (WebKit::PageLoadClientEfl::didChangeBackForwardList):
1618 * UIProcess/efl/PageUIClientEfl.cpp:
1619 (WebKit::PageUIClientEfl::takeFocus):
1620 (WebKit::PageUIClientEfl::focus):
1621 (WebKit::PageUIClientEfl::unfocus):
1622 * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
1623 (WebKit::WebFullScreenManagerProxy::enterFullScreen):
1624 (WebKit::WebFullScreenManagerProxy::exitFullScreen):
1625 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1626 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1627 * UIProcess/efl/WebPageProxyEfl.cpp:
1628 (WebKit::WebPageProxy::viewWidget):
1630 Updated due to changes in EwkView interface.
1632 2013-02-05 Tim Horton <timothy_horton@apple.com>
1634 [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
1635 https://bugs.webkit.org/show_bug.cgi?id=108992
1636 <rdar://problem/13087365>
1638 Reviewed by Anders Carlsson.
1640 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1641 (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
1642 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1643 (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
1644 hosting context if we're in the window when swapping out contexts.
1645 (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
1646 of the layer hosting context (or unset it if we're out of the window).
1648 2013-02-05 Anders Carlsson <andersca@apple.com>
1650 WebKit clients should be able to override loading of blocked plug-ins
1651 https://bugs.webkit.org/show_bug.cgi?id=108968
1652 <rdar://problem/13154516>
1654 Reviewed by Sam Weinig.
1656 Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
1657 of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
1658 force loading of blacklisted plug-ins (and vice versa).
1660 * UIProcess/API/C/WKPage.h:
1661 * UIProcess/WebPageProxy.cpp:
1662 (WebKit::WebPageProxy::getPluginPath):
1663 * UIProcess/WebUIClient.cpp:
1664 (WebKit::toWKPluginLoadPolicy):
1666 (WebKit::toPluginModuleLoadPolicy):
1667 (WebKit::WebUIClient::pluginLoadPolicy):
1668 * UIProcess/WebUIClient.h:
1671 2013-02-05 Simon Hausmann <simon.hausmann@digia.com>
1673 [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
1674 https://bugs.webkit.org/show_bug.cgi?id=108826
1676 Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
1679 This patch converts a few more usages of WebPageProxy to functions in
1682 * UIProcess/API/qt/qquickwebview.cpp:
1683 (QQuickWebViewPrivate::initialize):
1684 (QQuickWebViewLegacyPrivate::zoomFactor):
1685 (QQuickWebViewLegacyPrivate::setZoomFactor):
1686 (QQuickWebViewExperimental::postMessage):
1687 (QQuickWebViewExperimental::userAgent):
1688 (QQuickWebViewExperimental::setUserAgent):
1689 (QQuickWebViewExperimental::evaluateJavaScript):
1690 (QQuickWebViewExperimental::findText):
1691 (QQuickWebView::goBack):
1692 (QQuickWebView::goForward):
1693 (QQuickWebView::stop):
1694 (QQuickWebView::reload):
1695 (QQuickWebView::setUrl):
1696 (QQuickWebView::canGoBack):
1697 (QQuickWebView::canGoForward):
1698 (QQuickWebView::loading):
1699 (QQuickWebView::title):
1700 (QQuickWebView::pageRef):
1701 (QQuickWebView::loadHtml):
1702 (QQuickWebView::runJavaScriptInMainFrame):
1703 * UIProcess/API/qt/qquickwebview_p_p.h:
1704 (QQuickWebViewPrivate):
1706 2013-02-04 Gwang Yoon Hwang <ryumiel@company100.net>
1708 Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
1709 https://bugs.webkit.org/show_bug.cgi?id=108807
1711 Reviewed by Anders Carlsson.
1713 We need to add newly created WebCustomFilterProgramProxy to a hashset to
1714 disconnect when CoordinatedLayerTreeHost gets destructed.
1716 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1717 (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1719 2013-02-04 Benjamin Poulain <bpoulain@apple.com>
1721 Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
1722 https://bugs.webkit.org/show_bug.cgi?id=108741
1724 Reviewed by Tony Chang.
1726 Suspending and resuming application has been useless for a one. Someone just
1729 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1730 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1731 * WebProcess/WebPage/WebFrame.cpp:
1732 * WebProcess/WebPage/WebFrame.h:
1735 2013-02-04 Jaehun Lim <ljaehun.lim@samsung.com>
1737 [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
1738 https://bugs.webkit.org/show_bug.cgi?id=106979
1740 Reviewed by Benjamin Poulain.
1742 Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
1743 We can show confirmation window when beforeunload event is fired.
1745 * UIProcess/efl/PageUIClientEfl.cpp:
1746 (WebKit::PageUIClientEfl::PageUIClientEfl):
1747 (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
1749 * UIProcess/efl/PageUIClientEfl.h:
1752 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1754 [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
1755 https://bugs.webkit.org/show_bug.cgi?id=107931
1757 Reviewed by Anders Carlsson.
1759 This is just one step of the new plan for the EFL API.
1761 The plan is to move the public EFL-like API on top of the shared
1762 WK2 C API, plus a few EFL extensions (WKView class mostly).
1764 The EFL-like API can be seen as a convenience API which ties
1765 well into EFL and which makes it easy to add web experiences
1766 to existing and new EFL applications. It provides a smart object
1767 like API and a Evas_Object based view.
1769 For more advanced use cases, such as browser and runtime, it is
1770 possible to use the WK* C API, which is gives more flexibility
1771 while being more low level.
1773 The idea is that the WKView class will not depend on Evas_Object
1774 and X11 (future plan) unlike the current EFL-like API. This should
1775 make it possible to use it for cases where none of these are
1778 This patch introduces the WebView class which serves as our
1779 counterpart for the WKView class, and adds a few needed methods.
1781 The EwkView owns the WebView class (and will be constructing it
1782 in the near future when the EwkView class has been changed to
1783 handle all smart object related code)
1785 The clean up of the smart object related code as the proper
1786 construction of EwkView and WebView will be done in follow-up
1789 * UIProcess/API/C/efl/WKAPICastEfl.h:
1792 The WKView API is not based on WebView and not Evas_Object*
1794 * UIProcess/API/C/efl/WKView.cpp:
1796 (WKViewCreateWithFixedLayout):
1799 (WKViewSetThemePath):
1800 (WKViewSuspendActiveDOMObjectsAndAnimations):
1801 (WKViewResumeActiveDOMObjectsAndAnimations):
1802 (WKViewGetEvasObject):
1803 (WKViewCreateSnapshot):
1805 Add a few new WKView EFL C methods, and update existing
1806 methods to reflect that the WKViewRef is now a WebView*
1808 The construction methods will be rewritten when the smart
1809 object construction has been solved.
1811 * UIProcess/API/C/efl/WKView.h:
1812 * UIProcess/efl/WebView.cpp: Added.
1814 (WebKit::WebView::WebView):
1815 (WebKit::WebView::~WebView):
1816 (WebKit::WebView::initialize):
1817 (WebKit::WebView::setThemePath):
1818 (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
1819 (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
1820 * UIProcess/efl/WebView.h: Added.
1823 (WebKit::WebView::pageRef):
1824 (WebKit::WebView::evasObject):
1825 (WebKit::WebView::page):
1826 (WebKit::WebView::type):
1828 Add a new WebKit::WebView class for EFL.
1830 * UIProcess/API/efl/EwkView.cpp:
1832 (EwkView::~EwkView):
1834 (EwkView::setThemePath):
1835 (EwkView::createGLSurface):
1837 Base methods on C API instead of internal API as much
1838 as currently possible.
1840 * UIProcess/API/efl/EwkView.h:
1846 * UIProcess/API/efl/ewk_view.cpp:
1848 (ewk_view_base_add):
1849 (ewk_view_smart_add):
1851 Modify to return the EwkView class for now.
1853 * UIProcess/API/efl/ewk_view_private.h:
1854 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1855 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1857 Updated due to changed API.
1859 2013-02-04 Anders Carlsson <andersca@apple.com>
1861 Set up the storage manager as a connection queue
1862 https://bugs.webkit.org/show_bug.cgi?id=108879
1864 Reviewed by Sam Weinig.
1866 * UIProcess/Storage/StorageManager.cpp:
1867 (WebKit::StorageManager::processWillOpenConnection):
1868 Add the storage manager as a connection queue client.
1870 (WebKit::StorageManager::processWillCloseConnection):
1871 Remove the storage manager.
1873 * UIProcess/WebContext.cpp:
1874 (WebKit::WebContext::processWillOpenConnection):
1875 Call the storage manager.
1877 (WebKit::WebContext::processWillCloseConnection):
1878 Call the storage manager.
1880 * UIProcess/WebProcessProxy.cpp:
1881 (WebKit::WebProcessProxy::connectionWillOpen):
1884 (WebKit::WebProcessProxy::connectionWillClose):
1887 (WebKit::WebProcessProxy::didFinishLaunching):
1890 2013-02-04 Anders Carlsson <andersca@apple.com>
1892 Send message when creating and destroying StorageAreaProxy objects
1893 https://bugs.webkit.org/show_bug.cgi?id=108874
1895 Reviewed by Sam Weinig.
1897 * Shared/SecurityOriginData.cpp:
1898 (WebKit::SecurityOriginData::fromSecurityOrigin):
1899 * Shared/SecurityOriginData.h:
1900 (SecurityOriginData):
1901 Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
1903 * WebProcess/Storage/StorageAreaProxy.cpp:
1904 (WebKit::generateStorageAreaID):
1905 New function to create a unique storage area ID.
1907 (WebKit::StorageAreaProxy::StorageAreaProxy):
1908 Send a CreateStorageArea message.
1910 (WebKit::StorageAreaProxy::~StorageAreaProxy):
1911 Send a DestroyStorageArea message.
1913 (WebKit::StorageAreaProxy::contains):
1914 Remove this assertion for now, it fires too often.
1916 * WebProcess/Storage/StorageNamespaceProxy.h:
1917 (WebKit::StorageNamespaceProxy::storageNamespaceID):
1920 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1922 [EFL][WK2] Use C API inside EwkView
1923 https://bugs.webkit.org/show_bug.cgi?id=108825
1925 Reviewed by Anders Carlsson.
1927 A straight-forward port towards the C API.
1929 * UIProcess/API/efl/EwkView.cpp:
1930 (EwkView::EwkView): Use C API for common default preferences.
1931 (EwkView::wkPage): Make it const and remove useless comment.
1932 (EwkView::deviceScaleFactor):
1934 (EwkView::customTextEncodingName):
1935 (EwkView::setCustomTextEncodingName):
1936 (EwkView::informURLChange):
1937 * UIProcess/API/efl/EwkView.h:
1940 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1942 Remove an unnecessary sandbox rule.
1944 Reviewed by Sam Weinig.
1946 * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
1947 /Library/Managed Preferences, no need for another rule for something inside it.
1949 2013-02-04 Brady Eidson <beidson@apple.com>
1951 WebProcess crashes handling repeated NetworkProcess crashes.
1952 <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
1954 Reviewed by Alexey Proskuryakov.
1956 - Rename the concept of "unschedulable loader" to "internally failed loader"
1957 - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
1958 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1959 (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
1960 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1961 (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
1962 (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
1963 (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
1964 (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1965 * WebProcess/Network/WebResourceLoadScheduler.h:
1967 WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
1968 * WebProcess/Network/WebResourceLoader.cpp:
1969 * WebProcess/Network/WebResourceLoader.h:
1970 (WebKit::WebResourceLoader::resourceLoader):
1972 2013-02-04 Anders Carlsson <andersca@apple.com>
1974 Update message generation to use the new queue client semantics
1975 https://bugs.webkit.org/show_bug.cgi?id=108865
1977 Reviewed by Andreas Kling.
1979 * Scripts/webkit2/messages.py:
1980 (connection_work_queue_message_statement):
1981 (async_message_statement):
1982 (generate_message_handler):
1983 * Scripts/webkit2/messages_unittest.py:
1984 * Shared/mac/SecItemShim.cpp:
1985 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1986 * Shared/mac/SecItemShim.h:
1988 * UIProcess/Storage/StorageManager.cpp:
1989 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1990 * UIProcess/Storage/StorageManager.h:
1992 * UIProcess/WebProcessProxy.cpp:
1993 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1994 * UIProcess/WebProcessProxy.h:
1996 * UIProcess/mac/SecItemShimProxy.cpp:
1997 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1998 * UIProcess/mac/SecItemShimProxy.h:
2000 * WebKit2.xcodeproj/project.pbxproj:
2001 * WebProcess/WebPage/EventDispatcher.cpp:
2002 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
2003 * WebProcess/WebPage/EventDispatcher.h:
2005 * WebProcess/WebProcess.cpp:
2006 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
2007 * WebProcess/WebProcess.h:
2010 2013-02-04 Abhishek Arya <inferno@chromium.org>
2012 Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
2013 https://bugs.webkit.org/show_bug.cgi?id=108668
2015 Reviewed by Eric Seidel.
2017 * Shared/mac/SandboxExtensionMac.mm:
2018 (WebKit::SandboxExtension::HandleArray::operator[]):
2020 2013-02-04 Anders Carlsson <andersca@apple.com>
2022 Change didReceiveMessageOnConnectionWorkQueue semantics
2023 https://bugs.webkit.org/show_bug.cgi?id=108859
2025 Reviewed by Sam Weinig.
2027 Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
2028 OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
2029 work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
2030 of the decoder implicitly means that the message was handled.
2032 * Platform/CoreIPC/Connection.cpp:
2033 (CoreIPC::Connection::processIncomingMessage):
2034 * Platform/CoreIPC/Connection.h:
2036 * Shared/mac/SecItemShim.cpp:
2037 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
2038 * Shared/mac/SecItemShim.h:
2040 * UIProcess/Storage/StorageManager.cpp:
2041 (WebKit::StorageManager::StorageManager):
2042 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
2043 * UIProcess/Storage/StorageManager.h:
2046 * UIProcess/WebProcessProxy.cpp:
2047 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
2048 * UIProcess/WebProcessProxy.h:
2050 * UIProcess/mac/SecItemShimProxy.cpp:
2051 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
2052 * UIProcess/mac/SecItemShimProxy.h:
2054 * WebProcess/WebPage/EventDispatcher.cpp:
2055 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
2056 * WebProcess/WebPage/EventDispatcher.h:
2058 * WebProcess/WebProcess.cpp:
2059 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
2060 * WebProcess/WebProcess.h:
2063 2013-02-04 Alexey Proskuryakov <ap@apple.com>
2065 <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
2067 Reviewed by Sam Weinig.
2069 * WebProcess/com.apple.WebProcess.sb.in:
2071 2013-02-04 Anders Carlsson <andersca@apple.com>
2073 Add didCloseOnConnectionWorkQueue to Connection::QueueClient
2074 https://bugs.webkit.org/show_bug.cgi?id=108853
2076 Reviewed by Andreas Kling.
2078 * Platform/CoreIPC/Connection.cpp:
2079 (CoreIPC::Connection::connectionDidClose):
2080 * Platform/CoreIPC/Connection.h:
2082 * Shared/mac/SecItemShim.cpp:
2083 (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
2084 * Shared/mac/SecItemShim.h:
2086 * UIProcess/Storage/StorageManager.cpp:
2087 (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
2089 * UIProcess/Storage/StorageManager.h:
2091 * UIProcess/WebProcessProxy.cpp:
2092 (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
2094 * UIProcess/WebProcessProxy.h:
2096 * UIProcess/mac/SecItemShimProxy.cpp:
2097 (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
2098 * UIProcess/mac/SecItemShimProxy.h:
2100 * WebProcess/WebPage/EventDispatcher.cpp:
2101 (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
2103 * WebProcess/WebPage/EventDispatcher.h:
2105 * WebProcess/WebProcess.cpp:
2106 (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
2108 * WebProcess/WebProcess.h:
2111 2013-02-04 Martin Robinson <mrobinson@igalia.com>
2113 Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
2116 * GNUmakefile.list.am:
2118 2013-02-04 Enrica Casucci <enrica@apple.com>
2120 Add specific EditActions for Bold and Italic commands.
2121 https://bugs.webkit.org/show_bug.cgi?id=108842.
2122 <rdar://problem/13098252>
2124 Reviewed by Ryosuke Niwa.
2126 * UIProcess/WebEditCommandProxy.cpp:
2127 (WebKit::WebEditCommandProxy::nameForEditAction):
2129 2013-02-04 Anders Carlsson <andersca@apple.com>
2131 Use a separate queue for the connection watchdog callback in the web process
2132 https://bugs.webkit.org/show_bug.cgi?id=108844
2134 Reviewed by Andreas Kling.
2136 Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
2137 Instead, create a new, temporary work queue where the exit call will be dispatched to.
2139 * Platform/CoreIPC/Connection.cpp:
2140 (CoreIPC::Connection::connectionDidClose):
2141 * Platform/CoreIPC/Connection.h:
2143 * Shared/ChildProcess.cpp:
2144 (WebKit::didCloseOnConnectionWorkQueue):
2146 2013-02-04 Tim Horton <timothy_horton@apple.com>
2148 Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
2149 https://bugs.webkit.org/show_bug.cgi?id=108729
2150 <rdar://problem/13047546>
2152 Reviewed by Anders Carlsson.
2154 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2155 (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
2156 current PlatformLayer corresponding to m_pageOverlayLayer.
2157 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2158 (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
2159 (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
2160 (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
2161 (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.
2162 (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.
2164 2013-02-04 Anders Carlsson <andersca@apple.com>
2166 Use UNUSED_PARAM instead of C style comments.
2168 * UIProcess/Storage/StorageManager.cpp:
2169 (WebKit::StorageManager::createStorageArea):
2171 2013-02-04 Christophe Dumez <dchris@gmail.com>
2173 [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
2174 https://bugs.webkit.org/show_bug.cgi?id=108816
2176 Reviewed by Anders Carlsson.
2178 As we are trying to minimize use of external dependencies in our WK2 EFL
2179 API implementation, we should stop using libsoup in
2180 ewk_url_scheme_request and use the WK2 C API instead.
2182 * UIProcess/API/efl/ewk_url_scheme_request.cpp:
2183 (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
2185 2013-02-04 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2187 [WK2][EFL] Weird stripe at the end of the page
2188 https://bugs.webkit.org/show_bug.cgi?id=108820
2190 Reviewed by Noam Rosenthal.
2192 The page scroll bound was artificially enlarged by one causing the artifact appearance.
2194 * UIProcess/PageViewportController.cpp:
2195 (WebKit::PageViewportController::boundContentsPositionAtScale):
2197 2013-02-04 David Kilzer <ddkilzer@apple.com>
2199 Sort WebKit2 Xcode project file
2201 * WebKit2.xcodeproj/project.pbxproj:
2203 2013-02-04 Simon Hausmann <simon.hausmann@digia.com>
2205 [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
2206 https://bugs.webkit.org/show_bug.cgi?id=108651
2208 Reviewed by Sam Weinig.
2210 It's straight-forward port towards the C API.
2212 * UIProcess/API/qt/qquickwebview.cpp:
2213 (QQuickWebViewPrivate::initialize):
2215 (QQuickWebViewPrivate::updateUserScripts):
2216 * UIProcess/API/qt/qquickwebview_p_p.h:
2217 (QQuickWebViewPrivate):
2219 2013-02-04 Balazs Kelemen <kbalazs@webkit.org>
2221 [Soup] Wrap SoupSession by NetworkStorageSession
2222 https://bugs.webkit.org/show_bug.cgi?id=108615
2224 Reviewed by Alexey Proskuryakov.
2226 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
2227 (WebKit::WebFrameNetworkingContext::storageSession):
2228 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
2229 (WebFrameNetworkingContext):
2231 2013-02-03 David Kilzer <ddkilzer@apple.com>
2233 Upstream ENABLE_PDFKIT_PLUGIN settting
2234 <http://webkit.org/b/108792>
2236 Reviewed by Tim Horton.
2238 * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
2239 on iOS since PDFKit is a Mac-only framework.
2241 2013-02-01 Alexey Proskuryakov <ap@apple.com>
2243 Silently block one more directory needed for NSApplication initialization.
2245 Reviewed by Sam Weinig.
2247 * WebProcess/com.apple.WebProcess.sb.in:
2249 2013-02-03 KwangYong Choi <ky0.choi@samsung.com>
2251 Fix build warning after r141648
2252 https://bugs.webkit.org/show_bug.cgi?id=108784
2254 Reviewed by Kentaro Hara.
2256 Fix -Wunused-parameter build warning.
2258 * UIProcess/Storage/StorageManager.cpp:
2259 (WebKit::StorageManager::createStorageArea):
2260 (WebKit::StorageManager::destroyStorageArea):
2262 2013-02-03 Joanmarie Diggs <jdiggs@igalia.com>
2264 [GTK] Make distcheck fails
2265 https://bugs.webkit.org/show_bug.cgi?id=108756
2267 Reviewed by Kentaro Hara.
2269 * GNUmakefile.list.am: Remove header files which no longer exist
2271 2013-02-02 Sam Weinig <sam@webkit.org>
2273 Remove more LegacyReceivers
2274 https://bugs.webkit.org/show_bug.cgi?id=108758
2276 Reviewed by Anders Carlsson.
2278 * UIProcess/Downloads/DownloadProxy.cpp:
2279 * UIProcess/Downloads/DownloadProxy.messages.in:
2280 * UIProcess/WebApplicationCacheManagerProxy.cpp:
2281 * UIProcess/WebApplicationCacheManagerProxy.h:
2282 (WebApplicationCacheManagerProxy):
2283 * UIProcess/WebApplicationCacheManagerProxy.messages.in:
2284 * UIProcess/WebCookieManagerProxy.cpp:
2285 * UIProcess/WebCookieManagerProxy.h:
2286 (WebCookieManagerProxy):
2287 * UIProcess/WebCookieManagerProxy.messages.in:
2288 * UIProcess/WebDatabaseManagerProxy.cpp:
2289 * UIProcess/WebDatabaseManagerProxy.h:
2290 (WebDatabaseManagerProxy):
2291 * UIProcess/WebDatabaseManagerProxy.messages.in:
2292 * UIProcess/mac/RemoteLayerTreeHost.h:
2293 (RemoteLayerTreeHost):
2294 * UIProcess/mac/RemoteLayerTreeHost.messages.in:
2295 * UIProcess/mac/RemoteLayerTreeHost.mm:
2296 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2297 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2298 (WebApplicationCacheManager):
2299 * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
2300 * WebProcess/Cookies/WebCookieManager.cpp:
2301 * WebProcess/Cookies/WebCookieManager.h:
2303 * WebProcess/Cookies/WebCookieManager.messages.in:
2304 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
2305 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2306 (WebDatabaseManager):
2307 * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
2309 2013-02-02 Sam Weinig <sam@webkit.org>
2311 Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
2312 https://bugs.webkit.org/show_bug.cgi?id=108757
2314 Reviewed by Anders Carlsson.
2316 * Shared/Authentication/AuthenticationManager.cpp:
2317 * Shared/Authentication/AuthenticationManager.h:
2318 (AuthenticationManager):
2319 * Shared/Authentication/AuthenticationManager.messages.in:
2320 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
2321 (CustomProtocolManager):
2322 * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
2323 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2324 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2325 (CustomProtocolManagerProxy):
2326 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
2327 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
2329 2013-02-02 Christophe Dumez <christophe.dumez@intel.com>
2331 [EFL][WK2] Use C API inside ewk_file_chooser_request
2332 https://bugs.webkit.org/show_bug.cgi?id=107811
2334 Reviewed by Sam Weinig.
2336 Use C API inside ewk_file_chooser_request instead of
2337 accessing the internal C++ classes directly, to
2338 avoid violating API layering.
2340 * UIProcess/API/efl/ewk_file_chooser_request.cpp:
2341 (EwkFileChooserRequest::EwkFileChooserRequest):
2342 (EwkFileChooserRequest::~EwkFileChooserRequest):
2343 (EwkFileChooserRequest::allowMultipleFiles):
2344 (EwkFileChooserRequest::acceptedMIMETypes):
2345 (EwkFileChooserRequest::cancel):
2346 (EwkFileChooserRequest::chooseFiles):
2347 (ewk_file_chooser_request_accepted_mimetypes_get):
2348 (ewk_file_chooser_request_files_choose):
2349 (ewk_file_chooser_request_file_choose):
2350 * UIProcess/API/efl/ewk_file_chooser_request_private.h:
2351 (EwkFileChooserRequest::create):
2352 (EwkFileChooserRequest):
2353 * UIProcess/efl/PageUIClientEfl.cpp:
2354 (WebKit::PageUIClientEfl::runOpenPanel):
2356 2013-02-02 Sam Weinig <sam@webkit.org>
2358 Stop keeping a frame tree in the UIProcess
2359 https://bugs.webkit.org/show_bug.cgi?id=81728
2361 Reviewed by Oliver Hunt.
2363 This patch removes the parent/child relationships of WebFrameProxys
2366 * UIProcess/API/C/WKFrame.cpp:
2367 (WKFrameCopyChildFrames):
2368 (WKFrameGetParentFrame):
2369 * UIProcess/API/C/WKFrame.h:
2370 Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
2371 but keep them around as their symbols are still needed for nightlies.
2373 * UIProcess/WebFrameProxy.cpp:
2374 (WebKit::WebFrameProxy::WebFrameProxy):
2375 (WebKit::WebFrameProxy::disconnect):
2376 * UIProcess/WebFrameProxy.h:
2377 Remove parent/child connections.
2379 * UIProcess/WebPageProxy.cpp:
2380 (WebKit::WebPageProxy::didCreateSubframe):
2381 (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
2382 * UIProcess/WebPageProxy.h:
2383 * UIProcess/WebPageProxy.messages.in:
2384 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2385 (WebKit::WebFrameLoaderClient::didSaveToPageCache):
2386 (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
2387 * WebProcess/WebPage/WebFrame.cpp:
2388 (WebKit::WebFrame::createSubframe):
2389 Remove/Update messages that only served to update the parent/child connection.
2391 2013-02-02 Sam Weinig <sam@webkit.org>
2393 Make it possible to modify the connection from ChildProcessProxy subclasses.
2395 Reviewed by Anders Carlsson.
2397 * Shared/ChildProcessProxy.cpp:
2398 (WebKit::ChildProcessProxy::ChildProcessProxy):
2399 (WebKit::ChildProcessProxy::didFinishLaunching):
2400 (WebKit::ChildProcessProxy::clearConnection):
2401 (WebKit::ChildProcessProxy::connectionWillOpen):
2402 (WebKit::ChildProcessProxy::connectionWillClose):
2403 * Shared/ChildProcessProxy.h:
2404 (ChildProcessProxy):
2405 * UIProcess/WebProcessProxy.cpp:
2406 (WebKit::WebProcessProxy::WebProcessProxy):
2407 (WebKit::WebProcessProxy::connectionWillOpen):
2408 (WebKit::WebProcessProxy::connectionWillClose):
2409 * UIProcess/WebProcessProxy.h:
2412 2013-02-02 David Kilzer <ddkilzer@apple.com>
2414 Upstream iOS FeatureDefines
2415 <http://webkit.org/b/108753>
2417 Reviewed by Anders Carlsson.
2419 * Configurations/FeatureDefines.xcconfig:
2420 - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
2421 - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
2422 - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add
2423 PLATFORM_NAME variant to reduce future merge conflicts.
2425 2013-02-02 Csaba Osztrogonác <ossy@webkit.org>
2427 [Qt][WK2] Unreviewed buildfix after r141648.
2429 * DerivedSources.pri:
2431 2013-02-02 Zan Dobersek <zdobersek@igalia.com>
2433 Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
2437 * GNUmakefile.list.am:
2439 2013-02-01 Zan Dobersek <zdobersek@igalia.com>
2441 Unreviewed GTK build fix after r141648.
2443 * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
2444 should be searched for *.messages.in files.
2446 2013-02-01 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2448 Unreviewed build fix after r141648
2450 Needs to add StorageManager.messages.in to CMakeLists.txt.
2454 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2456 Build fix for CustomProtocolManagerMac after r141658.
2458 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2459 (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
2461 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2463 [WK2] Use light supplement names instead of static AtomicStrings
2464 https://bugs.webkit.org/show_bug.cgi?id=108570
2466 Reviewed by Anders Carlsson.
2468 Since all the supplement names are just string literals and are all different,
2469 we can just use their pointer as the key in the supplement hashmaps.
2471 This is lighter and faster than using AtomicString. WebCore already moved to this
2474 * NetworkProcess/NetworkProcess.h:
2475 (WebKit::NetworkProcess::addSupplement):
2477 * Shared/Authentication/AuthenticationManager.cpp:
2478 (WebKit::AuthenticationManager::supplementName):
2479 * Shared/Authentication/AuthenticationManager.h:
2480 (AuthenticationManager):
2481 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
2482 (CustomProtocolManager):
2483 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2484 (WebKit::CustomProtocolManager::supplementName):
2485 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2486 (WebKit::WebNotificationManagerProxy::supplementName):
2487 * UIProcess/Notifications/WebNotificationManagerProxy.h:
2488 (WebNotificationManagerProxy):
2489 * UIProcess/WebApplicationCacheManagerProxy.cpp:
2490 (WebKit::WebApplicationCacheManagerProxy::supplementName):
2491 * UIProcess/WebApplicationCacheManagerProxy.h:
2492 (WebApplicationCacheManagerProxy):
2493 * UIProcess/WebContext.h:
2495 * UIProcess/WebCookieManagerProxy.cpp:
2496 (WebKit::WebCookieManagerProxy::supplementName):
2497 * UIProcess/WebCookieManagerProxy.h:
2498 (WebCookieManagerProxy):
2499 * UIProcess/WebDatabaseManagerProxy.cpp:
2500 (WebKit::WebDatabaseManagerProxy::supplementName):
2501 * UIProcess/WebDatabaseManagerProxy.h:
2502 (WebDatabaseManagerProxy):
2503 * UIProcess/WebGeolocationManagerProxy.cpp:
2504 (WebKit::WebGeolocationManagerProxy::supplementName):
2505 * UIProcess/WebGeolocationManagerProxy.h:
2506 (WebGeolocationManagerProxy):
2507 * UIProcess/WebKeyValueStorageManagerProxy.cpp:
2508 (WebKit::WebKeyValueStorageManagerProxy::supplementName):
2509 * UIProcess/WebKeyValueStorageManagerProxy.h:
2510 (WebKeyValueStorageManagerProxy):
2511 * UIProcess/WebMediaCacheManagerProxy.cpp:
2512 (WebKit::WebMediaCacheManagerProxy::supplementName):
2513 * UIProcess/WebMediaCacheManagerProxy.h:
2514 (WebMediaCacheManagerProxy):
2515 * UIProcess/WebResourceCacheManagerProxy.cpp:
2516 (WebKit::WebResourceCacheManagerProxy::supplementName):
2517 * UIProcess/WebResourceCacheManagerProxy.h:
2518 (WebResourceCacheManagerProxy):
2519 * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2520 (WebKit::WebSoupRequestManagerProxy::supplementName):
2521 * UIProcess/soup/WebSoupRequestManagerProxy.h:
2522 (WebSoupRequestManagerProxy):
2523 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2524 (WebKit::WebApplicationCacheManager::supplementName):
2525 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2526 (WebApplicationCacheManager):
2527 * WebProcess/Cookies/WebCookieManager.cpp:
2528 (WebKit::WebCookieManager::supplementName):
2529 * WebProcess/Cookies/WebCookieManager.h:
2531 * WebProcess/Geolocation/WebGeolocationManager.cpp:
2532 (WebKit::WebGeolocationManager::supplementName):
2533 * WebProcess/Geolocation/WebGeolocationManager.h:
2534 (WebGeolocationManager):
2535 * WebProcess/MediaCache/WebMediaCacheManager.cpp:
2536 (WebKit::WebMediaCacheManager::supplementName):
2537 * WebProcess/MediaCache/WebMediaCacheManager.h:
2538 (WebMediaCacheManager):
2539 * WebProcess/Notifications/WebNotificationManager.cpp:
2540 (WebKit::WebNotificationManager::supplementName):
2541 * WebProcess/Notifications/WebNotificationManager.h:
2542 (WebNotificationManager):
2543 * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
2544 (WebKit::WebResourceCacheManager::supplementName):
2545 * WebProcess/ResourceCache/WebResourceCacheManager.h:
2546 (WebResourceCacheManager):
2547 * WebProcess/Storage/WebKeyValueStorageManager.cpp:
2548 (WebKit::WebKeyValueStorageManager::supplementName):
2549 * WebProcess/Storage/WebKeyValueStorageManager.h:
2550 (WebKeyValueStorageManager):
2551 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
2552 (WebKit::WebDatabaseManager::supplementName):
2553 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2554 (WebDatabaseManager):
2555 * WebProcess/WebProcess.h:
2556 (WebKit::WebProcess::addSupplement):
2559 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2561 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
2562 https://bugs.webkit.org/show_bug.cgi?id=108558
2564 Reviewed by Dean Jackson.
2566 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2567 (WKBundleFramePauseAnimationOnElementWithId):
2568 * WebProcess/WebPage/WebFrame.cpp:
2569 (WebKit::WebFrame::pauseAnimationOnElementWithId):
2570 * WebProcess/WebPage/WebFrame.h:
2573 2013-02-01 Anders Carlsson <andersca@apple.com>
2575 More work on UI side storage
2576 https://bugs.webkit.org/show_bug.cgi?id=108700
2578 Reviewed by Sam Weinig.
2580 * DerivedSources.make:
2581 Add StorageManager.messages.in.
2583 * Platform/CoreIPC/HandleMessage.h:
2584 (CoreIPC::callMemberFunction):
2587 * UIProcess/Storage/StorageManager.cpp:
2588 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
2589 Call the right function.
2591 (WebKit::StorageManager::createStorageArea):
2592 (WebKit::StorageManager::destroyStorageArea):
2595 * UIProcess/Storage/StorageManager.messages.in: Added.
2596 Add new messages files.
2598 * WebKit2.xcodeproj/project.pbxproj:
2601 * WebProcess/Storage/StorageAreaProxy.cpp:
2602 (WebKit::StorageAreaProxy::~StorageAreaProxy):
2605 (WebKit::StorageAreaProxy::canAccessStorage):
2606 (WebKit::StorageAreaProxy::incrementAccessCount):
2607 (WebKit::StorageAreaProxy::decrementAccessCount):
2610 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2612 [Gtk] [WK2] Fix build after r141619
2613 https://bugs.webkit.org/show_bug.cgi?id=108687
2615 Reviewed by Benjamin Poulain.
2617 Take a reference instead of a pointer for decoding functions.
2619 * Platform/gtk/SharedMemoryGtk.cpp:
2620 (WebKit::SharedMemory::Handle::decode):
2621 * Shared/gtk/ArgumentCodersGtk.cpp:
2622 (CoreIPC::decodeImage):
2623 (CoreIPC::decodeDataObject):
2624 (CoreIPC::::decode):
2625 (CoreIPC::decodeGKeyFile):
2627 * Shared/gtk/ArgumentCodersGtk.h:
2628 * Shared/gtk/LayerTreeContextGtk.cpp:
2629 (WebKit::LayerTreeContext::decode):
2631 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2633 [EFL] [WK2] Fix build after r141619
2634 https://bugs.webkit.org/show_bug.cgi?id=108683
2636 Reviewed by Benjamin Poulain.
2638 Take a reference instead of a pointer for decoding functions.
2640 * Shared/WebBatteryStatus.cpp:
2641 (WebKit::WebBatteryStatus::Data::decode):
2642 * Shared/WebBatteryStatus.h:
2644 * Shared/WebNetworkInfo.cpp:
2645 (WebKit::WebNetworkInfo::Data::decode):
2646 * Shared/WebNetworkInfo.h:
2648 * Shared/cairo/LayerTreeContextCairo.cpp:
2649 (WebKit::LayerTreeContext::decode):
2650 * Shared/efl/LayerTreeContextEfl.cpp:
2651 (WebKit::LayerTreeContext::decode):
2652 * Shared/soup/PlatformCertificateInfo.cpp:
2653 (WebKit::PlatformCertificateInfo::decode):
2654 * Shared/soup/PlatformCertificateInfo.h:
2655 (PlatformCertificateInfo):
2656 * Shared/soup/WebCoreArgumentCodersSoup.cpp:
2657 (CoreIPC::::decodePlatformData):
2659 2013-02-01 Brady Eidson <beidson@apple.com>
2661 Clean up WebArchive loading with the NetworkProcess
2662 <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
2664 Reviewed by Alexey Proskuryakov.
2666 * NetworkProcess/HostRecord.cpp:
2667 (WebKit::HostRecord::servePendingRequestsForQueue): Add new logging.
2668 (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
2670 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2671 (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
2673 * WebProcess/Network/WebResourceLoadScheduler.cpp:
2674 (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
2675 and add new logging to better explore archive loading behavior in the future.
2677 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2679 [Qt] [WK2] Fix build after r141619
2680 https://bugs.webkit.org/show_bug.cgi?id=108680
2682 Reviewed by Benjamin Poulain.
2684 Take a reference instead of a pointer for decoding functions.
2686 * Platform/unix/SharedMemoryUnix.cpp:
2687 (WebKit::SharedMemory::Handle::decode):
2688 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2689 (CoreIPC::::decode):
2690 (CoreIPC::decodeTimingFunction):
2691 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2692 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
2693 (WebKit::WebCoordinatedSurface::Handle::decode):
2694 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2696 * Shared/qt/ArgumentCodersQt.cpp:
2697 (CoreIPC::::decode):
2698 * Shared/qt/ArgumentCodersQt.h:
2700 * Shared/qt/LayerTreeContextQt.cpp:
2701 (WebKit::LayerTreeContext::decode):
2702 * Shared/qt/PlatformCertificateInfo.h:
2703 (WebKit::PlatformCertificateInfo::decode):
2704 * Shared/qt/QtNetworkReplyData.cpp:
2705 (WebKit::QtNetworkReplyData::decode):
2706 * Shared/qt/QtNetworkReplyData.h:
2707 (QtNetworkReplyData):
2708 * Shared/qt/QtNetworkRequestData.cpp:
2709 (WebKit::QtNetworkRequestData::decode):
2710 * Shared/qt/QtNetworkRequestData.h:
2711 (QtNetworkRequestData):
2712 * Shared/qt/WebCoreArgumentCodersQt.cpp:
2713 (CoreIPC::::decodePlatformData):
2715 2013-02-01 Anders Carlsson <andersca@apple.com>
2717 Message decoding functions should take a MessageDecoder reference
2718 https://bugs.webkit.org/show_bug.cgi?id=108669
2720 Reviewed by Andreas Kling.
2722 Message encoding functions already take a reference instead of a pointer, so
2723 make the decoding functions take a reference as well.
2725 * Platform/CoreIPC/ArgumentCoder.h:
2726 (CoreIPC::ArgumentCoder::decode):
2727 * Platform/CoreIPC/ArgumentCoders.cpp:
2728 (CoreIPC::::decode):
2729 (CoreIPC::decodeStringText):
2730 * Platform/CoreIPC/ArgumentCoders.h:
2731 (CoreIPC::SimpleArgumentCoder::decode):
2732 * Platform/CoreIPC/ArgumentDecoder.h:
2733 (CoreIPC::ArgumentDecoder::decode):
2734 * Platform/CoreIPC/Arguments.h:
2735 (CoreIPC::Arguments0::decode):
2736 (CoreIPC::Arguments1::decode):
2737 (CoreIPC::Arguments2::decode):
2738 (CoreIPC::Arguments3::decode):
2739 (CoreIPC::Arguments4::decode):
2740 (CoreIPC::Arguments5::decode):
2741 (CoreIPC::Arguments6::decode):
2742 (CoreIPC::Arguments7::decode):
2743 (CoreIPC::Arguments8::decode):
2744 (CoreIPC::Arguments10::decode):
2745 * Platform/CoreIPC/Attachment.cpp:
2746 (CoreIPC::Attachment::decode):
2747 * Platform/CoreIPC/Attachment.h:
2749 * Platform/CoreIPC/DataReference.cpp:
2750 (CoreIPC::DataReference::decode):
2751 * Platform/CoreIPC/DataReference.h:
2753 * Platform/CoreIPC/StringReference.cpp:
2754 (CoreIPC::StringReference::decode):
2755 * Platform/CoreIPC/StringReference.h:
2757 * Platform/CoreIPC/mac/MachPort.h:
2758 (CoreIPC::MachPort::decode):
2759 * Platform/SharedMemory.h:
2761 * Platform/mac/SharedMemoryMac.cpp:
2762 (WebKit::SharedMemory::Handle::decode):
2763 * PluginProcess/PluginCreationParameters.cpp:
2764 (WebKit::PluginCreationParameters::decode):
2765 * PluginProcess/PluginCreationParameters.h:
2766 (PluginCreationParameters):
2767 * Shared/DictionaryPopupInfo.cpp:
2768 (WebKit::DictionaryPopupInfo::decode):
2769 * Shared/DictionaryPopupInfo.h:
2770 (DictionaryPopupInfo):
2771 * Shared/EditorState.cpp:
2772 (WebKit::EditorState::decode):
2773 * Shared/EditorState.h:
2775 * Shared/FontInfo.cpp:
2776 (WebKit::FontInfo::decode):
2777 * Shared/FontInfo.h:
2779 * Shared/LayerTreeContext.h:
2781 * Shared/Network/NetworkProcessCreationParameters.cpp:
2782 (WebKit::NetworkProcessCreationParameters::decode):
2783 * Shared/Network/NetworkProcessCreationParameters.h:
2784 (NetworkProcessCreationParameters):
2785 * Shared/Network/NetworkResourceLoadParameters.cpp:
2786 (WebKit::NetworkResourceLoadParameters::decode):
2787 * Shared/Network/NetworkResourceLoadParameters.h:
2788 (NetworkResourceLoadParameters):
2789 * Shared/OriginAndDatabases.cpp:
2790 (WebKit::OriginAndDatabases::decode):
2791 * Shared/OriginAndDatabases.h:
2792 (OriginAndDatabases):
2793 * Shared/PlatformPopupMenuData.cpp:
2794 (WebKit::PlatformPopupMenuData::decode):
2795 * Shared/PlatformPopupMenuData.h:
2796 (PlatformPopupMenuData):
2797 * Shared/Plugins/NPIdentifierData.cpp:
2798 (WebKit::NPIdentifierData::decode):
2799 * Shared/Plugins/NPIdentifierData.h:
2801 * Shared/Plugins/NPVariantData.cpp:
2802 (WebKit::NPVariantData::decode):
2803 * Shared/Plugins/NPVariantData.h:
2805 * Shared/Plugins/PluginProcessCreationParameters.cpp:
2806 (WebKit::PluginProcessCreationParameters::decode):
2807 * Shared/Plugins/PluginProcessCreationParameters.h:
2808 (PluginProcessCreationParameters):
2809 * Shared/PrintInfo.cpp:
2810 (WebKit::PrintInfo::decode):
2811 * Shared/PrintInfo.h:
2813 * Shared/SandboxExtension.h:
2816 (WebKit::SandboxExtension::Handle::decode):
2817 (WebKit::SandboxExtension::HandleArray::decode):
2818 * Shared/SecurityOriginData.cpp:
2819 (WebKit::SecurityOriginData::decode):
2820 * Shared/SecurityOriginData.h:
2821 (SecurityOriginData):
2822 * Shared/SessionState.cpp:
2823 (WebKit::SessionState::decode):
2824 * Shared/SessionState.h:
2826 * Shared/ShareableBitmap.cpp:
2827 (WebKit::ShareableBitmap::Handle::decode):
2828 * Shared/ShareableBitmap.h:
2830 * Shared/ShareableResource.cpp:
2831 (WebKit::ShareableResource::Handle::decode):
2832 * Shared/ShareableResource.h:
2834 * Shared/SharedWorkerProcessCreationParameters.cpp:
2835 (WebKit::SharedWorkerProcessCreationParameters::decode):
2836 * Shared/SharedWorkerProcessCreationParameters.h:
2837 (SharedWorkerProcessCreationParameters):
2838 * Shared/StatisticsData.cpp:
2839 (WebKit::StatisticsData::decode):
2840 * Shared/StatisticsData.h:
2842 * Shared/StringPairVector.h:
2843 (WebKit::StringPairVector::decode):
2844 * Shared/UpdateInfo.cpp:
2845 (WebKit::UpdateInfo::decode):
2846 * Shared/UpdateInfo.h:
2848 * Shared/UserMessageCoders.h:
2849 (WebKit::UserMessageDecoder::baseDecode):
2850 * Shared/WebContextMenuItemData.cpp:
2851 (WebKit::WebContextMenuItemData::decode):
2852 * Shared/WebContextMenuItemData.h:
2853 (WebContextMenuItemData):
2854 * Shared/WebCoreArgumentCoders.cpp:
2855 (CoreIPC::::decode):
2856 (CoreIPC::decodeImage):
2857 * Shared/WebCoreArgumentCoders.h:
2858 * Shared/WebEvent.cpp:
2859 (WebKit::WebEvent::decode):
2860 * Shared/WebEvent.h:
2866 (WebPlatformTouchPoint):
2868 * Shared/WebGeolocationPosition.cpp:
2869 (WebKit::WebGeolocationPosition::Data::decode):
2870 * Shared/WebGeolocationPosition.h:
2872 * Shared/WebGestureEvent.cpp:
2873 (WebKit::WebGestureEvent::decode):
2874 * Shared/WebHitTestResult.cpp:
2875 (WebKit::WebHitTestResult::Data::decode):
2876 * Shared/WebHitTestResult.h:
2878 * Shared/WebKeyboardEvent.cpp:
2879 (WebKit::WebKeyboardEvent::decode):
2880 * Shared/WebMouseEvent.cpp:
2881 (WebKit::WebMouseEvent::decode):
2882 * Shared/WebNavigationDataStore.h:
2883 (WebKit::WebNavigationDataStore::decode):
2884 * Shared/WebPageCreationParameters.cpp:
2885 (WebKit::WebPageCreationParameters::decode):
2886 * Shared/WebPageCreationParameters.h:
2887 (WebPageCreationParameters):
2888 * Shared/WebPageGroupData.cpp:
2889 (WebKit::WebPageGroupData::decode):
2890 * Shared/WebPageGroupData.h:
2892 * Shared/WebPlatformTouchPoint.cpp:
2893 (WebKit::WebPlatformTouchPoint::decode):
2894 * Shared/WebPopupItem.cpp:
2895 (WebKit::WebPopupItem::decode):
2896 * Shared/WebPopupItem.h:
2897 * Shared/WebPreferencesStore.cpp:
2898 (WebKit::WebPreferencesStore::decode):
2899 * Shared/WebPreferencesStore.h:
2900 (WebPreferencesStore):
2901 * Shared/WebProcessCreationParameters.cpp:
2902 (WebKit::WebProcessCreationParameters::decode):
2903 * Shared/WebProcessCreationParameters.h:
2904 (WebProcessCreationParameters):
2905 * Shared/WebTouchEvent.cpp:
2906 (WebKit::WebTouchEvent::decode):
2907 * Shared/WebWheelEvent.cpp:
2908 (WebKit::WebWheelEvent::decode):
2909 * Shared/cf/ArgumentCodersCF.cpp:
2911 * Shared/cf/ArgumentCodersCF.h:
2913 * Shared/mac/ArgumentCodersMac.h:
2915 * Shared/mac/ArgumentCodersMac.mm:
2917 * Shared/mac/AttributedString.h:
2919 * Shared/mac/AttributedString.mm:
2920 (WebKit::AttributedString::decode):
2921 * Shared/mac/ColorSpaceData.h:
2923 * Shared/mac/ColorSpaceData.mm:
2924 (WebKit::ColorSpaceData::decode):
2925 * Shared/mac/LayerTreeContextMac.mm:
2926 (WebKit::LayerTreeContext::decode):
2927 * Shared/mac/ObjCObjectGraphCoders.h:
2928 (WebContextObjCObjectGraphDecoder):
2929 (InjectedBundleObjCObjectGraphDecoder):
2930 * Shared/mac/ObjCObjectGraphCoders.mm:
2931 (WebKit::ObjCObjectGraphDecoder::baseDecode):
2932 (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2933 (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2934 (WebKit::WebContextObjCObjectGraphDecoder::decode):
2935 (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
2936 * Shared/mac/PlatformCertificateInfo.h:
2937 (PlatformCertificateInfo):
2938 * Shared/mac/PlatformCertificateInfo.mm:
2939 (WebKit::PlatformCertificateInfo::decode):
2940 * Shared/mac/RemoteLayerTreeTransaction.h:
2942 (RemoteLayerTreeTransaction):
2943 * Shared/mac/RemoteLayerTreeTransaction.mm:
2944 (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
2945 (WebKit::RemoteLayerTreeTransaction::decode):
2946 * Shared/mac/SandboxExtensionMac.mm:
2947 (WebKit::SandboxExtension::Handle::decode):
2948 (WebKit::SandboxExtension::HandleArray::decode):
2949 * Shared/mac/SecItemRequestData.cpp:
2950 (WebKit::SecItemRequestData::decode):
2951 * Shared/mac/SecItemRequestData.h:
2952 * Shared/mac/SecItemResponseData.cpp:
2953 (WebKit::SecItemResponseData::decode):
2954 * Shared/mac/SecItemResponseData.h:
2955 (SecItemResponseData):
2956 * Shared/mac/WebCoreArgumentCodersMac.mm:
2957 (CoreIPC::::decodePlatformData):
2958 (CoreIPC::::decode):
2959 * UIProcess/WebContextUserMessageCoders.h:
2960 (WebKit::WebContextUserMessageDecoder::decode):
2961 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2962 (WebKit::InjectedBundleUserMessageDecoder::decode):
2963 * WebProcess/Plugins/Plugin.cpp:
2964 (WebKit::Plugin::Parameters::decode):
2965 * WebProcess/Plugins/Plugin.h:
2968 2013-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2970 [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
2971 https://bugs.webkit.org/show_bug.cgi?id=108607
2973 Reviewed by Anders Carlsson.
2975 * Platform/gtk/WorkQueueGtk.cpp:
2976 (WorkQueue::EventSource::executeEventSource): Remove the is valid
2978 (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
2979 reference when a new job is scheduled and unref it when it
2982 2013-02-01 Sheriff Bot <webkit.review.bot@gmail.com>
2984 Unreviewed, rolling out r141319.
2985 http://trac.webkit.org/changeset/141319
2986 https://bugs.webkit.org/show_bug.cgi?id=108629
2988 This patch is causing the UIProcess to hang on GTK port when
2989 loading plugins (Requested by chris-qBT_laptop on #webkit).
2991 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2992 (WebKit::PluginProcessProxy::scanPlugin):
2994 2013-02-01 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2996 [EFL][WK2] EwkContext should be based on C WK2 API
2997 https://bugs.webkit.org/show_bug.cgi?id=107666
2999 Reviewed by Andreas Kling.
3001 EwkContext should be based on C WK2 API so that API layering is not violated.
3003 * UIProcess/API/efl/EwkView.cpp:
3005 * UIProcess/API/efl/ewk_context.cpp:
3006 (EwkContext::EwkContext):
3007 (EwkContext::create):
3008 (EwkContext::cookieManager):
3009 (EwkContext::ensureFaviconDatabase):
3010 (EwkContext::setFaviconDatabaseDirectoryPath):
3011 (EwkContext::addVisitedLink):
3012 (EwkContext::setCacheModel):
3013 (EwkContext::cacheModel):
3014 (EwkContext::setAdditionalPluginPath):
3015 (EwkContext::clearResourceCache):
3016 * UIProcess/API/efl/ewk_context_private.h:
3018 * UIProcess/API/efl/ewk_view.cpp:
3019 (ewk_view_base_add):
3021 2013-02-01 Christophe Dumez <christophe.dumez@intel.com>
3023 [EFL][WK2] Use C API inside ewk_auth_request
3024 https://bugs.webkit.org/show_bug.cgi?id=107806
3026 Reviewed by Andreas Kling.
3028 Use C API inside ewk_auth_request instead of accessing C++ internal
3029 classes directly, to avoid violating layering.
3031 * UIProcess/API/efl/ewk_auth_request.cpp:
3032 (EwkAuthRequest::EwkAuthRequest):
3033 (EwkAuthRequest::suggestedUsername):
3034 (EwkAuthRequest::realm):
3035 (EwkAuthRequest::host):
3036 (EwkAuthRequest::continueWithoutCredential):
3037 (EwkAuthRequest::authenticate):
3038 (EwkAuthRequest::isRetrying):
3039 (ewk_auth_request_authenticate):
3040 * UIProcess/API/efl/ewk_auth_request_private.h:
3041 (EwkAuthRequest::create):
3043 * UIProcess/efl/PageLoadClientEfl.cpp:
3044 (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
3046 2013-02-01 Seulgi Kim <seulgikim@company100.net>
3048 [Gtk][WK2] Fix build after recent WebKit2 changes
3049 https://bugs.webkit.org/show_bug.cgi?id=108588
3051 Reviewed by Andreas Kling.
3053 Don't remove WorkQueue during execution.
3054 Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
3056 * Platform/gtk/WorkQueueGtk.cpp:
3057 (WorkQueue::EventSource::~EventSource):
3058 (WorkQueue::EventSource::executeEventSource):
3059 (WorkQueue::dispatch):
3060 (WorkQueue::dispatchAfterDelay):
3061 (WorkQueue::dispatchOnTermination):
3063 2013-02-01 Alexis Menard <alexis@webkit.org>
3065 Enable unprefixed CSS transitions by default.
3066 https://bugs.webkit.org/show_bug.cgi?id=108216
3068 Reviewed by Dean Jackson.
3070 Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
3071 to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
3072 guard the unprefixing work for CSS Transforms and animations.
3074 * Configurations/FeatureDefines.xcconfig:
3076 2013-02-01 Jae Hyun Park <jae.park@company100.net>
3078 Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
3079 https://bugs.webkit.org/show_bug.cgi?id=108590
3081 Reviewed by Noam Rosenthal.
3083 Sort class declarations in alphabetical order.
3085 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
3088 2013-02-01 Gwang Yoon Hwang <ryumiel@company100.net>
3090 [EFL][WK2] MiniBrowser segfaults on loading google.com
3091 https://bugs.webkit.org/show_bug.cgi?id=108597
3093 Reviewed by Andreas Kling.
3095 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
3096 (CoreIPC::Connection::processMessage):
3097 oolMessageBody should be properly initialized before it is used.
3099 This patch also adds omitted break statement.
3101 2013-01-31 Jae Hyun Park <jae.park@company100.net>
3103 [Qt] Add MessageFlags.h in Target.pri
3104 https://bugs.webkit.org/show_bug.cgi?id=108583
3106 Reviewed by Kentaro Hara.
3108 Since MessageDecoder and MessageEncoder include MessageFlags.h, it
3109 should be included in Target.pri.
3113 2013-01-31 Jae Hyun Park <jae.park@company100.net>
3115 Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
3116 https://bugs.webkit.org/show_bug.cgi?id=108149
3118 Reviewed by Noam Rosenthal.
3120 This patch moves Coordinated Graphics related code to WebCore. To
3121 implement Threaded Coordinated Graphics, most of Coordianted Graphics
3122 code should be shared. Therefore, they should reside in WebCore instead of
3125 When moving to WebCore, two renamings have been done.
3127 1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
3129 2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
3130 CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
3133 No new tests, covered by existing tests.
3136 * Scripts/webkit2/messages.py:
3137 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3138 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
3139 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
3141 * UIProcess/API/efl/EwkView.cpp:
3142 * UIProcess/API/efl/EwkView.h:
3143 * UIProcess/API/qt/qquickwebpage.cpp:
3144 * UIProcess/API/qt/raw/qrawwebview.cpp:
3145 * UIProcess/API/qt/raw/qrawwebview_p.h:
3146 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3147 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3148 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
3149 * UIProcess/efl/PageClientBase.cpp:
3150 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
3151 * UIProcess/qt/QtWebPageSGNode.cpp:
3152 * UIProcess/qt/QtWebPageSGNode.h:
3153 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3154 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3156 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
3158 [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
3159 https://bugs.webkit.org/show_bug.cgi?id=108548
3161 Reviewed by Anders Carlsson.
3163 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
3164 (CoreIPC::Connection::platformInvalidate):
3165 (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
3166 logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
3167 (CoreIPC::Connection::open):
3168 (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
3169 * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
3170 count when the execution is started and decrease it when the work item is deleted,
3171 following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
3172 (WorkQueue::WorkItemQt::~WorkItemQt):
3173 (WorkQueue::WorkItemQt::execute):
3174 (WorkQueue::dispatch):
3175 (WorkQueue::dispatchAfterDelay):
3176 * UIProcess/WebPageProxy.cpp:
3177 (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
3178 mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
3180 2013-01-31 Changhun Kang <temoochin@company100.net>
3182 Rename from parentOrHost* to parentOrShadowHost* in Node.h.
3183 https://bugs.webkit.org/show_bug.cgi?id=108308
3185 Reviewed by Dimitri Glazkov.
3187 2013-01-31 Anders Carlsson <andersca@apple.com>
3189 StorageManager should be ref-counted
3190 https://bugs.webkit.org/show_bug.cgi?id=108553
3192 Reviewed by Beth Dakin.
3194 It's likely we'd want to have the storage manager outlive its context at times, so make it
3197 * UIProcess/Storage/StorageManager.cpp:
3198 (WebKit::StorageManager::create):
3200 * UIProcess/Storage/StorageManager.h:
3202 * UIProcess/WebContext.cpp:
3203 (WebKit::WebContext::WebContext):
3204 * UIProcess/WebContext.h:
3207 2013-01-31 Anders Carlsson <andersca@apple.com>
3209 WorkQueue should be a ref-counted class
3210 https://bugs.webkit.org/show_bug.cgi?id=108544
3212 Reviewed by Sam Weinig.
3214 Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
3215 implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
3216 and ensures that the WorkQueue object won't go away while dispatched functions are running.
3218 * Platform/CoreIPC/Connection.cpp:
3219 (CoreIPC::Connection::Connection):
3220 (CoreIPC::Connection::~Connection):
3221 (CoreIPC::Connection::addQueueClient):
3222 (CoreIPC::Connection::removeQueueClient):
3223 (CoreIPC::Connection::invalidate):
3224 (CoreIPC::Connection::sendMessage):
3225 (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
3226 (CoreIPC::Connection::connectionDidClose):
3227 * Platform/CoreIPC/Connection.h:
3229 * Platform/CoreIPC/mac/ConnectionMac.cpp:
3230 (CoreIPC::createDataAvailableSource):
3231 (CoreIPC::Connection::open):
3232 (CoreIPC::Connection::initializeDeadNameSource):
3233 * Platform/WorkQueue.cpp:
3234 (WorkQueue::create):
3235 (WorkQueue::WorkQueue):
3236 (WorkQueue::~WorkQueue):
3237 * Platform/WorkQueue.h:
3239 * Platform/mac/WorkQueueMac.cpp:
3240 (WorkQueue::dispatch):
3241 (WorkQueue::dispatchAfterDelay):
3242 * Shared/ChildProcess.cpp:
3243 (WebKit::didCloseOnConnectionWorkQueue):
3244 * UIProcess/Launcher/ProcessLauncher.cpp:
3245 (WebKit::processLauncherWorkQueue):
3246 (WebKit::ProcessLauncher::ProcessLauncher):
3247 * UIProcess/WebProcessProxy.cpp:
3248 (WebKit::pluginWorkQueue):
3249 (WebKit::WebProcessProxy::getPlugins):
3251 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
3253 [Qt][WK2] Fix build after removal of MessageID.h
3254 https://bugs.webkit.org/show_bug.cgi?id=108534
3256 Reviewed by Anders Carlsson.
3258 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
3259 (CoreIPC::MessageInfo::MessageInfo):
3260 (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
3261 (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
3263 (CoreIPC::Connection::processMessage):
3264 (CoreIPC::Connection::sendOutgoingMessage):
3266 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3267 * UIProcess/DrawingAreaProxy.cpp:
3268 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3269 * WebProcess/soup/WebSoupRequestManager.cpp:
3271 2013-01-31 Brady Eidson <beidson@apple.com>
3273 Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
3274 <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
3276 Reviewed by Alexey Proskuryakov.
3278 * WebProcess/Network/WebResourceLoadScheduler.cpp:
3279 (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
3280 NetworkProcess, still add this ResourceLoader to the scheduler's records.
3282 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3284 Unreviewed trivial Unix build fix.
3286 Use Vector<> instead of Deque<> when iterating
3287 over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
3290 * Platform/CoreIPC/ArgumentDecoder.cpp:
3292 2013-01-30 Brian Weinstein <bweinstein@apple.com>
3294 Add a call to the page UI client to determine if a plug-in should load
3295 https://bugs.webkit.org/show_bug.cgi?id=108407
3296 <rdar://problem/13066332>
3298 Reviewed by Anders Carlsson.
3300 This patch adds a client call to the WKPageUIClient to be called to determine
3301 whether or not a plug-in should load.
3303 * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
3304 * UIProcess/WebPageProxy.cpp:
3305 (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
3306 m_uiClient.shouldInstantiatePlugin.
3307 * UIProcess/WebPageProxy.h:
3308 * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
3309 * UIProcess/WebProcessProxy.cpp:
3310 (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
3311 * UIProcess/WebProcessProxy.h:
3312 * UIProcess/WebUIClient.cpp:
3313 (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
3314 the client function isn't defined, and call the function if it is.
3315 * UIProcess/WebUIClient.h:
3316 * UIProcess/mac/WebInspectorProxyMac.mm:
3317 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
3319 * WebProcess/WebPage/WebPage.cpp:
3320 (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
3321 (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
3322 send the message to the WebPageProxy, not the WebProcessProxy.
3323 * WebProcess/WebPage/WebPage.h:
3325 2013-01-31 Anders Carlsson <andersca@apple.com>
3327 Use a Vector for IPC attachments
3328 https://bugs.webkit.org/show_bug.cgi?id=108517
3330 Reviewed by Sam Weinig.
3332 We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
3334 * Platform/CoreIPC/ArgumentDecoder.cpp:
3335 (CoreIPC::ArgumentDecoder::create):
3336 (CoreIPC::ArgumentDecoder::ArgumentDecoder):
3337 (CoreIPC::ArgumentDecoder::removeAttachment):
3338 * Platform/CoreIPC/ArgumentDecoder.h:
3340 * Platform/CoreIPC/Connection.h:
3341 * Platform/CoreIPC/MessageDecoder.cpp:
3342 (CoreIPC::MessageDecoder::create):
3343 (CoreIPC::MessageDecoder::MessageDecoder):
3344 * Platform/CoreIPC/MessageDecoder.h:
3346 * Platform/CoreIPC/mac/ConnectionMac.cpp:
3347 (CoreIPC::createMessageDecoder):
3349 2013-01-31 Joseph Pecoraro <pecoraro@apple.com>
3351 Disable ENABLE_FULLSCREEN_API on iOS
3352 https://bugs.webkit.org/show_bug.cgi?id=108250
3354 Reviewed by Benjamin Poulain.
3356 * Configurations/FeatureDefines.xcconfig:
3358 2013-01-31 Enrica Casucci <enrica@apple.com>
3360 WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
3361 https://bugs.webkit.org/show_bug.cgi?id=108396.
3362 <rdar://problem/12920461>
3364 Reviewed by Alexey Proskuryakov.
3366 This patch adds new bundle client API to receive notifications
3367 relative the pasteboard activity. There are 2 new API added to
3368 InjectedBundleEditorClient, to receive notification before and
3369 after the pasteboard content is added and one API to provide
3370 additional content to add to the pasteboard.
3371 In order to create content to add to the pasteboard, WKWebArchiveRef
3372 and WKWebArchiveResourcesRef have been added to the set of API level
3374 This work is a joint effort with Sam Weinig who contributed the
3375 support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
3376 files. Sam is the author of the first chunk of changes listed below.
3378 * Shared/API/c/WKBase.h:
3379 * Shared/API/c/WKSharedAPICast.h:
3380 * Shared/API/c/mac/WKWebArchive.cpp: Added.
3381 (WKWebArchiveGetTypeID):
3382 (WKWebArchiveCreate):
3383 (WKWebArchiveCreateWithData):
3384 (WKWebArchiveCreateFromRange):
3385 (WKWebArchiveCopyMainResource):
3386 (WKWebArchiveCopySubresources):
3387 (WKWebArchiveCopySubframeArchives):
3388 (WKWebArchiveCopyData):
3389 * Shared/API/c/mac/WKWebArchive.h: Added.
3390 * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
3391 (WKWebArchiveResourceGetTypeID):
3392 (WKWebArchiveResourceCreate):
3393 (WKWebArchiveResourceCopyData):
3394 (WKWebArchiveResourceCopyURL):
3395 (WKWebArchiveResourceCopyMIMEType):
3396 (WKWebArchiveResourceCopyTextEncoding):
3397 * Shared/API/c/mac/WKWebArchiveResource.h: Added.
3398 * Shared/APIObject.h:
3399 * Shared/WebArchive.cpp: Added.
3400 (WebKit::WebArchive::create):
3401 (WebKit::WebArchive::WebArchive):
3402 (WebKit::WebArchive::~WebArchive):
3403 (WebKit::WebArchive::mainResource):
3404 (WebKit::WebArchive::subresources):
3405 (WebKit::WebArchive::subframeArchives):
3406 (WebKit::releaseCFData):
3407 (WebKit::WebArchive::data):
3408 (WebKit::WebArchive::coreLegacyWebArchive):
3409 * Shared/WebArchive.h: Added.
3410 (WebKit::WebArchive::type):
3411 * Shared/WebArchiveResource.cpp: Added.
3412 (WebKit::WebArchiveResource::create):
3413 (WebKit::WebArchiveResource::WebArchiveResource):
3414 (WebKit::WebArchiveResource::~WebArchiveResource):
3415 (WebKit::releaseCFData):
3416 (WebKit::WebArchiveResource::data):
3417 (WebKit::WebArchiveResource::URL):
3418 (WebKit::WebArchiveResource::MIMEType):
3419 (WebKit::WebArchiveResource::textEncoding):
3420 (WebKit::WebArchiveResource::coreArchiveResource):
3421 * Shared/WebArchiveResource.h: Added.
3422 (WebKit::WebArchiveResource::type):
3423 * WebKit2.xcodeproj/project.pbxproj:
3425 * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
3426 * Shared/APIClientTraits.h:
3427 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
3428 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
3429 (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
3430 (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
3431 (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
3432 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
3433 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3434 (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
3435 (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
3436 (WebKit::WebEditorClient::getClientPasteboardDataForRange):
3437 * WebProcess/WebCoreSupport/WebEditorClient.h:
3439 2013-01-31 Anders Carlsson <andersca@apple.com>
3442 https://bugs.webkit.org/show_bug.cgi?id=108516
3444 Reviewed by Sam Weinig.
3446 * Platform/CoreIPC/Connection.cpp:
3447 (CoreIPC::Connection::processIncomingMessage):
3448 (CoreIPC::Connection::sendOutgoingMessages):
3449 (CoreIPC::Connection::dispatchSyncMessage):
3450 (CoreIPC::Connection::dispatchMessage):
3451 * Platform/CoreIPC/Connection.h:
3454 * Platform/CoreIPC/MessageID.h: Removed.
3455 * Platform/CoreIPC/mac/ConnectionMac.cpp:
3456 (CoreIPC::Connection::sendOutgoingMessage):
3457 (CoreIPC::Connection::receiveSourceEventHandler):
3458 * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
3459 * Shared/CoreIPCSupport/WebContextMessageKinds.h:
3460 * UIProcess/DrawingAreaProxy.h:
3462 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3463 * UIProcess/WebApplicationCacheManagerProxy.h:
3464 * UIProcess/WebContext.cpp:
3465 (WebKit::WebContext::WebContext):
3466 (WebKit::WebContext::didReceiveMessage):
3467 (WebKit::WebContext::didReceiveSyncMessage):
3468 * UIProcess/WebCookieManagerProxy.h:
3469 * UIProcess/WebFrameProxy.h:
3471 * UIProcess/WebFullScreenManagerProxy.h:
3473 * UIProcess/WebIconDatabase.h:
3475 * UIProcess/WebPageProxy.cpp:
3476 * UIProcess/WebPageProxy.h:
3478 * WebKit2.xcodeproj/project.pbxproj:
3479 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3480 * WebProcess/FullScreen/WebFullScreenManager.h:
3482 * WebProcess/InjectedBundle/InjectedBundle.cpp:
3483 (WebKit::InjectedBundle::postMessage):
3484 (WebKit::InjectedBundle::postSynchronousMessage):
3485 * WebProcess/InjectedBundle/InjectedBundle.h:
3487 * WebProcess/WebPage/DrawingArea.h:
3489 * WebProcess/WebPage/LayerTreeHost.h:
3491 * WebProcess/WebPage/WebPage.cpp:
3492 * WebProcess/WebPage/WebPage.h:
3494 * WebProcess/WebPage/WebPageGroupProxy.h:
3497 2013-01-31 Mike West <mkwst@chromium.org>
3499 Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
3500 https://bugs.webkit.org/show_bug.cgi?id=108476
3502 Reviewed by Anders Carlsson.
3504 * WebProcess/Plugins/PluginView.cpp:
3505 (WebKit::PluginView::storageBlockingStateChanged):
3506 (WebKit::PluginView::isPrivateBrowsingEnabled):
3508 2013-01-31 Anders Carlsson <andersca@apple.com>
3510 Get rid of IncomingMessage
3511 https://bugs.webkit.org/show_bug.cgi?id=108514
3513 Reviewed by Sam Weinig.
3515 * Platform/CoreIPC/Connection.cpp:
3516 (Connection::SyncMessageState):
3517 (ConnectionAndIncomingMessage):
3518 (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
3519 (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
3520 (CoreIPC::Connection::SyncMessageState::dispatchMessages):
3521 (CoreIPC::Connection::waitForMessage):
3522 (CoreIPC::Connection::processIncomingMessage):
3523 (CoreIPC::Connection::enqueueIncomingMessage):
3524 (CoreIPC::Connection::dispatchMessage):
3525 (CoreIPC::Connection::dispatchOneMessage):
3526 * Platform/CoreIPC/Connection.h:
3529 2013-01-31 Patrick Gansterer <paroga@webkit.org>
3531 Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
3532 https://bugs.webkit.org/show_bug.cgi?id=108439
3534 Reviewed by Brent Fulgham.
3536 PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
3538 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
3540 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3542 Unreviewed build fix: Remove Web Intents files from
3543 the Qt build system.