1 2013-02-11 Ryosuke Niwa <rniwa@webkit.org>
3 Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
4 https://bugs.webkit.org/show_bug.cgi?id=109534
6 Reviewed by Anders Carlsson.
8 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
10 * WebProcess/WebCoreSupport/WebEditorClient.h:
12 2013-02-11 Jae Hyun Park <jae.park@company100.net>
15 https://bugs.webkit.org/show_bug.cgi?id=109518
17 Reviewed by Laszlo Gombos.
19 Fix EFL build by including PluginProcessConnectionManager.messages.in in
24 2013-02-11 Anders Carlsson <andersca@apple.com>
28 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
29 (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
30 * WebProcess/WebProcess.cpp:
32 2013-02-11 Seulgi Kim <seulgikim@company100.net>
35 https://bugs.webkit.org/show_bug.cgi?id=109516
37 Reviewed by Csaba Osztrogonác.
39 PluginProcessConnectionManagerMessages are omitted from messages list.
41 * GNUmakefile.list.am:
43 2013-02-11 Tim Horton <timothy_horton@apple.com>
45 [WK2] setMinimumLayoutWidth should bail if there's no WebProcess
46 https://bugs.webkit.org/show_bug.cgi?id=109512
47 <rdar://problem/13093627>
49 Reviewed by Anders Carlsson.
51 * UIProcess/WebPageProxy.cpp:
52 (WebKit::WebPageProxy::setMinimumLayoutWidth):
54 2013-02-11 Anders Carlsson <andersca@apple.com>
56 PluginProcessConnectionManager should be a QueueClient
57 https://bugs.webkit.org/show_bug.cgi?id=109496
59 Reviewed by Andreas Kling.
61 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
62 (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
64 (WebKit::PluginProcessConnectionManager::didCloseOnConnectionWorkQueue):
65 * WebProcess/Plugins/PluginProcessConnectionManager.h:
66 (PluginProcessConnectionManager):
67 * WebProcess/WebProcess.cpp:
68 (WebKit::WebProcess::initializeConnection):
69 * WebProcess/WebProcess.h:
72 2013-02-11 Csaba Osztrogonác <ossy@webkit.org>
74 Unreviewed WK2 buildfix after r142518.
78 2013-02-11 Gavin Barraclough <barraclough@apple.com>
80 PluginProcess should quit immediately if idle in response to low-memory notifications
81 https://bugs.webkit.org/show_bug.cgi?id=109103
82 <rdar://problem/12679827>
84 Reviewed by Brady Eidson.
86 PluginProcess now installs a MemoryPressureHandler for the process, providing
87 a custom callback which will call terminate if appropriate (if the plugin is not
90 * PluginProcess/PluginProcess.cpp:
91 (WebKit::PluginProcess::lowMemoryHandler):
92 - Custom callback to terminate if appropriate.
93 (WebKit::PluginProcess::initializeProcess):
94 - Install the MemoryPressureHandler.
95 (WebKit::PluginProcess::shouldTerminate):
96 - This method now also needs to be callable in situations where it might return false.
97 * PluginProcess/PluginProcess.h:
99 - Added declaration for lowMemoryHandler.
101 2013-02-11 Anders Carlsson <andersca@apple.com>
103 Move the PluginProcessCrashed message to PluginProcessConnectionManager
104 https://bugs.webkit.org/show_bug.cgi?id=109493
106 Reviewed by Andreas Kling.
108 This is in preparation for making PluginProcessConnectionManager a connection queue client.
110 * DerivedSources.make:
111 * UIProcess/Plugins/PluginProcessProxy.cpp:
112 (WebKit::PluginProcessProxy::didClose):
113 * WebKit2.xcodeproj/project.pbxproj:
114 * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
115 (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
116 * WebProcess/Plugins/PluginProcessConnectionManager.h:
117 (PluginProcessConnectionManager):
118 * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
119 * WebProcess/WebProcess.cpp:
120 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
121 (WebKit::WebProcess::webResourceLoadScheduler):
122 * WebProcess/WebProcess.h:
124 * WebProcess/WebProcess.messages.in:
126 2013-02-11 Benjamin Poulain <benjamin@webkit.org>
128 Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
129 https://bugs.webkit.org/show_bug.cgi?id=109349
131 Reviewed by Sam Weinig.
133 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
134 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
135 * WebProcess/InjectedBundle/InjectedBundle.cpp:
136 * WebProcess/InjectedBundle/InjectedBundle.h:
139 2013-02-11 Dean Jackson <dino@apple.com>
141 Snapshotted plug-in should use shadow root
142 https://bugs.webkit.org/show_bug.cgi?id=108284
144 Reviewed by Simon Fraser.
146 Take three of this commit - after rollout in r142400 and r142405.
147 We no longer have any need for plugInStartLabelImage.
149 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
150 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
151 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
152 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
154 2013-02-11 Anders Carlsson <andersca@apple.com>
156 The plug-in process connection manager doesn't need to be heap allocated
157 https://bugs.webkit.org/show_bug.cgi?id=109479
159 Reviewed by Andreas Kling.
161 * WebProcess/WebProcess.cpp:
162 (WebKit::WebProcess::WebProcess):
163 (WebKit::WebProcess::pluginProcessConnectionManager):
164 (WebKit::WebProcess::pluginProcessCrashed):
165 * WebProcess/WebProcess.h:
169 2013-02-11 Tony Chang <tony@chromium.org>
171 Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
172 https://bugs.webkit.org/show_bug.cgi?id=87149
174 Reviewed by Simon Fraser.
176 * WebProcess/InjectedBundle/InjectedBundle.cpp:
177 (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
179 2013-02-11 Claudio Saavedra <csaavedra@igalia.com>
181 [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
182 https://bugs.webkit.org/show_bug.cgi?id=108459
184 Reviewed by Alexey Proskuryakov.
186 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
187 (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
188 Providers might return 0 and we will end up with a null-pointer dereference.
189 Early check against this.
191 2013-02-10 Sam Weinig <sam@webkit.org>
193 Make the Plug-in XPCService build work even when building in Xcode
194 <rdar://problem/13011186>
195 https://bugs.webkit.org/show_bug.cgi?id=109392
197 Reviewed by Anders Carlsson.
199 * Configurations/DebugRelease.xcconfig:
200 Add a DEBUG_OR_RELEASE variable to test against.
201 * Configurations/PluginService.32.xcconfig:
202 * Configurations/PluginService.64.xcconfig:
203 In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
204 not containing the right architectures. This is ok, as these services are not used in non-production builds.
206 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
207 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
208 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
209 * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
210 * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
211 * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
212 * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
213 * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
214 * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
215 * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
216 * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
217 * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
218 * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
219 * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
220 Switch off the the old idiom of defining a macro for the initializer function, and instead set
221 it in the Info.plist, so the XPCServiceBootstrapper can grab it.
223 * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
224 (WebKit::XPCServiceEventHandler):
225 * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
226 (WebKit::XPCServiceEventHandler):
227 Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
228 but also allows us to build without having linked against WebKit2.framework.
230 * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
231 (WebKit::shouldUseXPC):
232 Re-enable using XPC for plug-ins.
234 * WebKit2.xcodeproj/project.pbxproj:
237 2013-02-10 Anders Carlsson <andersca@apple.com>
239 Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
240 https://bugs.webkit.org/show_bug.cgi?id=109379
242 Reviewed by Andreas Kling.
244 * UIProcess/WebProcessProxy.cpp:
245 (WebKit::WebProcessProxy::getPlugins):
247 2013-02-10 Kent Tamura <tkent@chromium.org>
249 Unreviewed, rolling out r142347.
250 http://trac.webkit.org/changeset/142347
251 https://bugs.webkit.org/show_bug.cgi?id=108273
253 Because a depending change r142343 was rolled out.
255 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
256 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
257 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
258 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
260 2013-02-10 Kent Tamura <tkent@chromium.org>
262 Unreviewed, rolling out r142343.
263 http://trac.webkit.org/changeset/142343
264 https://bugs.webkit.org/show_bug.cgi?id=108284
266 It might make inspector/profiler/selector-profiler-url.html
269 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
270 (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
272 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
273 (InjectedBundlePageUIClient):
274 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
275 (WebKit::WebChromeClient::plugInStartLabelImage):
277 * WebProcess/WebCoreSupport/WebChromeClient.h:
280 2013-02-10 Zan Dobersek <zdobersek@igalia.com>
282 [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
283 https://bugs.webkit.org/show_bug.cgi?id=109352
285 Reviewed by Sam Weinig.
287 As added for the Mac port in r142160 due to the changes in the same revision, remove
288 the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
290 * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
291 (WebKit::WebFullScreenManagerProxy::invalidate):
293 2013-02-10 Zoltan Arvai <zarvai@inf.u-szeged.hu>
295 [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
296 https://bugs.webkit.org/show_bug.cgi?id=109364
298 Reviewed by Simon Hausmann.
300 void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
302 * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
303 (WebKit::NetscapePlugin::platformPreInitialize):
306 2013-02-09 Sheriff Bot <webkit.review.bot@gmail.com>
308 Unreviewed, rolling out r137328.
309 http://trac.webkit.org/changeset/137328
310 https://bugs.webkit.org/show_bug.cgi?id=109367
312 causes memory usage to balloon if connection queue is filling
313 faster than sending (Requested by kling on #webkit).
315 * Platform/CoreIPC/ArgumentEncoder.cpp:
316 (CoreIPC::ArgumentEncoder::ArgumentEncoder):
317 (CoreIPC::ArgumentEncoder::grow):
318 * Platform/CoreIPC/ArgumentEncoder.h:
319 (CoreIPC::ArgumentEncoder::buffer):
322 2013-02-08 Sam Weinig <sam@webkit.org>
324 Fix ASSERT when the Web Content Process crashes
325 https://bugs.webkit.org/show_bug.cgi?id=109346
327 Reviewed by Simon Fraser.
329 * UIProcess/WebPageProxy.cpp:
330 (WebKit::WebPageProxy::processDidCrash):
331 We need to remove ourselves as a message receiver before calling out to the client, as
332 the client might want to re-add us (as Safari does).
334 2013-02-08 Benjamin Poulain <bpoulain@apple.com>
336 Move workerThreadCount from TestRunner to WebCore Internals
337 https://bugs.webkit.org/show_bug.cgi?id=109239
339 Reviewed by Darin Adler.
341 * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
342 * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
343 * WebProcess/InjectedBundle/InjectedBundle.cpp:
344 * WebProcess/InjectedBundle/InjectedBundle.h:
346 * WebProcess/WebPage/WebFrame.cpp: Remove a useless #include.
348 2013-02-08 Dean Jackson <dino@apple.com>
350 Remove use of plugInStartLabelImage
351 https://bugs.webkit.org/show_bug.cgi?id=108273
353 Reviewed by Simon Fraser.
355 Remove any use of plugInStartLabelImage. While there, implement plugInStartLabelTitle
356 and plugInStartLabelSubtitle to return the values from the client.
359 * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Remove callback and entry from client structure.
360 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
361 (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle): Ask the client bundle for value.
362 (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle): Ditto.
364 2013-02-08 Dean Jackson <dino@apple.com>
366 Snapshotted plug-in should use shadow root
367 https://bugs.webkit.org/show_bug.cgi?id=108284
369 Reviewed by Simon Fraser.
371 Take two of this commit! We no longer have any need for plugInStartLabelImage.
373 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
374 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
375 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
376 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
378 2013-02-08 Dean Jackson <dino@apple.com>
380 Rolling out r142333 and r142337 which broke Mac Release builds.
382 2013-02-08 Anders Carlsson <andersca@apple.com>
384 Move plug-in enumeration back to the main thread
385 https://bugs.webkit.org/show_bug.cgi?id=109337
386 <rdar://problem/12015046>
388 Reviewed by Andreas Kling.
390 Plug-in enumeration was moved to a separate work queue to improve responsiveness, but
391 doing so lead to crashes when WebKit1 would enumerate plug-ins on the main thread at the same time.
392 Bug <rdar://problem/13185819> tracks fixing the responsiveness issue by spawning a plug-in process
393 and have it do the enumeration.
395 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
396 (WebKit::getPluginInfoFromCarbonResources):
397 * UIProcess/WebProcessProxy.cpp:
398 (WebKit::WebProcessProxy::connectionWillOpen):
399 (WebKit::WebProcessProxy::connectionWillClose):
400 (WebKit::WebProcessProxy::getPlugins):
401 * UIProcess/WebProcessProxy.h:
404 * UIProcess/WebProcessProxy.messages.in:
405 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
407 (WebKit::WebPlatformStrategies::populatePluginCache):
408 * WebProcess/WebProcess.cpp:
409 * WebProcess/WebProcess.h:
411 * WebProcess/WebProcess.messages.in:
413 2013-02-08 Dean Jackson <dino@apple.com>
415 Snapshotted plug-in should use shadow root
416 https://bugs.webkit.org/show_bug.cgi?id=108284
418 Reviewed by Simon Fraser.
420 We no longer have any need for plugInStartLabelImage.
422 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
423 * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
424 * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
425 * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
427 2013-02-08 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
429 [WK2] Fix the build on !Mac after r142314.
430 https://bugs.webkit.org/show_bug.cgi?id=109327
432 Reviewed by Benjamin Poulain.
434 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
435 (WebKit::NetscapePlugin::platformPreInitialize): Add a stub for
436 the newly-added function.
438 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
439 (WebKit::NetscapePlugin::platformPreInitialize):
442 2013-02-07 Anders Carlsson <andersca@apple.com>
444 Work around a bug in Flash where NSException objects can be released too early
445 https://bugs.webkit.org/show_bug.cgi?id=109242
446 <rdar://problem/13003470>
448 Reviewed by Darin Adler.
450 * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
451 (WebKit::NetscapePluginModule::determineQuirks):
452 Set the new plug-in quirk.
454 * Shared/Plugins/PluginQuirks.h:
455 Add a new plug-in quirk.
457 * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
458 (WebKit::NetscapePlugin::initialize):
459 Call platformPreInitialize.
461 * WebProcess/Plugins/Netscape/NetscapePlugin.h:
463 Add platformPreInitialize.
465 * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
466 (WebKit::NSException_release):
467 Add new empty function.
469 (WebKit::NetscapePlugin::platformPreInitialize):
470 Patch -[NSException release] to be a no-op.
472 2013-02-08 Dean Jackson <dino@apple.com>
474 Do not register autostart for plugins from file:// (or nowhere)
475 https://bugs.webkit.org/show_bug.cgi?id=108271
477 Reviewed by Tim Horton.
479 If the pageOrigin is the empty string don't add
480 it to the auto-start origin list for snapshotting.
482 * WebProcess/WebProcess.cpp:
483 (WebKit::WebProcess::addPlugInAutoStartOrigin):
485 2013-02-07 Sheriff Bot <webkit.review.bot@gmail.com>
487 Unreviewed, rolling out r142212.
488 http://trac.webkit.org/changeset/142212
489 https://bugs.webkit.org/show_bug.cgi?id=109255
491 Causes ASSERT(!m_installed) on launch (Requested by smfr on
494 * PluginProcess/PluginProcess.cpp:
495 (WebKit::PluginProcess::initializeProcess):
496 (WebKit::PluginProcess::shouldTerminate):
497 * PluginProcess/PluginProcess.h:
499 * WebProcess/WebProcess.cpp:
500 (WebKit::WebProcess::initializeWebProcess):
502 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
504 [EFL][WK2] Remove dead code after r142169
505 https://bugs.webkit.org/show_bug.cgi?id=109251
507 Reviewed by Benjamin Poulain.
509 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
510 (WebKit::WebChromeClient::contentsSizeChanged):
512 2013-02-06 Gavin Barraclough <barraclough@apple.com>
514 PluginProcess should quit immediately if idle in response to low-memory notifications
515 https://bugs.webkit.org/show_bug.cgi?id=109103
516 <rdar://problem/12679827>
518 Reviewed by Darin Adler.
520 PluginProcess now initializes a MemoryPressureHandler for the process, providing
521 a custom callback which will call terminate if appropriate (if the plugin is not
524 * PluginProcess/PluginProcess.cpp:
525 (WebKit::PluginProcess::lowMemoryHandler):
526 - Custom callback to terminate if appropriate.
527 (WebKit::PluginProcess::initializeProcess):
528 - Initialize the MemoryPressureHandler.
529 (WebKit::PluginProcess::shouldTerminate):
530 - This method now also needs to be callable in situations where it might return false.
531 * PluginProcess/PluginProcess.h:
533 - Added declaration for lowMemoryHandler.
534 * WebProcess/WebProcess.cpp:
535 (WebKit::WebProcess::initializeWebProcess):
536 - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
538 2013-02-07 KwangYong Choi <ky0.choi@samsung.com>
540 Fix build warning after r142017
541 https://bugs.webkit.org/show_bug.cgi?id=109119
543 Reviewed by Alexey Proskuryakov.
545 Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
547 * UIProcess/WebPageProxy.cpp:
548 (WebKit::WebPageProxy::getPluginPath):
550 2013-02-07 Martin Robinson <mrobinson@igalia.com>
552 [GTK] Cleanup command-line defines
553 https://bugs.webkit.org/show_bug.cgi?id=109213
555 Reviewed by Xan Lopez.
557 * GNUmakefile.am: Remove references to flags that are now
558 provided by autotoolsconfig.h.
560 2013-02-07 Benjamin Poulain <bpoulain@apple.com>
562 Move pauseAnimation/pauseTransition from TestRunner to Internals
563 https://bugs.webkit.org/show_bug.cgi?id=109107
565 Reviewed by Anders Carlsson.
567 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
568 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
569 * WebProcess/WebPage/WebFrame.cpp:
570 * WebProcess/WebPage/WebFrame.h:
573 2013-02-07 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
575 [WK2][EFL] Removal of non coordinated graphics code path from WK2 EFL
576 https://bugs.webkit.org/show_bug.cgi?id=109165
578 Reviewed by Anders Carlsson.
580 Removed non coordinated graphics code path from WK2 EFL as it was not used by
581 anyone and caused a lot of preprocessor macros in the code making it less readable.
583 * UIProcess/API/efl/EvasGLContext.cpp:
584 * UIProcess/API/efl/EvasGLContext.h:
585 (WebKit::EvasGLContext::context):
586 * UIProcess/API/efl/EvasGLSurface.cpp:
587 * UIProcess/API/efl/EvasGLSurface.h:
588 (WebKit::EvasGLSurface::surface):
590 Removed also 'inline' and 'const' keywords from functions declaration,
591 as both EvasGLContext::context() and EvasGLSurface::surface()
592 are defined inside their classes and return mutable pointer.
594 * UIProcess/API/efl/EwkView.cpp:
596 (EwkView::transformFromScene):
597 (EwkView::transformToScreen):
598 (EwkView::coordinatedGraphicsScene):
599 (EwkView::displayTimerFired):
600 (EwkView::scheduleUpdateDisplay): Renamed from EwkView::update().
601 (EwkView::exitAcceleratedCompositingMode):
602 (EwkView::handleEvasObjectCalculate):
603 (EwkView::takeSnapshot):
604 * UIProcess/API/efl/EwkView.h:
607 * UIProcess/API/efl/SnapshotImageGL.cpp:
608 (getImageSurfaceFromFrameBuffer):
609 * UIProcess/API/efl/SnapshotImageGL.h:
610 * UIProcess/API/efl/ewk_view.cpp:
611 * UIProcess/efl/PageClientBase.cpp:
612 (WebKit::PageClientBase::setViewNeedsDisplay):
613 (WebKit::PageClientBase::updateAcceleratedCompositingMode):
614 * UIProcess/efl/PageClientBase.h:
616 * UIProcess/efl/PageClientDefaultImpl.cpp:
617 (WebKit::PageClientDefaultImpl::didCommitLoad):
618 (WebKit::PageClientDefaultImpl::updateViewportSize):
619 (WebKit::PageClientDefaultImpl::didChangeViewportProperties):
620 (WebKit::PageClientDefaultImpl::didChangeContentsSize):
621 (WebKit::PageClientDefaultImpl::pageTransitionViewportReady):
622 * UIProcess/efl/PageClientDefaultImpl.h:
623 (PageClientDefaultImpl):
624 * UIProcess/efl/PageClientLegacyImpl.cpp:
625 (WebKit::PageClientLegacyImpl::didCommitLoad):
626 (WebKit::PageClientLegacyImpl::updateViewportSize):
627 (WebKit::PageClientLegacyImpl::didChangeViewportProperties):
628 (WebKit::PageClientLegacyImpl::didChangeContentsSize):
629 (WebKit::PageClientLegacyImpl::pageDidRequestScroll):
630 (WebKit::PageClientLegacyImpl::didRenderFrame):
631 (WebKit::PageClientLegacyImpl::pageTransitionViewportReady):
632 * UIProcess/efl/PageClientLegacyImpl.h:
633 (PageClientLegacyImpl):
634 * UIProcess/efl/PageLoadClientEfl.cpp:
635 (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
636 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
637 * UIProcess/efl/PageLoadClientEfl.h:
639 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
640 (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
641 (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
642 * UIProcess/efl/PageViewportControllerClientEfl.h:
643 * UIProcess/efl/WebInspectorProxyEfl.cpp:
644 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
645 * WebProcess/WebCoreSupport/WebChromeClient.cpp:
646 (WebKit::WebChromeClient::contentsSizeChanged):
648 2013-02-06 Sam Weinig <sam@webkit.org>
650 Make WebPageProxy and sub-objects MessageReceivers
651 https://bugs.webkit.org/show_bug.cgi?id=108785
653 Reviewed by Anders Carlsson.
655 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
656 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
657 (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
658 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
659 (CoordinatedLayerTreeHostProxy):
660 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
661 * UIProcess/DrawingAreaProxy.cpp:
662 (WebKit::DrawingAreaProxy::DrawingAreaProxy):
663 (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
664 (WebKit::DrawingAreaProxy::contentsRect):
665 * UIProcess/DrawingAreaProxy.h:
666 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
667 * UIProcess/DrawingAreaProxy.messages.in:
668 * UIProcess/DrawingAreaProxyImpl.cpp:
669 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
670 * UIProcess/DrawingAreaProxyImpl.h:
671 * UIProcess/WebFullScreenManagerProxy.cpp:
672 (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
673 * UIProcess/WebFullScreenManagerProxy.h:
674 (WebFullScreenManagerProxy):
675 * UIProcess/WebFullScreenManagerProxy.messages.in:
676 * UIProcess/WebInspectorProxy.cpp:
677 (WebKit::WebInspectorProxy::WebInspectorProxy):
678 (WebKit::WebInspectorProxy::invalidate):
679 * UIProcess/WebInspectorProxy.h:
680 * UIProcess/WebInspectorProxy.messages.in:
681 * UIProcess/WebPageProxy.cpp:
682 (WebKit::WebPageProxy::WebPageProxy):
683 (WebKit::WebPageProxy::reattachToWebProcess):
684 (WebKit::WebPageProxy::close):
685 (WebKit::WebPageProxy::inspector):
686 (WebKit::WebPageProxy::fullScreenManager):
687 (WebKit::WebPageProxy::processDidCrash):
688 * UIProcess/WebPageProxy.h:
689 * UIProcess/WebPageProxy.messages.in:
690 * UIProcess/WebProcessProxy.cpp:
691 (WebKit::WebProcessProxy::didReceiveMessage):
692 (WebKit::WebProcessProxy::didReceiveSyncMessage):
693 * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
694 (WebKit::WebFullScreenManagerProxy::invalidate):
696 2013-02-07 Zan Dobersek <zdobersek@igalia.com>
698 [Autotools] Remove uses of Automake FARSTREAM_(CFLAGS|LIBS) variables, USE_FARSTREAM conditional
699 https://bugs.webkit.org/show_bug.cgi?id=109198
701 Reviewed by Martin Robinson.
703 * GNUmakefile.am: Remove the FARSTREAM_(CFLAGS|LIBS) variables, they're
706 2013-02-07 Kenneth Rohde Christiansen <kenneth@webkit.org>
708 [WK2][EFL] Add WKView methods related to background drawing
709 https://bugs.webkit.org/show_bug.cgi?id=109159
711 Reviewed by Anders Carlsson.
713 * UIProcess/API/C/efl/WKView.cpp:
714 (WKViewSetDrawsBackground):
715 (WKViewGetDrawsBackground):
716 (WKViewSetDrawsTransparentBackground):
717 (WKViewGetDrawsTransparentBackground):
718 * UIProcess/efl/WebView.cpp:
719 (WebKit::WebView::setDrawsBackground):
721 (WebKit::WebView::drawsBackground):
722 (WebKit::WebView::setDrawsTransparentBackground):
723 (WebKit::WebView::drawsTransparentBackground):
724 * UIProcess/efl/WebView.h:
726 * UIProcess/API/C/efl/WKView.h:
730 * UIProcess/API/efl/EwkView.cpp:
732 (EwkView::displayTimerFired):
733 (EwkView::handleEvasObjectColorSet):
734 * UIProcess/API/efl/EwkView.h:
736 * UIProcess/API/efl/ewk_view.cpp:
737 (ewk_view_draws_page_background_set):
739 Remove the unneeded m_setDrawsBackground and replace
740 it with the WKView setting.
742 2013-02-07 Christophe Dumez <dchris@gmail.com>
744 [EFL][WK2] EWK2UnitTestBase.ewk_view_page_contents_get API test is sometimes failing
745 https://bugs.webkit.org/show_bug.cgi?id=108634
747 Reviewed by Alexey Proskuryakov.
749 Use more robust data validation in EWK2UnitTestBase.ewk_view_page_contents_get
750 so that the test passes consistently. The issue was that the header before the
751 data includes the current date. Depending on the date, the data may start at a
752 different index in the returned string. Instead of hardcoding the data start
753 index in the test, we now use String::contains().
755 * UIProcess/API/efl/tests/test_ewk2_view.cpp:
756 (PageContentsCallback):
759 2013-02-07 Gavin Peters <gavinp@chromium.org>
761 Unreviewed, rolling out r142141.
762 http://trac.webkit.org/changeset/142141
763 https://bugs.webkit.org/show_bug.cgi?id=108990
765 Reland r142112, will update Chromium expectations and create a
766 Chromium bug instead for the crash.
768 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
769 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
770 * WebProcess/WebPage/DrawingAreaImpl.cpp:
771 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
773 2013-02-07 Gavin Peters <gavinp@chromium.org>
775 Unreviewed, rolling out r142112.
776 http://trac.webkit.org/changeset/142112
777 https://bugs.webkit.org/show_bug.cgi?id=108990
779 The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
781 See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
783 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
784 (WebKit::updateOffsetFromViewportForSelf):
786 (WebKit::updateOffsetFromViewportForLayer):
787 (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
788 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
789 * WebProcess/WebPage/DrawingAreaImpl.cpp:
790 (WebKit::DrawingAreaImpl::DrawingAreaImpl):
792 2013-02-07 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
794 [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
795 https://bugs.webkit.org/show_bug.cgi?id=108990
797 Reviewed by Noam Rosenthal.
798 Signed off for WebKit2 by Simon Fraser.
800 WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
801 don't need to traverse the tree every frame to get this information.
803 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
804 syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
805 and are not needed anymore.
806 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
807 * WebProcess/WebPage/DrawingAreaImpl.cpp:
808 (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
809 Coordinated Graphics.
811 2013-02-07 Michael Brüning <michael.bruning@digia.com>
813 [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
814 https://bugs.webkit.org/show_bug.cgi?id=108473
816 Reviewed by Simon Hausmann.
817 Signed off for WebKit2 by Benjamin Poulain.
819 This patch removes the QtWebPageLoadClient and moves the functionality into the
820 QQuickWebViewPrivate as most callback methods are calling the private webview
823 The patch also moves as much of the functionality to the C API as is possible with
827 * UIProcess/API/qt/qquickwebview.cpp:
828 (QQuickWebViewPrivate::initialize):
829 (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
830 (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
831 (QQuickWebViewPrivate::didFailLoad):
832 (QQuickWebViewPrivate::didCommitLoadForFrame):
833 (QQuickWebViewPrivate::didFinishLoadForFrame):
834 (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
835 (QQuickWebViewPrivate::didReceiveTitleForFrame):
836 (QQuickWebViewPrivate::didStartProgress):
837 (QQuickWebViewPrivate::didChangeProgress):
838 (QQuickWebViewPrivate::didFinishProgress):
839 (QQuickWebViewPrivate::didChangeBackForwardList):
840 (QQuickWebViewPrivate::setTransparentBackground):
841 (QQuickWebViewPrivate::transparentBackground):
842 (QQuickWebViewPrivate::loadProgressDidChange):
843 * UIProcess/API/qt/qquickwebview_p.h:
845 * UIProcess/API/qt/qquickwebview_p_p.h:
847 (QQuickWebViewPrivate):
848 * UIProcess/qt/QtWebError.cpp:
849 (WebKit::QtWebError::url):
850 * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
851 * UIProcess/qt/QtWebPageLoadClient.h: Removed.
853 2013-02-05 Eunmi Lee <eunmi15.lee@samsung.com> and Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
855 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
856 https://bugs.webkit.org/show_bug.cgi?id=97173
858 Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
860 Initialize and shutdown the EFL libraries in the ewk_main.cpp for
861 UIProcess and WebProcessMainEfl.cpp for WebProcess.
863 This allows us to shut down the libraries in a proper way, since
864 RunLoop persist until the process exits.
866 * UIProcess/API/efl/ewk_main.cpp:
869 * WebProcess/efl/WebProcessMainEfl.cpp:
870 (WebKit::WebProcessMainEfl):
872 2013-02-07 Gyuyoung Kim <gyuyoung.kim@samsung.com>
874 Unreviewed build fix.
876 * UIProcess/Downloads/DownloadProxyMap.cpp:
877 (WebKit::DownloadProxyMap::processDidClose):
878 m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
880 2013-02-07 Simon Hausmann <simon.hausmann@digia.com>
882 [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
883 https://bugs.webkit.org/show_bug.cgi?id=108920
885 Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
887 Employ the pattern suggested by Jocelyn to simply implement the C
888 callbacks directly using static functions.
891 * UIProcess/API/qt/qquickwebview.cpp:
892 (toQQuickWebViewPrivate):
893 (QQuickWebViewPrivate::initialize):
894 (QQuickWebViewPrivate::didFindString):
895 (QQuickWebViewPrivate::didFailToFindString):
896 * UIProcess/API/qt/qquickwebview_p_p.h:
897 (QQuickWebViewPrivate):
898 * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
899 * UIProcess/qt/QtWebPageFindClient.h: Removed.
901 2013-02-03 Sam Weinig <sam@webkit.org>
903 Make CustomProtocolManagerProxy a MessageReceiver
904 https://bugs.webkit.org/show_bug.cgi?id=108787
906 Reviewed by Anders Carlsson.
908 * Shared/ChildProcessProxy.cpp:
909 (WebKit::ChildProcessProxy::addMessageReceiver):
910 (WebKit::ChildProcessProxy::removeMessageReceiver):
911 (WebKit::ChildProcessProxy::dispatchMessage):
912 (WebKit::ChildProcessProxy::dispatchSyncMessage):
913 * Shared/ChildProcessProxy.h:
914 Sink the MessageReceiverMap down into the ChildProcessProxy.
916 * UIProcess/Downloads/DownloadProxyMap.cpp:
917 (WebKit::DownloadProxyMap::DownloadProxyMap):
918 (WebKit::DownloadProxyMap::createDownloadProxy):
919 (WebKit::DownloadProxyMap::downloadFinished):
920 (WebKit::DownloadProxyMap::processDidClose):
921 * UIProcess/Downloads/DownloadProxyMap.h:
922 Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
924 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
925 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
926 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
927 (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
928 Convert to a MessageReceiver.
930 * UIProcess/Network/NetworkProcessProxy.cpp:
931 (WebKit::NetworkProcessProxy::createDownloadProxy):
932 (WebKit::NetworkProcessProxy::didReceiveMessage):
933 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
934 * UIProcess/Network/NetworkProcessProxy.h:
935 * UIProcess/WebProcessProxy.cpp:
936 (WebKit::WebProcessProxy::didReceiveMessage):
937 (WebKit::WebProcessProxy::didReceiveSyncMessage):
938 (WebKit::WebProcessProxy::createDownloadProxy):
939 * UIProcess/WebProcessProxy.h:
941 Remove direct chaining to CustomProtocolManagerProxy.
943 2013-02-06 Enrica Casucci <enrica@apple.com>
945 ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
946 https://bugs.webkit.org/show_bug.cgi?id=109105.
948 Reviewed by Tim Horton.
950 In r140769 we changed the way the overlay is destroyed,
951 therefore the assert is no longer valid and should be removed.
953 * WebProcess/WebPage/FindController.cpp:
954 (WebKit::FindController::updateFindUIAfterPageScroll):
956 2013-02-06 Anders Carlsson <andersca@apple.com>
958 Dispatch storage manager messages to the storage work queue
959 https://bugs.webkit.org/show_bug.cgi?id=109099
961 Reviewed by Andreas Kling.
963 * UIProcess/Storage/StorageManager.cpp:
964 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
965 (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
967 * UIProcess/Storage/StorageManager.h:
970 2013-02-06 Anders Carlsson <andersca@apple.com>
972 Pass the document source URL to the pluginLoadPolicy callback
973 https://bugs.webkit.org/show_bug.cgi?id=109084
974 <rdar://problem/13154516>
976 Reviewed by Andreas Kling.
978 * UIProcess/API/C/WKPage.h:
979 * UIProcess/WebPageProxy.cpp:
980 (WebKit::WebPageProxy::getPluginPath):
981 * UIProcess/WebPageProxy.h:
983 * UIProcess/WebPageProxy.messages.in:
984 * UIProcess/WebUIClient.cpp:
985 (WebKit::WebUIClient::pluginLoadPolicy):
986 * UIProcess/WebUIClient.h:
988 * WebProcess/WebPage/WebPage.cpp:
989 (WebKit::WebPage::createPlugin):
990 (WebKit::WebPage::canPluginHandleResponse):
992 2013-02-06 Alexey Proskuryakov <ap@apple.com>
994 Get rid of unneeded writeable preferences.
996 Reviewed by Anders Carlsson.
998 com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
999 early in WebKit2 development, before we moved a lot of functionality to UI process.
1000 They don't appear to be needed any more.
1002 Note that we do not even need to allow reading for com.apple.WebProcess.plist -
1003 it's read at process initialization before we enter the sandbox, and services
1004 have a different plist anyway.
1006 * WebProcess/com.apple.WebProcess.sb.in:
1008 2013-02-06 Sudarsana Nagineni <sudarsana.nagineni@intel.com>
1010 [EFL][WK2] Assertion failure on MiniBrowser exit
1011 https://bugs.webkit.org/show_bug.cgi?id=108932
1013 Reviewed by Anders Carlsson.
1015 WorkQueue is now refcounted after r141497, so increase ref
1016 count when a new job is scheduled and unref it when it finishes.
1018 * Platform/efl/WorkQueueEfl.cpp:
1019 (WorkQueue::performWork):
1020 (WorkQueue::performTimerWork):
1021 (WorkQueue::dispatch):
1022 (WorkQueue::dispatchAfterDelay):
1024 2013-02-06 Simon Hausmann <simon.hausmann@digia.com>, Zoltan Arvai <zarvai@inf.u-szeged.hu>
1026 [WK2][Win] Fix build after MessageID.h related changes and after r141619.
1027 https://bugs.webkit.org/show_bug.cgi?id=108612
1029 Reviewed by Anders Carlsson.
1031 * Platform/CoreIPC/win/ConnectionWin.cpp:
1032 (CoreIPC::Connection::platformInvalidate):
1033 (CoreIPC::Connection::readEventHandler):
1034 (CoreIPC::Connection::open):
1035 (CoreIPC::Connection::sendOutgoingMessage):
1036 * Platform/WorkQueue.h:
1037 (WorkQueue::WorkItemWin::queue):
1039 * Platform/win/SharedMemoryWin.cpp:
1040 (WebKit::SharedMemory::Handle::decode):
1041 * Platform/win/WorkQueueWin.cpp:
1042 (WorkQueue::handleCallback):
1043 (WorkQueue::performWorkOnRegisteredWorkThread):
1045 2013-02-06 Mike West <mkwst@chromium.org>
1047 Add an ENABLE_NOSNIFF feature flag.
1048 https://bugs.webkit.org/show_bug.cgi?id=109029
1050 Reviewed by Jochen Eisinger.
1052 This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
1053 when processing script and other resource types.
1055 * Configurations/FeatureDefines.xcconfig:
1057 2013-02-06 Marja Hölttä <marja@chromium.org>
1059 Take referrer policy into account when clearing the referrer header
1060 https://bugs.webkit.org/show_bug.cgi?id=86000
1062 Reviewed by Alexey Proskuryakov.
1064 The referrer should only be cleared when doing a https -> http redirect,
1065 if the policy is "default". Otherwise the referrer should be left intact.
1067 * NetworkProcess/NetworkResourceLoader.cpp:
1068 (WebKit::NetworkResourceLoader::start):
1069 * NetworkProcess/SchedulableLoader.cpp:
1070 (WebKit::SchedulableLoader::SchedulableLoader):
1071 * NetworkProcess/SchedulableLoader.h:
1072 (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
1073 (SchedulableLoader):
1074 * NetworkProcess/SyncNetworkResourceLoader.cpp:
1075 (WebKit::SyncNetworkResourceLoader::start):
1076 * NetworkProcess/mac/RemoteNetworkingContext.h:
1077 (WebKit::RemoteNetworkingContext::create):
1078 (RemoteNetworkingContext):
1079 * NetworkProcess/mac/RemoteNetworkingContext.mm:
1080 (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
1082 (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
1083 * Shared/Network/NetworkResourceLoadParameters.cpp:
1084 (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1085 (WebKit::NetworkResourceLoadParameters::encode):
1086 (WebKit::NetworkResourceLoadParameters::decode):
1087 * Shared/Network/NetworkResourceLoadParameters.h:
1088 (NetworkResourceLoadParameters):
1089 (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
1090 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1091 (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
1092 (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
1093 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1094 * WebProcess/Network/WebResourceLoadScheduler.h:
1095 (WebResourceLoadScheduler):
1096 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1097 (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1099 2013-02-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
1101 [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
1102 https://bugs.webkit.org/show_bug.cgi?id=108062
1104 Reviewed by Kenneth Rohde Christiansen.
1106 The Ewk View implementation is encapsulated within EwkView class.
1107 Besides multiple refactoring of Ewk View evas smart object code was made.
1109 * UIProcess/API/C/efl/WKView.cpp:
1112 Aux function to share WKView creation implementation.
1114 * UIProcess/API/efl/EwkView.cpp:
1116 (defaultSmartClassInstance):
1118 (EwkView::initSmartClassInterface):
1119 (EwkView::toEvasObject):
1120 (EwkView::smartData):
1122 Renamed and moved here from ewk_view.
1124 (EwkViewEventHandler):
1125 (EwkViewEventHandler::subscribe):
1126 (EwkViewEventHandler::unsubscribe):
1129 Added a new template class to encapsulate Ewk View Evas events handling.
1132 (EwkView::~EwkView):
1134 Constructor and desctructor are private.
1136 (EwkView::createEvasObject):
1138 Added factory function for ewk view evas objects creation.
1140 (EwkView::handleEvasObjectAdd):
1141 (EwkView::handleEvasObjectDelete):
1142 (EwkView::handleEvasObjectResize):
1143 (EwkView::handleEvasObjectMove):
1144 (EwkView::handleEvasObjectCalculate):
1145 (EwkView::handleEvasObjectShow):
1146 (EwkView::handleEvasObjectHide):
1147 (EwkView::handleEvasObjectColorSet):
1149 Evas_Smart_Class interface callbacks moved into the EwkView class.
1151 (EwkView::handleEwkViewFocusIn):
1152 (EwkView::handleEwkViewFocusOut):
1153 (EwkView::handleEwkViewMouseWheel):
1154 (EwkView::handleEwkViewMouseDown):
1155 (EwkView::handleEwkViewMouseUp):
1156 (EwkView::handleEwkViewMouseMove):
1157 (EwkView::handleEwkViewKeyDown):
1158 (EwkView::handleEwkViewKeyUp):
1160 Ewk_View_Smart_Class interface callback moved into the EwkView class.
1162 (EwkView::handleTouchDown):
1163 (EwkView::handleTouchUp):
1164 (EwkView::handleTouchMove):
1170 Aux function to get the EwkView instance fromevas object.
1174 Aux function to check that given evas object is ewk view.
1176 * UIProcess/API/efl/EwkView.h:
1177 (EwkView::evasObject):
1179 * UIProcess/API/efl/ewk_view.cpp:
1180 (ewk_view_smart_class_set):
1181 (ewk_view_smart_add):
1182 (ewk_view_add_with_context):
1183 (ewk_view_feed_touch_event):
1184 (Ewk_Page_Contents_Context):
1186 * UIProcess/API/efl/ewk_view_private.h: Removed.
1188 * UIProcess/API/C/efl/WKView.cpp:
1190 (WKViewCreateWithFixedLayout):
1191 (WKViewCreateSnapshot):
1192 * UIProcess/cairo/BackingStoreCairo.cpp:
1193 (WebKit::BackingStore::incorporateUpdate):
1194 * UIProcess/efl/ContextHistoryClientEfl.cpp:
1195 (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
1196 (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
1197 (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
1198 (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
1199 * UIProcess/efl/PageClientBase.cpp:
1200 (WebKit::PageClientBase::processDidCrash):
1201 * UIProcess/efl/PageLoadClientEfl.cpp:
1202 (WebKit::PageLoadClientEfl::didChangeBackForwardList):
1203 * UIProcess/efl/PageUIClientEfl.cpp:
1204 (WebKit::PageUIClientEfl::takeFocus):
1205 (WebKit::PageUIClientEfl::focus):
1206 (WebKit::PageUIClientEfl::unfocus):
1207 * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
1208 (WebKit::WebFullScreenManagerProxy::enterFullScreen):
1209 (WebKit::WebFullScreenManagerProxy::exitFullScreen):
1210 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1211 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1212 * UIProcess/efl/WebPageProxyEfl.cpp:
1213 (WebKit::WebPageProxy::viewWidget):
1215 Updated due to changes in EwkView interface.
1217 2013-02-05 Tim Horton <timothy_horton@apple.com>
1219 [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
1220 https://bugs.webkit.org/show_bug.cgi?id=108992
1221 <rdar://problem/13087365>
1223 Reviewed by Anders Carlsson.
1225 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1226 (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
1227 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1228 (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
1229 hosting context if we're in the window when swapping out contexts.
1230 (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
1231 of the layer hosting context (or unset it if we're out of the window).
1233 2013-02-05 Anders Carlsson <andersca@apple.com>
1235 WebKit clients should be able to override loading of blocked plug-ins
1236 https://bugs.webkit.org/show_bug.cgi?id=108968
1237 <rdar://problem/13154516>
1239 Reviewed by Sam Weinig.
1241 Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
1242 of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
1243 force loading of blacklisted plug-ins (and vice versa).
1245 * UIProcess/API/C/WKPage.h:
1246 * UIProcess/WebPageProxy.cpp:
1247 (WebKit::WebPageProxy::getPluginPath):
1248 * UIProcess/WebUIClient.cpp:
1249 (WebKit::toWKPluginLoadPolicy):
1251 (WebKit::toPluginModuleLoadPolicy):
1252 (WebKit::WebUIClient::pluginLoadPolicy):
1253 * UIProcess/WebUIClient.h:
1256 2013-02-05 Simon Hausmann <simon.hausmann@digia.com>
1258 [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
1259 https://bugs.webkit.org/show_bug.cgi?id=108826
1261 Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
1264 This patch converts a few more usages of WebPageProxy to functions in
1267 * UIProcess/API/qt/qquickwebview.cpp:
1268 (QQuickWebViewPrivate::initialize):
1269 (QQuickWebViewLegacyPrivate::zoomFactor):
1270 (QQuickWebViewLegacyPrivate::setZoomFactor):
1271 (QQuickWebViewExperimental::postMessage):
1272 (QQuickWebViewExperimental::userAgent):
1273 (QQuickWebViewExperimental::setUserAgent):
1274 (QQuickWebViewExperimental::evaluateJavaScript):
1275 (QQuickWebViewExperimental::findText):
1276 (QQuickWebView::goBack):
1277 (QQuickWebView::goForward):
1278 (QQuickWebView::stop):
1279 (QQuickWebView::reload):
1280 (QQuickWebView::setUrl):
1281 (QQuickWebView::canGoBack):
1282 (QQuickWebView::canGoForward):
1283 (QQuickWebView::loading):
1284 (QQuickWebView::title):
1285 (QQuickWebView::pageRef):
1286 (QQuickWebView::loadHtml):
1287 (QQuickWebView::runJavaScriptInMainFrame):
1288 * UIProcess/API/qt/qquickwebview_p_p.h:
1289 (QQuickWebViewPrivate):
1291 2013-02-04 Gwang Yoon Hwang <ryumiel@company100.net>
1293 Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
1294 https://bugs.webkit.org/show_bug.cgi?id=108807
1296 Reviewed by Anders Carlsson.
1298 We need to add newly created WebCustomFilterProgramProxy to a hashset to
1299 disconnect when CoordinatedLayerTreeHost gets destructed.
1301 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1302 (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
1304 2013-02-04 Benjamin Poulain <bpoulain@apple.com>
1306 Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
1307 https://bugs.webkit.org/show_bug.cgi?id=108741
1309 Reviewed by Tony Chang.
1311 Suspending and resuming application has been useless for a one. Someone just
1314 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1315 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1316 * WebProcess/WebPage/WebFrame.cpp:
1317 * WebProcess/WebPage/WebFrame.h:
1320 2013-02-04 Jaehun Lim <ljaehun.lim@samsung.com>
1322 [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
1323 https://bugs.webkit.org/show_bug.cgi?id=106979
1325 Reviewed by Benjamin Poulain.
1327 Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
1328 We can show confirmation window when beforeunload event is fired.
1330 * UIProcess/efl/PageUIClientEfl.cpp:
1331 (WebKit::PageUIClientEfl::PageUIClientEfl):
1332 (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
1334 * UIProcess/efl/PageUIClientEfl.h:
1337 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1339 [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
1340 https://bugs.webkit.org/show_bug.cgi?id=107931
1342 Reviewed by Anders Carlsson.
1344 This is just one step of the new plan for the EFL API.
1346 The plan is to move the public EFL-like API on top of the shared
1347 WK2 C API, plus a few EFL extensions (WKView class mostly).
1349 The EFL-like API can be seen as a convenience API which ties
1350 well into EFL and which makes it easy to add web experiences
1351 to existing and new EFL applications. It provides a smart object
1352 like API and a Evas_Object based view.
1354 For more advanced use cases, such as browser and runtime, it is
1355 possible to use the WK* C API, which is gives more flexibility
1356 while being more low level.
1358 The idea is that the WKView class will not depend on Evas_Object
1359 and X11 (future plan) unlike the current EFL-like API. This should
1360 make it possible to use it for cases where none of these are
1363 This patch introduces the WebView class which serves as our
1364 counterpart for the WKView class, and adds a few needed methods.
1366 The EwkView owns the WebView class (and will be constructing it
1367 in the near future when the EwkView class has been changed to
1368 handle all smart object related code)
1370 The clean up of the smart object related code as the proper
1371 construction of EwkView and WebView will be done in follow-up
1374 * UIProcess/API/C/efl/WKAPICastEfl.h:
1377 The WKView API is not based on WebView and not Evas_Object*
1379 * UIProcess/API/C/efl/WKView.cpp:
1381 (WKViewCreateWithFixedLayout):
1384 (WKViewSetThemePath):
1385 (WKViewSuspendActiveDOMObjectsAndAnimations):
1386 (WKViewResumeActiveDOMObjectsAndAnimations):
1387 (WKViewGetEvasObject):
1388 (WKViewCreateSnapshot):
1390 Add a few new WKView EFL C methods, and update existing
1391 methods to reflect that the WKViewRef is now a WebView*
1393 The construction methods will be rewritten when the smart
1394 object construction has been solved.
1396 * UIProcess/API/C/efl/WKView.h:
1397 * UIProcess/efl/WebView.cpp: Added.
1399 (WebKit::WebView::WebView):
1400 (WebKit::WebView::~WebView):
1401 (WebKit::WebView::initialize):
1402 (WebKit::WebView::setThemePath):
1403 (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
1404 (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
1405 * UIProcess/efl/WebView.h: Added.
1408 (WebKit::WebView::pageRef):
1409 (WebKit::WebView::evasObject):
1410 (WebKit::WebView::page):
1411 (WebKit::WebView::type):
1413 Add a new WebKit::WebView class for EFL.
1415 * UIProcess/API/efl/EwkView.cpp:
1417 (EwkView::~EwkView):
1419 (EwkView::setThemePath):
1420 (EwkView::createGLSurface):
1422 Base methods on C API instead of internal API as much
1423 as currently possible.
1425 * UIProcess/API/efl/EwkView.h:
1431 * UIProcess/API/efl/ewk_view.cpp:
1433 (ewk_view_base_add):
1434 (ewk_view_smart_add):
1436 Modify to return the EwkView class for now.
1438 * UIProcess/API/efl/ewk_view_private.h:
1439 * UIProcess/efl/WebInspectorProxyEfl.cpp:
1440 (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1442 Updated due to changed API.
1444 2013-02-04 Anders Carlsson <andersca@apple.com>
1446 Set up the storage manager as a connection queue
1447 https://bugs.webkit.org/show_bug.cgi?id=108879
1449 Reviewed by Sam Weinig.
1451 * UIProcess/Storage/StorageManager.cpp:
1452 (WebKit::StorageManager::processWillOpenConnection):
1453 Add the storage manager as a connection queue client.
1455 (WebKit::StorageManager::processWillCloseConnection):
1456 Remove the storage manager.
1458 * UIProcess/WebContext.cpp:
1459 (WebKit::WebContext::processWillOpenConnection):
1460 Call the storage manager.
1462 (WebKit::WebContext::processWillCloseConnection):
1463 Call the storage manager.
1465 * UIProcess/WebProcessProxy.cpp:
1466 (WebKit::WebProcessProxy::connectionWillOpen):
1469 (WebKit::WebProcessProxy::connectionWillClose):
1472 (WebKit::WebProcessProxy::didFinishLaunching):
1475 2013-02-04 Anders Carlsson <andersca@apple.com>
1477 Send message when creating and destroying StorageAreaProxy objects
1478 https://bugs.webkit.org/show_bug.cgi?id=108874
1480 Reviewed by Sam Weinig.
1482 * Shared/SecurityOriginData.cpp:
1483 (WebKit::SecurityOriginData::fromSecurityOrigin):
1484 * Shared/SecurityOriginData.h:
1485 (SecurityOriginData):
1486 Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
1488 * WebProcess/Storage/StorageAreaProxy.cpp:
1489 (WebKit::generateStorageAreaID):
1490 New function to create a unique storage area ID.
1492 (WebKit::StorageAreaProxy::StorageAreaProxy):
1493 Send a CreateStorageArea message.
1495 (WebKit::StorageAreaProxy::~StorageAreaProxy):
1496 Send a DestroyStorageArea message.
1498 (WebKit::StorageAreaProxy::contains):
1499 Remove this assertion for now, it fires too often.
1501 * WebProcess/Storage/StorageNamespaceProxy.h:
1502 (WebKit::StorageNamespaceProxy::storageNamespaceID):
1505 2013-02-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1507 [EFL][WK2] Use C API inside EwkView
1508 https://bugs.webkit.org/show_bug.cgi?id=108825
1510 Reviewed by Anders Carlsson.
1512 A straight-forward port towards the C API.
1514 * UIProcess/API/efl/EwkView.cpp:
1515 (EwkView::EwkView): Use C API for common default preferences.
1516 (EwkView::wkPage): Make it const and remove useless comment.
1517 (EwkView::deviceScaleFactor):
1519 (EwkView::customTextEncodingName):
1520 (EwkView::setCustomTextEncodingName):
1521 (EwkView::informURLChange):
1522 * UIProcess/API/efl/EwkView.h:
1525 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1527 Remove an unnecessary sandbox rule.
1529 Reviewed by Sam Weinig.
1531 * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
1532 /Library/Managed Preferences, no need for another rule for something inside it.
1534 2013-02-04 Brady Eidson <beidson@apple.com>
1536 WebProcess crashes handling repeated NetworkProcess crashes.
1537 <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
1539 Reviewed by Alexey Proskuryakov.
1541 - Rename the concept of "unschedulable loader" to "internally failed loader"
1542 - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
1543 * WebProcess/Network/WebResourceLoadScheduler.cpp:
1544 (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
1545 (WebKit::WebResourceLoadScheduler::scheduleLoad):
1546 (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
1547 (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
1548 (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
1549 (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1550 * WebProcess/Network/WebResourceLoadScheduler.h:
1552 WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
1553 * WebProcess/Network/WebResourceLoader.cpp:
1554 * WebProcess/Network/WebResourceLoader.h:
1555 (WebKit::WebResourceLoader::resourceLoader):
1557 2013-02-04 Anders Carlsson <andersca@apple.com>
1559 Update message generation to use the new queue client semantics
1560 https://bugs.webkit.org/show_bug.cgi?id=108865
1562 Reviewed by Andreas Kling.
1564 * Scripts/webkit2/messages.py:
1565 (connection_work_queue_message_statement):
1566 (async_message_statement):
1567 (generate_message_handler):
1568 * Scripts/webkit2/messages_unittest.py:
1569 * Shared/mac/SecItemShim.cpp:
1570 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1571 * Shared/mac/SecItemShim.h:
1573 * UIProcess/Storage/StorageManager.cpp:
1574 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1575 * UIProcess/Storage/StorageManager.h:
1577 * UIProcess/WebProcessProxy.cpp:
1578 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1579 * UIProcess/WebProcessProxy.h:
1581 * UIProcess/mac/SecItemShimProxy.cpp:
1582 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1583 * UIProcess/mac/SecItemShimProxy.h:
1585 * WebKit2.xcodeproj/project.pbxproj:
1586 * WebProcess/WebPage/EventDispatcher.cpp:
1587 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1588 * WebProcess/WebPage/EventDispatcher.h:
1590 * WebProcess/WebProcess.cpp:
1591 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1592 * WebProcess/WebProcess.h:
1595 2013-02-04 Abhishek Arya <inferno@chromium.org>
1597 Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
1598 https://bugs.webkit.org/show_bug.cgi?id=108668
1600 Reviewed by Eric Seidel.
1602 * Shared/mac/SandboxExtensionMac.mm:
1603 (WebKit::SandboxExtension::HandleArray::operator[]):
1605 2013-02-04 Anders Carlsson <andersca@apple.com>
1607 Change didReceiveMessageOnConnectionWorkQueue semantics
1608 https://bugs.webkit.org/show_bug.cgi?id=108859
1610 Reviewed by Sam Weinig.
1612 Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
1613 OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
1614 work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
1615 of the decoder implicitly means that the message was handled.
1617 * Platform/CoreIPC/Connection.cpp:
1618 (CoreIPC::Connection::processIncomingMessage):
1619 * Platform/CoreIPC/Connection.h:
1621 * Shared/mac/SecItemShim.cpp:
1622 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
1623 * Shared/mac/SecItemShim.h:
1625 * UIProcess/Storage/StorageManager.cpp:
1626 (WebKit::StorageManager::StorageManager):
1627 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1628 * UIProcess/Storage/StorageManager.h:
1631 * UIProcess/WebProcessProxy.cpp:
1632 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
1633 * UIProcess/WebProcessProxy.h:
1635 * UIProcess/mac/SecItemShimProxy.cpp:
1636 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
1637 * UIProcess/mac/SecItemShimProxy.h:
1639 * WebProcess/WebPage/EventDispatcher.cpp:
1640 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
1641 * WebProcess/WebPage/EventDispatcher.h:
1643 * WebProcess/WebProcess.cpp:
1644 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
1645 * WebProcess/WebProcess.h:
1648 2013-02-04 Alexey Proskuryakov <ap@apple.com>
1650 <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
1652 Reviewed by Sam Weinig.
1654 * WebProcess/com.apple.WebProcess.sb.in:
1656 2013-02-04 Anders Carlsson <andersca@apple.com>
1658 Add didCloseOnConnectionWorkQueue to Connection::QueueClient
1659 https://bugs.webkit.org/show_bug.cgi?id=108853
1661 Reviewed by Andreas Kling.
1663 * Platform/CoreIPC/Connection.cpp:
1664 (CoreIPC::Connection::connectionDidClose):
1665 * Platform/CoreIPC/Connection.h:
1667 * Shared/mac/SecItemShim.cpp:
1668 (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
1669 * Shared/mac/SecItemShim.h:
1671 * UIProcess/Storage/StorageManager.cpp:
1672 (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
1674 * UIProcess/Storage/StorageManager.h:
1676 * UIProcess/WebProcessProxy.cpp:
1677 (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
1679 * UIProcess/WebProcessProxy.h:
1681 * UIProcess/mac/SecItemShimProxy.cpp:
1682 (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
1683 * UIProcess/mac/SecItemShimProxy.h:
1685 * WebProcess/WebPage/EventDispatcher.cpp:
1686 (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
1688 * WebProcess/WebPage/EventDispatcher.h:
1690 * WebProcess/WebProcess.cpp:
1691 (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
1693 * WebProcess/WebProcess.h:
1696 2013-02-04 Martin Robinson <mrobinson@igalia.com>
1698 Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
1701 * GNUmakefile.list.am:
1703 2013-02-04 Enrica Casucci <enrica@apple.com>
1705 Add specific EditActions for Bold and Italic commands.
1706 https://bugs.webkit.org/show_bug.cgi?id=108842.
1707 <rdar://problem/13098252>
1709 Reviewed by Ryosuke Niwa.
1711 * UIProcess/WebEditCommandProxy.cpp:
1712 (WebKit::WebEditCommandProxy::nameForEditAction):
1714 2013-02-04 Anders Carlsson <andersca@apple.com>
1716 Use a separate queue for the connection watchdog callback in the web process
1717 https://bugs.webkit.org/show_bug.cgi?id=108844
1719 Reviewed by Andreas Kling.
1721 Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
1722 Instead, create a new, temporary work queue where the exit call will be dispatched to.
1724 * Platform/CoreIPC/Connection.cpp:
1725 (CoreIPC::Connection::connectionDidClose):
1726 * Platform/CoreIPC/Connection.h:
1728 * Shared/ChildProcess.cpp:
1729 (WebKit::didCloseOnConnectionWorkQueue):
1731 2013-02-04 Tim Horton <timothy_horton@apple.com>
1733 Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
1734 https://bugs.webkit.org/show_bug.cgi?id=108729
1735 <rdar://problem/13047546>
1737 Reviewed by Anders Carlsson.
1739 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1740 (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
1741 current PlatformLayer corresponding to m_pageOverlayLayer.
1742 * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1743 (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
1744 (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
1745 (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
1746 (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.
1747 (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.
1749 2013-02-04 Anders Carlsson <andersca@apple.com>
1751 Use UNUSED_PARAM instead of C style comments.
1753 * UIProcess/Storage/StorageManager.cpp:
1754 (WebKit::StorageManager::createStorageArea):
1756 2013-02-04 Christophe Dumez <dchris@gmail.com>
1758 [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
1759 https://bugs.webkit.org/show_bug.cgi?id=108816
1761 Reviewed by Anders Carlsson.
1763 As we are trying to minimize use of external dependencies in our WK2 EFL
1764 API implementation, we should stop using libsoup in
1765 ewk_url_scheme_request and use the WK2 C API instead.
1767 * UIProcess/API/efl/ewk_url_scheme_request.cpp:
1768 (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
1770 2013-02-04 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
1772 [WK2][EFL] Weird stripe at the end of the page
1773 https://bugs.webkit.org/show_bug.cgi?id=108820
1775 Reviewed by Noam Rosenthal.
1777 The page scroll bound was artificially enlarged by one causing the artifact appearance.
1779 * UIProcess/PageViewportController.cpp:
1780 (WebKit::PageViewportController::boundContentsPositionAtScale):
1782 2013-02-04 David Kilzer <ddkilzer@apple.com>
1784 Sort WebKit2 Xcode project file
1786 * WebKit2.xcodeproj/project.pbxproj:
1788 2013-02-04 Simon Hausmann <simon.hausmann@digia.com>
1790 [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
1791 https://bugs.webkit.org/show_bug.cgi?id=108651
1793 Reviewed by Sam Weinig.
1795 It's straight-forward port towards the C API.
1797 * UIProcess/API/qt/qquickwebview.cpp:
1798 (QQuickWebViewPrivate::initialize):
1800 (QQuickWebViewPrivate::updateUserScripts):
1801 * UIProcess/API/qt/qquickwebview_p_p.h:
1802 (QQuickWebViewPrivate):
1804 2013-02-04 Balazs Kelemen <kbalazs@webkit.org>
1806 [Soup] Wrap SoupSession by NetworkStorageSession
1807 https://bugs.webkit.org/show_bug.cgi?id=108615
1809 Reviewed by Alexey Proskuryakov.
1811 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
1812 (WebKit::WebFrameNetworkingContext::storageSession):
1813 * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
1814 (WebFrameNetworkingContext):
1816 2013-02-03 David Kilzer <ddkilzer@apple.com>
1818 Upstream ENABLE_PDFKIT_PLUGIN settting
1819 <http://webkit.org/b/108792>
1821 Reviewed by Tim Horton.
1823 * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1824 on iOS since PDFKit is a Mac-only framework.
1826 2013-02-01 Alexey Proskuryakov <ap@apple.com>
1828 Silently block one more directory needed for NSApplication initialization.
1830 Reviewed by Sam Weinig.
1832 * WebProcess/com.apple.WebProcess.sb.in:
1834 2013-02-03 KwangYong Choi <ky0.choi@samsung.com>
1836 Fix build warning after r141648
1837 https://bugs.webkit.org/show_bug.cgi?id=108784
1839 Reviewed by Kentaro Hara.
1841 Fix -Wunused-parameter build warning.
1843 * UIProcess/Storage/StorageManager.cpp:
1844 (WebKit::StorageManager::createStorageArea):
1845 (WebKit::StorageManager::destroyStorageArea):
1847 2013-02-03 Joanmarie Diggs <jdiggs@igalia.com>
1849 [GTK] Make distcheck fails
1850 https://bugs.webkit.org/show_bug.cgi?id=108756
1852 Reviewed by Kentaro Hara.
1854 * GNUmakefile.list.am: Remove header files which no longer exist
1856 2013-02-02 Sam Weinig <sam@webkit.org>
1858 Remove more LegacyReceivers
1859 https://bugs.webkit.org/show_bug.cgi?id=108758
1861 Reviewed by Anders Carlsson.
1863 * UIProcess/Downloads/DownloadProxy.cpp:
1864 * UIProcess/Downloads/DownloadProxy.messages.in:
1865 * UIProcess/WebApplicationCacheManagerProxy.cpp:
1866 * UIProcess/WebApplicationCacheManagerProxy.h:
1867 (WebApplicationCacheManagerProxy):
1868 * UIProcess/WebApplicationCacheManagerProxy.messages.in:
1869 * UIProcess/WebCookieManagerProxy.cpp:
1870 * UIProcess/WebCookieManagerProxy.h:
1871 (WebCookieManagerProxy):
1872 * UIProcess/WebCookieManagerProxy.messages.in:
1873 * UIProcess/WebDatabaseManagerProxy.cpp:
1874 * UIProcess/WebDatabaseManagerProxy.h:
1875 (WebDatabaseManagerProxy):
1876 * UIProcess/WebDatabaseManagerProxy.messages.in:
1877 * UIProcess/mac/RemoteLayerTreeHost.h:
1878 (RemoteLayerTreeHost):
1879 * UIProcess/mac/RemoteLayerTreeHost.messages.in:
1880 * UIProcess/mac/RemoteLayerTreeHost.mm:
1881 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1882 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1883 (WebApplicationCacheManager):
1884 * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1885 * WebProcess/Cookies/WebCookieManager.cpp:
1886 * WebProcess/Cookies/WebCookieManager.h:
1888 * WebProcess/Cookies/WebCookieManager.messages.in:
1889 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1890 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1891 (WebDatabaseManager):
1892 * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
1894 2013-02-02 Sam Weinig <sam@webkit.org>
1896 Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
1897 https://bugs.webkit.org/show_bug.cgi?id=108757
1899 Reviewed by Anders Carlsson.
1901 * Shared/Authentication/AuthenticationManager.cpp:
1902 * Shared/Authentication/AuthenticationManager.h:
1903 (AuthenticationManager):
1904 * Shared/Authentication/AuthenticationManager.messages.in:
1905 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1906 (CustomProtocolManager):
1907 * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1908 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1909 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1910 (CustomProtocolManagerProxy):
1911 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1912 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1914 2013-02-02 Christophe Dumez <christophe.dumez@intel.com>
1916 [EFL][WK2] Use C API inside ewk_file_chooser_request
1917 https://bugs.webkit.org/show_bug.cgi?id=107811
1919 Reviewed by Sam Weinig.
1921 Use C API inside ewk_file_chooser_request instead of
1922 accessing the internal C++ classes directly, to
1923 avoid violating API layering.
1925 * UIProcess/API/efl/ewk_file_chooser_request.cpp:
1926 (EwkFileChooserRequest::EwkFileChooserRequest):
1927 (EwkFileChooserRequest::~EwkFileChooserRequest):
1928 (EwkFileChooserRequest::allowMultipleFiles):
1929 (EwkFileChooserRequest::acceptedMIMETypes):
1930 (EwkFileChooserRequest::cancel):
1931 (EwkFileChooserRequest::chooseFiles):
1932 (ewk_file_chooser_request_accepted_mimetypes_get):
1933 (ewk_file_chooser_request_files_choose):
1934 (ewk_file_chooser_request_file_choose):
1935 * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1936 (EwkFileChooserRequest::create):
1937 (EwkFileChooserRequest):
1938 * UIProcess/efl/PageUIClientEfl.cpp:
1939 (WebKit::PageUIClientEfl::runOpenPanel):
1941 2013-02-02 Sam Weinig <sam@webkit.org>
1943 Stop keeping a frame tree in the UIProcess
1944 https://bugs.webkit.org/show_bug.cgi?id=81728
1946 Reviewed by Oliver Hunt.
1948 This patch removes the parent/child relationships of WebFrameProxys
1951 * UIProcess/API/C/WKFrame.cpp:
1952 (WKFrameCopyChildFrames):
1953 (WKFrameGetParentFrame):
1954 * UIProcess/API/C/WKFrame.h:
1955 Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
1956 but keep them around as their symbols are still needed for nightlies.
1958 * UIProcess/WebFrameProxy.cpp:
1959 (WebKit::WebFrameProxy::WebFrameProxy):
1960 (WebKit::WebFrameProxy::disconnect):
1961 * UIProcess/WebFrameProxy.h:
1962 Remove parent/child connections.
1964 * UIProcess/WebPageProxy.cpp:
1965 (WebKit::WebPageProxy::didCreateSubframe):
1966 (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1967 * UIProcess/WebPageProxy.h:
1968 * UIProcess/WebPageProxy.messages.in:
1969 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1970 (WebKit::WebFrameLoaderClient::didSaveToPageCache):
1971 (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
1972 * WebProcess/WebPage/WebFrame.cpp:
1973 (WebKit::WebFrame::createSubframe):
1974 Remove/Update messages that only served to update the parent/child connection.
1976 2013-02-02 Sam Weinig <sam@webkit.org>
1978 Make it possible to modify the connection from ChildProcessProxy subclasses.
1980 Reviewed by Anders Carlsson.
1982 * Shared/ChildProcessProxy.cpp:
1983 (WebKit::ChildProcessProxy::ChildProcessProxy):
1984 (WebKit::ChildProcessProxy::didFinishLaunching):
1985 (WebKit::ChildProcessProxy::clearConnection):
1986 (WebKit::ChildProcessProxy::connectionWillOpen):
1987 (WebKit::ChildProcessProxy::connectionWillClose):
1988 * Shared/ChildProcessProxy.h:
1989 (ChildProcessProxy):
1990 * UIProcess/WebProcessProxy.cpp:
1991 (WebKit::WebProcessProxy::WebProcessProxy):
1992 (WebKit::WebProcessProxy::connectionWillOpen):
1993 (WebKit::WebProcessProxy::connectionWillClose):
1994 * UIProcess/WebProcessProxy.h:
1997 2013-02-02 David Kilzer <ddkilzer@apple.com>
1999 Upstream iOS FeatureDefines
2000 <http://webkit.org/b/108753>
2002 Reviewed by Anders Carlsson.
2004 * Configurations/FeatureDefines.xcconfig:
2005 - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
2006 - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
2007 - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO. Add
2008 PLATFORM_NAME variant to reduce future merge conflicts.
2010 2013-02-02 Csaba Osztrogonác <ossy@webkit.org>
2012 [Qt][WK2] Unreviewed buildfix after r141648.
2014 * DerivedSources.pri:
2016 2013-02-02 Zan Dobersek <zdobersek@igalia.com>
2018 Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
2022 * GNUmakefile.list.am:
2024 2013-02-01 Zan Dobersek <zdobersek@igalia.com>
2026 Unreviewed GTK build fix after r141648.
2028 * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
2029 should be searched for *.messages.in files.
2031 2013-02-01 Gyuyoung Kim <gyuyoung.kim@samsung.com>
2033 Unreviewed build fix after r141648
2035 Needs to add StorageManager.messages.in to CMakeLists.txt.
2039 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2041 Build fix for CustomProtocolManagerMac after r141658.
2043 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2044 (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
2046 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2048 [WK2] Use light supplement names instead of static AtomicStrings
2049 https://bugs.webkit.org/show_bug.cgi?id=108570
2051 Reviewed by Anders Carlsson.
2053 Since all the supplement names are just string literals and are all different,
2054 we can just use their pointer as the key in the supplement hashmaps.
2056 This is lighter and faster than using AtomicString. WebCore already moved to this
2059 * NetworkProcess/NetworkProcess.h:
2060 (WebKit::NetworkProcess::addSupplement):
2062 * Shared/Authentication/AuthenticationManager.cpp:
2063 (WebKit::AuthenticationManager::supplementName):
2064 * Shared/Authentication/AuthenticationManager.h:
2065 (AuthenticationManager):
2066 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
2067 (CustomProtocolManager):
2068 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2069 (WebKit::CustomProtocolManager::supplementName):
2070 * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
2071 (WebKit::WebNotificationManagerProxy::supplementName):
2072 * UIProcess/Notifications/WebNotificationManagerProxy.h:
2073 (WebNotificationManagerProxy):
2074 * UIProcess/WebApplicationCacheManagerProxy.cpp:
2075 (WebKit::WebApplicationCacheManagerProxy::supplementName):
2076 * UIProcess/WebApplicationCacheManagerProxy.h:
2077 (WebApplicationCacheManagerProxy):
2078 * UIProcess/WebContext.h:
2080 * UIProcess/WebCookieManagerProxy.cpp:
2081 (WebKit::WebCookieManagerProxy::supplementName):
2082 * UIProcess/WebCookieManagerProxy.h:
2083 (WebCookieManagerProxy):
2084 * UIProcess/WebDatabaseManagerProxy.cpp:
2085 (WebKit::WebDatabaseManagerProxy::supplementName):
2086 * UIProcess/WebDatabaseManagerProxy.h:
2087 (WebDatabaseManagerProxy):
2088 * UIProcess/WebGeolocationManagerProxy.cpp:
2089 (WebKit::WebGeolocationManagerProxy::supplementName):
2090 * UIProcess/WebGeolocationManagerProxy.h:
2091 (WebGeolocationManagerProxy):
2092 * UIProcess/WebKeyValueStorageManagerProxy.cpp:
2093 (WebKit::WebKeyValueStorageManagerProxy::supplementName):
2094 * UIProcess/WebKeyValueStorageManagerProxy.h:
2095 (WebKeyValueStorageManagerProxy):
2096 * UIProcess/WebMediaCacheManagerProxy.cpp:
2097 (WebKit::WebMediaCacheManagerProxy::supplementName):
2098 * UIProcess/WebMediaCacheManagerProxy.h:
2099 (WebMediaCacheManagerProxy):
2100 * UIProcess/WebResourceCacheManagerProxy.cpp:
2101 (WebKit::WebResourceCacheManagerProxy::supplementName):
2102 * UIProcess/WebResourceCacheManagerProxy.h:
2103 (WebResourceCacheManagerProxy):
2104 * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
2105 (WebKit::WebSoupRequestManagerProxy::supplementName):
2106 * UIProcess/soup/WebSoupRequestManagerProxy.h:
2107 (WebSoupRequestManagerProxy):
2108 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2109 (WebKit::WebApplicationCacheManager::supplementName):
2110 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2111 (WebApplicationCacheManager):
2112 * WebProcess/Cookies/WebCookieManager.cpp:
2113 (WebKit::WebCookieManager::supplementName):
2114 * WebProcess/Cookies/WebCookieManager.h:
2116 * WebProcess/Geolocation/WebGeolocationManager.cpp:
2117 (WebKit::WebGeolocationManager::supplementName):
2118 * WebProcess/Geolocation/WebGeolocationManager.h:
2119 (WebGeolocationManager):
2120 * WebProcess/MediaCache/WebMediaCacheManager.cpp:
2121 (WebKit::WebMediaCacheManager::supplementName):
2122 * WebProcess/MediaCache/WebMediaCacheManager.h:
2123 (WebMediaCacheManager):
2124 * WebProcess/Notifications/WebNotificationManager.cpp:
2125 (WebKit::WebNotificationManager::supplementName):
2126 * WebProcess/Notifications/WebNotificationManager.h:
2127 (WebNotificationManager):
2128 * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
2129 (WebKit::WebResourceCacheManager::supplementName):
2130 * WebProcess/ResourceCache/WebResourceCacheManager.h:
2131 (WebResourceCacheManager):
2132 * WebProcess/Storage/WebKeyValueStorageManager.cpp:
2133 (WebKit::WebKeyValueStorageManager::supplementName):
2134 * WebProcess/Storage/WebKeyValueStorageManager.h:
2135 (WebKeyValueStorageManager):
2136 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
2137 (WebKit::WebDatabaseManager::supplementName):
2138 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2139 (WebDatabaseManager):
2140 * WebProcess/WebProcess.h:
2141 (WebKit::WebProcess::addSupplement):
2144 2013-02-01 Benjamin Poulain <bpoulain@apple.com>
2146 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
2147 https://bugs.webkit.org/show_bug.cgi?id=108558
2149 Reviewed by Dean Jackson.
2151 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2152 (WKBundleFramePauseAnimationOnElementWithId):
2153 * WebProcess/WebPage/WebFrame.cpp:
2154 (WebKit::WebFrame::pauseAnimationOnElementWithId):
2155 * WebProcess/WebPage/WebFrame.h:
2158 2013-02-01 Anders Carlsson <andersca@apple.com>
2160 More work on UI side storage
2161 https://bugs.webkit.org/show_bug.cgi?id=108700
2163 Reviewed by Sam Weinig.
2165 * DerivedSources.make:
2166 Add StorageManager.messages.in.
2168 * Platform/CoreIPC/HandleMessage.h:
2169 (CoreIPC::callMemberFunction):
2172 * UIProcess/Storage/StorageManager.cpp:
2173 (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
2174 Call the right function.
2176 (WebKit::StorageManager::createStorageArea):
2177 (WebKit::StorageManager::destroyStorageArea):
2180 * UIProcess/Storage/StorageManager.messages.in: Added.
2181 Add new messages files.
2183 * WebKit2.xcodeproj/project.pbxproj:
2186 * WebProcess/Storage/StorageAreaProxy.cpp:
2187 (WebKit::StorageAreaProxy::~StorageAreaProxy):
2190 (WebKit::StorageAreaProxy::canAccessStorage):
2191 (WebKit::StorageAreaProxy::incrementAccessCount):
2192 (WebKit::StorageAreaProxy::decrementAccessCount):
2195 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2197 [Gtk] [WK2] Fix build after r141619
2198 https://bugs.webkit.org/show_bug.cgi?id=108687
2200 Reviewed by Benjamin Poulain.
2202 Take a reference instead of a pointer for decoding functions.
2204 * Platform/gtk/SharedMemoryGtk.cpp:
2205 (WebKit::SharedMemory::Handle::decode):
2206 * Shared/gtk/ArgumentCodersGtk.cpp:
2207 (CoreIPC::decodeImage):
2208 (CoreIPC::decodeDataObject):
2209 (CoreIPC::::decode):
2210 (CoreIPC::decodeGKeyFile):
2212 * Shared/gtk/ArgumentCodersGtk.h:
2213 * Shared/gtk/LayerTreeContextGtk.cpp:
2214 (WebKit::LayerTreeContext::decode):
2216 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2218 [EFL] [WK2] Fix build after r141619
2219 https://bugs.webkit.org/show_bug.cgi?id=108683
2221 Reviewed by Benjamin Poulain.
2223 Take a reference instead of a pointer for decoding functions.
2225 * Shared/WebBatteryStatus.cpp:
2226 (WebKit::WebBatteryStatus::Data::decode):
2227 * Shared/WebBatteryStatus.h:
2229 * Shared/WebNetworkInfo.cpp:
2230 (WebKit::WebNetworkInfo::Data::decode):
2231 * Shared/WebNetworkInfo.h:
2233 * Shared/cairo/LayerTreeContextCairo.cpp:
2234 (WebKit::LayerTreeContext::decode):
2235 * Shared/efl/LayerTreeContextEfl.cpp:
2236 (WebKit::LayerTreeContext::decode):
2237 * Shared/soup/PlatformCertificateInfo.cpp:
2238 (WebKit::PlatformCertificateInfo::decode):
2239 * Shared/soup/PlatformCertificateInfo.h:
2240 (PlatformCertificateInfo):
2241 * Shared/soup/WebCoreArgumentCodersSoup.cpp:
2242 (CoreIPC::::decodePlatformData):
2244 2013-02-01 Brady Eidson <beidson@apple.com>
2246 Clean up WebArchive loading with the NetworkProcess
2247 <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
2249 Reviewed by Alexey Proskuryakov.
2251 * NetworkProcess/HostRecord.cpp:
2252 (WebKit::HostRecord::servePendingRequestsForQueue): Add new logging.
2253 (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
2255 * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2256 (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
2258 * WebProcess/Network/WebResourceLoadScheduler.cpp:
2259 (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
2260 and add new logging to better explore archive loading behavior in the future.
2262 2013-02-01 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
2264 [Qt] [WK2] Fix build after r141619
2265 https://bugs.webkit.org/show_bug.cgi?id=108680
2267 Reviewed by Benjamin Poulain.
2269 Take a reference instead of a pointer for decoding functions.
2271 * Platform/unix/SharedMemoryUnix.cpp:
2272 (WebKit::SharedMemory::Handle::decode):
2273 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2274 (CoreIPC::::decode):
2275 (CoreIPC::decodeTimingFunction):
2276 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2277 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
2278 (WebKit::WebCoordinatedSurface::Handle::decode):
2279 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2281 * Shared/qt/ArgumentCodersQt.cpp:
2282 (CoreIPC::::decode):
2283 * Shared/qt/ArgumentCodersQt.h:
2285 * Shared/qt/LayerTreeContextQt.cpp:
2286 (WebKit::LayerTreeContext::decode):
2287 * Shared/qt/PlatformCertificateInfo.h:
2288 (WebKit::PlatformCertificateInfo::decode):
2289 * Shared/qt/QtNetworkReplyData.cpp:
2290 (WebKit::QtNetworkReplyData::decode):
2291 * Shared/qt/QtNetworkReplyData.h:
2292 (QtNetworkReplyData):
2293 * Shared/qt/QtNetworkRequestData.cpp:
2294 (WebKit::QtNetworkRequestData::decode):
2295 * Shared/qt/QtNetworkRequestData.h:
2296 (QtNetworkRequestData):
2297 * Shared/qt/WebCoreArgumentCodersQt.cpp:
2298 (CoreIPC::::decodePlatformData):
2300 2013-02-01 Anders Carlsson <andersca@apple.com>
2302 Message decoding functions should take a MessageDecoder reference
2303 https://bugs.webkit.org/show_bug.cgi?id=108669
2305 Reviewed by Andreas Kling.
2307 Message encoding functions already take a reference instead of a pointer, so
2308 make the decoding functions take a reference as well.
2310 * Platform/CoreIPC/ArgumentCoder.h:
2311 (CoreIPC::ArgumentCoder::decode):
2312 * Platform/CoreIPC/ArgumentCoders.cpp:
2313 (CoreIPC::::decode):
2314 (CoreIPC::decodeStringText):
2315 * Platform/CoreIPC/ArgumentCoders.h:
2316 (CoreIPC::SimpleArgumentCoder::decode):
2317 * Platform/CoreIPC/ArgumentDecoder.h:
2318 (CoreIPC::ArgumentDecoder::decode):
2319 * Platform/CoreIPC/Arguments.h:
2320 (CoreIPC::Arguments0::decode):
2321 (CoreIPC::Arguments1::decode):
2322 (CoreIPC::Arguments2::decode):
2323 (CoreIPC::Arguments3::decode):
2324 (CoreIPC::Arguments4::decode):
2325 (CoreIPC::Arguments5::decode):
2326 (CoreIPC::Arguments6::decode):
2327 (CoreIPC::Arguments7::decode):
2328 (CoreIPC::Arguments8::decode):
2329 (CoreIPC::Arguments10::decode):
2330 * Platform/CoreIPC/Attachment.cpp:
2331 (CoreIPC::Attachment::decode):
2332 * Platform/CoreIPC/Attachment.h:
2334 * Platform/CoreIPC/DataReference.cpp:
2335 (CoreIPC::DataReference::decode):
2336 * Platform/CoreIPC/DataReference.h:
2338 * Platform/CoreIPC/StringReference.cpp:
2339 (CoreIPC::StringReference::decode):
2340 * Platform/CoreIPC/StringReference.h:
2342 * Platform/CoreIPC/mac/MachPort.h:
2343 (CoreIPC::MachPort::decode):
2344 * Platform/SharedMemory.h:
2346 * Platform/mac/SharedMemoryMac.cpp:
2347 (WebKit::SharedMemory::Handle::decode):
2348 * PluginProcess/PluginCreationParameters.cpp:
2349 (WebKit::PluginCreationParameters::decode):
2350 * PluginProcess/PluginCreationParameters.h:
2351 (PluginCreationParameters):
2352 * Shared/DictionaryPopupInfo.cpp:
2353 (WebKit::DictionaryPopupInfo::decode):
2354 * Shared/DictionaryPopupInfo.h:
2355 (DictionaryPopupInfo):
2356 * Shared/EditorState.cpp:
2357 (WebKit::EditorState::decode):
2358 * Shared/EditorState.h:
2360 * Shared/FontInfo.cpp:
2361 (WebKit::FontInfo::decode):
2362 * Shared/FontInfo.h:
2364 * Shared/LayerTreeContext.h:
2366 * Shared/Network/NetworkProcessCreationParameters.cpp:
2367 (WebKit::NetworkProcessCreationParameters::decode):
2368 * Shared/Network/NetworkProcessCreationParameters.h:
2369 (NetworkProcessCreationParameters):
2370 * Shared/Network/NetworkResourceLoadParameters.cpp:
2371 (WebKit::NetworkResourceLoadParameters::decode):
2372 * Shared/Network/NetworkResourceLoadParameters.h:
2373 (NetworkResourceLoadParameters):
2374 * Shared/OriginAndDatabases.cpp:
2375 (WebKit::OriginAndDatabases::decode):
2376 * Shared/OriginAndDatabases.h:
2377 (OriginAndDatabases):
2378 * Shared/PlatformPopupMenuData.cpp:
2379 (WebKit::PlatformPopupMenuData::decode):
2380 * Shared/PlatformPopupMenuData.h:
2381 (PlatformPopupMenuData):
2382 * Shared/Plugins/NPIdentifierData.cpp:
2383 (WebKit::NPIdentifierData::decode):
2384 * Shared/Plugins/NPIdentifierData.h:
2386 * Shared/Plugins/NPVariantData.cpp:
2387 (WebKit::NPVariantData::decode):
2388 * Shared/Plugins/NPVariantData.h:
2390 * Shared/Plugins/PluginProcessCreationParameters.cpp:
2391 (WebKit::PluginProcessCreationParameters::decode):
2392 * Shared/Plugins/PluginProcessCreationParameters.h:
2393 (PluginProcessCreationParameters):
2394 * Shared/PrintInfo.cpp:
2395 (WebKit::PrintInfo::decode):
2396 * Shared/PrintInfo.h:
2398 * Shared/SandboxExtension.h:
2401 (WebKit::SandboxExtension::Handle::decode):
2402 (WebKit::SandboxExtension::HandleArray::decode):
2403 * Shared/SecurityOriginData.cpp:
2404 (WebKit::SecurityOriginData::decode):
2405 * Shared/SecurityOriginData.h:
2406 (SecurityOriginData):
2407 * Shared/SessionState.cpp:
2408 (WebKit::SessionState::decode):
2409 * Shared/SessionState.h:
2411 * Shared/ShareableBitmap.cpp:
2412 (WebKit::ShareableBitmap::Handle::decode):
2413 * Shared/ShareableBitmap.h:
2415 * Shared/ShareableResource.cpp:
2416 (WebKit::ShareableResource::Handle::decode):
2417 * Shared/ShareableResource.h:
2419 * Shared/SharedWorkerProcessCreationParameters.cpp:
2420 (WebKit::SharedWorkerProcessCreationParameters::decode):
2421 * Shared/SharedWorkerProcessCreationParameters.h:
2422 (SharedWorkerProcessCreationParameters):
2423 * Shared/StatisticsData.cpp:
2424 (WebKit::StatisticsData::decode):
2425 * Shared/StatisticsData.h:
2427 * Shared/StringPairVector.h:
2428 (WebKit::StringPairVector::decode):
2429 * Shared/UpdateInfo.cpp:
2430 (WebKit::UpdateInfo::decode):
2431 * Shared/UpdateInfo.h:
2433 * Shared/UserMessageCoders.h:
2434 (WebKit::UserMessageDecoder::baseDecode):
2435 * Shared/WebContextMenuItemData.cpp:
2436 (WebKit::WebContextMenuItemData::decode):
2437 * Shared/WebContextMenuItemData.h:
2438 (WebContextMenuItemData):
2439 * Shared/WebCoreArgumentCoders.cpp:
2440 (CoreIPC::::decode):
2441 (CoreIPC::decodeImage):
2442 * Shared/WebCoreArgumentCoders.h:
2443 * Shared/WebEvent.cpp:
2444 (WebKit::WebEvent::decode):
2445 * Shared/WebEvent.h:
2451 (WebPlatformTouchPoint):
2453 * Shared/WebGeolocationPosition.cpp:
2454 (WebKit::WebGeolocationPosition::Data::decode):
2455 * Shared/WebGeolocationPosition.h:
2457 * Shared/WebGestureEvent.cpp:
2458 (WebKit::WebGestureEvent::decode):
2459 * Shared/WebHitTestResult.cpp:
2460 (WebKit::WebHitTestResult::Data::decode):
2461 * Shared/WebHitTestResult.h:
2463 * Shared/WebKeyboardEvent.cpp:
2464 (WebKit::WebKeyboardEvent::decode):
2465 * Shared/WebMouseEvent.cpp:
2466 (WebKit::WebMouseEvent::decode):
2467 * Shared/WebNavigationDataStore.h:
2468 (WebKit::WebNavigationDataStore::decode):
2469 * Shared/WebPageCreationParameters.cpp:
2470 (WebKit::WebPageCreationParameters::decode):
2471 * Shared/WebPageCreationParameters.h:
2472 (WebPageCreationParameters):
2473 * Shared/WebPageGroupData.cpp:
2474 (WebKit::WebPageGroupData::decode):
2475 * Shared/WebPageGroupData.h:
2477 * Shared/WebPlatformTouchPoint.cpp:
2478 (WebKit::WebPlatformTouchPoint::decode):
2479 * Shared/WebPopupItem.cpp:
2480 (WebKit::WebPopupItem::decode):
2481 * Shared/WebPopupItem.h:
2482 * Shared/WebPreferencesStore.cpp:
2483 (WebKit::WebPreferencesStore::decode):
2484 * Shared/WebPreferencesStore.h:
2485 (WebPreferencesStore):
2486 * Shared/WebProcessCreationParameters.cpp:
2487 (WebKit::WebProcessCreationParameters::decode):
2488 * Shared/WebProcessCreationParameters.h:
2489 (WebProcessCreationParameters):
2490 * Shared/WebTouchEvent.cpp:
2491 (WebKit::WebTouchEvent::decode):
2492 * Shared/WebWheelEvent.cpp:
2493 (WebKit::WebWheelEvent::decode):
2494 * Shared/cf/ArgumentCodersCF.cpp:
2496 * Shared/cf/ArgumentCodersCF.h:
2498 * Shared/mac/ArgumentCodersMac.h:
2500 * Shared/mac/ArgumentCodersMac.mm:
2502 * Shared/mac/AttributedString.h:
2504 * Shared/mac/AttributedString.mm:
2505 (WebKit::AttributedString::decode):
2506 * Shared/mac/ColorSpaceData.h:
2508 * Shared/mac/ColorSpaceData.mm:
2509 (WebKit::ColorSpaceData::decode):
2510 * Shared/mac/LayerTreeContextMac.mm:
2511 (WebKit::LayerTreeContext::decode):
2512 * Shared/mac/ObjCObjectGraphCoders.h:
2513 (WebContextObjCObjectGraphDecoder):
2514 (InjectedBundleObjCObjectGraphDecoder):
2515 * Shared/mac/ObjCObjectGraphCoders.mm:
2516 (WebKit::ObjCObjectGraphDecoder::baseDecode):
2517 (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
2518 (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
2519 (WebKit::WebContextObjCObjectGraphDecoder::decode):
2520 (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
2521 * Shared/mac/PlatformCertificateInfo.h:
2522 (PlatformCertificateInfo):
2523 * Shared/mac/PlatformCertificateInfo.mm:
2524 (WebKit::PlatformCertificateInfo::decode):
2525 * Shared/mac/RemoteLayerTreeTransaction.h:
2527 (RemoteLayerTreeTransaction):
2528 * Shared/mac/RemoteLayerTreeTransaction.mm:
2529 (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
2530 (WebKit::RemoteLayerTreeTransaction::decode):
2531 * Shared/mac/SandboxExtensionMac.mm:
2532 (WebKit::SandboxExtension::Handle::decode):
2533 (WebKit::SandboxExtension::HandleArray::decode):
2534 * Shared/mac/SecItemRequestData.cpp:
2535 (WebKit::SecItemRequestData::decode):
2536 * Shared/mac/SecItemRequestData.h:
2537 * Shared/mac/SecItemResponseData.cpp:
2538 (WebKit::SecItemResponseData::decode):
2539 * Shared/mac/SecItemResponseData.h:
2540 (SecItemResponseData):
2541 * Shared/mac/WebCoreArgumentCodersMac.mm:
2542 (CoreIPC::::decodePlatformData):
2543 (CoreIPC::::decode):
2544 * UIProcess/WebContextUserMessageCoders.h:
2545 (WebKit::WebContextUserMessageDecoder::decode):
2546 * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
2547 (WebKit::InjectedBundleUserMessageDecoder::decode):
2548 * WebProcess/Plugins/Plugin.cpp:
2549 (WebKit::Plugin::Parameters::decode):
2550 * WebProcess/Plugins/Plugin.h:
2553 2013-02-01 Carlos Garcia Campos <cgarcia@igalia.com>
2555 [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
2556 https://bugs.webkit.org/show_bug.cgi?id=108607
2558 Reviewed by Anders Carlsson.
2560 * Platform/gtk/WorkQueueGtk.cpp:
2561 (WorkQueue::EventSource::executeEventSource): Remove the is valid
2563 (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
2564 reference when a new job is scheduled and unref it when it
2567 2013-02-01 Sheriff Bot <webkit.review.bot@gmail.com>
2569 Unreviewed, rolling out r141319.
2570 http://trac.webkit.org/changeset/141319
2571 https://bugs.webkit.org/show_bug.cgi?id=108629
2573 This patch is causing the UIProcess to hang on GTK port when
2574 loading plugins (Requested by chris-qBT_laptop on #webkit).
2576 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2577 (WebKit::PluginProcessProxy::scanPlugin):
2579 2013-02-01 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
2581 [EFL][WK2] EwkContext should be based on C WK2 API
2582 https://bugs.webkit.org/show_bug.cgi?id=107666
2584 Reviewed by Andreas Kling.
2586 EwkContext should be based on C WK2 API so that API layering is not violated.
2588 * UIProcess/API/efl/EwkView.cpp:
2590 * UIProcess/API/efl/ewk_context.cpp:
2591 (EwkContext::EwkContext):
2592 (EwkContext::create):
2593 (EwkContext::cookieManager):
2594 (EwkContext::ensureFaviconDatabase):
2595 (EwkContext::setFaviconDatabaseDirectoryPath):
2596 (EwkContext::addVisitedLink):
2597 (EwkContext::setCacheModel):
2598 (EwkContext::cacheModel):
2599 (EwkContext::setAdditionalPluginPath):
2600 (EwkContext::clearResourceCache):
2601 * UIProcess/API/efl/ewk_context_private.h:
2603 * UIProcess/API/efl/ewk_view.cpp:
2604 (ewk_view_base_add):
2606 2013-02-01 Christophe Dumez <christophe.dumez@intel.com>
2608 [EFL][WK2] Use C API inside ewk_auth_request
2609 https://bugs.webkit.org/show_bug.cgi?id=107806
2611 Reviewed by Andreas Kling.
2613 Use C API inside ewk_auth_request instead of accessing C++ internal
2614 classes directly, to avoid violating layering.
2616 * UIProcess/API/efl/ewk_auth_request.cpp:
2617 (EwkAuthRequest::EwkAuthRequest):
2618 (EwkAuthRequest::suggestedUsername):
2619 (EwkAuthRequest::realm):
2620 (EwkAuthRequest::host):
2621 (EwkAuthRequest::continueWithoutCredential):
2622 (EwkAuthRequest::authenticate):
2623 (EwkAuthRequest::isRetrying):
2624 (ewk_auth_request_authenticate):
2625 * UIProcess/API/efl/ewk_auth_request_private.h:
2626 (EwkAuthRequest::create):
2628 * UIProcess/efl/PageLoadClientEfl.cpp:
2629 (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
2631 2013-02-01 Seulgi Kim <seulgikim@company100.net>
2633 [Gtk][WK2] Fix build after recent WebKit2 changes
2634 https://bugs.webkit.org/show_bug.cgi?id=108588
2636 Reviewed by Andreas Kling.
2638 Don't remove WorkQueue during execution.
2639 Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2641 * Platform/gtk/WorkQueueGtk.cpp:
2642 (WorkQueue::EventSource::~EventSource):
2643 (WorkQueue::EventSource::executeEventSource):
2644 (WorkQueue::dispatch):
2645 (WorkQueue::dispatchAfterDelay):
2646 (WorkQueue::dispatchOnTermination):
2648 2013-02-01 Alexis Menard <alexis@webkit.org>
2650 Enable unprefixed CSS transitions by default.
2651 https://bugs.webkit.org/show_bug.cgi?id=108216
2653 Reviewed by Dean Jackson.
2655 Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2656 to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to
2657 guard the unprefixing work for CSS Transforms and animations.
2659 * Configurations/FeatureDefines.xcconfig:
2661 2013-02-01 Jae Hyun Park <jae.park@company100.net>
2663 Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
2664 https://bugs.webkit.org/show_bug.cgi?id=108590
2666 Reviewed by Noam Rosenthal.
2668 Sort class declarations in alphabetical order.
2670 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2673 2013-02-01 Gwang Yoon Hwang <ryumiel@company100.net>
2675 [EFL][WK2] MiniBrowser segfaults on loading google.com
2676 https://bugs.webkit.org/show_bug.cgi?id=108597
2678 Reviewed by Andreas Kling.
2680 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2681 (CoreIPC::Connection::processMessage):
2682 oolMessageBody should be properly initialized before it is used.
2684 This patch also adds omitted break statement.
2686 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2688 [Qt] Add MessageFlags.h in Target.pri
2689 https://bugs.webkit.org/show_bug.cgi?id=108583
2691 Reviewed by Kentaro Hara.
2693 Since MessageDecoder and MessageEncoder include MessageFlags.h, it
2694 should be included in Target.pri.
2698 2013-01-31 Jae Hyun Park <jae.park@company100.net>
2700 Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
2701 https://bugs.webkit.org/show_bug.cgi?id=108149
2703 Reviewed by Noam Rosenthal.
2705 This patch moves Coordinated Graphics related code to WebCore. To
2706 implement Threaded Coordinated Graphics, most of Coordianted Graphics
2707 code should be shared. Therefore, they should reside in WebCore instead of
2710 When moving to WebCore, two renamings have been done.
2712 1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
2714 2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
2715 CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
2718 No new tests, covered by existing tests.
2721 * Scripts/webkit2/messages.py:
2722 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2723 * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2724 * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
2726 * UIProcess/API/efl/EwkView.cpp:
2727 * UIProcess/API/efl/EwkView.h:
2728 * UIProcess/API/qt/qquickwebpage.cpp:
2729 * UIProcess/API/qt/raw/qrawwebview.cpp:
2730 * UIProcess/API/qt/raw/qrawwebview_p.h:
2731 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
2732 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2733 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
2734 * UIProcess/efl/PageClientBase.cpp:
2735 * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2736 * UIProcess/qt/QtWebPageSGNode.cpp:
2737 * UIProcess/qt/QtWebPageSGNode.h:
2738 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2739 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2741 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2743 [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
2744 https://bugs.webkit.org/show_bug.cgi?id=108548
2746 Reviewed by Anders Carlsson.
2748 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2749 (CoreIPC::Connection::platformInvalidate):
2750 (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
2751 logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
2752 (CoreIPC::Connection::open):
2753 (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
2754 * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
2755 count when the execution is started and decrease it when the work item is deleted,
2756 following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
2757 (WorkQueue::WorkItemQt::~WorkItemQt):
2758 (WorkQueue::WorkItemQt::execute):
2759 (WorkQueue::dispatch):
2760 (WorkQueue::dispatchAfterDelay):
2761 * UIProcess/WebPageProxy.cpp:
2762 (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
2763 mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
2765 2013-01-31 Changhun Kang <temoochin@company100.net>
2767 Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2768 https://bugs.webkit.org/show_bug.cgi?id=108308
2770 Reviewed by Dimitri Glazkov.
2772 2013-01-31 Anders Carlsson <andersca@apple.com>
2774 StorageManager should be ref-counted
2775 https://bugs.webkit.org/show_bug.cgi?id=108553
2777 Reviewed by Beth Dakin.
2779 It's likely we'd want to have the storage manager outlive its context at times, so make it
2782 * UIProcess/Storage/StorageManager.cpp:
2783 (WebKit::StorageManager::create):
2785 * UIProcess/Storage/StorageManager.h:
2787 * UIProcess/WebContext.cpp:
2788 (WebKit::WebContext::WebContext):
2789 * UIProcess/WebContext.h:
2792 2013-01-31 Anders Carlsson <andersca@apple.com>
2794 WorkQueue should be a ref-counted class
2795 https://bugs.webkit.org/show_bug.cgi?id=108544
2797 Reviewed by Sam Weinig.
2799 Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
2800 implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
2801 and ensures that the WorkQueue object won't go away while dispatched functions are running.
2803 * Platform/CoreIPC/Connection.cpp:
2804 (CoreIPC::Connection::Connection):
2805 (CoreIPC::Connection::~Connection):
2806 (CoreIPC::Connection::addQueueClient):
2807 (CoreIPC::Connection::removeQueueClient):
2808 (CoreIPC::Connection::invalidate):
2809 (CoreIPC::Connection::sendMessage):
2810 (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
2811 (CoreIPC::Connection::connectionDidClose):
2812 * Platform/CoreIPC/Connection.h:
2814 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2815 (CoreIPC::createDataAvailableSource):
2816 (CoreIPC::Connection::open):
2817 (CoreIPC::Connection::initializeDeadNameSource):
2818 * Platform/WorkQueue.cpp:
2819 (WorkQueue::create):
2820 (WorkQueue::WorkQueue):
2821 (WorkQueue::~WorkQueue):
2822 * Platform/WorkQueue.h:
2824 * Platform/mac/WorkQueueMac.cpp:
2825 (WorkQueue::dispatch):
2826 (WorkQueue::dispatchAfterDelay):
2827 * Shared/ChildProcess.cpp:
2828 (WebKit::didCloseOnConnectionWorkQueue):
2829 * UIProcess/Launcher/ProcessLauncher.cpp:
2830 (WebKit::processLauncherWorkQueue):
2831 (WebKit::ProcessLauncher::ProcessLauncher):
2832 * UIProcess/WebProcessProxy.cpp:
2833 (WebKit::pluginWorkQueue):
2834 (WebKit::WebProcessProxy::getPlugins):
2836 2013-01-31 Rafael Brandao <rafael.lobo@openbossa.org>
2838 [Qt][WK2] Fix build after removal of MessageID.h
2839 https://bugs.webkit.org/show_bug.cgi?id=108534
2841 Reviewed by Anders Carlsson.
2843 * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2844 (CoreIPC::MessageInfo::MessageInfo):
2845 (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
2846 (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
2848 (CoreIPC::Connection::processMessage):
2849 (CoreIPC::Connection::sendOutgoingMessage):
2851 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2852 * UIProcess/DrawingAreaProxy.cpp:
2853 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2854 * WebProcess/soup/WebSoupRequestManager.cpp:
2856 2013-01-31 Brady Eidson <beidson@apple.com>
2858 Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
2859 <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
2861 Reviewed by Alexey Proskuryakov.
2863 * WebProcess/Network/WebResourceLoadScheduler.cpp:
2864 (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
2865 NetworkProcess, still add this ResourceLoader to the scheduler's records.
2867 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
2869 Unreviewed trivial Unix build fix.
2871 Use Vector<> instead of Deque<> when iterating
2872 over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
2875 * Platform/CoreIPC/ArgumentDecoder.cpp:
2877 2013-01-30 Brian Weinstein <bweinstein@apple.com>
2879 Add a call to the page UI client to determine if a plug-in should load
2880 https://bugs.webkit.org/show_bug.cgi?id=108407
2881 <rdar://problem/13066332>
2883 Reviewed by Anders Carlsson.
2885 This patch adds a client call to the WKPageUIClient to be called to determine
2886 whether or not a plug-in should load.
2888 * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
2889 * UIProcess/WebPageProxy.cpp:
2890 (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
2891 m_uiClient.shouldInstantiatePlugin.
2892 * UIProcess/WebPageProxy.h:
2893 * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
2894 * UIProcess/WebProcessProxy.cpp:
2895 (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
2896 * UIProcess/WebProcessProxy.h:
2897 * UIProcess/WebUIClient.cpp:
2898 (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
2899 the client function isn't defined, and call the function if it is.
2900 * UIProcess/WebUIClient.h:
2901 * UIProcess/mac/WebInspectorProxyMac.mm:
2902 (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
2904 * WebProcess/WebPage/WebPage.cpp:
2905 (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
2906 (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
2907 send the message to the WebPageProxy, not the WebProcessProxy.
2908 * WebProcess/WebPage/WebPage.h:
2910 2013-01-31 Anders Carlsson <andersca@apple.com>
2912 Use a Vector for IPC attachments
2913 https://bugs.webkit.org/show_bug.cgi?id=108517
2915 Reviewed by Sam Weinig.
2917 We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
2919 * Platform/CoreIPC/ArgumentDecoder.cpp:
2920 (CoreIPC::ArgumentDecoder::create):
2921 (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2922 (CoreIPC::ArgumentDecoder::removeAttachment):
2923 * Platform/CoreIPC/ArgumentDecoder.h:
2925 * Platform/CoreIPC/Connection.h:
2926 * Platform/CoreIPC/MessageDecoder.cpp:
2927 (CoreIPC::MessageDecoder::create):
2928 (CoreIPC::MessageDecoder::MessageDecoder):
2929 * Platform/CoreIPC/MessageDecoder.h:
2931 * Platform/CoreIPC/mac/ConnectionMac.cpp:
2932 (CoreIPC::createMessageDecoder):
2934 2013-01-31 Joseph Pecoraro <pecoraro@apple.com>
2936 Disable ENABLE_FULLSCREEN_API on iOS
2937 https://bugs.webkit.org/show_bug.cgi?id=108250
2939 Reviewed by Benjamin Poulain.
2941 * Configurations/FeatureDefines.xcconfig:
2943 2013-01-31 Enrica Casucci <enrica@apple.com>
2945 WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2946 https://bugs.webkit.org/show_bug.cgi?id=108396.
2947 <rdar://problem/12920461>
2949 Reviewed by Alexey Proskuryakov.
2951 This patch adds new bundle client API to receive notifications
2952 relative the pasteboard activity. There are 2 new API added to
2953 InjectedBundleEditorClient, to receive notification before and
2954 after the pasteboard content is added and one API to provide
2955 additional content to add to the pasteboard.
2956 In order to create content to add to the pasteboard, WKWebArchiveRef
2957 and WKWebArchiveResourcesRef have been added to the set of API level
2959 This work is a joint effort with Sam Weinig who contributed the
2960 support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
2961 files. Sam is the author of the first chunk of changes listed below.
2963 * Shared/API/c/WKBase.h:
2964 * Shared/API/c/WKSharedAPICast.h:
2965 * Shared/API/c/mac/WKWebArchive.cpp: Added.
2966 (WKWebArchiveGetTypeID):
2967 (WKWebArchiveCreate):
2968 (WKWebArchiveCreateWithData):
2969 (WKWebArchiveCreateFromRange):
2970 (WKWebArchiveCopyMainResource):
2971 (WKWebArchiveCopySubresources):
2972 (WKWebArchiveCopySubframeArchives):
2973 (WKWebArchiveCopyData):
2974 * Shared/API/c/mac/WKWebArchive.h: Added.
2975 * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
2976 (WKWebArchiveResourceGetTypeID):
2977 (WKWebArchiveResourceCreate):
2978 (WKWebArchiveResourceCopyData):
2979 (WKWebArchiveResourceCopyURL):
2980 (WKWebArchiveResourceCopyMIMEType):
2981 (WKWebArchiveResourceCopyTextEncoding):
2982 * Shared/API/c/mac/WKWebArchiveResource.h: Added.
2983 * Shared/APIObject.h:
2984 * Shared/WebArchive.cpp: Added.
2985 (WebKit::WebArchive::create):
2986 (WebKit::WebArchive::WebArchive):
2987 (WebKit::WebArchive::~WebArchive):
2988 (WebKit::WebArchive::mainResource):
2989 (WebKit::WebArchive::subresources):
2990 (WebKit::WebArchive::subframeArchives):
2991 (WebKit::releaseCFData):
2992 (WebKit::WebArchive::data):
2993 (WebKit::WebArchive::coreLegacyWebArchive):
2994 * Shared/WebArchive.h: Added.
2995 (WebKit::WebArchive::type):
2996 * Shared/WebArchiveResource.cpp: Added.
2997 (WebKit::WebArchiveResource::create):
2998 (WebKit::WebArchiveResource::WebArchiveResource):
2999 (WebKit::WebArchiveResource::~WebArchiveResource):
3000 (WebKit::releaseCFData):
3001 (WebKit::WebArchiveResource::data):
3002 (WebKit::WebArchiveResource::URL):
3003 (WebKit::WebArchiveResource::MIMEType):
3004 (WebKit::WebArchiveResource::textEncoding):
3005 (WebKit::WebArchiveResource::coreArchiveResource):
3006 * Shared/WebArchiveResource.h: Added.
3007 (WebKit::WebArchiveResource::type):
3008 * WebKit2.xcodeproj/project.pbxproj:
3010 * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
3011 * Shared/APIClientTraits.h:
3012 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
3013 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
3014 (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
3015 (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
3016 (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
3017 * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
3018 * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3019 (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
3020 (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
3021 (WebKit::WebEditorClient::getClientPasteboardDataForRange):
3022 * WebProcess/WebCoreSupport/WebEditorClient.h:
3024 2013-01-31 Anders Carlsson <andersca@apple.com>
3027 https://bugs.webkit.org/show_bug.cgi?id=108516
3029 Reviewed by Sam Weinig.
3031 * Platform/CoreIPC/Connection.cpp:
3032 (CoreIPC::Connection::processIncomingMessage):
3033 (CoreIPC::Connection::sendOutgoingMessages):
3034 (CoreIPC::Connection::dispatchSyncMessage):
3035 (CoreIPC::Connection::dispatchMessage):
3036 * Platform/CoreIPC/Connection.h:
3039 * Platform/CoreIPC/MessageID.h: Removed.
3040 * Platform/CoreIPC/mac/ConnectionMac.cpp:
3041 (CoreIPC::Connection::sendOutgoingMessage):
3042 (CoreIPC::Connection::receiveSourceEventHandler):
3043 * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
3044 * Shared/CoreIPCSupport/WebContextMessageKinds.h:
3045 * UIProcess/DrawingAreaProxy.h:
3047 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3048 * UIProcess/WebApplicationCacheManagerProxy.h:
3049 * UIProcess/WebContext.cpp:
3050 (WebKit::WebContext::WebContext):
3051 (WebKit::WebContext::didReceiveMessage):
3052 (WebKit::WebContext::didReceiveSyncMessage):
3053 * UIProcess/WebCookieManagerProxy.h:
3054 * UIProcess/WebFrameProxy.h:
3056 * UIProcess/WebFullScreenManagerProxy.h:
3058 * UIProcess/WebIconDatabase.h:
3060 * UIProcess/WebPageProxy.cpp:
3061 * UIProcess/WebPageProxy.h:
3063 * WebKit2.xcodeproj/project.pbxproj:
3064 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3065 * WebProcess/FullScreen/WebFullScreenManager.h:
3067 * WebProcess/InjectedBundle/InjectedBundle.cpp:
3068 (WebKit::InjectedBundle::postMessage):
3069 (WebKit::InjectedBundle::postSynchronousMessage):
3070 * WebProcess/InjectedBundle/InjectedBundle.h:
3072 * WebProcess/WebPage/DrawingArea.h:
3074 * WebProcess/WebPage/LayerTreeHost.h:
3076 * WebProcess/WebPage/WebPage.cpp:
3077 * WebProcess/WebPage/WebPage.h:
3079 * WebProcess/WebPage/WebPageGroupProxy.h:
3082 2013-01-31 Mike West <mkwst@chromium.org>
3084 Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
3085 https://bugs.webkit.org/show_bug.cgi?id=108476
3087 Reviewed by Anders Carlsson.
3089 * WebProcess/Plugins/PluginView.cpp:
3090 (WebKit::PluginView::storageBlockingStateChanged):
3091 (WebKit::PluginView::isPrivateBrowsingEnabled):
3093 2013-01-31 Anders Carlsson <andersca@apple.com>
3095 Get rid of IncomingMessage
3096 https://bugs.webkit.org/show_bug.cgi?id=108514
3098 Reviewed by Sam Weinig.
3100 * Platform/CoreIPC/Connection.cpp:
3101 (Connection::SyncMessageState):
3102 (ConnectionAndIncomingMessage):
3103 (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
3104 (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
3105 (CoreIPC::Connection::SyncMessageState::dispatchMessages):
3106 (CoreIPC::Connection::waitForMessage):
3107 (CoreIPC::Connection::processIncomingMessage):
3108 (CoreIPC::Connection::enqueueIncomingMessage):
3109 (CoreIPC::Connection::dispatchMessage):
3110 (CoreIPC::Connection::dispatchOneMessage):
3111 * Platform/CoreIPC/Connection.h:
3114 2013-01-31 Patrick Gansterer <paroga@webkit.org>
3116 Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
3117 https://bugs.webkit.org/show_bug.cgi?id=108439
3119 Reviewed by Brent Fulgham.
3121 PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
3123 * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
3125 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3127 Unreviewed build fix: Remove Web Intents files from
3128 the Qt build system.
3132 2013-01-31 Zan Dobersek <zdobersek@igalia.com>
3134 Unreviewed GTK build fix.
3135 Removing build targets for Web Intents files that were removed in r141448.
3137 * GNUmakefile.list.am:
3139 2013-01-31 Anders Carlsson <andersca@apple.com>
3141 Remove Web Intents code from WebKit2
3142 https://bugs.webkit.org/show_bug.cgi?id=108506
3144 Reviewed by Simon Fraser.
3146 Since nobody builds with Web Intents enabled anymore, and since the code is going to
3147 be removed from WebCore, remove it from WebKit2.
3149 * Shared/API/c/WKBase.h:
3150 * Shared/APIClientTraits.cpp:
3152 * Shared/APIObject.h:
3153 * Shared/IntentData.cpp: Removed.
3154 * Shared/IntentData.h: Removed.
3155 * Shared/IntentServiceInfo.cpp: Removed.
3156 * Shared/IntentServiceInfo.h: Removed.
3157 * Shared/WebIntentServiceInfo.cpp: Removed.
3158 * Shared/WebIntentServiceInfo.h: Removed.
3159 * UIProcess/API/C/WKAPICast.h:
3161 * UIProcess/API/C/WKIntentData.cpp: Removed.
3162 * UIProcess/API/C/WKIntentData.h: Removed.
3163 * UIProcess/API/C/WKIntentServiceInfo.cpp: Removed.
3164 * UIProcess/API/C/WKIntentServiceInfo.h: Removed.
3165 * UIProcess/API/C/WKPage.cpp:
3166 * UIProcess/API/C/WKPage.h:
3167 * UIProcess/WebIntentData.cpp: Removed.
3168 * UIProcess/WebIntentData.h: Removed.
3169 * UIProcess/WebLoaderClient.cpp:
3170 * UIProcess/WebLoaderClient.h:
3173 * UIProcess/WebPageProxy.cpp:
3174 * UIProcess/WebPageProxy.h:
3177 * UIProcess/WebPageProxy.messages.in:
3178 * UIProcess/WebProcessProxy.cpp:
3179 * UIProcess/WebProcessProxy.h:
3181 * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
3183 * WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp: Removed.
3184 * WebProcess/InjectedBundle/API/c/WKBundleIntent.h: Removed.
3185 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Removed.
3186 * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Removed.
3187 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3188 * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
3189 * WebProcess/InjectedBundle/InjectedBundleIntent.cpp: Removed.
3190 * WebProcess/InjectedBundle/InjectedBundleIntent.h: Removed.
3191 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Removed.
3192 * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Removed.
3193 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
3194 * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
3196 (InjectedBundlePageLoaderClient):
3197 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3199 * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3200 (WebFrameLoaderClient):
3201 * WebProcess/WebPage/WebFrame.cpp:
3202 * WebProcess/WebPage/WebFrame.h:
3206 * WebProcess/WebPage/WebPage.cpp:
3207 * WebProcess/WebPage/WebPage.h:
3211 * WebProcess/WebPage/WebPage.messages.in:
3212 * WebProcess/WebProcess.cpp:
3213 * WebProcess/WebProcess.h:
3216 * WebProcess/WebProcess.messages.in:
3218 2013-01-31 Brady Eidson <beidson@apple.com>
3220 Lack of a log level string should not obliterate compiled in logging channel state.
3221 https://bugs.webkit.org/show_bug.cgi?id=108502
3223 Reviewed by Alexey Proskuryakov and Sam Weinig.
3225 * Platform/mac/Logging.mac.mm:
3226 (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone.
3228 2013-01-31 Alexey Proskuryakov <ap@apple.com>
3230 WebProcess sandbox profile overhaul.
3232 Reviewed by Sam Weinig.
3234 Moves some rules together by susbystem for easier maintenance.
3236 Addresses <rdar://problem/9276393>, <rdar://problem/10844321>, <rdar://problem/12408537>,
3237 <rdar://problem/12558524>.
3239 * WebProcess/com.apple.WebProcess.sb.in:
3241 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3243 Unreviewed trivial build fix: Pre C++11 the use of
3244 >> in nested templates is ambiguous in the grammar and
3245 requires the insertion of a space here. Since these files are
3246 not Mac specific we don't require C++11 yet and a space
3249 * Platform/CoreIPC/Connection.h:
3251 * Shared/ChildProcessProxy.h:
3252 (ChildProcessProxy):
3254 2013-01-31 Christophe Dumez <dchris@gmail.com>
3256 [EFL] Disable Web Intents
3257 https://bugs.webkit.org/show_bug.cgi?id=108457
3259 Reviewed by Alexey Proskuryakov.
3261 Remove code related to Web Intents from EFL
3265 * PlatformEfl.cmake:
3266 * UIProcess/API/efl/EWebKit2.h:
3267 * UIProcess/API/efl/EwkViewCallbacks.h:
3268 * UIProcess/API/efl/ewk_intent.cpp: Removed.
3269 * UIProcess/API/efl/ewk_intent.h: Removed.
3270 * UIProcess/API/efl/ewk_intent_private.h: Removed.
3271 * UIProcess/API/efl/ewk_intent_service.cpp: Removed.
3272 * UIProcess/API/efl/ewk_intent_service.h: Removed.
3273 * UIProcess/API/efl/ewk_intent_service_private.h: Removed.
3274 * UIProcess/API/efl/ewk_view.cpp:
3275 * UIProcess/API/efl/ewk_view.h:
3276 * UIProcess/API/efl/tests/resources/intent-request.html: Removed.
3277 * UIProcess/API/efl/tests/resources/intent-service.html: Removed.
3278 * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed.
3279 * UIProcess/efl/PageLoadClientEfl.cpp:
3280 (WebKit::PageLoadClientEfl::PageLoadClientEfl):
3281 * UIProcess/efl/PageLoadClientEfl.h:
3282 (PageLoadClientEfl):
3284 2013-01-31 Alexey Proskuryakov <ap@apple.com>
3286 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3288 Address review comments.
3290 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
3291 * WebProcess/com.apple.WebProcess.sb.in:
3293 2013-01-31 Anders Carlsson <andersca@apple.com>
3295 Stop using OutgoingMessage
3296 https://bugs.webkit.org/show_bug.cgi?id=108495
3298 Reviewed by Sam Weinig.
3300 * Platform/CoreIPC/Connection.cpp:
3301 (CoreIPC::Connection::sendMessage):
3302 (CoreIPC::Connection::sendOutgoingMessages):
3303 * Platform/CoreIPC/Connection.h:
3305 * Shared/ChildProcessProxy.cpp:
3306 (WebKit::ChildProcessProxy::~ChildProcessProxy):
3307 (WebKit::ChildProcessProxy::sendMessage):
3308 (WebKit::ChildProcessProxy::didFinishLaunching):
3309 * Shared/ChildProcessProxy.h:
3310 (ChildProcessProxy):
3312 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3314 [Qt] Make it possible to compile WebKit2 Qt related files without access to internal WK2 C++ API
3315 https://bugs.webkit.org/show_bug.cgi?id=108472
3317 Reviewed by Andreas Kling.
3319 Add a new module to the qmake build system that represents the part of the WebKit2 Qt integration
3320 that doesn't depend on WebKit2 internals.
3322 Changed qwebnavigationhistory.cpp to not use any internal headers and compile it as part of the
3323 internals-free module.
3326 * UIProcess/API/qt/qwebnavigationhistory.cpp:
3328 * WebKit2QML.pri: Added.
3330 2013-01-31 Simon Hausmann <simon.hausmann@digia.com>
3332 Unreviewed trivial build fix: Add missing virtual destructor to
3333 LayerTreeRendererClient. Otherwise the build with -Werror breaks, which
3334 complains (rightly so) that we're deleting a sub-class where the super class
3335 doesn't have a virtual destructor.
3337 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3338 (WebKit::LayerTreeRendererClient::~LayerTreeRendererClient):
3340 2013-01-31 Seulgi Kim <seulgikim@company100.net>
3342 Coordinated Graphics: view the debug border/repaint count of the non composited layer.
3343 https://bugs.webkit.org/show_bug.cgi?id=108401
3345 Reviewed by Noam Rosenthal.
3347 Make non-compositing layer draw debug border and show repaint counter
3348 accroding to settings.
3350 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3351 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3353 2013-01-31 Paweł Forysiuk <tuxator@o2.pl>
3355 InjectedBundle is being built even with --disable-webkit2
3356 https://bugs.webkit.org/show_bug.cgi?id=108364
3358 Reviewed by Gustavo Noronha Silva.
3360 * GNUmakefile.am: Wrap Injected bundle with ENABLE_WEBKIT2 condition
3362 2013-01-31 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com>
3364 [EFL][WK2] RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl should be based on C API
3365 https://bugs.webkit.org/show_bug.cgi?id=107685
3367 Reviewed by Benjamin Poulain.
3369 RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl
3370 should be based on C API so that API layering is not violated.
3372 * UIProcess/API/efl/ewk_context.cpp:
3373 (EwkContext::EwkContext):
3374 * UIProcess/efl/ContextHistoryClientEfl.cpp:
3375 (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
3376 (WebKit::ContextHistoryClientEfl::~ContextHistoryClientEfl):
3377 * UIProcess/efl/ContextHistoryClientEfl.h:
3378 (WebKit::ContextHistoryClientEfl::create):
3379 (ContextHistoryClientEfl):
3380 * UIProcess/efl/DownloadManagerEfl.cpp:
3381 (WebKit::DownloadManagerEfl::DownloadManagerEfl):
3382 (WebKit::DownloadManagerEfl::~DownloadManagerEfl):
3383 * UIProcess/efl/DownloadManagerEfl.h:
3384 (WebKit::DownloadManagerEfl::create):
3385 (DownloadManagerEfl):
3386 * UIProcess/efl/RequestManagerClientEfl.cpp:
3387 (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
3388 * UIProcess/efl/RequestManagerClientEfl.h:
3389 (WebKit::RequestManagerClientEfl::create):
3390 (RequestManagerClientEfl):
3392 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com>
3394 Unreviewed, rolling out r141110.
3395 http://trac.webkit.org/changeset/141110
3396 https://bugs.webkit.org/show_bug.cgi?id=108349
3398 This patch broke WK2-EFL unit tests (Requested by grzegorz on
3401 * UIProcess/efl/TextCheckerEfl.cpp:
3402 * WebProcess/WebCoreSupport/WebEditorClient.h:
3403 * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
3405 2013-01-31 Jae Hyun Park <jae.park@company100.net>
3407 Coordinated Graphics : Remove WebCoordinatedSurface dependency from CoordinatedSurface
3408 https://bugs.webkit.org/show_bug.cgi?id=108259
3410 Reviewed by Noam Rosenthal.
3412 This is a preparation patch for Threaded Coordinated Graphics.
3414 WebCoordinatedSurface dependency should be removed from
3415 CoordinatedSurface so as to share CoordinatedSurface between
3416 WebCoordinatedSurface and CoordinatedSurface of WebKit1, which will be
3417 implemented for Threaded Coordinated Graphics.
3419 This patch introduces CoordinatedSurface::Factory, which is a function
3420 pointer that creates CoordinatedSurfaces. CoordinatedLayerTreeHost sets
3421 static CoordinatedSurface::Factory member variable. Classes that use
3422 CoordinatedSurface, which are CoordinatedImageBacking and UpdateAtlas,
3423 create CoordinatedSurfaces by calling CoordinatedSurface::create, which
3424 will call the function set by CoordinatedLayerTreeHost.
3426 This way, we can remove the WebCoordinatedSurface dependency from
3427 CoordinatedSurface and be able to share the code in Threaded Coordinated
3430 No new tests. No change in behavior.
3433 * Shared/CoordinatedGraphics/CoordinatedSurface.cpp: Added.
3435 (WebKit::CoordinatedSurface::setFactory):
3436 (WebKit::CoordinatedSurface::create):
3437 * Shared/CoordinatedGraphics/CoordinatedSurface.h:
3438 (CoordinatedSurface):
3439 * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
3441 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3442 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3443 (WebKit::CoordinatedLayerTreeHost::createCoordinatedSurface):
3445 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3447 2013-01-30 Tim Horton <timothy_horton@apple.com>
3449 Unreviewed build fix after http://trac.webkit.org/changeset/141372.
3451 * WebProcess/Plugins/PDF/PDFPlugin.mm:
3452 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3454 2013-01-30 Jae Hyun Park <jae.park@company100.net>
3456 Coordinated Graphics : Remove CoordinatedLayerTreeHostProxy dependency from LayerTreeRenderer
3457 https://bugs.webkit.org/show_bug.cgi?id=108164
3459 Reviewed by Benjamin Poulain.
3461 This is a preparation patch for Threaded Coordinated Graphics.
3463 LayerTreeRenderer should not depend on CoordinatedLayerTreeHostProxy so that it
3464 can be moved to WebCore. This patch introduces LayerTreeRendererClient which
3465 is implemented in CoordinatedLayerTreeHostProxy. LayerTreeRenderer uses this
3466 client, instead of using CoordinatedLayerTreeHostProxy directly.
3468 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3469 (CoordinatedLayerTreeHostProxy):
3470 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3471 (WebKit::LayerTreeRenderer::LayerTreeRenderer):
3472 (WebKit::LayerTreeRenderer::animationFrameReady):
3473 (WebKit::LayerTreeRenderer::updateViewport):
3474 (WebKit::LayerTreeRenderer::renderNextFrame):
3475 (WebKit::LayerTreeRenderer::purgeBackingStores):
3476 (WebKit::LayerTreeRenderer::detach):
3477 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3479 (LayerTreeRendererClient):
3480 (LayerTreeRenderer):
3482 2013-01-30 Tim Horton <timothy_horton@apple.com>
3484 PDFPlugin: Should respond to three-finger tap for dictionary definitions
3485 https://bugs.webkit.org/show_bug.cgi?id=108418
3486 <rdar://problem/13121409>
3488 Reviewed by Simon Fraser.
3490 * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add default implementation of performDictionaryLookupAtLocation.
3491 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add getSelectionForWordAtPoint and searchInDictionaryWithSelection.
3492 * WebProcess/Plugins/PDF/PDFPlugin.h: Add performDictionaryLookupAtLocation.
3493 * WebProcess/Plugins/PDF/PDFPlugin.mm: Grab a PDFSelection representing the word encompassing the given point, and
3494 throw up a dictionary popover.
3495 (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
3496 * WebProcess/Plugins/PDF/SimplePDFPlugin.h: Add default implementation of performDictionaryLookupAtLocation.
3497 * WebProcess/Plugins/Plugin.h: Add performDictionaryLookupAtLocation.
3498 * WebProcess/Plugins/PluginProxy.h: Add default implementation of performDictionaryLookupAtLocation.
3499 * WebProcess/Plugins/PluginView.cpp:
3500 (WebKit::PluginView::performDictionaryLookupAtLocation): Forward performDictionaryLookupAtLocation to the plugin.
3501 * WebProcess/Plugins/PluginView.h: Add performDictionaryLookupAtLocation.
3502 * WebProcess/WebPage/mac/WebPageMac.mm:
3503 (WebKit::WebPage::performDictionaryLookupAtLocation): Intercept performDictionaryLookupAtLocation, and give
3504 the main-frame plugin (if it exists) a chance to handle it.
3506 2013-01-30 Gyuyoung Kim <gyuyoung.kim@samsung.com>
3508 [WK2] Cleanup MessageID parameter after r141332
3509 https://bugs.webkit.org/show_bug.cgi?id=108419
3511 Unreviewed to fix build breaks.
3513 r141332 didn't remove MessageID parameter on some features.
3514 (battery, vibration, coordinate graphics, network info and so on)
3516 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3517 (CoordinatedLayerTreeHostProxy):
3518 * UIProcess/DrawingAreaProxyImpl.cpp:
3519 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3520 * UIProcess/WebBatteryManagerProxy.h:
3521 (WebBatteryManagerProxy):
3522 * UIProcess/WebNetworkInfoManagerProxy.h:
3523 (WebNetworkInfoManagerProxy):
3524 * UIProcess/WebPageProxy.cpp:
3525 (WebKit::WebPageProxy::didReceiveMessage):
3526 * UIProcess/WebVibrationProxy.h:
3527 (WebVibrationProxy):
3528 * UIProcess/soup/WebSoupRequestManagerProxy.h:
3529 (WebSoupRequestManagerProxy):
3530 * WebProcess/Battery/WebBatteryManager.h:
3531 (WebBatteryManager):
3532 * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
3533 (WebNetworkInfoManager):
3534 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3535 * WebProcess/WebPage/DrawingAreaImpl.cpp:
3536 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3537 * WebProcess/WebPage/WebPage.cpp:
3538 (WebKit::WebPage::didReceiveMessage):
3539 * WebProcess/soup/WebSoupRequestManager.h:
3540 (WebSoupRequestManager):
3542 2013-01-30 Anders Carlsson <andersca@apple.com>
3544 Remove MessageID from MessageSender
3545 https://bugs.webkit.org/show_bug.cgi?id=108413
3547 Reviewed by Andreas Kling.
3549 This is another step towards eliminating MessageID.
3551 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3552 (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3553 (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3554 * NetworkProcess/NetworkConnectionToWebProcess.h:
3555 (NetworkConnectionToWebProcess):
3556 * NetworkProcess/NetworkProcess.cpp:
3557 (WebKit::NetworkProcess::didReceiveMessage):
3558 (WebKit::NetworkProcess::didReceiveSyncMessage):
3559 * NetworkProcess/NetworkProcess.h:
3561 * Platform/CoreIPC/Connection.cpp:
3562 (CoreIPC::Connection::processIncomingMessage):
3563 (CoreIPC::Connection::dispatchSyncMessage):
3564 (CoreIPC::Connection::dispatchMessage):
3565 * Platform/CoreIPC/Connection.h:
3567 (CoreIPC::Connection::waitForAndDispatchImmediately):
3568 * Platform/CoreIPC/MessageReceiver.h:
3570 (CoreIPC::MessageReceiver::didReceiveSyncMessage):
3571 * Platform/CoreIPC/MessageReceiverMap.cpp:
3572 (CoreIPC::MessageReceiverMap::dispatchMessage):
3573 (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
3574 * Platform/CoreIPC/MessageReceiverMap.h:
3575 (MessageReceiverMap):
3576 * PluginProcess/PluginProcess.cpp:
3577 (WebKit::PluginProcess::didReceiveMessage):
3578 * PluginProcess/PluginProcess.h:
3580 * PluginProcess/WebProcessConnection.cpp:
3581 (WebKit::WebProcessConnection::didReceiveMessage):
3582 (WebKit::WebProcessConnection::didReceiveSyncMessage):
3583 * PluginProcess/WebProcessConnection.h:
3584 (WebProcessConnection):
3585 * Scripts/webkit2/messages.py:
3586 (forward_declarations_and_headers):
3587 (generate_message_handler):
3588 * Scripts/webkit2/messages_unittest.py:
3589 * Shared/Authentication/AuthenticationManager.cpp:
3590 (WebKit::AuthenticationManager::didReceiveMessage):
3591 * Shared/Authentication/AuthenticationManager.h:
3592 (AuthenticationManager):
3593 * Shared/ChildProcessProxy.cpp:
3594 (WebKit::ChildProcessProxy::sendMessage):
3595 * Shared/ChildProcessProxy.h:
3596 (ChildProcessProxy):
3597 (WebKit::ChildProcessProxy::send):
3598 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3599 (CustomProtocolManager):
3600 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3601 (WebKit::CustomProtocolManager::didReceiveMessage):
3602 * Shared/Plugins/NPRemoteObjectMap.cpp:
3603 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3604 * Shared/Plugins/NPRemoteObjectMap.h:
3605 (NPRemoteObjectMap):
3606 * Shared/WebConnection.cpp:
3607 (WebKit::WebConnection::didReceiveMessage):
3608 * Shared/WebConnection.h:
3610 * Shared/mac/SecItemShim.cpp:
3611 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3612 * Shared/mac/SecItemShim.h:
3614 * SharedWorkerProcess/SharedWorkerProcess.cpp:
3615 (WebKit::SharedWorkerProcess::didReceiveMessage):
3616 * SharedWorkerProcess/SharedWorkerProcess.h:
3617 (SharedWorkerProcess):
3618 * UIProcess/Downloads/DownloadProxy.cpp:
3619 (WebKit::DownloadProxy::didReceiveMessage):
3620 (WebKit::DownloadProxy::didReceiveSyncMessage):
3621 * UIProcess/Downloads/DownloadProxy.h:
3623 * UIProcess/DrawingAreaProxy.cpp:
3624 (WebKit::DrawingAreaProxy::didReceiveCoordinatedLayerTreeHostProxyMessage):
3625 * UIProcess/DrawingAreaProxy.h:
3627 * UIProcess/DrawingAreaProxyImpl.cpp:
3628 (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
3629 * UIProcess/DrawingAreaProxyImpl.h:
3630 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3631 (CustomProtocolManagerProxy):
3632 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3633 (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3634 * UIProcess/Network/NetworkProcessProxy.cpp:
3635 (WebKit::NetworkProcessProxy::didReceiveMessage):
3636 (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
3637 * UIProcess/Network/NetworkProcessProxy.h:
3638 (NetworkProcessProxy):
3639 * UIProcess/Notifications/WebNotificationManagerProxy.h:
3640 (WebNotificationManagerProxy):
3641 * UIProcess/Plugins/PluginProcessProxy.cpp:
3642 (WebKit::PluginProcessProxy::didReceiveMessage):
3643 * UIProcess/Plugins/PluginProcessProxy.h:
3644 (PluginProcessProxy):
3645 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3646 (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3647 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3648 (SharedWorkerProcessProxy):
3649 * UIProcess/WebApplicationCacheManagerProxy.cpp:
3650 (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3651 * UIProcess/WebApplicationCacheManagerProxy.h:
3652 (WebApplicationCacheManagerProxy):
3653 * UIProcess/WebContext.cpp:
3654 (WebKit::WebContext::dispatchMessage):
3655 (WebKit::WebContext::dispatchSyncMessage):
3656 (WebKit::WebContext::didReceiveMessage):
3657 (WebKit::WebContext::didReceiveSyncMessage):
3658 * UIProcess/WebContext.h:
3660 * UIProcess/WebCookieManagerProxy.cpp:
3661 (WebKit::WebCookieManagerProxy::didReceiveMessage):
3662 * UIProcess/WebCookieManagerProxy.h:
3663 (WebCookieManagerProxy):
3664 * UIProcess/WebDatabaseManagerProxy.cpp:
3665 (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3666 * UIProcess/WebDatabaseManagerProxy.h:
3667 (WebDatabaseManagerProxy):
3668 * UIProcess/WebFullScreenManagerProxy.cpp:
3669 (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3670 (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3671 * UIProcess/WebFullScreenManagerProxy.h:
3672 (WebFullScreenManagerProxy):
3673 * UIProcess/WebGeolocationManagerProxy.h:
3674 (WebGeolocationManagerProxy):
3675 * UIProcess/WebIconDatabase.h:
3677 * UIProcess/WebKeyValueStorageManagerProxy.h:
3678 (WebKeyValueStorageManagerProxy):
3679 * UIProcess/WebMediaCacheManagerProxy.h:
3680 (WebMediaCacheManagerProxy):
3681 * UIProcess/WebPageProxy.cpp:
3682 (WebKit::WebPageProxy::didReceiveMessage):
3683 (WebKit::WebPageProxy::didReceiveSyncMessage):
3684 * UIProcess/WebPageProxy.h:
3686 * UIProcess/WebProcessProxy.cpp:
3687 (WebKit::WebProcessProxy::didReceiveMessage):
3688 (WebKit::WebProcessProxy::didReceiveSyncMessage):
3689 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3690 * UIProcess/WebProcessProxy.h:
3692 * UIProcess/WebResourceCacheManagerProxy.h:
3693 (WebResourceCacheManagerProxy):
3694 * UIProcess/mac/RemoteLayerTreeHost.h:
3695 (RemoteLayerTreeHost):
3696 * UIProcess/mac/RemoteLayerTreeHost.mm:
3697 (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3698 * UIProcess/mac/SecItemShimProxy.cpp:
3699 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3700 * UIProcess/mac/SecItemShimProxy.h:
3702 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3703 (WebKit::WebApplicationCacheManager::didReceiveMessage):
3704 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3705 (WebApplicationCacheManager):
3706 * WebProcess/Cookies/WebCookieManager.cpp:
3707 (WebKit::WebCookieManager::didReceiveMessage):
3708 * WebProcess/Cookies/WebCookieManager.h:
3710 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3711 (WebKit::WebFullScreenManager::didReceiveMessage):
3712 * WebProcess/FullScreen/WebFullScreenManager.h:
3713 (WebFullScreenManager):
3714 * WebProcess/Geolocation/WebGeolocationManager.h:
3715 (WebGeolocationManager):
3716 * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
3717 (WebIconDatabaseProxy):
3718 * WebProcess/MediaCache/WebMediaCacheManager.h:
3719 (WebMediaCacheManager):
3720 * WebProcess/Network/NetworkProcessConnection.cpp:
3721 (WebKit::NetworkProcessConnection::didReceiveMessage):
3722 (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3723 * WebProcess/Network/NetworkProcessConnection.h:
3724 (NetworkProcessConnection):
3725 * WebProcess/Notifications/WebNotificationManager.h:
3726 (WebNotificationManager):
3727 * WebProcess/Plugins/PluginProcessConnection.cpp:
3728 (WebKit::PluginProcessConnection::didReceiveMessage):
3729 (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3730 * WebProcess/Plugins/PluginProcessConnection.h:
3731 (PluginProcessConnection):
3732 * WebProcess/ResourceCache/WebResourceCacheManager.h:
3733 (WebResourceCacheManager):
3734 * WebProcess/Storage/WebKeyValueStorageManager.h:
3735 (WebKeyValueStorageManager):
3736 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3737 (WebKit::WebDatabaseManager::didReceiveMessage):
3738 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3739 (WebDatabaseManager):
3740 * WebProcess/WebPage/DrawingArea.h:
3742 * WebProcess/WebPage/DrawingAreaImpl.cpp:
3743 (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
3744 * WebProcess/WebPage/DrawingAreaImpl.h:
3746 * WebProcess/WebPage/EventDispatcher.cpp:
3747 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3748 * WebProcess/WebPage/EventDispatcher.h:
3750 * WebProcess/WebPage/LayerTreeHost.h:
3752 * WebProcess/WebPage/WebPage.cpp:
3753 (WebKit::WebPage::didReceiveMessage):
3754 (WebKit::WebPage::didReceiveSyncMessage):
3755 * WebProcess/WebPage/WebPage.h:
3757 * WebProcess/WebPage/WebPageGroupProxy.h:
3758 (WebPageGroupProxy):
3759 * WebProcess/WebProcess.cpp:
3760 (WebKit::WebProcess::didReceiveSyncMessage):
3761 (WebKit::WebProcess::didReceiveMessage):
3762 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3763 * WebProcess/WebProcess.h:
3766 2013-01-30 Tim Horton <timothy_horton@apple.com>
3768 PDFPlugin: Update scrollbars if PDFLayerController's display mode changes
3769 https://bugs.webkit.org/show_bug.cgi?id=108412
3770 <rdar://problem/13002261>
3772 Reviewed by Simon Fraser.
3774 * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add pdfLayerController:didChangeDisplayMode:
3775 * WebProcess/Plugins/PDF/PDFPlugin.h: Add notifyDisplayModeChanged().
3776 * WebProcess/Plugins/PDF/PDFPlugin.mm:
3777 (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeDisplayMode:]): Forward didChangeDisplayMode to notifyDisplayModeChanged.
3778 (WebKit::PDFPlugin::notifyDisplayModeChanged): Update content size and scrollbar size when display mode changes.
3780 2013-01-30 Alexey Proskuryakov <ap@apple.com>
3782 <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3784 Reviewed by Sam Weinig.
3786 * DerivedSources.make: Preprocess a .sb.in file to build the profile.
3788 * NetworkProcess/mac/NetworkProcessMac.mm:
3789 Don't prevent entering the sandbox. Override sandbox path, because service
3790 gets a differnt one by default.
3792 * WebKit2.xcodeproj/project.pbxproj:
3793 * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in: Added.
3795 2013-01-30 Huang Dongsung <luxtella@company100.net>
3797 Coordinated Graphics: LayerTreeRenderer manages the surface of UpdateAtlas.
3798 https://bugs.webkit.org/show_bug.cgi?id=107224
3800 Reviewed by Benjamin Poulain.
3802 Currently, CoordinatedLayerTreeHostProxy manages the surface of UpdateAtlas, but
3803 all other resources are managed by LayerTreeRenderer. This patch matches the
3804 surface of UpdateAtlas to other resources.
3806 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3807 (WebKit::CoordinatedLayerTreeHostProxy::updateTileForLayer):
3808 (WebKit::CoordinatedLayerTreeHostProxy::createUpdateAtlas):
3809 (WebKit::CoordinatedLayerTreeHostProxy::removeUpdateAtlas):
3810 (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3811 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3812 (CoordinatedLayerTreeHostProxy):
3813 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3814 (WebKit::LayerTreeRenderer::updateTile):
3815 (WebKit::LayerTreeRenderer::createUpdateAtlas):
3817 (WebKit::LayerTreeRenderer::removeUpdateAtlas):
3818 (WebKit::LayerTreeRenderer::purgeGLResources):
3819 * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3821 (WebKit::LayerTreeRenderer::TileUpdate::TileUpdate):
3822 (LayerTreeRenderer):
3824 2013-01-30 Anders Carlsson <andersca@apple.com>
3826 Remove MessageID parameter from generated message receivers
3827 https://bugs.webkit.org/show_bug.cgi?id=108379
3829 Reviewed by Beth Dakin.
3831 * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3832 (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3833 (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3834 * NetworkProcess/NetworkConnectionToWebProcess.h:
3835 (NetworkConnectionToWebProcess):
3836 * NetworkProcess/NetworkProcess.cpp:
3837 (WebKit::NetworkProcess::didReceiveMessage):
3838 * NetworkProcess/NetworkProcess.h:
3840 * PluginProcess/PluginControllerProxy.h:
3841 (PluginControllerProxy):
3842 * PluginProcess/PluginProcess.cpp:
3843 (WebKit::PluginProcess::didReceiveMessage):
3844 * PluginProcess/PluginProcess.h:
3846 * PluginProcess/WebProcessConnection.cpp:
3847 (WebKit::WebProcessConnection::didReceiveMessage):
3848 (WebKit::WebProcessConnection::didReceiveSyncMessage):
3849 * PluginProcess/WebProcessConnection.h:
3850 (WebProcessConnection):
3851 * Scripts/webkit2/messages.py:
3852 (generate_message_handler):
3853 * Scripts/webkit2/messages_unittest.py:
3854 * Shared/Authentication/AuthenticationManager.cpp:
3855 (WebKit::AuthenticationManager::didReceiveMessage):
3856 * Shared/Authentication/AuthenticationManager.h:
3857 (AuthenticationManager):
3858 * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3859 (CustomProtocolManager):
3860 * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3861 (WebKit::CustomProtocolManager::didReceiveMessage):
3862 * Shared/Plugins/NPObjectMessageReceiver.h:
3863 (NPObjectMessageReceiver):
3864 * Shared/Plugins/NPRemoteObjectMap.cpp:
3865 (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3866 * Shared/WebConnection.cpp:
3867 (WebKit::WebConnection::didReceiveMessage):
3868 * Shared/WebConnection.h:
3870 * Shared/mac/SecItemShim.cpp:
3871 (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3872 * Shared/mac/SecItemShim.h:
3874 * SharedWorkerProcess/SharedWorkerProcess.cpp:
3875 (WebKit::SharedWorkerProcess::didReceiveMessage):
3876 * SharedWorkerProcess/SharedWorkerProcess.h:
3877 (SharedWorkerProcess):
3878 * UIProcess/Downloads/DownloadProxy.cpp:
3879 (WebKit::DownloadProxy::didReceiveMessage):
3880 (WebKit::DownloadProxy::didReceiveSyncMessage):
3881 * UIProcess/Downloads/DownloadProxy.h:
3883 * UIProcess/DrawingAreaProxy.h:
3885 * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3886 (CustomProtocolManagerProxy):
3887 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3888 (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3889 * UIProcess/Network/NetworkProcessProxy.cpp:
3890 (WebKit::NetworkProcessProxy::didReceiveMessage):
3891 * UIProcess/Network/NetworkProcessProxy.h:
3892 (NetworkProcessProxy):
3893 * UIProcess/Plugins/PluginProcessProxy.cpp:
3894 (WebKit::PluginProcessProxy::didReceiveMessage):
3895 * UIProcess/Plugins/PluginProcessProxy.h:
3896 (PluginProcessProxy):
3897 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3898 (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3899 * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3900 (SharedWorkerProcessProxy):
3901 * UIProcess/WebApplicationCacheManagerProxy.cpp:
3902 (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3903 * UIProcess/WebApplicationCacheManagerProxy.h:
3904 (WebApplicationCacheManagerProxy):
3905 * UIProcess/WebContext.cpp:
3906 (WebKit::WebContext::didReceiveMessage):
3907 (WebKit::WebContext::didReceiveSyncMessage):
3908 * UIProcess/WebContext.h:
3910 * UIProcess/WebCookieManagerProxy.cpp:
3911 (WebKit::WebCookieManagerProxy::didReceiveMessage):
3912 * UIProcess/WebCookieManagerProxy.h:
3913 (WebCookieManagerProxy):
3914 * UIProcess/WebDatabaseManagerProxy.cpp:
3915 (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3916 * UIProcess/WebDatabaseManagerProxy.h:
3917 (WebDatabaseManagerProxy):
3918 * UIProcess/WebFullScreenManagerProxy.cpp:
3919 (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3920 (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3921 * UIProcess/WebFullScreenManagerProxy.h:
3922 (WebFullScreenManagerProxy):
3923 * UIProcess/WebInspectorProxy.h:
3924 (WebInspectorProxy):
3925 * UIProcess/WebPageProxy.cpp:
3926 (WebKit::WebPageProxy::didReceiveMessage):
3927 (WebKit::WebPageProxy::didReceiveSyncMessage):
3928 * UIProcess/WebPageProxy.h:
3930 * UIProcess/WebProcessProxy.cpp:
3931 (WebKit::WebProcessProxy::didReceiveMessage):
3932 (WebKit::WebProcessProxy::didReceiveSyncMessage):
3933 (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3934 * UIProcess/WebProcessProxy.h:
3936 * UIProcess/mac/RemoteLayerTreeHost.h:
3937 (RemoteLayerTreeHost):
3938 * UIProcess/mac/RemoteLayerTreeHost.mm:
3939 (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3940 * UIProcess/mac/SecItemShimProxy.cpp:
3941 (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3942 * UIProcess/mac/SecItemShimProxy.h:
3944 * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3945 (WebKit::WebApplicationCacheManager::didReceiveMessage):
3946 * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3947 (WebApplicationCacheManager):
3948 * WebProcess/Cookies/WebCookieManager.cpp:
3949 (WebKit::WebCookieManager::didReceiveMessage):
3950 * WebProcess/Cookies/WebCookieManager.h:
3952 * WebProcess/FullScreen/WebFullScreenManager.cpp:
3953 (WebKit::WebFullScreenManager::didReceiveMessage):
3954 * WebProcess/FullScreen/WebFullScreenManager.h:
3955 (WebFullScreenManager):
3956 * WebProcess/Network/NetworkProcessConnection.cpp:
3957 (WebKit::NetworkProcessConnection::didReceiveMessage):
3958 (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3959 * WebProcess/Network/WebResourceLoader.h:
3960 (WebResourceLoader):
3961 * WebProcess/Plugins/PluginProcessConnection.cpp:
3962 (WebKit::PluginProcessConnection::didReceiveMessage):
3963 (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3964 * WebProcess/Plugins/PluginProcessConnection.h:
3965 (PluginProcessConnection):
3966 * WebProcess/Plugins/PluginProxy.h:
3968 * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3969 (WebKit::WebDatabaseManager::didReceiveMessage):
3970 * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3971 (WebDatabaseManager):
3972 * WebProcess/WebPage/DrawingArea.h:
3974 * WebProcess/WebPage/EventDispatcher.cpp:
3975 (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3976 * WebProcess/WebPage/EventDispatcher.h:
3978 * WebProcess/WebPage/WebInspector.h:
3980 * WebProcess/WebPage/WebPage.cpp:
3981 (WebKit::WebPage::didReceiveMessage):
3982 (WebKit::WebPage::didReceiveSyncMessage):
3983 * WebProcess/WebPage/WebPage.h:
3985 * WebProcess/WebProcess.cpp:
3986 (WebKit::WebProcess::didReceiveMessage):
3987 (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3988 * WebProcess/WebProcess.h:
3991 2013-01-30 Christophe Dumez <dchris@gmail.com>
3993 [WK2][UNIX] g_spawn_sync() generates warning in PluginProcessProxy::scanPlugin()
3994 https://bugs.webkit.org/show_bug.cgi?id=108371
3996 Reviewed by Martin Robinson.
3998 g_spawn_sync() was sometimes displaying a warning about the SIGCHLD
3999 signal disposition not being set to SIG_DFL, despite the fix in r133755.
4000 The reason was that the code was only setting the disposition to SIG_DFL
4001 if the previous disposition was SIG_IGN.
4003 In this patch, we set the SIGCHLD signal disposition to SIG_DFL, no
4004 matter what its previous disposition was. Also, the signal disposition
4005 is now restored to its previous state after the call to g_spawn_sync()
4006 to avoid side effects. Finally, we now use SIGCHLD instead of SIDCLD
4007 since this is the more compatible POSIX name.
4009 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
4010 (WebKit::spawnProcessSync):
4012 (WebKit::PluginProcessProxy::scanPlugin):
4014 2013-01-30 Huang Dongsung <luxtella@company100.net>
4016 [EFL][Qt][WK2] We should consider a page scale factor in WebCore instead of our own scale factor.
4017 https://bugs.webkit.org/show_bug.cgi?id=105978
4019 Reviewed by Simon Fraser.
4021 Currently, PageViewportController sends a page scale factor to Coordinated
4022 Graphics System regardless of the page scale factor in WebCore. This patch makes
4023 Coordinated Graphics System use the page scale factor in WebCore to match other
4026 When it is needed to change a page scale, PageViewportController sends the scale
4027 to Page in Web Process via WebPageProxy::scalePage. When the page scale in
4028 WebCore is changed, CoordinatedGraphicsLayer gets notified via
4029 deviceOrPageScaleFactorChanged callback. CoordinatedGraphicsLayer uses the page
4030 scale factor like previous our own scale factor.
4032 We set true to applyDeviceScaleFactorInCompositor and
4033 ApplyPageScaleFactorInCompositor in Settings like chromium, because
4034 TiledBackingStore that is a backing store of each GraphicsLayer applies the
4035 scale to our raster graphics engines instead of applying the scale to the local
4036 transform of each render object.
4038 Thank Kenneth Rohde Christiansen for implementing the base patch of this patch.
4040 No new tests. Covered by existing tests.
4042 * UIProcess/API/qt/qquickwebview.cpp:
4043 (QQuickWebViewLegacyPrivate::updateViewportSize):
4044 * UIProcess/API/qt/raw/qrawwebview.cpp:
4045 (QRawWebView::setSize):
4046 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
4047 (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
4048 (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
4049 Does not receive a pageScaleFactor argument because
4050 PageViewportController sends a page scale factor to Page.
4051 However, this method still receives a scroll position because we
4052 enable delegates scrolling.
4053 * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
4054 (CoordinatedLayerTreeHostProxy):
4055 * UIProcess/DrawingAreaProxy.h:
4056 (WebKit::DrawingAreaProxy::setVisibleContentsRect):
4057 * UIProcess/DrawingAreaProxyImpl.cpp:
4058 (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
4059 * UIProcess/DrawingAreaProxyImpl.h:
4060 * UIProcess/PageViewportController.cpp:
4061 (WebKit::PageViewportController::didRenderFrame):
4062 (WebKit::PageViewportController::didChangeContentsVisibility):
4063 (WebKit::PageViewportController::syncVisibleContents):
4064 (WebKit::PageViewportController::applyScaleAfterRenderingContents):
4065 (WebKit::PageViewportController::applyPositionAfterRenderingContents):
4066 * UIProcess/efl/PageClientLegacyImpl.cpp:
4067 (WebKit::PageClientLegacyImpl::updateViewportSize):
4068 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
4069 (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
4070 (WebCore::CoordinatedGraphicsLayer::deviceOrPageScaleFactorChanged):
4071 (WebCore::CoordinatedGraphicsLayer::effectiveContentsScale):
4072 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
4073 (CoordinatedGraphicsLayer):
4074 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
4075 (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
4076 (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
4077 (WebKit::CoordinatedLayerTreeHost::deviceScaleFactor):
4079 (WebKit::CoordinatedLayerTreeHost::pageScaleFactor):
4080 (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
4081 (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
4082 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
4083 (CoordinatedLayerTreeHost):
4084 * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
4085 * WebProcess/WebPage/WebPage.cpp:
4086 (WebKit::WebPage::setUseFixedLayout):
4088 2013-01-30 Zoltan Arvai <zarvai@inf.u-szeged.hu>
4090 [Qt] Fix Win build after r141177
4091 https://bugs.webkit.org/show_bug.cgi?id=108325
4093 Reviewed by Anders Carlsson.
4095 * Platform/CoreIPC/win/ConnectionWin.cpp:
4096 (CoreIPC::Connection::readEventHandler):
4097 (CoreIPC::Connection::sendOutgoingMessage):
4099 2013-01-30 Thiago Marcos P. Santos <thiago.santos@intel.com>
4101 REGRESSION (r141051): Broke plugin support on non-Mac WebKit2 Ports
4102 https://bugs.webkit.org/show_bug.cgi?id=108182
4104 Reviewed by Sam Weinig.
4106 Send the plugin path to the PluginProcess as a parameter.
4108 * PluginProcess/qt/PluginProcessMainQt.cpp:
4109 (WebKit::PluginProcessMain):
4110 * PluginProcess/unix/PluginProcessMainUnix.cpp:
4111 (WebKit::PluginProcessMainUnix):
4112 * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
4113 (WebKit::ProcessLauncher::launchProcess):
4114 * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
4115 (WebKit::ProcessLauncher::launchProcess):
4116 * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
4117 (WebKit::ProcessLauncher::launchProcess):
4118 * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
4119 (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
4120 * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
4121 (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
4123 2013-01-30 Christophe Dumez <christophe.dumez@intel.com>
4125 [EFL][WK2] Use C API inside ewk_window_features
4126 https://bugs.webkit.org/show_bug.cgi?id=107924
4128 Reviewed by Sam Weinig.
4130 Use C API inside ewk_window_features instead of accessing
4131 internal C++ classes directly, to avoid violating API
4134 * UIProcess/API/efl/EwkView.cpp:
4135 (EwkView::createNewPage):
4136 * UIProcess/API/efl/EwkView.h:
4138 * UIProcess/API/efl/ewk_window_features.cpp:
4139 (EwkWindowFeatures::EwkWindowFeatures):
4140 (getWindowFeatureValue):
4141 (EwkWindowFeatures::getWindowFeatureBoolValue):
4142 (EwkWindowFeatures::getWindowFeatureDoubleValue):
4143 (ewk_window_features_geometry_get):
4144 * UIProcess/API/efl/ewk_window_features_private.h:
4145 (EwkWindowFeatures::create):
4146 (EwkWindowFeatures::geometry):
4147 (EwkWindowFeatures::setGeometry):
4148 (EwkWindowFeatures):