3f0f5e5dc0cb39c032e64975c0b3c4398d68609d
[WebKit.git] / Source / WebKit2 / ChangeLog
1 2013-10-10  Ralph Thomas  <ralpht@gmail.com>
2
3         [CoordinatedGraphics][CSS Shaders] marshal color and matrix custom filter parameters
4         https://bugs.webkit.org/show_bug.cgi?id=117904
5
6         Correctly encode and decode the "matrix" and "color" custom filter parameter types.
7         No port currently enables this code, however with this change the relevant layout tests now pass when enabled in EFL.
8         Reviewed by Noam Rosenthal.
9
10         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
11         (CoreIPC::::encode):
12         (CoreIPC::::decode):
13
14 2013-10-10  Mark Rowe  <mrowe@apple.com>
15
16         <rdar://problem/13871522> WebKit2 fails to build with C++ 98 conformance changes
17
18         Reviewed by Andreas Kling.
19
20         * Shared/mac/SandboxExtensionMac.mm:
21         (WebKit::resolveSymlinksInPath): strrchr returns a const char* when passed one.
22         Update the type of the local variable to accommodate that.
23
24 2013-10-10  Csaba Osztrogonác  <ossy@webkit.org>
25
26         Buildfix for non Mac platforms with enabled NetworkProcess
27         https://bugs.webkit.org/show_bug.cgi?id=121793
28
29         Reviewed by Anders Carlsson.
30
31         * Shared/ShareableResource.cpp:
32         * Shared/ShareableResource.h:
33         * Shared/WebResourceBuffer.cpp:
34         * Shared/WebResourceBuffer.h:
35         * WebKit2Prefix.h:
36         * WebProcess/Network/NetworkProcessConnection.cpp:
37         * WebProcess/Network/NetworkProcessConnection.h:
38         * WebProcess/Network/NetworkProcessConnection.messages.in:
39         * WebProcess/Network/WebResourceLoader.cpp:
40         * WebProcess/Network/WebResourceLoader.h:
41         * WebProcess/Network/WebResourceLoader.messages.in:
42
43 2013-10-09  Sergio Correia  <sergio.correia@openbossa.org>
44
45         Set view to active in ViewClientEfl after WebProcess has relaunched
46         https://bugs.webkit.org/show_bug.cgi?id=118650
47
48         Reviewed by Noam Rosenthal.
49
50         Once WebProcess relaunches, the underlying scene from the view is recreated
51         and is not active by default, which means it will be in `background'. In
52         practice, from that point on we are going to get a blank screen, unless we
53         set it to active.
54
55         In the normal flow, the view is set to active during its initialization; this
56         patch sets it to active also in ViewClientEfl, in the webProcessDidRelaunch
57         callback.
58
59         * UIProcess/efl/ViewClientEfl.cpp:
60         (WebKit::ViewClientEfl::webProcessDidRelaunch): Added WKViewSetIsActive call.
61
62 2013-10-09  Commit Queue  <commit-queue@webkit.org>
63
64         Unreviewed, rolling out r157157.
65         http://trac.webkit.org/changeset/157157
66         https://bugs.webkit.org/show_bug.cgi?id=122547
67
68         Caused crashes on several bots including gtk, mac-wk2 lion and
69         mountain lion (Requested by kov on #webkit).
70
71         * Shared/Plugins/NPRemoteObjectMap.cpp:
72         (WebKit::NPRemoteObjectMap::registerNPObject):
73         (WebKit::NPRemoteObjectMap::pluginDestroyed):
74         * Shared/Plugins/NPRemoteObjectMap.h:
75
76 2013-10-08  Darin Adler  <darin@apple.com>
77
78         Remove use of deleteAllValues in NPRemoteObjectMap::pluginDestroyed
79         https://bugs.webkit.org/show_bug.cgi?id=122496
80
81         Reviewed by Andreas Kling.
82
83         * Shared/Plugins/NPRemoteObjectMap.cpp:
84         (WebKit::NPRemoteObjectMap::registerNPObject): Don't call release when puttin objects
85         into the map.
86         (WebKit::NPRemoteObjectMap::pluginDestroyed): Instead of making an array of receivers
87         and deleting them all, remove all of the receivers from the map, which will take care
88         of deleting them. Also change the other loop to use a similar coding style.
89
90         * Shared/Plugins/NPRemoteObjectMap.h: Change the value type of m_registeredNPObjects
91         to be unique_ptr instead of a raw pointer.
92
93 2013-10-08  Anders Carlsson  <andersca@apple.com>
94
95         WebProcess crash on SAP WebCycle web app
96         https://bugs.webkit.org/show_bug.cgi?id=122520
97         <rdar://problem/15030605>
98
99         Reviewed by Darin Adler.
100
101         Stop trying to use RunLoop to manage the top-level run loop and just have the child process and their
102         delegate subclasses start and stop the run loops. This fixes a bug with showModalDialog where we would
103         unintentionally call -[NSApp stop] when closing a modal dialog.
104         
105         This also lets us move all knowledge of NSApplication from RunLoop. (Both the web process and plug-in process
106         need to use -[NSApp run] and -[NSApp stop:]).
107
108         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
109         (WebKit::PluginProcessMainDelegate::doPreInitializationWork):
110         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop. Add a startRunLoop override that calls
111         -[NSApp run].
112
113         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
114         (PluginServiceInitializer):
115         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
116
117         * PluginProcess/PluginProcess.h:
118         Add stopRunLoop() override on Mac.
119
120         * PluginProcess/mac/PluginProcessMac.mm:
121         (WebKit::PluginProcess::stopRunLoop):
122         Call -[NSApp stop:] and tickle the event system.
123
124         * Shared/ChildProcess.cpp:
125         (WebKit::ChildProcess::stopRunLoop):
126         Add default implementation that just calls RunLoop::main()->stop().
127
128         (WebKit::ChildProcess::terminate):
129         Call stopRunLoop().
130
131         * Shared/ChildProcess.h:
132         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
133         Add startRunLoop member function and call it instead of RunLoop::run().
134
135         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
136         (WebKit::ChildProcessMainDelegate::startRunLoop):
137         Call RunLoop::run().
138
139         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
140         (WebKit::WebContentProcessMainDelegate::doPreInitializationWork):
141         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
142         Add startRunLoop override that calls -[NSApp run].
143         
144         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
145         (WebContentServiceInitializer):
146         Remove call to RunLoop::setUseApplicationRunLoopOnMainRunLoop.
147
148         * WebProcess/WebProcess.cpp:
149         (WebKit::WebProcess::didClose):
150         Call stopRunLoop().
151
152         * WebProcess/WebProcess.h:
153         Add stopRunLoop override.
154
155         * WebProcess/mac/WebProcessMac.mm:
156         (WebKit::WebProcess::stopRunLoop):
157         Call -[NSApp stop:] and tickle the event system.
158
159 2013-10-08  Commit Queue  <commit-queue@webkit.org>
160
161         Unreviewed, rolling out r157090.
162         http://trac.webkit.org/changeset/157090
163         https://bugs.webkit.org/show_bug.cgi?id=122504
164
165         Caused crashes in many plug-in tests (Requested by ap on
166         #webkit).
167
168         * Shared/Plugins/NPRemoteObjectMap.cpp:
169         (WebKit::NPRemoteObjectMap::registerNPObject):
170         (WebKit::NPRemoteObjectMap::pluginDestroyed):
171         * Shared/Plugins/NPRemoteObjectMap.h:
172
173 2013-10-08  Darin Adler  <darin@apple.com>
174
175         Remove use of deleteAllValues in NPRemoteObjectMap::pluginDestroyed
176         https://bugs.webkit.org/show_bug.cgi?id=122496
177
178         Reviewed by Andreas Kling.
179
180         * Shared/Plugins/NPRemoteObjectMap.cpp:
181         (WebKit::NPRemoteObjectMap::registerNPObject): Don't call release when putting objects
182         into the map.
183         (WebKit::NPRemoteObjectMap::pluginDestroyed): Instead of making an array of receivers
184         and deleting them all, remove all of the receivers from the map, which will take care
185         of deleting them. Also change the other loop to use a similar coding style.
186
187         * Shared/Plugins/NPRemoteObjectMap.h: Change the value type of m_registeredNPObjects
188         to be unique_ptr instead of a raw pointer.
189
190 2013-10-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
191
192         Reduce duplicated code in WebPageProxy
193         https://bugs.webkit.org/show_bug.cgi?id=122230
194
195         Reviewed by Darin Adler.
196
197         * UIProcess/WebPageProxy.cpp:
198         (WebKit::WebPageProxy::close): move duplicate code to resetState and call it.
199         (WebKit::WebPageProxy::resetState): new private method for code that is shared between
200         close and resetStateAfterProcessExited.
201         (WebKit::WebPageProxy::resetStateAfterProcessExited): move duplicate code to resetState
202         and call it.
203         * UIProcess/WebPageProxy.h:
204
205 2013-10-07  Sam Weinig  <sam@webkit.org>
206
207         CTTE: Use references in and around DragController
208         https://bugs.webkit.org/show_bug.cgi?id=122427
209
210         Reviewed by Andreas Kling.
211
212         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
213         (webkitWebViewBaseDragDataReceived):
214         (webkitWebViewBaseDragMotion):
215         (dragExitedCallback):
216         (webkitWebViewBaseDragDrop):
217         * UIProcess/API/mac/WKView.mm:
218         (-[WKView draggingEntered:]):
219         (-[WKView draggingUpdated:]):
220         (-[WKView draggingExited:]):
221         (-[WKView performDragOperation:]):
222         * UIProcess/WebPageProxy.cpp:
223         (WebKit::WebPageProxy::dragEntered):
224         (WebKit::WebPageProxy::dragUpdated):
225         (WebKit::WebPageProxy::dragExited):
226         (WebKit::WebPageProxy::performDrag):
227         (WebKit::WebPageProxy::performDragControllerAction):
228         * UIProcess/WebPageProxy.h:
229         * WebProcess/WebCoreSupport/WebDragClient.cpp:
230         (WebKit::WebDragClient::willPerformDragDestinationAction):
231         (WebKit::WebDragClient::willPerformDragSourceAction):
232         (WebKit::WebDragClient::actionMaskForDrag):
233         (WebKit::WebDragClient::dragSourceActionMaskForPoint):
234         (WebKit::WebDragClient::startDrag):
235         * WebProcess/WebCoreSupport/WebDragClient.h:
236         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
237         (WebKit::WebDragClient::startDrag):
238         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
239         (WebKit::WebDragClient::startDrag):
240         (WebKit::cachedImage):
241         (WebKit::WebDragClient::declareAndWriteDragImage):
242         * WebProcess/WebPage/WebPage.cpp:
243         (WebKit::WebPage::performDragControllerAction):
244
245 2013-10-07  Tim Horton  <timothy_horton@apple.com>
246
247         Animated images are not restarted when page visibility changes
248         https://bugs.webkit.org/show_bug.cgi?id=122464
249         <rdar://problem/14293474>
250
251         Reviewed by Simon Fraser.
252
253         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
254         (WebKit::TiledCoreAnimationDrawingArea::resumePainting):
255         This is on Page now.
256
257 2013-10-05  Anders Carlsson  <andersca@apple.com>
258
259         Try to fix the GTK+ build.
260
261         * UIProcess/gtk/WebPageProxyGtk.cpp:
262         (WebKit::WebPageProxy::platformInitialize):
263
264 2013-10-05  Anders Carlsson  <andersca@apple.com>
265
266         Remove createOwned
267         https://bugs.webkit.org/show_bug.cgi?id=122388
268
269         Reviewed by Darin Adler.
270
271         * UIProcess/API/mac/WKView.mm:
272         (-[WKView _setFindIndicator:fadeOut:animate:]):
273         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
274         (WKBundlePageOverlayCreate):
275
276 2013-10-05  Darin Adler  <darin@apple.com>
277
278         Remove COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) since it's required now
279         https://bugs.webkit.org/show_bug.cgi?id=122387
280
281         Reviewed by Anders Carlsson.
282
283         * UIProcess/API/cpp/WKRetainPtr.h: Take out conditionals.
284
285 2013-10-05  Darin Adler  <darin@apple.com>
286
287         Cut down on use of String::number
288         https://bugs.webkit.org/show_bug.cgi?id=122382
289
290         Reviewed by Anders Carlsson.
291
292         * Shared/mac/RemoteLayerTreeTransaction.mm:
293         (WebKit::dumpChangedLayers): Use StringBuilder::appendNumber.
294
295 2013-10-05  Anders Carlsson  <andersca@apple.com>
296
297         Fix cut and paste errors.
298
299         * Configurations/WebKit2.xcconfig:
300
301 2013-10-05  Anders Carlsson  <andersca@apple.com>
302
303         Add the rest of the std::function weak symbols in an attempt to fix the Lion build.
304
305         * Configurations/WebKit2.xcconfig:
306
307 2013-10-05  Anders Carlsson  <andersca@apple.com>
308
309         Another attempt at fixing the Lion build.
310
311         * Configurations/WebKit2.xcconfig:
312
313 2013-10-05  Anders Carlsson  <andersca@apple.com>
314
315         Attempt to fix the Lion build.
316         
317         * Configurations/WebKit2.xcconfig:
318         Try unexporting one of the weak symbols for now. If this succeeds, I'll add the rest.
319
320 2013-10-04  Anders Carlsson  <andersca@apple.com>
321
322         FramePolicyFunction should be an std::function
323         https://bugs.webkit.org/show_bug.cgi?id=122362
324
325         Reviewed by Darin Adler.
326
327         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
328         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
329         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
330         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
331         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
332         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
333         * WebProcess/WebPage/WebFrame.cpp:
334         (WebKit::WebFrame::didReceivePolicyDecision):
335
336 2013-10-04  Ryuan Choi  <ryuan.choi@samsung.com>
337
338         Unreviewed EFL build fix after r156924
339
340         * UIProcess/efl/WebPageProxyEfl.cpp:
341         (WebKit::WebPageProxy::platformInitialize):
342
343 2013-10-04  Sam Weinig  <sam@webkit.org>
344
345         Unify rubber-band control
346         https://bugs.webkit.org/show_bug.cgi?id=122341
347
348         Reviewed by Tim Horton.
349
350         - Consolidates the two ways we were passing state about whether
351           to rubber-band on a particular edge down to one.
352         - Adds SPI to control whether you can rubber band on the left
353           or right edge.
354         - Add a linked-on-or-after check to control whether we use the
355           legacy implicit rubber band control based on back/forward.
356
357         * UIProcess/API/C/WKPage.cpp:
358         (WKPageRubberBandsAtLeft):
359         (WKPageSetRubberBandsAtLeft):
360         (WKPageRubberBandsAtRight):
361         (WKPageSetRubberBandsAtRight):
362         (WKPageRubberBandsAtBottom):
363         (WKPageSetRubberBandsAtBottom):
364         * UIProcess/API/C/WKPage.h:
365         * UIProcess/WebPageProxy.cpp:
366         (WebKit::WebPageProxy::WebPageProxy):
367         (WebKit::WebPageProxy::sendWheelEvent):
368         (WebKit::WebPageProxy::rubberBandsAtLeft):
369         (WebKit::WebPageProxy::setRubberBandsAtLeft):
370         (WebKit::WebPageProxy::rubberBandsAtRight):
371         (WebKit::WebPageProxy::setRubberBandsAtRight):
372         (WebKit::WebPageProxy::rubberBandsAtTop):
373         (WebKit::WebPageProxy::setRubberBandsAtTop):
374         (WebKit::WebPageProxy::rubberBandsAtBottom):
375         (WebKit::WebPageProxy::setRubberBandsAtBottom):
376         * UIProcess/WebPageProxy.h:
377         * UIProcess/mac/WebPageProxyMac.mm:
378         (WebKit::shouldUseLegacyImplicitRubberBandControl):
379         (WebKit::WebPageProxy::platformInitialize):
380         * WebProcess/WebPage/EventDispatcher.cpp:
381         (WebKit::EventDispatcher::wheelEvent):
382         * WebProcess/WebPage/EventDispatcher.h:
383         * WebProcess/WebPage/EventDispatcher.messages.in:
384         * WebProcess/WebPage/WebPage.cpp:
385         * WebProcess/WebPage/WebPage.h:
386         * WebProcess/WebPage/WebPage.messages.in:
387
388 2013-10-04  Lorenzo Tilve  <ltilve@igalia.com>
389
390         [GTK] Enable text edition UndoOperations support in WebKit2
391         https://bugs.webkit.org/show_bug.cgi?id=122305
392
393         Reviewed by Carlos Garcia Campos.
394
395         Replaced the notImplemented() function calls for
396         the corresponding implementation of the edit operations
397         provided by the DefaultUndoController class.
398
399         * GNUmakefile.list.am:
400         * UIProcess/API/gtk/PageClientImpl.cpp:
401         (WebKit::PageClientImpl::registerEditCommand):
402         (WebKit::PageClientImpl::clearAllEditCommands):
403         (WebKit::PageClientImpl::canUndoRedo):
404         (WebKit::PageClientImpl::executeUndoRedo):
405         * UIProcess/API/gtk/PageClientImpl.h:
406
407 2013-10-04  Sergio Correia  <sergio.correia@openbossa.org>
408
409         Remove Qt leftovers from WebKit2
410         https://bugs.webkit.org/show_bug.cgi?id=122317
411
412         Reviewed by Anders Carlsson.
413
414         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
415         (CoreIPC::Connection::platformInitialize):
416         (CoreIPC::Connection::platformInvalidate):
417         (CoreIPC::Connection::readyReadHandler):
418         (CoreIPC::Connection::open):
419         (CoreIPC::Connection::sendOutgoingMessage):
420         * Shared/API/c/WKBase.h:
421         * Shared/NativeWebTouchEvent.h:
422         * UIProcess/API/C/WebKit2_C.h:
423         * UIProcess/BackingStore.h:
424         * UIProcess/InspectorServer/WebInspectorServer.cpp:
425         (WebKit::WebInspectorServer::inspectorUrlForPageID):
426         * UIProcess/InspectorServer/WebInspectorServer.h:
427         * UIProcess/InspectorServer/WebSocketServer.cpp:
428         * UIProcess/InspectorServer/WebSocketServer.h:
429         * UIProcess/WebPageProxy.cpp:
430         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
431         (WebKit::getPluginDisplay):
432         (WebKit::x11Screen):
433         (WebKit::displayDepth):
434         (WebKit::rootWindowID):
435         (WebKit::NetscapePlugin::x11HostDisplay):
436         (WebKit::NetscapePlugin::platformPostInitializeWindowless):
437         (WebKit::NetscapePlugin::platformPaint):
438
439 2013-10-03  Mark Rowe  <mrowe@apple.com>
440
441         REGRESSION (r155787): WebKitTestRunner rebuilds from scratch when doing an incremental build
442
443         Reviewed by Dan Bernstein.
444
445         * WebKit2.xcodeproj/project.pbxproj: Have unifdef generate its output to a temporary file. If its exit status
446         indicates that the content did not change, remove the temporary file. If the content changed, moved the temporary file
447         over the destination. This avoids updating the modification date of the file when it has not changed.
448
449 2013-10-03  Sam Weinig  <sam@webkit.org>
450
451         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
452         https://bugs.webkit.org/show_bug.cgi?id=122309
453
454         Reviewed by Andreas Kling.
455
456         WKBundlePageUIClient's shouldRubberBandInDirection has never worked with
457         threaded scrolling, so remove it.
458
459         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
460         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
461         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
462         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
463         * WebProcess/WebCoreSupport/WebChromeClient.h:
464
465 2013-10-03  Sergio Correia  <sergio.correia@openbossa.org>
466
467         Create CoordinatedDrawingArea / CoordinatedDrawingAreaProxy
468         https://bugs.webkit.org/show_bug.cgi?id=122207
469
470         Reviewed by Anders Carlsson.
471
472         Since Apple are moving away from DrawingAreaImpl, Coordinated Graphics
473         should have its own drawing area.
474
475         * CMakeLists.txt: Use CoordinatedDrawingArea and
476         CoordinatedDrawingAreaProxy instead of the DrawingAreaImpl /
477         DrawingAreaProxyImpl.
478         * Shared/DrawingAreaInfo.h: Add DrawingAreaTypeCoordinated.
479         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
480         Added, copied from DrawingAreaProxyImpl.cpp.
481         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: Added,
482         copied from DrawingAreaProxyImpl.h.
483         * UIProcess/CoordinatedGraphics/WebView.cpp:
484         (WebKit::WebView::createDrawingAreaProxy): Use CoordinatedDrawingAreaProxy.
485         * UIProcess/DrawingAreaProxyImpl.cpp: Remove Coordinated Graphics
486         bits.
487         * UIProcess/DrawingAreaProxyImpl.h: Ditto.
488         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
489         Added, copied from DrawingAreaImpl.cpp.
490         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
491         Added, copied from DrawingAreaImpl.h.
492         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
493         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush): Use
494         CoordinatedDrawingArea.
495         * WebProcess/WebPage/DrawingArea.cpp:
496         (WebKit::DrawingArea::create): Handle the DrawingAreaTypeCoordinated
497         in the DrawingArea creation code.
498         * WebProcess/WebPage/DrawingAreaImpl.cpp: Remove Coordinated Graphics
499         bits.
500         * WebProcess/WebPage/DrawingAreaImpl.h: Ditto.
501
502 2013-10-03  Anders Carlsson  <andersca@apple.com>
503
504         Ignore deprecation warnings
505         https://bugs.webkit.org/show_bug.cgi?id=122302
506
507         Reviewed by Mark Rowe.
508
509         * Shared/mac/WebEventFactory.mm:
510         (WebKit::globalPoint):
511         * UIProcess/API/mac/FindIndicatorWindow.mm:
512         (WebKit::FindIndicatorWindow::setFindIndicator):
513         * UIProcess/API/mac/PageClientImpl.mm:
514         (WebKit::PageClientImpl::screenToWindow):
515         (WebKit::PageClientImpl::windowToScreen):
516         * UIProcess/API/mac/WKTextInputWindowController.mm:
517         (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
518         (-[WKTextInputPanel _hasMarkedText]):
519         * UIProcess/API/mac/WKView.mm:
520         (-[WKView characterIndexForPoint:]):
521         (-[WKView firstRectForCharacterRange:actualRange:]):
522         (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):
523         (-[WKView _setDragImage:at:linkDrag:]):
524         (-[WKView performDictionaryLookupAtCurrentMouseLocation]):
525         * UIProcess/mac/WKFullScreenWindowController.mm:
526         (-[WKFullScreenWindowController _startEnterFullScreenAnimationWithDuration:]):
527         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
528         * UIProcess/mac/WebContextMenuProxyMac.mm:
529         (WebKit::WebContextMenuProxyMac::showContextMenu):
530         * UIProcess/mac/WebPopupMenuProxyMac.mm:
531         (WebKit::WebPopupMenuProxyMac::showPopupMenu):
532
533 2013-10-03  Anders Carlsson  <andersca@apple.com>
534
535         Remove the last remnants of Qt from WebKit2
536         https://bugs.webkit.org/show_bug.cgi?id=122290
537
538         Reviewed by Andreas Kling.
539
540         * Platform/PlatformProcessIdentifier.h:
541         * Shared/API/c/WKSharedAPICast.h:
542         (WebKit::toAPI):
543         (WebKit::toImpl):
544         * Shared/Downloads/Download.cpp:
545         (WebKit::Download::Download):
546         * Shared/Downloads/Download.h:
547         * Shared/Downloads/DownloadManager.cpp:
548         * Shared/Downloads/DownloadManager.h:
549         * Shared/EditorState.cpp:
550         (WebKit::EditorState::encode):
551         (WebKit::EditorState::decode):
552         * Shared/EditorState.h:
553         (WebKit::EditorState::EditorState):
554         * Shared/LayerTreeContext.h:
555         * Shared/NativeWebKeyboardEvent.h:
556         * Shared/NativeWebMouseEvent.h:
557         * Shared/NativeWebWheelEvent.h:
558         * Shared/PlatformPopupMenuData.cpp:
559         (WebKit::PlatformPopupMenuData::encode):
560         (WebKit::PlatformPopupMenuData::decode):
561         * Shared/PlatformPopupMenuData.h:
562         * Shared/ShareableBitmap.h:
563         * Shared/WebPreferencesStore.h:
564         * UIProcess/Downloads/DownloadProxy.cpp:
565         * UIProcess/Downloads/DownloadProxy.h:
566         * UIProcess/PageClient.h:
567         * UIProcess/Plugins/PluginProcessProxy.cpp:
568         (WebKit::PluginProcessProxy::didFinishLaunching):
569         * UIProcess/WebContext.cpp:
570         (WebKit::WebContext::download):
571         * UIProcess/WebFullScreenManagerProxy.h:
572         * UIProcess/WebPageProxy.cpp:
573         (WebKit::WebPageProxy::performDragControllerAction):
574         (WebKit::WebPageProxy::receivedPolicyDecision):
575         (WebKit::WebPageProxy::editorStateChanged):
576         (WebKit::WebPageProxy::showPopupMenu):
577         * UIProcess/WebPageProxy.h:
578         * UIProcess/WebPageProxy.messages.in:
579         * UIProcess/WebPopupMenuProxy.h:
580         * WebProcess/InjectedBundle/InjectedBundle.h:
581         * WebProcess/WebCoreSupport/WebDragClient.cpp:
582         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
583         (WebKit::WebEditorClient::respondToChangedSelection):
584         (WebKit::WebEditorClient::willSetInputMethodState):
585         (WebKit::WebEditorClient::supportsGlobalSelection):
586         * WebProcess/WebCoreSupport/WebEditorClient.h:
587         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
588         (WebKit::WebFrameLoaderClient::shouldFallBack):
589         * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
590         (WebKit::WebPopupMenu::didChangeSelectedIndex):
591         * WebProcess/WebCoreSupport/WebPopupMenu.h:
592         * WebProcess/WebPage/WebPage.cpp:
593         (WebKit::WebPage::WebPage):
594         (WebKit::WebPage::editorState):
595         (WebKit::WebPage::performDragControllerAction):
596         * WebProcess/WebPage/WebPage.h:
597         * WebProcess/WebPage/WebPage.messages.in:
598         * WebProcess/WebProcess.cpp:
599         (WebKit::WebProcess::WebProcess):
600         * WebProcess/WebProcess.h:
601         * WebProcess/WebProcess.messages.in:
602         * config.h:
603
604 2013-10-03  Anders Carlsson  <andersca@apple.com>
605
606         Remove Qt files from WebKit2.
607
608         Rubber-stomped by Andreas Kling.
609
610         * DerivedSources.pri: Removed.
611         * PluginProcess.pro: Removed.
612         * PluginProcess/qt/PluginControllerProxyQt.cpp: Removed.
613         * PluginProcess/qt/PluginProcessMainQt.cpp: Removed.
614         * PluginProcess/qt/PluginProcessQt.cpp: Removed.
615         * SandboxProcess.pro: Removed.
616         * Shared/API/c/qt/WKImageQt.cpp: Removed.
617         * Shared/API/c/qt/WKImageQt.h: Removed.
618         * Shared/Downloads/qt/DownloadQt.cpp: Removed.
619         * Shared/Downloads/qt/QtFileDownloader.cpp: Removed.
620         * Shared/Downloads/qt/QtFileDownloader.h: Removed.
621         * Shared/qt/ArgumentCodersQt.cpp: Removed.
622         * Shared/qt/ArgumentCodersQt.h: Removed.
623         * Shared/qt/LayerTreeContextQt.cpp: Removed.
624         * Shared/qt/NativeWebKeyboardEventQt.cpp: Removed.
625         * Shared/qt/NativeWebMouseEventQt.cpp: Removed.
626         * Shared/qt/NativeWebTouchEventQt.cpp: Removed.
627         * Shared/qt/NativeWebWheelEventQt.cpp: Removed.
628         * Shared/qt/PlatformCertificateInfo.h: Removed.
629         * Shared/qt/ProcessExecutablePathQt.cpp: Removed.
630         * Shared/qt/QtNetworkReplyData.cpp: Removed.
631         * Shared/qt/QtNetworkReplyData.h: Removed.
632         * Shared/qt/QtNetworkRequestData.cpp: Removed.
633         * Shared/qt/QtNetworkRequestData.h: Removed.
634         * Shared/qt/ShareableBitmapQt.cpp: Removed.
635         * Shared/qt/WebCoreArgumentCodersQt.cpp: Removed.
636         * Shared/qt/WebEventFactoryQt.cpp: Removed.
637         * Shared/qt/WebEventFactoryQt.h: Removed.
638         * Shared/qt/WebURLRequestQt.cpp: Removed.
639         * Shared/qt/WebURLResponseQt.cpp: Removed.
640         * Target.pri: Removed.
641         * UIProcess/API/C/qt/WKIconDatabaseQt.cpp: Removed.
642         * UIProcess/API/C/qt/WKIconDatabaseQt.h: Removed.
643         * UIProcess/API/C/qt/WKNativeEvent.h: Removed.
644         * UIProcess/API/cpp/qt/WKStringQt.cpp: Removed.
645         * UIProcess/API/cpp/qt/WKStringQt.h: Removed.
646         * UIProcess/API/cpp/qt/WKURLQt.cpp: Removed.
647         * UIProcess/API/cpp/qt/WKURLQt.h: Removed.
648         * UIProcess/API/qt/qquicknetworkreply.cpp: Removed.
649         * UIProcess/API/qt/qquicknetworkreply_p.h: Removed.
650         * UIProcess/API/qt/qquicknetworkrequest.cpp: Removed.
651         * UIProcess/API/qt/qquicknetworkrequest_p.h: Removed.
652         * UIProcess/API/qt/qquickurlschemedelegate.cpp: Removed.
653         * UIProcess/API/qt/qquickurlschemedelegate_p.h: Removed.
654         * UIProcess/API/qt/qquickwebpage.cpp: Removed.
655         * UIProcess/API/qt/qquickwebpage_p.h: Removed.
656         * UIProcess/API/qt/qquickwebpage_p_p.h: Removed.
657         * UIProcess/API/qt/qquickwebview.cpp: Removed.
658         * UIProcess/API/qt/qquickwebview_p.h: Removed.
659         * UIProcess/API/qt/qquickwebview_p_p.h: Removed.
660         * UIProcess/API/qt/qtwebsecurityorigin.cpp: Removed.
661         * UIProcess/API/qt/qtwebsecurityorigin_p.h: Removed.
662         * UIProcess/API/qt/qwebdownloaditem.cpp: Removed.
663         * UIProcess/API/qt/qwebdownloaditem_p.h: Removed.
664         * UIProcess/API/qt/qwebdownloaditem_p_p.h: Removed.
665         * UIProcess/API/qt/qwebiconimageprovider.cpp: Removed.
666         * UIProcess/API/qt/qwebiconimageprovider_p.h: Removed.
667         * UIProcess/API/qt/qwebkittest.cpp: Removed.
668         * UIProcess/API/qt/qwebkittest_p.h: Removed.
669         * UIProcess/API/qt/qwebloadrequest.cpp: Removed.
670         * UIProcess/API/qt/qwebloadrequest_p.h: Removed.
671         * UIProcess/API/qt/qwebnavigationhistory.cpp: Removed.
672         * UIProcess/API/qt/qwebnavigationhistory_p.h: Removed.
673         * UIProcess/API/qt/qwebnavigationhistory_p_p.h: Removed.
674         * UIProcess/API/qt/qwebnavigationrequest.cpp: Removed.
675         * UIProcess/API/qt/qwebnavigationrequest_p.h: Removed.
676         * UIProcess/API/qt/qwebpermissionrequest.cpp: Removed.
677         * UIProcess/API/qt/qwebpermissionrequest_p.h: Removed.
678         * UIProcess/API/qt/qwebpreferences.cpp: Removed.
679         * UIProcess/API/qt/qwebpreferences_p.h: Removed.
680         * UIProcess/API/qt/qwebpreferences_p_p.h: Removed.
681         * UIProcess/API/qt/raw/qrawwebview.cpp: Removed.
682         * UIProcess/API/qt/raw/qrawwebview_p.h: Removed.
683         * UIProcess/API/qt/raw/qrawwebview_p_p.h: Removed.
684         * UIProcess/API/qt/tests/bytearraytestdata.cpp: Removed.
685         * UIProcess/API/qt/tests/bytearraytestdata.h: Removed.
686         * UIProcess/API/qt/tests/html/basic_page.html: Removed.
687         * UIProcess/API/qt/tests/html/basic_page2.html: Removed.
688         * UIProcess/API/qt/tests/html/bluesquare.html: Removed.
689         * UIProcess/API/qt/tests/html/direct-image-compositing.html: Removed.
690         * UIProcess/API/qt/tests/html/inputmethod.html: Removed.
691         * UIProcess/API/qt/tests/html/redsquare.html: Removed.
692         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground1.png: Removed.
693         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground3.png: Removed.
694         * UIProcess/API/qt/tests/html/resources/qwkview_paint.png: Removed.
695         * UIProcess/API/qt/tests/html/resources/simple_image.png: Removed.
696         * UIProcess/API/qt/tests/html/scroll.html: Removed.
697         * UIProcess/API/qt/tests/inspectorserver/inspectorserver.pro: Removed.
698         * UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp: Removed.
699         * UIProcess/API/qt/tests/publicapi/publicapi.pro: Removed.
700         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp: Removed.
701         * UIProcess/API/qt/tests/qmltests/DesktopBehavior.pro: Removed.
702         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml: Removed.
703         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml: Removed.
704         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationRequested.qml: Removed.
705         * UIProcess/API/qt/tests/qmltests/WebView.pro: Removed.
706         * UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml: Removed.
707         * UIProcess/API/qt/tests/qmltests/WebView/tst_colorChooser.qml: Removed.
708         * UIProcess/API/qt/tests/qmltests/WebView/tst_doubleTapToZoom.qml: Removed.
709         * UIProcess/API/qt/tests/qmltests/WebView/tst_download.qml: Removed.
710         * UIProcess/API/qt/tests/qmltests/WebView/tst_evaluateJavaScript.qml: Removed.
711         * UIProcess/API/qt/tests/qmltests/WebView/tst_favIconLoad.qml: Removed.
712         * UIProcess/API/qt/tests/qmltests/WebView/tst_findText.qml: Removed.
713         * UIProcess/API/qt/tests/qmltests/WebView/tst_fitToView.qml: Removed.
714         * UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml: Removed.
715         * UIProcess/API/qt/tests/qmltests/WebView/tst_itemSelector.qml: Removed.
716         * UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml: Removed.
717         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml: Removed.
718         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml: Removed.
719         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml: Removed.
720         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml: Removed.
721         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadUrl.qml: Removed.
722         * UIProcess/API/qt/tests/qmltests/WebView/tst_messaging.qml: Removed.
723         * UIProcess/API/qt/tests/qmltests/WebView/tst_multiFileUpload.qml: Removed.
724         * UIProcess/API/qt/tests/qmltests/WebView/tst_navigationHistory.qml: Removed.
725         * UIProcess/API/qt/tests/qmltests/WebView/tst_notification.qml: Removed.
726         * UIProcess/API/qt/tests/qmltests/WebView/tst_origin.qml: Removed.
727         * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml: Removed.
728         * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml: Removed.
729         * UIProcess/API/qt/tests/qmltests/WebView/tst_resize.qml: Removed.
730         * UIProcess/API/qt/tests/qmltests/WebView/tst_singleFileUpload.qml: Removed.
731         * UIProcess/API/qt/tests/qmltests/WebView/tst_titleChanged.qml: Removed.
732         * UIProcess/API/qt/tests/qmltests/WebView/tst_userScripts.qml: Removed.
733         * UIProcess/API/qt/tests/qmltests/WebView/tst_wheelEventHandling.qml: Removed.
734         * UIProcess/API/qt/tests/qmltests/common/TestWebView.qml: Removed.
735         * UIProcess/API/qt/tests/qmltests/common/alert.html: Removed.
736         * UIProcess/API/qt/tests/qmltests/common/append-document-title.js: Removed.
737         * UIProcess/API/qt/tests/qmltests/common/big-user-script.js: Removed.
738         * UIProcess/API/qt/tests/qmltests/common/change-document-title.js: Removed.
739         * UIProcess/API/qt/tests/qmltests/common/colorChooser.html: Removed.
740         * UIProcess/API/qt/tests/qmltests/common/confirm.html: Removed.
741         * UIProcess/API/qt/tests/qmltests/common/download.zip: Removed.
742         * UIProcess/API/qt/tests/qmltests/common/evaluatejavascript.html: Removed.
743         * UIProcess/API/qt/tests/qmltests/common/favicon.html: Removed.
744         * UIProcess/API/qt/tests/qmltests/common/favicon.png: Removed.
745         * UIProcess/API/qt/tests/qmltests/common/favicon2.html: Removed.
746         * UIProcess/API/qt/tests/qmltests/common/font-preferences.html: Removed.
747         * UIProcess/API/qt/tests/qmltests/common/geolocation.html: Removed.
748         * UIProcess/API/qt/tests/qmltests/common/javascript.html: Removed.
749         * UIProcess/API/qt/tests/qmltests/common/link.html: Removed.
750         * UIProcess/API/qt/tests/qmltests/common/localStorage.html: Removed.
751         * UIProcess/API/qt/tests/qmltests/common/messaging.html: Removed.
752         * UIProcess/API/qt/tests/qmltests/common/multifileupload.html: Removed.
753         * UIProcess/API/qt/tests/qmltests/common/notification.html: Removed.
754         * UIProcess/API/qt/tests/qmltests/common/prompt.html: Removed.
755         * UIProcess/API/qt/tests/qmltests/common/qrctest.html: Removed.
756         * UIProcess/API/qt/tests/qmltests/common/redirect.html: Removed.
757         * UIProcess/API/qt/tests/qmltests/common/select.html: Removed.
758         * UIProcess/API/qt/tests/qmltests/common/selectwithsize.html: Removed.
759         * UIProcess/API/qt/tests/qmltests/common/singlefileupload.html: Removed.
760         * UIProcess/API/qt/tests/qmltests/common/small-favicon.png: Removed.
761         * UIProcess/API/qt/tests/qmltests/common/test1.html: Removed.
762         * UIProcess/API/qt/tests/qmltests/common/test2.html: Removed.
763         * UIProcess/API/qt/tests/qmltests/common/test3.html: Removed.
764         * UIProcess/API/qt/tests/qmltests/common/test4.html: Removed.
765         * UIProcess/API/qt/tests/qmltests/common/test5.html: Removed.
766         * UIProcess/API/qt/tests/qmltests/common/titleupdate.js: Removed.
767         * UIProcess/API/qt/tests/qmltests/qmltests.pro: Removed.
768         * UIProcess/API/qt/tests/qmltests/resources.qrc: Removed.
769         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp: Removed.
770         * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro: Removed.
771         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp: Removed.
772         * UIProcess/API/qt/tests/qrawwebview/qrawwebview.pro: Removed.
773         * UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp: Removed.
774         * UIProcess/API/qt/tests/tests.pri: Removed.
775         * UIProcess/API/qt/tests/testwindow.h: Removed.
776         * UIProcess/API/qt/tests/util.cpp: Removed.
777         * UIProcess/API/qt/tests/util.h: Removed.
778         * UIProcess/InspectorServer/qt/WebInspectorServerQt.cpp: Removed.
779         * UIProcess/InspectorServer/qt/WebSocketServerQt.cpp: Removed.
780         * UIProcess/InspectorServer/qt/WebSocketServerQt.h: Removed.
781         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp: Removed.
782         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp: Removed.
783         * UIProcess/qt/BackingStoreQt.cpp: Removed.
784         * UIProcess/qt/PageViewportControllerClientQt.cpp: Removed.
785         * UIProcess/qt/PageViewportControllerClientQt.h: Removed.
786         * UIProcess/qt/QtDialogRunner.cpp: Removed.
787         * UIProcess/qt/QtDialogRunner.h: Removed.
788         * UIProcess/qt/QtDownloadManager.cpp: Removed.
789         * UIProcess/qt/QtDownloadManager.h: Removed.
790         * UIProcess/qt/QtGestureRecognizer.cpp: Removed.
791         * UIProcess/qt/QtGestureRecognizer.h: Removed.
792         * UIProcess/qt/QtPageClient.cpp: Removed.
793         * UIProcess/qt/QtPageClient.h: Removed.
794         * UIProcess/qt/QtPanGestureRecognizer.cpp: Removed.
795         * UIProcess/qt/QtPanGestureRecognizer.h: Removed.
796         * UIProcess/qt/QtPinchGestureRecognizer.cpp: Removed.
797         * UIProcess/qt/QtPinchGestureRecognizer.h: Removed.
798         * UIProcess/qt/QtTapGestureRecognizer.cpp: Removed.
799         * UIProcess/qt/QtTapGestureRecognizer.h: Removed.
800         * UIProcess/qt/QtWebContext.cpp: Removed.
801         * UIProcess/qt/QtWebContext.h: Removed.
802         * UIProcess/qt/QtWebError.cpp: Removed.
803         * UIProcess/qt/QtWebError.h: Removed.
804         * UIProcess/qt/QtWebIconDatabaseClient.cpp: Removed.
805         * UIProcess/qt/QtWebIconDatabaseClient.h: Removed.
806         * UIProcess/qt/QtWebPageEventHandler.cpp: Removed.
807         * UIProcess/qt/QtWebPageEventHandler.h: Removed.
808         * UIProcess/qt/QtWebPagePolicyClient.cpp: Removed.
809         * UIProcess/qt/QtWebPagePolicyClient.h: Removed.
810         * UIProcess/qt/QtWebPageSGNode.cpp: Removed.
811         * UIProcess/qt/QtWebPageSGNode.h: Removed.
812         * UIProcess/qt/QtWebPageUIClient.cpp: Removed.
813         * UIProcess/qt/QtWebPageUIClient.h: Removed.
814         * UIProcess/qt/TextCheckerQt.cpp: Removed.
815         * UIProcess/qt/WebColorPickerQt.cpp: Removed.
816         * UIProcess/qt/WebColorPickerQt.h: Removed.
817         * UIProcess/qt/WebContextMenuProxyQt.cpp: Removed.
818         * UIProcess/qt/WebContextMenuProxyQt.h: Removed.
819         * UIProcess/qt/WebContextQt.cpp: Removed.
820         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Removed.
821         * UIProcess/qt/WebGeolocationProviderQt.cpp: Removed.
822         * UIProcess/qt/WebGeolocationProviderQt.h: Removed.
823         * UIProcess/qt/WebInspectorProxyQt.cpp: Removed.
824         * UIProcess/qt/WebPageProxyQt.cpp: Removed.
825         * UIProcess/qt/WebPopupMenuProxyQt.cpp: Removed.
826         * UIProcess/qt/WebPopupMenuProxyQt.h: Removed.
827         * UIProcess/qt/WebPreferencesQt.cpp: Removed.
828         * UIProcess/qt/WebProcessProxyQt.cpp: Removed.
829         * WebKit2.pri: Removed.
830         * WebKit2.pro: Removed.
831         * WebProcess.pro: Removed.
832         * WebProcess/Cookies/qt/WebCookieManagerQt.cpp: Removed.
833         * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp: Removed.
834         * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp: Removed.
835         * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp: Removed.
836         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp: Removed.
837         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Removed.
838         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp: Removed.
839         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h: Removed.
840         * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp: Removed.
841         * WebProcess/WebPage/qt/WebInspectorQt.cpp: Removed.
842         * WebProcess/WebPage/qt/WebPageQt.cpp: Removed.
843         * WebProcess/qt/QtBuiltinBundle.cpp: Removed.
844         * WebProcess/qt/QtBuiltinBundle.h: Removed.
845         * WebProcess/qt/QtBuiltinBundlePage.cpp: Removed.
846         * WebProcess/qt/QtBuiltinBundlePage.h: Removed.
847         * WebProcess/qt/QtNetworkAccessManager.cpp: Removed.
848         * WebProcess/qt/QtNetworkAccessManager.h: Removed.
849         * WebProcess/qt/QtNetworkReply.cpp: Removed.
850         * WebProcess/qt/QtNetworkReply.h: Removed.
851         * WebProcess/qt/SeccompFiltersWebProcessQt.cpp: Removed.
852         * WebProcess/qt/SeccompFiltersWebProcessQt.h: Removed.
853         * WebProcess/qt/WebProcessMainQt.cpp: Removed.
854         * WebProcess/qt/WebProcessQt.cpp: Removed.
855         * qt/MainQt.cpp: Removed.
856         * qt/PluginMainQt.cpp: Removed.
857
858 2013-10-03  Brady Eidson  <beidson@apple.com>
859
860         Move IDBFactoryBackend creation to DatabaseStrategy.
861         https://bugs.webkit.org/show_bug.cgi?id=122284
862
863         Reviewed by Alexey Proskuryakov.
864
865         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
866         (WebKit::WebPlatformStrategies::createIDBFactoryBackend): Fallback to the default for now.
867         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
868
869 2013-10-03  Zan Dobersek  <zdobersek@igalia.com>
870
871         Unreviewed fix of DrawingArea creation on non-Mac platforms after r156793.
872         std::make_unique<DrawingAreaImpl>() should be used, as before that revision.
873
874         * WebProcess/WebPage/DrawingArea.cpp:
875         (WebKit::DrawingArea::create):
876
877 2013-10-02  Anders Carlsson  <andersca@apple.com>
878
879         Remove Qt code from Platform/
880         https://bugs.webkit.org/show_bug.cgi?id=122240
881
882         Reviewed by Andreas Kling.
883
884         * Platform/CoreIPC/Connection.h:
885         * Platform/Logging.cpp:
886         * Platform/Logging.h:
887         * Platform/Module.h:
888         * Platform/PlatformProcessIdentifier.h:
889         * Platform/SharedMemory.h:
890         * Platform/WorkQueue.h:
891         * Platform/qt/LoggingQt.cpp: Removed.
892         * Platform/qt/ModuleQt.cpp: Removed.
893         * Platform/qt/WorkQueueQt.cpp: Removed.
894
895 2013-10-02  Tim Horton  <timothy_horton@apple.com>
896
897         [mac] Stop using DrawingAreaImpl on PLATFORM(MAC) 
898         https://bugs.webkit.org/show_bug.cgi?id=121859
899         <rdar://problem/15069359>
900
901         Reviewed by Anders Carlsson.
902
903         The Mac port will now use tiled drawing for all WebKit2 views.
904
905         * Shared/DrawingAreaInfo.h:
906         Don't include DrawingAreaTypeImpl as a valid DrawingAreaType on Mac.
907
908         * UIProcess/API/mac/WKView.mm:
909         (-[WKView drawRect:]):
910         Remove our implementation of drawRect that paints from DrawingAreaImpl's backing store.
911
912         (-[WKView _shouldUseTiledDrawingArea]):
913         Removed. Always treated as if it were true, now.
914
915         (-[WKView _createDrawingAreaProxy]):
916         Always create a TiledCoreAnimationDrawingAreaProxy now.
917
918         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
919         (-[WKView wantsUpdateLayer]):
920         WKView always wants a layer, etc.
921
922         * UIProcess/BackingStore.h:
923         Remove Mac-specific BackingStore code, only used for DrawingAreaImpl on Mac.
924
925         * UIProcess/DrawingAreaProxy.h:
926         Remove an unneeded include.
927
928         * UIProcess/mac/BackingStoreMac.mm: Removed.
929         * WebKit2.xcodeproj/project.pbxproj:
930         Remove a bunch of files we don't need to build anymore.
931
932         * WebProcess/WebPage/DrawingArea.cpp:
933         (WebKit::DrawingArea::create):
934         Never create a DrawingAreaImpl on Mac.
935
936         * WebProcess/WebPage/DrawingAreaImpl.cpp:
937         (WebKit::DrawingAreaImpl::updatePreferences):
938         (WebKit::DrawingAreaImpl::resumePainting):
939         * WebProcess/WebPage/DrawingAreaImpl.h:
940         Remove Mac-specific DrawingAreaImpl code.
941
942         * WebProcess/WebPage/LayerTreeHost.cpp:
943         (WebKit::LayerTreeHost::create):
944         * WebProcess/WebPage/mac/LayerTreeHostMac.h: Removed.
945         * WebProcess/WebPage/mac/LayerTreeHostMac.mm: Removed.
946
947 2013-10-02  Daniel Bates  <dabates@apple.com>
948
949         Fix the Mac WebKit2 build following <http://trac.webkit.org/changeset/139241>
950         (https://bugs.webkit.org/show_bug.cgi?id=104197)
951
952         WebContextMac.mm fails to compile when building with network process disabled.
953
954         The constants WebKit2HTTPProxyDefaultsKey and WebKit2HTTPSProxyDefaultsKey,
955         defined in WebContextMac.mm, should only be defined when building with the
956         network process enabled as these constants are only referenced from
957         ENABLE(NETWORK_PROCESS)-guard code.
958
959         * UIProcess/mac/WebContextMac.mm:
960
961 2013-10-01  Sam Weinig  <sam@webkit.org>
962
963         CTTE: DOMWrapperWorlds should be passed around by reference
964         https://bugs.webkit.org/show_bug.cgi?id=122206
965
966         Reviewed by Andreas Kling.
967
968         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
969         (WebKit::InjectedBundlePageLoaderClient::didClearWindowObjectForFrame):
970         (WebKit::InjectedBundlePageLoaderClient::globalObjectIsAvailableForFrame):
971         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
972         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
973         (WebKit::InjectedBundleScriptWorld::getOrCreate):
974         (WebKit::InjectedBundleScriptWorld::normalWorld):
975         (WebKit::InjectedBundleScriptWorld::coreWorld):
976         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
977         * WebProcess/Plugins/PluginView.cpp:
978         (WebKit::PluginView::windowScriptNPObject):
979         (WebKit::PluginView::pluginElementNPObject):
980         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
981         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
982         (WebKit::WebFrameLoaderClient::dispatchGlobalObjectAvailable):
983         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
984
985 2013-10-01  Mark Rowe  <mrowe@apple.com>
986
987         <http://webkit.org/b/122190> WebKit2 APIs returning CF and NS types should explicitly declare whether they return retained objects.
988
989         This make the APIs easier to use under ARC and can help out the static analyzer.
990
991         Reviewed by Anders Carlsson.
992
993         * Shared/API/c/cf/WKErrorCF.h:
994         * Shared/API/c/cf/WKStringCF.h:
995         * Shared/API/c/cf/WKURLCF.h:
996         * Shared/API/c/cg/WKImageCG.h:
997         * Shared/API/c/mac/WKURLRequestNS.h:
998         * Shared/API/c/mac/WKURLResponseNS.h:
999         * UIProcess/API/C/cg/WKIconDatabaseCG.h:
1000
1001 2013-10-01  Gabor Abraham  <abrhm@inf.u-szeged.hu>
1002
1003         [Qt][WK2] Fix build after r156688.
1004         https://bugs.webkit.org/show_bug.cgi?id=122153
1005
1006         Reviewed by Allan Sandfeld Jensen.
1007
1008         * Shared/qt/ShareableBitmapQt.cpp:
1009         (WebKit::ShareableBitmap::createGraphicsContext):
1010         * UIProcess/API/qt/qquickwebview.cpp:
1011         (QQuickWebViewPrivate::createDrawingAreaProxy):
1012         * UIProcess/API/qt/qquickwebview_p_p.h:
1013         * UIProcess/API/qt/raw/qrawwebview.cpp:
1014         (QRawWebViewPrivate::createDrawingAreaProxy):
1015         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
1016         * UIProcess/qt/QtPageClient.cpp:
1017         (WebKit::QtPageClient::createDrawingAreaProxy):
1018         * UIProcess/qt/QtPageClient.h:
1019         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp:
1020         (WebKit::convertQPixmapToShareableBitmap):
1021
1022 2013-09-30  Ryuan Choi  <ryuan.choi@samsung.com>
1023
1024         Build fix for EFL, Qt, Gtk port after r156688
1025         https://bugs.webkit.org/show_bug.cgi?id=122139
1026
1027         Reviewed by Anders Carlsson.
1028
1029         Get rid of more uses of OwnPtr and PassOwnPtr.
1030
1031         * Shared/API/c/cairo/WKImageCairo.cpp:
1032         (WKImageCreateFromCairoSurface):
1033         * Shared/API/c/qt/WKImageQt.cpp:
1034         (WKImageCreateFromQImage):
1035         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1036         (WebKit::WebCoordinatedSurface::createGraphicsContext):
1037         (WebKit::WebCoordinatedSurface::paintToSurface):
1038         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1039         * Shared/cairo/ShareableBitmapCairo.cpp:
1040         (WebKit::ShareableBitmap::createGraphicsContext):
1041         * Shared/gtk/ArgumentCodersGtk.cpp:
1042         (CoreIPC::encodeImage):
1043         * UIProcess/API/gtk/PageClientImpl.cpp:
1044         (WebKit::PageClientImpl::createDrawingAreaProxy):
1045         * UIProcess/API/gtk/PageClientImpl.h:
1046         * UIProcess/CoordinatedGraphics/WebView.cpp:
1047         (WebKit::WebView::createDrawingAreaProxy):
1048         * UIProcess/CoordinatedGraphics/WebView.h:
1049         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
1050         (WebKit::convertCairoSurfaceToShareableBitmap):
1051
1052 2013-09-30  Sam Weinig  <sam@webkit.org>
1053
1054         Remove support for DOMFileSystem
1055         https://bugs.webkit.org/show_bug.cgi?id=122137
1056
1057         Reviewed by Anders Carlsson.
1058
1059         * Configurations/FeatureDefines.xcconfig:
1060
1061 2013-09-30  Anders Carlsson  <andersca@apple.com>
1062
1063         Fix build.
1064
1065         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1066
1067 2013-09-30  Anders Carlsson  <andersca@apple.com>
1068
1069         Get rid of more uses of OwnPtr and PassOwnPtr
1070         https://bugs.webkit.org/show_bug.cgi?id=122136
1071
1072         Reviewed by Antti Koivisto.
1073
1074         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
1075         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
1076         (WebKit::NetworkBlobRegistry::registerBlobURL):
1077         * NetworkProcess/FileAPI/NetworkBlobRegistry.h:
1078         * NetworkProcess/NetworkResourceLoader.cpp:
1079         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
1080         * NetworkProcess/NetworkResourceLoader.h:
1081         * NetworkProcess/SynchronousNetworkLoaderClient.h:
1082         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1083         * Platform/CoreIPC/ArgumentDecoder.h:
1084         * Platform/CoreIPC/ArgumentEncoder.h:
1085         * Platform/CoreIPC/MessageDecoder.cpp:
1086         (CoreIPC::MessageDecoder::setImportanceAssertion):
1087         * Platform/CoreIPC/MessageDecoder.h:
1088         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1089         (CoreIPC::Connection::receiveSourceEventHandler):
1090         * Platform/CoreIPC/mac/ImportanceAssertion.h:
1091         (CoreIPC::ImportanceAssertion::ImportanceAssertion):
1092         * Platform/mac/LayerHostingContext.h:
1093         * Platform/mac/LayerHostingContext.mm:
1094         (WebKit::LayerHostingContext::createForPort):
1095         (WebKit::LayerHostingContext::createForWindowServer):
1096         * PluginProcess/PluginControllerProxy.cpp:
1097         (WebKit::PluginControllerProxy::paint):
1098         * PluginProcess/PluginControllerProxy.h:
1099         * PluginProcess/WebProcessConnection.cpp:
1100         (WebKit::WebProcessConnection::addPluginControllerProxy):
1101         (WebKit::WebProcessConnection::removePluginControllerProxy):
1102         (WebKit::WebProcessConnection::createPluginInternal):
1103         * PluginProcess/WebProcessConnection.h:
1104         * Shared/API/c/cg/WKImageCG.cpp:
1105         (WKImageCreateFromCGImage):
1106         * Shared/BlockingResponseMap.h:
1107         (BlockingResponseMap::waitForResponse):
1108         (BlockingResponseMap::didReceiveResponse):
1109         * Shared/Downloads/Download.cpp:
1110         * Shared/Downloads/Download.h:
1111         * Shared/Downloads/DownloadManager.cpp:
1112         (WebKit::DownloadManager::startDownload):
1113         (WebKit::DownloadManager::convertHandleToDownload):
1114         * Shared/FileAPI/BlobRegistrationData.cpp:
1115         (WebKit::BlobRegistrationData::BlobRegistrationData):
1116         (WebKit::BlobRegistrationData::releaseData):
1117         (WebKit::BlobRegistrationData::decode):
1118         * Shared/FileAPI/BlobRegistrationData.h:
1119         * Shared/Plugins/NPObjectMessageReceiver.cpp:
1120         * Shared/Plugins/NPObjectMessageReceiver.h:
1121         * Shared/Plugins/NPRemoteObjectMap.cpp:
1122         (WebKit::NPRemoteObjectMap::registerNPObject):
1123         * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
1124         (WebKit::NetscapePluginModule::tryLoad):
1125         * Shared/Plugins/Netscape/NetscapePluginModule.h:
1126         * Shared/ShareableBitmap.h:
1127         * Shared/WebURL.h:
1128         (WebKit::WebURL::create):
1129         (WebKit::WebURL::WebURL):
1130         (WebKit::WebURL::parseURLIfNecessary):
1131         * Shared/cg/ShareableBitmapCG.cpp:
1132         (WebKit::ShareableBitmap::createGraphicsContext):
1133         (WebKit::ShareableBitmap::makeCGImageCopy):
1134         * Shared/mac/SecItemShim.cpp:
1135         (WebKit::sendSecItemRequest):
1136         (WebKit::webSecItemCopyMatching):
1137         (WebKit::webSecItemAdd):
1138         (WebKit::webSecItemUpdate):
1139         (WebKit::webSecItemDelete):
1140         (WebKit::SecItemShim::secItemResponse):
1141         * UIProcess/API/mac/FindIndicatorWindow.h:
1142         * UIProcess/API/mac/PageClientImpl.h:
1143         * UIProcess/API/mac/PageClientImpl.mm:
1144         (WebKit::PageClientImpl::createDrawingAreaProxy):
1145         * UIProcess/API/mac/WKView.mm:
1146         (-[WKView std::WebKit::]):
1147         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1148         * UIProcess/API/mac/WKViewInternal.h:
1149         * UIProcess/BackingStore.cpp:
1150         * UIProcess/BackingStore.h:
1151         * UIProcess/DrawingAreaProxyImpl.cpp:
1152         (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
1153         * UIProcess/DrawingAreaProxyImpl.h:
1154         * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
1155         * UIProcess/PageClient.h:
1156         * UIProcess/WebPageProxy.h:
1157         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
1158         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
1159         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
1160         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
1161         (WebKit::BlobRegistryProxy::registerBlobURL):
1162         * WebProcess/FileAPI/BlobRegistryProxy.h:
1163         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
1164         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
1165         (WKBundlePageBannerCreateBannerWithCALayer):
1166         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1167         (WebKit::imageForRect):
1168         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1169         (WebKit::NetscapePlugin::scheduleTimer):
1170         (WebKit::NetscapePlugin::unscheduleTimer):
1171         (WebKit::NetscapePlugin::snapshot):
1172         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1173         * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
1174         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1175         (WebKit::PDFPlugin::snapshot):
1176         * WebProcess/Plugins/PluginProxy.cpp:
1177         (WebKit::PluginProxy::paint):
1178         (WebKit::PluginProxy::update):
1179         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
1180         (WebKit::convertImageToBitmap):
1181         * WebProcess/WebPage/DrawingArea.cpp:
1182         (WebKit::DrawingArea::create):
1183         * WebProcess/WebPage/DrawingArea.h:
1184         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1185         (WebKit::DrawingAreaImpl::display):
1186         * WebProcess/WebPage/DrawingAreaImpl.h:
1187         * WebProcess/WebPage/FindController.cpp:
1188         (WebKit::FindController::getFindIndicatorBitmapAndRect):
1189         * WebProcess/WebPage/WebFrame.cpp:
1190         (WebKit::WebFrame::createWithCoreMainFrame):
1191         (WebKit::WebFrame::createSubframe):
1192         (WebKit::WebFrame::create):
1193         (WebKit::WebFrame::WebFrame):
1194         * WebProcess/WebPage/WebFrame.h:
1195         * WebProcess/WebPage/WebPage.cpp:
1196         (WebKit::WebPage::scaledSnapshotWithOptions):
1197         (WebKit::WebPage::drawRectToImage):
1198         * WebProcess/WebPage/WebPage.h:
1199         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1200         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1201         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1202         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
1203         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1204         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
1205         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1206         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1207
1208 2013-09-27  Anders Carlsson  <andersca@apple.com>
1209
1210         Message sending functions should only accept rvalues
1211         https://bugs.webkit.org/show_bug.cgi?id=122041
1212
1213         Reviewed by Andreas Kling.
1214
1215         In order to safely encode move-only types, make all send variants accept rvalues only, except
1216         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
1217         to send a move-only type in a message will fail to compile.
1218
1219         * NetworkProcess/NetworkResourceLoader.h:
1220         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
1221         * Platform/CoreIPC/Connection.h:
1222         (CoreIPC::Connection::send):
1223         (CoreIPC::Connection::sendSync):
1224         * Platform/CoreIPC/MessageSender.h:
1225         (CoreIPC::MessageSender::sendSync):
1226         * Shared/ChildProcessProxy.h:
1227         (WebKit::ChildProcessProxy::send):
1228         (WebKit::ChildProcessProxy::sendSync):
1229         * UIProcess/WebContext.h:
1230         (WebKit::WebContext::sendToNetworkingProcess):
1231         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
1232         (WebKit::WebContext::sendToAllProcesses):
1233         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
1234         (WebKit::WebContext::sendToOneProcess):
1235         * UIProcess/WebPageGroup.h:
1236         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1237
1238 2013-09-30  Benjamin Poulain  <benjamin@webkit.org>
1239
1240         Remove the code guarded by STYLE_SCOPED
1241         https://bugs.webkit.org/show_bug.cgi?id=122123
1242
1243         Reviewed by Anders Carlsson.
1244
1245         * Configurations/FeatureDefines.xcconfig:
1246
1247 2013-09-30  Csaba Osztrogonác  <ossy@webkit.org>
1248
1249         NetworkResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
1250         https://bugs.webkit.org/show_bug.cgi?id=122110
1251
1252         Reviewed by Darin Adler.
1253
1254         * NetworkProcess/NetworkResourceLoader.messages.in:
1255
1256 2013-09-30  Mark Rowe  <mrowe@apple.com>
1257
1258         Fix the build when building against an SDK.
1259
1260         Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
1261         the compiler command lines. It can't know to do this for the system framework search paths
1262         we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
1263
1264         * Configurations/BaseTarget.xcconfig:
1265
1266 2013-09-30  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1267
1268         [Qt] Fix force_static_libs_as_shared in WebKit2
1269         https://bugs.webkit.org/show_bug.cgi?id=121961
1270
1271         Reviewed by Csaba Osztrogonác.
1272
1273         Get rid of the unused WebKit2QML library
1274
1275         * Target.pri:
1276         * WebKit2.pro:
1277         * WebKit2QML.pri: Removed.
1278
1279 2013-09-29  Mark Rowe  <mrowe@apple.com>
1280
1281         Fix the Lion build.
1282
1283         Ensure that C++ and Objective-C++ files build with the right compiler flags.
1284
1285         * Configurations/BaseTarget.xcconfig:
1286
1287 2013-09-29  Sam Weinig  <sam@webkit.org>
1288
1289         Fix the build.
1290
1291         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1292         (WebKit::NPRuntimeObjectMap::evaluate):
1293
1294 2013-09-28  Mark Rowe  <mrowe@apple.com>
1295
1296         Fix some failures with newer versions of clang.
1297
1298         Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
1299         usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
1300         as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
1301         flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
1302         in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
1303
1304         Reviewed by Dan Bernstein.
1305
1306         * Configurations/BaseTarget.xcconfig:
1307         * Configurations/DebugRelease.xcconfig:
1308
1309 2013-09-28  Mark Rowe  <mrowe@apple.com>
1310
1311         Take Xcode's advice and enable some extra warnings.
1312
1313         Reviewed by Sam Weinig.
1314
1315         * Configurations/Base.xcconfig:
1316         * WebKit2.xcodeproj/project.pbxproj:
1317
1318 2013-09-28  Darin Adler  <darin@apple.com>
1319
1320         Add Frame::mainFrame and Frame::isMainFrame
1321         https://bugs.webkit.org/show_bug.cgi?id=122064
1322
1323         Reviewed by Andreas Kling.
1324
1325         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1326         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrameView):
1327         Call isMainFrame.
1328
1329 2013-09-27  Anders Carlsson  <andersca@apple.com>
1330
1331         Message sending functions should only accept rvalues
1332         https://bugs.webkit.org/show_bug.cgi?id=122041
1333
1334         Reviewed by Andreas Kling.
1335
1336         In order to safely encode move-only types, make all send variants accept rvalues only, except
1337         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
1338         to send a move-only type in a message will fail to compile.
1339
1340         * NetworkProcess/NetworkResourceLoader.h:
1341         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
1342         * Platform/CoreIPC/Connection.h:
1343         (CoreIPC::Connection::send):
1344         (CoreIPC::Connection::sendSync):
1345         * Platform/CoreIPC/MessageSender.h:
1346         (CoreIPC::MessageSender::sendSync):
1347         * Shared/ChildProcessProxy.h:
1348         (WebKit::ChildProcessProxy::send):
1349         (WebKit::ChildProcessProxy::sendSync):
1350         * UIProcess/WebContext.h:
1351         (WebKit::WebContext::sendToNetworkingProcess):
1352         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
1353         (WebKit::WebContext::sendToAllProcesses):
1354         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
1355         (WebKit::WebContext::sendToOneProcess):
1356         * UIProcess/WebPageGroup.h:
1357         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1358
1359 2013-09-28  Philippe Normand  <pnormand@igalia.com>
1360
1361         Unreviewed GTK build fix after r156560.
1362
1363         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1364         (WebKit::LayerTreeHostGtk::paintContents):
1365         (WebKit::LayerTreeHostGtk::createPageOverlayLayer):
1366         (WebKit::LayerTreeHostGtk::destroyPageOverlayLayer):
1367         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1368
1369 2013-09-28  Mark Rowe  <mrowe@apple.com>
1370
1371         WebKit2 fails to build with newer versions of clang.
1372
1373         Reviewed by Anders Carlsson.
1374
1375         * Shared/VisitedLinkTable.cpp: #if a function that's only used inside an ASSERT.
1376         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Remove an unused constant.
1377         * UIProcess/mac/WKFullScreenWindowController.mm: Ditto.
1378         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Ditto.
1379         * WebProcess/WebPage/FindController.cpp: Ditto.
1380         * WebProcess/WebPage/WebBackForwardListProxy.cpp: Remove two unused constants.
1381
1382 2013-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1383
1384         CookieStorageShim should be PLATFORM(MAC) guarded
1385         https://bugs.webkit.org/show_bug.cgi?id=121423
1386
1387         Reviewed by Darin Adler.
1388
1389         Original patch by Kwang Yul Seo <skyul@company100.com>.
1390
1391         * WebProcess/WebProcess.cpp:
1392         (WebKit::WebProcess::initializeWebProcess):
1393
1394 2013-09-27  Enrica Casucci  <enrica@apple.com>
1395
1396         Upstream changes to Pasteboard implementation for iOS.
1397         https://bugs.webkit.org/show_bug.cgi?id=121818
1398
1399         Reviewed by Benjamin Poulain.
1400
1401         * Shared/WebCoreArgumentCoders.cpp:
1402         (CoreIPC::decodeSharedBuffer):
1403         * Shared/WebCoreArgumentCoders.h:
1404         * UIProcess/WebContext.h:
1405         * UIProcess/WebContext.messages.in:
1406         * UIProcess/mac/WebContextMac.mm:
1407         (WebKit::WebContext::writeWebContentToPasteboard):
1408         (WebKit::WebContext::writeImageToPasteboard):
1409         (WebKit::WebContext::writeStringToPasteboard):
1410         (WebKit::WebContext::readStringFromPasteboard):
1411         (WebKit::WebContext::readURLFromPasteboard):
1412         (WebKit::WebContext::readBufferFromPasteboard):
1413         (WebKit::WebContext::getPasteboardItemsCount):
1414         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1415         (WebKit::WebPlatformStrategies::writeToPasteboard):
1416         (WebKit::WebPlatformStrategies::getPasteboardItemsCount):
1417         (WebKit::WebPlatformStrategies::readBufferFromPasteboard):
1418         (WebKit::WebPlatformStrategies::readURLFromPasteboard):
1419         (WebKit::WebPlatformStrategies::readStringFromPasteboard):
1420         (WebKit::WebPlatformStrategies::changeCount):
1421         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1422
1423 2013-09-27  Ralph Thomas  <ralpht@gmail.com>
1424
1425         [WK2][CoordinatedGraphics] fix build after r156560
1426         https://bugs.webkit.org/show_bug.cgi?id=122028
1427
1428         Fixing build.
1429
1430         Reviewed by Anders Carlsson.
1431
1432         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1433         (WebKit::CoordinatedLayerTreeHost::paintLayerContents):
1434         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1435
1436 2013-09-27  Anders Carlsson  <andersca@apple.com>
1437
1438         Use std::unique_ptr for GraphicsLayer creation
1439         https://bugs.webkit.org/show_bug.cgi?id=122020
1440
1441         Reviewed by Antti Koivisto.
1442
1443         * UIProcess/mac/RemoteLayerTreeHost.h:
1444         * UIProcess/mac/RemoteLayerTreeHost.mm:
1445         (WebKit::RemoteLayerTreeHost::getOrCreateLayer):
1446         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1447         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1448         (WebKit::LayerTreeHostMac::paintContents):
1449         (WebKit::LayerTreeHostMac::createPageOverlayLayer):
1450         (WebKit::LayerTreeHostMac::destroyPageOverlayLayer):
1451         * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
1452         * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
1453         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1454         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1455         (WebKit::RemoteLayerTreeContext::createGraphicsLayer):
1456         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1457         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1458         (WebKit::TiledCoreAnimationDrawingArea::paintContents):
1459         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
1460         (WebKit::TiledCoreAnimationDrawingArea::destroyPageOverlayLayer):
1461
1462 2013-09-27  Beth Dakin  <bdakin@apple.com>
1463
1464         ScrollbarPainterController should adopt the api to lock overlay scrollbar state
1465         https://bugs.webkit.org/show_bug.cgi?id=121928
1466
1467         Reviewed by Sam Weinig.
1468
1469         This function no longer needs to be implemented by ScrollablArea subclasses.
1470         * WebProcess/Plugins/PDF/PDFPlugin.h:
1471         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1472
1473 2013-09-27  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
1474
1475         Web Inspector: Make WebKitGTK+ port work with Eclipse chromedevtools plugin
1476         https://bugs.webkit.org/show_bug.cgi?id=121121
1477
1478         Reviewed by Gustavo Noronha Silva.
1479
1480         The chromedevtools plugin (http://code.google.com/p/chromedevtools/) requires a specific
1481         json format to connect to the webkit inspector.
1482
1483         The current format is missing some required fields that make the connection with the plugin
1484         fail.
1485
1486         The format expected by the plugin is as follows:
1487           {
1488            "title": "Foo",
1489            "url": "http://foo",
1490            "devtoolsFrontendUrl": "/Main.html?ws=localhost:9222/devtools/page/1",
1491            "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/1"
1492           }
1493
1494         The current format is missing the entries for "devtoolsFrontendUrl" and
1495         "webSocketDebuggerUrl".
1496
1497         The plugin also sends an HTTP GET request to http://host:port/json instead of
1498         http://host:port/pagelist.json when retrieving the pages list.
1499
1500         This patch fixes the issues by adding support for the missing fields and accepting requests
1501         for "/json" alongside "/pagelist.json".
1502
1503         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
1504         (WebKit::WebInspectorServer::platformResourceForPath):
1505         Also accept requests for "/json" alongside "pagelist.json".
1506         (WebKit::WebInspectorServer::buildPageList):
1507         Add fields required by chromedevtools plugin.
1508
1509 2013-09-26  Darin Adler  <darin@apple.com>
1510
1511         rename KURL to URL
1512         https://bugs.webkit.org/show_bug.cgi?id=16214
1513
1514         Reviewed by Andreas Kling.
1515
1516         * many files: Renamed, using script.
1517
1518 2013-09-27  Peter Gal  <galpeter@inf.u-szeged.hu>
1519
1520         Remove unused method parameters from TupleCoder.
1521         https://bugs.webkit.org/show_bug.cgi?id=122009
1522
1523         Reviewed by Anders Carlsson.
1524
1525         In case of TupleCoder<0, Elements...> the parameter
1526         names for encoder, decoder and tuple are not used.
1527         By removing the paramter names the unusued paramter
1528         warning will disappear.
1529
1530         * Platform/CoreIPC/Arguments.h:
1531
1532 2013-09-06  Jer Noble  <jer.noble@apple.com>
1533
1534         [Mac] Implement the media controls in JavaScript.
1535         https://bugs.webkit.org/show_bug.cgi?id=120895
1536
1537         Reviewed by Dean Jackson.
1538
1539         Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
1540
1541         * Configurations/FeatureDefines.xcconfig:
1542
1543 2013-09-27  Darin Adler  <darin@apple.com>
1544
1545         Add empty MainFrame class
1546         https://bugs.webkit.org/show_bug.cgi?id=121770
1547
1548         Reviewed by Andreas Kling.
1549
1550         * WebProcess/FullScreen/WebFullScreenManager.cpp:
1551         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1552         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1553         * WebProcess/Plugins/PluginView.cpp:
1554         * WebProcess/Storage/StorageAreaMap.cpp:
1555         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1556         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1557         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1558         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1559         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
1560         * WebProcess/WebPage/FindController.cpp:
1561         * WebProcess/WebPage/PageOverlay.cpp:
1562         * WebProcess/WebPage/WebInspector.cpp:
1563         * WebProcess/WebPage/WebPage.cpp:
1564         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
1565         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1566         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1567         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1568         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1569         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
1570         * WebProcess/WebPage/mac/WebPageMac.mm:
1571         Include MainFrame.h instead of Frame.h as needed.
1572
1573 2013-09-27  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1574
1575         [Qt] Fix force_static_libs_as_shared in WebKit2
1576         https://bugs.webkit.org/show_bug.cgi?id=121961
1577
1578         Reviewed by Csaba Osztrogonác.
1579
1580         Do not add strict ordering for webkit2qml. It is not needed and causes
1581         Target.pri to be built out of order.
1582
1583         * WebKit2.pro:
1584
1585 2013-09-26  Anders Carlsson  <andersca@apple.com>
1586
1587         Remove Windows code
1588         https://bugs.webkit.org/show_bug.cgi?id=121988
1589
1590         Reviewed by Antti Koivisto.
1591
1592         * Platform/CoreIPC/Connection.h:
1593         * Platform/CoreIPC/win/ConnectionWin.cpp: Removed.
1594         * Platform/SharedMemory.h:
1595         * Platform/WorkQueue.h:
1596         * Platform/win/SharedMemoryWin.cpp: Removed.
1597         * Platform/win/WorkQueueWin.cpp: Removed.
1598         * Shared/ChildProcess.cpp:
1599         * Shared/ChildProcessProxy.cpp:
1600         (WebKit::ChildProcessProxy::didFinishLaunching):
1601         * UIProcess/Plugins/PluginInfoStore.cpp:
1602         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1603         * WebProcess/WebProcess.cpp:
1604
1605 2013-09-26  Anders Carlsson  <andersca@apple.com>
1606
1607         Stop using PassWeak
1608         https://bugs.webkit.org/show_bug.cgi?id=121968
1609
1610         Reviewed by Sam Weinig.
1611
1612         Update for JavaScriptCore changes.
1613
1614         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1615         (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
1616
1617 2013-09-25  Jer Noble  <jer.noble@apple.com>
1618
1619         [WK2] Crash at at com.apple.WebKit2: WebKit::VoidCallback::invalidate + 46
1620         https://bugs.webkit.org/show_bug.cgi?id=121910
1621
1622         Reviewed by Darin Adler.
1623
1624         Store a copy of the VoidCallback passed to WKPage, and invalidate the callback
1625         during dealloc. The VoidCallback class assumes that it will only ever be
1626         invalidated or invoked once, so change the ASSERTs into an early return.
1627
1628         * UIProcess/GenericCallback.h:
1629         (WebKit::VoidCallback::performCallback): Exit early if previously invalidated.
1630         (WebKit::VoidCallback::invalidate): Ditto.
1631         * UIProcess/mac/WKFullScreenWindowController.h:
1632         * UIProcess/mac/WKFullScreenWindowController.mm:
1633         (-[WKFullScreenWindowController dealloc]): Invalidate the repaint callback if present.
1634         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Ditto & create a new callback.
1635         (-[WKFullScreenWindowController completeFinishExitFullScreenAnimationAfterRepaint]): Clear the callback.
1636
1637 2013-09-26  Tim Horton  <timothy_horton@apple.com>
1638
1639         Tiled drawing should not imply threaded scrolling
1640         https://bugs.webkit.org/show_bug.cgi?id=121874
1641         <rdar://problem/15071494>
1642
1643         Reviewed by Sam Weinig.
1644
1645         * Shared/DrawingAreaInfo.h:
1646         We can have DrawingAreaTypeTiledCoreAnimation without threaded scrolling.
1647
1648         * Shared/WebPreferencesStore.h:
1649         * UIProcess/API/C/WKPreferences.cpp:
1650         (WKPreferencesSetThreadedScrollingEnabled):
1651         (WKPreferencesGetThreadedScrollingEnabled):
1652         * UIProcess/API/C/WKPreferencesPrivate.h:
1653         Add a preference for threaded scrolling.
1654
1655         * UIProcess/API/mac/WKView.mm:
1656         (-[WKView WebKit::]):
1657         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
1658         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
1659         * WebProcess/WebPage/DrawingArea.cpp:
1660         (WebKit::DrawingArea::create):
1661         * WebProcess/WebPage/DrawingArea.h:
1662         Make it so we can use TiledCoreAnimationDrawingArea without ENABLE(THREADED_SCROLLING).
1663
1664         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1665         (WebKit::WebChromeClient::shouldUseTiledBackingForFrame):
1666         * WebProcess/WebCoreSupport/WebChromeClient.h:
1667         Override shouldUseTiledBackingForFrame; ask the drawing area if we want a tiled backing for the given frame.
1668
1669         * WebProcess/WebPage/WebPage.cpp:
1670         (WebKit::WebPage::WebPage):
1671         (WebKit::WebPage::~WebPage):
1672         * WebProcess/WebPage/WebPage.h:
1673         Move attaching and detaching the scrolling tree into WebPage.
1674         Store whether or not this page is going to use threaded scrolling once, as this
1675         cannot change through the life of a page.
1676
1677         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1678         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1679         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1680         (WebKit::TiledCoreAnimationDrawingArea::~TiledCoreAnimationDrawingArea):
1681         Move attaching and detaching the scrolling tree into WebPage.
1682
1683         (WebKit::TiledCoreAnimationDrawingArea::didInstallPageOverlay):
1684         (WebKit::TiledCoreAnimationDrawingArea::didUninstallPageOverlay):
1685         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
1686         (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
1687         Only do scrolling coordinator work if we have a scrolling coordinator.
1688
1689         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrame):
1690         TiledCoreAnimationDrawingArea always wants a tiled backing for the main frame.
1691
1692 2013-09-25  Minju Kim  <pmuarteo@gmail.com>
1693
1694         8 bytes memory leaks in WebProcessMainQt.cpp when proxy is initialized
1695         https://bugs.webkit.org/show_bug.cgi?id=118515
1696
1697         Reviewed by Christophe Dumez.
1698
1699         * WebProcess/qt/WebProcessMainQt.cpp:
1700         (WebKit::initializeProxy): Handled EnvHttpProxyFactory by using OwnPtr
1701         to avoid memory leak when it isn't handled by NetworkProxyFactory
1702
1703 2013-09-25  Brady Eidson  <beidson@apple.com>
1704
1705         Enable the IndexedDB build on Mac, but leave the feature non-functional
1706         https://bugs.webkit.org/show_bug.cgi?id=121918
1707
1708         Reviewed by Alexey Proskuryakov.
1709
1710         * Configurations/FeatureDefines.xcconfig:
1711
1712 2013-09-25  Commit Queue  <commit-queue@webkit.org>
1713
1714         Unreviewed, rolling out r156432.
1715         http://trac.webkit.org/changeset/156432
1716         https://bugs.webkit.org/show_bug.cgi?id=121932
1717
1718         some integer conversion things that need brady to fix
1719         (Requested by thorton on #webkit).
1720
1721         * Configurations/FeatureDefines.xcconfig:
1722
1723 2013-09-25  Brady Eidson  <beidson@apple.com>
1724
1725         Enable the IndexedDB build on Mac, but leave the feature non-functional
1726         https://bugs.webkit.org/show_bug.cgi?id=121918
1727
1728         Reviewed by Alexey Proskuryakov.
1729
1730         * Configurations/FeatureDefines.xcconfig:
1731
1732 2013-09-25  Brent Fulgham  <bfulgham@apple.com>
1733
1734         Refactor RuntimeEnabledFeatures as a Singleton.
1735         https://bugs.webkit.org/show_bug.cgi?id=121883.
1736
1737         Reviewed by Jer Noble.
1738
1739         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1740         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Use
1741         Singleton accessor.
1742         (WebKit::InjectedBundle::setShadowDOMEnabled):
1743         (WebKit::InjectedBundle::setCSSRegionsEnabled):
1744         (WebKit::InjectedBundle::setCSSCompositingEnabled):
1745         (WebKit::InjectedBundle::setSeamlessIFramesEnabled):
1746         * WebProcess/WebPage/WebPage.cpp:
1747         (WebKit::WebPage::updatePreferences): Ditto.
1748         * WebProcess/qt/WebProcessQt.cpp:
1749         (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
1750
1751 2013-09-25  Brady Eidson  <beidson@apple.com>
1752
1753         FeatureDefine.xcconfig cleanup (They should all be identical).
1754         https://bugs.webkit.org/show_bug.cgi?id=121921
1755
1756         Reviewed by Mark Rowe.
1757
1758         * Configurations/FeatureDefines.xcconfig:
1759
1760 2013-09-25  Anders Carlsson  <andersca@apple.com>
1761
1762         Use tuples for encoding IPC messages
1763         https://bugs.webkit.org/show_bug.cgi?id=121924
1764
1765         Reviewed by Andreas Kling.
1766
1767         Yet another step towards getting rid of the Arguments hierarchy.
1768
1769         * Platform/CoreIPC/Connection.h:
1770         (CoreIPC::Connection::send):
1771         (CoreIPC::Connection::sendSync):
1772         * Platform/CoreIPC/HandleMessage.h:
1773         (CoreIPC::handleMessage):
1774         (CoreIPC::handleMessageVariadic):
1775         (CoreIPC::handleMessageDelayed):
1776         * Platform/CoreIPC/MessageSender.h:
1777         (CoreIPC::MessageSender::send):
1778         * Scripts/webkit2/messages.py:
1779         (arguments_type_old):
1780         (arguments_type):
1781         (reply_type):
1782         (decode_type):
1783         (delayed_reply_type):
1784         (message_to_struct_declaration):
1785         * Scripts/webkit2/messages_unittest.py:
1786         (LoadURL):
1787         (std):
1788         (TouchEvent):
1789         (DidReceivePolicyDecision):
1790         (Close):
1791         (PreferencesDidChange):
1792         (SendDoubleAndFloat):
1793         (SendInts):
1794         (CreatePlugin):
1795         (RunJavaScriptAlert):
1796         (GetPlugins):
1797         (GetPluginProcessConnection):
1798         (TestMultipleAttributes):
1799         (TestParameterAttributes):
1800         (TemplateTest):
1801         (DidCreateWebProcessConnection):
1802         (InterpretKeyEvent):
1803         (DeprecatedOperation):
1804         (ExperimentalOperation):
1805         * Shared/ChildProcessProxy.h:
1806         (WebKit::ChildProcessProxy::send):
1807
1808 2013-09-25  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1809
1810         [Qt] Fix build with Qt 5.2 QtPosition module
1811         https://bugs.webkit.org/show_bug.cgi?id=121089
1812
1813         Reviewed by Simon Hausmann.
1814
1815         QtLocation -> QtPositioning
1816
1817         * Target.pri:
1818         * UIProcess/qt/WebGeolocationProviderQt.cpp:
1819         * WebKit2.pri:
1820
1821 2013-09-24  Sam Weinig  <sam@webkit.org>
1822
1823         Remove erroneous reference to libWTF.a in the WebKit2 Xcode project file.
1824
1825         Rubber-stamped by Alexey Proskuryakov.
1826
1827         * WebKit2.xcodeproj/project.pbxproj:
1828
1829 2013-09-24  Sam Weinig  <sam@webkit.org>
1830
1831         Remove the Windows-specific rules from WebKit2's DerivedSources.make, Windows is not supported anymore
1832         https://bugs.webkit.org/show_bug.cgi?id=121895
1833
1834         Reviewed by Alexey Proskuryakov.
1835
1836         * DerivedSources.make:
1837         Remove Windows-specific rules, and, now that only the Mac is using this file, remove the
1838         Mac checks.
1839
1840 2013-09-24  Anders Carlsson  <andersca@apple.com>
1841
1842         Only allow rvalues to be passed as synchronous message replies
1843         https://bugs.webkit.org/show_bug.cgi?id=121870
1844
1845         Reviewed by Andreas Kling.
1846
1847         This lets us get rid of a nasty const cast and is more logical.
1848
1849         * Platform/CoreIPC/Connection.h:
1850         (CoreIPC::Connection::sendSync):
1851         * Platform/CoreIPC/MessageSender.h:
1852         (CoreIPC::MessageSender::send):
1853         (CoreIPC::MessageSender::sendSync):
1854         * Shared/ChildProcessProxy.h:
1855         (WebKit::ChildProcessProxy::sendSync):
1856
1857 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1858
1859         Unreviewed buildfix.
1860
1861         * UIProcess/WebNetworkInfoManagerProxy.h:
1862
1863 2013-09-24  Alexey Proskuryakov  <ap@apple.com>
1864
1865         Fix Mac build now.
1866         
1867         * UIProcess/WebContext.messages.in:
1868
1869 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1870
1871         Unreviewed buildfix after r156350.
1872
1873         It seems that nested ifdefs don't work in messages.in files, so don't use them.
1874
1875         * UIProcess/WebContext.messages.in:
1876
1877 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1878
1879         Unreviewed buildfix after r156354 and r156360.
1880
1881         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1882         (CoreIPC::Connection::processMessage):
1883         (CoreIPC::Connection::sendOutgoingMessage):
1884
1885 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1886
1887         Unreviewed buildfix after r156349.
1888
1889         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1890         (CoreIPC::Connection::processMessage):
1891
1892 2013-09-24  Anders Carlsson  <andersca@apple.com>
1893
1894         Use std::unique_ptr for decoders as well
1895         https://bugs.webkit.org/show_bug.cgi?id=121868
1896
1897         Reviewed by Andreas Kling.
1898
1899         * Platform/CoreIPC/Connection.cpp:
1900         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
1901         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
1902         (CoreIPC::Connection::waitForMessage):
1903         (CoreIPC::Connection::sendSyncMessage):
1904         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1905         (CoreIPC::Connection::waitForSyncReply):
1906         (CoreIPC::Connection::processIncomingSyncReply):
1907         (CoreIPC::Connection::processIncomingMessage):
1908         (CoreIPC::Connection::enqueueIncomingMessage):
1909         (CoreIPC::Connection::dispatchMessage):
1910         (CoreIPC::Connection::dispatchOneMessage):
1911         * Platform/CoreIPC/Connection.h:
1912         (CoreIPC::Connection::sendSync):
1913         (CoreIPC::Connection::waitForAndDispatchImmediately):
1914         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1915         (CoreIPC::createMessageDecoder):
1916         (CoreIPC::Connection::receiveSourceEventHandler):
1917         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1918         (WebKit::InjectedBundle::postSynchronousMessage):
1919
1920 2013-09-24  Anders Carlsson  <andersca@apple.com>
1921
1922         Move MessageEncoder and ArgumentEncoder to std::unique_ptr
1923         https://bugs.webkit.org/show_bug.cgi?id=121861
1924
1925         Reviewed by Andreas Kling.
1926
1927         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1928         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
1929         * NetworkProcess/NetworkConnectionToWebProcess.h:
1930         * NetworkProcess/NetworkProcess.cpp:
1931         (WebKit::NetworkProcess::didReceiveSyncMessage):
1932         * NetworkProcess/NetworkProcess.h:
1933         * Platform/CoreIPC/Connection.cpp:
1934         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1935         (CoreIPC::Connection::createSyncMessageEncoder):
1936         (CoreIPC::Connection::sendMessage):
1937         (CoreIPC::Connection::sendSyncReply):
1938         (CoreIPC::Connection::sendSyncMessage):
1939         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1940         (CoreIPC::Connection::sendOutgoingMessages):
1941         (CoreIPC::Connection::dispatchSyncMessage):
1942         * Platform/CoreIPC/Connection.h:
1943         (CoreIPC::Connection::send):
1944         (CoreIPC::Connection::sendSync):
1945         * Platform/CoreIPC/HandleMessage.h:
1946         (CoreIPC::handleMessageDelayed):
1947         * Platform/CoreIPC/MessageReceiver.h:
1948         (CoreIPC::MessageReceiver::didReceiveSyncMessage):
1949         * Platform/CoreIPC/MessageReceiverMap.cpp:
1950         (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
1951         * Platform/CoreIPC/MessageReceiverMap.h:
1952         * Platform/CoreIPC/MessageSender.cpp:
1953         (CoreIPC::MessageSender::sendMessage):
1954         * Platform/CoreIPC/MessageSender.h:
1955         (CoreIPC::MessageSender::send):
1956         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1957         (CoreIPC::Connection::open):
1958         (CoreIPC::Connection::sendOutgoingMessage):
1959         * PluginProcess/PluginControllerProxy.h:
1960         * PluginProcess/WebProcessConnection.cpp:
1961         (WebKit::WebProcessConnection::didReceiveSyncMessage):
1962         * PluginProcess/WebProcessConnection.h:
1963         * Scripts/webkit2/messages.py:
1964         (message_to_struct_declaration):
1965         (generate_message_handler):
1966         * Scripts/webkit2/messages_unittest.py:
1967         * Shared/ChildProcessProxy.cpp:
1968         (WebKit::ChildProcessProxy::sendMessage):
1969         (WebKit::ChildProcessProxy::dispatchSyncMessage):
1970         (WebKit::ChildProcessProxy::didFinishLaunching):
1971         * Shared/ChildProcessProxy.h:
1972         (WebKit::ChildProcessProxy::send):
1973         * Shared/Plugins/NPObjectMessageReceiver.h:
1974         * Shared/Plugins/NPRemoteObjectMap.cpp:
1975         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
1976         * Shared/Plugins/NPRemoteObjectMap.h:
1977         * Shared/WebConnection.cpp:
1978         (WebKit::WebConnection::postMessage):
1979         * UIProcess/Downloads/DownloadProxy.h:
1980         * UIProcess/Network/NetworkProcessProxy.cpp:
1981         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
1982         * UIProcess/Network/NetworkProcessProxy.h:
1983         * UIProcess/Plugins/PluginProcessProxy.h:
1984         * UIProcess/Storage/StorageManager.h:
1985         * UIProcess/WebContext.cpp:
1986         (WebKit::WebContext::dispatchSyncMessage):
1987         (WebKit::WebContext::didReceiveSyncMessage):
1988         * UIProcess/WebContext.h:
1989         * UIProcess/WebFullScreenManagerProxy.h:
1990         * UIProcess/WebIconDatabase.h:
1991         * UIProcess/WebInspectorProxy.h:
1992         * UIProcess/WebPageProxy.h:
1993         * UIProcess/WebProcessProxy.cpp:
1994         (WebKit::WebProcessProxy::didReceiveSyncMessage):
1995         * UIProcess/WebProcessProxy.h:
1996         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1997         (WebKit::InjectedBundle::postMessage):
1998         (WebKit::InjectedBundle::postSynchronousMessage):
1999         * WebProcess/Network/NetworkProcessConnection.cpp:
2000         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
2001         * WebProcess/Network/NetworkProcessConnection.h:
2002         * WebProcess/Plugins/PluginProcessConnection.cpp:
2003         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
2004         * WebProcess/Plugins/PluginProcessConnection.h:
2005         * WebProcess/Plugins/PluginProxy.h:
2006         * WebProcess/WebPage/WebPage.cpp:
2007         (WebKit::WebPage::didReceiveSyncMessage):
2008         * WebProcess/WebPage/WebPage.h:
2009         * WebProcess/WebProcess.cpp:
2010         (WebKit::WebProcess::didReceiveSyncMessage):
2011         * WebProcess/WebProcess.h:
2012
2013 2013-09-24  Anders Carlsson  <andersca@apple.com>
2014
2015         Remove encoder create functions
2016         https://bugs.webkit.org/show_bug.cgi?id=121853
2017
2018         Reviewed by Sam Weinig.
2019
2020         * Platform/CoreIPC/ArgumentEncoder.cpp:
2021         * Platform/CoreIPC/ArgumentEncoder.h:
2022         * Platform/CoreIPC/Connection.cpp:
2023         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
2024         (CoreIPC::Connection::createSyncMessageEncoder):
2025         (CoreIPC::Connection::dispatchSyncMessage):
2026         * Platform/CoreIPC/Connection.h:
2027         (CoreIPC::Connection::send):
2028         * Platform/CoreIPC/MessageEncoder.cpp:
2029         (CoreIPC::MessageEncoder::setIsSyncMessage):
2030         * Platform/CoreIPC/MessageEncoder.h:
2031         * Platform/CoreIPC/MessageSender.h:
2032         (CoreIPC::MessageSender::send):
2033         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2034         (CoreIPC::Connection::open):
2035         * Shared/ChildProcessProxy.h:
2036         (WebKit::ChildProcessProxy::send):
2037         * Shared/WebConnection.cpp:
2038         (WebKit::WebConnection::postMessage):
2039         * UIProcess/WebContext.cpp:
2040         (WebKit::WebContext::createNewWebProcess):
2041         (WebKit::WebContext::postMessageToInjectedBundle):
2042         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2043         (WebKit::InjectedBundle::postMessage):
2044         * WebProcess/WebPage/EncoderAdapter.cpp:
2045         (WebKit::EncoderAdapter::EncoderAdapter):
2046         (WebKit::EncoderAdapter::dataReference):
2047         (WebKit::EncoderAdapter::encodeBytes):
2048         (WebKit::EncoderAdapter::encodeBool):
2049         (WebKit::EncoderAdapter::encodeUInt16):
2050         (WebKit::EncoderAdapter::encodeUInt32):
2051         (WebKit::EncoderAdapter::encodeUInt64):
2052         (WebKit::EncoderAdapter::encodeInt32):
2053         (WebKit::EncoderAdapter::encodeInt64):
2054         (WebKit::EncoderAdapter::encodeFloat):
2055         (WebKit::EncoderAdapter::encodeDouble):
2056         (WebKit::EncoderAdapter::encodeString):
2057         * WebProcess/WebPage/EncoderAdapter.h:
2058
2059 2013-09-24  Enrica Casucci  <enrica@apple.com>
2060
2061         Upstream changes to Pasteboard implementation for iOS.
2062         https://bugs.webkit.org/show_bug.cgi?id=121818
2063
2064         Reviewed by Darin Adler.
2065
2066         * Scripts/webkit2/messages.py:
2067         (struct_or_class):
2068         (headers_for_type):
2069         * Shared/WebCoreArgumentCoders.cpp:
2070         (CoreIPC::encodeSharedBuffer):
2071         (CoreIPC::decodeSharedBuffer):
2072         (CoreIPC::::encode):
2073         (CoreIPC::::decode):
2074         * Shared/WebCoreArgumentCoders.h:
2075         * UIProcess/WebContext.h:
2076         * UIProcess/WebContext.messages.in:
2077         * UIProcess/mac/WebContextMac.mm:
2078         (WebKit::WebContext::writeWebContentToPasteboard):
2079         (WebKit::WebContext::writeImageToPasteboard):
2080         (WebKit::WebContext::writeStringToPasteboard):
2081         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2082         (WebKit::WebPlatformStrategies::writeToPasteboard):
2083         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2084
2085 2013-09-24  Anders Carlsson  <andersca@apple.com>
2086
2087         Remove create functions from MessageDecoder and ArgumentDecoder
2088         https://bugs.webkit.org/show_bug.cgi?id=121850
2089
2090         Reviewed by Antti Koivisto.
2091
2092         * Platform/CoreIPC/ArgumentDecoder.cpp:
2093         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2094         * Platform/CoreIPC/ArgumentDecoder.h:
2095         * Platform/CoreIPC/MessageDecoder.cpp:
2096         (CoreIPC::MessageDecoder::MessageDecoder):
2097         * Platform/CoreIPC/MessageDecoder.h:
2098         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2099         (CoreIPC::createMessageDecoder):
2100         * WebProcess/WebPage/DecoderAdapter.cpp:
2101         (WebKit::DecoderAdapter::DecoderAdapter):
2102         (WebKit::DecoderAdapter::decodeBytes):
2103         (WebKit::DecoderAdapter::decodeBool):
2104         (WebKit::DecoderAdapter::decodeUInt16):
2105         (WebKit::DecoderAdapter::decodeUInt32):
2106         (WebKit::DecoderAdapter::decodeUInt64):
2107         (WebKit::DecoderAdapter::decodeInt32):
2108         (WebKit::DecoderAdapter::decodeInt64):
2109         (WebKit::DecoderAdapter::decodeFloat):
2110         (WebKit::DecoderAdapter::decodeDouble):
2111         (WebKit::DecoderAdapter::decodeString):
2112         * WebProcess/WebPage/DecoderAdapter.h:
2113         * WebProcess/WebProcess.cpp:
2114         (WebKit::WebProcess::postInjectedBundleMessage):
2115
2116 2013-09-24  Mark Rowe  <mrowe@apple.com>
2117
2118         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
2119
2120         Reviewed by Dan Bernstein.
2121
2122         * Configurations/Base.xcconfig:
2123
2124 2013-09-24  Lorenzo Tilve  <ltilve@igalia.com>
2125
2126         [GTK] Fix compilation problems when setting ENABLE_DRAG_SUPPORT = FALSE
2127         https://bugs.webkit.org/show_bug.cgi?id=121782
2128
2129         Reviewed by Martin Robinson.
2130
2131         Disabled drag functions.
2132
2133         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2134         (webkit_web_view_base_class_init):
2135         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
2136
2137 2013-09-24  Anders Carlsson  <andersca@apple.com>
2138
2139         Begin adopting std::tuple for IPC decoding
2140         https://bugs.webkit.org/show_bug.cgi?id=121848
2141
2142         Reviewed by Sam Weinig.
2143
2144         This is the first step towards getting rid of the horrible Arguments class hierarchy.
2145
2146         * Platform/CoreIPC/Arguments.h:
2147         (CoreIPC::TupleCoder::encode):
2148         (CoreIPC::TupleCoder::decode):
2149         * Platform/CoreIPC/HandleMessage.h:
2150         (CoreIPC::callMemberFunction):
2151         (CoreIPC::handleMessage):
2152         (CoreIPC::handleMessageVariadic):
2153         (CoreIPC::handleMessageDelayed):
2154
2155 2013-09-24  ChangSeok Oh  <changseok.oh@collabora.com>
2156
2157         [EFL] Build failed at ProcessLauncherEfl.cpp
2158         https://bugs.webkit.org/show_bug.cgi?id=121826
2159
2160         Reviewed by Gyuyoung Kim.
2161
2162         Fixed a build failure with adding socket.h.
2163
2164         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2165
2166 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2167
2168         use NOMINMAX instead of #define min min
2169         https://bugs.webkit.org/show_bug.cgi?id=73563
2170
2171         Reviewed by Brent Fulgham.
2172
2173         Use NOMINMAX instead of #define min/max as a cleaner
2174         way of ensuring that Windows system header files don't
2175         define min/max as macro in the first place.
2176
2177         * config.h:
2178
2179 2013-09-23  ChangSeok Oh  <changseok.oh@collabora.com>
2180
2181         [GTK][WK2] A plugin dirtyRect within iframe remains after moving to a different page.
2182         https://bugs.webkit.org/show_bug.cgi?id=121600
2183
2184         Reviewed by Gustavo Noronha Silva.
2185
2186         Nowhere to destroy NetscapePlugin::m_platformPluginWidget even after destroying
2187         an instance of NetscapePlugin. So the created GtkWidget remains visible.
2188
2189         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2190         (WebKit::NetscapePlugin::platformDestroy):
2191
2192 2013-09-23  Sam Weinig  <sam@webkit.org>
2193
2194         Add back the SharedWorkerStrategy to prevent crashing.
2195
2196         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2197         (WebKit::WebPlatformStrategies::createSharedWorkerStrategy):
2198         (WebKit::WebPlatformStrategies::isAvailable):
2199         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2200
2201 2013-09-23  Sam Weinig  <sam@webkit.org>
2202
2203         SharedWorkerProcess code is dead
2204         https://bugs.webkit.org/show_bug.cgi?id=121563
2205
2206         Reviewed by Alexey Proskuryakov.
2207
2208         Remove SharedWorkerProcess code.
2209
2210 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
2211
2212         Cleanup CMake files in WebKit2
2213         https://bugs.webkit.org/show_bug.cgi?id=121767
2214
2215         Reviewed by Gyuyoung Kim.
2216
2217         Sort files and unify style.
2218
2219         * CMakeLists.txt:
2220         * PlatformEfl.cmake:
2221         * PlatformGTK.cmake:
2222
2223 2013-09-21  Darin Adler  <darin@apple.com>
2224
2225         Add ExecState::uncheckedArgument and use where possible to shrink a bit
2226         https://bugs.webkit.org/show_bug.cgi?id=121750
2227
2228         Reviewed by Andreas Kling.
2229
2230         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2231         (WebKit::JSNPObject::callMethod): In a loop.
2232         (WebKit::JSNPObject::callObject): Ditto.
2233         (WebKit::JSNPObject::callConstructor): Ditto.
2234
2235 2013-09-18  Anders Carlsson  <andersca@apple.com>
2236
2237         Remove the ENABLE_PLUGIN_PROCESS #define
2238         https://bugs.webkit.org/show_bug.cgi?id=121569
2239
2240         Reviewed by Andreas Kling.
2241
2242         Fold the ENABLE_PLUGIN_PROCESS #define into the NETSCAPE_PLUGIN_API #define since 
2243         building plug-ins without the plug-in process is not supported.
2244
2245         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
2246         * PluginProcess/PluginControllerProxy.cpp:
2247         * PluginProcess/PluginControllerProxy.h:
2248         * PluginProcess/PluginControllerProxy.messages.in:
2249         * PluginProcess/PluginCreationParameters.cpp:
2250         * PluginProcess/PluginCreationParameters.h:
2251         * PluginProcess/PluginProcess.cpp:
2252         * PluginProcess/PluginProcess.h:
2253         * PluginProcess/PluginProcess.messages.in:
2254         * PluginProcess/WebProcessConnection.cpp:
2255         * PluginProcess/WebProcessConnection.h:
2256         * PluginProcess/WebProcessConnection.messages.in:
2257         * PluginProcess/mac/PluginControllerProxyMac.mm:
2258         * PluginProcess/mac/PluginProcessMac.mm:
2259         * Shared/Plugins/NPIdentifierData.cpp:
2260         * Shared/Plugins/NPIdentifierData.h:
2261         * Shared/Plugins/NPObjectMessageReceiver.cpp:
2262         * Shared/Plugins/NPObjectMessageReceiver.h:
2263         * Shared/Plugins/NPObjectMessageReceiver.messages.in:
2264         * Shared/Plugins/NPObjectProxy.cpp:
2265         * Shared/Plugins/NPObjectProxy.h:
2266         * Shared/Plugins/NPRemoteObjectMap.cpp:
2267         * Shared/Plugins/NPRemoteObjectMap.h:
2268         * Shared/Plugins/NPVariantData.cpp:
2269         * Shared/Plugins/NPVariantData.h:
2270         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2271         (WebKit::getMIMETypesFromPluginBundle):
2272         * Shared/Plugins/PluginProcessCreationParameters.cpp:
2273         * Shared/Plugins/PluginProcessCreationParameters.h:
2274         * UIProcess/Launcher/ProcessLauncher.cpp:
2275         (WebKit::ProcessLauncher::processTypeAsString):
2276         (WebKit::ProcessLauncher::getProcessTypeFromString):
2277         * UIProcess/Launcher/ProcessLauncher.h:
2278         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2279         (WebKit::addDYLDEnvironmentAdditions):
2280         (WebKit::serviceName):
2281         (WebKit::createProcess):
2282         * UIProcess/Plugins/PluginProcessManager.cpp:
2283         * UIProcess/Plugins/PluginProcessManager.h:
2284         * UIProcess/Plugins/PluginProcessProxy.cpp:
2285         * UIProcess/Plugins/PluginProcessProxy.h:
2286         * UIProcess/Plugins/PluginProcessProxy.messages.in:
2287         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
2288         (WebKit::WebPluginSiteDataManager::~WebPluginSiteDataManager):
2289         (WebKit::WebPluginSiteDataManager::invalidate):
2290         (WebKit::WebPluginSiteDataManager::getSitesWithData):
2291         (WebKit::WebPluginSiteDataManager::clearSiteData):
2292         * UIProcess/Plugins/WebPluginSiteDataManager.h:
2293         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
2294         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2295         * UIProcess/WebContext.cpp:
2296         (WebKit::WebContext::setProcessModel):
2297         (WebKit::WebContext::shouldTerminate):
2298         (WebKit::WebContext::disconnectProcess):
2299         * UIProcess/WebProcessProxy.cpp:
2300         (WebKit::WebProcessProxy::getPluginProcessConnection):
2301         * UIProcess/WebProcessProxy.h:
2302         * UIProcess/WebProcessProxy.messages.in:
2303         * UIProcess/mac/WebContextMac.mm:
2304         (WebKit::updateProcessSuppressionStateOfGlobalChildProcesses):
2305         * WebKit2Prefix.h:
2306         * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm:
2307         * WebProcess/Plugins/PluginProcessConnection.cpp:
2308         * WebProcess/Plugins/PluginProcessConnection.h:
2309         * WebProcess/Plugins/PluginProcessConnection.messages.in:
2310         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2311         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2312         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
2313         * WebProcess/Plugins/PluginProxy.cpp:
2314         * WebProcess/Plugins/PluginProxy.h:
2315         * WebProcess/Plugins/PluginProxy.messages.in:
2316         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2317         * WebProcess/WebPage/WebPage.cpp:
2318         * WebProcess/WebProcess.cpp:
2319         (WebKit::WebProcess::WebProcess):
2320         (WebKit::WebProcess::initializeConnection):
2321         * WebProcess/WebProcess.h:
2322         * WebProcess/WebProcess.messages.in:
2323
2324 2013-09-18  Sam Weinig  <sam@webkit.org>
2325
2326         Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebKit and WebKit2
2327         https://bugs.webkit.org/show_bug.cgi?id=121568
2328
2329         Reviewed by Andreas Kling.
2330
2331         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2332         (CoreIPC::Connection::processMessage):
2333         (CoreIPC::readBytesFromSocket):
2334         (CoreIPC::Connection::sendOutgoingMessage):
2335         * UIProcess/API/efl/EwkView.cpp:
2336         (EwkView::feedTouchEvent):
2337         (EwkView::feedTouchEvents):
2338         * UIProcess/API/efl/SnapshotImageGL.h:
2339         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
2340         (ewk_file_chooser_request_files_choose):
2341         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2342         (WebKit::createArgsArray):
2343         (WebKit::ProcessLauncher::launchProcess):
2344         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2345         (WKBundlePageCopyContextMenuItems):
2346         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2347
2348 2013-09-18  Anders Carlsson  <andersca@apple.com>
2349
2350         RefPtrHashMap should work with move only types
2351         https://bugs.webkit.org/show_bug.cgi?id=121564
2352
2353         Reviewed by Andreas Kling.
2354
2355         * UIProcess/Storage/StorageManager.cpp:
2356         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
2357         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
2358         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2359         (WebKit::StorageNamespaceImpl::storageArea):
2360
2361 2013-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2362
2363         [GTK] WebKitScriptWorld not in API documentation
2364         https://bugs.webkit.org/show_bug.cgi?id=121539
2365
2366         Reviewed by Philippe Normand.
2367
2368         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitScriptWorld.
2369
2370 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2371
2372         Buildfix for !ENABLE(CUSTOM_PROTOCOLS) platforms
2373         https://bugs.webkit.org/show_bug.cgi?id=121417
2374
2375         Reviewed by Alexey Proskuryakov.
2376
2377         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2378
2379         * CMakeLists.txt: Add CustomProtocolManagerProxy.messages.in.
2380         * DerivedSources.pri: Add CustomProtocolManagerProxy.messages.in.
2381         * GNUmakefile.am: Add CustomProtocolManagerProxy.messages.in.
2382         * GNUmakefile.list.am: Add CustomProtocolManagerProxyMessages.h and CustomProtocolManagerProxyMessageReceiver.cpp.
2383         * NetworkProcess/NetworkProcess.cpp: Add the missing ENABLE(CUSTOM_PROTOCOLS) guard.
2384         (WebKit::NetworkProcess::NetworkProcess):
2385         * UIProcess/WebProcessProxy.cpp: Remove the unnecessary conditional include.
2386
2387 2013-09-17  Gustavo Noronha Silva  <gns@gnome.org>
2388
2389         [GTK] Test /webkit2/WebKitWebInspectorServer/test-open-debugging-session times out after r155714
2390         https://bugs.webkit.org/show_bug.cgi?id=121383
2391
2392         Reviewed by Carlos Garcia Campos.
2393
2394         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2395         (openRemoteDebuggingSession): use the page contents' to check the remote debugging of the page
2396         has been successfuly opened, as the title is no longer the same after the switch to the new
2397         frontend.
2398
2399 2013-09-16  Enrica Casucci  <enrica@apple.com>
2400
2401         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2402         https://bugs.webkit.org/show_bug.cgi?id=121464
2403
2404         Reviewed by Darin Adler.
2405
2406         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2407         * WebProcess/WebCoreSupport/WebEditorClient.h:
2408
2409 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2410
2411         Buildfix for !(ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)) platforms
2412         https://bugs.webkit.org/show_bug.cgi?id=121491
2413
2414         Reviewed by Darin Adler.
2415
2416         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2417         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2418
2419 2013-09-17  Alberto Garcia  <berto@igalia.com>
2420
2421         [GTK] Unreviewed make distcheck fix.
2422
2423         * GNUmakefile.am: include WebProcess/Network/*.in in the tarball,
2424         it's needed for generating WebResourceLoaderMessage*.{cpp,h}.
2425
2426 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2427
2428         [GTK][EFL] Add ResourceError::internalError() after r138387
2429         https://bugs.webkit.org/show_bug.cgi?id=121433
2430
2431         Reviewed by Christophe Dumez.
2432
2433         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2434         and Kwang Yul Seo <skyul@company100.net>
2435
2436         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
2437         (WebKit::internalError):
2438         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
2439         (WebKit::internalError):
2440
2441 2013-09-17  Gabor Abraham  <abrhm@inf.u-szeged.hu>
2442
2443         Fix Qt WK2 build after r155888
2444         https://bugs.webkit.org/show_bug.cgi?id=121471
2445
2446         Reviewed by Csaba Osztrogonác.
2447
2448         * UIProcess/API/qt/qquickwebview.cpp:
2449         (QQuickWebViewPrivate::createDrawingAreaProxy):
2450         * UIProcess/API/qt/qquickwebview_p_p.h:
2451         * UIProcess/API/qt/raw/qrawwebview.cpp:
2452         (QRawWebViewPrivate::createDrawingAreaProxy):
2453         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
2454         * UIProcess/qt/QtPageClient.cpp:
2455         (WebKit::QtPageClient::createDrawingAreaProxy):
2456         * UIProcess/qt/QtPageClient.h:
2457
2458 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2459
2460         [GTK][EFL] Add NetworkProcess support for ProcessLauncher
2461         https://bugs.webkit.org/show_bug.cgi?id=121434
2462
2463         Reviewed by Sam Weinig.
2464
2465         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2466         and Kwang Yul Seo <skyul@company100.net>
2467
2468         * Shared/ProcessExecutablePath.h:
2469         * Shared/efl/ProcessExecutablePathEfl.cpp:
2470         (WebKit::executablePathOfNetworkProcess):
2471         * Shared/gtk/ProcessExecutablePathGtk.cpp:
2472         (WebKit::executablePathOfNetworkProcess):
2473         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2474         (WebKit::ProcessLauncher::launchProcess):
2475         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2476         (WebKit::ProcessLauncher::launchProcess):
2477
2478 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2479
2480         Buildfix for !USE(PROTECTION_SPACE_AUTH_CALLBACK) platforms
2481         https://bugs.webkit.org/show_bug.cgi?id=121431
2482
2483         Reviewed by Alexey Proskuryakov.
2484
2485         Mising guards added.
2486
2487         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2488         and Kwang Yul Seo <skyul@company100.net>
2489
2490         * NetworkProcess/NetworkResourceLoader.messages.in:
2491         * WebProcess/Network/WebResourceLoader.cpp:
2492         * WebProcess/Network/WebResourceLoader.h:
2493         * WebProcess/Network/WebResourceLoader.messages.in:
2494
2495 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2496
2497         WebResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
2498         https://bugs.webkit.org/show_bug.cgi?id=121424
2499
2500         Reviewed by Alexey Proskuryakov.
2501
2502         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2503
2504         * CMakeLists.txt:
2505         * DerivedSources.pri:
2506         * GNUmakefile.am:
2507         * GNUmakefile.list.am:
2508         * WebProcess/Network/WebResourceLoader.messages.in: ENABLE(NETWORK_PROCESS) guard added.
2509
2510 2013-09-16  Manuel Rego Casasnovas  <rego@igalia.com>
2511
2512         Unreviewed, fixing the GTK WK2 debug build after r155911.
2513
2514         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp: Add missing using
2515         namespace WebCore.
2516
2517 2013-09-16  Sergio Correia  <sergio.correia@openbossa.org>
2518
2519         Fix EFL build after r155888
2520         https://bugs.webkit.org/show_bug.cgi?id=121465
2521
2522         Reviewed by Gyuyoung Kim.
2523
2524         Update WebView to follow the changes in PageClient in r155888.
2525
2526         * UIProcess/CoordinatedGraphics/WebView.cpp:
2527         (WebKit::WebView::createDrawingAreaProxy): Use createOwned (addded in
2528         r155407) to return the DrawingAreaProxy from DrawingAreaProxyImpl.
2529         * UIProcess/CoordinatedGraphics/WebView.h: Update createDrawingAreaProxy()
2530         signature to match PageClient.h.
2531
2532 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2533
2534         [GTK] Make symbol export filter more strict, and disable for dev/test builds
2535         https://bugs.webkit.org/show_bug.cgi?id=120586
2536
2537         Reviewed by Martin Robinson.
2538
2539         * GNUmakefile.am: only use the version script if developer mode is disabled.
2540
2541 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2542
2543         Unreviewed build fix after 155905.
2544
2545         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2546         (CoreIPC::Connection::sendOutgoingMessage): use OwnPtr instead of PassOwnPtr.
2547
2548 2013-09-16  Joseph Pecoraro  <pecoraro@apple.com>
2549
2550         Add RunLoop::isMain and use it in WebKit2
2551         https://bugs.webkit.org/show_bug.cgi?id=121459
2552
2553         Reviewed by Anders Carlsson.
2554
2555         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
2556         (getIconSurfaceSynchronously):
2557         (iconDataReadyForPageURLCallback):
2558         (webkit_favicon_database_get_favicon_uri):
2559         * UIProcess/API/mac/WKPrintingView.mm:
2560         (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
2561         (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]):
2562         (pageDidDrawToImage):
2563         (pageDidDrawToPDF):
2564         (-[WKPrintingView _preparePDFDataForPrintingOnSecondaryThread]):
2565         (pageDidComputePageRects):
2566         (-[WKPrintingView _askPageToComputePageRects]):
2567         (prepareDataForPrintingOnSecondaryThread):
2568         (-[WKPrintingView knowsPageRange:]):
2569         (-[WKPrintingView _drawPreview:]):
2570         (-[WKPrintingView drawRect:]):
2571         (-[WKPrintingView _drawPageBorderWithSizeOnMainThread:]):
2572         (-[WKPrintingView drawPageBorderWithSize:]):
2573         * UIProcess/WebProcessProxy.cpp:
2574         (WebKit::globalPageMap):
2575
2576 2013-09-16  Anders Carlsson  <andersca@apple.com>
2577
2578         Replace more uses of PassOwnPtr with OwnPtr in WebKit2
2579         https://bugs.webkit.org/show_bug.cgi?id=121453
2580
2581         Reviewed by Sam Weinig.
2582
2583         * Platform/CoreIPC/Connection.cpp:
2584         (CoreIPC::Connection::SecondaryThreadPendingSyncReply::SecondaryThreadPendingSyncReply):
2585         (CoreIPC::Connection::createSyncMessageEncoder):
2586         (CoreIPC::Connection::sendMessage):
2587         (CoreIPC::Connection::sendSyncReply):
2588         (CoreIPC::Connection::waitForMessage):
2589         (CoreIPC::Connection::sendSyncMessage):
2590         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2591         (CoreIPC::Connection::waitForSyncReply):
2592         (CoreIPC::Connection::processIncomingSyncReply):
2593         (CoreIPC::Connection::processIncomingMessage):
2594         (CoreIPC::Connection::enqueueIncomingMessage):
2595         (CoreIPC::Connection::dispatchMessage):
2596         * Platform/CoreIPC/Connection.h:
2597         (CoreIPC::Connection::PendingSyncReply::PendingSyncReply):
2598         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2599         (CoreIPC::Connection::sendOutgoingMessage):
2600
2601 2013-09-16  Zan Dobersek  <zdobersek@igalia.com>
2602
2603         Unreviewed, fixing the GTK WK2 build after r155888.
2604
2605         * UIProcess/API/gtk/PageClientImpl.cpp:
2606         (WebKit::PageClientImpl::createDrawingAreaProxy):
2607         * UIProcess/API/gtk/PageClientImpl.h:
2608
2609 2013-09-16  Anders Carlsson  <andersca@apple.com>
2610
2611         Remove some uses of PassOwnPtr in WebKit2
2612         https://bugs.webkit.org/show_bug.cgi?id=121443
2613
2614         Reviewed by Andreas Kling.
2615
2616         * Scripts/webkit2/messages.py:
2617         (message_to_struct_declaration):
2618         (generate_message_handler):
2619         * Scripts/webkit2/messages_unittest.py:
2620         * UIProcess/API/mac/FindIndicatorWindow.h:
2621         * UIProcess/API/mac/FindIndicatorWindow.mm:
2622         * UIProcess/API/mac/PageClientImpl.h:
2623         * UIProcess/API/mac/PageClientImpl.mm:
2624         (WebKit::PageClientImpl::createDrawingAreaProxy):
2625         * UIProcess/API/mac/WKView.mm:
2626         (-[WKView WebKit::]):
2627         (-[WKView _setFindIndicator:fadeOut:animate:]):
2628         * UIProcess/API/mac/WKViewInternal.h:
2629         * UIProcess/DrawingAreaProxyImpl.cpp:
2630         * UIProcess/DrawingAreaProxyImpl.h:
2631         * UIProcess/PageClient.h:
2632         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2633         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2634         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
2635         (PageOverlayClientImpl::PageOverlayClientImpl):
2636         (WKBundlePageOverlayCreate):
2637         * WebProcess/Plugins/PluginView.cpp:
2638         (WebKit::PluginView::createWebEvent):
2639         * WebProcess/Plugins/PluginView.h:
2640
2641 2013-09-16  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
2642
2643         Web Inspector: Do not try to parse incomplete HTTP requests
2644         https://bugs.webkit.org/show_bug.cgi?id=121123
2645
2646         Reviewed by Carlos Garcia Campos.
2647
2648         Update to incorporate additional review suggestions.
2649
2650         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2651         (sendIncompleteRequest):
2652         Fix memory leaks, change test timeout from 2 seconds to 1 second,
2653         use "0" instead of "NULL" and use g_assert_no_error when checking
2654         for GError.
2655
2656 2013-09-16  Eunmi Lee  <eunmi15.lee@samsung.com>
2657
2658         [EFL][WK2] Implement pan and flick gesture.
2659         https://bugs.webkit.org/show_bug.cgi?id=107101
2660
2661         Reviewed by Gyuyoung Kim.
2662
2663         Implement pan gesture to scroll page by movement of point and stop
2664         scrolling smoothly using ease-in-out-quad algorithm after touched
2665         point is removed from the screen.
2666
2667         Use Ecore_Animator in order to process movement once per each framing
2668         time slot instead of processing all movement.
2669
2670         * PlatformEfl.cmake:
2671         * UIProcess/API/efl/EwkView.cpp:
2672         (EwkView::scrollBy):
2673         * UIProcess/API/efl/EwkView.h:
2674         * UIProcess/API/efl/GestureRecognizer.cpp:
2675         (WebKit::GestureHandler::view):
2676         (WebKit::GestureHandler::GestureHandler):
2677         (WebKit::GestureHandler::~GestureHandler):
2678         (WebKit::GestureHandler::reset):
2679         (WebKit::GestureHandler::panAnimatorCallback):
2680         (WebKit::GestureHandler::handlePanStarted):
2681         (WebKit::GestureHandler::handlePan):
2682         (WebKit::GestureHandler::handlePanFinished):
2683         (WebKit::GestureHandler::flickAnimatorCallback):
2684         (WebKit::GestureHandler::handleFlick):
2685         (WebKit::GestureRecognizer::noGesture):
2686         (WebKit::GestureRecognizer::reset):
2687         * UIProcess/efl/EasingCurves.cpp: Added.
2688         (WebKit::easeInOutQuad):
2689         * UIProcess/efl/EasingCurves.h: Added.
2690
2691 2013-09-16  Wojciech Bielawski  <w.bielawski@samsung.com>
2692
2693         [WKTR] WebKitTestRunner's eventSender.contextClick() returns objects without implemented click() method.
2694         https://bugs.webkit.org/show_bug.cgi?id=98410
2695
2696         Reviewed by Darin Adler.
2697
2698         Add API required to implement click() method for context menu entry, used by WebkitTestRunner::EventSender.
2699
2700         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2701         (WKBundlePageClickMenuItem):
2702         (WKBundlePageCopyContextMenuItemTitle):
2703         (WKBundlePageGetContextMenuItems):
2704         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
2705
2706 2013-09-15  Gustavo Noronha Silva  <gns@gnome.org>
2707
2708         Unreviewed make distcheck fix.
2709
2710         * GNUmakefile.list.am:
2711
2712 2013-09-15  Carlos Garcia Campos  <cgarcia@igalia.com>
2713
2714         [GTK] The web inspector is not rendered when docked in WebKit2 when AC is used
2715         https://bugs.webkit.org/show_bug.cgi?id=121381
2716
2717         Reviewed by Martin Robinson.
2718
2719         When accelerated compositing results are rendered we return early
2720         from webkitWebViewBaseDraw and other WebView children are not
2721         drawn. We need to chain up the draw signal handler, so that the
2722         GtkContainer propagates the draw to all its children.
2723
2724         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2725         (webkitWebViewBaseDraw):
2726
2727 2013-09-14  Dan Bernstein  <mitz@apple.com>
2728
2729         Remove non-Apple cruft from the installed WKBase.h
2730         https://bugs.webkit.org/show_bug.cgi?id=121370
2731
2732         Reviewed by Darin Adler.
2733
2734         * Configurations/WebKit2.xcconfig: Set INSTALLHDRS_SCRIPT_PHASE to YES.
2735         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that runs unifdef on
2736         the installed WKBase.h with __APPLE__ defined and various BUILDING_* and WTF_USE_* symbols
2737         undefined.
2738
2739 2013-09-14  Dan Bernstein  <mitz@apple.com>
2740
2741         Build fix after r155770.
2742
2743         * UIProcess/API/mac/WKViewPrivate.h: Added WKBase.h import.
2744
2745 2013-09-14  Dan Bernstein  <mitz@apple.com>
2746
2747         [mac] Public header WKBase.h imports a private header, WKBaseMac.h
2748         https://bugs.webkit.org/show_bug.cgi?id=121216
2749
2750         Reviewed by Darin Adler.
2751
2752         * Shared/API/c/WKBase.h: Moved definitions of enums and WK_EXPORT and WK_INLINE macros
2753         out of this files.
2754         * Shared/API/c/WKDeclarationSpecifiers.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2755         Contains definitions of WK_EXPORT and WK_INLINE.
2756         * Shared/API/c/WKSharedAPICast.h: Added #includes.
2757         * Shared/API/c/WKUserContentInjectedFrames.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2758         Contains enum definition.
2759         * Shared/API/c/WKUserScriptInjectionTime.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2760         Contains enum definition.
2761         * UIProcess/API/C/WKPageGroup.h: Added #includes.
2762         * UIProcess/API/mac/WKBrowsingContextController.h: Removed WKBase.h import from this public
2763         header, replacing it with WKDeclarationSpecifiers.h import.
2764         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Added WKBase.h import.
2765         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed WKBase.h import from this public
2766         header, added necessary public imports.
2767         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Added WKBase.h import.
2768         * UIProcess/API/mac/WKBrowsingContextLoadDelegate.h: Removed WKBase.h import from public
2769         header.
2770         * UIProcess/API/mac/WKConnection.h: Ditto. Added WKDeclarationSpecifiers.h import.
2771         * UIProcess/API/mac/WKConnectionInternal.h: Added WKBase.h import.
2772         * UIProcess/API/mac/WKProcessGroup.h: Removed WKBase.h import from public header, added
2773         WKDeclarationSpecifiers.h import.
2774         * UIProcess/API/mac/WKProcessGroupPrivate.h: Added WKBase.h import.
2775         * UIProcess/API/mac/WKView.h: Removed WKBase.h import from public header, added
2776         WKDeclarationSpecifiers.h import.
2777         * WebKit2.xcodeproj/project.pbxproj: Added new public header files, made WKBase.h private.
2778         * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Removed WKBase.h import from public header,
2779         added WKDeclarationSpecifiers.h import.
2780         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added WKBase.h import.
2781         * WebProcess/InjectedBundle/API/mac/WKDOMRange.h: Removed WKBase.h import from public
2782         header, added WKDeclarationSpecifiers.h import.
2783         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added WKBase.h import.
2784         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Removed WKBase.h import from public
2785         header, added WKDeclarationSpecifiers.h import.
2786         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h: Ditto.
2787         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerInternal.h:
2788         Added WKBase.h import.
2789
2790 2013-09-14  Alberto Garcia  <berto@igalia.com>
2791
2792         [GTK] WebKitGTK+ is linking against libxslt in too many places
2793         https://bugs.webkit.org/show_bug.cgi?id=121356
2794
2795         Reviewed by Martin Robinson.
2796
2797         Don't use LIBXSLT_CFLAGS when compiling libWebCoreGtk2, no source
2798         files use libxslt there.
2799
2800         * GNUmakefile.am:
2801
2802 2013-09-13  Ryuan Choi  <ryuan.choi@samsung.com>
2803
2804         Unreviewed build fix attempt for WK2 build.
2805
2806         * WebProcess/Plugins/PluginView.cpp: Changed ScriptState to ExecState.
2807         (WebKit::PluginView::performJavaScriptURLRequest):
2808
2809 2013-09-13  Anders Carlsson  <andersca@apple.com>
2810
2811         Use nullptr instead of 0 in calls to HashMap::add
2812         https://bugs.webkit.org/show_bug.cgi?id=121322
2813
2814         Reviewed by Sam Weinig.
2815
2816         * Platform/CoreIPC/Connection.cpp:
2817         (CoreIPC::Connection::SyncMessageState::getOrCreate):
2818         * UIProcess/Storage/StorageManager.cpp:
2819         (WebKit::StorageManager::createLocalStorageMap):
2820         (WebKit::StorageManager::createSessionStorageMap):
2821         (WebKit::StorageManager::getOrCreateLocalStorageNamespace):
2822         * UIProcess/WebProcessProxy.cpp:
2823         (WebKit::WebProcessProxy::addBackForwardItem):
2824         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
2825         (WebKit::InjectedBundleNodeHandle::getOrCreate):
2826         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
2827         (WebKit::InjectedBundleRangeHandle::getOrCreate):
2828         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2829         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
2830         * WebProcess/WebProcess.cpp:
2831         (WebKit::WebProcess::createWebPage):
2832         (WebKit::WebProcess::webPageGroup):
2833
2834 2013-09-13  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2835
2836         [GTK] Move to the new web inspector
2837         https://bugs.webkit.org/show_bug.cgi?id=120647
2838
2839         Reviewed by Carlos Garcia Campos.
2840
2841         * GNUmakefile.am: bundle the remote inspector page list HTML into libwebkit2gtk as a GResource.
2842         * UIProcess/API/gtk/tests/GNUmakefile.am: no need to set WEBKIT_INSPECTOR_PATH anymore.
2843         * UIProcess/API/gtk/tests/InspectorTestServer.cpp:
2844         (main): ditto.
2845         * UIProcess/API/gtk/tests/TestInspector.cpp:
2846         (beforeAll): ditto.
2847         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2848         (testInspectorServerPageList): update paths to the internal resource ones.
2849         * UIProcess/InspectorServer/WebInspectorServer.h:
2850         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
2851         (WebKit::WebInspectorServer::platformResourceForPath): ditto.
2852         (WebKit::WebInspectorServer::buildPageList): ditto.
2853         * UIProcess/WebInspectorProxy.cpp:
2854         (WebKit::isMainInspectorPage): factor out checking for the inspector main resource, to make
2855         the code more readable.
2856         (WebKit::decidePolicyForNavigationAction): use SchemeRegistry to figure out whether the
2857         request is for a local resource instead of KURL::isLocalFile() to allow using schemes
2858         other than file:// for the inspector resources.
2859         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2860         (WebKit::WebInspectorProxy::inspectorPageURL): use the new internal resource URL; since it's now
2861         static we no longer need to generate and store the string.
2862         (WebKit::WebInspectorProxy::inspectorBaseURL): ditto.
2863         * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
2864         (WebKit::WebInspector::localizedStringsURL): use the new internal resource URL.
2865         * UIProcess/gtk/WebContextGtk.cpp:
2866         (WebKit::WebContext::platformInitializeWebProcess): register resource as a local scheme.
2867
2868 2013-09-13  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2869
2870         Fix build with namespaced Qt.
2871
2872         Unreviewed build fix.
2873
2874         One forward declaration of QUrl was missing proper namespace macros.
2875
2876         * UIProcess/API/qt/qquickurlschemedelegate_p.h:
2877
2878 2013-09-12  Simon Fraser  <simon.fraser@apple.com>
2879
2880         Avoid extra scrollbar-related layouts for overlay scrollbars
2881         https://bugs.webkit.org/show_bug.cgi?id=121267
2882
2883         Reviewed by Beth Dakin.
2884         
2885         view->resize() will call setNeedsLayout() if necessary, and may already have
2886         done layout, so the extra setNeedsLayout() here was bad.
2887
2888         * WebProcess/WebPage/WebPage.cpp:
2889         (WebKit::WebPage::setSize):
2890
2891 2013-09-12  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
2892
2893         Web Inspector: Do not try to parse incomplete HTTP requests
2894         https://bugs.webkit.org/show_bug.cgi?id=121123
2895
2896         Reviewed by Darin Adler.
2897
2898         When working on a patch for bug #121121 I found an issue with the InspectorServer where it would try
2899         to parse an HTTP message before receiving the full message and thus fail connecting with the
2900         chromedevtools plugin.
2901
2902         What happens is that the WebSocketServerConnection receives buffers on
2903         WebSocketServerConnection::didReceiveSocketStreamData and calls
2904         WebSocketServerConnection::readHTTPMessage which then checks if we have a valid request by calling
2905         HTTPRequest::parseHTTPRequestFromBuffer. If the request is valid it tries to parse the message and
2906         clears the buffer, otherwise it continues adding data to the internal buffer until we have a valid
2907         request.
2908
2909         The problem is that currently HTTPRequest::parseHTTPRequestFromBuffer considers the request as valid
2910         before receiving the full message. To solve this we should make the method check if the request
2911         headers end with a blank line otherwise we consider the request as invalid (see also
2912         http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html).
2913
2914         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2915         (sendIncompleteRequest):
2916         (beforeAll):
2917         Add GTK specific test to check if the inspector server replies to incomplete requests.
2918         * UIProcess/InspectorServer/HTTPRequest.cpp:
2919         (WebKit::HTTPRequest::parseHeaders):
2920         Do not consider request valid if headers didn't end with a blank line.
2921
2922 2013-09-12  Anders Carlsson  <andersca@apple.com>
2923
2924         SharedBuffer::createNSData should return a RetainPtr<NSData>
2925         https://bugs.webkit.org/show_bug.cgi?id=121237
2926
2927         Reviewed by Darin Adler.
2928
2929         Update for WebCore changes.
2930
2931         * UIProcess/API/mac/WKView.mm:
2932         (-[WKView writeSelectionToPasteboard:types:]):
2933         (-[WKView _setPromisedData:WebCore::withFileName:withExtension:withTitle:withURL:withVisibleURL:withArchive:WebCore::forPasteboard:]):
2934         (-[WKView namesOfPromisedFilesDroppedAtDestination:]):
2935
2936 2013-09-12  Anders Carlsson  <andersca@apple.com>
2937
2938         SharedBuffer::createCFData should return RetainPtr<CFDataRef>
2939         https://bugs.webkit.org/show_bug.cgi?id=121230
2940
2941         Reviewed by Darin Adler.
2942
2943         * NetworkProcess/mac/NetworkResourceLoaderMac.mm:
2944         (WebKit::NetworkResourceLoader::tryGetShareableHandleFromSharedBuffer):
2945         * Shared/WebArchiveResource.cpp:
2946         (WebKit::WebArchiveResource::data):
2947
2948 2013-09-12  Zalan Bujtas  <zalan@apple.com>
2949
2950         REGRESSION: Inline PDF that are cached fail to appear in iframe.
2951         https://bugs.webkit.org/show_bug.cgi?id=75449
2952
2953         Reviewed by Darin Adler.
2954
2955         Make sure 'frame is from page cache' flag is set for subframes too.
2956
2957         WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
2958         to be loaded manually. It ensures that the plugin raw data is fetched again
2959         while the containing frame is being restored from the page cache.
2960         (Plugins get destroyed when the frame goes to page cache.)
2961
2962         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2963         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
2964         This gets called only on the frame where the actual history navigation happens.
2965         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
2966         This gets called for all the restored frames.
2967
2968 2013-09-11  Simon Fraser  <simon.fraser@apple.com>
2969
2970         Make sure that layout is up-to-date when moving a WKView into a window, to avoid !needsLayout() assertions in RenderView::paint()
2971         https://bugs.webkit.org/show_bug.cgi?id=121196
2972
2973         Reviewed by Tim Horton.
2974         
2975         When a WKView was moved into a window, it was possible for us to paint
2976         without ensuring that layout is up-to-date. Fix this by having
2977         WebPage::setIsInWindow() update layout if we are moving to a window.
2978
2979         * WebProcess/WebPage/WebPage.cpp:
2980         (WebKit::WebPage::setIsInWindow):
2981
2982 2013-09-11  Mario Sanchez Prada  <mario.prada@samsung.com>
2983
2984         [GTK] Remove Gail dependency from build system for GTK3
2985         https://bugs.webkit.org/show_bug.cgi?id=119673
2986
2987         Reviewed by Gustavo Noronha Silva.
2988
2989         * GNUmakefile.am: Removed GAIL_LIBS.
2990
2991 2013-09-11  Alberto Garcia  <berto@igalia.com>
2992
2993         [WK2] [GTK] LayerTreeHostGtk: don't set m_isValid to false if glContext() returns null
2994         https://bugs.webkit.org/show_bug.cgi?id=120892
2995
2996         Reviewed by Martin Robinson.
2997
2998         If the GL context cannot be created then m_isValid is set to false
2999         during the initialization of LayerTreeHostGtk.
3000
3001         This is not really necessary since the rest of the code already
3002         deals with that situation, so it doesn't have any effect other
3003         than breaking the assertion in invalidate().
3004
3005         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
3006         (WebKit::LayerTreeHostGtk::initialize):
3007
3008 2013-09-11  Commit Queue  <commit-queue@webkit.org>
3009
3010         Unreviewed, rolling out r154899.
3011         http://trac.webkit.org/changeset/154899
3012         https://bugs.webkit.org/show_bug.cgi?id=121162
3013
3014         It didn't fix the problem and broke other unit tests
3015         (Requested by KaL on #webkit).
3016
3017         * UIProcess/API/gtk/tests/WebViewTest.cpp:
3018         (WebViewTest::resizeView):
3019
3020 2013-09-11  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3021
3022         WTF::OwnPtr should behave similarly with the rest of WTF smart pointers
3023         https://bugs.webkit.org/show_bug.cgi?id=120773
3024
3025         Reviewed by Anders Carlsson.
3026
3027         Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad
3028         for the following reasons:
3029         - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client).
3030         - It was potential error-prone as it actually modified the type given by the Client in opaque way.
3031
3032         * UIProcess/API/efl/ewk_database_manager.cpp:
3033         (getDatabaseOriginsCallback):
3034         * UIProcess/API/efl/ewk_storage_manager.cpp:
3035         (getStorageOriginsCallback):
3036
3037 2013-09-11  ChangSeok Oh  <changseok.oh@collabora.com>
3038
3039         Unreviewed build fix.
3040
3041         * GNUmakefile.list.am: Duplicated NetscapePluginModuleNone.cpp & NetscapePluginNone.cpp.
3042         They cause build breaks of multiple definitions when targeting wayland build.
3043
3044 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3045
3046         Generate more HTML type checks and casting
3047         https://bugs.webkit.org/show_bug.cgi?id=121080
3048
3049         Reviewed by Andreas Kling.
3050
3051         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3052         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3053
3054         Besides this patch clean-up unnecessary checks which are being supported by
3055         auto-generated isFooElement().
3056
3057         * WebProcess/WebPage/WebFrame.cpp:
3058         (WebKit::WebFrame::containsAnyFormControls):
3059
3060 2013-09-10  Marcelo Morais  <m.morais@samsung.com>
3061
3062         [EFL] WebInspector: Move to new webinspector
3063         https://bugs.webkit.org/show_bug.cgi?id=119559
3064
3065         Reviewed by Gyuyoung Kim.
3066
3067         Loading the new Web Inspector page instead of the old inspector.
3068         Co-Author: Andre Loureiro <andre.vl@samsung.com>
3069
3070         * UIProcess/efl/WebInspectorProxyEfl.cpp:
3071         (WebKit::WebInspectorProxy::inspectorPageURL):
3072
3073 2013-09-10  Sergio Villar Senin  <svillar@igalia.com>
3074
3075         [WK2][GTK] Frequent crashes when showing context menus in Debug builds
3076         https://bugs.webkit.org/show_bug.cgi?id=121099
3077
3078         Reviewed by Carlos Garcia Campos.
3079
3080         Disconnect signal handlers when destroying the context menu proxy
3081         object. This avoids use-after-free crashes when opening several
3082         context menus in a row.
3083
3084         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
3085         (WebKit::WebContextMenuProxyGtk::append):
3086         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
3087         * UIProcess/gtk/WebContextMenuProxyGtk.h:
3088
3089 2013-09-10  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3090
3091         [Qt] make use of qtHaveModule() 
3092         https://bugs.webkit.org/show_bug.cgi?id=121090
3093
3094         Reviewed by Jocelyn Turcotte.
3095         Patch by Oswald Buddenhagen <oswald.buddenhagen@digia.com>
3096
3097         Use qtHaveModule instead of our own haveQtModule.
3098
3099         * WebProcess.pro:
3100
3101 2013-09-10  Carlos Garcia Campos  <cgarcia@igalia.com>
3102
3103         [GTK] /webkit2/WebKitWebView/default-menu fails when GtkSettings:gtk-show-input-method-menu is disabled
3104         https://bugs.webkit.org/show_bug.cgi?id=121088
3105
3106         Reviewed by Xan Lopez.
3107
3108         * UIProcess/API/gtk/tests/TestContextMenu.cpp: Always check
3109         Unicode submenu is present in default context menu for editable
3110         content.
3111
3112 2013-09-09  Dean Jackson  <dino@apple.com>
3113
3114         [WebGL] Allow multithreaded OpenGL contexts
3115         https://bugs.webkit.org/show_bug.cgi?id=121062
3116
3117         Reviewed by Simon Fraser.
3118
3119         Expose a new preference "multithreadedWebGLEnabled".
3120
3121         * Shared/WebPreferencesStore.h:
3122         * UIProcess/API/C/WKPreferences.cpp:
3123         (WKPreferencesSetMultithreadedWebGLEnabled):
3124         (WKPreferencesGetMultithreadedWebGLEnabled):
3125         * UIProcess/API/C/WKPreferencesPrivate.h:
3126         * WebProcess/WebPage/WebPage.cpp:
3127         (WebKit::WebPage::updatePreferences):
3128         * mac/WebKit2.order:
3129
3130 2013-09-09  Dean Jackson  <dino@apple.com>
3131
3132         Enable WebGL for OS X nightlies
3133         https://bugs.webkit.org/show_bug.cgi?id=121040
3134
3135         Reviewed by Beth Dakin.
3136
3137         * Shared/WebPreferencesStore.h: Set initial value to true.
3138
3139 2013-09-08  Anders Carlsson  <andersca@apple.com>
3140
3141         Begin moving off of TypeTraits.h
3142         https://bugs.webkit.org/show_bug.cgi?id=121006
3143
3144         Reviewed by Darin Adler.
3145
3146         Convert uses of WTF type traits to STL type traits.
3147
3148         * Platform/CoreIPC/ArgumentCoder.h:
3149         * Platform/CoreIPC/ArgumentCoders.h:
3150         * Platform/CoreIPC/ArgumentDecoder.h:
3151         * Platform/CoreIPC/ArgumentEncoder.h:
3152         * Platform/CoreIPC/Arguments.h:
3153         * Shared/API/c/WKSharedAPICast.h:
3154         (WebKit::toImpl):
3155
3156 2013-09-09  Gustavo Noronha Silva  <gns@gnome.org>
3157
3158         Unreviewed build fix.
3159
3160         * GNUmakefile.list.am: Typo - left-over \ from a copy/paste, most likely.
3161
3162 2013-09-09  Anton Obzhirov  <a.obzhirov@samsung.com>
3163
3164         [GTK] Cancel the current active WebKitAuthenticationRequest on load failed
3165         https://bugs.webkit.org/show_bug.cgi?id=120350
3166
3167         Reviewed by Carlos Garcia Campos.
3168
3169         The default dialog does not get closed and the authentication is not cancelled
3170         if loading fails or is stopped on a page which requires HTTP authentication.
3171
3172         This patch cancels the authentication request on load failed
3173         and adds new authentication cancelled signal in WebKitAuthenticationRequest
3174         to allow the application handling of authentication UI.
3175
3176         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
3177         (authenticationCancelled):
3178         (webkitAuthenticationDialogInitialize):
3179         (webkitAuthenticationDialogDispose):
3180         (webkitAuthenticationDialogNew):
3181         * UIProcess/API/gtk/WebKitAuthenticationDialog.h:
3182         * UIProcess/API/gtk/WebKitAuthenticationRequest.cpp:
3183         (webkit_authentication_request_class_init):
3184         (webkit_authentication_request_cancel):
3185         * UIProcess/API/gtk/WebKitWebView.cpp:
3186         (webkitWebViewAuthenticate):
3187         (webkitWebViewLoadFailed):
3188         (webkitWebViewHandleAuthenticationChallenge):
3189         (webkitWebViewCancelAuthenticationRequest):
3190         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
3191         (testWebViewAuthenticationLoadCancelled):
3192         (beforeAll):
3193
3194 2013-09-09  Brian Holt  <brian.holt@samsung.com>
3195
3196         [GTK][WK2] Update ContextMenu Download API
3197         https://bugs.webkit.org/show_bug.cgi?id=120763
3198
3199         Reviewed by Carlos Garcia Campos.
3200
3201         Mark the new Download items in the Context Menu with the Since
3202         tag, and include a unit test for Context Menu audio.
3203
3204         * UIProcess/API/gtk/WebKitContextMenuActions.h:
3205         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
3206         (testContextMenuDefaultMenu):
3207
3208 2013-09-08  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3209
3210         [wk2] REGRESSION (r154673): PDF scrolling moves very slowly
3211         https://bugs.webkit.org/show_bug.cgi?id=120542
3212
3213         Reviewed by Tim Horton.
3214
3215         Handle 'wheel' events in addition to 'mousewheel'. This fixes
3216         PDF scrolling.
3217
3218         * WebProcess/Plugins/PluginView.cpp:
3219         (WebKit::PluginView::handleEvent):
3220
3221 2013-09-08  Anders Carlsson  <andersca@apple.com>
3222
3223         Move WTF::notFound to Vector.h and delete NotFound.h
3224         https://bugs.webkit.org/show_bug.cgi?id=120990
3225
3226         Reviewed by Sam Weinig.
3227
3228         * Shared/EditorState.h:
3229
3230 2013-09-07  Anders Carlsson  <andersca@apple.com>
3231
3232         Get rid of PassOwnArrayPtr
3233         https://bugs.webkit.org/show_bug.cgi?id=120964
3234
3235         Reviewed by Andreas Kling.
3236
3237         Remove unneeded includes.
3238
3239         * Shared/ImmutableArray.h:
3240         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3241
3242 2013-09-06  Ryosuke Niwa  <rniwa@webkit.org>
3243
3244         Range::ownerDocument should return Document&
3245         https://bugs.webkit.org/show_bug.cgi?id=120908
3246
3247         Reviewed by Andreas Kling.
3248
3249         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
3250         (-[WKDOMRange textRects]):
3251
3252 2013-09-05  Ryuan Choi  <ryuan.choi@samsung.com>
3253
3254         [CMAKE] Add c++0x into CXX_FLAGS as a default
3255         https://bugs.webkit.org/show_bug.cgi?id=120812
3256
3257         Unreviewed build fix for EFL ports.
3258
3259         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h: Added constexpr for in-class initialization.
3260         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp: Added space between strings.
3261         (EWK2UnitTest::EWK2UnitTestEnvironment::defaultTestPageUrl):
3262         (EWK2UnitTest::EWK2UnitTestEnvironment::defaultTheme):
3263         (EWK2UnitTest::EWK2UnitTestEnvironment::urlForResource):
3264
3265 2013-09-05  Alexey Proskuryakov  <ap@apple.com>
3266
3267         WKFullScreenWindowController extends lifetime of WKView, deleting it at a wrong time
3268         https://bugs.webkit.org/show_bug.cgi?id=120792
3269         <rdar://problem/14884666>
3270
3271         Reviewed by Jer Noble.
3272
3273         * UIProcess/API/mac/WKView.mm: (-[WKView fullScreenWindowController]):
3274         Use a newly minted initializer for the controller.
3275
3276         * UIProcess/mac/WKFullScreenWindowController.h: Removed unused web view accessors.
3277         Changed the class to take web view at initialization time.
3278
3279         * UIProcess/mac/WKFullScreenWindowController.mm:
3280         (-[WKFullScreenWindowController initWithWindow:webView:]): Initialize the controller
3281         inone step.
3282         (-[WKFullScreenWindowController dealloc]): WebView is now a raw pointer, no need
3283         to zero it.
3284         (-[WKFullScreenWindowController close]): Make sure to not leave a dangling WKView
3285         pointer (this method is indirectly but inevitably called when WKView is deallocated).
3286
3287 2013-09-05  Anders Carlsson  <andersca@apple.com>
3288
3289         Replace uses of CLANG_PRAGMA with #pragma
3290
3291         Rubber-stamped by Andreas Kling.
3292
3293         This file is only compiled by clang anyway.
3294
3295         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
3296         (WebKit::InjectedBundle::load):
3297
3298 2013-09-05  Anders Carlsson  <andersca@apple.com>
3299
3300         GCAssertions.h should use STL type traits and static_assert
3301         https://bugs.webkit.org/show_bug.cgi?id=120785
3302
3303         Reviewed by Andreas Kling.
3304
3305         Update for JavaScriptCore changes.
3306
3307         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
3308
3309 2013-09-05  Alberto Garcia  <berto@igalia.com>
3310
3311         [WK2] [GTK] Remove the test to disable AC under Wayland from WebKitWebViewGroup
3312         https://bugs.webkit.org/show_bug.cgi?id=120762
3313
3314         Reviewed by Gustavo Noronha Silva.
3315
3316         The code to disable AC under Wayland is not run if we're using
3317         WebKitTestRunner, so it would be better to move it to
3318         WebKitWebViewBase.
3319
3320         However it's not really necessary to do that, instead it's much
3321         simpler to disable accelerated compositing in all cases unless we
3322         know we can support it.
3323
3324         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3325         (webkitWebViewBaseUpdatePreferences):
3326         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3327         (webkitWebViewGroupAttachSettingsToPageGroup):
3328
3329 2013-09-04  Alberto Garcia  <berto@igalia.com>
3330
3331         [WK2][GTK] ASSERTION in WebKit::LayerTreeHostGtk::invalidate
3332         https://bugs.webkit.org/show_bug.cgi?id=117733
3333
3334         Reviewed by Martin Robinson.
3335
3336         If the GL context cannot be created then an invalid
3337         LayerTreeHostGtk object will be returned.
3338
3339         This patch disables accelerated compositing if the system doesn't
3340         support it.
3341
3342         * UIProcess/API/gtk/WebKitWebView.cpp:
3343         (webkitWebViewUpdateSettings):
3344         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3345         (webkitWebViewBaseUpdatePreferences):
3346         (webkitWebViewBaseCreateWebPage):
3347         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
3348
3349 2013-09-04  Commit Queue  <commit-queue@webkit.org>
3350
3351         Unreviewed, rolling out r154989.
3352         http://trac.webkit.org/changeset/154989
3353         https://bugs.webkit.org/show_bug.cgi?id=120678
3354
3355         This patch might broke apps using webkitgtk not from the main
3356         thread (Requested by msanchez on #webkit).
3357
3358         * UIProcess/API/gtk/WebKitWebView.cpp:
3359         (webkitWebViewRunAsModal):
3360         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
3361         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
3362
3363 2013-09-04  Zan Dobersek  <zdobersek@igalia.com>
3364
3365         [GTK] Add support for the Wayland build target
3366         https://bugs.webkit.org/show_bug.cgi?id=120627
3367
3368         Reviewed by Gustavo Noronha Silva.
3369
3370         * GNUmakefile.list.am: Build X11-specific NetscapePluginModule and NetscapePlugin classes if building the X11 target,
3371         fall back to the generic, empty classes otherwise.
3372         * PluginProcess/unix/PluginProcessMainUnix.cpp:
3373         (WebKit::PluginProcessMainUnix): Guard the NetscapePluginModule::scanPlugin() invocation with PLUGIN_ARCHITECTURE(X11),
3374         it's at the moment specific to the X11 implementation of the Netscape plugins.
3375         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: Guard PluginProcessProxy::scanPlugin() with PLUGIN_ARCHITECTURE(X11),
3376         just like it's guarded in the PluginProcessProxy class declaration.
3377         * UIProcess/cairo/BackingStoreCairo.cpp: Additionally guard <gdk/gdkx.h> and WidgetBackingStoreGtkX11 inclusion and use
3378         with PLATFORM(X11), this code should only be built when building the X11 target.
3379         (WebKit::createBackingStoreForGTK):
3380         * UIProcess/gtk/WebPageProxyGtk.cpp: Guard the createPluginContainer() and windowedPluginGeometryDidChange() methods and their
3381         helper functions and objects with PLUGIN_ARCHITECTURE(X11), just like they're guarded in the WebPageProxy class declaration.
3382         * config.h: Only define PLUGIN_ARCHITECTURE_X11 to 1 if we're actually building the X11 target.
3383
3384 2013-09-03  Darin Adler  <darin@apple.com>
3385
3386         REGRESSION (r154967) window resize is very choppy
3387         https://bugs.webkit.org/show_bug.cgi?id=120653
3388
3389         Reviewed by Andreas Kling.
3390
3391         Andreas Kling spotted the bad change.
3392
3393         * Platform/CoreIPC/Connection.cpp:
3394         (CoreIPC::Connection::waitForMessage): Roll out this incorrect change.
3395         The code here is not the same as a call to take.
3396
3397 2013-09-03  Anton Obzhirov  <a.obzhirov@samsung.com>
3398
3399         [GTK] gdk threads deprecated functions calls should be refactored
3400         https://bugs.webkit.org/show_bug.cgi?id=120070
3401
3402         Reviewed by Mario Sanchez Prada.
3403
3404         Removed deprecated functions gdk_threads_leave()/gdk_threads_enter() functions since
3405         there is no more checks for threads lock in GTK 3.6.
3406
3407         * UIProcess/API/gtk/WebKitWebView.cpp:
3408         (webkitWebViewRunAsModal):
3409         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
3410         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
3411
3412 2013-09-03  Brian Holt  <brian.holt@samsung.com>
3413
3414         [GTK] [WK2] TestContextMenu default-menu fails
3415         https://bugs.webkit.org/show_bug.cgi?id=120459
3416
3417         Reviewed by Gustavo Noronha Silva.
3418
3419         Add context menu items for downloading media elements.
3420
3421         * UIProcess/API/gtk/WebKitContextMenuActions.cpp:
3422         (webkitContextMenuActionGetActionTag):
3423         (webkitContextMenuActionGetForContextMenuItem):
3424         (webkitContextMenuActionGetLabel):
3425         * UIProcess/API/gtk/WebKitContextMenuActions.h:
3426         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
3427
3428 2013-09-02  Darin Adler  <darin@apple.com>
3429
3430         Cut down on double hashing and code needlessly using hash table iterators
3431         https://bugs.webkit.org/show_bug.cgi?id=120611
3432
3433         Reviewed by Andreas Kling.
3434
3435         * Platform/CoreIPC/Connection.cpp:
3436         (CoreIPC::Connection::waitForMessage): Use take instead of find/remove.
3437
3438         * UIProcess/WebPreferences.cpp:
3439         (WebKit::WebPreferences::removePageGroup): Use the return value from remove
3440         instead of find/remove.
3441
3442         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
3443         (WebKit::GeolocationPermissionRequestManager::cancelRequestForGeolocation):
3444         (WebKit::GeolocationPermissionRequestManager::didReceiveGeolocationPermissionDecision):
3445         Use take instead of find/remove.
3446
3447         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3448         (WebKit::NetscapePlugin::frameDidFinishLoading): Use take instead of find/remove.
3449         (WebKit::NetscapePlugin::frameDidFail): Use take instead of find/remove.
3450
3451         * WebProcess/WebPage/WebBackForwardListProxy.cpp:
3452         (WebKit::WebBackForwardListProxy::removeItem): Use take instead of find/remove.
3453
3454         * WebProcess/WebPage/WebPage.cpp:
3455         (WebKit::WebPage::didFinishCheckingText): Use take instead of get/remove so we
3456         hash only once.
3457         (WebKit::WebPage::didCancelCheckingText): Ditto.
3458         (WebKit::WebPage::stopExtendingIncrementalRenderingSuppression): Use the return
3459         value from remove instead of contains/remove so we hash only once.
3460
3461 2013-09-02  Darin Adler  <darin@apple.com>
3462
3463         [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
3464         https://bugs.webkit.org/show_bug.cgi?id=120569
3465
3466         Reviewed by Andy Estes.
3467
3468         * Platform/mac/StringUtilities.mm:
3469         (WebKit::nsStringFromWebCoreString): Use CFBridgingRelease. Also
3470         changed condition to be a little cleaner and use a constant string for empty
3471         strings as well as null strings.
3472
3473         * UIProcess/API/mac/WKBrowsingContextController.mm:
3474         (autoreleased): Switched from autorelease to CFBridgingRelease for strings,
3475         which eliminates a type cast and makes this work under GC, although I don't
3476         think we should compile WebKit2 for GC.
3477
3478         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3479         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
3480         Use CFBridgingRelease.
3481
3482 2013-09-02  Csaba Osztrogonác  <ossy@webkit.org>
3483
3484         REGRESSION(r154909): caused many crashes on Qt WK2, EFL WK2
3485         https://bugs.webkit.org/show_bug.cgi?id=120600
3486
3487         Reviewed by Andreas Kling.
3488
3489         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3490         (CoreIPC::::decode): keyTime should be double here too.
3491
3492 2013-09-01  Alexey Proskuryakov  <ap@apple.com>
3493
3494         [WK2][Mac] Drag and drop tests interfere with user's UI
3495         https://bugs.webkit.org/show_bug.cgi?id=120538
3496
3497         Reviewed by Dan Bernstein.
3498
3499         * UIProcess/API/mac/WKView.mm: (-[WKView _setDragImage:at:linkDrag:]): Make it possible
3500         to override drag initiation in subclasses. It is a bit unfortunate that this exposes
3501         a deprecated API that we call, but probably not unfortunate enough to invent a new
3502         scary looking name for the same function, and conditionally call that if implemented
3503         by subclass.
3504
3505 2013-08-31  Santosh Mahto  <santosh.ma@samsung.com>
3506
3507         warning: unused parameter point and area in EwkView.cpp:1390
3508         https://bugs.webkit.org/show_bug.cgi?id=120545
3509
3510         Reviewed by Darin Adler.
3511
3512         * UIProcess/API/efl/EwkView.cpp:
3513         (EwkView::didFindZoomableArea): Added UNUSED_PARAM.
3514
3515 2013-08-31  Jae Hyun Park  <jae.park@company100.net>
3516
3517         Remove unused variable in LayerTreeHost
3518         https://bugs.webkit.org/show_bug.cgi?id=118950
3519
3520         Reviewed by Anders Carlsson.
3521
3522         m_waitingForUIProcess has been renamed to m_isWaitingForRenderer as of
3523         r152183, and it is a private variable in CoordinatedLayerTreeHost. Thus,
3524         we don't need m_waitingForUIProcess in LayerTreeHost.
3525
3526         * WebProcess/WebPage/LayerTreeHost.h:
3527
3528 2013-08-30  Brian Holt  <brian.holt@samsung.com>
3529
3530         [GTK] [WK2] TestWebKitWebView snapshot fails
3531         https://bugs.webkit.org/show_bug.cgi?id=120404
3532
3533         Reviewed by Darin Adler.
3534
3535         Fixed the snapshot test failure caused by GTK no longer allowing
3536         widgets to resize.  Instead, resize the WebView by resizing the
3537         window and waiting for the event to complete asynchronously.
3538
3539         * UIProcess/API/gtk/tests/WebViewTest.cpp:
3540         (WebViewTest::resizeView):
3541
3542 2013-08-30  Csaba Osztrogonác  <ossy@webkit.org>
3543
3544         Add USE(PROTECTION_SPACE_AUTH_CALLBACK) guards to canAuthenticateAgainstProtectionSpace()
3545         https://bugs.webkit.org/show_bug.cgi?id=120351
3546
3547         Reviewed by Darin Adler.
3548
3549         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
3550         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
3551         * NetworkProcess/NetworkLoaderClient.h:
3552         * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
3553         * NetworkProcess/SynchronousNetworkLoaderClient.h:
3554
3555 2013-08-30  Gabor Abraham  <abrhm@inf.u-szeged.hu>
3556
3557         Fix, remove unused parameter in UIProcess/WebColorPicker.cpp.
3558         https://bugs.webkit.org/show_bug.cgi?id=120525
3559
3560         Reviewed by Darin Adler.
3561
3562         * UIProcess/WebColorPicker.cpp:
3563         (WebKit::WebColorPicker::showColorPicker):
3564
3565 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3566
3567         Resolve unused parameter warning in WebPlatformStrategies.cpp
3568         https://bugs.webkit.org/show_bug.cgi?id=120515
3569
3570         Reviewed by Darin Adler.
3571
3572         * WebProcess/WebPage/TapHighlightController.cpp:
3573         (WebKit::TapHighlightController::drawRect):
3574
3575 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3576
3577         Resolve unused parameter warning in FindController.cpp
3578         https://bugs.webkit.org/show_bug.cgi?id=120516
3579
3580         Reviewed by Darin Adler.
3581
3582         * WebProcess/WebPage/FindController.cpp:
3583         (WebKit::FindController::drawRect):
3584
3585 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3586
3587         Resolve unused parameter warning in WKBundlePageOverlay.cpp
3588         https://bugs.webkit.org/show_bug.cgi?id=120521
3589
3590         Reviewed by Andreas Kling.
3591
3592         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3593         (WKBundlePageOverlayFractionFadedIn):
3594
3595 2013-08-30  Antti Koivisto  <antti@apple.com>
3596
3597         Remove code behind ENABLE(DIALOG_ELEMENT)
3598         https://bugs.webkit.org/show_bug.cgi?id=120467
3599
3600         Reviewed by Darin Adler.
3601
3602         * Configurations/FeatureDefines.xcconfig:
3603
3604 2013-08-29  Sam Weinig  <sam@webkit.org>
3605
3606         Add ENABLE gaurds for Promises
3607         https://bugs.webkit.org/show_bug.cgi?id=120488
3608
3609         Reviewed by Andreas Kling.
3610
3611         * Configurations/FeatureDefines.xcconfig:
3612
3613 2013-08-29  Zan Dobersek  <zdobersek@igalia.com>
3614
3615         [Automake] libWebCoreDOM.la could use a better name
3616         https://bugs.webkit.org/show_bug.cgi?id=120232
3617
3618         Reviewed by Martin Robinson.
3619
3620         * GNUmakefile.am: libWebCoreDOM has a new name - libGObjectDOMBindings.
3621
3622 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
3623
3624         Web Inspector: Download Web Archive of Inspected Page
3625         https://bugs.webkit.org/show_bug.cgi?id=119774
3626
3627         Reviewed by Timothy Hatcher.
3628
3629         Update to support InspectorFrontendHost.save's new base64Encoded
3630         parameter. It means the incoming content is binary data, not a string.
3631
3632         * UIProcess/WebInspectorProxy.cpp:
3633         (WebKit::WebInspectorProxy::save):
3634         * UIProcess/WebInspectorProxy.h:
3635         * UIProcess/WebInspectorProxy.messages.in:
3636         * UIProcess/efl/WebInspectorProxyEfl.cpp:
3637         (WebKit::WebInspectorProxy::platformSave):
3638         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
3639         (WebKit::WebInspectorProxy::platformSave):
3640         * UIProcess/mac/WebInspectorProxyMac.mm:
3641         (WebKit::WebInspectorProxy::platformSave):
3642         * UIProcess/qt/WebInspectorProxyQt.cpp:
3643         (WebKit::WebInspectorProxy::platformSave):
3644         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
3645         (WebKit::WebInspectorFrontendClient::save):
3646         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
3647         * WebProcess/WebPage/WebInspector.cpp:
3648         (WebKit::WebInspector::save):
3649         * WebProcess/WebPage/WebInspector.h:
3650
3651 2013-08-29  Brian Holt  <brian.holt@samsung.com>
3652
3653         [GTK] [WK2] TestWebKitWebView page-visibility fails
3654         https://bugs.webkit.org/show_bug.cgi?id=120406
3655
3656         Reviewed by Gustavo Noronha Silva.
3657
3658         Removed the webkit prefix for document visibility properties.
3659
3660         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
3661         (testWebViewPageVisibility):
3662
3663 2013-08-28  Chris Curtis  <chris_curtis@apple.com>
3664
3665         https://bugs.webkit.org/show_bug.cgi?id=119548
3666         Refactoring Exception throws.
3667
3668         Reviewed by Geoffrey Garen.
3669         
3670         Moved setting an exception into the vm, These functions changed to use the new functionality.
3671
3672         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3673         (WebKit::JSNPObject::callMethod):
3674         (WebKit::JSNPObject::callObject):
3675         (WebKit::JSNPObject::callConstructor):
3676         (WebKit::JSNPObject::throwInvalidAccessError):
3677         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
3678         (WebKit::NPRuntimeObjectMap::moveGlobalExceptionToExecState):
3679
3680 2013-08-28  Anders Carlsson  <andersca@apple.com>
3681
3682         Allow the Flash plug-in to open its preference pane
3683         https://bugs.webkit.org/show_bug.cgi?id=120431
3684         <rdar://problem/14857039>
3685
3686         Reviewed by Andreas Kling.
3687
3688         Forward the -[NSWorkspace openFile:] call to the UI process and allow opening
3689         the Flash preference pane (if Flash asks for it).
3690
3691         * PluginProcess/PluginProcess.h:
3692         * PluginProcess/mac/PluginProcessMac.mm:
3693         (WebKit::replacedNSWorkspace_openFile):
3694         (WebKit::initializeCocoaOverrides):
3695         (WebKit::PluginProcess::openFile):
3696         * UIProcess/Plugins/PluginProcessProxy.h:
3697         * UIProcess/Plugins/PluginProcessProxy.messages.in:
3698         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
3699         (WebKit::PluginProcessProxy::openURL):
3700         (WebKit::shouldOpenFile):
3701         (WebKit::PluginProcessProxy::openFile):
3702
3703 2013-08-28  Tamas Czene  <tczene@inf.u-szeged.hu>
3704
3705         [wk2] Resolve unused parameters in WebPlatformStrategies.cpp
3706         https://bugs.webkit.org/show_bug.cgi?id=120410
3707
3708         Reviewed by Darin Adler.
3709
3710         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3711         (WebKit::WebPlatformStrategies::getPluginInfo):
3712         (WebKit::WebPlatformStrategies::transientLocalStorageNamespace):
3713
3714 2013-08-28  Tamas Czene  <tczene@inf.u-szeged.hu>
3715
3716         [wk2] Resolve unused parameter warnings in the WebProcess.cpp
3717         https://bugs.webkit.org/show_bug.cgi?id=120412
3718
3719         Reviewed by Darin Adler.
3720
3721         * WebProcess/WebProcess.cpp:
3722         (WebKit::WebProcess::startMemorySampler):
3723
3724 2013-08-28  Darin Adler  <darin@apple.com>
3725
3726         Eliminate Pasteboard::generalPasteboard
3727         https://bugs.webkit.org/show_bug.cgi?id=120392
3728
3729         Reviewed by Anders Carlsson.
3730
3731         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3732         (WebKit::WebEditorClient::updateGlobalSelection):
3733         Use createForGlobalSelection instead of generalPasteboard and setSelectionMode.
3734
3735 2013-08-28  Ábrahám Gábor  <abrhm@inf.u-szeged.hu>
3736
3737         Fix unused variable warning.
3738         https://bugs.webkit.org/show_bug.cgi?id=120396
3739
3740         Reviewed by Allan Sandfeld Jensen.
3741
3742         Fix unused variable compiler warning in PageOverlay.h
3743
3744         * WebProcess/WebPage/PageOverlay.h:
3745         (WebKit::PageOverlay::Client::copyAccessibilityAttributeValue):
3746         (WebKit::PageOverlay::Client::copyAccessibilityAttributeNames):
3747
3748
3749 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
3750
3751         [GTK][WK2] Only set up a RedirectedXCompositeWindow if running under an X11 display
3752         https://bugs.webkit.org/show_bug.cgi?id=120321
3753
3754         Reviewed by Gustavo Noronha Silva.
3755
3756         Only set up the RedirectedXCompositeWindow member of the WebKitWebViewBasePrivate struct
3757         if we're running under an X11 display. This is now done in the webkitWebViewBaseConstructed
3758         function rather than the constructor, which is removed.
3759
3760         This allows for the UIProcess to run in a Wayland environment even when built with accelerated
3761         compositing enabled. Of course, at the moment there's no support yet for accelerated compositing
3762         under Wayland, so we fall back to rendering the backing store. No changes are introduced to
3763         the behavior under X11 - accelerated compositing will be used where possible, if supported.
3764
3765         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3766         (webkitWebViewBaseConstructed):
3767
3768 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
3769
3770         [GTK][WK2] Disable accelerated compositing under Wayland
3771         https://bugs.webkit.org/show_bug.cgi?id=120347
3772
3773         Reviewed by Martin Robinson.
3774
3775         Accelerated compositing is not yet supported under the Wayland display protocol,
3776         so it should be disabled. Since it is enabled by default and the GTK WK2 API does
3777         not provide any way to change that, it's enough to disable it when attaching the
3778         WebKitSettings object to the WebPageGroup if running under Wayland.
3779
3780         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3781         (webkitWebViewGroupAttachSettingsToPageGroup):
3782
3783 2013-08-28  Alexandre Abreu  <alexandre.abreu@canonical.com>
3784
3785         Add a 'isMainFrame' parameter to QWebNavigationRequest.
3786         https://bugs.webkit.org/show_bug.cgi?id=118860
3787
3788         Reviewed by Simon Hausmann.
3789
3790         * UIProcess/API/qt/qwebnavigationrequest.cpp:
3791         (QWebNavigationRequestPrivate::QWebNavigationRequestPrivate):
3792         (QWebNavigationRequest::QWebNavigationRequest):
3793         (QWebNavigationRequest::navigationType):
3794         (QWebNavigationRequest::isMainFrame):
3795         * UIProcess/API/qt/qwebnavigationrequest_p.h:
3796         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
3797         * UIProcess/qt/QtWebPagePolicyClient.cpp:
3798         (WebKit::QtWebPagePolicyClient::decidePolicyForNavigationAction):
3799         * UIProcess/qt/QtWebPagePolicyClient.h:
3800
3801 2013-08-27  Luciano Wolf  <luciano.wolf@openbossa.org>
3802
3803         100% cpu usage for "transition: opacity" animation
3804         https://bugs.webkit.org/show_bug.cgi?id=120012
3805
3806         Reviewed by Noam Rosenthal.
3807
3808         Schedule animation timer after scheduling a layer flush. This way it
3809         won't overwrite animation timer with "0", thus avoiding 100% cpu usage.
3810
3811         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3812         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
3813
3814 2013-08-27  Csaba Osztrogonác  <ossy@webkit.org>
3815
3816         [WK2][Soup] Add WebFrameNetworkingContext::webFrameLoaderClient() after r154490
3817         https://bugs.webkit.org/show_bug.cgi?id=120353
3818
3819         Reviewed by Alexey Proskuryakov.
3820
3821         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3822         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
3823         (WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
3824         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
3825
3826 2013-08-26  Santosh Mahto  <santosh.ma@samsung.com>
3827
3828         Fixing compilation warning "unused parameter" in WebPageProxy.cpp
3829         https://bugs.webkit.org/show_bug.cgi?id=120205
3830
3831         Reviewed by Anders Carlsson.
3832
3833         * UIProcess/WebPageProxy.cpp:
3834         (WebKit::WebPageProxy::findPlugin):
3835         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
3836         Added UNUSED_PARAM to avoid warning.
3837
3838 2013-08-23  Andy Estes  <aestes@apple.com>
3839
3840         Fix issues found by the Clang Static Analyzer
3841         https://bugs.webkit.org/show_bug.cgi?id=120230
3842
3843         Reviewed by Darin Adler.
3844
3845         * UIProcess/API/mac/WKBrowsingContextController.mm:
3846         (autoreleased): Don't leak CFURLs when in Objective-C GC.
3847         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3848         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
3849         Don't leak CFStrings when in Objective-C GC.
3850
3851 2013-08-26  Csaba Osztrogonác  <ossy@webkit.org>
3852
3853         [WK2] Buildfix for non Mac platforms
3854         https://bugs.webkit.org/show_bug.cgi?id=120294
3855
3856         Reviewed by Darin Adler.
3857
3858         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
3859         (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
3860         * NetworkProcess/NetworkResourceLoader.h:
3861
3862 2013-08-26  Alexey Proskuryakov  <ap@apple.com>
3863
3864         [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
3865         https://bugs.webkit.org/show_bug.cgi?id=113094
3866
3867         Reviewed by Darin Adler.
3868
3869         Return new pasteboard change count from all functions that change it.
3870
3871         * UIProcess/WebContext.h:
3872         * UIProcess/WebContext.messages.in:
3873         * UIProcess/mac/WebContextMac.mm:
3874         (WebKit::WebContext::pasteboardCopy):
3875         (WebKit::WebContext::addPasteboardTypes):
3876         (WebKit::WebContext::setPasteboardTypes):
3877         (WebKit::WebContext::setPasteboardPathnamesForType):
3878         (WebKit::WebContext::setPasteboardStringForType):
3879         (WebKit::WebContext::setPasteboardBufferForType):
3880         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3881         (WebKit::PDFPlugin::writeItemsToPasteboard):
3882         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3883         (WebKit::WebPlatformStrategies::copy):
3884         (WebKit::WebPlatformStrategies::changeCount):
3885         (WebKit::WebPlatformStrategies::addTypes):
3886         (WebKit::WebPlatformStrategies::setTypes):
3887         (WebKit::WebPlatformStrategies::setBufferForType):
3888         (WebKit::WebPlatformStrategies::setPathnamesForType):
3889         (WebKit::WebPlatformStrategies::setStringForType):
3890         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
3891
3892 2013-08-26  Andreas Kling  <akling@apple.com>
3893
3894         Unreviewed build fix.
3895
3896         * WebProcess/WebPage/WebFrame.cpp:
3897         (WebKit::WebFrame::createWithCoreMainFrame):
3898         (WebKit::WebFrame::createSubframe):
3899
3900 2013-08-26  Pratik Solanki  <psolanki@apple.com>
3901
3902         PageGroup::groupSettings() should return a reference
3903         https://bugs.webkit.org/show_bug.cgi?id=120319
3904
3905         Reviewed by Andreas Kling.
3906
3907         PageGroup::m_groupSettings is never NULL so we can just return a reference from groupSettings().
3908
3909         * WebProcess/Storage/StorageNamespaceImpl.cpp:
3910         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
3911
3912 2013-08-26  Andreas Kling  <akling@apple.com>
3913
3914         WebCore: Let Page create the main Frame.
3915         <https://webkit.org/b/119964>
3916
3917         Reviewed by Anders Carlsson.
3918
3919         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3920         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3921         (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
3922
3923             This starts out with a null WebFrame* pointer now.
3924
3925         (WebKit::WebFrameLoaderClient::setWebFrame):
3926
3927             WebFrame hooks itself up through this as soon as it's constructed.
3928
3929         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
3930
3931             Tweak an out-of-date comment. The ref() we're balancing out comes from
3932             WebFrame::create().
3933
3934         * WebProcess/WebPage/WebFrame.cpp:
3935         (WebKit::WebFrame::createWithCoreMainFrame):
3936
3937             Rewrote createMainFrame() as createWithCoreMainFrame(). The new method wraps
3938             an existing WebCore::Frame instead of creating a new one.
3939
3940         (WebKit::WebFrame::createSubframe):
3941
3942             Merged WebFrame::init() into here since the logic isn't shared with main
3943             Frame creation anymore.
3944
3945         (WebKit::WebFrame::create):
3946         (WebKit::WebFrame::WebFrame):
3947
3948             Call WebFrameLoaderClient::setWebFrame(this).
3949
3950         * WebProcess/WebPage/WebFrame.h:
3951
3952             WebFrame::m_frameLoaderClient is now an OwnPtr rather than an inline member.
3953             This way it can be created before the WebFrame.
3954
3955         * WebProcess/WebPage/WebPage.cpp:
3956         (WebKit::WebPage::WebPage):
3957
3958             Set up a WebFrameLoaderClient and pass it to the Page constructor along with
3959             the other PageClients.
3960
3961 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
3962
3963         [GTK] Add WebKit2 API for isolated worlds
3964         https://bugs.webkit.org/show_bug.cgi?id=103377
3965
3966         Reviewed by Anders Carlsson.
3967
3968         * GNUmakefile.list.am: Add new files to compilation.
3969         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
3970         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
3971         (testWebExtensionWindowObjectCleared):
3972         (scriptDialogCallback):
3973         (runJavaScriptInIsolatedWorldFinishedCallback):
3974         (testWebExtensionIsolatedWorld):
3975         (beforeAll):
3976         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
3977         (echoCallback):
3978         (windowObjectCleared):
3979         (getWebPage):
3980         (methodCallCallback):
3981         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
3982         (webkit_frame_get_javascript_context_for_script_world): New public
3983         method to tget the JavaScript execution context for a given script
3984         world.
3985         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
3986         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Added.
3987         (scriptWorlds): Global WebKitScriptWorld map.
3988         (_WebKitScriptWorldPrivate::~_WebKitScriptWorldPrivate):
3989         (webkitScriptWorldGet): Get the WebKitScriptWorld wrapping the
3990         given injected bundle script world.
3991         (webkitScriptWorldGetInjectedBundleScriptWorld): Get the injected
3992         bundle script world wrapped by the given WebKitScriptWorld.
3993         (webkitScriptWorldWindowObjectCleared): Emit
3994         WebKitScriptWorld::window-object-cleared signal.
3995         (webkitScriptWorldCreate): Create a new WebKitScriptWorld wrapping
3996         the given injected bundle script world.
3997         (createDefaultScriptWorld): Create the default WebKitScriptWorld
3998         wrapping the normal world.
3999         (webkit_script_world_get_default): Return the default WebKitScriptWorld.
4000         (webkit_script_world_new): Create a new isolated WebKitScriptWorld.
4001         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Added.
4002         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Added.
4003         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
4004         (didClearWindowObjectForFrame): Call webkitScriptWorldWindowObjectCleared().
4005         (webkitWebPageCreate): Add implementation for callback
4006         didClearWindowObjectForFrame in injected bundle loader client.
4007         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
4008         Include WebKitScriptWorld.h.
4009
4010 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
4011
4012         [WebKit2] Offsets for WKBundlePageLoaderClient in APIClientTraits are wrong
4013         https://bugs.webkit.org/show_bug.cgi?id=120268
4014
4015         Reviewed by Anders Carlsson.
4016
4017         * Shared/APIClientTraits.cpp: Use always the first member of every
4018         version as the offset of the version.
4019
4020 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
4021
4022         [GTK] Add missing initializer for pluginLoadPolicy in WKPageLoaderClient
4023         https://bugs.webkit.org/show_bug.cgi?id=120289
4024
4025         Reviewed by Philippe Normand.
4026
4027         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
4028         (attachLoaderClientToView): Add initializer for pluginLoadPolicy
4029         and rename the comment of the previous one as
4030         pluginLoadPolicy_deprecatedForUseWithV2.
4031
4032 2013-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
4033
4034         [GTK] webkitCredentialGetCredential returns a temporary in g_return_val_if_fail
4035         https://bugs.webkit.org/show_bug.cgi?id=120287
4036
4037         Reviewed by Philippe Normand.
4038
4039         * UIProcess/API/gtk/WebKitCredential.cpp:
4040         (webkitCredentialGetCredential): Use ASSERT() instead of
4041         g_return_val_if_fail() since this is a private function.
4042
4043 2013-08-25  Zan Dobersek  <zdobersek@igalia.com>
4044
4045         Unreviewed GTK build fix after r154565.
4046
4047         * UIProcess/API/gtk/tests/TestInspector.cpp: Include the Vector header.
4048         * UIProcess/API/gtk/tests/TestResources.cpp: Ditto.
4049
4050 2013-08-24  Darin Adler  <darin@apple.com>
4051
4052         Frame::tree should return a reference instead of a pointer
4053         https://bugs.webkit.org/show_bug.cgi?id=120259
4054
4055         Reviewed by Andreas Kling.
4056
4057         * WebProcess/Plugins/PluginView.cpp:
4058         (WebKit::PluginView::performJavaScriptURLRequest):
4059         * WebProcess/Storage/StorageAreaMap.cpp:
4060         (WebKit::StorageAreaMap::dispatchSessionStorageEvent):
4061         (WebKit::StorageAreaMap::dispatchLocalStorageEvent):
4062         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
4063         (WebKit::WebFrameLoaderClient::createFrame):
4064         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
4065         (WebKit::WebContextMenuClient::searchWithSpotlight):
4066         * WebProcess/WebPage/FindController.cpp:
4067         (WebKit::frameWithSelection):
4068         (WebKit::FindController::rectsForTextMatches):
4069         * WebProcess/WebPage/WebFrame.cpp:
4070         (WebKit::WebFrame::init):
4071         (WebKit::WebFrame::contentsAsString):
4072         (WebKit::WebFrame::name):
4073         (WebKit::WebFrame::childFrames):
4074         * WebProcess/WebPage/WebPage.cpp:
4075         (WebKit::WebPage::clearMainFrameName):
4076         (WebKit::WebPage::setDrawsBackground):
4077         (WebKit::WebPage::setDrawsTransparentBackground):
4078         (WebKit::WebPage::setWindowResizerSize):
4079         (WebKit::frameWithSelection):
4080         (WebKit::WebPage::unmarkAllMisspellings):
4081         (WebKit::WebPage::unmarkAllBadGrammar):
4082         (WebKit::pageContainsAnyHorizontalScrollbars):
4083         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
4084         (WebKit::TiledCoreAnimationDrawingArea::forceRepaint):
4085         Use tree(). instead of tree()->.
4086
4087 2013-08-24  Commit Queue  <commit-queue@webkit.org>
4088
4089         Unreviewed, rolling out r154545.
4090         http://trac.webkit.org/changeset/154545
4091         https://bugs.webkit.org/show_bug.cgi?id=120252
4092
4093         Broke WebKit2 API tests (Requested by andersca on #webkit).
4094
4095         * GNUmakefile.list.am:
4096         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
4097         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
4098         (beforeAll):
4099         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
4100         (methodCallCallback):
4101         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
4102         (webkit_frame_get_javascript_global_context):
4103         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
4104         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Removed.
4105         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Removed.
4106         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Removed.
4107         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
4108         (webkitWebPageCreate):
4109         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
4110
4111 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
4112
4113         [GTK] Add WebKit2 API for isolated worlds
4114         https://bugs.webkit.org/show_bug.cgi?id=103377
4115
4116         Reviewed by Anders Carlsson.
4117
4118         * GNUmakefile.list.am: Add new files to compilation.
4119         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
4120         * UIProcess/API/gtk/tests/TestWebExtensions.cpp:
4121         (testWebExtensionWindowObjectCleared):
4122         (scriptDialogCallback):
4123         (runJavaScriptInIsolatedWorldFinishedCallback):
4124         (testWebExtensionIsolatedWorld):
4125         (beforeAll):
4126         * UIProcess/API/gtk/tests/WebExtensionTest.cpp:
4127         (echoCallback):
4128         (windowObjectCleared):
4129         (getWebPage):
4130         (methodCallCallback):
4131         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp:
4132         (webkit_frame_get_javascript_context_for_script_world): New public
4133         method to tget the JavaScript execution context for a given script
4134         world.
4135         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
4136         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.cpp: Added.
4137         (scriptWorlds): Global WebKitScriptWorld map.
4138         (_WebKitScriptWorldPrivate::~_WebKitScriptWorldPrivate):
4139         (webkitScriptWorldGet): Get the WebKitScriptWorld wrapping the
4140         given injected bundle script world.
4141         (webkitScriptWorldGetInjectedBundleScriptWorld): Get the injected
4142         bundle script world wrapped by the given WebKitScriptWorld.
4143         (webkitScriptWorldWindowObjectCleared): Emit
4144         WebKitScriptWorld::window-object-cleared signal.
4145         (webkitScriptWorldCreate): Create a new WebKitScriptWorld wrapping
4146         the given injected bundle script world.
4147         (createDefaultScriptWorld): Create the default WebKitScriptWorld
4148         wrapping the normal world.
4149         (webkit_script_world_get_default): Return the default WebKitScriptWorld.
4150         (webkit_script_world_new): Create a new isolated WebKitScriptWorld.
4151         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorld.h: Added.
4152         * WebProcess/InjectedBundle/API/gtk/WebKitScriptWorldPrivate.h: Added.
4153         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
4154         (didClearWindowObjectForFrame): Call webkitScriptWorldWindowObjectCleared().
4155         (webkitWebPageCreate): Add implementation for callback
4156         didClearWindowObjectForFrame in injected bundle loader client.
4157         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
4158         Include WebKitScriptWorld.h.
4159
4160 2013-08-24  Carlos Garcia Campos  <cgarcia@igalia.com>
4161
4162         [GTK] Expose WebKitFrame in WebKit2GTK+ web extensions API
4163         https://bugs.webkit.org/show_bug.cgi?id=119743
4164
4165         Reviewed by Anders Carlsson.
4166
4167         * GNUmakefile.list.am: Add new files to compilation.
4168         * Shared/APIClientTraits.cpp: Update for new interface version.
4169         * Shared/APIClientTraits.h: Ditto.
4170         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitFrame
4171         section.
4172         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new public
4173         symbols.
4174         * UIProcess/API/gtk/docs/webkit2gtk.types: Add
4175         webkit_frame_get_type.
4176         * UIProcess/API/gtk/tests/FrameTest.cpp: Added.
4177         (WebKitFrameTest::create):
4178         (WebKitFrameTest::webPageFromArgs):
4179         (WebKitFrameTest::testMainFrame):
4180         (WebKitFrameTest::testURI):
4181         (WebKitFrameTest::testJavaScriptContext):
4182         (WebKitFrameTest::runTest):
4183         (registerTests):
4184         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new test files.
4185         * UIProcess/API/gtk/tests/TestFrame.cpp: Added.
4186         (webkitFrameTestRun):
4187         (testWebKitFrameMainFrame):
4188         (testWebKitFrameURI):
4189         (testWebKitFrameJavaScriptContext):
4190         (beforeAll):
4191         (afterAll):
4192         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Add
4193         willDestroyFrame callback to the injected bundle loader client, to
4194         notify the client when a frame is about to be destroyed.
4195         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.cpp: Added.
4196         (webkit_frame_class_init):
4197         (webkitFrameCreate):
4198         (webkit_frame_is_main_frame):
4199         (webkit_frame_get_uri):
4200         (webkit_frame_get_javascript_global_context):
4201         * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h: Added.
4202         * WebProcess/InjectedBundle/API/gtk/WebKitFramePrivate.h: Added.
4203         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
4204         (webkitFrameGetOrCreate): Helper function to create a WebKitFrame
4205         wrapping the given WebFrame or returning the wrapper if it already
4206         exists.
4207         (willDestroyFrame): Remove the WebKitFrame wrapping the given
4208         WebFrame if it exists.
4209         (webkitWebPageCreate): Add willDestroyFrame implementation to
4210         injected bundle loader client.
4211         (webkit_web_page_get_main_frame): Return the main frame of the
4212         page.
4213         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.h:
4214         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
4215         Include WebKitFrame.h.
4216         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
4217         (WebKit::InjectedBundlePageLoaderClient::willDestroyFrame): New
4218         callback to be called when a frame is about to be destroyed.
4219         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
4220         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
4221         (WebKit::WebFrameLoaderClient::frameLoaderDestroyed): Call
4222         willDestroyFrame callback of injected bundle loader client.
4223         * WebProcess/qt/QtBuiltinBundlePage.cpp:
4224         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage): Add
4225         willDestroyFrame callback.
4226
4227 2013-08-24  Antti Koivisto  <antti@apple.com>
4228
4229         Revert accidental change.
4230         
4231         Not reviewed.
4232
4233         * WebProcess/com.apple.WebProcess.sb.in:
4234
4235 2013-08-23  Beth Dakin  <bdakin@apple.com>
4236
4237         REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in 
4238         Adobe Reader
4239         https://bugs.webkit.org/show_bug.cgi?id=120240
4240         -and corresponding-
4241         <rdar://problem/14634453>
4242
4243         Reviewed by Anders Carlsson.
4244
4245         Hook up new WebSystemInterface API to find out if the current context is the PDF 
4246         context. 
4247