Unreviewed, fix build failure
[WebKit-https.git] / Source / WebKit / ChangeLog-2013-10-13
1 2013-10-12  Alexey Proskuryakov  <ap@apple.com>
2
3         Add a feature define for SubtleCrypto
4         https://bugs.webkit.org/show_bug.cgi?id=122683
5
6         Reviewed by Anders Carlsson.
7
8         * Configurations/FeatureDefines.xcconfig:
9
10 2013-09-27  Jessica Pease  <jessica_n_pease@apple.com>
11
12         Replace static cast ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
13         https://bugs.webkit.org/show_bug.cgi?id=120803
14
15         Reviewed by Andreas Kling.
16
17         No new tests because we're just changing assertions.
18
19         * Shared/Plugins/NPObjectProxy.h:
20         (WebKit::NPObjectProxy::toNPObjectProxy):
21         * WebProcess/Plugins/Netscape/NPJSObject.h:
22         (WebKit::NPJSObject::toNPJSObject):
23
24 2013-09-06  Jessica Pease  <jessica_n_pease@apple.com>
25
26         Replace bounds checking ASSERTs with ASSERT_WITH_SECURITY_IMPLICATION
27         https://bugs.webkit.org/show_bug.cgi?id=120893
28
29         Reviewed by Darin Adler.
30
31         * Shared/Plugins/PluginQuirks.h:
32         (WebKit::PluginQuirks::add):
33
34 2013-10-12  Darin Adler  <darin@apple.com>
35
36         Use unique_ptr instead of delete in a few places
37         https://bugs.webkit.org/show_bug.cgi?id=122639
38
39         Reviewed by Anders Carlsson.
40
41         * NetworkProcess/mac/RemoteNetworkingContext.mm:
42         (WebKit::privateBrowsingStorageSession): Use NeverDestroyed and unique_ptr.
43         (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession): Use std::move.
44
45         * Shared/Downloads/DownloadManager.cpp:
46         (WebKit::DownloadManager::startDownload): Use std::move. Also add instead of set.
47         (WebKit::DownloadManager::convertHandleToDownload): Ditto.
48         (WebKit::DownloadManager::downloadFinished): Don't delete.
49
50         * Shared/Downloads/DownloadManager.h: Changed m_downloads to hold unique_ptr instead
51         of raw pointers.
52
53         * Shared/SandboxExtension.h: Use std::unique_ptr for m_data.
54
55         * Shared/mac/SandboxExtensionMac.mm:
56         (WebKit::SandboxExtension::HandleArray::HandleArray): Don't initialize m_data to 0.
57         (WebKit::SandboxExtension::HandleArray::~HandleArray): Don't delete m_data.
58         (WebKit::SandboxExtension::HandleArray::allocate): Use make_unique to allocate m_data.
59
60         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
61         (WebKit::privateSession): Use NeverDestroyed and unique_ptr.
62         (WebKit::identifierBase): Use NeverDestroyed.
63         (WebKit::WebFrameNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
64         Updated to use the above.
65         (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession): Ditto.
66         (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
67         (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts): Ditto.
68         (WebKit::WebFrameNetworkingContext::storageSession): Ditto.
69
70         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
71         (WebKit::privateSession):
72         (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
73         (WebKit::WebFrameNetworkingContext::destroyPrivateBrowsingSession):
74         (WebKit::WebFrameNetworkingContext::storageSession):
75         (WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
76         More of the same.
77
78 2013-10-11  Timothy Hatcher  <timothy@apple.com>
79
80         Remove preference support for picking the old Web Inspector.
81         https://bugs.webkit.org/show_bug.cgi?id=122655
82
83         Reviewed by Alexey Proskuryakov.
84
85         * Shared/WebPreferencesStore.h:
86         * UIProcess/API/C/WKPreferences.cpp:
87         * UIProcess/API/C/WKPreferencesPrivate.h:
88         * UIProcess/mac/WebInspectorProxyMac.mm:
89         (WebKit::WebInspectorProxy::inspectorPageURL):
90         (WebKit::WebInspectorProxy::inspectorBaseURL):
91         * WebProcess/WebPage/WebInspector.cpp:
92         (WebKit::WebInspector::WebInspector):
93         * WebProcess/WebPage/WebInspector.h:
94         * WebProcess/WebPage/mac/WebInspectorMac.mm:
95         (WebKit::WebInspector::localizedStringsURL):
96         * WebProcess/WebPage/mac/WebPageMac.mm:
97         (WebKit::WebPage::platformPreferencesDidChange):
98
99 2013-10-11  Brady Eidson  <beidson@apple.com>
100
101         Lay the groundwork for a multi-process aware Indexed DB implementation in WebKit2.
102         https://bugs.webkit.org/show_bug.cgi?id=122675
103
104         Reviewed by Alexey Proskuryakov.
105
106         * CMakeLists.txt:
107         * GNUmakefile.am:
108         * GNUmakefile.list.am:
109         * WebKit2.xcodeproj/project.pbxproj:
110
111         * WebProcess/IndexedDB/WebIDBFactoryBackend.cpp: Added.
112         (WebKit::WebIDBFactoryBackend::WebIDBFactoryBackend):
113         (WebKit::WebIDBFactoryBackend::~WebIDBFactoryBackend):
114         (WebKit::WebIDBFactoryBackend::getDatabaseNames):
115         (WebKit::WebIDBFactoryBackend::open):
116         (WebKit::WebIDBFactoryBackend::deleteDatabase):
117         * WebProcess/IndexedDB/WebIDBFactoryBackend.h: Added.
118         (WebKit::WebIDBFactoryBackend::create):
119
120         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
121         (WebKit::WebPlatformStrategies::createIDBFactoryBackend): Return a WebIDBFactoryBackend.
122
123 2013-10-11  Anders Carlsson  <andersca@apple.com>
124
125         Remove ENABLE(GESTURE_EVENTS) from WebKit2
126         https://bugs.webkit.org/show_bug.cgi?id=122673
127
128         Reviewed by Ryosuke Niwa.
129
130         * Shared/WebEvent.h:
131         * Shared/WebEventConversion.cpp:
132         * Shared/WebEventConversion.h:
133         * Shared/WebGestureEvent.cpp: Removed.
134         * Shared/mac/WebEventFactory.h:
135         * Shared/mac/WebEventFactory.mm:
136         * UIProcess/API/mac/PageClientImpl.h:
137         * UIProcess/API/mac/PageClientImpl.mm:
138         * UIProcess/API/mac/WKView.mm:
139         (-[WKView viewDidMoveToWindow]):
140         * UIProcess/PageClient.h:
141         * UIProcess/WebPageProxy.cpp:
142         (WebKit::WebPageProxy::didReceiveEvent):
143         (WebKit::WebPageProxy::resetStateAfterProcessExited):
144         * UIProcess/WebPageProxy.h:
145         * WebKit2.xcodeproj/project.pbxproj:
146         * WebProcess/WebPage/EventDispatcher.cpp:
147         * WebProcess/WebPage/EventDispatcher.h:
148         * WebProcess/WebPage/EventDispatcher.messages.in:
149         * WebProcess/WebPage/WebPage.cpp:
150         * WebProcess/WebPage/WebPage.h:
151
152 2013-10-11  Adam Roben  <aroben@webkit.org>
153
154         Confusing CGImageRef memory management in ImageBuffer::copyImage
155         https://bugs.webkit.org/show_bug.cgi?id=122605
156
157         Reviewed by Simon Fraser.
158
159         * Shared/cg/ShareableBitmapCG.cpp:
160         (WebKit::ShareableBitmap::createImage): BitmapImage::create now
161         retains the passed-in CGImage, so we don't need to dance around it
162         anymore. Also changed to use nullptr instead of 0 while I was in here.
163
164 2013-10-10  Byungwoo Lee  <bw80.lee@samsung.com>
165
166         [EFL][WK2] Separate dispatch context from WorkQueue.
167         https://bugs.webkit.org/show_bug.cgi?id=115332
168
169         Reviewed by Anders Carlsson.
170
171         Refactor WorkQueue to prevent dangling workqueue access.
172
173         Previously, the WorkQueue class had all context about dispatch.
174         WorkQueue had dispatch item queue and socket event handler,
175         and those were accessed on the work queue thread through WorkQueue
176         instance.
177
178         With reference countable WorkQueue concept, this implementation
179         complicates handling workqueue ref-counting and causes dangling
180         workqueue access problem.
181
182         To make it easy to handle WorkQueue reference count and to prevent
183         dangling access problem, DispatchQueue class is added to handle
184         dispatch tasks, and the WorkQueue instance and DispatchQueue thread
185         will have the reference count of the DispatchQueue instance to prevent
186         dangling access.
187
188         * Platform/WorkQueue.h:
189         * Platform/efl/DispatchQueueEfl.cpp: Added.
190         (DispatchQueue::ThreadContext::start):
191         (DispatchQueue::ThreadContext::ThreadContext):
192         (DispatchQueue::ThreadContext::function):
193         (DispatchQueue::create):
194         (DispatchQueue::DispatchQueue):
195         (DispatchQueue::~DispatchQueue):
196         (DispatchQueue::dispatch):
197         (DispatchQueue::stopThread):
198         (DispatchQueue::setSocketEventHandler):
199         (DispatchQueue::clearSocketEventHandler):
200         (DispatchQueue::performWork):
201         (DispatchQueue::performTimerWork):
202         (DispatchQueue::performFileDescriptorWork):
203         (DispatchQueue::insertTimerWorkItem):
204         (DispatchQueue::dispatchQueueThread):
205         (DispatchQueue::wakeUpThread):
206         (DispatchQueue::getNextTimeOut):
207         * Platform/efl/DispatchQueueEfl.h: Added.
208         * Platform/efl/DispatchQueueWorkItemEfl.h: Added.
209         (WorkItem::create):
210         (WorkItem::dispatch):
211         (WorkItem::WorkItem):
212         (TimerWorkItem::create):
213         (TimerWorkItem::expirationTimeSeconds):
214         (TimerWorkItem::hasExpired):
215         (TimerWorkItem::TimerWorkItem):
216         * Platform/efl/WorkQueueEfl.cpp:
217         (WorkQueue::platformInitialize):
218         (WorkQueue::platformInvalidate):
219         (WorkQueue::registerSocketEventHandler):
220         (WorkQueue::unregisterSocketEventHandler):
221         (WorkQueue::dispatch):
222         (WorkQueue::dispatchAfterDelay):
223         * PlatformEfl.cmake:
224
225 2013-10-10  Csaba Osztrogonác  <ossy@webkit.org>
226
227         [WK2][Soup] Add platform specific stubs for NetworkProcess
228         https://bugs.webkit.org/show_bug.cgi?id=110115
229
230         Reviewed by Carlos Garcia Campos.
231
232         Original patch by Balazs Kelemen <kbalazs@webkit.org> and Kwang Yul Seo  <skyul@company100.net>.
233
234         * CMakeLists.txt:
235         * GNUmakefile.am:
236         * GNUmakefile.list.am:
237         * NetworkProcess/gtk/NetworkProcessSoup.cpp: Added.
238         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
239         (WebKit::NetworkProcess::platformSetCacheModel):
240         (WebKit::NetworkProcess::allowSpecificHTTPSCertificateForHost):
241         Stubs.
242         (WebKit::NetworkProcess::clearCacheForAllOrigins):
243         (WebKit::NetworkProcess::platformTerminate):
244         * NetworkProcess/soup/NetworkResourceLoadSchedulerSoup.cpp: Added.
245         (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost):
246         Added platform default based on the comment in ResourceRequestSoup.cpp.
247         * UIProcess/Network/soup/NetworkProcessProxySoup.cpp: Added.
248         (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
249         Stub.
250         * UIProcess/soup/WebContextSoup.cpp: Added.
251         (WebKit::WebContext::platformInitializeNetworkProcess):
252         Stub.
253
254 2013-10-10  Beth Dakin  <bdakin@apple.com>
255
256         Scrollbars are updated on the main thread rather than the scrolling thread 
257         (causing scroll bars not to appear/update quickly in some cases)
258         https://bugs.webkit.org/show_bug.cgi?id=122585
259         -and corresponding-
260         <rdar://problem/10710775>
261
262         Reviewed by Simon Fraser.
263
264         New pure virtual function.
265         * WebProcess/Plugins/PDF/PDFPlugin.h:
266
267 2013-10-10  Csaba Osztrogonác  <ossy@webkit.org>
268
269         [WK2] Port RemoteNetworkingContext for Soup
270         https://bugs.webkit.org/show_bug.cgi?id=110097
271
272         Reviewed by Darin Adler.
273
274         Original patch by Balazs Kelemen <kbalazs@webkit.org> and Kwang Yul Seo <skyul@company100.net>.
275
276         This should be a cross-platform interface so I lifted the header from
277         the mac directory. Removed mac specific arguments from constructor,
278         added setters instead. Moved platform things behind ifdefs and added
279         Soup specific bits.
280
281         The following things were fixed by Csaba Osztrogonác:
282         - solved conflicts in project.pbxproj
283         - removed the change in the non-existent SyncNetworkResourceLoader.cpp
284         - marked RemoteNetworkingContext class as FINAL
285         - reordered the members for platform specific initialization
286         - added initializers to m_needsSiteSpecificQuirks and m_localFileContentSniffingEnabled members on PLATFORM(MAC)
287
288         * NetworkProcess/NetworkResourceLoader.cpp:
289         (WebKit::NetworkResourceLoader::start):
290         * NetworkProcess/RemoteNetworkingContext.h: Renamed from Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.h.
291         (WebKit::RemoteNetworkingContext::create):
292         (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
293         (WebKit::RemoteNetworkingContext::setNeedsSiteSpecificQuirks):
294         (WebKit::RemoteNetworkingContext::setLocalFileContentSniffingEnabled):
295         * NetworkProcess/mac/RemoteNetworkingContext.mm:
296         * NetworkProcess/soup/RemoteNetworkingContextSoup.cpp: Added.
297         (WebKit::RemoteNetworkingContext::~RemoteNetworkingContext):
298         (WebKit::RemoteNetworkingContext::isValid):
299         (WebKit::RemoteNetworkingContext::initiatingPageID):
300         (WebKit::RemoteNetworkingContext::setPrivateBrowsingStorageSessionIdentifierBase):
301         (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
302         (WebKit::RemoteNetworkingContext::destroyPrivateBrowsingSession):
303         (WebKit::RemoteNetworkingContext::storageSession):
304         (WebKit::RemoteNetworkingContext::privateBrowsingSession):
305         * WebKit2.xcodeproj/project.pbxproj:
306
307 2013-10-10  Sergio Correia  <sergio.correia@openbossa.org>
308
309         Convert some OwnPtr/PassOwnPtr in CoordinatedGraphics code to std::unique_ptr's
310         https://bugs.webkit.org/show_bug.cgi?id=122614
311
312         Reviewed by Anders Carlsson.
313
314         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
315         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
316         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
317
318 2013-10-10  Csaba Osztrogonác  <ossy@webkit.org>
319
320         generate-message-receiver.py can't handle nested #ifs
321         https://bugs.webkit.org/show_bug.cgi?id=121877
322
323         Reviewed by Alexey Proskuryakov.
324
325         * Scripts/webkit2/parser.py:
326         (parse): Exit early until proper fix instead of generating buggy output.
327
328 2013-10-10  Mark Rowe  <mrowe@apple.com>
329
330         <rdar://problem/13341666> WebKit should always build against an SDK.
331
332         Have all projects default to building against the OS X Internal SDK for the Production
333         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
334         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
335
336         Reviewed by Dan Bernstein.
337
338         * Configurations/Base.xcconfig:
339         * Configurations/DebugRelease.xcconfig:
340
341 2013-10-10  Ralph Thomas  <ralpht@gmail.com>
342
343         [CoordinatedGraphics][CSS Shaders] marshal color and matrix custom filter parameters
344         https://bugs.webkit.org/show_bug.cgi?id=117904
345
346         Correctly encode and decode the "matrix" and "color" custom filter parameter types.
347         No port currently enables this code, however with this change the relevant layout tests now pass when enabled in EFL.
348         Reviewed by Noam Rosenthal.
349
350         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
351         (CoreIPC::::encode):
352         (CoreIPC::::decode):
353
354 2013-10-10  Mark Rowe  <mrowe@apple.com>
355
356         <rdar://problem/13871522> WebKit2 fails to build with C++ 98 conformance changes
357
358         Reviewed by Andreas Kling.
359
360         * Shared/mac/SandboxExtensionMac.mm:
361         (WebKit::resolveSymlinksInPath): strrchr returns a const char* when passed one.
362         Update the type of the local variable to accommodate that.
363
364 2013-10-10  Csaba Osztrogonác  <ossy@webkit.org>
365
366         Buildfix for non Mac platforms with enabled NetworkProcess
367         https://bugs.webkit.org/show_bug.cgi?id=121793
368
369         Reviewed by Anders Carlsson.
370
371         * Shared/ShareableResource.cpp:
372         * Shared/ShareableResource.h:
373         * Shared/WebResourceBuffer.cpp:
374         * Shared/WebResourceBuffer.h:
375         * WebKit2Prefix.h:
376         * WebProcess/Network/NetworkProcessConnection.cpp:
377         * WebProcess/Network/NetworkProcessConnection.h:
378         * WebProcess/Network/NetworkProcessConnection.messages.in:
379         * WebProcess/Network/WebResourceLoader.cpp:
380         * WebProcess/Network/WebResourceLoader.h:
381         * WebProcess/Network/WebResourceLoader.messages.in:
382
383 2013-10-09  Sergio Correia  <sergio.correia@openbossa.org>
384
385         Set view to active in ViewClientEfl after WebProcess has relaunched
386         https://bugs.webkit.org/show_bug.cgi?id=118650
387
388         Reviewed by Noam Rosenthal.
389
390         Once WebProcess relaunches, the underlying scene from the view is recreated
391         and is not active by default, which means it will be in `background'. In
392         practice, from that point on we are going to get a blank screen, unless we
393         set it to active.
394
395         In the normal flow, the view is set to active during its initialization; this
396         patch sets it to active also in ViewClientEfl, in the webProcessDidRelaunch
397         callback.
398
399         * UIProcess/efl/ViewClientEfl.cpp:
400         (WebKit::ViewClientEfl::webProcessDidRelaunch): Added WKViewSetIsActive call.
401
402 2013-10-09  Commit Queue  <commit-queue@webkit.org>
403
404         Unreviewed, rolling out r157157.
405         http://trac.webkit.org/changeset/157157
406         https://bugs.webkit.org/show_bug.cgi?id=122547
407
408         Caused crashes on several bots including gtk, mac-wk2 lion and
409         mountain lion (Requested by kov on #webkit).
410
411         * Shared/Plugins/NPRemoteObjectMap.cpp:
412         (WebKit::NPRemoteObjectMap::registerNPObject):
413         (WebKit::NPRemoteObjectMap::pluginDestroyed):
414         * Shared/Plugins/NPRemoteObjectMap.h:
415
416 2013-10-08  Darin Adler  <darin@apple.com>
417
418         Remove use of deleteAllValues in NPRemoteObjectMap::pluginDestroyed
419         https://bugs.webkit.org/show_bug.cgi?id=122496
420
421         Reviewed by Andreas Kling.
422
423         * Shared/Plugins/NPRemoteObjectMap.cpp:
424         (WebKit::NPRemoteObjectMap::registerNPObject): Don't call release when puttin objects
425         into the map.
426         (WebKit::NPRemoteObjectMap::pluginDestroyed): Instead of making an array of receivers
427         and deleting them all, remove all of the receivers from the map, which will take care
428         of deleting them. Also change the other loop to use a similar coding style.
429
430         * Shared/Plugins/NPRemoteObjectMap.h: Change the value type of m_registeredNPObjects
431         to be unique_ptr instead of a raw pointer.
432
433 2013-10-08  Anders Carlsson  <andersca@apple.com>
434
435         WebProcess crash on SAP WebCycle web app
436         https://bugs.webkit.org/show_bug.cgi?id=122520
437         <rdar://problem/15030605>
438
439         Reviewed by Darin Adler.
440
441         Stop trying to use RunLoop to manage the top-level run loop and just have the child process and their
442         delegate subclasses start and stop the run loops. This fixes a bug with showModalDialog where we would
443         unintentionally call -[NSApp stop] when closing a modal dialog.
444         
445         This also lets us move all knowledge of NSApplication from RunLoop. (Both the web process and plug-in process
446         need to use -[NSApp run] and -[NSApp stop:]).
447
448         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
449         (WebKit::PluginProcessMainDelegate::doPreInitializationWork):
450         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop. Add a startRunLoop override that calls
451         -[NSApp run].
452
453         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
454         (PluginServiceInitializer):
455         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
456
457         * PluginProcess/PluginProcess.h:
458         Add stopRunLoop() override on Mac.
459
460         * PluginProcess/mac/PluginProcessMac.mm:
461         (WebKit::PluginProcess::stopRunLoop):
462         Call -[NSApp stop:] and tickle the event system.
463
464         * Shared/ChildProcess.cpp:
465         (WebKit::ChildProcess::stopRunLoop):
466         Add default implementation that just calls RunLoop::main()->stop().
467
468         (WebKit::ChildProcess::terminate):
469         Call stopRunLoop().
470
471         * Shared/ChildProcess.h:
472         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
473         Add startRunLoop member function and call it instead of RunLoop::run().
474
475         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
476         (WebKit::ChildProcessMainDelegate::startRunLoop):
477         Call RunLoop::run().
478
479         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
480         (WebKit::WebContentProcessMainDelegate::doPreInitializationWork):
481         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
482         Add startRunLoop override that calls -[NSApp run].
483         
484         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
485         (WebContentServiceInitializer):
486         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
487
488         * WebProcess/WebProcess.cpp:
489         (WebKit::WebProcess::didClose):
490         Call stopRunLoop().
491
492         * WebProcess/WebProcess.h:
493         Add stopRunLoop override.
494
495         * WebProcess/mac/WebProcessMac.mm:
496         (WebKit::WebProcess::stopRunLoop):
497         Call -[NSApp stop:] and tickle the event system.
498
499 2013-10-08  Commit Queue  <commit-queue@webkit.org>
500
501         Unreviewed, rolling out r157090.
502         http://trac.webkit.org/changeset/157090
503         https://bugs.webkit.org/show_bug.cgi?id=122504
504
505         Caused crashes in many plug-in tests (Requested by ap on
506         #webkit).
507
508         * Shared/Plugins/NPRemoteObjectMap.cpp:
509         (WebKit::NPRemoteObjectMap::registerNPObject):
510         (WebKit::NPRemoteObjectMap::pluginDestroyed):
511         * Shared/Plugins/NPRemoteObjectMap.h:
512
513 2013-10-08  Darin Adler  <darin@apple.com>
514
515         Remove use of deleteAllValues in NPRemoteObjectMap::pluginDestroyed
516         https://bugs.webkit.org/show_bug.cgi?id=122496
517
518         Reviewed by Andreas Kling.
519
520         * Shared/Plugins/NPRemoteObjectMap.cpp:
521         (WebKit::NPRemoteObjectMap::registerNPObject): Don't call release when putting objects
522         into the map.
523         (WebKit::NPRemoteObjectMap::pluginDestroyed): Instead of making an array of receivers
524         and deleting them all, remove all of the receivers from the map, which will take care
525         of deleting them. Also change the other loop to use a similar coding style.
526
527         * Shared/Plugins/NPRemoteObjectMap.h: Change the value type of m_registeredNPObjects
528         to be unique_ptr instead of a raw pointer.
529
530 2013-10-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
531
532         Reduce duplicated code in WebPageProxy
533         https://bugs.webkit.org/show_bug.cgi?id=122230
534
535         Reviewed by Darin Adler.
536
537         * UIProcess/WebPageProxy.cpp:
538         (WebKit::WebPageProxy::close): move duplicate code to resetState and call it.
539         (WebKit::WebPageProxy::resetState): new private method for code that is shared between
540         close and resetStateAfterProcessExited.
541         (WebKit::WebPageProxy::resetStateAfterProcessExited): move duplicate code to resetState
542         and call it.
543         * UIProcess/WebPageProxy.h:
544
545 2013-10-07  Sam Weinig  <sam@webkit.org>
546
547         CTTE: Use references in and around DragController
548         https://bugs.webkit.org/show_bug.cgi?id=122427
549
550         Reviewed by Andreas Kling.
551
552         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
553         (webkitWebViewBaseDragDataReceived):
554         (webkitWebViewBaseDragMotion):
555         (dragExitedCallback):
556         (webkitWebViewBaseDragDrop):
557         * UIProcess/API/mac/WKView.mm:
558         (-[WKView draggingEntered:]):
559         (-[WKView draggingUpdated:]):
560         (-[WKView draggingExited:]):
561         (-[WKView performDragOperation:]):
562         * UIProcess/WebPageProxy.cpp:
563         (WebKit::WebPageProxy::dragEntered):
564         (WebKit::WebPageProxy::dragUpdated):
565         (WebKit::WebPageProxy::dragExited):
566         (WebKit::WebPageProxy::performDrag):
567         (WebKit::WebPageProxy::performDragControllerAction):
568         * UIProcess/WebPageProxy.h:
569         * WebProcess/WebCoreSupport/WebDragClient.cpp:
570         (WebKit::WebDragClient::willPerformDragDestinationAction):
571         (WebKit::WebDragClient::willPerformDragSourceAction):
572         (WebKit::WebDragClient::actionMaskForDrag):
573         (WebKit::WebDragClient::dragSourceActionMaskForPoint):
574         (WebKit::WebDragClient::startDrag):
575         * WebProcess/WebCoreSupport/WebDragClient.h:
576         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
577         (WebKit::WebDragClient::startDrag):
578         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
579         (WebKit::WebDragClient::startDrag):
580         (WebKit::cachedImage):
581         (WebKit::WebDragClient::declareAndWriteDragImage):
582         * WebProcess/WebPage/WebPage.cpp:
583         (WebKit::WebPage::performDragControllerAction):
584
585 2013-10-07  Tim Horton  <timothy_horton@apple.com>
586
587         Animated images are not restarted when page visibility changes
588         https://bugs.webkit.org/show_bug.cgi?id=122464
589         <rdar://problem/14293474>
590
591         Reviewed by Simon Fraser.
592
593         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
594         (WebKit::TiledCoreAnimationDrawingArea::resumePainting):
595         This is on Page now.
596
597 2013-10-05  Anders Carlsson  <andersca@apple.com>
598
599         Try to fix the GTK+ build.
600
601         * UIProcess/gtk/WebPageProxyGtk.cpp:
602         (WebKit::WebPageProxy::platformInitialize):
603
604 2013-10-05  Anders Carlsson  <andersca@apple.com>
605
606         Remove createOwned
607         https://bugs.webkit.org/show_bug.cgi?id=122388
608
609         Reviewed by Darin Adler.
610
611         * UIProcess/API/mac/WKView.mm:
612         (-[WKView _setFindIndicator:fadeOut:animate:]):
613         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
614         (WKBundlePageOverlayCreate):
615
616 2013-10-05  Darin Adler  <darin@apple.com>
617
618         Remove COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) since it's required now
619         https://bugs.webkit.org/show_bug.cgi?id=122387
620
621         Reviewed by Anders Carlsson.
622
623         * UIProcess/API/cpp/WKRetainPtr.h: Take out conditionals.
624
625 2013-10-05  Darin Adler  <darin@apple.com>
626
627         Cut down on use of String::number
628         https://bugs.webkit.org/show_bug.cgi?id=122382
629
630         Reviewed by Anders Carlsson.
631
632         * Shared/mac/RemoteLayerTreeTransaction.mm:
633         (WebKit::dumpChangedLayers): Use StringBuilder::appendNumber.
634
635 2013-10-05  Anders Carlsson  <andersca@apple.com>
636
637         Fix cut and paste errors.
638
639         * Configurations/WebKit2.xcconfig:
640
641 2013-10-05  Anders Carlsson  <andersca@apple.com>
642
643         Add the rest of the std::function weak symbols in an attempt to fix the Lion build.
644
645         * Configurations/WebKit2.xcconfig:
646
647 2013-10-05  Anders Carlsson  <andersca@apple.com>
648
649         Another attempt at fixing the Lion build.
650
651         * Configurations/WebKit2.xcconfig:
652
653 2013-10-05  Anders Carlsson  <andersca@apple.com>
654
655         Attempt to fix the Lion build.
656         
657         * Configurations/WebKit2.xcconfig:
658         Try unexporting one of the weak symbols for now. If this succeeds, I'll add the rest.
659
660 2013-10-04  Anders Carlsson  <andersca@apple.com>
661
662         FramePolicyFunction should be an std::function
663         https://bugs.webkit.org/show_bug.cgi?id=122362
664
665         Reviewed by Darin Adler.
666
667         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
668         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
669         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
670         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
671         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
672         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
673         * WebProcess/WebPage/WebFrame.cpp:
674         (WebKit::WebFrame::didReceivePolicyDecision):
675
676 2013-10-04  Ryuan Choi  <ryuan.choi@samsung.com>
677
678         Unreviewed EFL build fix after r156924
679
680         * UIProcess/efl/WebPageProxyEfl.cpp:
681         (WebKit::WebPageProxy::platformInitialize):
682
683 2013-10-04  Sam Weinig  <sam@webkit.org>
684
685         Unify rubber-band control
686         https://bugs.webkit.org/show_bug.cgi?id=122341
687
688         Reviewed by Tim Horton.
689
690         - Consolidates the two ways we were passing state about whether
691           to rubber-band on a particular edge down to one.
692         - Adds SPI to control whether you can rubber band on the left
693           or right edge.
694         - Add a linked-on-or-after check to control whether we use the
695           legacy implicit rubber band control based on back/forward.
696
697         * UIProcess/API/C/WKPage.cpp:
698         (WKPageRubberBandsAtLeft):
699         (WKPageSetRubberBandsAtLeft):
700         (WKPageRubberBandsAtRight):
701         (WKPageSetRubberBandsAtRight):
702         (WKPageRubberBandsAtBottom):
703         (WKPageSetRubberBandsAtBottom):
704         * UIProcess/API/C/WKPage.h:
705         * UIProcess/WebPageProxy.cpp:
706         (WebKit::WebPageProxy::WebPageProxy):
707         (WebKit::WebPageProxy::sendWheelEvent):
708         (WebKit::WebPageProxy::rubberBandsAtLeft):
709         (WebKit::WebPageProxy::setRubberBandsAtLeft):
710         (WebKit::WebPageProxy::rubberBandsAtRight):
711         (WebKit::WebPageProxy::setRubberBandsAtRight):
712         (WebKit::WebPageProxy::rubberBandsAtTop):
713         (WebKit::WebPageProxy::setRubberBandsAtTop):
714         (WebKit::WebPageProxy::rubberBandsAtBottom):
715         (WebKit::WebPageProxy::setRubberBandsAtBottom):
716         * UIProcess/WebPageProxy.h:
717         * UIProcess/mac/WebPageProxyMac.mm:
718         (WebKit::shouldUseLegacyImplicitRubberBandControl):
719         (WebKit::WebPageProxy::platformInitialize):
720         * WebProcess/WebPage/EventDispatcher.cpp:
721         (WebKit::EventDispatcher::wheelEvent):
722         * WebProcess/WebPage/EventDispatcher.h:
723         * WebProcess/WebPage/EventDispatcher.messages.in:
724         * WebProcess/WebPage/WebPage.cpp:
725         * WebProcess/WebPage/WebPage.h:
726         * WebProcess/WebPage/WebPage.messages.in:
727
728 2013-10-04  Lorenzo Tilve  <ltilve@igalia.com>
729
730         [GTK] Enable text edition UndoOperations support in WebKit2
731         https://bugs.webkit.org/show_bug.cgi?id=122305
732
733         Reviewed by Carlos Garcia Campos.
734
735         Replaced the notImplemented() function calls for
736         the corresponding implementation of the edit operations
737         provided by the DefaultUndoController class.
738
739         * GNUmakefile.list.am:
740         * UIProcess/API/gtk/PageClientImpl.cpp:
741         (WebKit::PageClientImpl::registerEditCommand):
742         (WebKit::PageClientImpl::clearAllEditCommands):
743         (WebKit::PageClientImpl::canUndoRedo):
744         (WebKit::PageClientImpl::executeUndoRedo):
745         * UIProcess/API/gtk/PageClientImpl.h:
746
747 2013-10-04  Sergio Correia  <sergio.correia@openbossa.org>
748
749         Remove Qt leftovers from WebKit2
750         https://bugs.webkit.org/show_bug.cgi?id=122317
751
752         Reviewed by Anders Carlsson.
753
754         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
755         (CoreIPC::Connection::platformInitialize):
756         (CoreIPC::Connection::platformInvalidate):
757         (CoreIPC::Connection::readyReadHandler):
758         (CoreIPC::Connection::open):
759         (CoreIPC::Connection::sendOutgoingMessage):
760         * Shared/API/c/WKBase.h:
761         * Shared/NativeWebTouchEvent.h:
762         * UIProcess/API/C/WebKit2_C.h:
763         * UIProcess/BackingStore.h:
764         * UIProcess/InspectorServer/WebInspectorServer.cpp:
765         (WebKit::WebInspectorServer::inspectorUrlForPageID):
766         * UIProcess/InspectorServer/WebInspectorServer.h:
767         * UIProcess/InspectorServer/WebSocketServer.cpp:
768         * UIProcess/InspectorServer/WebSocketServer.h:
769         * UIProcess/WebPageProxy.cpp:
770         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
771         (WebKit::getPluginDisplay):
772         (WebKit::x11Screen):
773         (WebKit::displayDepth):
774         (WebKit::rootWindowID):
775         (WebKit::NetscapePlugin::x11HostDisplay):
776         (WebKit::NetscapePlugin::platformPostInitializeWindowless):
777         (WebKit::NetscapePlugin::platformPaint):
778
779 2013-10-03  Mark Rowe  <mrowe@apple.com>
780
781         REGRESSION (r155787): WebKitTestRunner rebuilds from scratch when doing an incremental build
782
783         Reviewed by Dan Bernstein.
784
785         * WebKit2.xcodeproj/project.pbxproj: Have unifdef generate its output to a temporary file. If its exit status
786         indicates that the content did not change, remove the temporary file. If the content changed, moved the temporary file
787         over the destination. This avoids updating the modification date of the file when it has not changed.
788
789 2013-10-03  Sam Weinig  <sam@webkit.org>
790
791         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
792         https://bugs.webkit.org/show_bug.cgi?id=122309
793
794         Reviewed by Andreas Kling.
795
796         WKBundlePageUIClient's shouldRubberBandInDirection has never worked with
797         threaded scrolling, so remove it.
798
799         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
800         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
801         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
802         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
803         * WebProcess/WebCoreSupport/WebChromeClient.h:
804
805 2013-10-03  Sergio Correia  <sergio.correia@openbossa.org>
806
807         Create CoordinatedDrawingArea / CoordinatedDrawingAreaProxy
808         https://bugs.webkit.org/show_bug.cgi?id=122207
809
810         Reviewed by Anders Carlsson.
811
812         Since Apple are moving away from DrawingAreaImpl, Coordinated Graphics
813         should have its own drawing area.
814
815         * CMakeLists.txt: Use CoordinatedDrawingArea and
816         CoordinatedDrawingAreaProxy instead of the DrawingAreaImpl /
817         DrawingAreaProxyImpl.
818         * Shared/DrawingAreaInfo.h: Add DrawingAreaTypeCoordinated.
819         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
820         Added, copied from DrawingAreaProxyImpl.cpp.
821         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: Added,
822         copied from DrawingAreaProxyImpl.h.
823         * UIProcess/CoordinatedGraphics/WebView.cpp:
824         (WebKit::WebView::createDrawingAreaProxy): Use CoordinatedDrawingAreaProxy.
825         * UIProcess/DrawingAreaProxyImpl.cpp: Remove Coordinated Graphics
826         bits.
827         * UIProcess/DrawingAreaProxyImpl.h: Ditto.
828         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
829         Added, copied from DrawingAreaImpl.cpp.
830         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
831         Added, copied from DrawingAreaImpl.h.
832         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
833         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush): Use
834         CoordinatedDrawingArea.
835         * WebProcess/WebPage/DrawingArea.cpp:
836         (WebKit::DrawingArea::create): Handle the DrawingAreaTypeCoordinated
837         in the DrawingArea creation code.
838         * WebProcess/WebPage/DrawingAreaImpl.cpp: Remove Coordinated Graphics
839         bits.
840         * WebProcess/WebPage/DrawingAreaImpl.h: Ditto.
841
842 2013-10-03  Anders Carlsson  <andersca@apple.com>
843
844         Ignore deprecation warnings
845         https://bugs.webkit.org/show_bug.cgi?id=122302
846
847         Reviewed by Mark Rowe.
848
849         * Shared/mac/WebEventFactory.mm:
850         (WebKit::globalPoint):
851         * UIProcess/API/mac/FindIndicatorWindow.mm:
852         (WebKit::FindIndicatorWindow::setFindIndicator):
853         * UIProcess/API/mac/PageClientImpl.mm:
854         (WebKit::PageClientImpl::screenToWindow):
855         (WebKit::PageClientImpl::windowToScreen):
856         * UIProcess/API/mac/WKTextInputWindowController.mm:
857         (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
858         (-[WKTextInputPanel _hasMarkedText]):
859         * UIProcess/API/mac/WKView.mm:
860         (-[WKView characterIndexForPoint:]):
861         (-[WKView firstRectForCharacterRange:actualRange:]):
862         (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):
863         (-[WKView _setDragImage:at:linkDrag:]):
864         (-[WKView performDictionaryLookupAtCurrentMouseLocation]):
865         * UIProcess/mac/WKFullScreenWindowController.mm:
866         (-[WKFullScreenWindowController _startEnterFullScreenAnimationWithDuration:]):
867         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
868         * UIProcess/mac/WebContextMenuProxyMac.mm:
869         (WebKit::WebContextMenuProxyMac::showContextMenu):
870         * UIProcess/mac/WebPopupMenuProxyMac.mm:
871         (WebKit::WebPopupMenuProxyMac::showPopupMenu):
872
873 2013-10-03  Anders Carlsson  <andersca@apple.com>
874
875         Remove the last remnants of Qt from WebKit2
876         https://bugs.webkit.org/show_bug.cgi?id=122290
877
878         Reviewed by Andreas Kling.
879
880         * Platform/PlatformProcessIdentifier.h:
881         * Shared/API/c/WKSharedAPICast.h:
882         (WebKit::toAPI):
883         (WebKit::toImpl):
884         * Shared/Downloads/Download.cpp:
885         (WebKit::Download::Download):
886         * Shared/Downloads/Download.h:
887         * Shared/Downloads/DownloadManager.cpp:
888         * Shared/Downloads/DownloadManager.h:
889         * Shared/EditorState.cpp:
890         (WebKit::EditorState::encode):
891         (WebKit::EditorState::decode):
892         * Shared/EditorState.h:
893         (WebKit::EditorState::EditorState):
894         * Shared/LayerTreeContext.h:
895         * Shared/NativeWebKeyboardEvent.h:
896         * Shared/NativeWebMouseEvent.h:
897         * Shared/NativeWebWheelEvent.h:
898         * Shared/PlatformPopupMenuData.cpp:
899         (WebKit::PlatformPopupMenuData::encode):
900         (WebKit::PlatformPopupMenuData::decode):
901         * Shared/PlatformPopupMenuData.h:
902         * Shared/ShareableBitmap.h:
903         * Shared/WebPreferencesStore.h:
904         * UIProcess/Downloads/DownloadProxy.cpp:
905         * UIProcess/Downloads/DownloadProxy.h:
906         * UIProcess/PageClient.h:
907         * UIProcess/Plugins/PluginProcessProxy.cpp:
908         (WebKit::PluginProcessProxy::didFinishLaunching):
909         * UIProcess/WebContext.cpp:
910         (WebKit::WebContext::download):
911         * UIProcess/WebFullScreenManagerProxy.h:
912         * UIProcess/WebPageProxy.cpp:
913         (WebKit::WebPageProxy::performDragControllerAction):
914         (WebKit::WebPageProxy::receivedPolicyDecision):
915         (WebKit::WebPageProxy::editorStateChanged):
916         (WebKit::WebPageProxy::showPopupMenu):
917         * UIProcess/WebPageProxy.h:
918         * UIProcess/WebPageProxy.messages.in:
919         * UIProcess/WebPopupMenuProxy.h:
920         * WebProcess/InjectedBundle/InjectedBundle.h:
921         * WebProcess/WebCoreSupport/WebDragClient.cpp:
922         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
923         (WebKit::WebEditorClient::respondToChangedSelection):
924         (WebKit::WebEditorClient::willSetInputMethodState):
925         (WebKit::WebEditorClient::supportsGlobalSelection):
926         * WebProcess/WebCoreSupport/WebEditorClient.h:
927         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
928         (WebKit::WebFrameLoaderClient::shouldFallBack):
929         * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
930         (WebKit::WebPopupMenu::didChangeSelectedIndex):
931         * WebProcess/WebCoreSupport/WebPopupMenu.h:
932         * WebProcess/WebPage/WebPage.cpp:
933         (WebKit::WebPage::WebPage):
934         (WebKit::WebPage::editorState):
935         (WebKit::WebPage::performDragControllerAction):
936         * WebProcess/WebPage/WebPage.h:
937         * WebProcess/WebPage/WebPage.messages.in:
938         * WebProcess/WebProcess.cpp:
939         (WebKit::WebProcess::WebProcess):
940         * WebProcess/WebProcess.h:
941         * WebProcess/WebProcess.messages.in:
942         * config.h:
943
944 2013-10-03  Anders Carlsson  <andersca@apple.com>
945
946         Remove Qt files from WebKit2.
947
948         Rubber-stomped by Andreas Kling.
949
950         * DerivedSources.pri: Removed.
951         * PluginProcess.pro: Removed.
952         * PluginProcess/qt/PluginControllerProxyQt.cpp: Removed.
953         * PluginProcess/qt/PluginProcessMainQt.cpp: Removed.
954         * PluginProcess/qt/PluginProcessQt.cpp: Removed.
955         * SandboxProcess.pro: Removed.
956         * Shared/API/c/qt/WKImageQt.cpp: Removed.
957         * Shared/API/c/qt/WKImageQt.h: Removed.
958         * Shared/Downloads/qt/DownloadQt.cpp: Removed.
959         * Shared/Downloads/qt/QtFileDownloader.cpp: Removed.
960         * Shared/Downloads/qt/QtFileDownloader.h: Removed.
961         * Shared/qt/ArgumentCodersQt.cpp: Removed.
962         * Shared/qt/ArgumentCodersQt.h: Removed.
963         * Shared/qt/LayerTreeContextQt.cpp: Removed.
964         * Shared/qt/NativeWebKeyboardEventQt.cpp: Removed.
965         * Shared/qt/NativeWebMouseEventQt.cpp: Removed.
966         * Shared/qt/NativeWebTouchEventQt.cpp: Removed.
967         * Shared/qt/NativeWebWheelEventQt.cpp: Removed.
968         * Shared/qt/PlatformCertificateInfo.h: Removed.
969         * Shared/qt/ProcessExecutablePathQt.cpp: Removed.
970         * Shared/qt/QtNetworkReplyData.cpp: Removed.
971         * Shared/qt/QtNetworkReplyData.h: Removed.
972         * Shared/qt/QtNetworkRequestData.cpp: Removed.
973         * Shared/qt/QtNetworkRequestData.h: Removed.
974         * Shared/qt/ShareableBitmapQt.cpp: Removed.
975         * Shared/qt/WebCoreArgumentCodersQt.cpp: Removed.
976         * Shared/qt/WebEventFactoryQt.cpp: Removed.
977         * Shared/qt/WebEventFactoryQt.h: Removed.
978         * Shared/qt/WebURLRequestQt.cpp: Removed.
979         * Shared/qt/WebURLResponseQt.cpp: Removed.
980         * Target.pri: Removed.
981         * UIProcess/API/C/qt/WKIconDatabaseQt.cpp: Removed.
982         * UIProcess/API/C/qt/WKIconDatabaseQt.h: Removed.
983         * UIProcess/API/C/qt/WKNativeEvent.h: Removed.
984         * UIProcess/API/cpp/qt/WKStringQt.cpp: Removed.
985         * UIProcess/API/cpp/qt/WKStringQt.h: Removed.
986         * UIProcess/API/cpp/qt/WKURLQt.cpp: Removed.
987         * UIProcess/API/cpp/qt/WKURLQt.h: Removed.
988         * UIProcess/API/qt/qquicknetworkreply.cpp: Removed.
989         * UIProcess/API/qt/qquicknetworkreply_p.h: Removed.
990         * UIProcess/API/qt/qquicknetworkrequest.cpp: Removed.
991         * UIProcess/API/qt/qquicknetworkrequest_p.h: Removed.
992         * UIProcess/API/qt/qquickurlschemedelegate.cpp: Removed.
993         * UIProcess/API/qt/qquickurlschemedelegate_p.h: Removed.
994         * UIProcess/API/qt/qquickwebpage.cpp: Removed.
995         * UIProcess/API/qt/qquickwebpage_p.h: Removed.
996         * UIProcess/API/qt/qquickwebpage_p_p.h: Removed.
997         * UIProcess/API/qt/qquickwebview.cpp: Removed.
998         * UIProcess/API/qt/qquickwebview_p.h: Removed.
999         * UIProcess/API/qt/qquickwebview_p_p.h: Removed.
1000         * UIProcess/API/qt/qtwebsecurityorigin.cpp: Removed.
1001         * UIProcess/API/qt/qtwebsecurityorigin_p.h: Removed.
1002         * UIProcess/API/qt/qwebdownloaditem.cpp: Removed.
1003         * UIProcess/API/qt/qwebdownloaditem_p.h: Removed.
1004         * UIProcess/API/qt/qwebdownloaditem_p_p.h: Removed.
1005         * UIProcess/API/qt/qwebiconimageprovider.cpp: Removed.
1006         * UIProcess/API/qt/qwebiconimageprovider_p.h: Removed.
1007         * UIProcess/API/qt/qwebkittest.cpp: Removed.
1008         * UIProcess/API/qt/qwebkittest_p.h: Removed.
1009         * UIProcess/API/qt/qwebloadrequest.cpp: Removed.
1010         * UIProcess/API/qt/qwebloadrequest_p.h: Removed.
1011         * UIProcess/API/qt/qwebnavigationhistory.cpp: Removed.
1012         * UIProcess/API/qt/qwebnavigationhistory_p.h: Removed.
1013         * UIProcess/API/qt/qwebnavigationhistory_p_p.h: Removed.
1014         * UIProcess/API/qt/qwebnavigationrequest.cpp: Removed.
1015         * UIProcess/API/qt/qwebnavigationrequest_p.h: Removed.
1016         * UIProcess/API/qt/qwebpermissionrequest.cpp: Removed.
1017         * UIProcess/API/qt/qwebpermissionrequest_p.h: Removed.
1018         * UIProcess/API/qt/qwebpreferences.cpp: Removed.
1019         * UIProcess/API/qt/qwebpreferences_p.h: Removed.
1020         * UIProcess/API/qt/qwebpreferences_p_p.h: Removed.
1021         * UIProcess/API/qt/raw/qrawwebview.cpp: Removed.
1022         * UIProcess/API/qt/raw/qrawwebview_p.h: Removed.
1023         * UIProcess/API/qt/raw/qrawwebview_p_p.h: Removed.
1024         * UIProcess/API/qt/tests/bytearraytestdata.cpp: Removed.
1025         * UIProcess/API/qt/tests/bytearraytestdata.h: Removed.
1026         * UIProcess/API/qt/tests/html/basic_page.html: Removed.
1027         * UIProcess/API/qt/tests/html/basic_page2.html: Removed.
1028         * UIProcess/API/qt/tests/html/bluesquare.html: Removed.
1029         * UIProcess/API/qt/tests/html/direct-image-compositing.html: Removed.
1030         * UIProcess/API/qt/tests/html/inputmethod.html: Removed.
1031         * UIProcess/API/qt/tests/html/redsquare.html: Removed.
1032         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground1.png: Removed.
1033         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground3.png: Removed.
1034         * UIProcess/API/qt/tests/html/resources/qwkview_paint.png: Removed.
1035         * UIProcess/API/qt/tests/html/resources/simple_image.png: Removed.
1036         * UIProcess/API/qt/tests/html/scroll.html: Removed.
1037         * UIProcess/API/qt/tests/inspectorserver/inspectorserver.pro: Removed.
1038         * UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp: Removed.
1039         * UIProcess/API/qt/tests/publicapi/publicapi.pro: Removed.
1040         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp: Removed.
1041         * UIProcess/API/qt/tests/qmltests/DesktopBehavior.pro: Removed.
1042         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml: Removed.
1043         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml: Removed.
1044         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationRequested.qml: Removed.
1045         * UIProcess/API/qt/tests/qmltests/WebView.pro: Removed.
1046         * UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml: Removed.
1047         * UIProcess/API/qt/tests/qmltests/WebView/tst_colorChooser.qml: Removed.
1048         * UIProcess/API/qt/tests/qmltests/WebView/tst_doubleTapToZoom.qml: Removed.
1049         * UIProcess/API/qt/tests/qmltests/WebView/tst_download.qml: Removed.
1050         * UIProcess/API/qt/tests/qmltests/WebView/tst_evaluateJavaScript.qml: Removed.
1051         * UIProcess/API/qt/tests/qmltests/WebView/tst_favIconLoad.qml: Removed.
1052         * UIProcess/API/qt/tests/qmltests/WebView/tst_findText.qml: Removed.
1053         * UIProcess/API/qt/tests/qmltests/WebView/tst_fitToView.qml: Removed.
1054         * UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml: Removed.
1055         * UIProcess/API/qt/tests/qmltests/WebView/tst_itemSelector.qml: Removed.
1056         * UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml: Removed.
1057         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml: Removed.
1058         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml: Removed.
1059         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml: Removed.
1060         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml: Removed.
1061         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadUrl.qml: Removed.
1062         * UIProcess/API/qt/tests/qmltests/WebView/tst_messaging.qml: Removed.
1063         * UIProcess/API/qt/tests/qmltests/WebView/tst_multiFileUpload.qml: Removed.
1064         * UIProcess/API/qt/tests/qmltests/WebView/tst_navigationHistory.qml: Removed.
1065         * UIProcess/API/qt/tests/qmltests/WebView/tst_notification.qml: Removed.
1066         * UIProcess/API/qt/tests/qmltests/WebView/tst_origin.qml: Removed.
1067         * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml: Removed.
1068         * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml: Removed.
1069         * UIProcess/API/qt/tests/qmltests/WebView/tst_resize.qml: Removed.
1070         * UIProcess/API/qt/tests/qmltests/WebView/tst_singleFileUpload.qml: Removed.
1071         * UIProcess/API/qt/tests/qmltests/WebView/tst_titleChanged.qml: Removed.
1072         * UIProcess/API/qt/tests/qmltests/WebView/tst_userScripts.qml: Removed.
1073         * UIProcess/API/qt/tests/qmltests/WebView/tst_wheelEventHandling.qml: Removed.
1074         * UIProcess/API/qt/tests/qmltests/common/TestWebView.qml: Removed.
1075         * UIProcess/API/qt/tests/qmltests/common/alert.html: Removed.
1076         * UIProcess/API/qt/tests/qmltests/common/append-document-title.js: Removed.
1077         * UIProcess/API/qt/tests/qmltests/common/big-user-script.js: Removed.
1078         * UIProcess/API/qt/tests/qmltests/common/change-document-title.js: Removed.
1079         * UIProcess/API/qt/tests/qmltests/common/colorChooser.html: Removed.
1080         * UIProcess/API/qt/tests/qmltests/common/confirm.html: Removed.
1081         * UIProcess/API/qt/tests/qmltests/common/download.zip: Removed.
1082         * UIProcess/API/qt/tests/qmltests/common/evaluatejavascript.html: Removed.
1083         * UIProcess/API/qt/tests/qmltests/common/favicon.html: Removed.
1084         * UIProcess/API/qt/tests/qmltests/common/favicon.png: Removed.
1085         * UIProcess/API/qt/tests/qmltests/common/favicon2.html: Removed.
1086         * UIProcess/API/qt/tests/qmltests/common/font-preferences.html: Removed.
1087         * UIProcess/API/qt/tests/qmltests/common/geolocation.html: Removed.
1088         * UIProcess/API/qt/tests/qmltests/common/javascript.html: Removed.
1089         * UIProcess/API/qt/tests/qmltests/common/link.html: Removed.
1090         * UIProcess/API/qt/tests/qmltests/common/localStorage.html: Removed.
1091         * UIProcess/API/qt/tests/qmltests/common/messaging.html: Removed.
1092         * UIProcess/API/qt/tests/qmltests/common/multifileupload.html: Removed.
1093         * UIProcess/API/qt/tests/qmltests/common/notification.html: Removed.
1094         * UIProcess/API/qt/tests/qmltests/common/prompt.html: Removed.
1095         * UIProcess/API/qt/tests/qmltests/common/qrctest.html: Removed.
1096         * UIProcess/API/qt/tests/qmltests/common/redirect.html: Removed.
1097         * UIProcess/API/qt/tests/qmltests/common/select.html: Removed.
1098         * UIProcess/API/qt/tests/qmltests/common/selectwithsize.html: Removed.
1099         * UIProcess/API/qt/tests/qmltests/common/singlefileupload.html: Removed.
1100         * UIProcess/API/qt/tests/qmltests/common/small-favicon.png: Removed.
1101         * UIProcess/API/qt/tests/qmltests/common/test1.html: Removed.
1102         * UIProcess/API/qt/tests/qmltests/common/test2.html: Removed.
1103         * UIProcess/API/qt/tests/qmltests/common/test3.html: Removed.
1104         * UIProcess/API/qt/tests/qmltests/common/test4.html: Removed.
1105         * UIProcess/API/qt/tests/qmltests/common/test5.html: Removed.
1106         * UIProcess/API/qt/tests/qmltests/common/titleupdate.js: Removed.
1107         * UIProcess/API/qt/tests/qmltests/qmltests.pro: Removed.
1108         * UIProcess/API/qt/tests/qmltests/resources.qrc: Removed.
1109         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp: Removed.
1110         * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro: Removed.
1111         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp: Removed.
1112         * UIProcess/API/qt/tests/qrawwebview/qrawwebview.pro: Removed.
1113         * UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp: Removed.
1114         * UIProcess/API/qt/tests/tests.pri: Removed.
1115         * UIProcess/API/qt/tests/testwindow.h: Removed.
1116         * UIProcess/API/qt/tests/util.cpp: Removed.
1117         * UIProcess/API/qt/tests/util.h: Removed.
1118         * UIProcess/InspectorServer/qt/WebInspectorServerQt.cpp: Removed.
1119         * UIProcess/InspectorServer/qt/WebSocketServerQt.cpp: Removed.
1120         * UIProcess/InspectorServer/qt/WebSocketServerQt.h: Removed.
1121         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp: Removed.
1122         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp: Removed.
1123         * UIProcess/qt/BackingStoreQt.cpp: Removed.
1124         * UIProcess/qt/PageViewportControllerClientQt.cpp: Removed.
1125         * UIProcess/qt/PageViewportControllerClientQt.h: Removed.
1126         * UIProcess/qt/QtDialogRunner.cpp: Removed.
1127         * UIProcess/qt/QtDialogRunner.h: Removed.
1128         * UIProcess/qt/QtDownloadManager.cpp: Removed.
1129         * UIProcess/qt/QtDownloadManager.h: Removed.
1130         * UIProcess/qt/QtGestureRecognizer.cpp: Removed.
1131         * UIProcess/qt/QtGestureRecognizer.h: Removed.
1132         * UIProcess/qt/QtPageClient.cpp: Removed.
1133         * UIProcess/qt/QtPageClient.h: Removed.
1134         * UIProcess/qt/QtPanGestureRecognizer.cpp: Removed.
1135         * UIProcess/qt/QtPanGestureRecognizer.h: Removed.
1136         * UIProcess/qt/QtPinchGestureRecognizer.cpp: Removed.
1137         * UIProcess/qt/QtPinchGestureRecognizer.h: Removed.
1138         * UIProcess/qt/QtTapGestureRecognizer.cpp: Removed.
1139         * UIProcess/qt/QtTapGestureRecognizer.h: Removed.
1140         * UIProcess/qt/QtWebContext.cpp: Removed.
1141         * UIProcess/qt/QtWebContext.h: Removed.
1142         * UIProcess/qt/QtWebError.cpp: Removed.
1143         * UIProcess/qt/QtWebError.h: Removed.
1144         * UIProcess/qt/QtWebIconDatabaseClient.cpp: Removed.
1145         * UIProcess/qt/QtWebIconDatabaseClient.h: Removed.
1146         * UIProcess/qt/QtWebPageEventHandler.cpp: Removed.
1147         * UIProcess/qt/QtWebPageEventHandler.h: Removed.
1148         * UIProcess/qt/QtWebPagePolicyClient.cpp: Removed.
1149         * UIProcess/qt/QtWebPagePolicyClient.h: Removed.
1150         * UIProcess/qt/QtWebPageSGNode.cpp: Removed.
1151         * UIProcess/qt/QtWebPageSGNode.h: Removed.
1152         * UIProcess/qt/QtWebPageUIClient.cpp: Removed.
1153         * UIProcess/qt/QtWebPageUIClient.h: Removed.
1154         * UIProcess/qt/TextCheckerQt.cpp: Removed.
1155         * UIProcess/qt/WebColorPickerQt.cpp: Removed.
1156         * UIProcess/qt/WebColorPickerQt.h: Removed.
1157         * UIProcess/qt/WebContextMenuProxyQt.cpp: Removed.
1158         * UIProcess/qt/WebContextMenuProxyQt.h: Removed.
1159         * UIProcess/qt/WebContextQt.cpp: Removed.
1160         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Removed.
1161         * UIProcess/qt/WebGeolocationProviderQt.cpp: Removed.
1162         * UIProcess/qt/WebGeolocationProviderQt.h: Removed.
1163         * UIProcess/qt/WebInspectorProxyQt.cpp: Removed.
1164         * UIProcess/qt/WebPageProxyQt.cpp: Removed.
1165         * UIProcess/qt/WebPopupMenuProxyQt.cpp: Removed.
1166         * UIProcess/qt/WebPopupMenuProxyQt.h: Removed.
1167         * UIProcess/qt/WebPreferencesQt.cpp: Removed.
1168         * UIProcess/qt/WebProcessProxyQt.cpp: Removed.
1169         * WebKit2.pri: Removed.
1170         * WebKit2.pro: Removed.
1171         * WebProcess.pro: Removed.
1172         * WebProcess/Cookies/qt/WebCookieManagerQt.cpp: Removed.
1173         * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp: Removed.
1174         * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp: Removed.
1175         * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp: Removed.
1176         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp: Removed.
1177         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Removed.
1178         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp: Removed.
1179         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h: Removed.
1180         * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp: Removed.
1181         * WebProcess/WebPage/qt/WebInspectorQt.cpp: Removed.
1182         * WebProcess/WebPage/qt/WebPageQt.cpp: Removed.
1183         * WebProcess/qt/QtBuiltinBundle.cpp: Removed.
1184         * WebProcess/qt/QtBuiltinBundle.h: Removed.
1185         * WebProcess/qt/QtBuiltinBundlePage.cpp: Removed.
1186         * WebProcess/qt/QtBuiltinBundlePage.h: Removed.
1187         * WebProcess/qt/QtNetworkAccessManager.cpp: Removed.
1188         * WebProcess/qt/QtNetworkAccessManager.h: Removed.
1189         * WebProcess/qt/QtNetworkReply.cpp: Removed.
1190         * WebProcess/qt/QtNetworkReply.h: Removed.
1191         * WebProcess/qt/SeccompFiltersWebProcessQt.cpp: Removed.
1192         * WebProcess/qt/SeccompFiltersWebProcessQt.h: Removed.
1193         * WebProcess/qt/WebProcessMainQt.cpp: Removed.
1194         * WebProcess/qt/WebProcessQt.cpp: Removed.
1195         * qt/MainQt.cpp: Removed.
1196         * qt/PluginMainQt.cpp: Removed.
1197
1198 2013-10-03  Brady Eidson  <beidson@apple.com>
1199
1200         Move IDBFactoryBackend creation to DatabaseStrategy.
1201         https://bugs.webkit.org/show_bug.cgi?id=122284
1202
1203         Reviewed by Alexey Proskuryakov.
1204
1205         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1206         (WebKit::WebPlatformStrategies::createIDBFactoryBackend): Fallback to the default for now.
1207         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1208
1209 2013-10-03  Zan Dobersek  <zdobersek@igalia.com>
1210
1211         Unreviewed fix of DrawingArea creation on non-Mac platforms after r156793.
1212         std::make_unique<DrawingAreaImpl>() should be used, as before that revision.
1213
1214         * WebProcess/WebPage/DrawingArea.cpp:
1215         (WebKit::DrawingArea::create):
1216
1217 2013-10-02  Anders Carlsson  <andersca@apple.com>
1218
1219         Remove Qt code from Platform/
1220         https://bugs.webkit.org/show_bug.cgi?id=122240
1221
1222         Reviewed by Andreas Kling.
1223
1224         * Platform/CoreIPC/Connection.h:
1225         * Platform/Logging.cpp:
1226         * Platform/Logging.h:
1227         * Platform/Module.h:
1228         * Platform/PlatformProcessIdentifier.h:
1229         * Platform/SharedMemory.h:
1230         * Platform/WorkQueue.h:
1231         * Platform/qt/LoggingQt.cpp: Removed.
1232         * Platform/qt/ModuleQt.cpp: Removed.
1233         * Platform/qt/WorkQueueQt.cpp: Removed.
1234
1235 2013-10-02  Tim Horton  <timothy_horton@apple.com>
1236
1237         [mac] Stop using DrawingAreaImpl on PLATFORM(MAC) 
1238         https://bugs.webkit.org/show_bug.cgi?id=121859
1239         <rdar://problem/15069359>
1240
1241         Reviewed by Anders Carlsson.
1242
1243         The Mac port will now use tiled drawing for all WebKit2 views.
1244
1245         * Shared/DrawingAreaInfo.h:
1246         Don't include DrawingAreaTypeImpl as a valid DrawingAreaType on Mac.
1247
1248         * UIProcess/API/mac/WKView.mm:
1249         (-[WKView drawRect:]):
1250         Remove our implementation of drawRect that paints from DrawingAreaImpl's backing store.
1251
1252         (-[WKView _shouldUseTiledDrawingArea]):
1253         Removed. Always treated as if it were true, now.
1254
1255         (-[WKView _createDrawingAreaProxy]):
1256         Always create a TiledCoreAnimationDrawingAreaProxy now.
1257
1258         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1259         (-[WKView wantsUpdateLayer]):
1260         WKView always wants a layer, etc.
1261
1262         * UIProcess/BackingStore.h:
1263         Remove Mac-specific BackingStore code, only used for DrawingAreaImpl on Mac.
1264
1265         * UIProcess/DrawingAreaProxy.h:
1266         Remove an unneeded include.
1267
1268         * UIProcess/mac/BackingStoreMac.mm: Removed.
1269         * WebKit2.xcodeproj/project.pbxproj:
1270         Remove a bunch of files we don't need to build anymore.
1271
1272         * WebProcess/WebPage/DrawingArea.cpp:
1273         (WebKit::DrawingArea::create):
1274         Never create a DrawingAreaImpl on Mac.
1275
1276         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1277         (WebKit::DrawingAreaImpl::updatePreferences):
1278         (WebKit::DrawingAreaImpl::resumePainting):
1279         * WebProcess/WebPage/DrawingAreaImpl.h:
1280         Remove Mac-specific DrawingAreaImpl code.
1281
1282         * WebProcess/WebPage/LayerTreeHost.cpp:
1283         (WebKit::LayerTreeHost::create):
1284         * WebProcess/WebPage/mac/LayerTreeHostMac.h: Removed.
1285         * WebProcess/WebPage/mac/LayerTreeHostMac.mm: Removed.
1286
1287 2013-10-02  Daniel Bates  <dabates@apple.com>
1288
1289         Fix the Mac WebKit2 build following <http://trac.webkit.org/changeset/139241>
1290         (https://bugs.webkit.org/show_bug.cgi?id=104197)
1291
1292         WebContextMac.mm fails to compile when building with network process disabled.
1293
1294         The constants WebKit2HTTPProxyDefaultsKey and WebKit2HTTPSProxyDefaultsKey,
1295         defined in WebContextMac.mm, should only be defined when building with the
1296         network process enabled as these constants are only referenced from
1297         ENABLE(NETWORK_PROCESS)-guard code.
1298
1299         * UIProcess/mac/WebContextMac.mm:
1300
1301 2013-10-01  Sam Weinig  <sam@webkit.org>
1302
1303         CTTE: DOMWrapperWorlds should be passed around by reference
1304         https://bugs.webkit.org/show_bug.cgi?id=122206
1305
1306         Reviewed by Andreas Kling.
1307
1308         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1309         (WebKit::InjectedBundlePageLoaderClient::didClearWindowObjectForFrame):
1310         (WebKit::InjectedBundlePageLoaderClient::globalObjectIsAvailableForFrame):
1311         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1312         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
1313         (WebKit::InjectedBundleScriptWorld::getOrCreate):
1314         (WebKit::InjectedBundleScriptWorld::normalWorld):
1315         (WebKit::InjectedBundleScriptWorld::coreWorld):
1316         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
1317         * WebProcess/Plugins/PluginView.cpp:
1318         (WebKit::PluginView::windowScriptNPObject):
1319         (WebKit::PluginView::pluginElementNPObject):
1320         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1321         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
1322         (WebKit::WebFrameLoaderClient::dispatchGlobalObjectAvailable):
1323         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
1324
1325 2013-10-01  Mark Rowe  <mrowe@apple.com>
1326
1327         <http://webkit.org/b/122190> WebKit2 APIs returning CF and NS types should explicitly declare whether they return retained objects.
1328
1329         This make the APIs easier to use under ARC and can help out the static analyzer.
1330
1331         Reviewed by Anders Carlsson.
1332
1333         * Shared/API/c/cf/WKErrorCF.h:
1334         * Shared/API/c/cf/WKStringCF.h:
1335         * Shared/API/c/cf/WKURLCF.h:
1336         * Shared/API/c/cg/WKImageCG.h:
1337         * Shared/API/c/mac/WKURLRequestNS.h:
1338         * Shared/API/c/mac/WKURLResponseNS.h:
1339         * UIProcess/API/C/cg/WKIconDatabaseCG.h:
1340
1341 2013-10-01  Gabor Abraham  <abrhm@inf.u-szeged.hu>
1342
1343         [Qt][WK2] Fix build after r156688.
1344         https://bugs.webkit.org/show_bug.cgi?id=122153
1345
1346         Reviewed by Allan Sandfeld Jensen.
1347
1348         * Shared/qt/ShareableBitmapQt.cpp:
1349         (WebKit::ShareableBitmap::createGraphicsContext):
1350         * UIProcess/API/qt/qquickwebview.cpp:
1351         (QQuickWebViewPrivate::createDrawingAreaProxy):
1352         * UIProcess/API/qt/qquickwebview_p_p.h:
1353         * UIProcess/API/qt/raw/qrawwebview.cpp:
1354         (QRawWebViewPrivate::createDrawingAreaProxy):
1355         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
1356         * UIProcess/qt/QtPageClient.cpp:
1357         (WebKit::QtPageClient::createDrawingAreaProxy):
1358         * UIProcess/qt/QtPageClient.h:
1359         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp:
1360         (WebKit::convertQPixmapToShareableBitmap):
1361
1362 2013-09-30  Ryuan Choi  <ryuan.choi@samsung.com>
1363
1364         Build fix for EFL, Qt, Gtk port after r156688
1365         https://bugs.webkit.org/show_bug.cgi?id=122139
1366
1367         Reviewed by Anders Carlsson.
1368
1369         Get rid of more uses of OwnPtr and PassOwnPtr.
1370
1371         * Shared/API/c/cairo/WKImageCairo.cpp:
1372         (WKImageCreateFromCairoSurface):
1373         * Shared/API/c/qt/WKImageQt.cpp:
1374         (WKImageCreateFromQImage):
1375         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1376         (WebKit::WebCoordinatedSurface::createGraphicsContext):
1377         (WebKit::WebCoordinatedSurface::paintToSurface):
1378         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1379         * Shared/cairo/ShareableBitmapCairo.cpp:
1380         (WebKit::ShareableBitmap::createGraphicsContext):
1381         * Shared/gtk/ArgumentCodersGtk.cpp:
1382         (CoreIPC::encodeImage):
1383         * UIProcess/API/gtk/PageClientImpl.cpp:
1384         (WebKit::PageClientImpl::createDrawingAreaProxy):
1385         * UIProcess/API/gtk/PageClientImpl.h:
1386         * UIProcess/CoordinatedGraphics/WebView.cpp:
1387         (WebKit::WebView::createDrawingAreaProxy):
1388         * UIProcess/CoordinatedGraphics/WebView.h:
1389         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
1390         (WebKit::convertCairoSurfaceToShareableBitmap):
1391
1392 2013-09-30  Sam Weinig  <sam@webkit.org>
1393
1394         Remove support for DOMFileSystem
1395         https://bugs.webkit.org/show_bug.cgi?id=122137
1396
1397         Reviewed by Anders Carlsson.
1398
1399         * Configurations/FeatureDefines.xcconfig:
1400
1401 2013-09-30  Anders Carlsson  <andersca@apple.com>
1402
1403         Fix build.
1404
1405         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1406
1407 2013-09-30  Anders Carlsson  <andersca@apple.com>
1408
1409         Get rid of more uses of OwnPtr and PassOwnPtr
1410         https://bugs.webkit.org/show_bug.cgi?id=122136
1411
1412         Reviewed by Antti Koivisto.
1413
1414         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
1415         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
1416         (WebKit::NetworkBlobRegistry::registerBlobURL):
1417         * NetworkProcess/FileAPI/NetworkBlobRegistry.h:
1418         * NetworkProcess/NetworkResourceLoader.cpp:
1419         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1420         * NetworkProcess/NetworkResourceLoader.h:
1421         * NetworkProcess/SynchronousNetworkLoaderClient.h:
1422         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1423         * Platform/CoreIPC/ArgumentDecoder.h:
1424         * Platform/CoreIPC/ArgumentEncoder.h:
1425         * Platform/CoreIPC/MessageDecoder.cpp:
1426         (CoreIPC::MessageDecoder::setImportanceAssertion):
1427         * Platform/CoreIPC/MessageDecoder.h:
1428         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1429         (CoreIPC::Connection::receiveSourceEventHandler):
1430         * Platform/CoreIPC/mac/ImportanceAssertion.h:
1431         (CoreIPC::ImportanceAssertion::ImportanceAssertion):
1432         * Platform/mac/LayerHostingContext.h:
1433         * Platform/mac/LayerHostingContext.mm:
1434         (WebKit::LayerHostingContext::createForPort):
1435         (WebKit::LayerHostingContext::createForWindowServer):
1436         * PluginProcess/PluginControllerProxy.cpp:
1437         (WebKit::PluginControllerProxy::paint):
1438         * PluginProcess/PluginControllerProxy.h:
1439         * PluginProcess/WebProcessConnection.cpp:
1440         (WebKit::WebProcessConnection::addPluginControllerProxy):
1441         (WebKit::WebProcessConnection::removePluginControllerProxy):
1442         (WebKit::WebProcessConnection::createPluginInternal):
1443         * PluginProcess/WebProcessConnection.h:
1444         * Shared/API/c/cg/WKImageCG.cpp:
1445         (WKImageCreateFromCGImage):
1446         * Shared/BlockingResponseMap.h:
1447         (BlockingResponseMap::waitForResponse):
1448         (BlockingResponseMap::didReceiveResponse):
1449         * Shared/Downloads/Download.cpp:
1450         * Shared/Downloads/Download.h:
1451         * Shared/Downloads/DownloadManager.cpp:
1452         (WebKit::DownloadManager::startDownload):
1453         (WebKit::DownloadManager::convertHandleToDownload):
1454         * Shared/FileAPI/BlobRegistrationData.cpp:
1455         (WebKit::BlobRegistrationData::BlobRegistrationData):
1456         (WebKit::BlobRegistrationData::releaseData):
1457         (WebKit::BlobRegistrationData::decode):
1458         * Shared/FileAPI/BlobRegistrationData.h:
1459         * Shared/Plugins/NPObjectMessageReceiver.cpp:
1460         * Shared/Plugins/NPObjectMessageReceiver.h:
1461         * Shared/Plugins/NPRemoteObjectMap.cpp:
1462         (WebKit::NPRemoteObjectMap::registerNPObject):
1463         * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
1464         (WebKit::NetscapePluginModule::tryLoad):
1465         * Shared/Plugins/Netscape/NetscapePluginModule.h:
1466         * Shared/ShareableBitmap.h:
1467         * Shared/WebURL.h:
1468         (WebKit::WebURL::create):
1469         (WebKit::WebURL::WebURL):
1470         (WebKit::WebURL::parseURLIfNecessary):
1471         * Shared/cg/ShareableBitmapCG.cpp:
1472         (WebKit::ShareableBitmap::createGraphicsContext):
1473         (WebKit::ShareableBitmap::makeCGImageCopy):
1474         * Shared/mac/SecItemShim.cpp:
1475         (WebKit::sendSecItemRequest):
1476         (WebKit::webSecItemCopyMatching):
1477         (WebKit::webSecItemAdd):
1478         (WebKit::webSecItemUpdate):
1479         (WebKit::webSecItemDelete):
1480         (WebKit::SecItemShim::secItemResponse):
1481         * UIProcess/API/mac/FindIndicatorWindow.h:
1482         * UIProcess/API/mac/PageClientImpl.h:
1483         * UIProcess/API/mac/PageClientImpl.mm:
1484         (WebKit::PageClientImpl::createDrawingAreaProxy):
1485         * UIProcess/API/mac/WKView.mm:
1486         (-[WKView std::WebKit::]):
1487         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1488         * UIProcess/API/mac/WKViewInternal.h:
1489         * UIProcess/BackingStore.cpp:
1490         * UIProcess/BackingStore.h:
1491         * UIProcess/DrawingAreaProxyImpl.cpp:
1492         (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
1493         * UIProcess/DrawingAreaProxyImpl.h:
1494         * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
1495         * UIProcess/PageClient.h:
1496         * UIProcess/WebPageProxy.h:
1497         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
1498         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
1499         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
1500         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
1501         (WebKit::BlobRegistryProxy::registerBlobURL):
1502         * WebProcess/FileAPI/BlobRegistryProxy.h:
1503         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
1504         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
1505         (WKBundlePageBannerCreateBannerWithCALayer):
1506         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1507         (WebKit::imageForRect):
1508         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1509         (WebKit::NetscapePlugin::scheduleTimer):
1510         (WebKit::NetscapePlugin::unscheduleTimer):
1511         (WebKit::NetscapePlugin::snapshot):
1512         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1513         * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
1514         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1515         (WebKit::PDFPlugin::snapshot):
1516         * WebProcess/Plugins/PluginProxy.cpp:
1517         (WebKit::PluginProxy::paint):
1518         (WebKit::PluginProxy::update):
1519         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
1520         (WebKit::convertImageToBitmap):
1521         * WebProcess/WebPage/DrawingArea.cpp:
1522         (WebKit::DrawingArea::create):
1523         * WebProcess/WebPage/DrawingArea.h:
1524         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1525         (WebKit::DrawingAreaImpl::display):
1526         * WebProcess/WebPage/DrawingAreaImpl.h:
1527         * WebProcess/WebPage/FindController.cpp:
1528         (WebKit::FindController::getFindIndicatorBitmapAndRect):
1529         * WebProcess/WebPage/WebFrame.cpp:
1530         (WebKit::WebFrame::createWithCoreMainFrame):
1531         (WebKit::WebFrame::createSubframe):
1532         (WebKit::WebFrame::create):
1533         (WebKit::WebFrame::WebFrame):
1534         * WebProcess/WebPage/WebFrame.h:
1535         * WebProcess/WebPage/WebPage.cpp:
1536         (WebKit::WebPage::scaledSnapshotWithOptions):
1537         (WebKit::WebPage::drawRectToImage):
1538         * WebProcess/WebPage/WebPage.h:
1539         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1540         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1541         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1542         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1543         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1544         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
1545         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1546         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1547
1548 2013-09-27  Anders Carlsson  <andersca@apple.com>
1549
1550         Message sending functions should only accept rvalues
1551         https://bugs.webkit.org/show_bug.cgi?id=122041
1552
1553         Reviewed by Andreas Kling.
1554
1555         In order to safely encode move-only types, make all send variants accept rvalues only, except
1556         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
1557         to send a move-only type in a message will fail to compile.
1558
1559         * NetworkProcess/NetworkResourceLoader.h:
1560         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
1561         * Platform/CoreIPC/Connection.h:
1562         (CoreIPC::Connection::send):
1563         (CoreIPC::Connection::sendSync):
1564         * Platform/CoreIPC/MessageSender.h:
1565         (CoreIPC::MessageSender::sendSync):
1566         * Shared/ChildProcessProxy.h:
1567         (WebKit::ChildProcessProxy::send):
1568         (WebKit::ChildProcessProxy::sendSync):
1569         * UIProcess/WebContext.h:
1570         (WebKit::WebContext::sendToNetworkingProcess):
1571         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
1572         (WebKit::WebContext::sendToAllProcesses):
1573         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
1574         (WebKit::WebContext::sendToOneProcess):
1575         * UIProcess/WebPageGroup.h:
1576         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1577
1578 2013-09-30  Benjamin Poulain  <benjamin@webkit.org>
1579
1580         Remove the code guarded by STYLE_SCOPED
1581         https://bugs.webkit.org/show_bug.cgi?id=122123
1582
1583         Reviewed by Anders Carlsson.
1584
1585         * Configurations/FeatureDefines.xcconfig:
1586
1587 2013-09-30  Csaba Osztrogonác  <ossy@webkit.org>
1588
1589         NetworkResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
1590         https://bugs.webkit.org/show_bug.cgi?id=122110
1591
1592         Reviewed by Darin Adler.
1593
1594         * NetworkProcess/NetworkResourceLoader.messages.in:
1595
1596 2013-09-30  Mark Rowe  <mrowe@apple.com>
1597
1598         Fix the build when building against an SDK.
1599
1600         Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
1601         the compiler command lines. It can't know to do this for the system framework search paths
1602         we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
1603
1604         * Configurations/BaseTarget.xcconfig:
1605
1606 2013-09-30  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1607
1608         [Qt] Fix force_static_libs_as_shared in WebKit2
1609         https://bugs.webkit.org/show_bug.cgi?id=121961
1610
1611         Reviewed by Csaba Osztrogonác.
1612
1613         Get rid of the unused WebKit2QML library
1614
1615         * Target.pri:
1616         * WebKit2.pro:
1617         * WebKit2QML.pri: Removed.
1618
1619 2013-09-29  Mark Rowe  <mrowe@apple.com>
1620
1621         Fix the Lion build.
1622
1623         Ensure that C++ and Objective-C++ files build with the right compiler flags.
1624
1625         * Configurations/BaseTarget.xcconfig:
1626
1627 2013-09-29  Sam Weinig  <sam@webkit.org>
1628
1629         Fix the build.
1630
1631         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1632         (WebKit::NPRuntimeObjectMap::evaluate):
1633
1634 2013-09-28  Mark Rowe  <mrowe@apple.com>
1635
1636         Fix some failures with newer versions of clang.
1637
1638         Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
1639         usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
1640         as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
1641         flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
1642         in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
1643
1644         Reviewed by Dan Bernstein.
1645
1646         * Configurations/BaseTarget.xcconfig:
1647         * Configurations/DebugRelease.xcconfig:
1648
1649 2013-09-28  Mark Rowe  <mrowe@apple.com>
1650
1651         Take Xcode's advice and enable some extra warnings.
1652
1653         Reviewed by Sam Weinig.
1654
1655         * Configurations/Base.xcconfig:
1656         * WebKit2.xcodeproj/project.pbxproj:
1657
1658 2013-09-28  Darin Adler  <darin@apple.com>
1659
1660         Add Frame::mainFrame and Frame::isMainFrame
1661         https://bugs.webkit.org/show_bug.cgi?id=122064
1662
1663         Reviewed by Andreas Kling.
1664
1665         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1666         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrameView):
1667         Call isMainFrame.
1668
1669 2013-09-27  Anders Carlsson  <andersca@apple.com>
1670
1671         Message sending functions should only accept rvalues
1672         https://bugs.webkit.org/show_bug.cgi?id=122041
1673
1674         Reviewed by Andreas Kling.
1675
1676         In order to safely encode move-only types, make all send variants accept rvalues only, except
1677         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
1678         to send a move-only type in a message will fail to compile.
1679
1680         * NetworkProcess/NetworkResourceLoader.h:
1681         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
1682         * Platform/CoreIPC/Connection.h:
1683         (CoreIPC::Connection::send):
1684         (CoreIPC::Connection::sendSync):
1685         * Platform/CoreIPC/MessageSender.h:
1686         (CoreIPC::MessageSender::sendSync):
1687         * Shared/ChildProcessProxy.h:
1688         (WebKit::ChildProcessProxy::send):
1689         (WebKit::ChildProcessProxy::sendSync):
1690         * UIProcess/WebContext.h:
1691         (WebKit::WebContext::sendToNetworkingProcess):
1692         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
1693         (WebKit::WebContext::sendToAllProcesses):
1694         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
1695         (WebKit::WebContext::sendToOneProcess):
1696         * UIProcess/WebPageGroup.h:
1697         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1698
1699 2013-09-28  Philippe Normand  <pnormand@igalia.com>
1700
1701         Unreviewed GTK build fix after r156560.
1702
1703         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1704         (WebKit::LayerTreeHostGtk::paintContents):
1705         (WebKit::LayerTreeHostGtk::createPageOverlayLayer):
1706         (WebKit::LayerTreeHostGtk::destroyPageOverlayLayer):
1707         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1708
1709 2013-09-28  Mark Rowe  <mrowe@apple.com>
1710
1711         WebKit2 fails to build with newer versions of clang.
1712
1713         Reviewed by Anders Carlsson.
1714
1715         * Shared/VisitedLinkTable.cpp: #if a function that's only used inside an ASSERT.
1716         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Remove an unused constant.
1717         * UIProcess/mac/WKFullScreenWindowController.mm: Ditto.
1718         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Ditto.
1719         * WebProcess/WebPage/FindController.cpp: Ditto.
1720         * WebProcess/WebPage/WebBackForwardListProxy.cpp: Remove two unused constants.
1721
1722 2013-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1723
1724         CookieStorageShim should be PLATFORM(MAC) guarded
1725         https://bugs.webkit.org/show_bug.cgi?id=121423
1726
1727         Reviewed by Darin Adler.
1728
1729         Original patch by Kwang Yul Seo <skyul@company100.com>.
1730
1731         * WebProcess/WebProcess.cpp:
1732         (WebKit::WebProcess::initializeWebProcess):
1733
1734 2013-09-27  Enrica Casucci  <enrica@apple.com>
1735
1736         Upstream changes to Pasteboard implementation for iOS.
1737         https://bugs.webkit.org/show_bug.cgi?id=121818
1738
1739         Reviewed by Benjamin Poulain.
1740
1741         * Shared/WebCoreArgumentCoders.cpp:
1742         (CoreIPC::decodeSharedBuffer):
1743         * Shared/WebCoreArgumentCoders.h:
1744         * UIProcess/WebContext.h:
1745         * UIProcess/WebContext.messages.in:
1746         * UIProcess/mac/WebContextMac.mm:
1747         (WebKit::WebContext::writeWebContentToPasteboard):
1748         (WebKit::WebContext::writeImageToPasteboard):
1749         (WebKit::WebContext::writeStringToPasteboard):
1750         (WebKit::WebContext::readStringFromPasteboard):
1751         (WebKit::WebContext::readURLFromPasteboard):
1752         (WebKit::WebContext::readBufferFromPasteboard):
1753         (WebKit::WebContext::getPasteboardItemsCount):
1754         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1755         (WebKit::WebPlatformStrategies::writeToPasteboard):
1756         (WebKit::WebPlatformStrategies::getPasteboardItemsCount):
1757         (WebKit::WebPlatformStrategies::readBufferFromPasteboard):
1758         (WebKit::WebPlatformStrategies::readURLFromPasteboard):
1759         (WebKit::WebPlatformStrategies::readStringFromPasteboard):
1760         (WebKit::WebPlatformStrategies::changeCount):
1761         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1762
1763 2013-09-27  Ralph Thomas  <ralpht@gmail.com>
1764
1765         [WK2][CoordinatedGraphics] fix build after r156560
1766         https://bugs.webkit.org/show_bug.cgi?id=122028
1767
1768         Fixing build.
1769
1770         Reviewed by Anders Carlsson.
1771
1772         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1773         (WebKit::CoordinatedLayerTreeHost::paintLayerContents):
1774         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1775
1776 2013-09-27  Anders Carlsson  <andersca@apple.com>
1777
1778         Use std::unique_ptr for GraphicsLayer creation
1779         https://bugs.webkit.org/show_bug.cgi?id=122020
1780
1781         Reviewed by Antti Koivisto.
1782
1783         * UIProcess/mac/RemoteLayerTreeHost.h:
1784         * UIProcess/mac/RemoteLayerTreeHost.mm:
1785         (WebKit::RemoteLayerTreeHost::getOrCreateLayer):
1786         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1787         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1788         (WebKit::LayerTreeHostMac::paintContents):
1789         (WebKit::LayerTreeHostMac::createPageOverlayLayer):
1790         (WebKit::LayerTreeHostMac::destroyPageOverlayLayer):
1791         * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
1792         * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
1793         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1794         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1795         (WebKit::RemoteLayerTreeContext::createGraphicsLayer):
1796         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1797         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1798         (WebKit::TiledCoreAnimationDrawingArea::paintContents):
1799         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
1800         (WebKit::TiledCoreAnimationDrawingArea::destroyPageOverlayLayer):
1801
1802 2013-09-27  Beth Dakin  <bdakin@apple.com>
1803
1804         ScrollbarPainterController should adopt the api to lock overlay scrollbar state
1805         https://bugs.webkit.org/show_bug.cgi?id=121928
1806
1807         Reviewed by Sam Weinig.
1808
1809         This function no longer needs to be implemented by ScrollablArea subclasses.
1810         * WebProcess/Plugins/PDF/PDFPlugin.h:
1811         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1812
1813 2013-09-27  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
1814
1815         Web Inspector: Make WebKitGTK+ port work with Eclipse chromedevtools plugin
1816         https://bugs.webkit.org/show_bug.cgi?id=121121
1817
1818         Reviewed by Gustavo Noronha Silva.
1819
1820         The chromedevtools plugin (http://code.google.com/p/chromedevtools/) requires a specific
1821         json format to connect to the webkit inspector.
1822
1823         The current format is missing some required fields that make the connection with the plugin
1824         fail.
1825
1826         The format expected by the plugin is as follows:
1827           {
1828            "title": "Foo",
1829            "url": "http://foo",
1830            "devtoolsFrontendUrl": "/Main.html?ws=localhost:9222/devtools/page/1",
1831            "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/1"
1832           }
1833
1834         The current format is missing the entries for "devtoolsFrontendUrl" and
1835         "webSocketDebuggerUrl".
1836
1837         The plugin also sends an HTTP GET request to http://host:port/json instead of
1838         http://host:port/pagelist.json when retrieving the pages list.
1839
1840         This patch fixes the issues by adding support for the missing fields and accepting requests
1841         for "/json" alongside "/pagelist.json".
1842
1843         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
1844         (WebKit::WebInspectorServer::platformResourceForPath):
1845         Also accept requests for "/json" alongside "pagelist.json".
1846         (WebKit::WebInspectorServer::buildPageList):
1847         Add fields required by chromedevtools plugin.
1848
1849 2013-09-26  Darin Adler  <darin@apple.com>
1850
1851         rename KURL to URL
1852         https://bugs.webkit.org/show_bug.cgi?id=16214
1853
1854         Reviewed by Andreas Kling.
1855
1856         * many files: Renamed, using script.
1857
1858 2013-09-27  Peter Gal  <galpeter@inf.u-szeged.hu>
1859
1860         Remove unused method parameters from TupleCoder.
1861         https://bugs.webkit.org/show_bug.cgi?id=122009
1862
1863         Reviewed by Anders Carlsson.
1864
1865         In case of TupleCoder<0, Elements...> the parameter
1866         names for encoder, decoder and tuple are not used.
1867         By removing the paramter names the unusued paramter
1868         warning will disappear.
1869
1870         * Platform/CoreIPC/Arguments.h:
1871
1872 2013-09-06  Jer Noble  <jer.noble@apple.com>
1873
1874         [Mac] Implement the media controls in JavaScript.
1875         https://bugs.webkit.org/show_bug.cgi?id=120895
1876
1877         Reviewed by Dean Jackson.
1878
1879         Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
1880
1881         * Configurations/FeatureDefines.xcconfig:
1882
1883 2013-09-27  Darin Adler  <darin@apple.com>
1884
1885         Add empty MainFrame class
1886         https://bugs.webkit.org/show_bug.cgi?id=121770
1887
1888         Reviewed by Andreas Kling.
1889
1890         * WebProcess/FullScreen/WebFullScreenManager.cpp:
1891         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1892         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1893         * WebProcess/Plugins/PluginView.cpp:
1894         * WebProcess/Storage/StorageAreaMap.cpp:
1895         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1896         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1897         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1898         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1899         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
1900         * WebProcess/WebPage/FindController.cpp:
1901         * WebProcess/WebPage/PageOverlay.cpp:
1902         * WebProcess/WebPage/WebInspector.cpp:
1903         * WebProcess/WebPage/WebPage.cpp:
1904         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
1905         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1906         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1907         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1908         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1909         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
1910         * WebProcess/WebPage/mac/WebPageMac.mm:
1911         Include MainFrame.h instead of Frame.h as needed.
1912
1913 2013-09-27  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1914
1915         [Qt] Fix force_static_libs_as_shared in WebKit2
1916         https://bugs.webkit.org/show_bug.cgi?id=121961
1917
1918         Reviewed by Csaba Osztrogonác.
1919
1920         Do not add strict ordering for webkit2qml. It is not needed and causes
1921         Target.pri to be built out of order.
1922
1923         * WebKit2.pro:
1924
1925 2013-09-26  Anders Carlsson  <andersca@apple.com>
1926
1927         Remove Windows code
1928         https://bugs.webkit.org/show_bug.cgi?id=121988
1929
1930         Reviewed by Antti Koivisto.
1931
1932         * Platform/CoreIPC/Connection.h:
1933         * Platform/CoreIPC/win/ConnectionWin.cpp: Removed.
1934         * Platform/SharedMemory.h:
1935         * Platform/WorkQueue.h:
1936         * Platform/win/SharedMemoryWin.cpp: Removed.
1937         * Platform/win/WorkQueueWin.cpp: Removed.
1938         * Shared/ChildProcess.cpp:
1939         * Shared/ChildProcessProxy.cpp:
1940         (WebKit::ChildProcessProxy::didFinishLaunching):
1941         * UIProcess/Plugins/PluginInfoStore.cpp:
1942         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1943         * WebProcess/WebProcess.cpp:
1944
1945 2013-09-26  Anders Carlsson  <andersca@apple.com>
1946
1947         Stop using PassWeak
1948         https://bugs.webkit.org/show_bug.cgi?id=121968
1949
1950         Reviewed by Sam Weinig.
1951
1952         Update for JavaScriptCore changes.
1953
1954         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1955         (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
1956
1957 2013-09-25  Jer Noble  <jer.noble@apple.com>
1958
1959         [WK2] Crash at at com.apple.WebKit2: WebKit::VoidCallback::invalidate + 46
1960         https://bugs.webkit.org/show_bug.cgi?id=121910
1961
1962         Reviewed by Darin Adler.
1963
1964         Store a copy of the VoidCallback passed to WKPage, and invalidate the callback
1965         during dealloc. The VoidCallback class assumes that it will only ever be
1966         invalidated or invoked once, so change the ASSERTs into an early return.
1967
1968         * UIProcess/GenericCallback.h:
1969         (WebKit::VoidCallback::performCallback): Exit early if previously invalidated.
1970         (WebKit::VoidCallback::invalidate): Ditto.
1971         * UIProcess/mac/WKFullScreenWindowController.h:
1972         * UIProcess/mac/WKFullScreenWindowController.mm:
1973         (-[WKFullScreenWindowController dealloc]): Invalidate the repaint callback if present.
1974         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Ditto & create a new callback.
1975         (-[WKFullScreenWindowController completeFinishExitFullScreenAnimationAfterRepaint]): Clear the callback.
1976
1977 2013-09-26  Tim Horton  <timothy_horton@apple.com>
1978
1979         Tiled drawing should not imply threaded scrolling
1980         https://bugs.webkit.org/show_bug.cgi?id=121874
1981         <rdar://problem/15071494>
1982
1983         Reviewed by Sam Weinig.
1984
1985         * Shared/DrawingAreaInfo.h:
1986         We can have DrawingAreaTypeTiledCoreAnimation without threaded scrolling.
1987
1988         * Shared/WebPreferencesStore.h:
1989         * UIProcess/API/C/WKPreferences.cpp:
1990         (WKPreferencesSetThreadedScrollingEnabled):
1991         (WKPreferencesGetThreadedScrollingEnabled):
1992         * UIProcess/API/C/WKPreferencesPrivate.h:
1993         Add a preference for threaded scrolling.
1994
1995         * UIProcess/API/mac/WKView.mm:
1996         (-[WKView WebKit::]):
1997         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
1998         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
1999         * WebProcess/WebPage/DrawingArea.cpp:
2000         (WebKit::DrawingArea::create):
2001         * WebProcess/WebPage/DrawingArea.h:
2002         Make it so we can use TiledCoreAnimationDrawingArea without ENABLE(THREADED_SCROLLING).
2003
2004         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2005         (WebKit::WebChromeClient::shouldUseTiledBackingForFrame):
2006         * WebProcess/WebCoreSupport/WebChromeClient.h:
2007         Override shouldUseTiledBackingForFrame; ask the drawing area if we want a tiled backing for the given frame.
2008
2009         * WebProcess/WebPage/WebPage.cpp:
2010         (WebKit::WebPage::WebPage):
2011         (WebKit::WebPage::~WebPage):
2012         * WebProcess/WebPage/WebPage.h:
2013         Move attaching and detaching the scrolling tree into WebPage.
2014         Store whether or not this page is going to use threaded scrolling once, as this
2015         cannot change through the life of a page.
2016
2017         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2018         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2019         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
2020         (WebKit::TiledCoreAnimationDrawingArea::~TiledCoreAnimationDrawingArea):
2021         Move attaching and detaching the scrolling tree into WebPage.
2022
2023         (WebKit::TiledCoreAnimationDrawingArea::didInstallPageOverlay):
2024         (WebKit::TiledCoreAnimationDrawingArea::didUninstallPageOverlay):
2025         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
2026         (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
2027         Only do scrolling coordinator work if we have a scrolling coordinator.
2028
2029         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrame):
2030         TiledCoreAnimationDrawingArea always wants a tiled backing for the main frame.
2031
2032 2013-09-25  Minju Kim  <pmuarteo@gmail.com>
2033
2034         8 bytes memory leaks in WebProcessMainQt.cpp when proxy is initialized
2035         https://bugs.webkit.org/show_bug.cgi?id=118515
2036
2037         Reviewed by Christophe Dumez.
2038
2039         * WebProcess/qt/WebProcessMainQt.cpp:
2040         (WebKit::initializeProxy): Handled EnvHttpProxyFactory by using OwnPtr
2041         to avoid memory leak when it isn't handled by NetworkProxyFactory
2042
2043 2013-09-25  Brady Eidson  <beidson@apple.com>
2044
2045         Enable the IndexedDB build on Mac, but leave the feature non-functional
2046         https://bugs.webkit.org/show_bug.cgi?id=121918
2047
2048         Reviewed by Alexey Proskuryakov.
2049
2050         * Configurations/FeatureDefines.xcconfig:
2051
2052 2013-09-25  Commit Queue  <commit-queue@webkit.org>
2053
2054         Unreviewed, rolling out r156432.
2055         http://trac.webkit.org/changeset/156432
2056         https://bugs.webkit.org/show_bug.cgi?id=121932
2057
2058         some integer conversion things that need brady to fix
2059         (Requested by thorton on #webkit).
2060
2061         * Configurations/FeatureDefines.xcconfig:
2062
2063 2013-09-25  Brady Eidson  <beidson@apple.com>
2064
2065         Enable the IndexedDB build on Mac, but leave the feature non-functional
2066         https://bugs.webkit.org/show_bug.cgi?id=121918
2067
2068         Reviewed by Alexey Proskuryakov.
2069
2070         * Configurations/FeatureDefines.xcconfig:
2071
2072 2013-09-25  Brent Fulgham  <bfulgham@apple.com>
2073
2074         Refactor RuntimeEnabledFeatures as a Singleton.
2075         https://bugs.webkit.org/show_bug.cgi?id=121883.
2076
2077         Reviewed by Jer Noble.
2078
2079         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2080         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Use
2081         Singleton accessor.
2082         (WebKit::InjectedBundle::setShadowDOMEnabled):
2083         (WebKit::InjectedBundle::setCSSRegionsEnabled):
2084         (WebKit::InjectedBundle::setCSSCompositingEnabled):
2085         (WebKit::InjectedBundle::setSeamlessIFramesEnabled):
2086         * WebProcess/WebPage/WebPage.cpp:
2087         (WebKit::WebPage::updatePreferences): Ditto.
2088         * WebProcess/qt/WebProcessQt.cpp:
2089         (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
2090
2091 2013-09-25  Brady Eidson  <beidson@apple.com>
2092
2093         FeatureDefine.xcconfig cleanup (They should all be identical).
2094         https://bugs.webkit.org/show_bug.cgi?id=121921
2095
2096         Reviewed by Mark Rowe.
2097
2098         * Configurations/FeatureDefines.xcconfig:
2099
2100 2013-09-25  Anders Carlsson  <andersca@apple.com>
2101
2102         Use tuples for encoding IPC messages
2103         https://bugs.webkit.org/show_bug.cgi?id=121924
2104
2105         Reviewed by Andreas Kling.
2106
2107         Yet another step towards getting rid of the Arguments hierarchy.
2108
2109         * Platform/CoreIPC/Connection.h:
2110         (CoreIPC::Connection::send):
2111         (CoreIPC::Connection::sendSync):
2112         * Platform/CoreIPC/HandleMessage.h:
2113         (CoreIPC::handleMessage):
2114         (CoreIPC::handleMessageVariadic):
2115         (CoreIPC::handleMessageDelayed):
2116         * Platform/CoreIPC/MessageSender.h:
2117         (CoreIPC::MessageSender::send):
2118         * Scripts/webkit2/messages.py:
2119         (arguments_type_old):
2120         (arguments_type):
2121         (reply_type):
2122         (decode_type):
2123         (delayed_reply_type):
2124         (message_to_struct_declaration):
2125         * Scripts/webkit2/messages_unittest.py:
2126         (LoadURL):
2127         (std):
2128         (TouchEvent):
2129         (DidReceivePolicyDecision):
2130         (Close):
2131         (PreferencesDidChange):
2132         (SendDoubleAndFloat):
2133         (SendInts):
2134         (CreatePlugin):
2135         (RunJavaScriptAlert):
2136         (GetPlugins):
2137         (GetPluginProcessConnection):
2138         (TestMultipleAttributes):
2139         (TestParameterAttributes):
2140         (TemplateTest):
2141         (DidCreateWebProcessConnection):
2142         (InterpretKeyEvent):
2143         (DeprecatedOperation):
2144         (ExperimentalOperation):
2145         * Shared/ChildProcessProxy.h:
2146         (WebKit::ChildProcessProxy::send):
2147
2148 2013-09-25  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2149
2150         [Qt] Fix build with Qt 5.2 QtPosition module
2151         https://bugs.webkit.org/show_bug.cgi?id=121089
2152
2153         Reviewed by Simon Hausmann.
2154
2155         QtLocation -> QtPositioning
2156
2157         * Target.pri:
2158         * UIProcess/qt/WebGeolocationProviderQt.cpp:
2159         * WebKit2.pri:
2160
2161 2013-09-24  Sam Weinig  <sam@webkit.org>
2162
2163         Remove erroneous reference to libWTF.a in the WebKit2 Xcode project file.
2164
2165         Rubber-stamped by Alexey Proskuryakov.
2166
2167         * WebKit2.xcodeproj/project.pbxproj:
2168
2169 2013-09-24  Sam Weinig  <sam@webkit.org>
2170
2171         Remove the Windows-specific rules from WebKit2's DerivedSources.make, Windows is not supported anymore
2172         https://bugs.webkit.org/show_bug.cgi?id=121895
2173
2174         Reviewed by Alexey Proskuryakov.
2175
2176         * DerivedSources.make:
2177         Remove Windows-specific rules, and, now that only the Mac is using this file, remove the
2178         Mac checks.
2179
2180 2013-09-24  Anders Carlsson  <andersca@apple.com>
2181
2182         Only allow rvalues to be passed as synchronous message replies
2183         https://bugs.webkit.org/show_bug.cgi?id=121870
2184
2185         Reviewed by Andreas Kling.
2186
2187         This lets us get rid of a nasty const cast and is more logical.
2188
2189         * Platform/CoreIPC/Connection.h:
2190         (CoreIPC::Connection::sendSync):
2191         * Platform/CoreIPC/MessageSender.h:
2192         (CoreIPC::MessageSender::send):
2193         (CoreIPC::MessageSender::sendSync):
2194         * Shared/ChildProcessProxy.h:
2195         (WebKit::ChildProcessProxy::sendSync):
2196
2197 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
2198
2199         Unreviewed buildfix.
2200
2201         * UIProcess/WebNetworkInfoManagerProxy.h:
2202
2203 2013-09-24  Alexey Proskuryakov  <ap@apple.com>
2204
2205         Fix Mac build now.
2206         
2207         * UIProcess/WebContext.messages.in:
2208
2209 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
2210
2211         Unreviewed buildfix after r156350.
2212
2213         It seems that nested ifdefs don't work in messages.in files, so don't use them.
2214
2215         * UIProcess/WebContext.messages.in:
2216
2217 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
2218
2219         Unreviewed buildfix after r156354 and r156360.
2220
2221         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2222         (CoreIPC::Connection::processMessage):
2223         (CoreIPC::Connection::sendOutgoingMessage):
2224
2225 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
2226
2227         Unreviewed buildfix after r156349.
2228
2229         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2230         (CoreIPC::Connection::processMessage):
2231
2232 2013-09-24  Anders Carlsson  <andersca@apple.com>
2233
2234         Use std::unique_ptr for decoders as well
2235         https://bugs.webkit.org/show_bug.cgi?id=121868
2236
2237         Reviewed by Andreas Kling.
2238
2239         * Platform/CoreIPC/Connection.cpp:
2240         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
2241         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
2242         (CoreIPC::Connection::waitForMessage):
2243         (CoreIPC::Connection::sendSyncMessage):
2244         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2245         (CoreIPC::Connection::waitForSyncReply):
2246         (CoreIPC::Connection::processIncomingSyncReply):
2247         (CoreIPC::Connection::processIncomingMessage):
2248         (CoreIPC::Connection::enqueueIncomingMessage):
2249         (CoreIPC::Connection::dispatchMessage):
2250         (CoreIPC::Connection::dispatchOneMessage):
2251         * Platform/CoreIPC/Connection.h:
2252         (CoreIPC::Connection::sendSync):
2253         (CoreIPC::Connection::waitForAndDispatchImmediately):
2254         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2255         (CoreIPC::createMessageDecoder):
2256         (CoreIPC::Connection::receiveSourceEventHandler):
2257         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2258         (WebKit::InjectedBundle::postSynchronousMessage):
2259
2260 2013-09-24  Anders Carlsson  <andersca@apple.com>
2261
2262         Move MessageEncoder and ArgumentEncoder to std::unique_ptr
2263         https://bugs.webkit.org/show_bug.cgi?id=121861
2264
2265         Reviewed by Andreas Kling.
2266
2267         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2268         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
2269         * NetworkProcess/NetworkConnectionToWebProcess.h:
2270         * NetworkProcess/NetworkProcess.cpp:
2271         (WebKit::NetworkProcess::didReceiveSyncMessage):
2272         * NetworkProcess/NetworkProcess.h:
2273         * Platform/CoreIPC/Connection.cpp:
2274         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
2275         (CoreIPC::Connection::createSyncMessageEncoder):
2276         (CoreIPC::Connection::sendMessage):
2277         (CoreIPC::Connection::sendSyncReply):
2278         (CoreIPC::Connection::sendSyncMessage):
2279         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2280         (CoreIPC::Connection::sendOutgoingMessages):
2281         (CoreIPC::Connection::dispatchSyncMessage):
2282         * Platform/CoreIPC/Connection.h:
2283         (CoreIPC::Connection::send):
2284         (CoreIPC::Connection::sendSync):
2285         * Platform/CoreIPC/HandleMessage.h:
2286         (CoreIPC::handleMessageDelayed):
2287         * Platform/CoreIPC/MessageReceiver.h:
2288         (CoreIPC::MessageReceiver::didReceiveSyncMessage):
2289         * Platform/CoreIPC/MessageReceiverMap.cpp:
2290         (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
2291         * Platform/CoreIPC/MessageReceiverMap.h:
2292         * Platform/CoreIPC/MessageSender.cpp:
2293         (CoreIPC::MessageSender::sendMessage):
2294         * Platform/CoreIPC/MessageSender.h:
2295         (CoreIPC::MessageSender::send):
2296         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2297         (CoreIPC::Connection::open):
2298         (CoreIPC::Connection::sendOutgoingMessage):
2299         * PluginProcess/PluginControllerProxy.h:
2300         * PluginProcess/WebProcessConnection.cpp:
2301         (WebKit::WebProcessConnection::didReceiveSyncMessage):
2302         * PluginProcess/WebProcessConnection.h:
2303         * Scripts/webkit2/messages.py:
2304         (message_to_struct_declaration):
2305         (generate_message_handler):
2306         * Scripts/webkit2/messages_unittest.py:
2307         * Shared/ChildProcessProxy.cpp:
2308         (WebKit::ChildProcessProxy::sendMessage):
2309         (WebKit::ChildProcessProxy::dispatchSyncMessage):
2310         (WebKit::ChildProcessProxy::didFinishLaunching):
2311         * Shared/ChildProcessProxy.h:
2312         (WebKit::ChildProcessProxy::send):
2313         * Shared/Plugins/NPObjectMessageReceiver.h:
2314         * Shared/Plugins/NPRemoteObjectMap.cpp:
2315         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
2316         * Shared/Plugins/NPRemoteObjectMap.h:
2317         * Shared/WebConnection.cpp:
2318         (WebKit::WebConnection::postMessage):
2319         * UIProcess/Downloads/DownloadProxy.h:
2320         * UIProcess/Network/NetworkProcessProxy.cpp:
2321         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
2322         * UIProcess/Network/NetworkProcessProxy.h:
2323         * UIProcess/Plugins/PluginProcessProxy.h:
2324         * UIProcess/Storage/StorageManager.h:
2325         * UIProcess/WebContext.cpp:
2326         (WebKit::WebContext::dispatchSyncMessage):
2327         (WebKit::WebContext::didReceiveSyncMessage):
2328         * UIProcess/WebContext.h:
2329         * UIProcess/WebFullScreenManagerProxy.h:
2330         * UIProcess/WebIconDatabase.h:
2331         * UIProcess/WebInspectorProxy.h:
2332         * UIProcess/WebPageProxy.h:
2333         * UIProcess/WebProcessProxy.cpp:
2334         (WebKit::WebProcessProxy::didReceiveSyncMessage):
2335         * UIProcess/WebProcessProxy.h:
2336         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2337         (WebKit::InjectedBundle::postMessage):
2338         (WebKit::InjectedBundle::postSynchronousMessage):
2339         * WebProcess/Network/NetworkProcessConnection.cpp:
2340         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
2341         * WebProcess/Network/NetworkProcessConnection.h:
2342         * WebProcess/Plugins/PluginProcessConnection.cpp:
2343         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
2344         * WebProcess/Plugins/PluginProcessConnection.h:
2345         * WebProcess/Plugins/PluginProxy.h:
2346         * WebProcess/WebPage/WebPage.cpp:
2347         (WebKit::WebPage::didReceiveSyncMessage):
2348         * WebProcess/WebPage/WebPage.h:
2349         * WebProcess/WebProcess.cpp:
2350         (WebKit::WebProcess::didReceiveSyncMessage):
2351         * WebProcess/WebProcess.h:
2352
2353 2013-09-24  Anders Carlsson  <andersca@apple.com>
2354
2355         Remove encoder create functions
2356         https://bugs.webkit.org/show_bug.cgi?id=121853
2357
2358         Reviewed by Sam Weinig.
2359
2360         * Platform/CoreIPC/ArgumentEncoder.cpp:
2361         * Platform/CoreIPC/ArgumentEncoder.h:
2362         * Platform/CoreIPC/Connection.cpp:
2363         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
2364         (CoreIPC::Connection::createSyncMessageEncoder):
2365         (CoreIPC::Connection::dispatchSyncMessage):
2366         * Platform/CoreIPC/Connection.h:
2367         (CoreIPC::Connection::send):
2368         * Platform/CoreIPC/MessageEncoder.cpp:
2369         (CoreIPC::MessageEncoder::setIsSyncMessage):
2370         * Platform/CoreIPC/MessageEncoder.h:
2371         * Platform/CoreIPC/MessageSender.h:
2372         (CoreIPC::MessageSender::send):
2373         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2374         (CoreIPC::Connection::open):
2375         * Shared/ChildProcessProxy.h:
2376         (WebKit::ChildProcessProxy::send):
2377         * Shared/WebConnection.cpp:
2378         (WebKit::WebConnection::postMessage):
2379         * UIProcess/WebContext.cpp:
2380         (WebKit::WebContext::createNewWebProcess):
2381         (WebKit::WebContext::postMessageToInjectedBundle):
2382         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2383         (WebKit::InjectedBundle::postMessage):
2384         * WebProcess/WebPage/EncoderAdapter.cpp:
2385         (WebKit::EncoderAdapter::EncoderAdapter):
2386         (WebKit::EncoderAdapter::dataReference):
2387         (WebKit::EncoderAdapter::encodeBytes):
2388         (WebKit::EncoderAdapter::encodeBool):
2389         (WebKit::EncoderAdapter::encodeUInt16):
2390         (WebKit::EncoderAdapter::encodeUInt32):
2391         (WebKit::EncoderAdapter::encodeUInt64):
2392         (WebKit::EncoderAdapter::encodeInt32):
2393         (WebKit::EncoderAdapter::encodeInt64):
2394         (WebKit::EncoderAdapter::encodeFloat):
2395         (WebKit::EncoderAdapter::encodeDouble):
2396         (WebKit::EncoderAdapter::encodeString):
2397         * WebProcess/WebPage/EncoderAdapter.h:
2398
2399 2013-09-24  Enrica Casucci  <enrica@apple.com>
2400
2401         Upstream changes to Pasteboard implementation for iOS.
2402         https://bugs.webkit.org/show_bug.cgi?id=121818
2403
2404         Reviewed by Darin Adler.
2405
2406         * Scripts/webkit2/messages.py:
2407         (struct_or_class):
2408         (headers_for_type):
2409         * Shared/WebCoreArgumentCoders.cpp:
2410         (CoreIPC::encodeSharedBuffer):
2411         (CoreIPC::decodeSharedBuffer):
2412         (CoreIPC::::encode):
2413         (CoreIPC::::decode):
2414         * Shared/WebCoreArgumentCoders.h:
2415         * UIProcess/WebContext.h:
2416         * UIProcess/WebContext.messages.in:
2417         * UIProcess/mac/WebContextMac.mm:
2418         (WebKit::WebContext::writeWebContentToPasteboard):
2419         (WebKit::WebContext::writeImageToPasteboard):
2420         (WebKit::WebContext::writeStringToPasteboard):
2421         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2422         (WebKit::WebPlatformStrategies::writeToPasteboard):
2423         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2424
2425 2013-09-24  Anders Carlsson  <andersca@apple.com>
2426
2427         Remove create functions from MessageDecoder and ArgumentDecoder
2428         https://bugs.webkit.org/show_bug.cgi?id=121850
2429
2430         Reviewed by Antti Koivisto.
2431
2432         * Platform/CoreIPC/ArgumentDecoder.cpp:
2433         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2434         * Platform/CoreIPC/ArgumentDecoder.h:
2435         * Platform/CoreIPC/MessageDecoder.cpp:
2436         (CoreIPC::MessageDecoder::MessageDecoder):
2437         * Platform/CoreIPC/MessageDecoder.h:
2438         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2439         (CoreIPC::createMessageDecoder):
2440         * WebProcess/WebPage/DecoderAdapter.cpp:
2441         (WebKit::DecoderAdapter::DecoderAdapter):
2442         (WebKit::DecoderAdapter::decodeBytes):
2443         (WebKit::DecoderAdapter::decodeBool):
2444         (WebKit::DecoderAdapter::decodeUInt16):
2445         (WebKit::DecoderAdapter::decodeUInt32):
2446         (WebKit::DecoderAdapter::decodeUInt64):
2447         (WebKit::DecoderAdapter::decodeInt32):
2448         (WebKit::DecoderAdapter::decodeInt64):
2449         (WebKit::DecoderAdapter::decodeFloat):
2450         (WebKit::DecoderAdapter::decodeDouble):
2451         (WebKit::DecoderAdapter::decodeString):
2452         * WebProcess/WebPage/DecoderAdapter.h:
2453         * WebProcess/WebProcess.cpp:
2454         (WebKit::WebProcess::postInjectedBundleMessage):
2455
2456 2013-09-24  Mark Rowe  <mrowe@apple.com>
2457
2458         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
2459
2460         Reviewed by Dan Bernstein.
2461
2462         * Configurations/Base.xcconfig:
2463
2464 2013-09-24  Lorenzo Tilve  <ltilve@igalia.com>
2465
2466         [GTK] Fix compilation problems when setting ENABLE_DRAG_SUPPORT = FALSE
2467         https://bugs.webkit.org/show_bug.cgi?id=121782
2468
2469         Reviewed by Martin Robinson.
2470
2471         Disabled drag functions.
2472
2473         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2474         (webkit_web_view_base_class_init):
2475         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
2476
2477 2013-09-24  Anders Carlsson  <andersca@apple.com>
2478
2479         Begin adopting std::tuple for IPC decoding
2480         https://bugs.webkit.org/show_bug.cgi?id=121848
2481
2482         Reviewed by Sam Weinig.
2483
2484         This is the first step towards getting rid of the horrible Arguments class hierarchy.
2485
2486         * Platform/CoreIPC/Arguments.h:
2487         (CoreIPC::TupleCoder::encode):
2488         (CoreIPC::TupleCoder::decode):
2489         * Platform/CoreIPC/HandleMessage.h:
2490         (CoreIPC::callMemberFunction):
2491         (CoreIPC::handleMessage):
2492         (CoreIPC::handleMessageVariadic):
2493         (CoreIPC::handleMessageDelayed):
2494
2495 2013-09-24  ChangSeok Oh  <changseok.oh@collabora.com>
2496
2497         [EFL] Build failed at ProcessLauncherEfl.cpp
2498         https://bugs.webkit.org/show_bug.cgi?id=121826
2499
2500         Reviewed by Gyuyoung Kim.
2501
2502         Fixed a build failure with adding socket.h.
2503
2504         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2505
2506 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2507
2508         use NOMINMAX instead of #define min min
2509         https://bugs.webkit.org/show_bug.cgi?id=73563
2510
2511         Reviewed by Brent Fulgham.
2512
2513         Use NOMINMAX instead of #define min/max as a cleaner
2514         way of ensuring that Windows system header files don't
2515         define min/max as macro in the first place.
2516
2517         * config.h:
2518
2519 2013-09-23  ChangSeok Oh  <changseok.oh@collabora.com>
2520
2521         [GTK][WK2] A plugin dirtyRect within iframe remains after moving to a different page.
2522         https://bugs.webkit.org/show_bug.cgi?id=121600
2523
2524         Reviewed by Gustavo Noronha Silva.
2525
2526         Nowhere to destroy NetscapePlugin::m_platformPluginWidget even after destroying
2527         an instance of NetscapePlugin. So the created GtkWidget remains visible.
2528
2529         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2530         (WebKit::NetscapePlugin::platformDestroy):
2531
2532 2013-09-23  Sam Weinig  <sam@webkit.org>
2533
2534         Add back the SharedWorkerStrategy to prevent crashing.
2535
2536         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2537         (WebKit::WebPlatformStrategies::createSharedWorkerStrategy):
2538         (WebKit::WebPlatformStrategies::isAvailable):
2539         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2540
2541 2013-09-23  Sam Weinig  <sam@webkit.org>
2542
2543         SharedWorkerProcess code is dead
2544         https://bugs.webkit.org/show_bug.cgi?id=121563
2545
2546         Reviewed by Alexey Proskuryakov.
2547
2548         Remove SharedWorkerProcess code.
2549
2550 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2551
2552         Cleanup CMake files in WebKit2
2553         https://bugs.webkit.org/show_bug.cgi?id=121767
2554
2555         Reviewed by Gyuyoung Kim.
2556
2557         Sort files and unify style.
2558
2559         * CMakeLists.txt:
2560         * PlatformEfl.cmake:
2561         * PlatformGTK.cmake:
2562
2563 2013-09-21  Darin Adler  <darin@apple.com>
2564
2565         Add ExecState::uncheckedArgument and use where possible to shrink a bit
2566         https://bugs.webkit.org/show_bug.cgi?id=121750
2567
2568         Reviewed by Andreas Kling.
2569
2570         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2571         (WebKit::JSNPObject::callMethod): In a loop.
2572         (WebKit::JSNPObject::callObject): Ditto.
2573         (WebKit::JSNPObject::callConstructor): Ditto.
2574
2575 2013-09-18  Anders Carlsson  <andersca@apple.com>
2576
2577         Remove the ENABLE_PLUGIN_PROCESS #define
2578         https://bugs.webkit.org/show_bug.cgi?id=121569
2579
2580         Reviewed by Andreas Kling.
2581
2582         Fold the ENABLE_PLUGIN_PROCESS #define into the NETSCAPE_PLUGIN_API #define since 
2583         building plug-ins without the plug-in process is not supported.
2584
2585         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
2586         * PluginProcess/PluginControllerProxy.cpp:
2587         * PluginProcess/PluginControllerProxy.h:
2588         * PluginProcess/PluginControllerProxy.messages.in:
2589         * PluginProcess/PluginCreationParameters.cpp:
2590         * PluginProcess/PluginCreationParameters.h:
2591         * PluginProcess/PluginProcess.cpp:
2592         * PluginProcess/PluginProcess.h:
2593         * PluginProcess/PluginProcess.messages.in:
2594         * PluginProcess/WebProcessConnection.cpp:
2595         * PluginProcess/WebProcessConnection.h:
2596         * PluginProcess/WebProcessConnection.messages.in:
2597         * PluginProcess/mac/PluginControllerProxyMac.mm:
2598         * PluginProcess/mac/PluginProcessMac.mm:
2599         * Shared/Plugins/NPIdentifierData.cpp:
2600         * Shared/Plugins/NPIdentifierData.h:
2601         * Shared/Plugins/NPObjectMessageReceiver.cpp:
2602         * Shared/Plugins/NPObjectMessageReceiver.h:
2603         * Shared/Plugins/NPObjectMessageReceiver.messages.in:
2604         * Shared/Plugins/NPObjectProxy.cpp:
2605         * Shared/Plugins/NPObjectProxy.h:
2606         * Shared/Plugins/NPRemoteObjectMap.cpp:
2607         * Shared/Plugins/NPRemoteObjectMap.h:
2608         * Shared/Plugins/NPVariantData.cpp:
2609         * Shared/Plugins/NPVariantData.h:
2610         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2611         (WebKit::getMIMETypesFromPluginBundle):
2612         * Shared/Plugins/PluginProcessCreationParameters.cpp:
2613         * Shared/Plugins/PluginProcessCreationParameters.h:
2614         * UIProcess/Launcher/ProcessLauncher.cpp:
2615         (WebKit::ProcessLauncher::processTypeAsString):
2616         (WebKit::ProcessLauncher::getProcessTypeFromString):
2617         * UIProcess/Launcher/ProcessLauncher.h:
2618         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2619         (WebKit::addDYLDEnvironmentAdditions):
2620         (WebKit::serviceName):
2621         (WebKit::createProcess):
2622         * UIProcess/Plugins/PluginProcessManager.cpp:
2623         * UIProcess/Plugins/PluginProcessManager.h:
2624         * UIProcess/Plugins/PluginProcessProxy.cpp:
2625         * UIProcess/Plugins/PluginProcessProxy.h:
2626         * UIProcess/Plugins/PluginProcessProxy.messages.in:
2627         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
2628         (WebKit::WebPluginSiteDataManager::~WebPluginSiteDataManager):
2629         (WebKit::WebPluginSiteDataManager::invalidate):
2630         (WebKit::WebPluginSiteDataManager::getSitesWithData):
2631         (WebKit::WebPluginSiteDataManager::clearSiteData):
2632         * UIProcess/Plugins/WebPluginSiteDataManager.h:
2633         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
2634         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2635         * UIProcess/WebContext.cpp:
2636         (WebKit::WebContext::setProcessModel):
2637         (WebKit::WebContext::shouldTerminate):
2638         (WebKit::WebContext::disconnectProcess):
2639         * UIProcess/WebProcessProxy.cpp:
2640         (WebKit::WebProcessProxy::getPluginProcessConnection):
2641         * UIProcess/WebProcessProxy.h:
2642         * UIProcess/WebProcessProxy.messages.in:
2643         * UIProcess/mac/WebContextMac.mm:
2644         (WebKit::updateProcessSuppressionStateOfGlobalChildProcesses):
2645         * WebKit2Prefix.h:
2646         * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm:
2647         * WebProcess/Plugins/PluginProcessConnection.cpp:
2648         * WebProcess/Plugins/PluginProcessConnection.h:
2649         * WebProcess/Plugins/PluginProcessConnection.messages.in:
2650         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2651         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2652         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
2653         * WebProcess/Plugins/PluginProxy.cpp:
2654         * WebProcess/Plugins/PluginProxy.h:
2655         * WebProcess/Plugins/PluginProxy.messages.in:
2656         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2657         * WebProcess/WebPage/WebPage.cpp:
2658         * WebProcess/WebProcess.cpp:
2659         (WebKit::WebProcess::WebProcess):
2660         (WebKit::WebProcess::initializeConnection):
2661         * WebProcess/WebProcess.h:
2662         * WebProcess/WebProcess.messages.in:
2663
2664 2013-09-18  Sam Weinig  <sam@webkit.org>
2665
2666         Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebKit and WebKit2
2667         https://bugs.webkit.org/show_bug.cgi?id=121568
2668
2669         Reviewed by Andreas Kling.
2670
2671         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2672         (CoreIPC::Connection::processMessage):
2673         (CoreIPC::readBytesFromSocket):
2674         (CoreIPC::Connection::sendOutgoingMessage):
2675         * UIProcess/API/efl/EwkView.cpp:
2676         (EwkView::feedTouchEvent):
2677         (EwkView::feedTouchEvents):
2678         * UIProcess/API/efl/SnapshotImageGL.h:
2679         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
2680         (ewk_file_chooser_request_files_choose):
2681         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2682         (WebKit::createArgsArray):
2683         (WebKit::ProcessLauncher::launchProcess):
2684         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2685         (WKBundlePageCopyContextMenuItems):
2686         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2687
2688 2013-09-18  Anders Carlsson  <andersca@apple.com>
2689
2690         RefPtrHashMap should work with move only types
2691         https://bugs.webkit.org/show_bug.cgi?id=121564
2692
2693         Reviewed by Andreas Kling.
2694
2695         * UIProcess/Storage/StorageManager.cpp:
2696         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
2697         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
2698         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2699         (WebKit::StorageNamespaceImpl::storageArea):
2700
2701 2013-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2702
2703         [GTK] WebKitScriptWorld not in API documentation
2704         https://bugs.webkit.org/show_bug.cgi?id=121539
2705
2706         Reviewed by Philippe Normand.
2707
2708         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitScriptWorld.
2709
2710 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2711
2712         Buildfix for !ENABLE(CUSTOM_PROTOCOLS) platforms
2713         https://bugs.webkit.org/show_bug.cgi?id=121417
2714
2715         Reviewed by Alexey Proskuryakov.
2716
2717         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2718
2719         * CMakeLists.txt: Add CustomProtocolManagerProxy.messages.in.
2720         * DerivedSources.pri: Add CustomProtocolManagerProxy.messages.in.
2721         * GNUmakefile.am: Add CustomProtocolManagerProxy.messages.in.
2722         * GNUmakefile.list.am: Add CustomProtocolManagerProxyMessages.h and CustomProtocolManagerProxyMessageReceiver.cpp.
2723         * NetworkProcess/NetworkProcess.cpp: Add the missing ENABLE(CUSTOM_PROTOCOLS) guard.
2724         (WebKit::NetworkProcess::NetworkProcess):
2725         * UIProcess/WebProcessProxy.cpp: Remove the unnecessary conditional include.
2726
2727 2013-09-17  Gustavo Noronha Silva  <gns@gnome.org>
2728
2729         [GTK] Test /webkit2/WebKitWebInspectorServer/test-open-debugging-session times out after r155714
2730         https://bugs.webkit.org/show_bug.cgi?id=121383
2731
2732         Reviewed by Carlos Garcia Campos.
2733
2734         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2735         (openRemoteDebuggingSession): use the page contents' to check the remote debugging of the page
2736         has been successfuly opened, as the title is no longer the same after the switch to the new
2737         frontend.
2738
2739 2013-09-16  Enrica Casucci  <enrica@apple.com>
2740
2741         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2742         https://bugs.webkit.org/show_bug.cgi?id=121464
2743
2744         Reviewed by Darin Adler.
2745
2746         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2747         * WebProcess/WebCoreSupport/WebEditorClient.h:
2748
2749 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2750
2751         Buildfix for !(ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)) platforms
2752         https://bugs.webkit.org/show_bug.cgi?id=121491
2753
2754         Reviewed by Darin Adler.
2755
2756         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2757         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2758
2759 2013-09-17  Alberto Garcia  <berto@igalia.com>
2760
2761         [GTK] Unreviewed make distcheck fix.
2762
2763         * GNUmakefile.am: include WebProcess/Network/*.in in the tarball,
2764         it's needed for generating WebResourceLoaderMessage*.{cpp,h}.
2765
2766 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2767
2768         [GTK][EFL] Add ResourceError::internalError() after r138387
2769         https://bugs.webkit.org/show_bug.cgi?id=121433
2770
2771         Reviewed by Christophe Dumez.
2772
2773         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2774         and Kwang Yul Seo <skyul@company100.net>
2775
2776         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
2777         (WebKit::internalError):
2778         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
2779         (WebKit::internalError):
2780
2781 2013-09-17  Gabor Abraham  <abrhm@inf.u-szeged.hu>
2782
2783         Fix Qt WK2 build after r155888
2784         https://bugs.webkit.org/show_bug.cgi?id=121471
2785
2786         Reviewed by Csaba Osztrogonác.
2787
2788         * UIProcess/API/qt/qquickwebview.cpp:
2789         (QQuickWebViewPrivate::createDrawingAreaProxy):
2790         * UIProcess/API/qt/qquickwebview_p_p.h:
2791         * UIProcess/API/qt/raw/qrawwebview.cpp:
2792         (QRawWebViewPrivate::createDrawingAreaProxy):
2793         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
2794         * UIProcess/qt/QtPageClient.cpp:
2795         (WebKit::QtPageClient::createDrawingAreaProxy):
2796         * UIProcess/qt/QtPageClient.h:
2797
2798 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2799
2800         [GTK][EFL] Add NetworkProcess support for ProcessLauncher
2801         https://bugs.webkit.org/show_bug.cgi?id=121434
2802
2803         Reviewed by Sam Weinig.
2804
2805         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2806         and Kwang Yul Seo <skyul@company100.net>
2807
2808         * Shared/ProcessExecutablePath.h:
2809         * Shared/efl/ProcessExecutablePathEfl.cpp:
2810         (WebKit::executablePathOfNetworkProcess):
2811         * Shared/gtk/ProcessExecutablePathGtk.cpp:
2812         (WebKit::executablePathOfNetworkProcess):
2813         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2814         (WebKit::ProcessLauncher::launchProcess):
2815         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2816         (WebKit::ProcessLauncher::launchProcess):
2817
2818 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2819
2820         Buildfix for !USE(PROTECTION_SPACE_AUTH_CALLBACK) platforms
2821         https://bugs.webkit.org/show_bug.cgi?id=121431
2822
2823         Reviewed by Alexey Proskuryakov.
2824
2825         Mising guards added.
2826
2827         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2828         and Kwang Yul Seo <skyul@company100.net>
2829
2830         * NetworkProcess/NetworkResourceLoader.messages.in:
2831         * WebProcess/Network/WebResourceLoader.cpp:
2832         * WebProcess/Network/WebResourceLoader.h:
2833         * WebProcess/Network/WebResourceLoader.messages.in:
2834
2835 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2836
2837         WebResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
2838         https://bugs.webkit.org/show_bug.cgi?id=121424
2839
2840         Reviewed by Alexey Proskuryakov.
2841
2842         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2843
2844         * CMakeLists.txt:
2845         * DerivedSources.pri:
2846         * GNUmakefile.am:
2847         * GNUmakefile.list.am:
2848         * WebProcess/Network/WebResourceLoader.messages.in: ENABLE(NETWORK_PROCESS) guard added.
2849
2850 2013-09-16  Manuel Rego Casasnovas  <rego@igalia.com>
2851
2852         Unreviewed, fixing the GTK WK2 debug build after r155911.
2853
2854         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp: Add missing using
2855         namespace WebCore.
2856
2857 2013-09-16  Sergio Correia  <sergio.correia@openbossa.org>
2858
2859         Fix EFL build after r155888
2860         https://bugs.webkit.org/show_bug.cgi?id=121465
2861
2862         Reviewed by Gyuyoung Kim.
2863
2864         Update WebView to follow the changes in PageClient in r155888.
2865
2866         * UIProcess/CoordinatedGraphics/WebView.cpp:
2867         (WebKit::WebView::createDrawingAreaProxy): Use createOwned (addded in
2868         r155407) to return the DrawingAreaProxy from DrawingAreaProxyImpl.
2869         * UIProcess/CoordinatedGraphics/WebView.h: Update createDrawingAreaProxy()
2870         signature to match PageClient.h.
2871
2872 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2873
2874         [GTK] Make symbol export filter more strict, and disable for dev/test builds
2875         https://bugs.webkit.org/show_bug.cgi?id=120586
2876
2877         Reviewed by Martin Robinson.
2878
2879         * GNUmakefile.am: only use the version script if developer mode is disabled.
2880
2881 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2882
2883         Unreviewed build fix after 155905.
2884
2885         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2886         (CoreIPC::Connection::sendOutgoingMessage): use OwnPtr instead of PassOwnPtr.
2887
2888 2013-09-16  Joseph Pecoraro  <pecoraro@apple.com>
2889
2890         Add RunLoop::isMain and use it in WebKit2
2891         https://bugs.webkit.org/show_bug.cgi?id=121459
2892
2893         Reviewed by Anders Carlsson.
2894
2895         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
2896         (getIconSurfaceSynchronously):
2897         (iconDataReadyForPageURLCallback):
2898         (webkit_favicon_database_get_favicon_uri):
2899         * UIProcess/API/mac/WKPrintingView.mm:
2900         (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
2901         (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]):
2902         (pageDidDrawToImage):
2903         (pageDidDrawToPDF):
2904         (-[WKPrintingView _preparePDFDataForPrintingOnSecondaryThread]):
2905         (pageDidComputePageRects):
2906         (-[WKPrintingView _askPageToComputePageRects]):
2907         (prepareDataForPrintingOnSecondaryThread):
2908         (-[WKPrintingView knowsPageRange:]):
2909         (-[WKPrintingView _drawPreview:]):
2910         (-[WKPrintingView drawRect:]):
2911         (-[WKPrintingView _drawPageBorderWithSizeOnMainThread:]):
2912         (-[WKPrintingView drawPageBorderWithSize:]):
2913         * UIProcess/WebProcessProxy.cpp:
2914         (WebKit::globalPageMap):
2915
2916 2013-09-16  Anders Carlsson  <andersca@apple.com>
2917
2918         Replace more uses of PassOwnPtr with OwnPtr in WebKit2
2919         https://bugs.webkit.org/show_bug.cgi?id=121453
2920
2921         Reviewed by Sam Weinig.
2922
2923         * Platform/CoreIPC/Connection.cpp:
2924         (CoreIPC::Connection::SecondaryThreadPendingSyncReply::SecondaryThreadPendingSyncReply):
2925         (CoreIPC::Connection::createSyncMessageEncoder):
2926         (CoreIPC::Connection::sendMessage):
2927         (CoreIPC::Connection::sendSyncReply):
2928         (CoreIPC::Connection::waitForMessage):
2929         (CoreIPC::Connection::sendSyncMessage):
2930         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2931         (CoreIPC::Connection::waitForSyncReply):
2932         (CoreIPC::Connection::processIncomingSyncReply):
2933         (CoreIPC::Connection::processIncomingMessage):
2934         (CoreIPC::Connection::enqueueIncomingMessage):
2935         (CoreIPC::Connection::dispatchMessage):
2936         * Platform/CoreIPC/Connection.h:
2937         (CoreIPC::Connection::PendingSyncReply::PendingSyncReply):
2938         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2939         (CoreIPC::Connection::sendOutgoingMessage):
2940
2941 2013-09-16  Zan Dobersek  <zdobersek@igalia.com>
2942
2943         Unreviewed, fixing the GTK WK2 build after r155888.
2944
2945         * UIProcess/API/gtk/PageClientImpl.cpp:
2946         (WebKit::PageClientImpl::createDrawingAreaProxy):
2947         * UIProcess/API/gtk/PageClientImpl.h:
2948
2949 2013-09-16  Anders Carlsson  <andersca@apple.com>
2950
2951         Remove some uses of PassOwnPtr in WebKit2
2952         https://bugs.webkit.org/show_bug.cgi?id=121443
2953
2954         Reviewed by Andreas Kling.
2955
2956         * Scripts/webkit2/messages.py:
2957         (message_to_struct_declaration):
2958         (generate_message_handler):
2959         * Scripts/webkit2/messages_unittest.py:
2960         * UIProcess/API/mac/FindIndicatorWindow.h:
2961         * UIProcess/API/mac/FindIndicatorWindow.mm:
2962         * UIProcess/API/mac/PageClientImpl.h:
2963         * UIProcess/API/mac/PageClientImpl.mm:
2964         (WebKit::PageClientImpl::createDrawingAreaProxy):
2965         * UIProcess/API/mac/WKView.mm:
2966         (-[WKView WebKit::]):
2967         (-[WKView _setFindIndicator:fadeOut:animate:]):
2968         * UIProcess/API/mac/WKViewInternal.h:
2969         * UIProcess/DrawingAreaProxyImpl.cpp:
2970         * UIProcess/DrawingAreaProxyImpl.h:
2971         * UIProcess/PageClient.h:
2972         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2973         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2974         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
2975         (PageOverlayClientImpl::PageOverlayClientImpl):
2976         (WKBundlePageOverlayCreate):
2977         * WebProcess/Plugins/PluginView.cpp:
2978         (WebKit::PluginView::createWebEvent):
2979         * WebProcess/Plugins/PluginView.h:
2980
2981 2013-09-16  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
2982
2983         Web Inspector: Do not try to parse incomplete HTTP requests
2984         https://bugs.webkit.org/show_bug.cgi?id=121123
2985
2986         Reviewed by Carlos Garcia Campos.
2987
2988         Update to incorporate additional review suggestions.
2989
2990         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2991         (sendIncompleteRequest):
2992         Fix memory leaks, change test timeout from 2 seconds to 1 second,
2993         use "0" instead of "NULL" and use g_assert_no_error when checking
2994         for GError.
2995
2996 2013-09-16  Eunmi Lee  <eunmi15.lee@samsung.com>
2997
2998         [EFL][WK2] Implement pan and flick gesture.
2999         https://bugs.webkit.org/show_bug.cgi?id=107101
3000
3001         Reviewed by Gyuyoung Kim.
3002
3003         Implement pan gesture to scroll page by movement of point and stop
3004         scrolling smoothly using ease-in-out-quad algorithm after touched
3005         point is removed from the screen.
3006
3007         Use Ecore_Animator in order to process movement once per each framing
3008         time slot instead of processing all movement.
3009
3010         * PlatformEfl.cmake:
3011         * UIProcess/API/efl/EwkView.cpp:
3012         (EwkView::scrollBy):
3013         * UIProcess/API/efl/EwkView.h:
3014         * UIProcess/API/efl/GestureRecognizer.cpp:
3015         (WebKit::GestureHandler::view):
3016         (WebKit::GestureHandler::GestureHandler):
3017         (WebKit::GestureHandler::~GestureHandler):
3018         (WebKit::GestureHandler::reset):
3019         (WebKit::GestureHandler::panAnimatorCallback):
3020         (WebKit::GestureHandler::handlePanStarted):
3021         (WebKit::GestureHandler::handlePan):
3022         (WebKit::GestureHandler::handlePanFinished):
3023         (WebKit::GestureHandler::flickAnimatorCallback):
3024         (WebKit::GestureHandler::handleFlick):
3025         (WebKit::GestureRecognizer::noGesture):
3026         (WebKit::GestureRecognizer::reset):
3027         * UIProcess/efl/EasingCurves.cpp: Added.
3028         (WebKit::easeInOutQuad):
3029         * UIProcess/efl/EasingCurves.h: Added.
3030
3031 2013-09-16  Wojciech Bielawski  <w.bielawski@samsung.com>
3032
3033         [WKTR] WebKitTestRunner's eventSender.contextClick() returns objects without implemented click() method.
3034         https://bugs.webkit.org/show_bug.cgi?id=98410
3035
3036         Reviewed by Darin Adler.
3037
3038         Add API required to implement click() method for context menu entry, used by WebkitTestRunner::EventSender.
3039
3040         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3041         (WKBundlePageClickMenuItem):
3042         (WKBundlePageCopyContextMenuItemTitle):
3043         (WKBundlePageGetContextMenuItems):
3044         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
3045
3046 2013-09-15  Gustavo Noronha Silva  <gns@gnome.org>
3047
3048         Unreviewed make distcheck fix.
3049
3050         * GNUmakefile.list.am:
3051
3052 2013-09-15  Carlos Garcia Campos  <cgarcia@igalia.com>
3053
3054         [GTK] The web inspector is not rendered when docked in WebKit2 when AC is used
3055         https://bugs.webkit.org/show_bug.cgi?id=121381
3056
3057         Reviewed by Martin Robinson.
3058
3059         When accelerated compositing results are rendered we return early
3060         from webkitWebViewBaseDraw and other WebView children are not
3061         drawn. We need to chain up the draw signal handler, so that the
3062         GtkContainer propagates the draw to all its children.
3063
3064         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3065         (webkitWebViewBaseDraw):
3066
3067 2013-09-14  Dan Bernstein  <mitz@apple.com>
3068
3069         Remove non-Apple cruft from the installed WKBase.h
3070         https://bugs.webkit.org/show_bug.cgi?id=121370
3071
3072         Reviewed by Darin Adler.
3073
3074         * Configurations/WebKit2.xcconfig: Set INSTALLHDRS_SCRIPT_PHASE to YES.
3075         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that runs unifdef on
3076         the installed WKBase.h with __APPLE__ defined and various BUILDING_* and WTF_USE_* symbols
3077         undefined.
3078
3079 2013-09-14  Dan Bernstein  <mitz@apple.com>
3080
3081         Build fix after r155770.
3082
3083         * UIProcess/API/mac/WKViewPrivate.h: Added WKBase.h import.
3084
3085 2013-09-14  Dan Bernstein  <mitz@apple.com>
3086
3087         [mac] Public header WKBase.h imports a private header, WKBaseMac.h
3088         https://bugs.webkit.org/show_bug.cgi?id=121216
3089
3090         Reviewed by Darin Adler.
3091
3092         * Shared/API/c/WKBase.h: Moved definitions of enums and WK_EXPORT and WK_INLINE macros
3093         out of this files.
3094         * Shared/API/c/WKDeclarationSpecifiers.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
3095         Contains definitions of WK_EXPORT and WK_INLINE.
3096         * Shared/API/c/WKSharedAPICast.h: Added #includes.
3097         * Shared/API/c/WKUserContentInjectedFrames.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
3098         Contains enum definition.
3099         * Shared/API/c/WKUserScriptInjectionTime.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
3100         Contains enum definition.
3101         * UIProcess/API/C/WKPageGroup.h: Added #includes.
3102         * UIProcess/API/mac/WKBrowsingContextController.h: Removed WKBase.h import from this public
3103         header, replacing it with WKDeclarationSpecifiers.h import.
3104         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Added WKBase.h import.
3105         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed WKBase.h import from this public
3106         header, added necessary public imports.
3107         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Added WKBase.h import.
3108         * UIProcess/API/mac/WKBrowsingContextLoadDelegate.h: Removed WKBase.h import from public
3109         header.
3110         * UIProcess/API/mac/WKConnection.h: Ditto. Added WKDeclarationSpecifiers.h import.
3111         * UIProcess/API/mac/WKConnectionInternal.h: Added WKBase.h import.
3112         * UIProcess/API/mac/WKProcessGroup.h: Removed WKBase.h import from public header, added
3113         WKDeclarationSpecifiers.h import.
3114         * UIProcess/API/mac/WKProcessGroupPrivate.h: Added WKBase.h import.
3115         * UIProcess/API/mac/WKView.h: Removed WKBase.h import from public header, added
3116         WKDeclarationSpecifiers.h import.
3117         * WebKit2.xcodeproj/project.pbxproj: Added new public header files, made WKBase.h private.
3118         * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Removed WKBase.h import from public header,
3119         added WKDeclarationSpecifiers.h import.
3120         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added WKBase.h import.
3121         * WebProcess/InjectedBundle/API/mac/WKDOMRange.h: Removed WKBase.h import from public
3122         header, added WKDeclarationSpecifiers.h import.
3123         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added WKBase.h import.
3124         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Removed WKBase.h import from public
3125         header, added WKDeclarationSpecifiers.h import.
3126         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h: Ditto.
3127         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerInternal.h:
3128         Added WKBase.h import.
3129
3130 2013-09-14  Alberto Garcia  <berto@igalia.com>
3131
3132         [GTK] WebKitGTK+ is linking against libxslt in too many places
3133         https://bugs.webkit.org/show_bug.cgi?id=121356
3134
3135         Reviewed by Martin Robinson.
3136
3137         Don't use LIBXSLT_CFLAGS when compiling libWebCoreGtk2, no source
3138         files use libxslt there.
3139
3140         * GNUmakefile.am:
3141
3142 2013-09-13  Ryuan Choi  <ryuan.choi@samsung.com>
3143
3144         Unreviewed build fix attempt for WK2 build.
3145
3146         * WebProcess/Plugins/PluginView.cpp: Changed ScriptState to ExecState.
3147         (WebKit::PluginView::performJavaScriptURLRequest):
3148
3149 2013-09-13  Anders Carlsson  <andersca@apple.com>
3150
3151         Use nullptr instead of 0 in calls to HashMap::add
3152         https://bugs.webkit.org/show_bug.cgi?id=121322
3153
3154         Reviewed by Sam Weinig.
3155
3156         * Platform/CoreIPC/Connection.cpp:
3157         (CoreIPC::Connection::SyncMessageState::getOrCreate):
3158         * UIProcess/Storage/StorageManager.cpp:
3159         (WebKit::StorageManager::createLocalStorageMap):
3160         (WebKit::StorageManager::createSessionStorageMap):
3161         (WebKit::StorageManager::getOrCreateLocalStorageNamespace):
3162         * UIProcess/WebProcessProxy.cpp:
3163         (WebKit::WebProcessProxy::addBackForwardItem):
3164         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
3165         (WebKit::InjectedBundleNodeHandle::getOrCreate):
3166         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
3167         (WebKit::InjectedBundleRangeHandle::getOrCreate):
3168         * WebProcess/Storage/StorageNamespaceImpl.cpp:
3169         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
3170         * WebProcess/WebProcess.cpp:
3171         (WebKit::WebProcess::createWebPage):
3172         (WebKit::WebProcess::webPageGroup):
3173
3174 2013-09-13  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
3175
3176         [GTK] Move to the new web inspector
3177         https://bugs.webkit.org/show_bug.cgi?id=120647
3178
3179         Reviewed by Carlos Garcia Campos.
3180
3181         * GNUmakefile.am: bundle the remote inspector page list HTML into libwebkit2gtk as a GResource.
3182         * UIProcess/API/gtk/tests/GNUmakefile.am: no need to set WEBKIT_INSPECTOR_PATH anymore.
3183         * UIProcess/API/gtk/tests/InspectorTestServer.cpp:
3184         (main): ditto.
3185         * UIProcess/API/gtk/tests/TestInspector.cpp:
3186         (beforeAll): ditto.
3187         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
3188         (testInspectorServerPageList): update paths to the internal resource ones.
3189         * UIProcess/InspectorServer/WebInspectorServer.h:
3190         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
3191         (WebKit::WebInspectorServer::platformResourceForPath): ditto.
3192         (WebKit::WebInspectorServer::buildPageList): ditto.
3193         * UIProcess/WebInspectorProxy.cpp:
3194         (WebKit::isMainInspectorPage): factor out checking for the inspector main resource, to make
3195         the code more readable.
3196         (WebKit::decidePolicyForNavigationAction): use SchemeRegistry to figure out whether the
3197         request is for a local resource instead of KURL::isLocalFile() to allow using schemes
3198         other than file:// for the inspector resources.
3199         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
3200         (WebKit::WebInspectorProxy::inspectorPageURL): use the new internal resource URL; since it's now
3201         static we no longer need to generate and store the string.
3202         (WebKit::WebInspectorProxy::inspectorBaseURL): ditto.
3203         * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
3204         (WebKit::WebInspector::localizedStringsURL): use the new internal resource URL.
3205         * UIProcess/gtk/WebContextGtk.cpp:
3206         (WebKit::WebContext::platformInitializeWebProcess): register resource as a local scheme.
3207
3208 2013-09-13  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3209
3210         Fix build with namespaced Qt.
3211
3212         Unreviewed build fix.
3213
3214         One forward declaration of QUrl was missing proper namespace macros.
3215
3216         * UIProcess/API/qt/qquickurlschemedelegate_p.h:
3217
3218 2013-09-12  Simon Fraser  <simon.fraser@apple.com>
3219
3220         Avoid extra scrollbar-related layouts for overlay scrollbars
3221         https://bugs.webkit.org/show_bug.cgi?id=121267
3222
3223         Reviewed by Beth Dakin.
3224         
3225         view->resize() will call setNeedsLayout() if necessary, and may already have
3226         done layout, so the extra setNeedsLayout() here was bad.
3227
3228         * WebProcess/WebPage/WebPage.cpp:
3229         (WebKit::WebPage::setSize):
3230
3231 2013-09-12  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
3232
3233         Web Inspector: Do not try to parse incomplete HTTP requests
3234         https://bugs.webkit.org/show_bug.cgi?id=121123
3235
3236         Reviewed by Darin Adler.
3237
3238         When working on a patch for bug #121121 I found an issue with the InspectorServer where it would try
3239         to parse an HTTP message before receiving the full message and thus fail connecting with the
3240         chromedevtools plugin.
3241
3242         What happens is that the WebSocketServerConnection receives buffers on
3243         WebSocketServerConnection::didReceiveSocketStreamData and calls
3244         WebSocketServerConnection::readHTTPMessage which then checks if we have a valid request by calling
3245         HTTPRequest::parseHTTPRequestFromBuffer. If the request is valid it tries to parse the message and
3246         clears the buffer, otherwise it continues adding data to the internal buffer until we have a valid
3247         request.
3248
3249         The problem is that currently HTTPRequest::parseHTTPRequestFromBuffer considers the request as valid
3250         before receiving the full message. To solve this we should make the method check if the request
3251         headers end with a blank line otherwise we consider the request as invalid (see also
3252         http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html).
3253
3254         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
3255         (sendIncompleteRequest):
3256         (beforeAll):
3257         Add GTK specific test to check if the inspector server replies to incomplete requests.
3258         * UIProcess/InspectorServer/HTTPRequest.cpp:
3259         (WebKit::HTTPRequest::parseHeaders):
3260         Do not consider request valid if headers didn't end with a blank line.
3261
3262 2013-09-12  Anders Carlsson  <andersca@apple.com>
3263
3264         SharedBuffer::createNSData should return a RetainPtr<NSData>
3265         https://bugs.webkit.org/show_bug.cgi?id=121237
3266
3267         Reviewed by Darin Adler.
3268
3269         Update for WebCore changes.
3270
3271         * UIProcess/API/mac/WKView.mm:
3272         (-[WKView writeSelectionToPasteboard:types:]):
3273         (-[WKView _setPromisedData:WebCore::withFileName:withExtension:withTitle:withURL:withVisibleURL:withArchive:WebCore::forPasteboard:]):
3274         (-[WKView namesOfPromisedFilesDroppedAtDestination:]):
3275
3276 2013-09-12  Anders Carlsson  <andersca@apple.com>
3277
3278         SharedBuffer::createCFData should return RetainPtr<CFDataRef>
3279         https://bugs.webkit.org/show_bug.cgi?id=121230
3280
3281         Reviewed by Darin Adler.
3282
3283         * NetworkProcess/mac/NetworkResourceLoaderMac.mm:
3284         (WebKit::NetworkResourceLoader::tryGetShareableHandleFromSharedBuffer):
3285         * Shared/WebArchiveResource.cpp:
3286         (WebKit::WebArchiveResource::data):
3287
3288 2013-09-12  Zalan Bujtas  <zalan@apple.com>
3289
3290         REGRESSION: Inline PDF that are cached fail to appear in iframe.
3291         https://bugs.webkit.org/show_bug.cgi?id=75449
3292
3293         Reviewed by Darin Adler.
3294
3295         Make sure 'frame is from page cache' flag is set for subframes too.
3296
3297         WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
3298         to be loaded manually. It ensures that the plugin raw data is fetched again
3299         while the containing frame is being restored from the page cache.
3300         (Plugins get destroyed when the frame goes to page cache.)
3301
3302         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3303         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
3304         This gets called only on the frame where the actual history navigation happens.
3305         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
3306         This gets called for all the restored frames.
3307
3308 2013-09-11  Simon Fraser  <simon.fraser@apple.com>
3309
3310         Make sure that layout is up-to-date when moving a WKView into a window, to avoid !needsLayout() assertions in RenderView::paint()
3311         https://bugs.webkit.org/show_bug.cgi?id=121196
3312
3313         Reviewed by Tim Horton.
3314         
3315         When a WKView was moved into a window, it was possible for us to paint
3316         without ensuring that layout is up-to-date. Fix this by having
3317         WebPage::setIsInWindow() update layout if we are moving to a window.
3318
3319         * WebProcess/WebPage/WebPage.cpp:
3320         (WebKit::WebPage::setIsInWindow):
3321
3322 2013-09-11  Mario Sanchez Prada  <mario.prada@samsung.com>
3323
3324         [GTK] Remove Gail dependency from build system for GTK3
3325         https://bugs.webkit.org/show_bug.cgi?id=119673
3326
3327         Reviewed by Gustavo Noronha Silva.
3328
3329         * GNUmakefile.am: Removed GAIL_LIBS.
3330
3331 2013-09-11  Alberto Garcia  <berto@igalia.com>
3332
3333         [WK2] [GTK] LayerTreeHostGtk: don't set m_isValid to false if glContext() returns null
3334         https://bugs.webkit.org/show_bug.cgi?id=120892
3335
3336         Reviewed by Martin Robinson.
3337
3338         If the GL context cannot be created then m_isValid is set to false
3339         during the initialization of LayerTreeHostGtk.
3340
3341         This is not really necessary since the rest of the code already
3342         deals with that situation, so it doesn't have any effect other
3343         than breaking the assertion in invalidate().
3344
3345         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
3346         (WebKit::LayerTreeHostGtk::initialize):
3347
3348 2013-09-11  Commit Queue  <commit-queue@webkit.org>
3349
3350         Unreviewed, rolling out r154899.
3351         http://trac.webkit.org/changeset/154899
3352         https://bugs.webkit.org/show_bug.cgi?id=121162
3353
3354         It didn't fix the problem and broke other unit tests
3355         (Requested by KaL on #webkit).
3356
3357         * UIProcess/API/gtk/tests/WebViewTest.cpp:
3358         (WebViewTest::resizeView):
3359
3360 2013-09-11  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3361
3362         WTF::OwnPtr should behave similarly with the rest of WTF smart pointers
3363         https://bugs.webkit.org/show_bug.cgi?id=120773
3364
3365         Reviewed by Anders Carlsson.
3366
3367         Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad
3368         for the following reasons:
3369         - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client).
3370         - It was potential error-prone as it actually modified the type given by the Client in opaque way.
3371
3372         * UIProcess/API/efl/ewk_database_manager.cpp:
3373         (getDatabaseOriginsCallback):
3374         * UIProcess/API/efl/ewk_storage_manager.cpp:
3375         (getStorageOriginsCallback):
3376
3377 2013-09-11  ChangSeok Oh  <changseok.oh@collabora.com>
3378
3379         Unreviewed build fix.
3380
3381         * GNUmakefile.list.am: Duplicated NetscapePluginModuleNone.cpp & NetscapePluginNone.cpp.
3382         They cause build breaks of multiple definitions when targeting wayland build.
3383
3384 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3385
3386         Generate more HTML type checks and casting
3387         https://bugs.webkit.org/show_bug.cgi?id=121080
3388
3389         Reviewed by Andreas Kling.
3390
3391         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3392         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3393
3394         Besides this patch clean-up unnecessary checks which are being supported by
3395         auto-generated isFooElement().
3396
3397         * WebProcess/WebPage/WebFrame.cpp:
3398         (WebKit::WebFrame::containsAnyFormControls):