1 2013-02-10 Zoltan Arvai <zarvai@inf.u-szeged.hu>
3 [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
4 https://bugs.webkit.org/show_bug.cgi?id=109364
6 Reviewed by Simon Hausmann.
8 void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
10 * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
11 (WebKit::NetscapePlugin::platformPreInitialize):
14 2013-02-09 Sheriff Bot <webkit.review.bot@gmail.com>
16 Unreviewed, rolling out r137328.
17 http://trac.webkit.org/changeset/137328
18 https://bugs.webkit.org/show_bug.cgi?id=109367
20 causes memory usage to balloon if connection queue is filling
21 faster than sending (Requested by kling on #webkit).
23 * Platform/CoreIPC/ArgumentEncoder.cpp:
24 (CoreIPC::ArgumentEncoder::ArgumentEncoder):
25 (CoreIPC::ArgumentEncoder::grow):
26 * Platform/CoreIPC/ArgumentEncoder.h:
27 (CoreIPC::ArgumentEncoder::buffer):
30 2013-02-08 Sam Weinig <sam@webkit.org>
32 Fix ASSERT when the Web Content Process crashes
33 https://bugs.webkit.org/show_bug.cgi?id=109346
35 Reviewed by Simon Fraser.
37 * UIProcess/WebPageProxy.cpp:
38 (WebKit::WebPageProxy::processDidCrash):
39 We need to remove ourselves as a message receiver before calling out to the client, as
40 the client might want to re-add us (as Safari does).
42 2013-02-08 Benjamin Poulain <bpoulain@apple.com>
44 Move workerThreadCount from TestRunner to WebCore Internals
45 https://bugs.webkit.org/show_bug.cgi?id=109239
47 Reviewed by Darin Adler.
49 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
50 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
51 * WebProcess/InjectedBundle/InjectedBundle.cpp:
52 * WebProcess/InjectedBundle/InjectedBundle.h:
54 * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
56 2013-02-08 Dean Jackson <dino@apple.com>
58 Remove use of plugInStartLabelImage
59 https://bugs.webkit.org/show_bug.cgi?id=108273
61 Reviewed by Simon Fraser.
63 Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
64 and plugInStartLabelSubtitle to return the values from the client.
67 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
68 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
69 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
70 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
72 2013-02-08 Dean Jackson <dino@apple.com>
74 Snapshotted plug-in should use shadow root
75 https://bugs.webkit.org/show_bug.cgi?id=108284
77 Reviewed by Simon Fraser.
79 Take two of this commit! We no longer have any need for plugInStartLabelImage.
81 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
82 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
83 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
84 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
86 2013-02-08 Dean Jackson <dino@apple.com>
88 Rolling out r142333 and r142337 which broke Mac Release builds.
90 2013-02-08 Anders Carlsson <andersca@apple.com>
92 Move plug-in enumeration back to the main thread
93 https://bugs.webkit.org/show_bug.cgi?id=109337
94 <rdar://problem/12015046>
96 Reviewed by Andreas Kling.
98 Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
99 doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
100 Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
101 and have it do the enumeration.
103 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
104 (WebKit::getPluginInfoFromCarbonResources):
105 * UIProcess/WebProcessProxy.cpp:
106 (WebKit::WebProcessProxy::connectionWillOpen):
107 (WebKit::WebProcessProxy::connectionWillClose):
108 (WebKit::WebProcessProxy::getPlugins):
109 * UIProcess/WebProcessProxy.h:
112 * UIProcess/WebProcessProxy.messages.in:
113 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
115 (WebKit::WebPlatformStrategies::populatePluginCache):
116 * WebProcess/WebProcess.cpp:
117 * WebProcess/WebProcess.h:
119 * WebProcess/WebProcess.messages.in:
121 2013-02-08 Dean Jackson <dino@apple.com>
123 Snapshotted plug-in should use shadow root
124 https://bugs.webkit.org/show_bug.cgi?id=108284
126 Reviewed by Simon Fraser.
128 We no longer have any need for plugInStartLabelImage.
130 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
131 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
132 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
133 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
135 2013-02-08 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
137 [WK2] Fix the build on !Mac after r142314.
138 https://bugs.webkit.org/show_bug.cgi?id=109327
140 Reviewed by Benjamin Poulain.
142 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
143 (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
144 the newly-added function.
146 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
147 (WebKit::NetscapePlugin::platformPreInitialize):
150 2013-02-07 Anders Carlsson <andersca@apple.com>
152 Work around a bug in Flash where NSException objects can be released too early
153 https://bugs.webkit.org/show_bug.cgi?id=109242
154 <rdar://problem/13003470>
156 Reviewed by Darin Adler.
158 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
159 (WebKit::NetscapePluginModule::determineQuirks):
160 Set the new plug-in quirk.
162 * Shared/Plugins/PluginQuirks.h:
163 Add a new plug-in quirk.
165 * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
166 (WebKit::NetscapePlugin::initialize):
167 Call platformPreInitialize.
169 * WebProcess/Plugins/Netscape/NetscapePlugin.h:
171 Add platformPreInitialize.
173 * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
174 (WebKit::NSException_release):
175 Add new empty function.
177 (WebKit::NetscapePlugin::platformPreInitialize):
178 Patch -[NSException release] to be a no-op.
180 2013-02-08 Dean Jackson <dino@apple.com>
182 Do not register autostart for plugins from file:// (or nowhere)
183 https://bugs.webkit.org/show_bug.cgi?id=108271
185 Reviewed by Tim Horton.
187 If the pageOrigin is the empty string don't add
188 it to the auto-start origin list for snapshotting.
190 * WebProcess/WebProcess.cpp:
191 (WebKit::WebProcess::addPlugInAutoStartOrigin):
193 2013-02-07 Sheriff Bot <webkit.review.bot@gmail.com>
195 Unreviewed, rolling out r142212.
196 http://trac.webkit.org/changeset/142212
197 https://bugs.webkit.org/show_bug.cgi?id=109255
199 Causes ASSERT(!m_installed) on launch (Requested by smfr on
202 * PluginProcess/PluginProcess.cpp:
203 (WebKit::PluginProcess::initializeProcess):
204 (WebKit::PluginProcess::shouldTerminate):
205 * PluginProcess/PluginProcess.h:
207 * WebProcess/WebProcess.cpp:
208 (WebKit::WebProcess::initializeWebProcess):
210 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
212 [EFL][WK2] Remove dead code after r142169
213 https://bugs.webkit.org/show_bug.cgi?id=109251
215 Reviewed by Benjamin Poulain.
217 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
218 (WebKit::WebChromeClient::contentsSizeChanged):
220 2013-02-06 Gavin Barraclough <barraclough@apple.com>
222 PluginProcess should quit immediately if idle in response to low-memory notifications
223 https://bugs.webkit.org/show_bug.cgi?id=109103
224 <rdar://problem/12679827>
226 Reviewed by Darin Adler.
228 PluginProcess now initializes a MemoryPressureHandler for the process, providing
229 a custom callback which will call terminate if appropriate (if the plugin is not
232 * PluginProcess/PluginProcess.cpp:
233 (WebKit::PluginProcess::lowMemoryHandler):
234 - Custom callback to terminate if appropriate.
235 (WebKit::PluginProcess::initializeProcess):
236 - Initialize the MemoryPressureHandler.
237 (WebKit::PluginProcess::shouldTerminate):
238 - This method now also needs to be callable in situations where it might return false.
239 * PluginProcess/PluginProcess.h:
241 - Added declaration for lowMemoryHandler.
242 * WebProcess/WebProcess.cpp:
243 (WebKit::WebProcess::initializeWebProcess):
244 - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
246 2013-02-07 KwangYong Choi <ky0.choi@samsung.com>
248 Fix build warning after r142017
249 https://bugs.webkit.org/show_bug.cgi?id=109119
251 Reviewed by Alexey Proskuryakov.
253 Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
255 * UIProcess/WebPageProxy.cpp:
256 (WebKit::WebPageProxy::getPluginPath):
258 2013-02-07 Martin Robinson <mrobinson@igalia.com>
260 [GTK] Cleanup command-line defines
261 https://bugs.webkit.org/show_bug.cgi?id=109213
263 Reviewed by Xan Lopez.
265 * GNUmakefile.am: Remove references to flags that are now
266 provided by autotoolsconfig.h.
268 2013-02-07 Benjamin Poulain <bpoulain@apple.com>
270 Move pauseAnimation/pauseTransition from TestRunner to Internals
271 https://bugs.webkit.org/show_bug.cgi?id=109107
273 Reviewed by Anders Carlsson.
275 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
276 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
277 * WebProcess/WebPage/WebFrame.cpp:
278 * WebProcess/WebPage/WebFrame.h:
281 2013-02-07 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
283 [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
284 https://bugs.webkit.org/show_bug.cgi?id=109165
286 Reviewed by Anders Carlsson.
288 Removed non coordinated graphics code path from WK2 EFL as it was not used by
289 anyone and caused a lot of preprocessor macros in the code making it less readable.
291 * UIProcess/API/efl/EvasGLContext.cpp:
292 * UIProcess/API/efl/EvasGLContext.h:
293 (WebKit::EvasGLContext::context):
294 * UIProcess/API/efl/EvasGLSurface.cpp:
295 * UIProcess/API/efl/EvasGLSurface.h:
296 (WebKit::EvasGLSurface::surface):
298 Removed also 'inline' and 'const' keywords from functions declaration,
299 as both EvasGLContext::context() and EvasGLSurface::surface()
300 are defined inside their classes and return mutable pointer.
302 * UIProcess/API/efl/EwkView.cpp:
304 (EwkView::transformFromScene):
305 (EwkView::transformToScreen):
306 (EwkView::coordinatedGraphicsScene):
307 (EwkView::displayTimerFired):
308 (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
309 (EwkView::exitAcceleratedCompositingMode):
310 (EwkView::handleEvasObjectCalculate):
311 (EwkView::takeSnapshot):
312 * UIProcess/API/efl/EwkView.h:
315 * UIProcess/API/efl/SnapshotImageGL.cpp:
316 (getImageSurfaceFromFrameBuffer):
317 * UIProcess/API/efl/SnapshotImageGL.h:
318 * UIProcess/API/efl/ewk_view.cpp:
319 * UIProcess/efl/PageClientBase.cpp:
320 (WebKit::PageClientBase::setViewNeedsDisplay):
321 (WebKit::PageClientBase::updateAcceleratedCompositingMode):
322 * UIProcess/efl/PageClientBase.h:
324 * UIProcess/efl/PageClientDefaultImpl.cpp:
325 (WebKit::PageClientDefaultImpl::didCommitLoad):
326 (WebKit::PageClientDefaultImpl::updateViewportSize):
327 (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
328 (WebKit::PageClientDefaultImpl::didChangeContentsSize):
329 (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
330 * UIProcess/efl/PageClientDefaultImpl.h:
331 (PageClientDefaultImpl):
332 * UIProcess/efl/PageClientLegacyImpl.cpp:
333 (WebKit::PageClientLegacyImpl::didCommitLoad):
334 (WebKit::PageClientLegacyImpl::updateViewportSize):
335 (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
336 (WebKit::PageClientLegacyImpl::didChangeContentsSize):
337 (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
338 (WebKit::PageClientLegacyImpl::didRenderFrame):
339 (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
340 * UIProcess/efl/PageClientLegacyImpl.h:
341 (PageClientLegacyImpl):
342 * UIProcess/efl/PageLoadClientEfl.cpp:
343 (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
344 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
345 * UIProcess/efl/PageLoadClientEfl.h:
347 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
348 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
349 (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
350 * UIProcess/efl/PageViewportControllerClientEfl.h:
351 * UIProcess/efl/WebInspectorProxyEfl.cpp:
352 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
353 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
354 (WebKit::WebChromeClient::contentsSizeChanged):
356 2013-02-06 Sam Weinig <sam@webkit.org>
358 Make WebPageProxy and sub-objects MessageReceivers
359 https://bugs.webkit.org/show_bug.cgi?id=108785
361 Reviewed by Anders Carlsson.
363 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
364 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
365 (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
366 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
367 (CoordinatedLayerTreeHostProxy):
368 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
369 * UIProcess/DrawingAreaProxy.cpp:
370 (WebKit::DrawingAreaProxy::DrawingAreaProxy):
371 (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
372 (WebKit::DrawingAreaProxy::contentsRect):
373 * UIProcess/DrawingAreaProxy.h:
374 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
375 * UIProcess/DrawingAreaProxy.messages.in:
376 * UIProcess/DrawingAreaProxyImpl.cpp:
377 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
378 * UIProcess/DrawingAreaProxyImpl.h:
379 * UIProcess/WebFullScreenManagerProxy.cpp:
380 (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
381 * UIProcess/WebFullScreenManagerProxy.h:
382 (WebFullScreenManagerProxy):
383 * UIProcess/WebFullScreenManagerProxy.messages.in:
384 * UIProcess/WebInspectorProxy.cpp:
385 (WebKit::WebInspectorProxy::WebInspectorProxy):
386 (WebKit::WebInspectorProxy::invalidate):
387 * UIProcess/WebInspectorProxy.h:
388 * UIProcess/WebInspectorProxy.messages.in:
389 * UIProcess/WebPageProxy.cpp:
390 (WebKit::WebPageProxy::WebPageProxy):
391 (WebKit::WebPageProxy::reattachToWebProcess):
392 (WebKit::WebPageProxy::close):
393 (WebKit::WebPageProxy::inspector):
394 (WebKit::WebPageProxy::fullScreenManager):
395 (WebKit::WebPageProxy::processDidCrash):
396 * UIProcess/WebPageProxy.h:
397 * UIProcess/WebPageProxy.messages.in:
398 * UIProcess/WebProcessProxy.cpp:
399 (WebKit::WebProcessProxy::didReceiveMessage):
400 (WebKit::WebProcessProxy::didReceiveSyncMessage):
401 * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
402 (WebKit::WebFullScreenManagerProxy::invalidate):
404 2013-02-07 Zan Dobersek <zdobersek@igalia.com>
406 [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
407 https://bugs.webkit.org/show_bug.cgi?id=109198
409 Reviewed by Martin Robinson.
411 * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
414 2013-02-07 Kenneth Rohde Christiansen <kenneth@webkit.org>
416 [WK2][EFL] Add WKView methods related to background drawing
417 https://bugs.webkit.org/show_bug.cgi?id=109159
419 Reviewed by Anders Carlsson.
421 * UIProcess/API/C/efl/WKView.cpp:
422 (WKViewSetDrawsBackground):
423 (WKViewGetDrawsBackground):
424 (WKViewSetDrawsTransparentBackground):
425 (WKViewGetDrawsTransparentBackground):
426 * UIProcess/efl/WebView.cpp:
427 (WebKit::WebView::setDrawsBackground):
429 (WebKit::WebView::drawsBackground):
430 (WebKit::WebView::setDrawsTransparentBackground):
431 (WebKit::WebView::drawsTransparentBackground):
432 * UIProcess/efl/WebView.h:
434 * UIProcess/API/C/efl/WKView.h:
438 * UIProcess/API/efl/EwkView.cpp:
440 (EwkView::displayTimerFired):
441 (EwkView::handleEvasObjectColorSet):
442 * UIProcess/API/efl/EwkView.h:
444 * UIProcess/API/efl/ewk_view.cpp:
445 (ewk_view_draws_page_background_set):
447 Remove the unneeded m_setDrawsBackground and replace
448 it with the WKView setting.
450 2013-02-07 Christophe Dumez <dchris@gmail.com>
452 [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
453 https://bugs.webkit.org/show_bug.cgi?id=108634
455 Reviewed by Alexey Proskuryakov.
457 Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
458 so that the test passes consistently. The issue was that the header before the
459 data includes the current date. Depending on the date, the data may start at a
460 different index in the returned string. Instead of hardcoding the data start
461 index in the test, we now use String::contains().
463 * UIProcess/API/efl/tests/test_ewk2_view.cpp:
464 (PageContentsCallback):
467 2013-02-07 Gavin Peters <gavinp@chromium.org>
469 Unreviewed, rolling out r142141.
470 http://trac.webkit.org/changeset/142141
471 https://bugs.webkit.org/show_bug.cgi?id=108990
473 Reland r142112, will update Chromium expectations and create a
474 Chromium bug instead for the crash.
476 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
477 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
478 * WebProcess/WebPage/DrawingAreaImpl.cpp:
479 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
481 2013-02-07 Gavin Peters <gavinp@chromium.org>
483 Unreviewed, rolling out r142112.
484 http://trac.webkit.org/changeset/142112
485 https://bugs.webkit.org/show_bug.cgi?id=108990
487 The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
489 See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
491 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
492 (WebKit::updateOffsetFromViewportForSelf):
494 (WebKit::updateOffsetFromViewportForLayer):
495 (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
496 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
497 * WebProcess/WebPage/DrawingAreaImpl.cpp:
498 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
500 2013-02-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
502 [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
503 https://bugs.webkit.org/show_bug.cgi?id=108990
505 Reviewed by Noam Rosenthal.
506 Signed off for WebKit2 by Simon Fraser.
508 WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
509 don't need to traverse the tree every frame to get this information.
511 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
512 syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
513 and are not needed anymore.
514 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
515 * WebProcess/WebPage/DrawingAreaImpl.cpp:
516 (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
517 Coordinated Graphics.
519 2013-02-07 Michael Brüning <michael.bruning@digia.com>
521 [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
522 https://bugs.webkit.org/show_bug.cgi?id=108473
524 Reviewed by Simon Hausmann.
525 Signed off for WebKit2 by Benjamin Poulain.
527 This patch removes the QtWebPageLoadClient and moves the functionality into the
528 QQuickWebViewPrivate as most callback methods are calling the private webview
531 The patch also moves as much of the functionality to the C API as is possible with
535 * UIProcess/API/qt/qquickwebview.cpp:
536 (QQuickWebViewPrivate::initialize):
537 (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
538 (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
539 (QQuickWebViewPrivate::didFailLoad):
540 (QQuickWebViewPrivate::didCommitLoadForFrame):
541 (QQuickWebViewPrivate::didFinishLoadForFrame):
542 (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
543 (QQuickWebViewPrivate::didReceiveTitleForFrame):
544 (QQuickWebViewPrivate::didStartProgress):
545 (QQuickWebViewPrivate::didChangeProgress):
546 (QQuickWebViewPrivate::didFinishProgress):
547 (QQuickWebViewPrivate::didChangeBackForwardList):
548 (QQuickWebViewPrivate::setTransparentBackground):
549 (QQuickWebViewPrivate::transparentBackground):
550 (QQuickWebViewPrivate::loadProgressDidChange):
551 * UIProcess/API/qt/qquickwebview_p.h:
553 * UIProcess/API/qt/qquickwebview_p_p.h:
555 (QQuickWebViewPrivate):
556 * UIProcess/qt/QtWebError.cpp:
557 (WebKit::QtWebError::url):
558 * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
559 * UIProcess/qt/QtWebPageLoadClient.h: Removed.
561 2013-02-05 Eunmi Lee <eunmi15.lee@samsung.com> and Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
563 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
564 https://bugs.webkit.org/show_bug.cgi?id=97173
566 Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
568 Initialize and shutdown the EFL libraries in the ewk_main.cpp for
569 UIProcess and WebProcessMainEfl.cpp for WebProcess.
571 This allows us to shut down the libraries in a proper way, since
572 RunLoop persist until the process exits.
574 * UIProcess/API/efl/ewk_main.cpp:
577 * WebProcess/efl/WebProcessMainEfl.cpp:
578 (WebKit::WebProcessMainEfl):
580 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
582 Unreviewed build fix.
584 * UIProcess/Downloads/DownloadProxyMap.cpp:
585 (WebKit::DownloadProxyMap::processDidClose):
586 m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
588 2013-02-07 Simon Hausmann <simon.hausmann@digia.com>
590 [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
591 https://bugs.webkit.org/show_bug.cgi?id=108920
593 Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
595 Employ the pattern suggested by Jocelyn to simply implement the C
596 callbacks directly using static functions.
599 * UIProcess/API/qt/qquickwebview.cpp:
600 (toQQuickWebViewPrivate):
601 (QQuickWebViewPrivate::initialize):
602 (QQuickWebViewPrivate::didFindString):
603 (QQuickWebViewPrivate::didFailToFindString):
604 * UIProcess/API/qt/qquickwebview_p_p.h:
605 (QQuickWebViewPrivate):
606 * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
607 * UIProcess/qt/QtWebPageFindClient.h: Removed.
609 2013-02-03 Sam Weinig <sam@webkit.org>
611 Make CustomProtocolManagerProxy a MessageReceiver
612 https://bugs.webkit.org/show_bug.cgi?id=108787
614 Reviewed by Anders Carlsson.
616 * Shared/ChildProcessProxy.cpp:
617 (WebKit::ChildProcessProxy::addMessageReceiver):
618 (WebKit::ChildProcessProxy::removeMessageReceiver):
619 (WebKit::ChildProcessProxy::dispatchMessage):
620 (WebKit::ChildProcessProxy::dispatchSyncMessage):
621 * Shared/ChildProcessProxy.h:
622 Sink the MessageReceiverMap down into the ChildProcessProxy.
624 * UIProcess/Downloads/DownloadProxyMap.cpp:
625 (WebKit::DownloadProxyMap::DownloadProxyMap):
626 (WebKit::DownloadProxyMap::createDownloadProxy):
627 (WebKit::DownloadProxyMap::downloadFinished):
628 (WebKit::DownloadProxyMap::processDidClose):
629 * UIProcess/Downloads/DownloadProxyMap.h:
630 Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
632 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
633 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
634 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
635 (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
636 Convert to a MessageReceiver.
638 * UIProcess/Network/NetworkProcessProxy.cpp:
639 (WebKit::NetworkProcessProxy::createDownloadProxy):
640 (WebKit::NetworkProcessProxy::didReceiveMessage):
641 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
642 * UIProcess/Network/NetworkProcessProxy.h:
643 * UIProcess/WebProcessProxy.cpp:
644 (WebKit::WebProcessProxy::didReceiveMessage):
645 (WebKit::WebProcessProxy::didReceiveSyncMessage):
646 (WebKit::WebProcessProxy::createDownloadProxy):
647 * UIProcess/WebProcessProxy.h:
649 Remove direct chaining to CustomProtocolManagerProxy.
651 2013-02-06 Enrica Casucci <enrica@apple.com>
653 ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
654 https://bugs.webkit.org/show_bug.cgi?id=109105.
656 Reviewed by Tim Horton.
658 In r140769 we changed the way the overlay is destroyed,
659 therefore the assert is no longer valid and should be removed.
661 * WebProcess/WebPage/FindController.cpp:
662 (WebKit::FindController::updateFindUIAfterPageScroll):
664 2013-02-06 Anders Carlsson <andersca@apple.com>
666 Dispatch storage manager messages to the storage work queue
667 https://bugs.webkit.org/show_bug.cgi?id=109099
669 Reviewed by Andreas Kling.
671 * UIProcess/Storage/StorageManager.cpp:
672 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
673 (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
675 * UIProcess/Storage/StorageManager.h:
678 2013-02-06 Anders Carlsson <andersca@apple.com>
680 Pass the document source URL to the pluginLoadPolicy callback
681 https://bugs.webkit.org/show_bug.cgi?id=109084
682 <rdar://problem/13154516>
684 Reviewed by Andreas Kling.
686 * UIProcess/API/C/WKPage.h:
687 * UIProcess/WebPageProxy.cpp:
688 (WebKit::WebPageProxy::getPluginPath):
689 * UIProcess/WebPageProxy.h:
691 * UIProcess/WebPageProxy.messages.in:
692 * UIProcess/WebUIClient.cpp:
693 (WebKit::WebUIClient::pluginLoadPolicy):
694 * UIProcess/WebUIClient.h:
696 * WebProcess/WebPage/WebPage.cpp:
697 (WebKit::WebPage::createPlugin):
698 (WebKit::WebPage::canPluginHandleResponse):
700 2013-02-06 Alexey Proskuryakov <ap@apple.com>
702 Get rid of unneeded writeable preferences.
704 Reviewed by Anders Carlsson.
706 com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
707 early in WebKit2 development, before we moved a lot of functionality to UI process.
708 They don't appear to be needed any more.
710 Note that we do not even need to allow reading for com.apple.WebProcess.plist -
711 it's read at process initialization before we enter the sandbox, and services
712 have a different plist anyway.
714 * WebProcess/com.apple.WebProcess.sb.in:
716 2013-02-06 Sudarsana Nagineni <sudarsana.nagineni@intel.com>
718 [EFL][WK2] Assertion failure on MiniBrowser exit
719 https://bugs.webkit.org/show_bug.cgi?id=108932
721 Reviewed by Anders Carlsson.
723 WorkQueue is now refcounted after r141497, so increase ref
724 count when a new job is scheduled and unref it when it finishes.
726 * Platform/efl/WorkQueueEfl.cpp:
727 (WorkQueue::performWork):
728 (WorkQueue::performTimerWork):
729 (WorkQueue::dispatch):
730 (WorkQueue::dispatchAfterDelay):
732 2013-02-06 Simon Hausmann <simon.hausmann@digia.com>, Zoltan Arvai <zarvai@inf.u-szeged.hu>
734 [WK2][Win] Fix build after MessageID.h related changes and after r141619.
735 https://bugs.webkit.org/show_bug.cgi?id=108612
737 Reviewed by Anders Carlsson.
739 * Platform/CoreIPC/win/ConnectionWin.cpp:
740 (CoreIPC::Connection::platformInvalidate):
741 (CoreIPC::Connection::readEventHandler):
742 (CoreIPC::Connection::open):
743 (CoreIPC::Connection::sendOutgoingMessage):
744 * Platform/WorkQueue.h:
745 (WorkQueue::WorkItemWin::queue):
747 * Platform/win/SharedMemoryWin.cpp:
748 (WebKit::SharedMemory::Handle::decode):
749 * Platform/win/WorkQueueWin.cpp:
750 (WorkQueue::handleCallback):
751 (WorkQueue::performWorkOnRegisteredWorkThread):
753 2013-02-06 Mike West <mkwst@chromium.org>
755 Add an ENABLE_NOSNIFF feature flag.
756 https://bugs.webkit.org/show_bug.cgi?id=109029
758 Reviewed by Jochen Eisinger.
760 This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
761 when processing script and other resource types.
763 * Configurations/FeatureDefines.xcconfig:
765 2013-02-06 Marja Hölttä <marja@chromium.org>
767 Take referrer policy into account when clearing the referrer header
768 https://bugs.webkit.org/show_bug.cgi?id=86000
770 Reviewed by Alexey Proskuryakov.
772 The referrer should only be cleared when doing a https -> http redirect,
773 if the policy is "default". Otherwise the referrer should be left intact.
775 * NetworkProcess/NetworkResourceLoader.cpp:
776 (WebKit::NetworkResourceLoader::start):
777 * NetworkProcess/SchedulableLoader.cpp:
778 (WebKit::SchedulableLoader::SchedulableLoader):
779 * NetworkProcess/SchedulableLoader.h:
780 (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
782 * NetworkProcess/SyncNetworkResourceLoader.cpp:
783 (WebKit::SyncNetworkResourceLoader::start):
784 * NetworkProcess/mac/RemoteNetworkingContext.h:
785 (WebKit::RemoteNetworkingContext::create):
786 (RemoteNetworkingContext):
787 * NetworkProcess/mac/RemoteNetworkingContext.mm:
788 (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
790 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
791 * Shared/Network/NetworkResourceLoadParameters.cpp:
792 (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
793 (WebKit::NetworkResourceLoadParameters::encode):
794 (WebKit::NetworkResourceLoadParameters::decode):
795 * Shared/Network/NetworkResourceLoadParameters.h:
796 (NetworkResourceLoadParameters):
797 (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
798 * WebProcess/Network/WebResourceLoadScheduler.cpp:
799 (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
800 (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
801 (WebKit::WebResourceLoadScheduler::scheduleLoad):
802 * WebProcess/Network/WebResourceLoadScheduler.h:
803 (WebResourceLoadScheduler):
804 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
805 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
807 2013-02-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
809 [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
810 https://bugs.webkit.org/show_bug.cgi?id=108062
812 Reviewed by Kenneth Rohde Christiansen.
814 The Ewk View implementation is encapsulated within EwkView class.
815 Besides multiple refactoring of Ewk View evas smart object code was made.
817 * UIProcess/API/C/efl/WKView.cpp:
820 Aux function to share WKView creation implementation.
822 * UIProcess/API/efl/EwkView.cpp:
824 (defaultSmartClassInstance):
826 (EwkView::initSmartClassInterface):
827 (EwkView::toEvasObject):
828 (EwkView::smartData):
830 Renamed and moved here from ewk_view.
832 (EwkViewEventHandler):
833 (EwkViewEventHandler::subscribe):
834 (EwkViewEventHandler::unsubscribe):
837 Added a new template class to encapsulate Ewk View Evas events handling.
842 Constructor and desctructor are private.
844 (EwkView::createEvasObject):
846 Added factory function for ewk view evas objects creation.
848 (EwkView::handleEvasObjectAdd):
849 (EwkView::handleEvasObjectDelete):
850 (EwkView::handleEvasObjectResize):
851 (EwkView::handleEvasObjectMove):
852 (EwkView::handleEvasObjectCalculate):
853 (EwkView::handleEvasObjectShow):
854 (EwkView::handleEvasObjectHide):
855 (EwkView::handleEvasObjectColorSet):
857 Evas_Smart_Class interface callbacks moved into the EwkView class.
859 (EwkView::handleEwkViewFocusIn):
860 (EwkView::handleEwkViewFocusOut):
861 (EwkView::handleEwkViewMouseWheel):
862 (EwkView::handleEwkViewMouseDown):
863 (EwkView::handleEwkViewMouseUp):
864 (EwkView::handleEwkViewMouseMove):
865 (EwkView::handleEwkViewKeyDown):
866 (EwkView::handleEwkViewKeyUp):
868 Ewk_View_Smart_Class interface callback moved into the EwkView class.
870 (EwkView::handleTouchDown):
871 (EwkView::handleTouchUp):
872 (EwkView::handleTouchMove):
878 Aux function to get the EwkView instance fromevas object.
882 Aux function to check that given evas object is ewk view.
884 * UIProcess/API/efl/EwkView.h:
885 (EwkView::evasObject):
887 * UIProcess/API/efl/ewk_view.cpp:
888 (ewk_view_smart_class_set):
889 (ewk_view_smart_add):
890 (ewk_view_add_with_context):
891 (ewk_view_feed_touch_event):
892 (Ewk_Page_Contents_Context):
894 * UIProcess/API/efl/ewk_view_private.h: Removed.
896 * UIProcess/API/C/efl/WKView.cpp:
898 (WKViewCreateWithFixedLayout):
899 (WKViewCreateSnapshot):
900 * UIProcess/cairo/BackingStoreCairo.cpp:
901 (WebKit::BackingStore::incorporateUpdate):
902 * UIProcess/efl/ContextHistoryClientEfl.cpp:
903 (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
904 (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
905 (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
906 (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
907 * UIProcess/efl/PageClientBase.cpp:
908 (WebKit::PageClientBase::processDidCrash):
909 * UIProcess/efl/PageLoadClientEfl.cpp:
910 (WebKit::PageLoadClientEfl::didChangeBackForwardList):
911 * UIProcess/efl/PageUIClientEfl.cpp:
912 (WebKit::PageUIClientEfl::takeFocus):
913 (WebKit::PageUIClientEfl::focus):
914 (WebKit::PageUIClientEfl::unfocus):
915 * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
916 (WebKit::WebFullScreenManagerProxy::enterFullScreen):
917 (WebKit::WebFullScreenManagerProxy::exitFullScreen):
918 * UIProcess/efl/WebInspectorProxyEfl.cpp:
919 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
920 * UIProcess/efl/WebPageProxyEfl.cpp:
921 (WebKit::WebPageProxy::viewWidget):
923 Updated due to changes in EwkView interface.
925 2013-02-05 Tim Horton <timothy_horton@apple.com>
927 [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
928 https://bugs.webkit.org/show_bug.cgi?id=108992
929 <rdar://problem/13087365>
931 Reviewed by Anders Carlsson.
933 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
934 (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
935 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
936 (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
937 hosting context if we're in the window when swapping out contexts.
938 (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
939 of the layer hosting context (or unset it if we're out of the window).
941 2013-02-05 Anders Carlsson <andersca@apple.com>
943 WebKit clients should be able to override loading of blocked plug-ins
944 https://bugs.webkit.org/show_bug.cgi?id=108968
945 <rdar://problem/13154516>
947 Reviewed by Sam Weinig.
949 Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
950 of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
951 force loading of blacklisted plug-ins (and vice versa).
953 * UIProcess/API/C/WKPage.h:
954 * UIProcess/WebPageProxy.cpp:
955 (WebKit::WebPageProxy::getPluginPath):
956 * UIProcess/WebUIClient.cpp:
957 (WebKit::toWKPluginLoadPolicy):
959 (WebKit::toPluginModuleLoadPolicy):
960 (WebKit::WebUIClient::pluginLoadPolicy):
961 * UIProcess/WebUIClient.h:
964 2013-02-05 Simon Hausmann <simon.hausmann@digia.com>
966 [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
967 https://bugs.webkit.org/show_bug.cgi?id=108826
969 Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
972 This patch converts a few more usages of WebPageProxy to functions in
975 * UIProcess/API/qt/qquickwebview.cpp:
976 (QQuickWebViewPrivate::initialize):
977 (QQuickWebViewLegacyPrivate::zoomFactor):
978 (QQuickWebViewLegacyPrivate::setZoomFactor):
979 (QQuickWebViewExperimental::postMessage):
980 (QQuickWebViewExperimental::userAgent):
981 (QQuickWebViewExperimental::setUserAgent):
982 (QQuickWebViewExperimental::evaluateJavaScript):
983 (QQuickWebViewExperimental::findText):
984 (QQuickWebView::goBack):
985 (QQuickWebView::goForward):
986 (QQuickWebView::stop):
987 (QQuickWebView::reload):
988 (QQuickWebView::setUrl):
989 (QQuickWebView::canGoBack):
990 (QQuickWebView::canGoForward):
991 (QQuickWebView::loading):
992 (QQuickWebView::title):
993 (QQuickWebView::pageRef):
994 (QQuickWebView::loadHtml):
995 (QQuickWebView::runJavaScriptInMainFrame):
996 * UIProcess/API/qt/qquickwebview_p_p.h:
997 (QQuickWebViewPrivate):
999 2013-02-04 Gwang Yoon Hwang <ryumiel@company100.net>
1001 Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
1002 https://bugs.webkit.org/show_bug.cgi?id=108807
1004 Reviewed by Anders Carlsson.
1006 We need to add newly created WebCustomFilterProgramProxy to a hashset to
1007 disconnect when CoordinatedLayerTreeHost gets destructed.
1009 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1010 (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1012 2013-02-04 Benjamin Poulain <bpoulain@apple.com>
1014 Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
1015 https://bugs.webkit.org/show_bug.cgi?id=108741
1017 Reviewed by Tony Chang.
1019 Suspending and resuming application has been useless for a one. Someone just
1022 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1023 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1024 * WebProcess/WebPage/WebFrame.cpp:
1025 * WebProcess/WebPage/WebFrame.h:
1028 2013-02-04 Jaehun Lim <ljaehun.lim@samsung.com>
1030 [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
1031 https://bugs.webkit.org/show_bug.cgi?id=106979
1033 Reviewed by Benjamin Poulain.
1035 Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
1036 We can show confirmation window when beforeunload event is fired.
1038 * UIProcess/efl/PageUIClientEfl.cpp:
1039 (WebKit::PageUIClientEfl::PageUIClientEfl):
1040 (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
1042 * UIProcess/efl/PageUIClientEfl.h:
1045 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1047 [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
1048 https://bugs.webkit.org/show_bug.cgi?id=107931
1050 Reviewed by Anders Carlsson.
1052 This is just one step of the new plan for the EFL API.
1054 The plan is to move the public EFL-like API on top of the shared
1055 WK2 C API, plus a few EFL extensions (WKView class mostly).
1057 The EFL-like API can be seen as a convenience API which ties
1058 well into EFL and which makes it easy to add web experiences
1059 to existing and new EFL applications. It provides a smart object
1060 like API and a Evas_Object based view.
1062 For more advanced use cases, such as browser and runtime, it is
1063 possible to use the WK* C API, which is gives more flexibility
1064 while being more low level.
1066 The idea is that the WKView class will not depend on Evas_Object
1067 and X11 (future plan) unlike the current EFL-like API. This should
1068 make it possible to use it for cases where none of these are
1071 This patch introduces the WebView class which serves as our
1072 counterpart for the WKView class, and adds a few needed methods.
1074 The EwkView owns the WebView class (and will be constructing it
1075 in the near future when the EwkView class has been changed to
1076 handle all smart object related code)
1078 The clean up of the smart object related code as the proper
1079 construction of EwkView and WebView will be done in follow-up
1082 * UIProcess/API/C/efl/WKAPICastEfl.h:
1085 The WKView API is not based on WebView and not Evas_Object*
1087 * UIProcess/API/C/efl/WKView.cpp:
1089 (WKViewCreateWithFixedLayout):
1092 (WKViewSetThemePath):
1093 (WKViewSuspendActiveDOMObjectsAndAnimations):
1094 (WKViewResumeActiveDOMObjectsAndAnimations):
1095 (WKViewGetEvasObject):
1096 (WKViewCreateSnapshot):
1098 Add a few new WKView EFL C methods, and update existing
1099 methods to reflect that the WKViewRef is now a WebView*
1101 The construction methods will be rewritten when the smart
1102 object construction has been solved.
1104 * UIProcess/API/C/efl/WKView.h:
1105 * UIProcess/efl/WebView.cpp: Added.
1107 (WebKit::WebView::WebView):
1108 (WebKit::WebView::~WebView):
1109 (WebKit::WebView::initialize):
1110 (WebKit::WebView::setThemePath):
1111 (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
1112 (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
1113 * UIProcess/efl/WebView.h: Added.
1116 (WebKit::WebView::pageRef):
1117 (WebKit::WebView::evasObject):
1118 (WebKit::WebView::page):
1119 (WebKit::WebView::type):
1121 Add a new WebKit::WebView class for EFL.
1123 * UIProcess/API/efl/EwkView.cpp:
1125 (EwkView::~EwkView):
1127 (EwkView::setThemePath):
1128 (EwkView::createGLSurface):
1130 Base methods on C API instead of internal API as much
1131 as currently possible.
1133 * UIProcess/API/efl/EwkView.h:
1139 * UIProcess/API/efl/ewk_view.cpp:
1141 (ewk_view_base_add):
1142 (ewk_view_smart_add):
1144 Modify to return the EwkView class for now.
1146 * UIProcess/API/efl/ewk_view_private.h:
1147 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1148 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1150 Updated due to changed API.
1152 2013-02-04 Anders Carlsson <andersca@apple.com>
1154 Set up the storage manager as a connection queue
1155 https://bugs.webkit.org/show_bug.cgi?id=108879
1157 Reviewed by Sam Weinig.
1159 * UIProcess/Storage/StorageManager.cpp:
1160 (WebKit::StorageManager::processWillOpenConnection):
1161 Add the storage manager as a connection queue client.
1163 (WebKit::StorageManager::processWillCloseConnection):
1164 Remove the storage manager.
1166 * UIProcess/WebContext.cpp:
1167 (WebKit::WebContext::processWillOpenConnection):
1168 Call the storage manager.
1170 (WebKit::WebContext::processWillCloseConnection):
1171 Call the storage manager.
1173 * UIProcess/WebProcessProxy.cpp:
1174 (WebKit::WebProcessProxy::connectionWillOpen):
1177 (WebKit::WebProcessProxy::connectionWillClose):
1180 (WebKit::WebProcessProxy::didFinishLaunching):
1183 2013-02-04 Anders Carlsson <andersca@apple.com>
1185 Send message when creating and destroying StorageAreaProxy objects
1186 https://bugs.webkit.org/show_bug.cgi?id=108874
1188 Reviewed by Sam Weinig.
1190 * Shared/SecurityOriginData.cpp:
1191 (WebKit::SecurityOriginData::fromSecurityOrigin):
1192 * Shared/SecurityOriginData.h:
1193 (SecurityOriginData):
1194 Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
1196 * WebProcess/Storage/StorageAreaProxy.cpp:
1197 (WebKit::generateStorageAreaID):
1198 New function to create a unique storage area ID.
1200 (WebKit::StorageAreaProxy::StorageAreaProxy):
1201 Send a CreateStorageArea message.
1203 (WebKit::StorageAreaProxy::~StorageAreaProxy):
1204 Send a DestroyStorageArea message.
1206 (WebKit::StorageAreaProxy::contains):
1207 Remove this assertion for now, it fires too often.
1209 * WebProcess/Storage/StorageNamespaceProxy.h:
1210 (WebKit::StorageNamespaceProxy::storageNamespaceID):
1213 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1215 [EFL][WK2] Use C API inside EwkView
1216 https://bugs.webkit.org/show_bug.cgi?id=108825
1218 Reviewed by Anders Carlsson.
1220 A straight-forward port towards the C API.
1222 * UIProcess/API/efl/EwkView.cpp:
1223 (EwkView::EwkView): Use C API for common default preferences.
1224 (EwkView::wkPage): Make it const and remove useless comment.
1225 (EwkView::deviceScaleFactor):
1227 (EwkView::customTextEncodingName):
1228 (EwkView::setCustomTextEncodingName):
1229 (EwkView::informURLChange):
1230 * UIProcess/API/efl/EwkView.h:
1233 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1235 Remove an unnecessary sandbox rule.
1237 Reviewed by Sam Weinig.
1239 * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
1240 /Library/Managed Preferences, no need for another rule for something inside it.
1242 2013-02-04 Brady Eidson <beidson@apple.com>
1244 WebProcess crashes handling repeated NetworkProcess crashes.
1245 <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
1247 Reviewed by Alexey Proskuryakov.
1249 - Rename the concept of "unschedulable loader" to "internally failed loader"
1250 - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
1251 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1252 (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
1253 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1254 (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
1255 (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
1256 (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
1257 (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1258 * WebProcess/Network/WebResourceLoadScheduler.h:
1260 WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
1261 * WebProcess/Network/WebResourceLoader.cpp:
1262 * WebProcess/Network/WebResourceLoader.h:
1263 (WebKit::WebResourceLoader::resourceLoader):
1265 2013-02-04 Anders Carlsson <andersca@apple.com>
1267 Update message generation to use the new queue client semantics
1268 https://bugs.webkit.org/show_bug.cgi?id=108865
1270 Reviewed by Andreas Kling.
1272 * Scripts/webkit2/messages.py:
1273 (connection_work_queue_message_statement):
1274 (async_message_statement):
1275 (generate_message_handler):
1276 * Scripts/webkit2/messages_unittest.py:
1277 * Shared/mac/SecItemShim.cpp:
1278 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1279 * Shared/mac/SecItemShim.h:
1281 * UIProcess/Storage/StorageManager.cpp:
1282 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1283 * UIProcess/Storage/StorageManager.h:
1285 * UIProcess/WebProcessProxy.cpp:
1286 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1287 * UIProcess/WebProcessProxy.h:
1289 * UIProcess/mac/SecItemShimProxy.cpp:
1290 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1291 * UIProcess/mac/SecItemShimProxy.h:
1293 * WebKit2.xcodeproj/project.pbxproj:
1294 * WebProcess/WebPage/EventDispatcher.cpp:
1295 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1296 * WebProcess/WebPage/EventDispatcher.h:
1298 * WebProcess/WebProcess.cpp:
1299 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1300 * WebProcess/WebProcess.h:
1303 2013-02-04 Abhishek Arya <inferno@chromium.org>
1305 Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1306 https://bugs.webkit.org/show_bug.cgi?id=108668
1308 Reviewed by Eric Seidel.
1310 * Shared/mac/SandboxExtensionMac.mm:
1311 (WebKit::SandboxExtension::HandleArray::operator[]):
1313 2013-02-04 Anders Carlsson <andersca@apple.com>
1315 Change didReceiveMessageOnConnectionWorkQueue semantics
1316 https://bugs.webkit.org/show_bug.cgi?id=108859
1318 Reviewed by Sam Weinig.
1320 Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
1321 OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
1322 work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
1323 of the decoder implicitly means that the message was handled.
1325 * Platform/CoreIPC/Connection.cpp:
1326 (CoreIPC::Connection::processIncomingMessage):
1327 * Platform/CoreIPC/Connection.h:
1329 * Shared/mac/SecItemShim.cpp:
1330 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1331 * Shared/mac/SecItemShim.h:
1333 * UIProcess/Storage/StorageManager.cpp:
1334 (WebKit::StorageManager::StorageManager):
1335 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1336 * UIProcess/Storage/StorageManager.h:
1339 * UIProcess/WebProcessProxy.cpp:
1340 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1341 * UIProcess/WebProcessProxy.h:
1343 * UIProcess/mac/SecItemShimProxy.cpp:
1344 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1345 * UIProcess/mac/SecItemShimProxy.h:
1347 * WebProcess/WebPage/EventDispatcher.cpp:
1348 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1349 * WebProcess/WebPage/EventDispatcher.h:
1351 * WebProcess/WebProcess.cpp:
1352 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1353 * WebProcess/WebProcess.h:
1356 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1358 <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
1360 Reviewed by Sam Weinig.
1362 * WebProcess/com.apple.WebProcess.sb.in:
1364 2013-02-04 Anders Carlsson <andersca@apple.com>
1366 Add didCloseOnConnectionWorkQueue to Connection::QueueClient
1367 https://bugs.webkit.org/show_bug.cgi?id=108853
1369 Reviewed by Andreas Kling.
1371 * Platform/CoreIPC/Connection.cpp:
1372 (CoreIPC::Connection::connectionDidClose):
1373 * Platform/CoreIPC/Connection.h:
1375 * Shared/mac/SecItemShim.cpp:
1376 (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
1377 * Shared/mac/SecItemShim.h:
1379 * UIProcess/Storage/StorageManager.cpp:
1380 (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
1382 * UIProcess/Storage/StorageManager.h:
1384 * UIProcess/WebProcessProxy.cpp:
1385 (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
1387 * UIProcess/WebProcessProxy.h:
1389 * UIProcess/mac/SecItemShimProxy.cpp:
1390 (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
1391 * UIProcess/mac/SecItemShimProxy.h:
1393 * WebProcess/WebPage/EventDispatcher.cpp:
1394 (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
1396 * WebProcess/WebPage/EventDispatcher.h:
1398 * WebProcess/WebProcess.cpp:
1399 (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
1401 * WebProcess/WebProcess.h:
1404 2013-02-04 Martin Robinson <mrobinson@igalia.com>
1406 Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
1409 * GNUmakefile.list.am:
1411 2013-02-04 Enrica Casucci <enrica@apple.com>
1413 Add specific EditActions for Bold and Italic commands.
1414 https://bugs.webkit.org/show_bug.cgi?id=108842.
1415 <rdar://problem/13098252>
1417 Reviewed by Ryosuke Niwa.
1419 * UIProcess/WebEditCommandProxy.cpp:
1420 (WebKit::WebEditCommandProxy::nameForEditAction):
1422 2013-02-04 Anders Carlsson <andersca@apple.com>
1424 Use a separate queue for the connection watchdog callback in the web process
1425 https://bugs.webkit.org/show_bug.cgi?id=108844
1427 Reviewed by Andreas Kling.
1429 Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
1430 Instead, create a new, temporary work queue where the exit call will be dispatched to.
1432 * Platform/CoreIPC/Connection.cpp:
1433 (CoreIPC::Connection::connectionDidClose):
1434 * Platform/CoreIPC/Connection.h:
1436 * Shared/ChildProcess.cpp:
1437 (WebKit::didCloseOnConnectionWorkQueue):
1439 2013-02-04 Tim Horton <timothy_horton@apple.com>
1441 Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
1442 https://bugs.webkit.org/show_bug.cgi?id=108729
1443 <rdar://problem/13047546>
1445 Reviewed by Anders Carlsson.
1447 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1448 (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
1449 current PlatformLayer corresponding to m_pageOverlayLayer.
1450 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1451 (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
1452 (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
1453 (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
1454 (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.
1455 (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.
1457 2013-02-04 Anders Carlsson <andersca@apple.com>
1459 Use UNUSED_PARAM instead of C style comments.
1461 * UIProcess/Storage/StorageManager.cpp:
1462 (WebKit::StorageManager::createStorageArea):
1464 2013-02-04 Christophe Dumez <dchris@gmail.com>
1466 [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
1467 https://bugs.webkit.org/show_bug.cgi?id=108816
1469 Reviewed by Anders Carlsson.
1471 As we are trying to minimize use of external dependencies in our WK2 EFL
1472 API implementation, we should stop using libsoup in
1473 ewk_url_scheme_request and use the WK2 C API instead.
1475 * UIProcess/API/efl/ewk_url_scheme_request.cpp:
1476 (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
1478 2013-02-04 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
1480 [WK2][EFL] Weird stripe at the end of the page
1481 https://bugs.webkit.org/show_bug.cgi?id=108820
1483 Reviewed by Noam Rosenthal.
1485 The page scroll bound was artificially enlarged by one causing the artifact appearance.
1487 * UIProcess/PageViewportController.cpp:
1488 (WebKit::PageViewportController::boundContentsPositionAtScale):
1490 2013-02-04 David Kilzer <ddkilzer@apple.com>
1492 Sort WebKit2 Xcode project file
1494 * WebKit2.xcodeproj/project.pbxproj:
1496 2013-02-04 Simon Hausmann <simon.hausmann@digia.com>
1498 [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
1499 https://bugs.webkit.org/show_bug.cgi?id=108651
1501 Reviewed by Sam Weinig.
1503 It's straight-forward port towards the C API.
1505 * UIProcess/API/qt/qquickwebview.cpp:
1506 (QQuickWebViewPrivate::initialize):
1508 (QQuickWebViewPrivate::updateUserScripts):
1509 * UIProcess/API/qt/qquickwebview_p_p.h:
1510 (QQuickWebViewPrivate):
1512 2013-02-04 Balazs Kelemen <kbalazs@webkit.org>
1514 [Soup] Wrap SoupSession by NetworkStorageSession
1515 https://bugs.webkit.org/show_bug.cgi?id=108615
1517 Reviewed by Alexey Proskuryakov.
1519 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
1520 (WebKit::WebFrameNetworkingContext::storageSession):
1521 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
1522 (WebFrameNetworkingContext):
1524 2013-02-03 David Kilzer <ddkilzer@apple.com>
1526 Upstream ENABLE_PDFKIT_PLUGIN settting
1527 <http://webkit.org/b/108792>
1529 Reviewed by Tim Horton.
1531 * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1532 on iOS since PDFKit is a Mac-only framework.
1534 2013-02-01 Alexey Proskuryakov <ap@apple.com>
1536 Silently block one more directory needed for NSApplication initialization.
1538 Reviewed by Sam Weinig.
1540 * WebProcess/com.apple.WebProcess.sb.in:
1542 2013-02-03 KwangYong Choi <ky0.choi@samsung.com>
1544 Fix build warning after r141648
1545 https://bugs.webkit.org/show_bug.cgi?id=108784
1547 Reviewed by Kentaro Hara.
1549 Fix -Wunused-parameter build warning.
1551 * UIProcess/Storage/StorageManager.cpp:
1552 (WebKit::StorageManager::createStorageArea):
1553 (WebKit::StorageManager::destroyStorageArea):
1555 2013-02-03 Joanmarie Diggs <jdiggs@igalia.com>
1557 [GTK] Make distcheck fails
1558 https://bugs.webkit.org/show_bug.cgi?id=108756
1560 Reviewed by Kentaro Hara.
1562 * GNUmakefile.list.am: Remove header files which no longer exist
1564 2013-02-02 Sam Weinig <sam@webkit.org>
1566 Remove more LegacyReceivers
1567 https://bugs.webkit.org/show_bug.cgi?id=108758
1569 Reviewed by Anders Carlsson.
1571 * UIProcess/Downloads/DownloadProxy.cpp:
1572 * UIProcess/Downloads/DownloadProxy.messages.in:
1573 * UIProcess/WebApplicationCacheManagerProxy.cpp:
1574 * UIProcess/WebApplicationCacheManagerProxy.h:
1575 (WebApplicationCacheManagerProxy):
1576 * UIProcess/WebApplicationCacheManagerProxy.messages.in:
1577 * UIProcess/WebCookieManagerProxy.cpp:
1578 * UIProcess/WebCookieManagerProxy.h:
1579 (WebCookieManagerProxy):
1580 * UIProcess/WebCookieManagerProxy.messages.in:
1581 * UIProcess/WebDatabaseManagerProxy.cpp:
1582 * UIProcess/WebDatabaseManagerProxy.h:
1583 (WebDatabaseManagerProxy):
1584 * UIProcess/WebDatabaseManagerProxy.messages.in:
1585 * UIProcess/mac/RemoteLayerTreeHost.h:
1586 (RemoteLayerTreeHost):
1587 * UIProcess/mac/RemoteLayerTreeHost.messages.in:
1588 * UIProcess/mac/RemoteLayerTreeHost.mm:
1589 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1590 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1591 (WebApplicationCacheManager):
1592 * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1593 * WebProcess/Cookies/WebCookieManager.cpp:
1594 * WebProcess/Cookies/WebCookieManager.h:
1596 * WebProcess/Cookies/WebCookieManager.messages.in:
1597 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1598 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1599 (WebDatabaseManager):
1600 * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
1602 2013-02-02 Sam Weinig <sam@webkit.org>
1604 Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
1605 https://bugs.webkit.org/show_bug.cgi?id=108757
1607 Reviewed by Anders Carlsson.
1609 * Shared/Authentication/AuthenticationManager.cpp:
1610 * Shared/Authentication/AuthenticationManager.h:
1611 (AuthenticationManager):
1612 * Shared/Authentication/AuthenticationManager.messages.in:
1613 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1614 (CustomProtocolManager):
1615 * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1616 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1617 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1618 (CustomProtocolManagerProxy):
1619 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1620 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1622 2013-02-02 Christophe Dumez <christophe.dumez@intel.com>
1624 [EFL][WK2] Use C API inside ewk_file_chooser_request
1625 https://bugs.webkit.org/show_bug.cgi?id=107811
1627 Reviewed by Sam Weinig.
1629 Use C API inside ewk_file_chooser_request instead of
1630 accessing the internal C++ classes directly, to
1631 avoid violating API layering.
1633 * UIProcess/API/efl/ewk_file_chooser_request.cpp:
1634 (EwkFileChooserRequest::EwkFileChooserRequest):
1635 (EwkFileChooserRequest::~EwkFileChooserRequest):
1636 (EwkFileChooserRequest::allowMultipleFiles):
1637 (EwkFileChooserRequest::acceptedMIMETypes):
1638 (EwkFileChooserRequest::cancel):
1639 (EwkFileChooserRequest::chooseFiles):
1640 (ewk_file_chooser_request_accepted_mimetypes_get):
1641 (ewk_file_chooser_request_files_choose):
1642 (ewk_file_chooser_request_file_choose):
1643 * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1644 (EwkFileChooserRequest::create):
1645 (EwkFileChooserRequest):
1646 * UIProcess/efl/PageUIClientEfl.cpp:
1647 (WebKit::PageUIClientEfl::runOpenPanel):
1649 2013-02-02 Sam Weinig <sam@webkit.org>
1651 Stop keeping a frame tree in the UIProcess
1652 https://bugs.webkit.org/show_bug.cgi?id=81728
1654 Reviewed by Oliver Hunt.
1656 This patch removes the parent/child relationships of WebFrameProxys
1659 * UIProcess/API/C/WKFrame.cpp:
1660 (WKFrameCopyChildFrames):
1661 (WKFrameGetParentFrame):
1662 * UIProcess/API/C/WKFrame.h:
1663 Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
1664 but keep them around as their symbols are still needed for nightlies.
1666 * UIProcess/WebFrameProxy.cpp:
1667 (WebKit::WebFrameProxy::WebFrameProxy):
1668 (WebKit::WebFrameProxy::disconnect):
1669 * UIProcess/WebFrameProxy.h:
1670 Remove parent/child connections.
1672 * UIProcess/WebPageProxy.cpp:
1673 (WebKit::WebPageProxy::didCreateSubframe):
1674 (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1675 * UIProcess/WebPageProxy.h:
1676 * UIProcess/WebPageProxy.messages.in:
1677 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1678 (WebKit::WebFrameLoaderClient::didSaveToPageCache):
1679 (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
1680 * WebProcess/WebPage/WebFrame.cpp:
1681 (WebKit::WebFrame::createSubframe):
1682 Remove/Update messages that only served to update the parent/child connection.
1684 2013-02-02 Sam Weinig <sam@webkit.org>
1686 Make it possible to modify the connection from ChildProcessProxy subclasses.
1688 Reviewed by Anders Carlsson.
1690 * Shared/ChildProcessProxy.cpp:
1691 (WebKit::ChildProcessProxy::ChildProcessProxy):
1692 (WebKit::ChildProcessProxy::didFinishLaunching):
1693 (WebKit::ChildProcessProxy::clearConnection):
1694 (WebKit::ChildProcessProxy::connectionWillOpen):
1695 (WebKit::ChildProcessProxy::connectionWillClose):
1696 * Shared/ChildProcessProxy.h:
1697 (ChildProcessProxy):
1698 * UIProcess/WebProcessProxy.cpp:
1699 (WebKit::WebProcessProxy::WebProcessProxy):
1700 (WebKit::WebProcessProxy::connectionWillOpen):
1701 (WebKit::WebProcessProxy::connectionWillClose):
1702 * UIProcess/WebProcessProxy.h:
1705 2013-02-02 David Kilzer <ddkilzer@apple.com>
1707 Upstream iOS FeatureDefines
1708 <http://webkit.org/b/108753>
1710 Reviewed by Anders Carlsson.
1712 * Configurations/FeatureDefines.xcconfig:
1713 - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
1714 - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
1715 - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add
1716 PLATFORM_NAME variant to reduce future merge conflicts.
1718 2013-02-02 Csaba Osztrogonác <ossy@webkit.org>
1720 [Qt][WK2] Unreviewed buildfix after r141648.
1722 * DerivedSources.pri:
1724 2013-02-02 Zan Dobersek <zdobersek@igalia.com>
1726 Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
1730 * GNUmakefile.list.am:
1732 2013-02-01 Zan Dobersek <zdobersek@igalia.com>
1734 Unreviewed GTK build fix after r141648.
1736 * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
1737 should be searched for *.messages.in files.
1739 2013-02-01 Gyuyoung Kim <gyuyoung.kim@samsung.com>
1741 Unreviewed build fix after r141648
1743 Needs to add StorageManager.messages.in to CMakeLists.txt.
1747 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1749 Build fix for CustomProtocolManagerMac after r141658.
1751 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1752 (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
1754 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1756 [WK2] Use light supplement names instead of static AtomicStrings
1757 https://bugs.webkit.org/show_bug.cgi?id=108570
1759 Reviewed by Anders Carlsson.
1761 Since all the supplement names are just string literals and are all different,
1762 we can just use their pointer as the key in the supplement hashmaps.
1764 This is lighter and faster than using AtomicString. WebCore already moved to this
1767 * NetworkProcess/NetworkProcess.h:
1768 (WebKit::NetworkProcess::addSupplement):
1770 * Shared/Authentication/AuthenticationManager.cpp:
1771 (WebKit::AuthenticationManager::supplementName):
1772 * Shared/Authentication/AuthenticationManager.h:
1773 (AuthenticationManager):
1774 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1775 (CustomProtocolManager):
1776 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1777 (WebKit::CustomProtocolManager::supplementName):
1778 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1779 (WebKit::WebNotificationManagerProxy::supplementName):
1780 * UIProcess/Notifications/WebNotificationManagerProxy.h:
1781 (WebNotificationManagerProxy):
1782 * UIProcess/WebApplicationCacheManagerProxy.cpp:
1783 (WebKit::WebApplicationCacheManagerProxy::supplementName):
1784 * UIProcess/WebApplicationCacheManagerProxy.h:
1785 (WebApplicationCacheManagerProxy):
1786 * UIProcess/WebContext.h:
1788 * UIProcess/WebCookieManagerProxy.cpp:
1789 (WebKit::WebCookieManagerProxy::supplementName):
1790 * UIProcess/WebCookieManagerProxy.h:
1791 (WebCookieManagerProxy):
1792 * UIProcess/WebDatabaseManagerProxy.cpp:
1793 (WebKit::WebDatabaseManagerProxy::supplementName):
1794 * UIProcess/WebDatabaseManagerProxy.h:
1795 (WebDatabaseManagerProxy):
1796 * UIProcess/WebGeolocationManagerProxy.cpp:
1797 (WebKit::WebGeolocationManagerProxy::supplementName):
1798 * UIProcess/WebGeolocationManagerProxy.h:
1799 (WebGeolocationManagerProxy):
1800 * UIProcess/WebKeyValueStorageManagerProxy.cpp:
1801 (WebKit::WebKeyValueStorageManagerProxy::supplementName):
1802 * UIProcess/WebKeyValueStorageManagerProxy.h:
1803 (WebKeyValueStorageManagerProxy):
1804 * UIProcess/WebMediaCacheManagerProxy.cpp:
1805 (WebKit::WebMediaCacheManagerProxy::supplementName):
1806 * UIProcess/WebMediaCacheManagerProxy.h:
1807 (WebMediaCacheManagerProxy):
1808 * UIProcess/WebResourceCacheManagerProxy.cpp:
1809 (WebKit::WebResourceCacheManagerProxy::supplementName):
1810 * UIProcess/WebResourceCacheManagerProxy.h:
1811 (WebResourceCacheManagerProxy):
1812 * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
1813 (WebKit::WebSoupRequestManagerProxy::supplementName):
1814 * UIProcess/soup/WebSoupRequestManagerProxy.h:
1815 (WebSoupRequestManagerProxy):
1816 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1817 (WebKit::WebApplicationCacheManager::supplementName):
1818 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1819 (WebApplicationCacheManager):
1820 * WebProcess/Cookies/WebCookieManager.cpp:
1821 (WebKit::WebCookieManager::supplementName):
1822 * WebProcess/Cookies/WebCookieManager.h:
1824 * WebProcess/Geolocation/WebGeolocationManager.cpp:
1825 (WebKit::WebGeolocationManager::supplementName):
1826 * WebProcess/Geolocation/WebGeolocationManager.h:
1827 (WebGeolocationManager):
1828 * WebProcess/MediaCache/WebMediaCacheManager.cpp:
1829 (WebKit::WebMediaCacheManager::supplementName):
1830 * WebProcess/MediaCache/WebMediaCacheManager.h:
1831 (WebMediaCacheManager):
1832 * WebProcess/Notifications/WebNotificationManager.cpp:
1833 (WebKit::WebNotificationManager::supplementName):
1834 * WebProcess/Notifications/WebNotificationManager.h:
1835 (WebNotificationManager):
1836 * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
1837 (WebKit::WebResourceCacheManager::supplementName):
1838 * WebProcess/ResourceCache/WebResourceCacheManager.h:
1839 (WebResourceCacheManager):
1840 * WebProcess/Storage/WebKeyValueStorageManager.cpp:
1841 (WebKit::WebKeyValueStorageManager::supplementName):
1842 * WebProcess/Storage/WebKeyValueStorageManager.h:
1843 (WebKeyValueStorageManager):
1844 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1845 (WebKit::WebDatabaseManager::supplementName):
1846 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1847 (WebDatabaseManager):
1848 * WebProcess/WebProcess.h:
1849 (WebKit::WebProcess::addSupplement):
1852 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
1854 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
1855 https://bugs.webkit.org/show_bug.cgi?id=108558
1857 Reviewed by Dean Jackson.
1859 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1860 (WKBundleFramePauseAnimationOnElementWithId):
1861 * WebProcess/WebPage/WebFrame.cpp:
1862 (WebKit::WebFrame::pauseAnimationOnElementWithId):
1863 * WebProcess/WebPage/WebFrame.h:
1866 2013-02-01 Anders Carlsson <andersca@apple.com>
1868 More work on UI side storage
1869 https://bugs.webkit.org/show_bug.cgi?id=108700
1871 Reviewed by Sam Weinig.
1873 * DerivedSources.make:
1874 Add StorageManager.messages.in.
1876 * Platform/CoreIPC/HandleMessage.h:
1877 (CoreIPC::callMemberFunction):
1880 * UIProcess/Storage/StorageManager.cpp:
1881 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1882 Call the right function.
1884 (WebKit::StorageManager::createStorageArea):
1885 (WebKit::StorageManager::destroyStorageArea):
1888 * UIProcess/Storage/StorageManager.messages.in: Added.
1889 Add new messages files.
1891 * WebKit2.xcodeproj/project.pbxproj:
1894 * WebProcess/Storage/StorageAreaProxy.cpp:
1895 (WebKit::StorageAreaProxy::~StorageAreaProxy):
1898 (WebKit::StorageAreaProxy::canAccessStorage):
1899 (WebKit::StorageAreaProxy::incrementAccessCount):
1900 (WebKit::StorageAreaProxy::decrementAccessCount):
1903 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1905 [Gtk] [WK2] Fix build after r141619
1906 https://bugs.webkit.org/show_bug.cgi?id=108687
1908 Reviewed by Benjamin Poulain.
1910 Take a reference instead of a pointer for decoding functions.
1912 * Platform/gtk/SharedMemoryGtk.cpp:
1913 (WebKit::SharedMemory::Handle::decode):
1914 * Shared/gtk/ArgumentCodersGtk.cpp:
1915 (CoreIPC::decodeImage):
1916 (CoreIPC::decodeDataObject):
1917 (CoreIPC::::decode):
1918 (CoreIPC::decodeGKeyFile):
1920 * Shared/gtk/ArgumentCodersGtk.h:
1921 * Shared/gtk/LayerTreeContextGtk.cpp:
1922 (WebKit::LayerTreeContext::decode):
1924 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1926 [EFL] [WK2] Fix build after r141619
1927 https://bugs.webkit.org/show_bug.cgi?id=108683
1929 Reviewed by Benjamin Poulain.
1931 Take a reference instead of a pointer for decoding functions.
1933 * Shared/WebBatteryStatus.cpp:
1934 (WebKit::WebBatteryStatus::Data::decode):
1935 * Shared/WebBatteryStatus.h:
1937 * Shared/WebNetworkInfo.cpp:
1938 (WebKit::WebNetworkInfo::Data::decode):
1939 * Shared/WebNetworkInfo.h:
1941 * Shared/cairo/LayerTreeContextCairo.cpp:
1942 (WebKit::LayerTreeContext::decode):
1943 * Shared/efl/LayerTreeContextEfl.cpp:
1944 (WebKit::LayerTreeContext::decode):
1945 * Shared/soup/PlatformCertificateInfo.cpp:
1946 (WebKit::PlatformCertificateInfo::decode):
1947 * Shared/soup/PlatformCertificateInfo.h:
1948 (PlatformCertificateInfo):
1949 * Shared/soup/WebCoreArgumentCodersSoup.cpp:
1950 (CoreIPC::::decodePlatformData):
1952 2013-02-01 Brady Eidson <beidson@apple.com>
1954 Clean up WebArchive loading with the NetworkProcess
1955 <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
1957 Reviewed by Alexey Proskuryakov.
1959 * NetworkProcess/HostRecord.cpp:
1960 (WebKit::HostRecord::servePendingRequestsForQueue): Add new logging.
1961 (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
1963 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1964 (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
1966 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1967 (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
1968 and add new logging to better explore archive loading behavior in the future.
1970 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
1972 [Qt] [WK2] Fix build after r141619
1973 https://bugs.webkit.org/show_bug.cgi?id=108680
1975 Reviewed by Benjamin Poulain.
1977 Take a reference instead of a pointer for decoding functions.
1979 * Platform/unix/SharedMemoryUnix.cpp:
1980 (WebKit::SharedMemory::Handle::decode):
1981 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1982 (CoreIPC::::decode):
1983 (CoreIPC::decodeTimingFunction):
1984 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
1985 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1986 (WebKit::WebCoordinatedSurface::Handle::decode):
1987 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1989 * Shared/qt/ArgumentCodersQt.cpp:
1990 (CoreIPC::::decode):
1991 * Shared/qt/ArgumentCodersQt.h:
1993 * Shared/qt/LayerTreeContextQt.cpp:
1994 (WebKit::LayerTreeContext::decode):
1995 * Shared/qt/PlatformCertificateInfo.h:
1996 (WebKit::PlatformCertificateInfo::decode):
1997 * Shared/qt/QtNetworkReplyData.cpp:
1998 (WebKit::QtNetworkReplyData::decode):
1999 * Shared/qt/QtNetworkReplyData.h:
2000 (QtNetworkReplyData):
2001 * Shared/qt/QtNetworkRequestData.cpp:
2002 (WebKit::QtNetworkRequestData::decode):
2003 * Shared/qt/QtNetworkRequestData.h:
2004 (QtNetworkRequestData):
2005 * Shared/qt/WebCoreArgumentCodersQt.cpp:
2006 (CoreIPC::::decodePlatformData):
2008 2013-02-01 Anders Carlsson <andersca@apple.com>
2010 Message decoding functions should take a MessageDecoder reference
2011 https://bugs.webkit.org/show_bug.cgi?id=108669
2013 Reviewed by Andreas Kling.
2015 Message encoding functions already take a reference instead of a pointer, so
2016 make the decoding functions take a reference as well.
2018 * Platform/CoreIPC/ArgumentCoder.h:
2019 (CoreIPC::ArgumentCoder::decode):
2020 * Platform/CoreIPC/ArgumentCoders.cpp:
2021 (CoreIPC::::decode):
2022 (CoreIPC::decodeStringText):
2023 * Platform/CoreIPC/ArgumentCoders.h:
2024 (CoreIPC::SimpleArgumentCoder::decode):
2025 * Platform/CoreIPC/ArgumentDecoder.h:
2026 (CoreIPC::ArgumentDecoder::decode):
2027 * Platform/CoreIPC/Arguments.h:
2028 (CoreIPC::Arguments0::decode):
2029 (CoreIPC::Arguments1::decode):
2030 (CoreIPC::Arguments2::decode):
2031 (CoreIPC::Arguments3::decode):
2032 (CoreIPC::Arguments4::decode):
2033 (CoreIPC::Arguments5::decode):
2034 (CoreIPC::Arguments6::decode):
2035 (CoreIPC::Arguments7::decode):
2036 (CoreIPC::Arguments8::decode):
2037 (CoreIPC::Arguments10::decode):
2038 * Platform/CoreIPC/Attachment.cpp:
2039 (CoreIPC::Attachment::decode):
2040 * Platform/CoreIPC/Attachment.h:
2042 * Platform/CoreIPC/DataReference.cpp:
2043 (CoreIPC::DataReference::decode):
2044 * Platform/CoreIPC/DataReference.h:
2046 * Platform/CoreIPC/StringReference.cpp:
2047 (CoreIPC::StringReference::decode):
2048 * Platform/CoreIPC/StringReference.h:
2050 * Platform/CoreIPC/mac/MachPort.h:
2051 (CoreIPC::MachPort::decode):
2052 * Platform/SharedMemory.h:
2054 * Platform/mac/SharedMemoryMac.cpp:
2055 (WebKit::SharedMemory::Handle::decode):
2056 * PluginProcess/PluginCreationParameters.cpp:
2057 (WebKit::PluginCreationParameters::decode):
2058 * PluginProcess/PluginCreationParameters.h:
2059 (PluginCreationParameters):
2060 * Shared/DictionaryPopupInfo.cpp:
2061 (WebKit::DictionaryPopupInfo::decode):
2062 * Shared/DictionaryPopupInfo.h:
2063 (DictionaryPopupInfo):
2064 * Shared/EditorState.cpp:
2065 (WebKit::EditorState::decode):
2066 * Shared/EditorState.h:
2068 * Shared/FontInfo.cpp:
2069 (WebKit::FontInfo::decode):
2070 * Shared/FontInfo.h:
2072 * Shared/LayerTreeContext.h:
2074 * Shared/Network/NetworkProcessCreationParameters.cpp:
2075 (WebKit::NetworkProcessCreationParameters::decode):
2076 * Shared/Network/NetworkProcessCreationParameters.h:
2077 (NetworkProcessCreationParameters):
2078 * Shared/Network/NetworkResourceLoadParameters.cpp:
2079 (WebKit::NetworkResourceLoadParameters::decode):
2080 * Shared/Network/NetworkResourceLoadParameters.h:
2081 (NetworkResourceLoadParameters):
2082 * Shared/OriginAndDatabases.cpp:
2083 (WebKit::OriginAndDatabases::decode):
2084 * Shared/OriginAndDatabases.h:
2085 (OriginAndDatabases):
2086 * Shared/PlatformPopupMenuData.cpp:
2087 (WebKit::PlatformPopupMenuData::decode):
2088 * Shared/PlatformPopupMenuData.h:
2089 (PlatformPopupMenuData):
2090 * Shared/Plugins/NPIdentifierData.cpp:
2091 (WebKit::NPIdentifierData::decode):
2092 * Shared/Plugins/NPIdentifierData.h:
2094 * Shared/Plugins/NPVariantData.cpp:
2095 (WebKit::NPVariantData::decode):
2096 * Shared/Plugins/NPVariantData.h:
2098 * Shared/Plugins/PluginProcessCreationParameters.cpp:
2099 (WebKit::PluginProcessCreationParameters::decode):
2100 * Shared/Plugins/PluginProcessCreationParameters.h:
2101 (PluginProcessCreationParameters):
2102 * Shared/PrintInfo.cpp:
2103 (WebKit::PrintInfo::decode):
2104 * Shared/PrintInfo.h:
2106 * Shared/SandboxExtension.h:
2109 (WebKit::SandboxExtension::Handle::decode):
2110 (WebKit::SandboxExtension::HandleArray::decode):
2111 * Shared/SecurityOriginData.cpp:
2112 (WebKit::SecurityOriginData::decode):
2113 * Shared/SecurityOriginData.h:
2114 (SecurityOriginData):
2115 * Shared/SessionState.cpp:
2116 (WebKit::SessionState::decode):
2117 * Shared/SessionState.h:
2119 * Shared/ShareableBitmap.cpp:
2120 (WebKit::ShareableBitmap::Handle::decode):
2121 * Shared/ShareableBitmap.h:
2123 * Shared/ShareableResource.cpp:
2124 (WebKit::ShareableResource::Handle::decode):
2125 * Shared/ShareableResource.h:
2127 * Shared/SharedWorkerProcessCreationParameters.cpp:
2128 (WebKit::SharedWorkerProcessCreationParameters::decode):
2129 * Shared/SharedWorkerProcessCreationParameters.h:
2130 (SharedWorkerProcessCreationParameters):
2131 * Shared/StatisticsData.cpp:
2132 (WebKit::StatisticsData::decode):
2133 * Shared/StatisticsData.h:
2135 * Shared/StringPairVector.h:
2136 (WebKit::StringPairVector::decode):
2137 * Shared/UpdateInfo.cpp:
2138 (WebKit::UpdateInfo::decode):
2139 * Shared/UpdateInfo.h:
2141 * Shared/UserMessageCoders.h:
2142 (WebKit::UserMessageDecoder::baseDecode):
2143 * Shared/WebContextMenuItemData.cpp:
2144 (WebKit::WebContextMenuItemData::decode):
2145 * Shared/WebContextMenuItemData.h:
2146 (WebContextMenuItemData):
2147 * Shared/WebCoreArgumentCoders.cpp:
2148 (CoreIPC::::decode):
2149 (CoreIPC::decodeImage):
2150 * Shared/WebCoreArgumentCoders.h:
2151 * Shared/WebEvent.cpp:
2152 (WebKit::WebEvent::decode):
2153 * Shared/WebEvent.h:
2159 (WebPlatformTouchPoint):
2161 * Shared/WebGeolocationPosition.cpp:
2162 (WebKit::WebGeolocationPosition::Data::decode):
2163 * Shared/WebGeolocationPosition.h:
2165 * Shared/WebGestureEvent.cpp:
2166 (WebKit::WebGestureEvent::decode):
2167 * Shared/WebHitTestResult.cpp:
2168 (WebKit::WebHitTestResult::Data::decode):
2169 * Shared/WebHitTestResult.h:
2171 * Shared/WebKeyboardEvent.cpp:
2172 (WebKit::WebKeyboardEvent::decode):
2173 * Shared/WebMouseEvent.cpp:
2174 (WebKit::WebMouseEvent::decode):
2175 * Shared/WebNavigationDataStore.h:
2176 (WebKit::WebNavigationDataStore::decode):
2177 * Shared/WebPageCreationParameters.cpp:
2178 (WebKit::WebPageCreationParameters::decode):
2179 * Shared/WebPageCreationParameters.h:
2180 (WebPageCreationParameters):
2181 * Shared/WebPageGroupData.cpp:
2182 (WebKit::WebPageGroupData::decode):
2183 * Shared/WebPageGroupData.h:
2185 * Shared/WebPlatformTouchPoint.cpp:
2186 (WebKit::WebPlatformTouchPoint::decode):
2187 * Shared/WebPopupItem.cpp:
2188 (WebKit::WebPopupItem::decode):
2189 * Shared/WebPopupItem.h:
2190 * Shared/WebPreferencesStore.cpp:
2191 (WebKit::WebPreferencesStore::decode):
2192 * Shared/WebPreferencesStore.h:
2193 (WebPreferencesStore):
2194 * Shared/WebProcessCreationParameters.cpp:
2195 (WebKit::WebProcessCreationParameters::decode):
2196 * Shared/WebProcessCreationParameters.h:
2197 (WebProcessCreationParameters):
2198 * Shared/WebTouchEvent.cpp:
2199 (WebKit::WebTouchEvent::decode):
2200 * Shared/WebWheelEvent.cpp:
2201 (WebKit::WebWheelEvent::decode):
2202 * Shared/cf/ArgumentCodersCF.cpp:
2204 * Shared/cf/ArgumentCodersCF.h:
2206 * Shared/mac/ArgumentCodersMac.h:
2208 * Shared/mac/ArgumentCodersMac.mm:
2210 * Shared/mac/AttributedString.h:
2212 * Shared/mac/AttributedString.mm:
2213 (WebKit::AttributedString::decode):
2214 * Shared/mac/ColorSpaceData.h:
2216 * Shared/mac/ColorSpaceData.mm:
2217 (WebKit::ColorSpaceData::decode):
2218 * Shared/mac/LayerTreeContextMac.mm:
2219 (WebKit::LayerTreeContext::decode):
2220 * Shared/mac/ObjCObjectGraphCoders.h:
2221 (WebContextObjCObjectGraphDecoder):
2222 (InjectedBundleObjCObjectGraphDecoder):
2223 * Shared/mac/ObjCObjectGraphCoders.mm:
2224 (WebKit::ObjCObjectGraphDecoder::baseDecode):
2225 (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2226 (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2227 (WebKit::WebContextObjCObjectGraphDecoder::decode):
2228 (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
2229 * Shared/mac/PlatformCertificateInfo.h:
2230 (PlatformCertificateInfo):
2231 * Shared/mac/PlatformCertificateInfo.mm:
2232 (WebKit::PlatformCertificateInfo::decode):
2233 * Shared/mac/RemoteLayerTreeTransaction.h:
2235 (RemoteLayerTreeTransaction):
2236 * Shared/mac/RemoteLayerTreeTransaction.mm:
2237 (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
2238 (WebKit::RemoteLayerTreeTransaction::decode):
2239 * Shared/mac/SandboxExtensionMac.mm:
2240 (WebKit::SandboxExtension::Handle::decode):
2241 (WebKit::SandboxExtension::HandleArray::decode):
2242 * Shared/mac/SecItemRequestData.cpp:
2243 (WebKit::SecItemRequestData::decode):
2244 * Shared/mac/SecItemRequestData.h:
2245 * Shared/mac/SecItemResponseData.cpp:
2246 (WebKit::SecItemResponseData::decode):
2247 * Shared/mac/SecItemResponseData.h:
2248 (SecItemResponseData):
2249 * Shared/mac/WebCoreArgumentCodersMac.mm:
2250 (CoreIPC::::decodePlatformData):
2251 (CoreIPC::::decode):
2252 * UIProcess/WebContextUserMessageCoders.h:
2253 (WebKit::WebContextUserMessageDecoder::decode):
2254 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2255 (WebKit::InjectedBundleUserMessageDecoder::decode):
2256 * WebProcess/Plugins/Plugin.cpp:
2257 (WebKit::Plugin::Parameters::decode):
2258 * WebProcess/Plugins/Plugin.h:
2261 2013-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2263 [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
2264 https://bugs.webkit.org/show_bug.cgi?id=108607
2266 Reviewed by Anders Carlsson.
2268 * Platform/gtk/WorkQueueGtk.cpp:
2269 (WorkQueue::EventSource::executeEventSource): Remove the is valid
2271 (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
2272 reference when a new job is scheduled and unref it when it
2275 2013-02-01 Sheriff Bot <webkit.review.bot@gmail.com>
2277 Unreviewed, rolling out r141319.
2278 http://trac.webkit.org/changeset/141319
2279 https://bugs.webkit.org/show_bug.cgi?id=108629
2281 This patch is causing the UIProcess to hang on GTK port when
2282 loading plugins (Requested by chris-qBT_laptop on #webkit).
2284 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2285 (WebKit::PluginProcessProxy::scanPlugin):
2287 2013-02-01 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2289 [EFL][WK2] EwkContext should be based on C WK2 API
2290 https://bugs.webkit.org/show_bug.cgi?id=107666
2292 Reviewed by Andreas Kling.
2294 EwkContext should be based on C WK2 API so that API layering is not violated.
2296 * UIProcess/API/efl/EwkView.cpp:
2298 * UIProcess/API/efl/ewk_context.cpp:
2299 (EwkContext::EwkContext):
2300 (EwkContext::create):
2301 (EwkContext::cookieManager):
2302 (EwkContext::ensureFaviconDatabase):
2303 (EwkContext::setFaviconDatabaseDirectoryPath):
2304 (EwkContext::addVisitedLink):
2305 (EwkContext::setCacheModel):
2306 (EwkContext::cacheModel):
2307 (EwkContext::setAdditionalPluginPath):
2308 (EwkContext::clearResourceCache):
2309 * UIProcess/API/efl/ewk_context_private.h:
2311 * UIProcess/API/efl/ewk_view.cpp:
2312 (ewk_view_base_add):
2314 2013-02-01 Christophe Dumez <christophe.dumez@intel.com>
2316 [EFL][WK2] Use C API inside ewk_auth_request
2317 https://bugs.webkit.org/show_bug.cgi?id=107806
2319 Reviewed by Andreas Kling.
2321 Use C API inside ewk_auth_request instead of accessing C++ internal
2322 classes directly, to avoid violating layering.
2324 * UIProcess/API/efl/ewk_auth_request.cpp:
2325 (EwkAuthRequest::EwkAuthRequest):
2326 (EwkAuthRequest::suggestedUsername):
2327 (EwkAuthRequest::realm):
2328 (EwkAuthRequest::host):
2329 (EwkAuthRequest::continueWithoutCredential):
2330 (EwkAuthRequest::authenticate):
2331 (EwkAuthRequest::isRetrying):
2332 (ewk_auth_request_authenticate):
2333 * UIProcess/API/efl/ewk_auth_request_private.h:
2334 (EwkAuthRequest::create):
2336 * UIProcess/efl/PageLoadClientEfl.cpp:
2337 (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
2339 2013-02-01 Seulgi Kim <seulgikim@company100.net>
2341 [Gtk][WK2] Fix build after recent WebKit2 changes
2342 https://bugs.webkit.org/show_bug.cgi?id=108588
2344 Reviewed by Andreas Kling.
2346 Don't remove WorkQueue during execution.
2347 Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2349 * Platform/gtk/WorkQueueGtk.cpp:
2350 (WorkQueue::EventSource::~EventSource):
2351 (WorkQueue::EventSource::executeEventSource):
2352 (WorkQueue::dispatch):
2353 (WorkQueue::dispatchAfterDelay):
2354 (WorkQueue::dispatchOnTermination):
2356 2013-02-01 Alexis Menard <alexis@webkit.org>
2358 Enable unprefixed CSS transitions by default.
2359 https://bugs.webkit.org/show_bug.cgi?id=108216
2361 Reviewed by Dean Jackson.
2363 Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2364 to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
2365 guard the unprefixing work for CSS Transforms and animations.
2367 * Configurations/FeatureDefines.xcconfig:
2369 2013-02-01 Jae Hyun Park <jae.park@company100.net>
2371 Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
2372 https://bugs.webkit.org/show_bug.cgi?id=108590
2374 Reviewed by Noam Rosenthal.
2376 Sort class declarations in alphabetical order.
2378 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2381 2013-02-01 Gwang Yoon Hwang <ryumiel@company100.net>
2383 [EFL][WK2] MiniBrowser segfaults on loading google.com
2384 https://bugs.webkit.org/show_bug.cgi?id=108597
2386 Reviewed by Andreas Kling.
2388 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2389 (CoreIPC::Connection::processMessage):
2390 oolMessageBody should be properly initialized before it is used.
2392 This patch also adds omitted break statement.
2394 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2396 [Qt] Add MessageFlags.h in Target.pri
2397 https://bugs.webkit.org/show_bug.cgi?id=108583
2399 Reviewed by Kentaro Hara.
2401 Since MessageDecoder and MessageEncoder include MessageFlags.h, it
2402 should be included in Target.pri.
2406 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2408 Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
2409 https://bugs.webkit.org/show_bug.cgi?id=108149
2411 Reviewed by Noam Rosenthal.
2413 This patch moves Coordinated Graphics related code to WebCore. To
2414 implement Threaded Coordinated Graphics, most of Coordianted Graphics
2415 code should be shared. Therefore, they should reside in WebCore instead of
2418 When moving to WebCore, two renamings have been done.
2420 1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
2422 2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
2423 CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
2426 No new tests, covered by existing tests.
2429 * Scripts/webkit2/messages.py:
2430 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2431 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2432 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2434 * UIProcess/API/efl/EwkView.cpp:
2435 * UIProcess/API/efl/EwkView.h:
2436 * UIProcess/API/qt/qquickwebpage.cpp:
2437 * UIProcess/API/qt/raw/qrawwebview.cpp:
2438 * UIProcess/API/qt/raw/qrawwebview_p.h:
2439 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2440 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2441 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2442 * UIProcess/efl/PageClientBase.cpp:
2443 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2444 * UIProcess/qt/QtWebPageSGNode.cpp:
2445 * UIProcess/qt/QtWebPageSGNode.h:
2446 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2447 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2449 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2451 [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
2452 https://bugs.webkit.org/show_bug.cgi?id=108548
2454 Reviewed by Anders Carlsson.
2456 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2457 (CoreIPC::Connection::platformInvalidate):
2458 (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
2459 logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
2460 (CoreIPC::Connection::open):
2461 (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
2462 * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
2463 count when the execution is started and decrease it when the work item is deleted,
2464 following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2465 (WorkQueue::WorkItemQt::~WorkItemQt):
2466 (WorkQueue::WorkItemQt::execute):
2467 (WorkQueue::dispatch):
2468 (WorkQueue::dispatchAfterDelay):
2469 * UIProcess/WebPageProxy.cpp:
2470 (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
2471 mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
2473 2013-01-31 Changhun Kang <temoochin@company100.net>
2475 Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2476 https://bugs.webkit.org/show_bug.cgi?id=108308
2478 Reviewed by Dimitri Glazkov.
2480 2013-01-31 Anders Carlsson <andersca@apple.com>
2482 StorageManager should be ref-counted
2483 https://bugs.webkit.org/show_bug.cgi?id=108553
2485 Reviewed by Beth Dakin.
2487 It's likely we'd want to have the storage manager outlive its context at times, so make it
2490 * UIProcess/Storage/StorageManager.cpp:
2491 (WebKit::StorageManager::create):
2493 * UIProcess/Storage/StorageManager.h:
2495 * UIProcess/WebContext.cpp:
2496 (WebKit::WebContext::WebContext):
2497 * UIProcess/WebContext.h:
2500 2013-01-31 Anders Carlsson <andersca@apple.com>
2502 WorkQueue should be a ref-counted class
2503 https://bugs.webkit.org/show_bug.cgi?id=108544
2505 Reviewed by Sam Weinig.
2507 Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
2508 implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
2509 and ensures that the WorkQueue object won't go away while dispatched functions are running.
2511 * Platform/CoreIPC/Connection.cpp:
2512 (CoreIPC::Connection::Connection):
2513 (CoreIPC::Connection::~Connection):
2514 (CoreIPC::Connection::addQueueClient):
2515 (CoreIPC::Connection::removeQueueClient):
2516 (CoreIPC::Connection::invalidate):
2517 (CoreIPC::Connection::sendMessage):
2518 (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
2519 (CoreIPC::Connection::connectionDidClose):
2520 * Platform/CoreIPC/Connection.h:
2522 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2523 (CoreIPC::createDataAvailableSource):
2524 (CoreIPC::Connection::open):
2525 (CoreIPC::Connection::initializeDeadNameSource):
2526 * Platform/WorkQueue.cpp:
2527 (WorkQueue::create):
2528 (WorkQueue::WorkQueue):
2529 (WorkQueue::~WorkQueue):
2530 * Platform/WorkQueue.h:
2532 * Platform/mac/WorkQueueMac.cpp:
2533 (WorkQueue::dispatch):
2534 (WorkQueue::dispatchAfterDelay):
2535 * Shared/ChildProcess.cpp:
2536 (WebKit::didCloseOnConnectionWorkQueue):
2537 * UIProcess/Launcher/ProcessLauncher.cpp:
2538 (WebKit::processLauncherWorkQueue):
2539 (WebKit::ProcessLauncher::ProcessLauncher):
2540 * UIProcess/WebProcessProxy.cpp:
2541 (WebKit::pluginWorkQueue):
2542 (WebKit::WebProcessProxy::getPlugins):
2544 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2546 [Qt][WK2] Fix build after removal of MessageID.h
2547 https://bugs.webkit.org/show_bug.cgi?id=108534
2549 Reviewed by Anders Carlsson.
2551 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2552 (CoreIPC::MessageInfo::MessageInfo):
2553 (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
2554 (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
2556 (CoreIPC::Connection::processMessage):
2557 (CoreIPC::Connection::sendOutgoingMessage):
2559 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2560 * UIProcess/DrawingAreaProxy.cpp:
2561 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2562 * WebProcess/soup/WebSoupRequestManager.cpp:
2564 2013-01-31 Brady Eidson <beidson@apple.com>
2566 Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
2567 <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
2569 Reviewed by Alexey Proskuryakov.
2571 * WebProcess/Network/WebResourceLoadScheduler.cpp:
2572 (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
2573 NetworkProcess, still add this ResourceLoader to the scheduler's records.
2575 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2577 Unreviewed trivial Unix build fix.
2579 Use Vector<> instead of Deque<> when iterating
2580 over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
2583 * Platform/CoreIPC/ArgumentDecoder.cpp:
2585 2013-01-30 Brian Weinstein <bweinstein@apple.com>
2587 Add a call to the page UI client to determine if a plug-in should load
2588 https://bugs.webkit.org/show_bug.cgi?id=108407
2589 <rdar://problem/13066332>
2591 Reviewed by Anders Carlsson.
2593 This patch adds a client call to the WKPageUIClient to be called to determine
2594 whether or not a plug-in should load.
2596 * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
2597 * UIProcess/WebPageProxy.cpp:
2598 (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
2599 m_uiClient.shouldInstantiatePlugin.
2600 * UIProcess/WebPageProxy.h:
2601 * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
2602 * UIProcess/WebProcessProxy.cpp:
2603 (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
2604 * UIProcess/WebProcessProxy.h:
2605 * UIProcess/WebUIClient.cpp:
2606 (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
2607 the client function isn't defined, and call the function if it is.
2608 * UIProcess/WebUIClient.h:
2609 * UIProcess/mac/WebInspectorProxyMac.mm:
2610 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
2612 * WebProcess/WebPage/WebPage.cpp:
2613 (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
2614 (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
2615 send the message to the WebPageProxy, not the WebProcessProxy.
2616 * WebProcess/WebPage/WebPage.h:
2618 2013-01-31 Anders Carlsson <andersca@apple.com>
2620 Use a Vector for IPC attachments
2621 https://bugs.webkit.org/show_bug.cgi?id=108517
2623 Reviewed by Sam Weinig.
2625 We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
2627 * Platform/CoreIPC/ArgumentDecoder.cpp:
2628 (CoreIPC::ArgumentDecoder::create):
2629 (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2630 (CoreIPC::ArgumentDecoder::removeAttachment):
2631 * Platform/CoreIPC/ArgumentDecoder.h:
2633 * Platform/CoreIPC/Connection.h:
2634 * Platform/CoreIPC/MessageDecoder.cpp:
2635 (CoreIPC::MessageDecoder::create):
2636 (CoreIPC::MessageDecoder::MessageDecoder):
2637 * Platform/CoreIPC/MessageDecoder.h:
2639 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2640 (CoreIPC::createMessageDecoder):
2642 2013-01-31 Joseph Pecoraro <pecoraro@apple.com>
2644 Disable ENABLE_FULLSCREEN_API on iOS
2645 https://bugs.webkit.org/show_bug.cgi?id=108250
2647 Reviewed by Benjamin Poulain.
2649 * Configurations/FeatureDefines.xcconfig:
2651 2013-01-31 Enrica Casucci <enrica@apple.com>
2653 WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2654 https://bugs.webkit.org/show_bug.cgi?id=108396.
2655 <rdar://problem/12920461>
2657 Reviewed by Alexey Proskuryakov.
2659 This patch adds new bundle client API to receive notifications
2660 relative the pasteboard activity. There are 2 new API added to
2661 InjectedBundleEditorClient, to receive notification before and
2662 after the pasteboard content is added and one API to provide
2663 additional content to add to the pasteboard.
2664 In order to create content to add to the pasteboard, WKWebArchiveRef
2665 and WKWebArchiveResourcesRef have been added to the set of API level
2667 This work is a joint effort with Sam Weinig who contributed the
2668 support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
2669 files. Sam is the author of the first chunk of changes listed below.
2671 * Shared/API/c/WKBase.h:
2672 * Shared/API/c/WKSharedAPICast.h:
2673 * Shared/API/c/mac/WKWebArchive.cpp: Added.
2674 (WKWebArchiveGetTypeID):
2675 (WKWebArchiveCreate):
2676 (WKWebArchiveCreateWithData):
2677 (WKWebArchiveCreateFromRange):
2678 (WKWebArchiveCopyMainResource):
2679 (WKWebArchiveCopySubresources):
2680 (WKWebArchiveCopySubframeArchives):
2681 (WKWebArchiveCopyData):
2682 * Shared/API/c/mac/WKWebArchive.h: Added.
2683 * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
2684 (WKWebArchiveResourceGetTypeID):
2685 (WKWebArchiveResourceCreate):
2686 (WKWebArchiveResourceCopyData):
2687 (WKWebArchiveResourceCopyURL):
2688 (WKWebArchiveResourceCopyMIMEType):
2689 (WKWebArchiveResourceCopyTextEncoding):
2690 * Shared/API/c/mac/WKWebArchiveResource.h: Added.
2691 * Shared/APIObject.h:
2692 * Shared/WebArchive.cpp: Added.
2693 (WebKit::WebArchive::create):
2694 (WebKit::WebArchive::WebArchive):
2695 (WebKit::WebArchive::~WebArchive):
2696 (WebKit::WebArchive::mainResource):
2697 (WebKit::WebArchive::subresources):
2698 (WebKit::WebArchive::subframeArchives):
2699 (WebKit::releaseCFData):
2700 (WebKit::WebArchive::data):
2701 (WebKit::WebArchive::coreLegacyWebArchive):
2702 * Shared/WebArchive.h: Added.
2703 (WebKit::WebArchive::type):
2704 * Shared/WebArchiveResource.cpp: Added.
2705 (WebKit::WebArchiveResource::create):
2706 (WebKit::WebArchiveResource::WebArchiveResource):
2707 (WebKit::WebArchiveResource::~WebArchiveResource):
2708 (WebKit::releaseCFData):
2709 (WebKit::WebArchiveResource::data):
2710 (WebKit::WebArchiveResource::URL):
2711 (WebKit::WebArchiveResource::MIMEType):
2712 (WebKit::WebArchiveResource::textEncoding):
2713 (WebKit::WebArchiveResource::coreArchiveResource):
2714 * Shared/WebArchiveResource.h: Added.
2715 (WebKit::WebArchiveResource::type):
2716 * WebKit2.xcodeproj/project.pbxproj:
2718 * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
2719 * Shared/APIClientTraits.h:
2720 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2721 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2722 (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
2723 (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
2724 (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
2725 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
2726 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2727 (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
2728 (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
2729 (WebKit::WebEditorClient::getClientPasteboardDataForRange):
2730 * WebProcess/WebCoreSupport/WebEditorClient.h:
2732 2013-01-31 Anders Carlsson <andersca@apple.com>
2735 https://bugs.webkit.org/show_bug.cgi?id=108516
2737 Reviewed by Sam Weinig.
2739 * Platform/CoreIPC/Connection.cpp:
2740 (CoreIPC::Connection::processIncomingMessage):
2741 (CoreIPC::Connection::sendOutgoingMessages):
2742 (CoreIPC::Connection::dispatchSyncMessage):
2743 (CoreIPC::Connection::dispatchMessage):
2744 * Platform/CoreIPC/Connection.h:
2747 * Platform/CoreIPC/MessageID.h: Removed.
2748 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2749 (CoreIPC::Connection::sendOutgoingMessage):
2750 (CoreIPC::Connection::receiveSourceEventHandler):
2751 * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
2752 * Shared/CoreIPCSupport/WebContextMessageKinds.h:
2753 * UIProcess/DrawingAreaProxy.h:
2755 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2756 * UIProcess/WebApplicationCacheManagerProxy.h:
2757 * UIProcess/WebContext.cpp:
2758 (WebKit::WebContext::WebContext):
2759 (WebKit::WebContext::didReceiveMessage):
2760 (WebKit::WebContext::didReceiveSyncMessage):
2761 * UIProcess/WebCookieManagerProxy.h:
2762 * UIProcess/WebFrameProxy.h:
2764 * UIProcess/WebFullScreenManagerProxy.h:
2766 * UIProcess/WebIconDatabase.h:
2768 * UIProcess/WebPageProxy.cpp:
2769 * UIProcess/WebPageProxy.h:
2771 * WebKit2.xcodeproj/project.pbxproj:
2772 * WebProcess/FullScreen/WebFullScreenManager.cpp:
2773 * WebProcess/FullScreen/WebFullScreenManager.h:
2775 * WebProcess/InjectedBundle/InjectedBundle.cpp:
2776 (WebKit::InjectedBundle::postMessage):
2777 (WebKit::InjectedBundle::postSynchronousMessage):
2778 * WebProcess/InjectedBundle/InjectedBundle.h:
2780 * WebProcess/WebPage/DrawingArea.h:
2782 * WebProcess/WebPage/LayerTreeHost.h:
2784 * WebProcess/WebPage/WebPage.cpp:
2785 * WebProcess/WebPage/WebPage.h:
2787 * WebProcess/WebPage/WebPageGroupProxy.h:
2790 2013-01-31 Mike West <mkwst@chromium.org>
2792 Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
2793 https://bugs.webkit.org/show_bug.cgi?id=108476
2795 Reviewed by Anders Carlsson.
2797 * WebProcess/Plugins/PluginView.cpp:
2798 (WebKit::PluginView::storageBlockingStateChanged):
2799 (WebKit::PluginView::isPrivateBrowsingEnabled):
2801 2013-01-31 Anders Carlsson <andersca@apple.com>
2803 Get rid of IncomingMessage
2804 https://bugs.webkit.org/show_bug.cgi?id=108514
2806 Reviewed by Sam Weinig.
2808 * Platform/CoreIPC/Connection.cpp:
2809 (Connection::SyncMessageState):
2810 (ConnectionAndIncomingMessage):
2811 (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
2812 (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
2813 (CoreIPC::Connection::SyncMessageState::dispatchMessages):
2814 (CoreIPC::Connection::waitForMessage):
2815 (CoreIPC::Connection::processIncomingMessage):
2816 (CoreIPC::Connection::enqueueIncomingMessage):
2817 (CoreIPC::Connection::dispatchMessage):
2818 (CoreIPC::Connection::dispatchOneMessage):
2819 * Platform/CoreIPC/Connection.h:
2822 2013-01-31 Patrick Gansterer <paroga@webkit.org>
2824 Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
2825 https://bugs.webkit.org/show_bug.cgi?id=108439
2827 Reviewed by Brent Fulgham.
2829 PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
2831 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2833 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2835 Unreviewed build fix: Remove Web Intents files from
2836 the Qt build system.
2840 2013-01-31 Zan Dobersek <zdobersek@igalia.com>
2842 Unreviewed GTK build fix.
2843 Removing build targets for Web Intents files that were removed in r141448.
2845 * GNUmakefile.list.am:
2847 2013-01-31 Anders Carlsson <andersca@apple.com>
2849 Remove Web Intents code from WebKit2
2850 https://bugs.webkit.org/show_bug.cgi?id=108506
2852 Reviewed by Simon Fraser.
2854 Since nobody builds with Web Intents enabled anymore, and since the code is going to
2855 be removed from WebCore, remove it from WebKit2.
2857 * Shared/API/c/WKBase.h:
2858 * Shared/APIClientTraits.cpp:
2860 * Shared/APIObject.h:
2861 * Shared/IntentData.cpp: Removed.
2862 * Shared/IntentData.h: Removed.
2863 * Shared/IntentServiceInfo.cpp: Removed.
2864 * Shared/IntentServiceInfo.h: Removed.
2865 * Shared/WebIntentServiceInfo.cpp: Removed.
2866 * Shared/WebIntentServiceInfo.h: Removed.
2867 * UIProcess/API/C/WKAPICast.h:
2869 * UIProcess/API/C/WKIntentData.cpp: Removed.
2870 * UIProcess/API/C/WKIntentData.h: Removed.
2871 * UIProcess/API/C/WKIntentServiceInfo.cpp: Removed.
2872 * UIProcess/API/C/WKIntentServiceInfo.h: Removed.
2873 * UIProcess/API/C/WKPage.cpp:
2874 * UIProcess/API/C/WKPage.h:
2875 * UIProcess/WebIntentData.cpp: Removed.
2876 * UIProcess/WebIntentData.h: Removed.
2877 * UIProcess/WebLoaderClient.cpp:
2878 * UIProcess/WebLoaderClient.h:
2881 * UIProcess/WebPageProxy.cpp:
2882 * UIProcess/WebPageProxy.h:
2885 * UIProcess/WebPageProxy.messages.in:
2886 * UIProcess/WebProcessProxy.cpp:
2887 * UIProcess/WebProcessProxy.h:
2889 * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
2891 * WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp: Removed.
2892 * WebProcess/InjectedBundle/API/c/WKBundleIntent.h: Removed.
2893 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Removed.
2894 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Removed.
2895 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2896 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2897 * WebProcess/InjectedBundle/InjectedBundleIntent.cpp: Removed.
2898 * WebProcess/InjectedBundle/InjectedBundleIntent.h: Removed.
2899 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Removed.
2900 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Removed.
2901 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2902 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2904 (InjectedBundlePageLoaderClient):
2905 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2907 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2908 (WebFrameLoaderClient):
2909 * WebProcess/WebPage/WebFrame.cpp:
2910 * WebProcess/WebPage/WebFrame.h:
2914 * WebProcess/WebPage/WebPage.cpp:
2915 * WebProcess/WebPage/WebPage.h:
2919 * WebProcess/WebPage/WebPage.messages.in:
2920 * WebProcess/WebProcess.cpp:
2921 * WebProcess/WebProcess.h:
2924 * WebProcess/WebProcess.messages.in:
2926 2013-01-31 Brady Eidson <beidson@apple.com>
2928 Lack of a log level string should not obliterate compiled in logging channel state.
2929 https://bugs.webkit.org/show_bug.cgi?id=108502
2931 Reviewed by Alexey Proskuryakov and Sam Weinig.
2933 * Platform/mac/Logging.mac.mm:
2934 (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone.
2936 2013-01-31 Alexey Proskuryakov <ap@apple.com>
2938 WebProcess sandbox profile overhaul.
2940 Reviewed by Sam Weinig.
2942 Moves some rules together by susbystem for easier maintenance.
2944 Addresses <rdar://problem/9276393>, <rdar://problem/10844321>, <rdar://problem/12408537>,
2945 <rdar://problem/12558524>.
2947 * WebProcess/com.apple.WebProcess.sb.in:
2949 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2951 Unreviewed trivial build fix: Pre C++11 the use of
2952 >> in nested templates is ambiguous in the grammar and
2953 requires the insertion of a space here. Since these files are
2954 not Mac specific we don't require C++11 yet and a space
2957 * Platform/CoreIPC/Connection.h:
2959 * Shared/ChildProcessProxy.h:
2960 (ChildProcessProxy):
2962 2013-01-31 Christophe Dumez <dchris@gmail.com>
2964 [EFL] Disable Web Intents
2965 https://bugs.webkit.org/show_bug.cgi?id=108457
2967 Reviewed by Alexey Proskuryakov.
2969 Remove code related to Web Intents from EFL
2973 * PlatformEfl.cmake:
2974 * UIProcess/API/efl/EWebKit2.h:
2975 * UIProcess/API/efl/EwkViewCallbacks.h:
2976 * UIProcess/API/efl/ewk_intent.cpp: Removed.
2977 * UIProcess/API/efl/ewk_intent.h: Removed.
2978 * UIProcess/API/efl/ewk_intent_private.h: Removed.
2979 * UIProcess/API/efl/ewk_intent_service.cpp: Removed.
2980 * UIProcess/API/efl/ewk_intent_service.h: Removed.
2981 * UIProcess/API/efl/ewk_intent_service_private.h: Removed.
2982 * UIProcess/API/efl/ewk_view.cpp:
2983 * UIProcess/API/efl/ewk_view.h:
2984 * UIProcess/API/efl/tests/resources/intent-request.html: Removed.
2985 * UIProcess/API/efl/tests/resources/intent-service.html: Removed.
2986 * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed.
2987 * UIProcess/efl/PageLoadClientEfl.cpp:
2988 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
2989 * UIProcess/efl/PageLoadClientEfl.h:
2990 (PageLoadClientEfl):
2992 2013-01-31 Alexey Proskuryakov <ap@apple.com>
2994 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
2996 Address review comments.
2998 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2999 * WebProcess/com.apple.WebProcess.sb.in:
3001 2013-01-31 Anders Carlsson <andersca@apple.com>
3003 Stop using OutgoingMessage
3004 https://bugs.webkit.org/show_bug.cgi?id=108495
3006 Reviewed by Sam Weinig.
3008 * Platform/CoreIPC/Connection.cpp:
3009 (CoreIPC::Connection::sendMessage):
3010 (CoreIPC::Connection::sendOutgoingMessages):
3011 * Platform/CoreIPC/Connection.h:
3013 * Shared/ChildProcessProxy.cpp:
3014 (WebKit::ChildProcessProxy::~ChildProcessProxy):
3015 (WebKit::ChildProcessProxy::sendMessage):
3016 (WebKit::ChildProcessProxy::didFinishLaunching):
3017 * Shared/ChildProcessProxy.h:
3018 (ChildProcessProxy):
3020 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3022 [Qt] Make it possible to compile WebKit2 Qt related files without access to internal WK2 C++ API
3023 https://bugs.webkit.org/show_bug.cgi?id=108472
3025 Reviewed by Andreas Kling.
3027 Add a new module to the qmake build system that represents the part of the WebKit2 Qt integration
3028 that doesn't depend on WebKit2 internals.
3030 Changed qwebnavigationhistory.cpp to not use any internal headers and compile it as part of the
3031 internals-free module.
3034 * UIProcess/API/qt/qwebnavigationhistory.cpp:
3036 * WebKit2QML.pri: Added.
3038 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3040 Unreviewed trivial build fix: Add missing virtual destructor to
3041 LayerTreeRendererClient. Otherwise the build with -Werror breaks, which
3042 complains (rightly so) that we're deleting a sub-class where the super class
3043 doesn't have a virtual destructor.
3045 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3046 (WebKit::LayerTreeRendererClient::~LayerTreeRendererClient):
3048 2013-01-31 Seulgi Kim <seulgikim@company100.net>
3050 Coordinated Graphics: view the debug border/repaint count of the non composited layer.
3051 https://bugs.webkit.org/show_bug.cgi?id=108401
3053 Reviewed by Noam Rosenthal.
3055 Make non-compositing layer draw debug border and show repaint counter
3056 accroding to settings.
3058 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3059 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3061 2013-01-31 Paweł Forysiuk <tuxator@o2.pl>
3063 InjectedBundle is being built even with --disable-webkit2
3064 https://bugs.webkit.org/show_bug.cgi?id=108364
3066 Reviewed by Gustavo Noronha Silva.
3068 * GNUmakefile.am: Wrap Injected bundle with ENABLE_WEBKIT2 condition
3070 2013-01-31 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
3072 [EFL][WK2] RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl should be based on C API
3073 https://bugs.webkit.org/show_bug.cgi?id=107685
3075 Reviewed by Benjamin Poulain.
3077 RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl
3078 should be based on C API so that API layering is not violated.
3080 * UIProcess/API/efl/ewk_context.cpp:
3081 (EwkContext::EwkContext):
3082 * UIProcess/efl/ContextHistoryClientEfl.cpp:
3083 (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
3084 (WebKit::ContextHistoryClientEfl::~ContextHistoryClientEfl):
3085 * UIProcess/efl/ContextHistoryClientEfl.h:
3086 (WebKit::ContextHistoryClientEfl::create):
3087 (ContextHistoryClientEfl):
3088 * UIProcess/efl/DownloadManagerEfl.cpp:
3089 (WebKit::DownloadManagerEfl::DownloadManagerEfl):
3090 (WebKit::DownloadManagerEfl::~DownloadManagerEfl):
3091 * UIProcess/efl/DownloadManagerEfl.h:
3092 (WebKit::DownloadManagerEfl::create):
3093 (DownloadManagerEfl):
3094 * UIProcess/efl/RequestManagerClientEfl.cpp:
3095 (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
3096 * UIProcess/efl/RequestManagerClientEfl.h:
3097 (WebKit::RequestManagerClientEfl::create):
3098 (RequestManagerClientEfl):
3100 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com>
3102 Unreviewed, rolling out r141110.
3103 http://trac.webkit.org/changeset/141110
3104 https://bugs.webkit.org/show_bug.cgi?id=108349
3106 This patch broke WK2-EFL unit tests (Requested by grzegorz on
3109 * UIProcess/efl/TextCheckerEfl.cpp:
3110 * WebProcess/WebCoreSupport/WebEditorClient.h:
3111 * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
3113 2013-01-31 Jae Hyun Park <jae.park@company100.net>
3115 Coordinated Graphics : Remove WebCoordinatedSurface dependency from CoordinatedSurface
3116 https://bugs.webkit.org/show_bug.cgi?id=108259
3118 Reviewed by Noam Rosenthal.
3120 This is a preparation patch for Threaded Coordinated Graphics.
3122 WebCoordinatedSurface dependency should be removed from
3123 CoordinatedSurface so as to share CoordinatedSurface between
3124 WebCoordinatedSurface and CoordinatedSurface of WebKit1, which will be
3125 implemented for Threaded Coordinated Graphics.
3127 This patch introduces CoordinatedSurface::Factory, which is a function
3128 pointer that creates CoordinatedSurfaces. CoordinatedLayerTreeHost sets
3129 static CoordinatedSurface::Factory member variable. Classes that use
3130 CoordinatedSurface, which are CoordinatedImageBacking and UpdateAtlas,
3131 create CoordinatedSurfaces by calling CoordinatedSurface::create, which
3132 will call the function set by CoordinatedLayerTreeHost.
3134 This way, we can remove the WebCoordinatedSurface dependency from
3135 CoordinatedSurface and be able to share the code in Threaded Coordinated
3138 No new tests. No change in behavior.
3141 * Shared/CoordinatedGraphics/CoordinatedSurface.cpp: Added.
3143 (WebKit::CoordinatedSurface::setFactory):
3144 (WebKit::CoordinatedSurface::create):
3145 * Shared/CoordinatedGraphics/CoordinatedSurface.h:
3146 (CoordinatedSurface):
3147 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3149 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3150 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3151 (WebKit::CoordinatedLayerTreeHost::createCoordinatedSurface):
3153 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3155 2013-01-30 Tim Horton <timothy_horton@apple.com>
3157 Unreviewed build fix after http://trac.webkit.org/changeset/141372.
3159 * WebProcess/Plugins/PDF/PDFPlugin.mm:
3160 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3162 2013-01-30 Jae Hyun Park <jae.park@company100.net>
3164 Coordinated Graphics : Remove CoordinatedLayerTreeHostProxy dependency from LayerTreeRenderer
3165 https://bugs.webkit.org/show_bug.cgi?id=108164
3167 Reviewed by Benjamin Poulain.
3169 This is a preparation patch for Threaded Coordinated Graphics.
3171 LayerTreeRenderer should not depend on CoordinatedLayerTreeHostProxy so that it
3172 can be moved to WebCore. This patch introduces LayerTreeRendererClient which
3173 is implemented in CoordinatedLayerTreeHostProxy. LayerTreeRenderer uses this
3174 client, instead of using CoordinatedLayerTreeHostProxy directly.
3176 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3177 (CoordinatedLayerTreeHostProxy):
3178 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3179 (WebKit::LayerTreeRenderer::LayerTreeRenderer):
3180 (WebKit::LayerTreeRenderer::animationFrameReady):
3181 (WebKit::LayerTreeRenderer::updateViewport):
3182 (WebKit::LayerTreeRenderer::renderNextFrame):
3183 (WebKit::LayerTreeRenderer::purgeBackingStores):
3184 (WebKit::LayerTreeRenderer::detach):
3185 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3187 (LayerTreeRendererClient):
3188 (LayerTreeRenderer):
3190 2013-01-30 Tim Horton <timothy_horton@apple.com>
3192 PDFPlugin: Should respond to three-finger tap for dictionary definitions
3193 https://bugs.webkit.org/show_bug.cgi?id=108418
3194 <rdar://problem/13121409>
3196 Reviewed by Simon Fraser.
3198 * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add default implementation of performDictionaryLookupAtLocation.
3199 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add getSelectionForWordAtPoint and searchInDictionaryWithSelection.
3200 * WebProcess/Plugins/PDF/PDFPlugin.h: Add performDictionaryLookupAtLocation.
3201 * WebProcess/Plugins/PDF/PDFPlugin.mm: Grab a PDFSelection representing the word encompassing the given point, and
3202 throw up a dictionary popover.
3203 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3204 * WebProcess/Plugins/PDF/SimplePDFPlugin.h: Add default implementation of performDictionaryLookupAtLocation.
3205 * WebProcess/Plugins/Plugin.h: Add performDictionaryLookupAtLocation.
3206 * WebProcess/Plugins/PluginProxy.h: Add default implementation of performDictionaryLookupAtLocation.
3207 * WebProcess/Plugins/PluginView.cpp:
3208 (WebKit::PluginView::performDictionaryLookupAtLocation): Forward performDictionaryLookupAtLocation to the plugin.
3209 * WebProcess/Plugins/PluginView.h: Add performDictionaryLookupAtLocation.
3210 * WebProcess/WebPage/mac/WebPageMac.mm:
3211 (WebKit::WebPage::performDictionaryLookupAtLocation): Intercept performDictionaryLookupAtLocation, and give
3212 the main-frame plugin (if it exists) a chance to handle it.
3214 2013-01-30 Gyuyoung Kim <gyuyoung.kim@samsung.com>
3216 [WK2] Cleanup MessageID parameter after r141332
3217 https://bugs.webkit.org/show_bug.cgi?id=108419
3219 Unreviewed to fix build breaks.
3221 r141332 didn't remove MessageID parameter on some features.
3222 (battery, vibration, coordinate graphics, network info and so on)
3224 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3225 (CoordinatedLayerTreeHostProxy):
3226 * UIProcess/DrawingAreaProxyImpl.cpp:
3227 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3228 * UIProcess/WebBatteryManagerProxy.h:
3229 (WebBatteryManagerProxy):
3230 * UIProcess/WebNetworkInfoManagerProxy.h:
3231 (WebNetworkInfoManagerProxy):
3232 * UIProcess/WebPageProxy.cpp:
3233 (WebKit::WebPageProxy::didReceiveMessage):
3234 * UIProcess/WebVibrationProxy.h:
3235 (WebVibrationProxy):
3236 * UIProcess/soup/WebSoupRequestManagerProxy.h:
3237 (WebSoupRequestManagerProxy):
3238 * WebProcess/Battery/WebBatteryManager.h:
3239 (WebBatteryManager):
3240 * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
3241 (WebNetworkInfoManager):
3242 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3243 * WebProcess/WebPage/DrawingAreaImpl.cpp:
3244 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3245 * WebProcess/WebPage/WebPage.cpp:
3246 (WebKit::WebPage::didReceiveMessage):
3247 * WebProcess/soup/WebSoupRequestManager.h:
3248 (WebSoupRequestManager):
3250 2013-01-30 Anders Carlsson <andersca@apple.com>
3252 Remove MessageID from MessageSender
3253 https://bugs.webkit.org/show_bug.cgi?id=108413
3255 Reviewed by Andreas Kling.
3257 This is another step towards eliminating MessageID.
3259 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3260 (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3261 (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3262 * NetworkProcess/NetworkConnectionToWebProcess.h:
3263 (NetworkConnectionToWebProcess):
3264 * NetworkProcess/NetworkProcess.cpp:
3265 (WebKit::NetworkProcess::didReceiveMessage):
3266 (WebKit::NetworkProcess::didReceiveSyncMessage):
3267 * NetworkProcess/NetworkProcess.h:
3269 * Platform/CoreIPC/Connection.cpp:
3270 (CoreIPC::Connection::processIncomingMessage):
3271 (CoreIPC::Connection::dispatchSyncMessage):
3272 (CoreIPC::Connection::dispatchMessage):
3273 * Platform/CoreIPC/Connection.h:
3275 (CoreIPC::Connection::waitForAndDispatchImmediately):
3276 * Platform/CoreIPC/MessageReceiver.h:
3278 (CoreIPC::MessageReceiver::didReceiveSyncMessage):
3279 * Platform/CoreIPC/MessageReceiverMap.cpp:
3280 (CoreIPC::MessageReceiverMap::dispatchMessage):
3281 (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
3282 * Platform/CoreIPC/MessageReceiverMap.h:
3283 (MessageReceiverMap):
3284 * PluginProcess/PluginProcess.cpp:
3285 (WebKit::PluginProcess::didReceiveMessage):
3286 * PluginProcess/PluginProcess.h:
3288 * PluginProcess/WebProcessConnection.cpp:
3289 (WebKit::WebProcessConnection::didReceiveMessage):
3290 (WebKit::WebProcessConnection::didReceiveSyncMessage):
3291 * PluginProcess/WebProcessConnection.h:
3292 (WebProcessConnection):
3293 * Scripts/webkit2/messages.py:
3294 (forward_declarations_and_headers):
3295 (generate_message_handler):
3296 * Scripts/webkit2/messages_unittest.py:
3297 * Shared/Authentication/AuthenticationManager.cpp:
3298 (WebKit::AuthenticationManager::didReceiveMessage):
3299 * Shared/Authentication/AuthenticationManager.h:
3300 (AuthenticationManager):
3301 * Shared/ChildProcessProxy.cpp:
3302 (WebKit::ChildProcessProxy::sendMessage):
3303 * Shared/ChildProcessProxy.h:
3304 (ChildProcessProxy):
3305 (WebKit::ChildProcessProxy::send):
3306 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3307 (CustomProtocolManager):
3308 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3309 (WebKit::CustomProtocolManager::didReceiveMessage):
3310 * Shared/Plugins/NPRemoteObjectMap.cpp:
3311 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3312 * Shared/Plugins/NPRemoteObjectMap.h:
3313 (NPRemoteObjectMap):
3314 * Shared/WebConnection.cpp:
3315 (WebKit::WebConnection::didReceiveMessage):
3316 * Shared/WebConnection.h:
3318 * Shared/mac/SecItemShim.cpp:
3319 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3320 * Shared/mac/SecItemShim.h:
3322 * SharedWorkerProcess/SharedWorkerProcess.cpp:
3323 (WebKit::SharedWorkerProcess::didReceiveMessage):
3324 * SharedWorkerProcess/SharedWorkerProcess.h:
3325 (SharedWorkerProcess):
3326 * UIProcess/Downloads/DownloadProxy.cpp:
3327 (WebKit::DownloadProxy::didReceiveMessage):
3328 (WebKit::DownloadProxy::didReceiveSyncMessage):
3329 * UIProcess/Downloads/DownloadProxy.h:
3331 * UIProcess/DrawingAreaProxy.cpp:
3332 (WebKit::DrawingAreaProxy::didReceiveCoordinatedLayerTreeHostProxyMessage):
3333 * UIProcess/DrawingAreaProxy.h:
3335 * UIProcess/DrawingAreaProxyImpl.cpp:
3336 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3337 * UIProcess/DrawingAreaProxyImpl.h:
3338 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3339 (CustomProtocolManagerProxy):
3340 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3341 (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3342 * UIProcess/Network/NetworkProcessProxy.cpp:
3343 (WebKit::NetworkProcessProxy::didReceiveMessage):
3344 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
3345 * UIProcess/Network/NetworkProcessProxy.h:
3346 (NetworkProcessProxy):
3347 * UIProcess/Notifications/WebNotificationManagerProxy.h:
3348 (WebNotificationManagerProxy):
3349 * UIProcess/Plugins/PluginProcessProxy.cpp:
3350 (WebKit::PluginProcessProxy::didReceiveMessage):
3351 * UIProcess/Plugins/PluginProcessProxy.h:
3352 (PluginProcessProxy):
3353 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3354 (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3355 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3356 (SharedWorkerProcessProxy):
3357 * UIProcess/WebApplicationCacheManagerProxy.cpp:
3358 (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3359 * UIProcess/WebApplicationCacheManagerProxy.h:
3360 (WebApplicationCacheManagerProxy):
3361 * UIProcess/WebContext.cpp:
3362 (WebKit::WebContext::dispatchMessage):
3363 (WebKit::WebContext::dispatchSyncMessage):
3364 (WebKit::WebContext::didReceiveMessage):
3365 (WebKit::WebContext::didReceiveSyncMessage):
3366 * UIProcess/WebContext.h:
3368 * UIProcess/WebCookieManagerProxy.cpp:
3369 (WebKit::WebCookieManagerProxy::didReceiveMessage):
3370 * UIProcess/WebCookieManagerProxy.h:
3371 (WebCookieManagerProxy):
3372 * UIProcess/WebDatabaseManagerProxy.cpp:
3373 (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3374 * UIProcess/WebDatabaseManagerProxy.h:
3375 (WebDatabaseManagerProxy):
3376 * UIProcess/WebFullScreenManagerProxy.cpp:
3377 (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3378 (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3379 * UIProcess/WebFullScreenManagerProxy.h:
3380 (WebFullScreenManagerProxy):
3381 * UIProcess/WebGeolocationManagerProxy.h:
3382 (WebGeolocationManagerProxy):
3383 * UIProcess/WebIconDatabase.h:
3385 * UIProcess/WebKeyValueStorageManagerProxy.h:
3386 (WebKeyValueStorageManagerProxy):
3387 * UIProcess/WebMediaCacheManagerProxy.h:
3388 (WebMediaCacheManagerProxy):
3389 * UIProcess/WebPageProxy.cpp:
3390 (WebKit::WebPageProxy::didReceiveMessage):
3391 (WebKit::WebPageProxy::didReceiveSyncMessage):
3392 * UIProcess/WebPageProxy.h:
3394 * UIProcess/WebProcessProxy.cpp:
3395 (WebKit::WebProcessProxy::didReceiveMessage):
3396 (WebKit::WebProcessProxy::didReceiveSyncMessage):
3397 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3398 * UIProcess/WebProcessProxy.h:
3400 * UIProcess/WebResourceCacheManagerProxy.h:
3401 (WebResourceCacheManagerProxy):
3402 * UIProcess/mac/RemoteLayerTreeHost.h:
3403 (RemoteLayerTreeHost):
3404 * UIProcess/mac/RemoteLayerTreeHost.mm:
3405 (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3406 * UIProcess/mac/SecItemShimProxy.cpp:
3407 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3408 * UIProcess/mac/SecItemShimProxy.h:
3410 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3411 (WebKit::WebApplicationCacheManager::didReceiveMessage):
3412 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3413 (WebApplicationCacheManager):
3414 * WebProcess/Cookies/WebCookieManager.cpp:
3415 (WebKit::WebCookieManager::didReceiveMessage):
3416 * WebProcess/Cookies/WebCookieManager.h:
3418 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3419 (WebKit::WebFullScreenManager::didReceiveMessage):
3420 * WebProcess/FullScreen/WebFullScreenManager.h:
3421 (WebFullScreenManager):
3422 * WebProcess/Geolocation/WebGeolocationManager.h:
3423 (WebGeolocationManager):
3424 * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
3425 (WebIconDatabaseProxy):
3426 * WebProcess/MediaCache/WebMediaCacheManager.h:
3427 (WebMediaCacheManager):
3428 * WebProcess/Network/NetworkProcessConnection.cpp:
3429 (WebKit::NetworkProcessConnection::didReceiveMessage):
3430 (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3431 * WebProcess/Network/NetworkProcessConnection.h:
3432 (NetworkProcessConnection):
3433 * WebProcess/Notifications/WebNotificationManager.h:
3434 (WebNotificationManager):
3435 * WebProcess/Plugins/PluginProcessConnection.cpp:
3436 (WebKit::PluginProcessConnection::didReceiveMessage):
3437 (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3438 * WebProcess/Plugins/PluginProcessConnection.h:
3439 (PluginProcessConnection):
3440 * WebProcess/ResourceCache/WebResourceCacheManager.h:
3441 (WebResourceCacheManager):
3442 * WebProcess/Storage/WebKeyValueStorageManager.h:
3443 (WebKeyValueStorageManager):
3444 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3445 (WebKit::WebDatabaseManager::didReceiveMessage):
3446 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3447 (WebDatabaseManager):
3448 * WebProcess/WebPage/DrawingArea.h:
3450 * WebProcess/WebPage/DrawingAreaImpl.cpp:
3451 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3452 * WebProcess/WebPage/DrawingAreaImpl.h:
3454 * WebProcess/WebPage/EventDispatcher.cpp:
3455 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3456 * WebProcess/WebPage/EventDispatcher.h:
3458 * WebProcess/WebPage/LayerTreeHost.h:
3460 * WebProcess/WebPage/WebPage.cpp:
3461 (WebKit::WebPage::didReceiveMessage):
3462 (WebKit::WebPage::didReceiveSyncMessage):
3463 * WebProcess/WebPage/WebPage.h:
3465 * WebProcess/WebPage/WebPageGroupProxy.h:
3466 (WebPageGroupProxy):
3467 * WebProcess/WebProcess.cpp:
3468 (WebKit::WebProcess::didReceiveSyncMessage):
3469 (WebKit::WebProcess::didReceiveMessage):
3470 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3471 * WebProcess/WebProcess.h:
3474 2013-01-30 Tim Horton <timothy_horton@apple.com>
3476 PDFPlugin: Update scrollbars if PDFLayerController's display mode changes
3477 https://bugs.webkit.org/show_bug.cgi?id=108412
3478 <rdar://problem/13002261>
3480 Reviewed by Simon Fraser.
3482 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add pdfLayerController:didChangeDisplayMode:
3483 * WebProcess/Plugins/PDF/PDFPlugin.h: Add notifyDisplayModeChanged().
3484 * WebProcess/Plugins/PDF/PDFPlugin.mm:
3485 (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeDisplayMode:]): Forward didChangeDisplayMode to notifyDisplayModeChanged.
3486 (WebKit::PDFPlugin::notifyDisplayModeChanged): Update content size and scrollbar size when display mode changes.
3488 2013-01-30 Alexey Proskuryakov <ap@apple.com>
3490 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3492 Reviewed by Sam Weinig.
3494 * DerivedSources.make: Preprocess a .sb.in file to build the profile.
3496 * NetworkProcess/mac/NetworkProcessMac.mm:
3497 Don't prevent entering the sandbox. Override sandbox path, because service
3498 gets a differnt one by default.
3500 * WebKit2.xcodeproj/project.pbxproj:
3501 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in: Added.
3503 2013-01-30 Huang Dongsung <luxtella@company100.net>
3505 Coordinated Graphics: LayerTreeRenderer manages the surface of UpdateAtlas.
3506 https://bugs.webkit.org/show_bug.cgi?id=107224
3508 Reviewed by Benjamin Poulain.
3510 Currently, CoordinatedLayerTreeHostProxy manages the surface of UpdateAtlas, but
3511 all other resources are managed by LayerTreeRenderer. This patch matches the
3512 surface of UpdateAtlas to other resources.
3514 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3515 (WebKit::CoordinatedLayerTreeHostProxy::updateTileForLayer):
3516 (WebKit::CoordinatedLayerTreeHostProxy::createUpdateAtlas):
3517 (WebKit::CoordinatedLayerTreeHostProxy::removeUpdateAtlas):
3518 (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3519 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3520 (CoordinatedLayerTreeHostProxy):
3521 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3522 (WebKit::LayerTreeRenderer::updateTile):
3523 (WebKit::LayerTreeRenderer::createUpdateAtlas):
3525 (WebKit::LayerTreeRenderer::removeUpdateAtlas):
3526 (WebKit::LayerTreeRenderer::purgeGLResources):
3527 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3529 (WebKit::LayerTreeRenderer::TileUpdate::TileUpdate):
3530 (LayerTreeRenderer):
3532 2013-01-30 Anders Carlsson <andersca@apple.com>
3534 Remove MessageID parameter from generated message receivers
3535 https://bugs.webkit.org/show_bug.cgi?id=108379