1 2013-02-07 KwangYong Choi <ky0.choi@samsung.com>
3 Fix build warning after r142017
4 https://bugs.webkit.org/show_bug.cgi?id=109119
6 Reviewed by Alexey Proskuryakov.
8 Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
10 * UIProcess/WebPageProxy.cpp:
11 (WebKit::WebPageProxy::getPluginPath):
13 2013-02-07 Martin Robinson <mrobinson@igalia.com>
15 [GTK] Cleanup command-line defines
16 https://bugs.webkit.org/show_bug.cgi?id=109213
18 Reviewed by Xan Lopez.
20 * GNUmakefile.am: Remove references to flags that are now
21 provided by autotoolsconfig.h.
23 2013-02-07 Benjamin Poulain <bpoulain@apple.com>
25 Move pauseAnimation/pauseTransition from TestRunner to Internals
26 https://bugs.webkit.org/show_bug.cgi?id=109107
28 Reviewed by Anders Carlsson.
30 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
31 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
32 * WebProcess/WebPage/WebFrame.cpp:
33 * WebProcess/WebPage/WebFrame.h:
36 2013-02-07 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
38 [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
39 https://bugs.webkit.org/show_bug.cgi?id=109165
41 Reviewed by Anders Carlsson.
43 Removed non coordinated graphics code path from WK2 EFL as it was not used by
44 anyone and caused a lot of preprocessor macros in the code making it less readable.
46 * UIProcess/API/efl/EvasGLContext.cpp:
47 * UIProcess/API/efl/EvasGLContext.h:
48 (WebKit::EvasGLContext::context):
49 * UIProcess/API/efl/EvasGLSurface.cpp:
50 * UIProcess/API/efl/EvasGLSurface.h:
51 (WebKit::EvasGLSurface::surface):
53 Removed also 'inline' and 'const' keywords from functions declaration,
54 as both EvasGLContext::context() and EvasGLSurface::surface()
55 are defined inside their classes and return mutable pointer.
57 * UIProcess/API/efl/EwkView.cpp:
59 (EwkView::transformFromScene):
60 (EwkView::transformToScreen):
61 (EwkView::coordinatedGraphicsScene):
62 (EwkView::displayTimerFired):
63 (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
64 (EwkView::exitAcceleratedCompositingMode):
65 (EwkView::handleEvasObjectCalculate):
66 (EwkView::takeSnapshot):
67 * UIProcess/API/efl/EwkView.h:
70 * UIProcess/API/efl/SnapshotImageGL.cpp:
71 (getImageSurfaceFromFrameBuffer):
72 * UIProcess/API/efl/SnapshotImageGL.h:
73 * UIProcess/API/efl/ewk_view.cpp:
74 * UIProcess/efl/PageClientBase.cpp:
75 (WebKit::PageClientBase::setViewNeedsDisplay):
76 (WebKit::PageClientBase::updateAcceleratedCompositingMode):
77 * UIProcess/efl/PageClientBase.h:
79 * UIProcess/efl/PageClientDefaultImpl.cpp:
80 (WebKit::PageClientDefaultImpl::didCommitLoad):
81 (WebKit::PageClientDefaultImpl::updateViewportSize):
82 (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
83 (WebKit::PageClientDefaultImpl::didChangeContentsSize):
84 (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
85 * UIProcess/efl/PageClientDefaultImpl.h:
86 (PageClientDefaultImpl):
87 * UIProcess/efl/PageClientLegacyImpl.cpp:
88 (WebKit::PageClientLegacyImpl::didCommitLoad):
89 (WebKit::PageClientLegacyImpl::updateViewportSize):
90 (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
91 (WebKit::PageClientLegacyImpl::didChangeContentsSize):
92 (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
93 (WebKit::PageClientLegacyImpl::didRenderFrame):
94 (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
95 * UIProcess/efl/PageClientLegacyImpl.h:
96 (PageClientLegacyImpl):
97 * UIProcess/efl/PageLoadClientEfl.cpp:
98 (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
99 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
100 * UIProcess/efl/PageLoadClientEfl.h:
102 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
103 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
104 (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
105 * UIProcess/efl/PageViewportControllerClientEfl.h:
106 * UIProcess/efl/WebInspectorProxyEfl.cpp:
107 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
108 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
109 (WebKit::WebChromeClient::contentsSizeChanged):
111 2013-02-06 Sam Weinig <sam@webkit.org>
113 Make WebPageProxy and sub-objects MessageReceivers
114 https://bugs.webkit.org/show_bug.cgi?id=108785
116 Reviewed by Anders Carlsson.
118 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
119 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
120 (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
121 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
122 (CoordinatedLayerTreeHostProxy):
123 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
124 * UIProcess/DrawingAreaProxy.cpp:
125 (WebKit::DrawingAreaProxy::DrawingAreaProxy):
126 (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
127 (WebKit::DrawingAreaProxy::contentsRect):
128 * UIProcess/DrawingAreaProxy.h:
129 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
130 * UIProcess/DrawingAreaProxy.messages.in:
131 * UIProcess/DrawingAreaProxyImpl.cpp:
132 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
133 * UIProcess/DrawingAreaProxyImpl.h:
134 * UIProcess/WebFullScreenManagerProxy.cpp:
135 (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
136 * UIProcess/WebFullScreenManagerProxy.h:
137 (WebFullScreenManagerProxy):
138 * UIProcess/WebFullScreenManagerProxy.messages.in:
139 * UIProcess/WebInspectorProxy.cpp:
140 (WebKit::WebInspectorProxy::WebInspectorProxy):
141 (WebKit::WebInspectorProxy::invalidate):
142 * UIProcess/WebInspectorProxy.h:
143 * UIProcess/WebInspectorProxy.messages.in:
144 * UIProcess/WebPageProxy.cpp:
145 (WebKit::WebPageProxy::WebPageProxy):
146 (WebKit::WebPageProxy::reattachToWebProcess):
147 (WebKit::WebPageProxy::close):
148 (WebKit::WebPageProxy::inspector):
149 (WebKit::WebPageProxy::fullScreenManager):
150 (WebKit::WebPageProxy::processDidCrash):
151 * UIProcess/WebPageProxy.h:
152 * UIProcess/WebPageProxy.messages.in:
153 * UIProcess/WebProcessProxy.cpp:
154 (WebKit::WebProcessProxy::didReceiveMessage):
155 (WebKit::WebProcessProxy::didReceiveSyncMessage):
156 * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
157 (WebKit::WebFullScreenManagerProxy::invalidate):
159 2013-02-07 Zan Dobersek <zdobersek@igalia.com>
161 [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
162 https://bugs.webkit.org/show_bug.cgi?id=109198
164 Reviewed by Martin Robinson.
166 * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
169 2013-02-07 Kenneth Rohde Christiansen <kenneth@webkit.org>
171 [WK2][EFL] Add WKView methods related to background drawing
172 https://bugs.webkit.org/show_bug.cgi?id=109159
174 Reviewed by Anders Carlsson.
176 * UIProcess/API/C/efl/WKView.cpp:
177 (WKViewSetDrawsBackground):
178 (WKViewGetDrawsBackground):
179 (WKViewSetDrawsTransparentBackground):
180 (WKViewGetDrawsTransparentBackground):
181 * UIProcess/efl/WebView.cpp:
182 (WebKit::WebView::setDrawsBackground):
184 (WebKit::WebView::drawsBackground):
185 (WebKit::WebView::setDrawsTransparentBackground):
186 (WebKit::WebView::drawsTransparentBackground):
187 * UIProcess/efl/WebView.h:
189 * UIProcess/API/C/efl/WKView.h:
193 * UIProcess/API/efl/EwkView.cpp:
195 (EwkView::displayTimerFired):
196 (EwkView::handleEvasObjectColorSet):
197 * UIProcess/API/efl/EwkView.h:
199 * UIProcess/API/efl/ewk_view.cpp:
200 (ewk_view_draws_page_background_set):
202 Remove the unneeded m_setDrawsBackground and replace
203 it with the WKView setting.
205 2013-02-07 Christophe Dumez <dchris@gmail.com>
207 [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
208 https://bugs.webkit.org/show_bug.cgi?id=108634
210 Reviewed by Alexey Proskuryakov.
212 Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
213 so that the test passes consistently. The issue was that the header before the
214 data includes the current date. Depending on the date, the data may start at a
215 different index in the returned string. Instead of hardcoding the data start
216 index in the test, we now use String::contains().
218 * UIProcess/API/efl/tests/test_ewk2_view.cpp:
219 (PageContentsCallback):
222 2013-02-07 Gavin Peters <gavinp@chromium.org>
224 Unreviewed, rolling out r142141.
225 http://trac.webkit.org/changeset/142141
226 https://bugs.webkit.org/show_bug.cgi?id=108990
228 Reland r142112, will update Chromium expectations and create a
229 Chromium bug instead for the crash.
231 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
232 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
233 * WebProcess/WebPage/DrawingAreaImpl.cpp:
234 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
236 2013-02-07 Gavin Peters <gavinp@chromium.org>
238 Unreviewed, rolling out r142112.
239 http://trac.webkit.org/changeset/142112
240 https://bugs.webkit.org/show_bug.cgi?id=108990
242 The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
244 See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
246 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
247 (WebKit::updateOffsetFromViewportForSelf):
249 (WebKit::updateOffsetFromViewportForLayer):
250 (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
251 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
252 * WebProcess/WebPage/DrawingAreaImpl.cpp:
253 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
255 2013-02-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
257 [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
258 https://bugs.webkit.org/show_bug.cgi?id=108990
260 Reviewed by Noam Rosenthal.
261 Signed off for WebKit2 by Simon Fraser.
263 WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
264 don't need to traverse the tree every frame to get this information.
266 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
267 syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
268 and are not needed anymore.
269 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
270 * WebProcess/WebPage/DrawingAreaImpl.cpp:
271 (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
272 Coordinated Graphics.
274 2013-02-07 Michael Brüning <michael.bruning@digia.com>
276 [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
277 https://bugs.webkit.org/show_bug.cgi?id=108473
279 Reviewed by Simon Hausmann.
280 Signed off for WebKit2 by Benjamin Poulain.
282 This patch removes the QtWebPageLoadClient and moves the functionality into the
283 QQuickWebViewPrivate as most callback methods are calling the private webview
286 The patch also moves as much of the functionality to the C API as is possible with
290 * UIProcess/API/qt/qquickwebview.cpp:
291 (QQuickWebViewPrivate::initialize):
292 (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
293 (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
294 (QQuickWebViewPrivate::didFailLoad):
295 (QQuickWebViewPrivate::didCommitLoadForFrame):
296 (QQuickWebViewPrivate::didFinishLoadForFrame):
297 (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
298 (QQuickWebViewPrivate::didReceiveTitleForFrame):
299 (QQuickWebViewPrivate::didStartProgress):
300 (QQuickWebViewPrivate::didChangeProgress):
301 (QQuickWebViewPrivate::didFinishProgress):
302 (QQuickWebViewPrivate::didChangeBackForwardList):
303 (QQuickWebViewPrivate::setTransparentBackground):
304 (QQuickWebViewPrivate::transparentBackground):
305 (QQuickWebViewPrivate::loadProgressDidChange):
306 * UIProcess/API/qt/qquickwebview_p.h:
308 * UIProcess/API/qt/qquickwebview_p_p.h:
310 (QQuickWebViewPrivate):
311 * UIProcess/qt/QtWebError.cpp:
312 (WebKit::QtWebError::url):
313 * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
314 * UIProcess/qt/QtWebPageLoadClient.h: Removed.
316 2013-02-05 Eunmi Lee <eunmi15.lee@samsung.com> and Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
318 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
319 https://bugs.webkit.org/show_bug.cgi?id=97173
321 Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
323 Initialize and shutdown the EFL libraries in the ewk_main.cpp for
324 UIProcess and WebProcessMainEfl.cpp for WebProcess.
326 This allows us to shut down the libraries in a proper way, since
327 RunLoop persist until the process exits.
329 * UIProcess/API/efl/ewk_main.cpp:
332 * WebProcess/efl/WebProcessMainEfl.cpp:
333 (WebKit::WebProcessMainEfl):
335 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
337 Unreviewed build fix.
339 * UIProcess/Downloads/DownloadProxyMap.cpp:
340 (WebKit::DownloadProxyMap::processDidClose):
341 m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
343 2013-02-07 Simon Hausmann <simon.hausmann@digia.com>
345 [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
346 https://bugs.webkit.org/show_bug.cgi?id=108920
348 Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
350 Employ the pattern suggested by Jocelyn to simply implement the C
351 callbacks directly using static functions.
354 * UIProcess/API/qt/qquickwebview.cpp:
355 (toQQuickWebViewPrivate):
356 (QQuickWebViewPrivate::initialize):
357 (QQuickWebViewPrivate::didFindString):
358 (QQuickWebViewPrivate::didFailToFindString):
359 * UIProcess/API/qt/qquickwebview_p_p.h:
360 (QQuickWebViewPrivate):
361 * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
362 * UIProcess/qt/QtWebPageFindClient.h: Removed.
364 2013-02-03 Sam Weinig <sam@webkit.org>
366 Make CustomProtocolManagerProxy a MessageReceiver
367 https://bugs.webkit.org/show_bug.cgi?id=108787
369 Reviewed by Anders Carlsson.
371 * Shared/ChildProcessProxy.cpp:
372 (WebKit::ChildProcessProxy::addMessageReceiver):
373 (WebKit::ChildProcessProxy::removeMessageReceiver):
374 (WebKit::ChildProcessProxy::dispatchMessage):
375 (WebKit::ChildProcessProxy::dispatchSyncMessage):
376 * Shared/ChildProcessProxy.h:
377 Sink the MessageReceiverMap down into the ChildProcessProxy.
379 * UIProcess/Downloads/DownloadProxyMap.cpp:
380 (WebKit::DownloadProxyMap::DownloadProxyMap):
381 (WebKit::DownloadProxyMap::createDownloadProxy):
382 (WebKit::DownloadProxyMap::downloadFinished):
383 (WebKit::DownloadProxyMap::processDidClose):
384 * UIProcess/Downloads/DownloadProxyMap.h:
385 Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
387 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
388 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
389 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
390 (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
391 Convert to a MessageReceiver.
393 * UIProcess/Network/NetworkProcessProxy.cpp:
394 (WebKit::NetworkProcessProxy::createDownloadProxy):
395 (WebKit::NetworkProcessProxy::didReceiveMessage):
396 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
397 * UIProcess/Network/NetworkProcessProxy.h:
398 * UIProcess/WebProcessProxy.cpp:
399 (WebKit::WebProcessProxy::didReceiveMessage):
400 (WebKit::WebProcessProxy::didReceiveSyncMessage):
401 (WebKit::WebProcessProxy::createDownloadProxy):
402 * UIProcess/WebProcessProxy.h:
404 Remove direct chaining to CustomProtocolManagerProxy.
406 2013-02-06 Enrica Casucci <enrica@apple.com>
408 ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
409 https://bugs.webkit.org/show_bug.cgi?id=109105.
411 Reviewed by Tim Horton.
413 In r140769 we changed the way the overlay is destroyed,
414 therefore the assert is no longer valid and should be removed.
416 * WebProcess/WebPage/FindController.cpp:
417 (WebKit::FindController::updateFindUIAfterPageScroll):
419 2013-02-06 Anders Carlsson <andersca@apple.com>
421 Dispatch storage manager messages to the storage work queue
422 https://bugs.webkit.org/show_bug.cgi?id=109099
424 Reviewed by Andreas Kling.
426 * UIProcess/Storage/StorageManager.cpp:
427 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
428 (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
430 * UIProcess/Storage/StorageManager.h:
433 2013-02-06 Anders Carlsson <andersca@apple.com>
435 Pass the document source URL to the pluginLoadPolicy callback
436 https://bugs.webkit.org/show_bug.cgi?id=109084
437 <rdar://problem/13154516>
439 Reviewed by Andreas Kling.
441 * UIProcess/API/C/WKPage.h:
442 * UIProcess/WebPageProxy.cpp:
443 (WebKit::WebPageProxy::getPluginPath):
444 * UIProcess/WebPageProxy.h:
446 * UIProcess/WebPageProxy.messages.in:
447 * UIProcess/WebUIClient.cpp:
448 (WebKit::WebUIClient::pluginLoadPolicy):
449 * UIProcess/WebUIClient.h:
451 * WebProcess/WebPage/WebPage.cpp:
452 (WebKit::WebPage::createPlugin):
453 (WebKit::WebPage::canPluginHandleResponse):
455 2013-02-06 Alexey Proskuryakov <ap@apple.com>
457 Get rid of unneeded writeable preferences.
459 Reviewed by Anders Carlsson.
461 com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
462 early in WebKit2 development, before we moved a lot of functionality to UI process.
463 They don't appear to be needed any more.
465 Note that we do not even need to allow reading for com.apple.WebProcess.plist -
466 it's read at process initialization before we enter the sandbox, and services
467 have a different plist anyway.
469 * WebProcess/com.apple.WebProcess.sb.in:
471 2013-02-06 Sudarsana Nagineni <sudarsana.nagineni@intel.com>
473 [EFL][WK2] Assertion failure on MiniBrowser exit
474 https://bugs.webkit.org/show_bug.cgi?id=108932
476 Reviewed by Anders Carlsson.
478 WorkQueue is now refcounted after r141497, so increase ref
479 count when a new job is scheduled and unref it when it finishes.
481 * Platform/efl/WorkQueueEfl.cpp:
482 (WorkQueue::performWork):
483 (WorkQueue::performTimerWork):
484 (WorkQueue::dispatch):
485 (WorkQueue::dispatchAfterDelay):
487 2013-02-06 Simon Hausmann <simon.hausmann@digia.com>, Zoltan Arvai <zarvai@inf.u-szeged.hu>
489 [WK2][Win] Fix build after MessageID.h related changes and after r141619.
490 https://bugs.webkit.org/show_bug.cgi?id=108612
492 Reviewed by Anders Carlsson.
494 * Platform/CoreIPC/win/ConnectionWin.cpp:
495 (CoreIPC::Connection::platformInvalidate):
496 (CoreIPC::Connection::readEventHandler):
497 (CoreIPC::Connection::open):
498 (CoreIPC::Connection::sendOutgoingMessage):
499 * Platform/WorkQueue.h:
500 (WorkQueue::WorkItemWin::queue):
502 * Platform/win/SharedMemoryWin.cpp:
503 (WebKit::SharedMemory::Handle::decode):
504 * Platform/win/WorkQueueWin.cpp:
505 (WorkQueue::handleCallback):
506 (WorkQueue::performWorkOnRegisteredWorkThread):
508 2013-02-06 Mike West <mkwst@chromium.org>
510 Add an ENABLE_NOSNIFF feature flag.
511 https://bugs.webkit.org/show_bug.cgi?id=109029
513 Reviewed by Jochen Eisinger.
515 This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
516 when processing script and other resource types.
518 * Configurations/FeatureDefines.xcconfig:
520 2013-02-06 Marja Hölttä <marja@chromium.org>
522 Take referrer policy into account when clearing the referrer header
523 https://bugs.webkit.org/show_bug.cgi?id=86000
525 Reviewed by Alexey Proskuryakov.
527 The referrer should only be cleared when doing a https -> http redirect,
528 if the policy is "default". Otherwise the referrer should be left intact.
530 * NetworkProcess/NetworkResourceLoader.cpp:
531 (WebKit::NetworkResourceLoader::start):
532 * NetworkProcess/SchedulableLoader.cpp:
533 (WebKit::SchedulableLoader::SchedulableLoader):
534 * NetworkProcess/SchedulableLoader.h:
535 (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
537 * NetworkProcess/SyncNetworkResourceLoader.cpp:
538 (WebKit::SyncNetworkResourceLoader::start):
539 * NetworkProcess/mac/RemoteNetworkingContext.h:
540 (WebKit::RemoteNetworkingContext::create):
541 (RemoteNetworkingContext):
542 * NetworkProcess/mac/RemoteNetworkingContext.mm:
543 (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
545 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
546 * Shared/Network/NetworkResourceLoadParameters.cpp:
547 (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
548 (WebKit::NetworkResourceLoadParameters::encode):
549 (WebKit::NetworkResourceLoadParameters::decode):
550 * Shared/Network/NetworkResourceLoadParameters.h:
551 (NetworkResourceLoadParameters):
552 (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
553 * WebProcess/Network/WebResourceLoadScheduler.cpp:
554 (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
555 (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
556 (WebKit::WebResourceLoadScheduler::scheduleLoad):
557 * WebProcess/Network/WebResourceLoadScheduler.h:
558 (WebResourceLoadScheduler):
559 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
560 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
562 2013-02-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
564 [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
565 https://bugs.webkit.org/show_bug.cgi?id=108062
567 Reviewed by Kenneth Rohde Christiansen.
569 The Ewk View implementation is encapsulated within EwkView class.
570 Besides multiple refactoring of Ewk View evas smart object code was made.
572 * UIProcess/API/C/efl/WKView.cpp:
575 Aux function to share WKView creation implementation.
577 * UIProcess/API/efl/EwkView.cpp:
579 (defaultSmartClassInstance):
581 (EwkView::initSmartClassInterface):
582 (EwkView::toEvasObject):
583 (EwkView::smartData):
585 Renamed and moved here from ewk_view.
587 (EwkViewEventHandler):
588 (EwkViewEventHandler::subscribe):
589 (EwkViewEventHandler::unsubscribe):
592 Added a new template class to encapsulate Ewk View Evas events handling.
597 Constructor and desctructor are private.
599 (EwkView::createEvasObject):
601 Added factory function for ewk view evas objects creation.
603 (EwkView::handleEvasObjectAdd):
604 (EwkView::handleEvasObjectDelete):
605 (EwkView::handleEvasObjectResize):
606 (EwkView::handleEvasObjectMove):
607 (EwkView::handleEvasObjectCalculate):
608 (EwkView::handleEvasObjectShow):
609 (EwkView::handleEvasObjectHide):
610 (EwkView::handleEvasObjectColorSet):
612 Evas_Smart_Class interface callbacks moved into the EwkView class.
614 (EwkView::handleEwkViewFocusIn):
615 (EwkView::handleEwkViewFocusOut):
616 (EwkView::handleEwkViewMouseWheel):
617 (EwkView::handleEwkViewMouseDown):
618 (EwkView::handleEwkViewMouseUp):
619 (EwkView::handleEwkViewMouseMove):
620 (EwkView::handleEwkViewKeyDown):
621 (EwkView::handleEwkViewKeyUp):
623 Ewk_View_Smart_Class interface callback moved into the EwkView class.
625 (EwkView::handleTouchDown):
626 (EwkView::handleTouchUp):
627 (EwkView::handleTouchMove):
633 Aux function to get the EwkView instance fromevas object.
637 Aux function to check that given evas object is ewk view.
639 * UIProcess/API/efl/EwkView.h:
640 (EwkView::evasObject):
642 * UIProcess/API/efl/ewk_view.cpp:
643 (ewk_view_smart_class_set):
644 (ewk_view_smart_add):
645 (ewk_view_add_with_context):
646 (ewk_view_feed_touch_event):
647 (Ewk_Page_Contents_Context):
649 * UIProcess/API/efl/ewk_view_private.h: Removed.
651 * UIProcess/API/C/efl/WKView.cpp:
653 (WKViewCreateWithFixedLayout):
654 (WKViewCreateSnapshot):
655 * UIProcess/cairo/BackingStoreCairo.cpp:
656 (WebKit::BackingStore::incorporateUpdate):
657 * UIProcess/efl/ContextHistoryClientEfl.cpp:
658 (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
659 (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
660 (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
661 (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
662 * UIProcess/efl/PageClientBase.cpp:
663 (WebKit::PageClientBase::processDidCrash):
664 * UIProcess/efl/PageLoadClientEfl.cpp:
665 (WebKit::PageLoadClientEfl::didChangeBackForwardList):
666 * UIProcess/efl/PageUIClientEfl.cpp:
667 (WebKit::PageUIClientEfl::takeFocus):
668 (WebKit::PageUIClientEfl::focus):
669 (WebKit::PageUIClientEfl::unfocus):
670 * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
671 (WebKit::WebFullScreenManagerProxy::enterFullScreen):
672 (WebKit::WebFullScreenManagerProxy::exitFullScreen):
673 * UIProcess/efl/WebInspectorProxyEfl.cpp:
674 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
675 * UIProcess/efl/WebPageProxyEfl.cpp:
676 (WebKit::WebPageProxy::viewWidget):
678 Updated due to changes in EwkView interface.
680 2013-02-05 Tim Horton <timothy_horton@apple.com>
682 [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
683 https://bugs.webkit.org/show_bug.cgi?id=108992
684 <rdar://problem/13087365>
686 Reviewed by Anders Carlsson.
688 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
689 (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
690 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
691 (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
692 hosting context if we're in the window when swapping out contexts.
693 (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
694 of the layer hosting context (or unset it if we're out of the window).
696 2013-02-05 Anders Carlsson <andersca@apple.com>
698 WebKit clients should be able to override loading of blocked plug-ins
699 https://bugs.webkit.org/show_bug.cgi?id=108968
700 <rdar://problem/13154516>
702 Reviewed by Sam Weinig.
704 Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
705 of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
706 force loading of blacklisted plug-ins (and vice versa).
708 * UIProcess/API/C/WKPage.h:
709 * UIProcess/WebPageProxy.cpp:
710 (WebKit::WebPageProxy::getPluginPath):
711 * UIProcess/WebUIClient.cpp:
712 (WebKit::toWKPluginLoadPolicy):
714 (WebKit::toPluginModuleLoadPolicy):
715 (WebKit::WebUIClient::pluginLoadPolicy):
716 * UIProcess/WebUIClient.h:
719 2013-02-05 Simon Hausmann <simon.hausmann@digia.com>
721 [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
722 https://bugs.webkit.org/show_bug.cgi?id=108826
724 Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
727 This patch converts a few more usages of WebPageProxy to functions in
730 * UIProcess/API/qt/qquickwebview.cpp:
731 (QQuickWebViewPrivate::initialize):
732 (QQuickWebViewLegacyPrivate::zoomFactor):
733 (QQuickWebViewLegacyPrivate::setZoomFactor):
734 (QQuickWebViewExperimental::postMessage):
735 (QQuickWebViewExperimental::userAgent):
736 (QQuickWebViewExperimental::setUserAgent):
737 (QQuickWebViewExperimental::evaluateJavaScript):
738 (QQuickWebViewExperimental::findText):
739 (QQuickWebView::goBack):
740 (QQuickWebView::goForward):
741 (QQuickWebView::stop):
742 (QQuickWebView::reload):
743 (QQuickWebView::setUrl):
744 (QQuickWebView::canGoBack):
745 (QQuickWebView::canGoForward):
746 (QQuickWebView::loading):
747 (QQuickWebView::title):
748 (QQuickWebView::pageRef):
749 (QQuickWebView::loadHtml):
750 (QQuickWebView::runJavaScriptInMainFrame):
751 * UIProcess/API/qt/qquickwebview_p_p.h:
752 (QQuickWebViewPrivate):
754 2013-02-04 Gwang Yoon Hwang <ryumiel@company100.net>
756 Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
757 https://bugs.webkit.org/show_bug.cgi?id=108807
759 Reviewed by Anders Carlsson.
761 We need to add newly created WebCustomFilterProgramProxy to a hashset to
762 disconnect when CoordinatedLayerTreeHost gets destructed.
764 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
765 (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
767 2013-02-04 Benjamin Poulain <bpoulain@apple.com>
769 Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
770 https://bugs.webkit.org/show_bug.cgi?id=108741
772 Reviewed by Tony Chang.
774 Suspending and resuming application has been useless for a one. Someone just
777 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
778 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
779 * WebProcess/WebPage/WebFrame.cpp:
780 * WebProcess/WebPage/WebFrame.h:
783 2013-02-04 Jaehun Lim <ljaehun.lim@samsung.com>
785 [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
786 https://bugs.webkit.org/show_bug.cgi?id=106979
788 Reviewed by Benjamin Poulain.
790 Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
791 We can show confirmation window when beforeunload event is fired.
793 * UIProcess/efl/PageUIClientEfl.cpp:
794 (WebKit::PageUIClientEfl::PageUIClientEfl):
795 (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
797 * UIProcess/efl/PageUIClientEfl.h:
800 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
802 [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
803 https://bugs.webkit.org/show_bug.cgi?id=107931
805 Reviewed by Anders Carlsson.
807 This is just one step of the new plan for the EFL API.
809 The plan is to move the public EFL-like API on top of the shared
810 WK2 C API, plus a few EFL extensions (WKView class mostly).
812 The EFL-like API can be seen as a convenience API which ties
813 well into EFL and which makes it easy to add web experiences
814 to existing and new EFL applications. It provides a smart object
815 like API and a Evas_Object based view.
817 For more advanced use cases, such as browser and runtime, it is
818 possible to use the WK* C API, which is gives more flexibility
819 while being more low level.
821 The idea is that the WKView class will not depend on Evas_Object
822 and X11 (future plan) unlike the current EFL-like API. This should
823 make it possible to use it for cases where none of these are
826 This patch introduces the WebView class which serves as our
827 counterpart for the WKView class, and adds a few needed methods.
829 The EwkView owns the WebView class (and will be constructing it
830 in the near future when the EwkView class has been changed to
831 handle all smart object related code)
833 The clean up of the smart object related code as the proper
834 construction of EwkView and WebView will be done in follow-up
837 * UIProcess/API/C/efl/WKAPICastEfl.h:
840 The WKView API is not based on WebView and not Evas_Object*
842 * UIProcess/API/C/efl/WKView.cpp:
844 (WKViewCreateWithFixedLayout):
847 (WKViewSetThemePath):
848 (WKViewSuspendActiveDOMObjectsAndAnimations):
849 (WKViewResumeActiveDOMObjectsAndAnimations):
850 (WKViewGetEvasObject):
851 (WKViewCreateSnapshot):
853 Add a few new WKView EFL C methods, and update existing
854 methods to reflect that the WKViewRef is now a WebView*
856 The construction methods will be rewritten when the smart
857 object construction has been solved.
859 * UIProcess/API/C/efl/WKView.h:
860 * UIProcess/efl/WebView.cpp: Added.
862 (WebKit::WebView::WebView):
863 (WebKit::WebView::~WebView):
864 (WebKit::WebView::initialize):
865 (WebKit::WebView::setThemePath):
866 (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
867 (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
868 * UIProcess/efl/WebView.h: Added.
871 (WebKit::WebView::pageRef):
872 (WebKit::WebView::evasObject):
873 (WebKit::WebView::page):
874 (WebKit::WebView::type):
876 Add a new WebKit::WebView class for EFL.
878 * UIProcess/API/efl/EwkView.cpp:
882 (EwkView::setThemePath):
883 (EwkView::createGLSurface):
885 Base methods on C API instead of internal API as much
886 as currently possible.
888 * UIProcess/API/efl/EwkView.h:
894 * UIProcess/API/efl/ewk_view.cpp:
897 (ewk_view_smart_add):
899 Modify to return the EwkView class for now.
901 * UIProcess/API/efl/ewk_view_private.h:
902 * UIProcess/efl/WebInspectorProxyEfl.cpp:
903 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
905 Updated due to changed API.
907 2013-02-04 Anders Carlsson <andersca@apple.com>
909 Set up the storage manager as a connection queue
910 https://bugs.webkit.org/show_bug.cgi?id=108879
912 Reviewed by Sam Weinig.
914 * UIProcess/Storage/StorageManager.cpp:
915 (WebKit::StorageManager::processWillOpenConnection):
916 Add the storage manager as a connection queue client.
918 (WebKit::StorageManager::processWillCloseConnection):
919 Remove the storage manager.
921 * UIProcess/WebContext.cpp:
922 (WebKit::WebContext::processWillOpenConnection):
923 Call the storage manager.
925 (WebKit::WebContext::processWillCloseConnection):
926 Call the storage manager.
928 * UIProcess/WebProcessProxy.cpp:
929 (WebKit::WebProcessProxy::connectionWillOpen):
932 (WebKit::WebProcessProxy::connectionWillClose):
935 (WebKit::WebProcessProxy::didFinishLaunching):
938 2013-02-04 Anders Carlsson <andersca@apple.com>
940 Send message when creating and destroying StorageAreaProxy objects
941 https://bugs.webkit.org/show_bug.cgi?id=108874
943 Reviewed by Sam Weinig.
945 * Shared/SecurityOriginData.cpp:
946 (WebKit::SecurityOriginData::fromSecurityOrigin):
947 * Shared/SecurityOriginData.h:
948 (SecurityOriginData):
949 Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
951 * WebProcess/Storage/StorageAreaProxy.cpp:
952 (WebKit::generateStorageAreaID):
953 New function to create a unique storage area ID.
955 (WebKit::StorageAreaProxy::StorageAreaProxy):
956 Send a CreateStorageArea message.
958 (WebKit::StorageAreaProxy::~StorageAreaProxy):
959 Send a DestroyStorageArea message.
961 (WebKit::StorageAreaProxy::contains):
962 Remove this assertion for now, it fires too often.
964 * WebProcess/Storage/StorageNamespaceProxy.h:
965 (WebKit::StorageNamespaceProxy::storageNamespaceID):
968 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
970 [EFL][WK2] Use C API inside EwkView
971 https://bugs.webkit.org/show_bug.cgi?id=108825
973 Reviewed by Anders Carlsson.
975 A straight-forward port towards the C API.
977 * UIProcess/API/efl/EwkView.cpp:
978 (EwkView::EwkView): Use C API for common default preferences.
979 (EwkView::wkPage): Make it const and remove useless comment.
980 (EwkView::deviceScaleFactor):
982 (EwkView::customTextEncodingName):
983 (EwkView::setCustomTextEncodingName):
984 (EwkView::informURLChange):
985 * UIProcess/API/efl/EwkView.h:
988 2013-02-04 Alexey Proskuryakov <ap@apple.com>
990 Remove an unnecessary sandbox rule.
992 Reviewed by Sam Weinig.
994 * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
995 /Library/Managed Preferences, no need for another rule for something inside it.
997 2013-02-04 Brady Eidson <beidson@apple.com>
999 WebProcess crashes handling repeated NetworkProcess crashes.
1000 <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
1002 Reviewed by Alexey Proskuryakov.
1004 - Rename the concept of "unschedulable loader" to "internally failed loader"
1005 - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
1006 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1007 (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
1008 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1009 (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
1010 (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
1011 (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
1012 (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1013 * WebProcess/Network/WebResourceLoadScheduler.h:
1015 WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
1016 * WebProcess/Network/WebResourceLoader.cpp:
1017 * WebProcess/Network/WebResourceLoader.h:
1018 (WebKit::WebResourceLoader::resourceLoader):
1020 2013-02-04 Anders Carlsson <andersca@apple.com>
1022 Update message generation to use the new queue client semantics
1023 https://bugs.webkit.org/show_bug.cgi?id=108865
1025 Reviewed by Andreas Kling.
1027 * Scripts/webkit2/messages.py:
1028 (connection_work_queue_message_statement):
1029 (async_message_statement):
1030 (generate_message_handler):
1031 * Scripts/webkit2/messages_unittest.py:
1032 * Shared/mac/SecItemShim.cpp:
1033 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1034 * Shared/mac/SecItemShim.h:
1036 * UIProcess/Storage/StorageManager.cpp:
1037 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1038 * UIProcess/Storage/StorageManager.h:
1040 * UIProcess/WebProcessProxy.cpp:
1041 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1042 * UIProcess/WebProcessProxy.h:
1044 * UIProcess/mac/SecItemShimProxy.cpp:
1045 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1046 * UIProcess/mac/SecItemShimProxy.h:
1048 * WebKit2.xcodeproj/project.pbxproj:
1049 * WebProcess/WebPage/EventDispatcher.cpp:
1050 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1051 * WebProcess/WebPage/EventDispatcher.h:
1053 * WebProcess/WebProcess.cpp:
1054 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1055 * WebProcess/WebProcess.h:
1058 2013-02-04 Abhishek Arya <inferno@chromium.org>
1060 Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1061 https://bugs.webkit.org/show_bug.cgi?id=108668
1063 Reviewed by Eric Seidel.
1065 * Shared/mac/SandboxExtensionMac.mm:
1066 (WebKit::SandboxExtension::HandleArray::operator[]):
1068 2013-02-04 Anders Carlsson <andersca@apple.com>
1070 Change didReceiveMessageOnConnectionWorkQueue semantics
1071 https://bugs.webkit.org/show_bug.cgi?id=108859
1073 Reviewed by Sam Weinig.
1075 Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
1076 OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
1077 work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
1078 of the decoder implicitly means that the message was handled.
1080 * Platform/CoreIPC/Connection.cpp:
1081 (CoreIPC::Connection::processIncomingMessage):
1082 * Platform/CoreIPC/Connection.h:
1084 * Shared/mac/SecItemShim.cpp:
1085 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1086 * Shared/mac/SecItemShim.h:
1088 * UIProcess/Storage/StorageManager.cpp:
1089 (WebKit::StorageManager::StorageManager):
1090 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1091 * UIProcess/Storage/StorageManager.h:
1094 * UIProcess/WebProcessProxy.cpp:
1095 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1096 * UIProcess/WebProcessProxy.h:
1098 * UIProcess/mac/SecItemShimProxy.cpp:
1099 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1100 * UIProcess/mac/SecItemShimProxy.h:
1102 * WebProcess/WebPage/EventDispatcher.cpp:
1103 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1104 * WebProcess/WebPage/EventDispatcher.h:
1106 * WebProcess/WebProcess.cpp:
1107 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1108 * WebProcess/WebProcess.h:
1111 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1113 <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
1115 Reviewed by Sam Weinig.
1117 * WebProcess/com.apple.WebProcess.sb.in:
1119 2013-02-04 Anders Carlsson <andersca@apple.com>
1121 Add didCloseOnConnectionWorkQueue to Connection::QueueClient
1122 https://bugs.webkit.org/show_bug.cgi?id=108853
1124 Reviewed by Andreas Kling.
1126 * Platform/CoreIPC/Connection.cpp:
1127 (CoreIPC::Connection::connectionDidClose):
1128 * Platform/CoreIPC/Connection.h:
1130 * Shared/mac/SecItemShim.cpp:
1131 (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
1132 * Shared/mac/SecItemShim.h:
1134 * UIProcess/Storage/StorageManager.cpp:
1135 (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
1137 * UIProcess/Storage/StorageManager.h:
1139 * UIProcess/WebProcessProxy.cpp:
1140 (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
1142 * UIProcess/WebProcessProxy.h:
1144 * UIProcess/mac/SecItemShimProxy.cpp:
1145 (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
1146 * UIProcess/mac/SecItemShimProxy.h:
1148 * WebProcess/WebPage/EventDispatcher.cpp:
1149 (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
1151 * WebProcess/WebPage/EventDispatcher.h:
1153 * WebProcess/WebProcess.cpp:
1154 (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
1156 * WebProcess/WebProcess.h:
1159 2013-02-04 Martin Robinson <mrobinson@igalia.com>
1161 Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
1164 * GNUmakefile.list.am:
1166 2013-02-04 Enrica Casucci <enrica@apple.com>
1168 Add specific EditActions for Bold and Italic commands.
1169 https://bugs.webkit.org/show_bug.cgi?id=108842.
1170 <rdar://problem/13098252>
1172 Reviewed by Ryosuke Niwa.
1174 * UIProcess/WebEditCommandProxy.cpp:
1175 (WebKit::WebEditCommandProxy::nameForEditAction):
1177 2013-02-04 Anders Carlsson <andersca@apple.com>
1179 Use a separate queue for the connection watchdog callback in the web process
1180 https://bugs.webkit.org/show_bug.cgi?id=108844
1182 Reviewed by Andreas Kling.
1184 Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
1185 Instead, create a new, temporary work queue where the exit call will be dispatched to.
1187 * Platform/CoreIPC/Connection.cpp:
1188 (CoreIPC::Connection::connectionDidClose):
1189 * Platform/CoreIPC/Connection.h:
1191 * Shared/ChildProcess.cpp:
1192 (WebKit::didCloseOnConnectionWorkQueue):
1194 2013-02-04 Tim Horton <timothy_horton@apple.com>
1196 Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
1197 https://bugs.webkit.org/show_bug.cgi?id=108729
1198 <rdar://problem/13047546>
1200 Reviewed by Anders Carlsson.
1202 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1203 (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
1204 current PlatformLayer corresponding to m_pageOverlayLayer.
1205 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1206 (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
1207 (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
1208 (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
1209 (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.
1210 (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.
1212 2013-02-04 Anders Carlsson <andersca@apple.com>
1214 Use UNUSED_PARAM instead of C style comments.
1216 * UIProcess/Storage/StorageManager.cpp:
1217 (WebKit::StorageManager::createStorageArea):
1219 2013-02-04 Christophe Dumez <dchris@gmail.com>
1221 [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
1222 https://bugs.webkit.org/show_bug.cgi?id=108816
1224 Reviewed by Anders Carlsson.
1226 As we are trying to minimize use of external dependencies in our WK2 EFL
1227 API implementation, we should stop using libsoup in
1228 ewk_url_scheme_request and use the WK2 C API instead.
1230 * UIProcess/API/efl/ewk_url_scheme_request.cpp:
1231 (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
1233 2013-02-04 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
1235 [WK2][EFL] Weird stripe at the end of the page
1236 https://bugs.webkit.org/show_bug.cgi?id=108820
1238 Reviewed by Noam Rosenthal.
1240 The page scroll bound was artificially enlarged by one causing the artifact appearance.
1242 * UIProcess/PageViewportController.cpp:
1243 (WebKit::PageViewportController::boundContentsPositionAtScale):
1245 2013-02-04 David Kilzer <ddkilzer@apple.com>
1247 Sort WebKit2 Xcode project file
1249 * WebKit2.xcodeproj/project.pbxproj:
1251 2013-02-04 Simon Hausmann <simon.hausmann@digia.com>
1253 [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
1254 https://bugs.webkit.org/show_bug.cgi?id=108651
1256 Reviewed by Sam Weinig.
1258 It's straight-forward port towards the C API.
1260 * UIProcess/API/qt/qquickwebview.cpp:
1261 (QQuickWebViewPrivate::initialize):
1263 (QQuickWebViewPrivate::updateUserScripts):
1264 * UIProcess/API/qt/qquickwebview_p_p.h:
1265 (QQuickWebViewPrivate):
1267 2013-02-04 Balazs Kelemen <kbalazs@webkit.org>
1269 [Soup] Wrap SoupSession by NetworkStorageSession
1270 https://bugs.webkit.org/show_bug.cgi?id=108615
1272 Reviewed by Alexey Proskuryakov.
1274 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
1275 (WebKit::WebFrameNetworkingContext::storageSession):
1276 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
1277 (WebFrameNetworkingContext):
1279 2013-02-03 David Kilzer <ddkilzer@apple.com>
1281 Upstream ENABLE_PDFKIT_PLUGIN settting
1282 <http://webkit.org/b/108792>
1284 Reviewed by Tim Horton.
1286 * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1287 on iOS since PDFKit is a Mac-only framework.
1289 2013-02-01 Alexey Proskuryakov <ap@apple.com>
1291 Silently block one more directory needed for NSApplication initialization.
1293 Reviewed by Sam Weinig.
1295 * WebProcess/com.apple.WebProcess.sb.in:
1297 2013-02-03 KwangYong Choi <ky0.choi@samsung.com>
1299 Fix build warning after r141648
1300 https://bugs.webkit.org/show_bug.cgi?id=108784
1302 Reviewed by Kentaro Hara.
1304 Fix -Wunused-parameter build warning.
1306 * UIProcess/Storage/StorageManager.cpp:
1307 (WebKit::StorageManager::createStorageArea):
1308 (WebKit::StorageManager::destroyStorageArea):
1310 2013-02-03 Joanmarie Diggs <jdiggs@igalia.com>
1312 [GTK] Make distcheck fails
1313 https://bugs.webkit.org/show_bug.cgi?id=108756
1315 Reviewed by Kentaro Hara.
1317 * GNUmakefile.list.am: Remove header files which no longer exist
1319 2013-02-02 Sam Weinig <sam@webkit.org>
1321 Remove more LegacyReceivers
1322 https://bugs.webkit.org/show_bug.cgi?id=108758
1324 Reviewed by Anders Carlsson.
1326 * UIProcess/Downloads/DownloadProxy.cpp:
1327 * UIProcess/Downloads/DownloadProxy.messages.in:
1328 * UIProcess/WebApplicationCacheManagerProxy.cpp:
1329 * UIProcess/WebApplicationCacheManagerProxy.h:
1330 (WebApplicationCacheManagerProxy):
1331 * UIProcess/WebApplicationCacheManagerProxy.messages.in:
1332 * UIProcess/WebCookieManagerProxy.cpp:
1333 * UIProcess/WebCookieManagerProxy.h:
1334 (WebCookieManagerProxy):
1335 * UIProcess/WebCookieManagerProxy.messages.in:
1336 * UIProcess/WebDatabaseManagerProxy.cpp:
1337 * UIProcess/WebDatabaseManagerProxy.h:
1338 (WebDatabaseManagerProxy):
1339 * UIProcess/WebDatabaseManagerProxy.messages.in:
1340 * UIProcess/mac/RemoteLayerTreeHost.h:
1341 (RemoteLayerTreeHost):
1342 * UIProcess/mac/RemoteLayerTreeHost.messages.in:
1343 * UIProcess/mac/RemoteLayerTreeHost.mm:
1344 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1345 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1346 (WebApplicationCacheManager):
1347 * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1348 * WebProcess/Cookies/WebCookieManager.cpp:
1349 * WebProcess/Cookies/WebCookieManager.h:
1351 * WebProcess/Cookies/WebCookieManager.messages.in:
1352 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1353 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1354 (WebDatabaseManager):
1355 * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
1357 2013-02-02 Sam Weinig <sam@webkit.org>
1359 Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
1360 https://bugs.webkit.org/show_bug.cgi?id=108757
1362 Reviewed by Anders Carlsson.
1364 * Shared/Authentication/AuthenticationManager.cpp:
1365 * Shared/Authentication/AuthenticationManager.h:
1366 (AuthenticationManager):
1367 * Shared/Authentication/AuthenticationManager.messages.in:
1368 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1369 (CustomProtocolManager):
1370 * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1371 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1372 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1373 (CustomProtocolManagerProxy):
1374 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1375 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1377 2013-02-02 Christophe Dumez <christophe.dumez@intel.com>
1379 [EFL][WK2] Use C API inside ewk_file_chooser_request
1380 https://bugs.webkit.org/show_bug.cgi?id=107811
1382 Reviewed by Sam Weinig.
1384 Use C API inside ewk_file_chooser_request instead of
1385 accessing the internal C++ classes directly, to
1386 avoid violating API layering.
1388 * UIProcess/API/efl/ewk_file_chooser_request.cpp:
1389 (EwkFileChooserRequest::EwkFileChooserRequest):
1390 (EwkFileChooserRequest::~EwkFileChooserRequest):
1391 (EwkFileChooserRequest::allowMultipleFiles):
1392 (EwkFileChooserRequest::acceptedMIMETypes):
1393 (EwkFileChooserRequest::cancel):
1394 (EwkFileChooserRequest::chooseFiles):
1395 (ewk_file_chooser_request_accepted_mimetypes_get):
1396 (ewk_file_chooser_request_files_choose):
1397 (ewk_file_chooser_request_file_choose):
1398 * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1399 (EwkFileChooserRequest::create):
1400 (EwkFileChooserRequest):
1401 * UIProcess/efl/PageUIClientEfl.cpp:
1402 (WebKit::PageUIClientEfl::runOpenPanel):
1404 2013-02-02 Sam Weinig <sam@webkit.org>
1406 Stop keeping a frame tree in the UIProcess
1407 https://bugs.webkit.org/show_bug.cgi?id=81728
1409 Reviewed by Oliver Hunt.
1411 This patch removes the parent/child relationships of WebFrameProxys
1414 * UIProcess/API/C/WKFrame.cpp:
1415 (WKFrameCopyChildFrames):
1416 (WKFrameGetParentFrame):
1417 * UIProcess/API/C/WKFrame.h:
1418 Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
1419 but keep them around as their symbols are still needed for nightlies.
1421 * UIProcess/WebFrameProxy.cpp:
1422 (WebKit::WebFrameProxy::WebFrameProxy):
1423 (WebKit::WebFrameProxy::disconnect):
1424 * UIProcess/WebFrameProxy.h:
1425 Remove parent/child connections.
1427 * UIProcess/WebPageProxy.cpp:
1428 (WebKit::WebPageProxy::didCreateSubframe):
1429 (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1430 * UIProcess/WebPageProxy.h:
1431 * UIProcess/WebPageProxy.messages.in:
1432 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1433 (WebKit::WebFrameLoaderClient::didSaveToPageCache):
1434 (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
1435 * WebProcess/WebPage/WebFrame.cpp:
1436 (WebKit::WebFrame::createSubframe):
1437 Remove/Update messages that only served to update the parent/child connection.
1439 2013-02-02 Sam Weinig <sam@webkit.org>
1441 Make it possible to modify the connection from ChildProcessProxy subclasses.
1443 Reviewed by Anders Carlsson.
1445 * Shared/ChildProcessProxy.cpp:
1446 (WebKit::ChildProcessProxy::ChildProcessProxy):
1447 (WebKit::ChildProcessProxy::didFinishLaunching):
1448 (WebKit::ChildProcessProxy::clearConnection):
1449 (WebKit::ChildProcessProxy::connectionWillOpen):
1450 (WebKit::ChildProcessProxy::connectionWillClose):
1451 * Shared/ChildProcessProxy.h:
1452 (ChildProcessProxy):
1453 * UIProcess/WebProcessProxy.cpp:
1454 (WebKit::WebProcessProxy::WebProcessProxy):
1455 (WebKit::WebProcessProxy::connectionWillOpen):
1456 (WebKit::WebProcessProxy::connectionWillClose):
1457 * UIProcess/WebProcessProxy.h:
1460 2013-02-02 David Kilzer <ddkilzer@apple.com>
1462 Upstream iOS FeatureDefines
1463 <http://webkit.org/b/108753>
1465 Reviewed by Anders Carlsson.
1467 * Configurations/FeatureDefines.xcconfig:
1468 - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
1469 - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
1470 - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add
1471 PLATFORM_NAME variant to reduce future merge conflicts.
1473 2013-02-02 Csaba Osztrogonác <ossy@webkit.org>
1475 [Qt][WK2] Unreviewed buildfix after r141648.
1477 * DerivedSources.pri:
1479 2013-02-02 Zan Dobersek <zdobersek@igalia.com>
1481 Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
1485 * GNUmakefile.list.am:
1487 2013-02-01 Zan Dobersek <zdobersek@igalia.com>
1489 Unreviewed GTK build fix after r141648.
1491 * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
1492 should be searched for *.messages.in files.
1494 2013-02-01 Gyuyoung Kim <gyuyoung.kim@samsung.com>
1496 Unreviewed build fix after r141648
1498 Needs to add StorageManager.messages.in to CMakeLists.txt.
1502 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1504 Build fix for CustomProtocolManagerMac after r141658.
1506 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1507 (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
1509 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1511 [WK2] Use light supplement names instead of static AtomicStrings
1512 https://bugs.webkit.org/show_bug.cgi?id=108570
1514 Reviewed by Anders Carlsson.
1516 Since all the supplement names are just string literals and are all different,
1517 we can just use their pointer as the key in the supplement hashmaps.
1519 This is lighter and faster than using AtomicString. WebCore already moved to this
1522 * NetworkProcess/NetworkProcess.h:
1523 (WebKit::NetworkProcess::addSupplement):
1525 * Shared/Authentication/AuthenticationManager.cpp:
1526 (WebKit::AuthenticationManager::supplementName):
1527 * Shared/Authentication/AuthenticationManager.h:
1528 (AuthenticationManager):
1529 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1530 (CustomProtocolManager):
1531 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1532 (WebKit::CustomProtocolManager::supplementName):
1533 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1534 (WebKit::WebNotificationManagerProxy::supplementName):
1535 * UIProcess/Notifications/WebNotificationManagerProxy.h:
1536 (WebNotificationManagerProxy):
1537 * UIProcess/WebApplicationCacheManagerProxy.cpp:
1538 (WebKit::WebApplicationCacheManagerProxy::supplementName):
1539 * UIProcess/WebApplicationCacheManagerProxy.h:
1540 (WebApplicationCacheManagerProxy):
1541 * UIProcess/WebContext.h:
1543 * UIProcess/WebCookieManagerProxy.cpp:
1544 (WebKit::WebCookieManagerProxy::supplementName):
1545 * UIProcess/WebCookieManagerProxy.h:
1546 (WebCookieManagerProxy):
1547 * UIProcess/WebDatabaseManagerProxy.cpp:
1548 (WebKit::WebDatabaseManagerProxy::supplementName):
1549 * UIProcess/WebDatabaseManagerProxy.h:
1550 (WebDatabaseManagerProxy):
1551 * UIProcess/WebGeolocationManagerProxy.cpp:
1552 (WebKit::WebGeolocationManagerProxy::supplementName):
1553 * UIProcess/WebGeolocationManagerProxy.h:
1554 (WebGeolocationManagerProxy):
1555 * UIProcess/WebKeyValueStorageManagerProxy.cpp:
1556 (WebKit::WebKeyValueStorageManagerProxy::supplementName):
1557 * UIProcess/WebKeyValueStorageManagerProxy.h:
1558 (WebKeyValueStorageManagerProxy):
1559 * UIProcess/WebMediaCacheManagerProxy.cpp:
1560 (WebKit::WebMediaCacheManagerProxy::supplementName):
1561 * UIProcess/WebMediaCacheManagerProxy.h:
1562 (WebMediaCacheManagerProxy):
1563 * UIProcess/WebResourceCacheManagerProxy.cpp:
1564 (WebKit::WebResourceCacheManagerProxy::supplementName):
1565 * UIProcess/WebResourceCacheManagerProxy.h:
1566 (WebResourceCacheManagerProxy):
1567 * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
1568 (WebKit::WebSoupRequestManagerProxy::supplementName):
1569 * UIProcess/soup/WebSoupRequestManagerProxy.h:
1570 (WebSoupRequestManagerProxy):
1571 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1572 (WebKit::WebApplicationCacheManager::supplementName):
1573 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1574 (WebApplicationCacheManager):
1575 * WebProcess/Cookies/WebCookieManager.cpp:
1576 (WebKit::WebCookieManager::supplementName):
1577 * WebProcess/Cookies/WebCookieManager.h:
1579 * WebProcess/Geolocation/WebGeolocationManager.cpp:
1580 (WebKit::WebGeolocationManager::supplementName):
1581 * WebProcess/Geolocation/WebGeolocationManager.h:
1582 (WebGeolocationManager):
1583 * WebProcess/MediaCache/WebMediaCacheManager.cpp:
1584 (WebKit::WebMediaCacheManager::supplementName):
1585 * WebProcess/MediaCache/WebMediaCacheManager.h:
1586 (WebMediaCacheManager):
1587 * WebProcess/Notifications/WebNotificationManager.cpp:
1588 (WebKit::WebNotificationManager::supplementName):
1589 * WebProcess/Notifications/WebNotificationManager.h:
1590 (WebNotificationManager):
1591 * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
1592 (WebKit::WebResourceCacheManager::supplementName):
1593 * WebProcess/ResourceCache/WebResourceCacheManager.h:
1594 (WebResourceCacheManager):
1595 * WebProcess/Storage/WebKeyValueStorageManager.cpp:
1596 (WebKit::WebKeyValueStorageManager::supplementName):
1597 * WebProcess/Storage/WebKeyValueStorageManager.h:
1598 (WebKeyValueStorageManager):
1599 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1600 (WebKit::WebDatabaseManager::supplementName):
1601 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1602 (WebDatabaseManager):
1603 * WebProcess/WebProcess.h:
1604 (WebKit::WebProcess::addSupplement):
1607 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1609 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
1610 https://bugs.webkit.org/show_bug.cgi?id=108558
1612 Reviewed by Dean Jackson.
1614 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1615 (WKBundleFramePauseAnimationOnElementWithId):
1616 * WebProcess/WebPage/WebFrame.cpp:
1617 (WebKit::WebFrame::pauseAnimationOnElementWithId):
1618 * WebProcess/WebPage/WebFrame.h:
1621 2013-02-01 Anders Carlsson <andersca@apple.com>
1623 More work on UI side storage
1624 https://bugs.webkit.org/show_bug.cgi?id=108700
1626 Reviewed by Sam Weinig.
1628 * DerivedSources.make:
1629 Add StorageManager.messages.in.
1631 * Platform/CoreIPC/HandleMessage.h:
1632 (CoreIPC::callMemberFunction):
1635 * UIProcess/Storage/StorageManager.cpp:
1636 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1637 Call the right function.
1639 (WebKit::StorageManager::createStorageArea):
1640 (WebKit::StorageManager::destroyStorageArea):
1643 * UIProcess/Storage/StorageManager.messages.in: Added.
1644 Add new messages files.
1646 * WebKit2.xcodeproj/project.pbxproj:
1649 * WebProcess/Storage/StorageAreaProxy.cpp:
1650 (WebKit::StorageAreaProxy::~StorageAreaProxy):
1653 (WebKit::StorageAreaProxy::canAccessStorage):
1654 (WebKit::StorageAreaProxy::incrementAccessCount):
1655 (WebKit::StorageAreaProxy::decrementAccessCount):
1658 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1660 [Gtk] [WK2] Fix build after r141619
1661 https://bugs.webkit.org/show_bug.cgi?id=108687
1663 Reviewed by Benjamin Poulain.
1665 Take a reference instead of a pointer for decoding functions.
1667 * Platform/gtk/SharedMemoryGtk.cpp:
1668 (WebKit::SharedMemory::Handle::decode):
1669 * Shared/gtk/ArgumentCodersGtk.cpp:
1670 (CoreIPC::decodeImage):
1671 (CoreIPC::decodeDataObject):
1672 (CoreIPC::::decode):
1673 (CoreIPC::decodeGKeyFile):
1675 * Shared/gtk/ArgumentCodersGtk.h:
1676 * Shared/gtk/LayerTreeContextGtk.cpp:
1677 (WebKit::LayerTreeContext::decode):
1679 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1681 [EFL] [WK2] Fix build after r141619
1682 https://bugs.webkit.org/show_bug.cgi?id=108683
1684 Reviewed by Benjamin Poulain.
1686 Take a reference instead of a pointer for decoding functions.
1688 * Shared/WebBatteryStatus.cpp:
1689 (WebKit::WebBatteryStatus::Data::decode):
1690 * Shared/WebBatteryStatus.h:
1692 * Shared/WebNetworkInfo.cpp:
1693 (WebKit::WebNetworkInfo::Data::decode):
1694 * Shared/WebNetworkInfo.h:
1696 * Shared/cairo/LayerTreeContextCairo.cpp:
1697 (WebKit::LayerTreeContext::decode):
1698 * Shared/efl/LayerTreeContextEfl.cpp:
1699 (WebKit::LayerTreeContext::decode):
1700 * Shared/soup/PlatformCertificateInfo.cpp:
1701 (WebKit::PlatformCertificateInfo::decode):
1702 * Shared/soup/PlatformCertificateInfo.h:
1703 (PlatformCertificateInfo):
1704 * Shared/soup/WebCoreArgumentCodersSoup.cpp:
1705 (CoreIPC::::decodePlatformData):
1707 2013-02-01 Brady Eidson <beidson@apple.com>
1709 Clean up WebArchive loading with the NetworkProcess
1710 <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
1712 Reviewed by Alexey Proskuryakov.
1714 * NetworkProcess/HostRecord.cpp:
1715 (WebKit::HostRecord::servePendingRequestsForQueue): Add new logging.
1716 (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
1718 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1719 (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
1721 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1722 (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
1723 and add new logging to better explore archive loading behavior in the future.
1725 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1727 [Qt] [WK2] Fix build after r141619
1728 https://bugs.webkit.org/show_bug.cgi?id=108680
1730 Reviewed by Benjamin Poulain.
1732 Take a reference instead of a pointer for decoding functions.
1734 * Platform/unix/SharedMemoryUnix.cpp:
1735 (WebKit::SharedMemory::Handle::decode):
1736 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1737 (CoreIPC::::decode):
1738 (CoreIPC::decodeTimingFunction):
1739 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
1740 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1741 (WebKit::WebCoordinatedSurface::Handle::decode):
1742 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1744 * Shared/qt/ArgumentCodersQt.cpp:
1745 (CoreIPC::::decode):
1746 * Shared/qt/ArgumentCodersQt.h:
1748 * Shared/qt/LayerTreeContextQt.cpp:
1749 (WebKit::LayerTreeContext::decode):
1750 * Shared/qt/PlatformCertificateInfo.h:
1751 (WebKit::PlatformCertificateInfo::decode):
1752 * Shared/qt/QtNetworkReplyData.cpp:
1753 (WebKit::QtNetworkReplyData::decode):
1754 * Shared/qt/QtNetworkReplyData.h:
1755 (QtNetworkReplyData):
1756 * Shared/qt/QtNetworkRequestData.cpp:
1757 (WebKit::QtNetworkRequestData::decode):
1758 * Shared/qt/QtNetworkRequestData.h:
1759 (QtNetworkRequestData):
1760 * Shared/qt/WebCoreArgumentCodersQt.cpp:
1761 (CoreIPC::::decodePlatformData):
1763 2013-02-01 Anders Carlsson <andersca@apple.com>
1765 Message decoding functions should take a MessageDecoder reference
1766 https://bugs.webkit.org/show_bug.cgi?id=108669
1768 Reviewed by Andreas Kling.
1770 Message encoding functions already take a reference instead of a pointer, so
1771 make the decoding functions take a reference as well.
1773 * Platform/CoreIPC/ArgumentCoder.h:
1774 (CoreIPC::ArgumentCoder::decode):
1775 * Platform/CoreIPC/ArgumentCoders.cpp:
1776 (CoreIPC::::decode):
1777 (CoreIPC::decodeStringText):
1778 * Platform/CoreIPC/ArgumentCoders.h:
1779 (CoreIPC::SimpleArgumentCoder::decode):
1780 * Platform/CoreIPC/ArgumentDecoder.h:
1781 (CoreIPC::ArgumentDecoder::decode):
1782 * Platform/CoreIPC/Arguments.h:
1783 (CoreIPC::Arguments0::decode):
1784 (CoreIPC::Arguments1::decode):
1785 (CoreIPC::Arguments2::decode):
1786 (CoreIPC::Arguments3::decode):
1787 (CoreIPC::Arguments4::decode):
1788 (CoreIPC::Arguments5::decode):
1789 (CoreIPC::Arguments6::decode):
1790 (CoreIPC::Arguments7::decode):
1791 (CoreIPC::Arguments8::decode):
1792 (CoreIPC::Arguments10::decode):
1793 * Platform/CoreIPC/Attachment.cpp:
1794 (CoreIPC::Attachment::decode):
1795 * Platform/CoreIPC/Attachment.h:
1797 * Platform/CoreIPC/DataReference.cpp:
1798 (CoreIPC::DataReference::decode):
1799 * Platform/CoreIPC/DataReference.h:
1801 * Platform/CoreIPC/StringReference.cpp:
1802 (CoreIPC::StringReference::decode):
1803 * Platform/CoreIPC/StringReference.h:
1805 * Platform/CoreIPC/mac/MachPort.h:
1806 (CoreIPC::MachPort::decode):
1807 * Platform/SharedMemory.h:
1809 * Platform/mac/SharedMemoryMac.cpp:
1810 (WebKit::SharedMemory::Handle::decode):
1811 * PluginProcess/PluginCreationParameters.cpp:
1812 (WebKit::PluginCreationParameters::decode):
1813 * PluginProcess/PluginCreationParameters.h:
1814 (PluginCreationParameters):
1815 * Shared/DictionaryPopupInfo.cpp:
1816 (WebKit::DictionaryPopupInfo::decode):
1817 * Shared/DictionaryPopupInfo.h:
1818 (DictionaryPopupInfo):
1819 * Shared/EditorState.cpp:
1820 (WebKit::EditorState::decode):
1821 * Shared/EditorState.h:
1823 * Shared/FontInfo.cpp:
1824 (WebKit::FontInfo::decode):
1825 * Shared/FontInfo.h:
1827 * Shared/LayerTreeContext.h:
1829 * Shared/Network/NetworkProcessCreationParameters.cpp:
1830 (WebKit::NetworkProcessCreationParameters::decode):
1831 * Shared/Network/NetworkProcessCreationParameters.h:
1832 (NetworkProcessCreationParameters):
1833 * Shared/Network/NetworkResourceLoadParameters.cpp:
1834 (WebKit::NetworkResourceLoadParameters::decode):
1835 * Shared/Network/NetworkResourceLoadParameters.h:
1836 (NetworkResourceLoadParameters):
1837 * Shared/OriginAndDatabases.cpp:
1838 (WebKit::OriginAndDatabases::decode):
1839 * Shared/OriginAndDatabases.h:
1840 (OriginAndDatabases):
1841 * Shared/PlatformPopupMenuData.cpp:
1842 (WebKit::PlatformPopupMenuData::decode):
1843 * Shared/PlatformPopupMenuData.h:
1844 (PlatformPopupMenuData):
1845 * Shared/Plugins/NPIdentifierData.cpp:
1846 (WebKit::NPIdentifierData::decode):
1847 * Shared/Plugins/NPIdentifierData.h:
1849 * Shared/Plugins/NPVariantData.cpp:
1850 (WebKit::NPVariantData::decode):
1851 * Shared/Plugins/NPVariantData.h:
1853 * Shared/Plugins/PluginProcessCreationParameters.cpp:
1854 (WebKit::PluginProcessCreationParameters::decode):
1855 * Shared/Plugins/PluginProcessCreationParameters.h:
1856 (PluginProcessCreationParameters):
1857 * Shared/PrintInfo.cpp:
1858 (WebKit::PrintInfo::decode):
1859 * Shared/PrintInfo.h:
1861 * Shared/SandboxExtension.h:
1864 (WebKit::SandboxExtension::Handle::decode):
1865 (WebKit::SandboxExtension::HandleArray::decode):
1866 * Shared/SecurityOriginData.cpp:
1867 (WebKit::SecurityOriginData::decode):
1868 * Shared/SecurityOriginData.h:
1869 (SecurityOriginData):
1870 * Shared/SessionState.cpp:
1871 (WebKit::SessionState::decode):
1872 * Shared/SessionState.h:
1874 * Shared/ShareableBitmap.cpp:
1875 (WebKit::ShareableBitmap::Handle::decode):
1876 * Shared/ShareableBitmap.h:
1878 * Shared/ShareableResource.cpp:
1879 (WebKit::ShareableResource::Handle::decode):
1880 * Shared/ShareableResource.h:
1882 * Shared/SharedWorkerProcessCreationParameters.cpp:
1883 (WebKit::SharedWorkerProcessCreationParameters::decode):
1884 * Shared/SharedWorkerProcessCreationParameters.h:
1885 (SharedWorkerProcessCreationParameters):
1886 * Shared/StatisticsData.cpp:
1887 (WebKit::StatisticsData::decode):
1888 * Shared/StatisticsData.h:
1890 * Shared/StringPairVector.h:
1891 (WebKit::StringPairVector::decode):
1892 * Shared/UpdateInfo.cpp:
1893 (WebKit::UpdateInfo::decode):
1894 * Shared/UpdateInfo.h:
1896 * Shared/UserMessageCoders.h:
1897 (WebKit::UserMessageDecoder::baseDecode):
1898 * Shared/WebContextMenuItemData.cpp:
1899 (WebKit::WebContextMenuItemData::decode):
1900 * Shared/WebContextMenuItemData.h:
1901 (WebContextMenuItemData):
1902 * Shared/WebCoreArgumentCoders.cpp:
1903 (CoreIPC::::decode):
1904 (CoreIPC::decodeImage):
1905 * Shared/WebCoreArgumentCoders.h:
1906 * Shared/WebEvent.cpp:
1907 (WebKit::WebEvent::decode):
1908 * Shared/WebEvent.h:
1914 (WebPlatformTouchPoint):
1916 * Shared/WebGeolocationPosition.cpp:
1917 (WebKit::WebGeolocationPosition::Data::decode):
1918 * Shared/WebGeolocationPosition.h:
1920 * Shared/WebGestureEvent.cpp:
1921 (WebKit::WebGestureEvent::decode):
1922 * Shared/WebHitTestResult.cpp:
1923 (WebKit::WebHitTestResult::Data::decode):
1924 * Shared/WebHitTestResult.h:
1926 * Shared/WebKeyboardEvent.cpp:
1927 (WebKit::WebKeyboardEvent::decode):
1928 * Shared/WebMouseEvent.cpp:
1929 (WebKit::WebMouseEvent::decode):
1930 * Shared/WebNavigationDataStore.h:
1931 (WebKit::WebNavigationDataStore::decode):
1932 * Shared/WebPageCreationParameters.cpp:
1933 (WebKit::WebPageCreationParameters::decode):
1934 * Shared/WebPageCreationParameters.h:
1935 (WebPageCreationParameters):
1936 * Shared/WebPageGroupData.cpp:
1937 (WebKit::WebPageGroupData::decode):
1938 * Shared/WebPageGroupData.h:
1940 * Shared/WebPlatformTouchPoint.cpp:
1941 (WebKit::WebPlatformTouchPoint::decode):
1942 * Shared/WebPopupItem.cpp:
1943 (WebKit::WebPopupItem::decode):
1944 * Shared/WebPopupItem.h:
1945 * Shared/WebPreferencesStore.cpp:
1946 (WebKit::WebPreferencesStore::decode):
1947 * Shared/WebPreferencesStore.h:
1948 (WebPreferencesStore):
1949 * Shared/WebProcessCreationParameters.cpp:
1950 (WebKit::WebProcessCreationParameters::decode):
1951 * Shared/WebProcessCreationParameters.h:
1952 (WebProcessCreationParameters):
1953 * Shared/WebTouchEvent.cpp:
1954 (WebKit::WebTouchEvent::decode):
1955 * Shared/WebWheelEvent.cpp:
1956 (WebKit::WebWheelEvent::decode):
1957 * Shared/cf/ArgumentCodersCF.cpp:
1959 * Shared/cf/ArgumentCodersCF.h:
1961 * Shared/mac/ArgumentCodersMac.h:
1963 * Shared/mac/ArgumentCodersMac.mm:
1965 * Shared/mac/AttributedString.h:
1967 * Shared/mac/AttributedString.mm:
1968 (WebKit::AttributedString::decode):
1969 * Shared/mac/ColorSpaceData.h:
1971 * Shared/mac/ColorSpaceData.mm:
1972 (WebKit::ColorSpaceData::decode):
1973 * Shared/mac/LayerTreeContextMac.mm:
1974 (WebKit::LayerTreeContext::decode):
1975 * Shared/mac/ObjCObjectGraphCoders.h:
1976 (WebContextObjCObjectGraphDecoder):
1977 (InjectedBundleObjCObjectGraphDecoder):
1978 * Shared/mac/ObjCObjectGraphCoders.mm:
1979 (WebKit::ObjCObjectGraphDecoder::baseDecode):
1980 (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
1981 (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
1982 (WebKit::WebContextObjCObjectGraphDecoder::decode):
1983 (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
1984 * Shared/mac/PlatformCertificateInfo.h:
1985 (PlatformCertificateInfo):
1986 * Shared/mac/PlatformCertificateInfo.mm:
1987 (WebKit::PlatformCertificateInfo::decode):
1988 * Shared/mac/RemoteLayerTreeTransaction.h:
1990 (RemoteLayerTreeTransaction):
1991 * Shared/mac/RemoteLayerTreeTransaction.mm:
1992 (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
1993 (WebKit::RemoteLayerTreeTransaction::decode):
1994 * Shared/mac/SandboxExtensionMac.mm:
1995 (WebKit::SandboxExtension::Handle::decode):
1996 (WebKit::SandboxExtension::HandleArray::decode):
1997 * Shared/mac/SecItemRequestData.cpp:
1998 (WebKit::SecItemRequestData::decode):
1999 * Shared/mac/SecItemRequestData.h:
2000 * Shared/mac/SecItemResponseData.cpp:
2001 (WebKit::SecItemResponseData::decode):
2002 * Shared/mac/SecItemResponseData.h:
2003 (SecItemResponseData):
2004 * Shared/mac/WebCoreArgumentCodersMac.mm:
2005 (CoreIPC::::decodePlatformData):
2006 (CoreIPC::::decode):
2007 * UIProcess/WebContextUserMessageCoders.h:
2008 (WebKit::WebContextUserMessageDecoder::decode):
2009 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2010 (WebKit::InjectedBundleUserMessageDecoder::decode):
2011 * WebProcess/Plugins/Plugin.cpp:
2012 (WebKit::Plugin::Parameters::decode):
2013 * WebProcess/Plugins/Plugin.h:
2016 2013-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2018 [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
2019 https://bugs.webkit.org/show_bug.cgi?id=108607
2021 Reviewed by Anders Carlsson.
2023 * Platform/gtk/WorkQueueGtk.cpp:
2024 (WorkQueue::EventSource::executeEventSource): Remove the is valid
2026 (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
2027 reference when a new job is scheduled and unref it when it
2030 2013-02-01 Sheriff Bot <webkit.review.bot@gmail.com>
2032 Unreviewed, rolling out r141319.
2033 http://trac.webkit.org/changeset/141319
2034 https://bugs.webkit.org/show_bug.cgi?id=108629
2036 This patch is causing the UIProcess to hang on GTK port when
2037 loading plugins (Requested by chris-qBT_laptop on #webkit).
2039 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2040 (WebKit::PluginProcessProxy::scanPlugin):
2042 2013-02-01 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2044 [EFL][WK2] EwkContext should be based on C WK2 API
2045 https://bugs.webkit.org/show_bug.cgi?id=107666
2047 Reviewed by Andreas Kling.
2049 EwkContext should be based on C WK2 API so that API layering is not violated.
2051 * UIProcess/API/efl/EwkView.cpp:
2053 * UIProcess/API/efl/ewk_context.cpp:
2054 (EwkContext::EwkContext):
2055 (EwkContext::create):
2056 (EwkContext::cookieManager):
2057 (EwkContext::ensureFaviconDatabase):
2058 (EwkContext::setFaviconDatabaseDirectoryPath):
2059 (EwkContext::addVisitedLink):
2060 (EwkContext::setCacheModel):
2061 (EwkContext::cacheModel):
2062 (EwkContext::setAdditionalPluginPath):
2063 (EwkContext::clearResourceCache):
2064 * UIProcess/API/efl/ewk_context_private.h:
2066 * UIProcess/API/efl/ewk_view.cpp:
2067 (ewk_view_base_add):
2069 2013-02-01 Christophe Dumez <christophe.dumez@intel.com>
2071 [EFL][WK2] Use C API inside ewk_auth_request
2072 https://bugs.webkit.org/show_bug.cgi?id=107806
2074 Reviewed by Andreas Kling.
2076 Use C API inside ewk_auth_request instead of accessing C++ internal
2077 classes directly, to avoid violating layering.
2079 * UIProcess/API/efl/ewk_auth_request.cpp:
2080 (EwkAuthRequest::EwkAuthRequest):
2081 (EwkAuthRequest::suggestedUsername):
2082 (EwkAuthRequest::realm):
2083 (EwkAuthRequest::host):
2084 (EwkAuthRequest::continueWithoutCredential):
2085 (EwkAuthRequest::authenticate):
2086 (EwkAuthRequest::isRetrying):
2087 (ewk_auth_request_authenticate):
2088 * UIProcess/API/efl/ewk_auth_request_private.h:
2089 (EwkAuthRequest::create):
2091 * UIProcess/efl/PageLoadClientEfl.cpp:
2092 (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
2094 2013-02-01 Seulgi Kim <seulgikim@company100.net>
2096 [Gtk][WK2] Fix build after recent WebKit2 changes
2097 https://bugs.webkit.org/show_bug.cgi?id=108588
2099 Reviewed by Andreas Kling.
2101 Don't remove WorkQueue during execution.
2102 Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2104 * Platform/gtk/WorkQueueGtk.cpp:
2105 (WorkQueue::EventSource::~EventSource):
2106 (WorkQueue::EventSource::executeEventSource):
2107 (WorkQueue::dispatch):
2108 (WorkQueue::dispatchAfterDelay):
2109 (WorkQueue::dispatchOnTermination):
2111 2013-02-01 Alexis Menard <alexis@webkit.org>
2113 Enable unprefixed CSS transitions by default.
2114 https://bugs.webkit.org/show_bug.cgi?id=108216
2116 Reviewed by Dean Jackson.
2118 Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2119 to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
2120 guard the unprefixing work for CSS Transforms and animations.
2122 * Configurations/FeatureDefines.xcconfig:
2124 2013-02-01 Jae Hyun Park <jae.park@company100.net>
2126 Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
2127 https://bugs.webkit.org/show_bug.cgi?id=108590
2129 Reviewed by Noam Rosenthal.
2131 Sort class declarations in alphabetical order.
2133 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2136 2013-02-01 Gwang Yoon Hwang <ryumiel@company100.net>
2138 [EFL][WK2] MiniBrowser segfaults on loading google.com
2139 https://bugs.webkit.org/show_bug.cgi?id=108597
2141 Reviewed by Andreas Kling.
2143 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2144 (CoreIPC::Connection::processMessage):
2145 oolMessageBody should be properly initialized before it is used.
2147 This patch also adds omitted break statement.
2149 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2151 [Qt] Add MessageFlags.h in Target.pri
2152 https://bugs.webkit.org/show_bug.cgi?id=108583
2154 Reviewed by Kentaro Hara.
2156 Since MessageDecoder and MessageEncoder include MessageFlags.h, it
2157 should be included in Target.pri.
2161 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2163 Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
2164 https://bugs.webkit.org/show_bug.cgi?id=108149
2166 Reviewed by Noam Rosenthal.
2168 This patch moves Coordinated Graphics related code to WebCore. To
2169 implement Threaded Coordinated Graphics, most of Coordianted Graphics
2170 code should be shared. Therefore, they should reside in WebCore instead of
2173 When moving to WebCore, two renamings have been done.
2175 1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
2177 2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
2178 CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
2181 No new tests, covered by existing tests.
2184 * Scripts/webkit2/messages.py:
2185 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2186 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2187 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2189 * UIProcess/API/efl/EwkView.cpp:
2190 * UIProcess/API/efl/EwkView.h:
2191 * UIProcess/API/qt/qquickwebpage.cpp:
2192 * UIProcess/API/qt/raw/qrawwebview.cpp:
2193 * UIProcess/API/qt/raw/qrawwebview_p.h:
2194 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2195 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2196 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2197 * UIProcess/efl/PageClientBase.cpp:
2198 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2199 * UIProcess/qt/QtWebPageSGNode.cpp:
2200 * UIProcess/qt/QtWebPageSGNode.h:
2201 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2202 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2204 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2206 [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
2207 https://bugs.webkit.org/show_bug.cgi?id=108548
2209 Reviewed by Anders Carlsson.
2211 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2212 (CoreIPC::Connection::platformInvalidate):
2213 (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
2214 logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
2215 (CoreIPC::Connection::open):
2216 (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
2217 * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
2218 count when the execution is started and decrease it when the work item is deleted,
2219 following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2220 (WorkQueue::WorkItemQt::~WorkItemQt):
2221 (WorkQueue::WorkItemQt::execute):
2222 (WorkQueue::dispatch):
2223 (WorkQueue::dispatchAfterDelay):
2224 * UIProcess/WebPageProxy.cpp:
2225 (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
2226 mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
2228 2013-01-31 Changhun Kang <temoochin@company100.net>
2230 Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2231 https://bugs.webkit.org/show_bug.cgi?id=108308
2233 Reviewed by Dimitri Glazkov.
2235 2013-01-31 Anders Carlsson <andersca@apple.com>
2237 StorageManager should be ref-counted
2238 https://bugs.webkit.org/show_bug.cgi?id=108553
2240 Reviewed by Beth Dakin.
2242 It's likely we'd want to have the storage manager outlive its context at times, so make it
2245 * UIProcess/Storage/StorageManager.cpp:
2246 (WebKit::StorageManager::create):
2248 * UIProcess/Storage/StorageManager.h:
2250 * UIProcess/WebContext.cpp:
2251 (WebKit::WebContext::WebContext):
2252 * UIProcess/WebContext.h:
2255 2013-01-31 Anders Carlsson <andersca@apple.com>
2257 WorkQueue should be a ref-counted class
2258 https://bugs.webkit.org/show_bug.cgi?id=108544
2260 Reviewed by Sam Weinig.
2262 Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
2263 implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
2264 and ensures that the WorkQueue object won't go away while dispatched functions are running.
2266 * Platform/CoreIPC/Connection.cpp:
2267 (CoreIPC::Connection::Connection):
2268 (CoreIPC::Connection::~Connection):
2269 (CoreIPC::Connection::addQueueClient):
2270 (CoreIPC::Connection::removeQueueClient):
2271 (CoreIPC::Connection::invalidate):
2272 (CoreIPC::Connection::sendMessage):
2273 (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
2274 (CoreIPC::Connection::connectionDidClose):
2275 * Platform/CoreIPC/Connection.h:
2277 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2278 (CoreIPC::createDataAvailableSource):
2279 (CoreIPC::Connection::open):
2280 (CoreIPC::Connection::initializeDeadNameSource):
2281 * Platform/WorkQueue.cpp:
2282 (WorkQueue::create):
2283 (WorkQueue::WorkQueue):
2284 (WorkQueue::~WorkQueue):
2285 * Platform/WorkQueue.h:
2287 * Platform/mac/WorkQueueMac.cpp:
2288 (WorkQueue::dispatch):
2289 (WorkQueue::dispatchAfterDelay):
2290 * Shared/ChildProcess.cpp:
2291 (WebKit::didCloseOnConnectionWorkQueue):
2292 * UIProcess/Launcher/ProcessLauncher.cpp:
2293 (WebKit::processLauncherWorkQueue):
2294 (WebKit::ProcessLauncher::ProcessLauncher):
2295 * UIProcess/WebProcessProxy.cpp:
2296 (WebKit::pluginWorkQueue):
2297 (WebKit::WebProcessProxy::getPlugins):
2299 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2301 [Qt][WK2] Fix build after removal of MessageID.h
2302 https://bugs.webkit.org/show_bug.cgi?id=108534
2304 Reviewed by Anders Carlsson.
2306 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2307 (CoreIPC::MessageInfo::MessageInfo):
2308 (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
2309 (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
2311 (CoreIPC::Connection::processMessage):
2312 (CoreIPC::Connection::sendOutgoingMessage):
2314 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2315 * UIProcess/DrawingAreaProxy.cpp:
2316 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2317 * WebProcess/soup/WebSoupRequestManager.cpp:
2319 2013-01-31 Brady Eidson <beidson@apple.com>
2321 Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
2322 <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
2324 Reviewed by Alexey Proskuryakov.
2326 * WebProcess/Network/WebResourceLoadScheduler.cpp:
2327 (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
2328 NetworkProcess, still add this ResourceLoader to the scheduler's records.
2330 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2332 Unreviewed trivial Unix build fix.
2334 Use Vector<> instead of Deque<> when iterating
2335 over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
2338 * Platform/CoreIPC/ArgumentDecoder.cpp:
2340 2013-01-30 Brian Weinstein <bweinstein@apple.com>
2342 Add a call to the page UI client to determine if a plug-in should load
2343 https://bugs.webkit.org/show_bug.cgi?id=108407
2344 <rdar://problem/13066332>
2346 Reviewed by Anders Carlsson.
2348 This patch adds a client call to the WKPageUIClient to be called to determine
2349 whether or not a plug-in should load.
2351 * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
2352 * UIProcess/WebPageProxy.cpp:
2353 (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
2354 m_uiClient.shouldInstantiatePlugin.
2355 * UIProcess/WebPageProxy.h:
2356 * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
2357 * UIProcess/WebProcessProxy.cpp:
2358 (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
2359 * UIProcess/WebProcessProxy.h:
2360 * UIProcess/WebUIClient.cpp:
2361 (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
2362 the client function isn't defined, and call the function if it is.
2363 * UIProcess/WebUIClient.h:
2364 * UIProcess/mac/WebInspectorProxyMac.mm:
2365 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
2367 * WebProcess/WebPage/WebPage.cpp:
2368 (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
2369 (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
2370 send the message to the WebPageProxy, not the WebProcessProxy.
2371 * WebProcess/WebPage/WebPage.h:
2373 2013-01-31 Anders Carlsson <andersca@apple.com>
2375 Use a Vector for IPC attachments
2376 https://bugs.webkit.org/show_bug.cgi?id=108517
2378 Reviewed by Sam Weinig.
2380 We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
2382 * Platform/CoreIPC/ArgumentDecoder.cpp:
2383 (CoreIPC::ArgumentDecoder::create):
2384 (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2385 (CoreIPC::ArgumentDecoder::removeAttachment):
2386 * Platform/CoreIPC/ArgumentDecoder.h:
2388 * Platform/CoreIPC/Connection.h:
2389 * Platform/CoreIPC/MessageDecoder.cpp:
2390 (CoreIPC::MessageDecoder::create):
2391 (CoreIPC::MessageDecoder::MessageDecoder):
2392 * Platform/CoreIPC/MessageDecoder.h:
2394 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2395 (CoreIPC::createMessageDecoder):
2397 2013-01-31 Joseph Pecoraro <pecoraro@apple.com>
2399 Disable ENABLE_FULLSCREEN_API on iOS
2400 https://bugs.webkit.org/show_bug.cgi?id=108250
2402 Reviewed by Benjamin Poulain.
2404 * Configurations/FeatureDefines.xcconfig:
2406 2013-01-31 Enrica Casucci <enrica@apple.com>
2408 WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2409 https://bugs.webkit.org/show_bug.cgi?id=108396.
2410 <rdar://problem/12920461>
2412 Reviewed by Alexey Proskuryakov.
2414 This patch adds new bundle client API to receive notifications
2415 relative the pasteboard activity. There are 2 new API added to
2416 InjectedBundleEditorClient, to receive notification before and
2417 after the pasteboard content is added and one API to provide
2418 additional content to add to the pasteboard.
2419 In order to create content to add to the pasteboard, WKWebArchiveRef
2420 and WKWebArchiveResourcesRef have been added to the set of API level
2422 This work is a joint effort with Sam Weinig who contributed the
2423 support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
2424 files. Sam is the author of the first chunk of changes listed below.
2426 * Shared/API/c/WKBase.h:
2427 * Shared/API/c/WKSharedAPICast.h:
2428 * Shared/API/c/mac/WKWebArchive.cpp: Added.
2429 (WKWebArchiveGetTypeID):
2430 (WKWebArchiveCreate):
2431 (WKWebArchiveCreateWithData):
2432 (WKWebArchiveCreateFromRange):
2433 (WKWebArchiveCopyMainResource):
2434 (WKWebArchiveCopySubresources):
2435 (WKWebArchiveCopySubframeArchives):
2436 (WKWebArchiveCopyData):
2437 * Shared/API/c/mac/WKWebArchive.h: Added.
2438 * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
2439 (WKWebArchiveResourceGetTypeID):
2440 (WKWebArchiveResourceCreate):
2441 (WKWebArchiveResourceCopyData):
2442 (WKWebArchiveResourceCopyURL):
2443 (WKWebArchiveResourceCopyMIMEType):
2444 (WKWebArchiveResourceCopyTextEncoding):
2445 * Shared/API/c/mac/WKWebArchiveResource.h: Added.
2446 * Shared/APIObject.h:
2447 * Shared/WebArchive.cpp: Added.
2448 (WebKit::WebArchive::create):
2449 (WebKit::WebArchive::WebArchive):
2450 (WebKit::WebArchive::~WebArchive):
2451 (WebKit::WebArchive::mainResource):
2452 (WebKit::WebArchive::subresources):
2453 (WebKit::WebArchive::subframeArchives):
2454 (WebKit::releaseCFData):
2455 (WebKit::WebArchive::data):
2456 (WebKit::WebArchive::coreLegacyWebArchive):
2457 * Shared/WebArchive.h: Added.
2458 (WebKit::WebArchive::type):
2459 * Shared/WebArchiveResource.cpp: Added.
2460 (WebKit::WebArchiveResource::create):
2461 (WebKit::WebArchiveResource::WebArchiveResource):
2462 (WebKit::WebArchiveResource::~WebArchiveResource):
2463 (WebKit::releaseCFData):
2464 (WebKit::WebArchiveResource::data):
2465 (WebKit::WebArchiveResource::URL):
2466 (WebKit::WebArchiveResource::MIMEType):
2467 (WebKit::WebArchiveResource::textEncoding):
2468 (WebKit::WebArchiveResource::coreArchiveResource):
2469 * Shared/WebArchiveResource.h: Added.
2470 (WebKit::WebArchiveResource::type):
2471 * WebKit2.xcodeproj/project.pbxproj:
2473 * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
2474 * Shared/APIClientTraits.h:
2475 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2476 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2477 (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
2478 (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
2479 (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
2480 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
2481 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2482 (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
2483 (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
2484 (WebKit::WebEditorClient::getClientPasteboardDataForRange):
2485 * WebProcess/WebCoreSupport/WebEditorClient.h:
2487 2013-01-31 Anders Carlsson <andersca@apple.com>
2490 https://bugs.webkit.org/show_bug.cgi?id=108516
2492 Reviewed by Sam Weinig.
2494 * Platform/CoreIPC/Connection.cpp:
2495 (CoreIPC::Connection::processIncomingMessage):
2496 (CoreIPC::Connection::sendOutgoingMessages):
2497 (CoreIPC::Connection::dispatchSyncMessage):
2498 (CoreIPC::Connection::dispatchMessage):
2499 * Platform/CoreIPC/Connection.h:
2502 * Platform/CoreIPC/MessageID.h: Removed.
2503 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2504 (CoreIPC::Connection::sendOutgoingMessage):
2505 (CoreIPC::Connection::receiveSourceEventHandler):
2506 * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
2507 * Shared/CoreIPCSupport/WebContextMessageKinds.h:
2508 * UIProcess/DrawingAreaProxy.h:
2510 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2511 * UIProcess/WebApplicationCacheManagerProxy.h:
2512 * UIProcess/WebContext.cpp:
2513 (WebKit::WebContext::WebContext):
2514 (WebKit::WebContext::didReceiveMessage):
2515 (WebKit::WebContext::didReceiveSyncMessage):
2516 * UIProcess/WebCookieManagerProxy.h:
2517 * UIProcess/WebFrameProxy.h:
2519 * UIProcess/WebFullScreenManagerProxy.h:
2521 * UIProcess/WebIconDatabase.h:
2523 * UIProcess/WebPageProxy.cpp:
2524 * UIProcess/WebPageProxy.h:
2526 * WebKit2.xcodeproj/project.pbxproj:
2527 * WebProcess/FullScreen/WebFullScreenManager.cpp:
2528 * WebProcess/FullScreen/WebFullScreenManager.h:
2530 * WebProcess/InjectedBundle/InjectedBundle.cpp:
2531 (WebKit::InjectedBundle::postMessage):
2532 (WebKit::InjectedBundle::postSynchronousMessage):
2533 * WebProcess/InjectedBundle/InjectedBundle.h:
2535 * WebProcess/WebPage/DrawingArea.h:
2537 * WebProcess/WebPage/LayerTreeHost.h:
2539 * WebProcess/WebPage/WebPage.cpp:
2540 * WebProcess/WebPage/WebPage.h:
2542 * WebProcess/WebPage/WebPageGroupProxy.h:
2545 2013-01-31 Mike West <mkwst@chromium.org>
2547 Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
2548 https://bugs.webkit.org/show_bug.cgi?id=108476
2550 Reviewed by Anders Carlsson.
2552 * WebProcess/Plugins/PluginView.cpp:
2553 (WebKit::PluginView::storageBlockingStateChanged):
2554 (WebKit::PluginView::isPrivateBrowsingEnabled):
2556 2013-01-31 Anders Carlsson <andersca@apple.com>
2558 Get rid of IncomingMessage
2559 https://bugs.webkit.org/show_bug.cgi?id=108514
2561 Reviewed by Sam Weinig.
2563 * Platform/CoreIPC/Connection.cpp:
2564 (Connection::SyncMessageState):
2565 (ConnectionAndIncomingMessage):
2566 (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
2567 (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
2568 (CoreIPC::Connection::SyncMessageState::dispatchMessages):
2569 (CoreIPC::Connection::waitForMessage):
2570 (CoreIPC::Connection::processIncomingMessage):
2571 (CoreIPC::Connection::enqueueIncomingMessage):
2572 (CoreIPC::Connection::dispatchMessage):
2573 (CoreIPC::Connection::dispatchOneMessage):
2574 * Platform/CoreIPC/Connection.h:
2577 2013-01-31 Patrick Gansterer <paroga@webkit.org>
2579 Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
2580 https://bugs.webkit.org/show_bug.cgi?id=108439
2582 Reviewed by Brent Fulgham.
2584 PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
2586 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2588 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2590 Unreviewed build fix: Remove Web Intents files from
2591 the Qt build system.
2595 2013-01-31 Zan Dobersek <zdobersek@igalia.com>
2597 Unreviewed GTK build fix.
2598 Removing build targets for Web Intents files that were removed in r141448.
2600 * GNUmakefile.list.am:
2602 2013-01-31 Anders Carlsson <andersca@apple.com>
2604 Remove Web Intents code from WebKit2
2605 https://bugs.webkit.org/show_bug.cgi?id=108506
2607 Reviewed by Simon Fraser.
2609 Since nobody builds with Web Intents enabled anymore, and since the code is going to
2610 be removed from WebCore, remove it from WebKit2.
2612 * Shared/API/c/WKBase.h:
2613 * Shared/APIClientTraits.cpp:
2615 * Shared/APIObject.h:
2616 * Shared/IntentData.cpp: Removed.
2617 * Shared/IntentData.h: Removed.
2618 * Shared/IntentServiceInfo.cpp: Removed.
2619 * Shared/IntentServiceInfo.h: Removed.
2620 * Shared/WebIntentServiceInfo.cpp: Removed.
2621 * Shared/WebIntentServiceInfo.h: Removed.
2622 * UIProcess/API/C/WKAPICast.h:
2624 * UIProcess/API/C/WKIntentData.cpp: Removed.
2625 * UIProcess/API/C/WKIntentData.h: Removed.
2626 * UIProcess/API/C/WKIntentServiceInfo.cpp: Removed.
2627 * UIProcess/API/C/WKIntentServiceInfo.h: Removed.
2628 * UIProcess/API/C/WKPage.cpp:
2629 * UIProcess/API/C/WKPage.h:
2630 * UIProcess/WebIntentData.cpp: Removed.
2631 * UIProcess/WebIntentData.h: Removed.
2632 * UIProcess/WebLoaderClient.cpp:
2633 * UIProcess/WebLoaderClient.h:
2636 * UIProcess/WebPageProxy.cpp:
2637 * UIProcess/WebPageProxy.h:
2640 * UIProcess/WebPageProxy.messages.in:
2641 * UIProcess/WebProcessProxy.cpp:
2642 * UIProcess/WebProcessProxy.h:
2644 * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
2646 * WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp: Removed.
2647 * WebProcess/InjectedBundle/API/c/WKBundleIntent.h: Removed.
2648 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Removed.
2649 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Removed.
2650 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2651 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2652 * WebProcess/InjectedBundle/InjectedBundleIntent.cpp: Removed.
2653 * WebProcess/InjectedBundle/InjectedBundleIntent.h: Removed.
2654 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Removed.
2655 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Removed.
2656 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2657 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2659 (InjectedBundlePageLoaderClient):
2660 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2662 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2663 (WebFrameLoaderClient):
2664 * WebProcess/WebPage/WebFrame.cpp:
2665 * WebProcess/WebPage/WebFrame.h:
2669 * WebProcess/WebPage/WebPage.cpp:
2670 * WebProcess/WebPage/WebPage.h:
2674 * WebProcess/WebPage/WebPage.messages.in:
2675 * WebProcess/WebProcess.cpp:
2676 * WebProcess/WebProcess.h:
2679 * WebProcess/WebProcess.messages.in:
2681 2013-01-31 Brady Eidson <beidson@apple.com>
2683 Lack of a log level string should not obliterate compiled in logging channel state.
2684 https://bugs.webkit.org/show_bug.cgi?id=108502
2686 Reviewed by Alexey Proskuryakov and Sam Weinig.
2688 * Platform/mac/Logging.mac.mm:
2689 (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone.
2691 2013-01-31 Alexey Proskuryakov <ap@apple.com>
2693 WebProcess sandbox profile overhaul.
2695 Reviewed by Sam Weinig.
2697 Moves some rules together by susbystem for easier maintenance.
2699 Addresses <rdar://problem/9276393>, <rdar://problem/10844321>, <rdar://problem/12408537>,
2700 <rdar://problem/12558524>.
2702 * WebProcess/com.apple.WebProcess.sb.in:
2704 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2706 Unreviewed trivial build fix: Pre C++11 the use of
2707 >> in nested templates is ambiguous in the grammar and
2708 requires the insertion of a space here. Since these files are
2709 not Mac specific we don't require C++11 yet and a space
2712 * Platform/CoreIPC/Connection.h:
2714 * Shared/ChildProcessProxy.h:
2715 (ChildProcessProxy):
2717 2013-01-31 Christophe Dumez <dchris@gmail.com>
2719 [EFL] Disable Web Intents
2720 https://bugs.webkit.org/show_bug.cgi?id=108457
2722 Reviewed by Alexey Proskuryakov.
2724 Remove code related to Web Intents from EFL
2728 * PlatformEfl.cmake:
2729 * UIProcess/API/efl/EWebKit2.h:
2730 * UIProcess/API/efl/EwkViewCallbacks.h:
2731 * UIProcess/API/efl/ewk_intent.cpp: Removed.
2732 * UIProcess/API/efl/ewk_intent.h: Removed.
2733 * UIProcess/API/efl/ewk_intent_private.h: Removed.
2734 * UIProcess/API/efl/ewk_intent_service.cpp: Removed.
2735 * UIProcess/API/efl/ewk_intent_service.h: Removed.
2736 * UIProcess/API/efl/ewk_intent_service_private.h: Removed.
2737 * UIProcess/API/efl/ewk_view.cpp:
2738 * UIProcess/API/efl/ewk_view.h:
2739 * UIProcess/API/efl/tests/resources/intent-request.html: Removed.
2740 * UIProcess/API/efl/tests/resources/intent-service.html: Removed.
2741 * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed.
2742 * UIProcess/efl/PageLoadClientEfl.cpp:
2743 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
2744 * UIProcess/efl/PageLoadClientEfl.h:
2745 (PageLoadClientEfl):
2747 2013-01-31 Alexey Proskuryakov <ap@apple.com>
2749 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
2751 Address review comments.
2753 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2754 * WebProcess/com.apple.WebProcess.sb.in:
2756 2013-01-31 Anders Carlsson <andersca@apple.com>
2758 Stop using OutgoingMessage
2759 https://bugs.webkit.org/show_bug.cgi?id=108495
2761 Reviewed by Sam Weinig.
2763 * Platform/CoreIPC/Connection.cpp:
2764 (CoreIPC::Connection::sendMessage):
2765 (CoreIPC::Connection::sendOutgoingMessages):
2766 * Platform/CoreIPC/Connection.h:
2768 * Shared/ChildProcessProxy.cpp:
2769 (WebKit::ChildProcessProxy::~ChildProcessProxy):
2770 (WebKit::ChildProcessProxy::sendMessage):
2771 (WebKit::ChildProcessProxy::didFinishLaunching):
2772 * Shared/ChildProcessProxy.h:
2773 (ChildProcessProxy):
2775 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2777 [Qt] Make it possible to compile WebKit2 Qt related files without access to internal WK2 C++ API
2778 https://bugs.webkit.org/show_bug.cgi?id=108472
2780 Reviewed by Andreas Kling.
2782 Add a new module to the qmake build system that represents the part of the WebKit2 Qt integration
2783 that doesn't depend on WebKit2 internals.
2785 Changed qwebnavigationhistory.cpp to not use any internal headers and compile it as part of the
2786 internals-free module.
2789 * UIProcess/API/qt/qwebnavigationhistory.cpp:
2791 * WebKit2QML.pri: Added.
2793 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2795 Unreviewed trivial build fix: Add missing virtual destructor to
2796 LayerTreeRendererClient. Otherwise the build with -Werror breaks, which
2797 complains (rightly so) that we're deleting a sub-class where the super class
2798 doesn't have a virtual destructor.
2800 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2801 (WebKit::LayerTreeRendererClient::~LayerTreeRendererClient):
2803 2013-01-31 Seulgi Kim <seulgikim@company100.net>
2805 Coordinated Graphics: view the debug border/repaint count of the non composited layer.
2806 https://bugs.webkit.org/show_bug.cgi?id=108401
2808 Reviewed by Noam Rosenthal.
2810 Make non-compositing layer draw debug border and show repaint counter
2811 accroding to settings.
2813 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2814 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
2816 2013-01-31 Paweł Forysiuk <tuxator@o2.pl>
2818 InjectedBundle is being built even with --disable-webkit2
2819 https://bugs.webkit.org/show_bug.cgi?id=108364
2821 Reviewed by Gustavo Noronha Silva.
2823 * GNUmakefile.am: Wrap Injected bundle with ENABLE_WEBKIT2 condition
2825 2013-01-31 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2827 [EFL][WK2] RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl should be based on C API
2828 https://bugs.webkit.org/show_bug.cgi?id=107685
2830 Reviewed by Benjamin Poulain.
2832 RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl
2833 should be based on C API so that API layering is not violated.
2835 * UIProcess/API/efl/ewk_context.cpp:
2836 (EwkContext::EwkContext):
2837 * UIProcess/efl/ContextHistoryClientEfl.cpp:
2838 (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
2839 (WebKit::ContextHistoryClientEfl::~ContextHistoryClientEfl):
2840 * UIProcess/efl/ContextHistoryClientEfl.h:
2841 (WebKit::ContextHistoryClientEfl::create):
2842 (ContextHistoryClientEfl):
2843 * UIProcess/efl/DownloadManagerEfl.cpp:
2844 (WebKit::DownloadManagerEfl::DownloadManagerEfl):
2845 (WebKit::DownloadManagerEfl::~DownloadManagerEfl):
2846 * UIProcess/efl/DownloadManagerEfl.h:
2847 (WebKit::DownloadManagerEfl::create):
2848 (DownloadManagerEfl):
2849 * UIProcess/efl/RequestManagerClientEfl.cpp:
2850 (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
2851 * UIProcess/efl/RequestManagerClientEfl.h:
2852 (WebKit::RequestManagerClientEfl::create):
2853 (RequestManagerClientEfl):
2855 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com>
2857 Unreviewed, rolling out r141110.
2858 http://trac.webkit.org/changeset/141110
2859 https://bugs.webkit.org/show_bug.cgi?id=108349
2861 This patch broke WK2-EFL unit tests (Requested by grzegorz on
2864 * UIProcess/efl/TextCheckerEfl.cpp:
2865 * WebProcess/WebCoreSupport/WebEditorClient.h:
2866 * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
2868 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2870 Coordinated Graphics : Remove WebCoordinatedSurface dependency from CoordinatedSurface
2871 https://bugs.webkit.org/show_bug.cgi?id=108259
2873 Reviewed by Noam Rosenthal.
2875 This is a preparation patch for Threaded Coordinated Graphics.
2877 WebCoordinatedSurface dependency should be removed from
2878 CoordinatedSurface so as to share CoordinatedSurface between
2879 WebCoordinatedSurface and CoordinatedSurface of WebKit1, which will be
2880 implemented for Threaded Coordinated Graphics.
2882 This patch introduces CoordinatedSurface::Factory, which is a function
2883 pointer that creates CoordinatedSurfaces. CoordinatedLayerTreeHost sets
2884 static CoordinatedSurface::Factory member variable. Classes that use
2885 CoordinatedSurface, which are CoordinatedImageBacking and UpdateAtlas,
2886 create CoordinatedSurfaces by calling CoordinatedSurface::create, which
2887 will call the function set by CoordinatedLayerTreeHost.
2889 This way, we can remove the WebCoordinatedSurface dependency from
2890 CoordinatedSurface and be able to share the code in Threaded Coordinated
2893 No new tests. No change in behavior.
2896 * Shared/CoordinatedGraphics/CoordinatedSurface.cpp: Added.
2898 (WebKit::CoordinatedSurface::setFactory):
2899 (WebKit::CoordinatedSurface::create):
2900 * Shared/CoordinatedGraphics/CoordinatedSurface.h:
2901 (CoordinatedSurface):
2902 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
2904 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2905 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
2906 (WebKit::CoordinatedLayerTreeHost::createCoordinatedSurface):
2908 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2910 2013-01-30 Tim Horton <timothy_horton@apple.com>
2912 Unreviewed build fix after http://trac.webkit.org/changeset/141372.
2914 * WebProcess/Plugins/PDF/PDFPlugin.mm:
2915 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
2917 2013-01-30 Jae Hyun Park <jae.park@company100.net>
2919 Coordinated Graphics : Remove CoordinatedLayerTreeHostProxy dependency from LayerTreeRenderer
2920 https://bugs.webkit.org/show_bug.cgi?id=108164
2922 Reviewed by Benjamin Poulain.
2924 This is a preparation patch for Threaded Coordinated Graphics.
2926 LayerTreeRenderer should not depend on CoordinatedLayerTreeHostProxy so that it
2927 can be moved to WebCore. This patch introduces LayerTreeRendererClient which
2928 is implemented in CoordinatedLayerTreeHostProxy. LayerTreeRenderer uses this
2929 client, instead of using CoordinatedLayerTreeHostProxy directly.
2931 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2932 (CoordinatedLayerTreeHostProxy):
2933 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2934 (WebKit::LayerTreeRenderer::LayerTreeRenderer):
2935 (WebKit::LayerTreeRenderer::animationFrameReady):
2936 (WebKit::LayerTreeRenderer::updateViewport):
2937 (WebKit::LayerTreeRenderer::renderNextFrame):
2938 (WebKit::LayerTreeRenderer::purgeBackingStores):
2939 (WebKit::LayerTreeRenderer::detach):
2940 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2942 (LayerTreeRendererClient):
2943 (LayerTreeRenderer):
2945 2013-01-30 Tim Horton <timothy_horton@apple.com>
2947 PDFPlugin: Should respond to three-finger tap for dictionary definitions
2948 https://bugs.webkit.org/show_bug.cgi?id=108418
2949 <rdar://problem/13121409>
2951 Reviewed by Simon Fraser.
2953 * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add default implementation of performDictionaryLookupAtLocation.
2954 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add getSelectionForWordAtPoint and searchInDictionaryWithSelection.
2955 * WebProcess/Plugins/PDF/PDFPlugin.h: Add performDictionaryLookupAtLocation.
2956 * WebProcess/Plugins/PDF/PDFPlugin.mm: Grab a PDFSelection representing the word encompassing the given point, and
2957 throw up a dictionary popover.
2958 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
2959 * WebProcess/Plugins/PDF/SimplePDFPlugin.h: Add default implementation of performDictionaryLookupAtLocation.
2960 * WebProcess/Plugins/Plugin.h: Add performDictionaryLookupAtLocation.
2961 * WebProcess/Plugins/PluginProxy.h: Add default implementation of performDictionaryLookupAtLocation.
2962 * WebProcess/Plugins/PluginView.cpp:
2963 (WebKit::PluginView::performDictionaryLookupAtLocation): Forward performDictionaryLookupAtLocation to the plugin.
2964 * WebProcess/Plugins/PluginView.h: Add performDictionaryLookupAtLocation.
2965 * WebProcess/WebPage/mac/WebPageMac.mm:
2966 (WebKit::WebPage::performDictionaryLookupAtLocation): Intercept performDictionaryLookupAtLocation, and give
2967 the main-frame plugin (if it exists) a chance to handle it.
2969 2013-01-30 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2971 [WK2] Cleanup MessageID parameter after r141332
2972 https://bugs.webkit.org/show_bug.cgi?id=108419
2974 Unreviewed to fix build breaks.
2976 r141332 didn't remove MessageID parameter on some features.
2977 (battery, vibration, coordinate graphics, network info and so on)
2979 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2980 (CoordinatedLayerTreeHostProxy):
2981 * UIProcess/DrawingAreaProxyImpl.cpp:
2982 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
2983 * UIProcess/WebBatteryManagerProxy.h:
2984 (WebBatteryManagerProxy):
2985 * UIProcess/WebNetworkInfoManagerProxy.h:
2986 (WebNetworkInfoManagerProxy):
2987 * UIProcess/WebPageProxy.cpp:
2988 (WebKit::WebPageProxy::didReceiveMessage):
2989 * UIProcess/WebVibrationProxy.h:
2990 (WebVibrationProxy):
2991 * UIProcess/soup/WebSoupRequestManagerProxy.h:
2992 (WebSoupRequestManagerProxy):
2993 * WebProcess/Battery/WebBatteryManager.h:
2994 (WebBatteryManager):
2995 * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
2996 (WebNetworkInfoManager):
2997 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2998 * WebProcess/WebPage/DrawingAreaImpl.cpp:
2999 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3000 * WebProcess/WebPage/WebPage.cpp:
3001 (WebKit::WebPage::didReceiveMessage):
3002 * WebProcess/soup/WebSoupRequestManager.h:
3003 (WebSoupRequestManager):
3005 2013-01-30 Anders Carlsson <andersca@apple.com>
3007 Remove MessageID from MessageSender
3008 https://bugs.webkit.org/show_bug.cgi?id=108413
3010 Reviewed by Andreas Kling.
3012 This is another step towards eliminating MessageID.
3014 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3015 (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3016 (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3017 * NetworkProcess/NetworkConnectionToWebProcess.h:
3018 (NetworkConnectionToWebProcess):
3019 * NetworkProcess/NetworkProcess.cpp:
3020 (WebKit::NetworkProcess::didReceiveMessage):
3021 (WebKit::NetworkProcess::didReceiveSyncMessage):
3022 * NetworkProcess/NetworkProcess.h:
3024 * Platform/CoreIPC/Connection.cpp:
3025 (CoreIPC::Connection::processIncomingMessage):
3026 (CoreIPC::Connection::dispatchSyncMessage):
3027 (CoreIPC::Connection::dispatchMessage):
3028 * Platform/CoreIPC/Connection.h:
3030 (CoreIPC::Connection::waitForAndDispatchImmediately):
3031 * Platform/CoreIPC/MessageReceiver.h:
3033 (CoreIPC::MessageReceiver::didReceiveSyncMessage):
3034 * Platform/CoreIPC/MessageReceiverMap.cpp:
3035 (CoreIPC::MessageReceiverMap::dispatchMessage):
3036 (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
3037 * Platform/CoreIPC/MessageReceiverMap.h:
3038 (MessageReceiverMap):
3039 * PluginProcess/PluginProcess.cpp:
3040 (WebKit::PluginProcess::didReceiveMessage):
3041 * PluginProcess/PluginProcess.h:
3043 * PluginProcess/WebProcessConnection.cpp:
3044 (WebKit::WebProcessConnection::didReceiveMessage):
3045 (WebKit::WebProcessConnection::didReceiveSyncMessage):
3046 * PluginProcess/WebProcessConnection.h:
3047 (WebProcessConnection):
3048 * Scripts/webkit2/messages.py:
3049 (forward_declarations_and_headers):
3050 (generate_message_handler):
3051 * Scripts/webkit2/messages_unittest.py:
3052 * Shared/Authentication/AuthenticationManager.cpp:
3053 (WebKit::AuthenticationManager::didReceiveMessage):
3054 * Shared/Authentication/AuthenticationManager.h:
3055 (AuthenticationManager):
3056 * Shared/ChildProcessProxy.cpp:
3057 (WebKit::ChildProcessProxy::sendMessage):
3058 * Shared/ChildProcessProxy.h:
3059 (ChildProcessProxy):
3060 (WebKit::ChildProcessProxy::send):
3061 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3062 (CustomProtocolManager):
3063 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3064 (WebKit::CustomProtocolManager::didReceiveMessage):
3065 * Shared/Plugins/NPRemoteObjectMap.cpp:
3066 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3067 * Shared/Plugins/NPRemoteObjectMap.h:
3068 (NPRemoteObjectMap):
3069 * Shared/WebConnection.cpp:
3070 (WebKit::WebConnection::didReceiveMessage):
3071 * Shared/WebConnection.h:
3073 * Shared/mac/SecItemShim.cpp:
3074 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3075 * Shared/mac/SecItemShim.h:
3077 * SharedWorkerProcess/SharedWorkerProcess.cpp:
3078 (WebKit::SharedWorkerProcess::didReceiveMessage):
3079 * SharedWorkerProcess/SharedWorkerProcess.h:
3080 (SharedWorkerProcess):
3081 * UIProcess/Downloads/DownloadProxy.cpp:
3082 (WebKit::DownloadProxy::didReceiveMessage):
3083 (WebKit::DownloadProxy::didReceiveSyncMessage):
3084 * UIProcess/Downloads/DownloadProxy.h:
3086 * UIProcess/DrawingAreaProxy.cpp:
3087 (WebKit::DrawingAreaProxy::didReceiveCoordinatedLayerTreeHostProxyMessage):
3088 * UIProcess/DrawingAreaProxy.h:
3090 * UIProcess/DrawingAreaProxyImpl.cpp:
3091 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3092 * UIProcess/DrawingAreaProxyImpl.h:
3093 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3094 (CustomProtocolManagerProxy):
3095 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3096 (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3097 * UIProcess/Network/NetworkProcessProxy.cpp:
3098 (WebKit::NetworkProcessProxy::didReceiveMessage):
3099 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
3100 * UIProcess/Network/NetworkProcessProxy.h:
3101 (NetworkProcessProxy):
3102 * UIProcess/Notifications/WebNotificationManagerProxy.h:
3103 (WebNotificationManagerProxy):
3104 * UIProcess/Plugins/PluginProcessProxy.cpp:
3105 (WebKit::PluginProcessProxy::didReceiveMessage):
3106 * UIProcess/Plugins/PluginProcessProxy.h:
3107 (PluginProcessProxy):
3108 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3109 (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3110 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3111 (SharedWorkerProcessProxy):
3112 * UIProcess/WebApplicationCacheManagerProxy.cpp:
3113 (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3114 * UIProcess/WebApplicationCacheManagerProxy.h:
3115 (WebApplicationCacheManagerProxy):
3116 * UIProcess/WebContext.cpp:
3117 (WebKit::WebContext::dispatchMessage):
3118 (WebKit::WebContext::dispatchSyncMessage):
3119 (WebKit::WebContext::didReceiveMessage):
3120 (WebKit::WebContext::didReceiveSyncMessage):
3121 * UIProcess/WebContext.h:
3123 * UIProcess/WebCookieManagerProxy.cpp:
3124 (WebKit::WebCookieManagerProxy::didReceiveMessage):
3125 * UIProcess/WebCookieManagerProxy.h:
3126 (WebCookieManagerProxy):
3127 * UIProcess/WebDatabaseManagerProxy.cpp:
3128 (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3129 * UIProcess/WebDatabaseManagerProxy.h:
3130 (WebDatabaseManagerProxy):
3131 * UIProcess/WebFullScreenManagerProxy.cpp:
3132 (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3133 (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3134 * UIProcess/WebFullScreenManagerProxy.h:
3135 (WebFullScreenManagerProxy):
3136 * UIProcess/WebGeolocationManagerProxy.h:
3137 (WebGeolocationManagerProxy):
3138 * UIProcess/WebIconDatabase.h:
3140 * UIProcess/WebKeyValueStorageManagerProxy.h:
3141 (WebKeyValueStorageManagerProxy):
3142 * UIProcess/WebMediaCacheManagerProxy.h:
3143 (WebMediaCacheManagerProxy):
3144 * UIProcess/WebPageProxy.cpp:
3145 (WebKit::WebPageProxy::didReceiveMessage):
3146 (WebKit::WebPageProxy::didReceiveSyncMessage):
3147 * UIProcess/WebPageProxy.h:
3149 * UIProcess/WebProcessProxy.cpp:
3150 (WebKit::WebProcessProxy::didReceiveMessage):
3151 (WebKit::WebProcessProxy::didReceiveSyncMessage):
3152 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3153 * UIProcess/WebProcessProxy.h:
3155 * UIProcess/WebResourceCacheManagerProxy.h:
3156 (WebResourceCacheManagerProxy):
3157 * UIProcess/mac/RemoteLayerTreeHost.h:
3158 (RemoteLayerTreeHost):
3159 * UIProcess/mac/RemoteLayerTreeHost.mm:
3160 (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3161 * UIProcess/mac/SecItemShimProxy.cpp:
3162 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3163 * UIProcess/mac/SecItemShimProxy.h:
3165 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3166 (WebKit::WebApplicationCacheManager::didReceiveMessage):
3167 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3168 (WebApplicationCacheManager):
3169 * WebProcess/Cookies/WebCookieManager.cpp:
3170 (WebKit::WebCookieManager::didReceiveMessage):
3171 * WebProcess/Cookies/WebCookieManager.h:
3173 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3174 (WebKit::WebFullScreenManager::didReceiveMessage):
3175 * WebProcess/FullScreen/WebFullScreenManager.h:
3176 (WebFullScreenManager):
3177 * WebProcess/Geolocation/WebGeolocationManager.h:
3178 (WebGeolocationManager):
3179 * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
3180 (WebIconDatabaseProxy):
3181 * WebProcess/MediaCache/WebMediaCacheManager.h:
3182 (WebMediaCacheManager):
3183 * WebProcess/Network/NetworkProcessConnection.cpp:
3184 (WebKit::NetworkProcessConnection::didReceiveMessage):
3185 (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3186 * WebProcess/Network/NetworkProcessConnection.h:
3187 (NetworkProcessConnection):
3188 * WebProcess/Notifications/WebNotificationManager.h:
3189 (WebNotificationManager):
3190 * WebProcess/Plugins/PluginProcessConnection.cpp:
3191 (WebKit::PluginProcessConnection::didReceiveMessage):
3192 (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3193 * WebProcess/Plugins/PluginProcessConnection.h:
3194 (PluginProcessConnection):
3195 * WebProcess/ResourceCache/WebResourceCacheManager.h:
3196 (WebResourceCacheManager):
3197 * WebProcess/Storage/WebKeyValueStorageManager.h:
3198 (WebKeyValueStorageManager):
3199 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3200 (WebKit::WebDatabaseManager::didReceiveMessage):
3201 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3202 (WebDatabaseManager):
3203 * WebProcess/WebPage/DrawingArea.h:
3205 * WebProcess/WebPage/DrawingAreaImpl.cpp:
3206 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3207 * WebProcess/WebPage/DrawingAreaImpl.h:
3209 * WebProcess/WebPage/EventDispatcher.cpp:
3210 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3211 * WebProcess/WebPage/EventDispatcher.h:
3213 * WebProcess/WebPage/LayerTreeHost.h:
3215 * WebProcess/WebPage/WebPage.cpp:
3216 (WebKit::WebPage::didReceiveMessage):
3217 (WebKit::WebPage::didReceiveSyncMessage):
3218 * WebProcess/WebPage/WebPage.h:
3220 * WebProcess/WebPage/WebPageGroupProxy.h:
3221 (WebPageGroupProxy):
3222 * WebProcess/WebProcess.cpp:
3223 (WebKit::WebProcess::didReceiveSyncMessage):
3224 (WebKit::WebProcess::didReceiveMessage):
3225 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3226 * WebProcess/WebProcess.h:
3229 2013-01-30 Tim Horton <timothy_horton@apple.com>
3231 PDFPlugin: Update scrollbars if PDFLayerController's display mode changes
3232 https://bugs.webkit.org/show_bug.cgi?id=108412
3233 <rdar://problem/13002261>
3235 Reviewed by Simon Fraser.
3237 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add pdfLayerController:didChangeDisplayMode:
3238 * WebProcess/Plugins/PDF/PDFPlugin.h: Add notifyDisplayModeChanged().
3239 * WebProcess/Plugins/PDF/PDFPlugin.mm:
3240 (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeDisplayMode:]): Forward didChangeDisplayMode to notifyDisplayModeChanged.
3241 (WebKit::PDFPlugin::notifyDisplayModeChanged): Update content size and scrollbar size when display mode changes.
3243 2013-01-30 Alexey Proskuryakov <ap@apple.com>
3245 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3247 Reviewed by Sam Weinig.
3249 * DerivedSources.make: Preprocess a .sb.in file to build the profile.
3251 * NetworkProcess/mac/NetworkProcessMac.mm:
3252 Don't prevent entering the sandbox. Override sandbox path, because service
3253 gets a differnt one by default.
3255 * WebKit2.xcodeproj/project.pbxproj:
3256 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in: Added.
3258 2013-01-30 Huang Dongsung <luxtella@company100.net>
3260 Coordinated Graphics: LayerTreeRenderer manages the surface of UpdateAtlas.
3261 https://bugs.webkit.org/show_bug.cgi?id=107224
3263 Reviewed by Benjamin Poulain.
3265 Currently, CoordinatedLayerTreeHostProxy manages the surface of UpdateAtlas, but
3266 all other resources are managed by LayerTreeRenderer. This patch matches the
3267 surface of UpdateAtlas to other resources.
3269 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3270 (WebKit::CoordinatedLayerTreeHostProxy::updateTileForLayer):
3271 (WebKit::CoordinatedLayerTreeHostProxy::createUpdateAtlas):
3272 (WebKit::CoordinatedLayerTreeHostProxy::removeUpdateAtlas):
3273 (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3274 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3275 (CoordinatedLayerTreeHostProxy):
3276 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3277 (WebKit::LayerTreeRenderer::updateTile):
3278 (WebKit::LayerTreeRenderer::createUpdateAtlas):
3280 (WebKit::LayerTreeRenderer::removeUpdateAtlas):
3281 (WebKit::LayerTreeRenderer::purgeGLResources):
3282 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3284 (WebKit::LayerTreeRenderer::TileUpdate::TileUpdate):
3285 (LayerTreeRenderer):
3287 2013-01-30 Anders Carlsson <andersca@apple.com>
3289 Remove MessageID parameter from generated message receivers
3290 https://bugs.webkit.org/show_bug.cgi?id=108379
3292 Reviewed by Beth Dakin.
3294 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3295 (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3296 (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3297 * NetworkProcess/NetworkConnectionToWebProcess.h:
3298 (NetworkConnectionToWebProcess):
3299 * NetworkProcess/NetworkProcess.cpp:
3300 (WebKit::NetworkProcess::didReceiveMessage):
3301 * NetworkProcess/NetworkProcess.h:
3303 * PluginProcess/PluginControllerProxy.h:
3304 (PluginControllerProxy):
3305 * PluginProcess/PluginProcess.cpp:
3306 (WebKit::PluginProcess::didReceiveMessage):
3307 * PluginProcess/PluginProcess.h:
3309 * PluginProcess/WebProcessConnection.cpp:
3310 (WebKit::WebProcessConnection::didReceiveMessage):
3311 (WebKit::WebProcessConnection::didReceiveSyncMessage):
3312 * PluginProcess/WebProcessConnection.h:
3313 (WebProcessConnection):
3314 * Scripts/webkit2/messages.py:
3315 (generate_message_handler):
3316 * Scripts/webkit2/messages_unittest.py:
3317 * Shared/Authentication/AuthenticationManager.cpp:
3318 (WebKit::AuthenticationManager::didReceiveMessage):
3319 * Shared/Authentication/AuthenticationManager.h:
3320 (AuthenticationManager):
3321 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3322 (CustomProtocolManager):
3323 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3324 (WebKit::CustomProtocolManager::didReceiveMessage):
3325 * Shared/Plugins/NPObjectMessageReceiver.h:
3326 (NPObjectMessageReceiver):
3327 * Shared/Plugins/NPRemoteObjectMap.cpp:
3328 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3329 * Shared/WebConnection.cpp:
3330 (WebKit::WebConnection::didReceiveMessage):
3331 * Shared/WebConnection.h:
3333 * Shared/mac/SecItemShim.cpp:
3334 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3335 * Shared/mac/SecItemShim.h:
3337 * SharedWorkerProcess/SharedWorkerProcess.cpp:
3338 (WebKit::SharedWorkerProcess::didReceiveMessage):
3339 * SharedWorkerProcess/SharedWorkerProcess.h:
3340 (SharedWorkerProcess):
3341 * UIProcess/Downloads/DownloadProxy.cpp:
3342 (WebKit::DownloadProxy::didReceiveMessage):
3343 (WebKit::DownloadProxy::didReceiveSyncMessage):
3344 * UIProcess/Downloads/DownloadProxy.h:
3346 * UIProcess/DrawingAreaProxy.h:
3348 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3349 (CustomProtocolManagerProxy):
3350 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3351 (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3352 * UIProcess/Network/NetworkProcessProxy.cpp:
3353 (WebKit::NetworkProcessProxy::didReceiveMessage):
3354 * UIProcess/Network/NetworkProcessProxy.h:
3355 (NetworkProcessProxy):
3356 * UIProcess/Plugins/PluginProcessProxy.cpp:
3357 (WebKit::PluginProcessProxy::didReceiveMessage):
3358 * UIProcess/Plugins/PluginProcessProxy.h:
3359 (PluginProcessProxy):
3360 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3361 (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3362 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3363 (SharedWorkerProcessProxy):
3364 * UIProcess/WebApplicationCacheManagerProxy.cpp:
3365 (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3366 * UIProcess/WebApplicationCacheManagerProxy.h:
3367 (WebApplicationCacheManagerProxy):
3368 * UIProcess/WebContext.cpp:
3369 (WebKit::WebContext::didReceiveMessage):
3370 (WebKit::WebContext::didReceiveSyncMessage):
3371 * UIProcess/WebContext.h:
3373 * UIProcess/WebCookieManagerProxy.cpp:
3374 (WebKit::WebCookieManagerProxy::didReceiveMessage):
3375 * UIProcess/WebCookieManagerProxy.h:
3376 (WebCookieManagerProxy):
3377 * UIProcess/WebDatabaseManagerProxy.cpp:
3378 (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3379 * UIProcess/WebDatabaseManagerProxy.h:
3380 (WebDatabaseManagerProxy):
3381 * UIProcess/WebFullScreenManagerProxy.cpp:
3382 (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3383 (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3384 * UIProcess/WebFullScreenManagerProxy.h:
3385 (WebFullScreenManagerProxy):
3386 * UIProcess/WebInspectorProxy.h:
3387 (WebInspectorProxy):
3388 * UIProcess/WebPageProxy.cpp:
3389 (WebKit::WebPageProxy::didReceiveMessage):
3390 (WebKit::WebPageProxy::didReceiveSyncMessage):
3391 * UIProcess/WebPageProxy.h:
3393 * UIProcess/WebProcessProxy.cpp:
3394 (WebKit::WebProcessProxy::didReceiveMessage):
3395 (WebKit::WebProcessProxy::didReceiveSyncMessage):
3396 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3397 * UIProcess/WebProcessProxy.h:
3399 * UIProcess/mac/RemoteLayerTreeHost.h:
3400 (RemoteLayerTreeHost):
3401 * UIProcess/mac/RemoteLayerTreeHost.mm:
3402 (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3403 * UIProcess/mac/SecItemShimProxy.cpp:
3404 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3405 * UIProcess/mac/SecItemShimProxy.h:
3407 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3408 (WebKit::WebApplicationCacheManager::didReceiveMessage):
3409 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3410 (WebApplicationCacheManager):
3411 * WebProcess/Cookies/WebCookieManager.cpp:
3412 (WebKit::WebCookieManager::didReceiveMessage):
3413 * WebProcess/Cookies/WebCookieManager.h:
3415 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3416 (WebKit::WebFullScreenManager::didReceiveMessage):
3417 * WebProcess/FullScreen/WebFullScreenManager.h:
3418 (WebFullScreenManager):
3419 * WebProcess/Network/NetworkProcessConnection.cpp:
3420 (WebKit::NetworkProcessConnection::didReceiveMessage):
3421 (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3422 * WebProcess/Network/WebResourceLoader.h:
3423 (WebResourceLoader):
3424 * WebProcess/Plugins/PluginProcessConnection.cpp:
3425 (WebKit::PluginProcessConnection::didReceiveMessage):
3426 (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3427 * WebProcess/Plugins/PluginProcessConnection.h:
3428 (PluginProcessConnection):
3429 * WebProcess/Plugins/PluginProxy.h:
3431 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3432 (WebKit::WebDatabaseManager::didReceiveMessage):
3433 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3434 (WebDatabaseManager):
3435 * WebProcess/WebPage/DrawingArea.h:
3437 * WebProcess/WebPage/EventDispatcher.cpp:
3438 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3439 * WebProcess/WebPage/EventDispatcher.h:
3441 * WebProcess/WebPage/WebInspector.h:
3443 * WebProcess/WebPage/WebPage.cpp:
3444 (WebKit::WebPage::didReceiveMessage):
3445 (WebKit::WebPage::didReceiveSyncMessage):
3446 * WebProcess/WebPage/WebPage.h:
3448 * WebProcess/WebProcess.cpp:
3449 (WebKit::WebProcess::didReceiveMessage):
3450 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3451 * WebProcess/WebProcess.h:
3454 2013-01-30 Christophe Dumez <dchris@gmail.com>
3456 [WK2][UNIX] g_spawn_sync() generates warning in PluginProcessProxy::scanPlugin()
3457 https://bugs.webkit.org/show_bug.cgi?id=108371
3459 Reviewed by Martin Robinson.
3461 g_spawn_sync() was sometimes displaying a warning about the SIGCHLD
3462 signal disposition not being set to SIG_DFL, despite the fix in r133755.
3463 The reason was that the code was only setting the disposition to SIG_DFL
3464 if the previous disposition was SIG_IGN.
3466 In this patch, we set the SIGCHLD signal disposition to SIG_DFL, no
3467 matter what its previous disposition was. Also, the signal disposition
3468 is now restored to its previous state after the call to g_spawn_sync()
3469 to avoid side effects. Finally, we now use SIGCHLD instead of SIDCLD
3470 since this is the more compatible POSIX name.
3472 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
3473 (WebKit::spawnProcessSync):
3475 (WebKit::PluginProcessProxy::scanPlugin):
3477 2013-01-30 Huang Dongsung <luxtella@company100.net>
3479 [EFL][Qt][WK2] We should consider a page scale factor in WebCore instead of our own scale factor.
3480 https://bugs.webkit.org/show_bug.cgi?id=105978
3482 Reviewed by Simon Fraser.
3484 Currently, PageViewportController sends a page scale factor to Coordinated
3485 Graphics System regardless of the page scale factor in WebCore. This patch makes
3486 Coordinated Graphics System use the page scale factor in WebCore to match other
3489 When it is needed to change a page scale, PageViewportController sends the scale
3490 to Page in Web Process via WebPageProxy::scalePage. When the page scale in
3491 WebCore is changed, CoordinatedGraphicsLayer gets notified via
3492 deviceOrPageScaleFactorChanged callback. CoordinatedGraphicsLayer uses the page
3493 scale factor like previous our own scale factor.
3495 We set true to applyDeviceScaleFactorInCompositor and
3496 ApplyPageScaleFactorInCompositor in Settings like chromium, because
3497 TiledBackingStore that is a backing store of each GraphicsLayer applies the
3498 scale to our raster graphics engines instead of applying the scale to the local
3499 transform of each render object.
3501 Thank Kenneth Rohde Christiansen for implementing the base patch of this patch.
3503 No new tests. Covered by existing tests.
3505 * UIProcess/API/qt/qquickwebview.cpp:
3506 (QQuickWebViewLegacyPrivate::updateViewportSize):
3507 * UIProcess/API/qt/raw/qrawwebview.cpp:
3508 (QRawWebView::setSize):
3509 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3510 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
3511 (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
3512 Does not receive a pageScaleFactor argument because
3513 PageViewportController sends a page scale factor to Page.
3514 However, this method still receives a scroll position because we
3515 enable delegates scrolling.
3516 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3517 (CoordinatedLayerTreeHostProxy):
3518 * UIProcess/DrawingAreaProxy.h:
3519 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
3520 * UIProcess/DrawingAreaProxyImpl.cpp:
3521 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
3522 * UIProcess/DrawingAreaProxyImpl.h: