[GTK] Suppress unused parameter warnings in ui clients
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2014-12-31  Yusuke Suzuki  <utatane.tea@gmail.com>
2
3         [GTK] Suppress unused parameter warnings in ui clients
4         https://bugs.webkit.org/show_bug.cgi?id=140012
5
6         Drop the parameter name of WebKitUIClient::isPlayingAudioDidChange
7         to suppress warnings.
8
9         Reviewed by Benjamin Poulain.
10
11         * UIProcess/API/gtk/WebKitUIClient.cpp:
12
13 2014-12-31  Sam Weinig  <sam@webkit.org>
14
15         Remove the remaining uses of OwnPtr from WebKit2
16         https://bugs.webkit.org/show_bug.cgi?id=140017
17
18         Reviewed by Dan Bernstein.
19
20         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
21         (WebKit::RemoteScrollingCoordinatorTransaction::decode):
22         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
23         (WebKit::RemoteScrollingCoordinatorTransaction::setStateTreeToEncode):
24         (WebKit::RemoteScrollingCoordinatorTransaction::scrollingStateTree):
25         * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
26         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
27         (WebKit::RemoteScrollingCoordinatorProxy::updateScrollingTree):
28         * UIProcess/mac/PageClientImpl.h:
29         * UIProcess/mac/PageClientImpl.mm:
30         (WebKit::PageClientImpl::PageClientImpl):
31         * UIProcess/mac/WKFullScreenWindowController.h:
32         * UIProcess/mac/WKPrintingView.mm:
33         (-[WKPrintingView _preparePDFDataForPrintingOnSecondaryThread]):
34         (-[WKPrintingView _askPageToComputePageRects]):
35         (-[WKPrintingView _drawPreview:]):
36         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
37
38 2014-12-31  Bartlomiej Gajda  <b.gajda@samsung.com>
39
40         Fix build warnings after r177792.
41         https://bugs.webkit.org/show_bug.cgi?id=140005.
42
43         Reviewed by Anders Carlsson.
44
45         Add UNUSED_PARAM(connection) for async messages.
46
47         * Scripts/webkit/messages.py:
48         (generate_message_handler):
49
50 2014-12-31  Zan Dobersek  <zdobersek@igalia.com>
51
52         Unreviewed build fix for the GTK port.
53
54         Move the ArgumentCodersGtk.h inclusion from WebPageProxy.cpp to
55         WebPageProxy.h. This makes GTK-specific IPC coders available to
56         WebPageProxyMessageReceiver, fixing a build error due to missing
57         ArgumentCoder template specializations for WebCore::DragData type
58         that is used in the GTK-specific StartDrag message.
59
60         * UIProcess/WebPageProxy.cpp:
61         * UIProcess/WebPageProxy.h:
62
63 2014-12-31  Commit Queue  <commit-queue@webkit.org>
64
65         Unreviewed, rolling out r177824 and r177826.
66         https://bugs.webkit.org/show_bug.cgi?id=140011
67
68         The new test crashes (Requested by ap on #webkit).
69
70         Reverted changesets:
71
72         "Too large plugins are crashing."
73         https://bugs.webkit.org/show_bug.cgi?id=139856
74         http://trac.webkit.org/changeset/177824
75
76         "Fix bug number typo in the previous commit."
77         http://trac.webkit.org/changeset/177826
78
79 2014-12-30  Gabor Rapcsanyi  <rgabor@webkit.org>
80
81         Too large plugins are crashing.
82         https://bugs.webkit.org/show_bug.cgi?id=139868
83
84         Reviewed by Darin Adler.
85
86         * WebProcess/Plugins/PluginProxy.cpp:
87         (WebKit::PluginProxy::updateBackingStore): Return false if backingStore cannot be allocated.
88
89 2014-12-30  Anders Carlsson  <andersca@apple.com>
90
91         Transient local storage namespaces need to ref their storage areas
92         https://bugs.webkit.org/show_bug.cgi?id=140006
93         <rdar://problem/19225389>
94
95         Reviewed by Sam Weinig.
96
97         We need to keep transient storage areas around even if they have no active connections,
98         so use a RefPtr instead of a raw pointer. This matches what we do for session storage namespaces.
99
100         * UIProcess/Storage/StorageManager.cpp:
101
102 2014-12-29  Anders Carlsson  <andersca@apple.com>
103
104         Remove unneeded StorageNamespace functions
105         https://bugs.webkit.org/show_bug.cgi?id=139997
106
107         Reviewed by Sam Weinig.
108
109         * WebProcess/Storage/StorageNamespaceImpl.cpp:
110         (WebKit::StorageNamespaceImpl::close): Deleted.
111         (WebKit::StorageNamespaceImpl::clearOriginForDeletion): Deleted.
112         (WebKit::StorageNamespaceImpl::clearAllOriginsForDeletion): Deleted.
113         (WebKit::StorageNamespaceImpl::sync): Deleted.
114         (WebKit::StorageNamespaceImpl::closeIdleLocalStorageDatabases): Deleted.
115         * WebProcess/Storage/StorageNamespaceImpl.h:
116
117 2014-12-29  Anders Carlsson  <andersca@apple.com>
118
119         Move storage code from WebCore to WebKit
120         https://bugs.webkit.org/show_bug.cgi?id=139558
121
122         Reviewed by Darin Adler.
123
124         * WebProcess/WebProcess.cpp:
125
126 2014-12-29  Dan Bernstein  <mitz@apple.com>
127
128         Fixed the iOS build.
129
130         * WebProcess/WebPage/ios/WebPageIOS.mm:
131
132 2014-12-29  Anders Carlsson  <andersca@apple.com>
133
134         Another iOS build fix.
135
136         * WebProcess/WebPage/ios/WebPageIOS.mm:
137         (WebKit::WebPage::elementDidFocus):
138
139 2014-12-29  Anders Carlsson  <andersca@apple.com>
140
141         Turn on transient local storage support again
142         https://bugs.webkit.org/show_bug.cgi?id=139995
143
144         Reviewed by Sam Weinig.
145
146         Using transient local storage caused weird crashes in the UI process so that change had to
147         be backed out - let's turn it on and see if it still happens.
148
149         * WebProcess/Storage/WebStorageNamespaceProvider.cpp:
150         (WebKit::WebStorageNamespaceProvider::createTransientLocalStorageNamespace):
151
152 2014-12-29  Anders Carlsson  <andersca@apple.com>
153
154         Remove more old coder code gunk.
155
156         Rubber-stamped by Sam Weinig.
157
158         * Scripts/webkit/messages.py:
159         (argument_coder_headers_for_type):
160         (handler_function): Deleted.
161
162 2014-12-29  Anders Carlsson  <andersca@apple.com>
163
164         Try to fix the iOS build.
165
166         * UIProcess/ios/WebPageProxyIOS.mm:
167         (WebKit::WebPageProxy::startAssistingNode):
168         * WebProcess/WebPage/ios/WebPageIOS.mm:
169         (WebKit::WebPage::elementDidFocus):
170
171 2014-12-29  Csaba Osztrogonác  <ossy@webkit.org>
172
173         URTBF after r177805.
174
175         * CMakeLists.txt:
176
177 2014-12-29  Anders Carlsson  <andersca@apple.com>
178
179         Remove the old user message coder code
180         https://bugs.webkit.org/show_bug.cgi?id=139994
181
182         Reviewed by Sam Weinig.
183
184         * Platform/IPC/HandleMessage.h:
185         (IPC::callMemberFunctionImpl): Deleted.
186         (IPC::callMemberFunction): Deleted.
187         (IPC::handleMessageVariadic): Deleted.
188         * Scripts/webkit/messages.py:
189         (decode_type):
190         (async_message_statement):
191         (sync_message_statement):
192         * Shared/UserMessageCoders.h: Removed.
193         * Shared/mac/ObjCObjectGraphCoders.h: Removed.
194         * Shared/mac/ObjCObjectGraphCoders.mm: Removed.
195         * UIProcess/WebConnectionToWebProcess.cpp:
196         * UIProcess/WebContextUserMessageCoders.h: Removed.
197         * UIProcess/WebPageProxy.cpp:
198         * UIProcess/WebProcessPool.cpp:
199         * WebKit2.xcodeproj/project.pbxproj:
200         * WebProcess/InjectedBundle/InjectedBundle.cpp:
201         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: Removed.
202         * WebProcess/WebConnectionToUIProcess.cpp:
203         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
204         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
205         * WebProcess/WebPage/WebContextMenu.cpp:
206         * WebProcess/WebPage/WebPage.cpp:
207         * WebProcess/WebPage/mac/WebPageMac.mm:
208         * WebProcess/WebProcess.cpp:
209
210 2014-12-29  Sam Weinig  <sam@webkit.org>
211
212         Move WebPasteboardProxy from Shared to UIProcess, where it should have been all along
213         Rubber-stamped by Anders Carlsson.
214
215         * Shared/WebPasteboardProxy.cpp: Removed.
216         * Shared/WebPasteboardProxy.h: Removed.
217         * Shared/WebPasteboardProxy.messages.in: Removed.
218         * UIProcess/WebPasteboardProxy.cpp: Copied from Shared/WebPasteboardProxy.cpp.
219         * UIProcess/WebPasteboardProxy.h: Copied from Shared/WebPasteboardProxy.h.
220         * UIProcess/WebPasteboardProxy.messages.in: Copied from Shared/WebPasteboardProxy.messages.in.
221         * WebKit2.xcodeproj/project.pbxproj:
222
223 2014-12-29  Sam Weinig  <sam@webkit.org>
224
225         Try to fix the iOS build.
226
227         * Shared/WebPasteboardProxy.h:
228
229 2014-12-29  Anders Carlsson  <andersca@apple.com>
230
231         Convert injected bundle message posting to UserData
232         https://bugs.webkit.org/show_bug.cgi?id=139993
233
234         Reviewed by Sam Weinig.
235
236         * UIProcess/WebProcessPool.cpp:
237         (WebKit::WebProcessPool::createNewWebProcess):
238         (WebKit::WebProcessPool::postMessageToInjectedBundle):
239         * WebProcess/WebProcess.cpp:
240         (WebKit::WebProcess::handleInjectedBundleMessage):
241         (WebKit::WebProcess::postInjectedBundleMessage): Deleted.
242         * WebProcess/WebProcess.h:
243         * WebProcess/WebProcess.messages.in:
244
245 2014-12-29  Sam Weinig  <sam@webkit.org>
246
247         Try to fix the iOS build.
248
249         * Shared/WebPasteboardProxy.h:
250
251 2014-12-29  Csaba Osztrogonác  <ossy@webkit.org>
252
253         One more speculative buildfix after r177794.
254
255         * CMakeLists.txt:
256
257 2014-12-29  Sam Weinig  <sam@webkit.org>
258
259         Try to fix the iOS build.
260
261         * Shared/WebPasteboardProxy.h:
262
263 2014-12-29  Csaba Osztrogonác  <ossy@webkit.org>
264
265         Speculative buildfix after r177793.
266
267         * WebProcess/soup/WebProcessSoup.cpp:
268         (WebKit::WebProcess::platformInitializeWebProcess):
269
270 2014-12-29  Csaba Osztrogonác  <ossy@webkit.org>
271
272         Speculative buildfix after r177794.
273
274         * CMakeLists.txt:
275
276 2014-12-29  Sam Weinig  <sam@webkit.org>
277
278         Removes some unnecessary use of LegacyReceiver
279         https://bugs.webkit.org/show_bug.cgi?id=139992
280
281         Reviewed by Anders Carlsson.
282
283         * Shared/WebConnection.cpp:
284         (WebKit::WebConnection::didReceiveMessage): Deleted.
285         * Shared/WebConnection.h:
286         * Shared/WebConnection.messages.in:
287         * UIProcess/WebProcessPool.cpp:
288         (WebKit::WebProcessPool::didReceiveMessage): Deleted.
289         (WebKit::WebProcessPool::didReceiveSyncMessage): Deleted.
290         * UIProcess/WebProcessPool.h:
291         * UIProcess/WebProcessPool.messages.in:
292         Remove unnecessary use of LegacyReceiver.
293
294         * UIProcess/WebPageProxy.h:
295         Remove declarations for functions that don't exist.
296
297 2014-12-29  Anders Carlsson  <andersca@apple.com>
298
299         Convert all variadic web process messages to UserData
300         https://bugs.webkit.org/show_bug.cgi?id=139991
301
302         Reviewed by Sam Weinig.
303
304         * UIProcess/WebPageProxy.cpp:
305         (WebKit::WebPageProxy::loadRequest):
306         (WebKit::WebPageProxy::loadFile):
307         (WebKit::WebPageProxy::loadData):
308         (WebKit::WebPageProxy::loadHTMLString):
309         (WebKit::WebPageProxy::loadAlternateHTMLString):
310         (WebKit::WebPageProxy::loadPlainTextString):
311         (WebKit::WebPageProxy::loadWebArchiveData):
312         (WebKit::WebPageProxy::postMessageToInjectedBundle):
313         * WebProcess/WebPage/WebPage.cpp:
314         (WebKit::WebPage::loadRequest):
315         (WebKit::WebPage::loadDataImpl):
316         (WebKit::WebPage::loadString):
317         (WebKit::WebPage::loadData):
318         (WebKit::WebPage::loadHTMLString):
319         (WebKit::WebPage::loadAlternateHTMLString):
320         (WebKit::WebPage::loadPlainTextString):
321         (WebKit::WebPage::loadWebArchiveData):
322         (WebKit::WebPage::postInjectedBundleMessage):
323         * WebProcess/WebPage/WebPage.h:
324         * WebProcess/WebPage/WebPage.messages.in:
325
326 2014-12-29  Anders Carlsson  <andersca@apple.com>
327
328         Convert all variadic WebProcessProxy message over to UserData
329         https://bugs.webkit.org/show_bug.cgi?id=139990
330
331         Reviewed by Sam Weinig.
332
333         * UIProcess/WebPageProxy.cpp:
334         (WebKit::WebPageProxy::willGoToBackForwardListItem):
335         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
336         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
337         (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
338         (WebKit::WebPageProxy::didCommitLoadForFrame):
339         (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
340         (WebKit::WebPageProxy::didFinishLoadForFrame):
341         (WebKit::WebPageProxy::didFailLoadForFrame):
342         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
343         (WebKit::WebPageProxy::didReceiveTitleForFrame):
344         (WebKit::WebPageProxy::didFirstLayoutForFrame):
345         (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
346         (WebKit::WebPageProxy::didLayout):
347         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
348         (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
349         (WebKit::WebPageProxy::didRunInsecureContentForFrame):
350         (WebKit::WebPageProxy::didDetectXSSForFrame):
351         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
352         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
353         (WebKit::WebPageProxy::decidePolicyForResponse):
354         (WebKit::WebPageProxy::decidePolicyForResponseSync):
355         (WebKit::WebPageProxy::unableToImplementPolicy):
356         (WebKit::WebPageProxy::willSubmitForm):
357         (WebKit::WebPageProxy::mouseDidMoveOverElement):
358         (WebKit::WebPageProxy::didBeginTrackingPotentialLongMousePress):
359         (WebKit::WebPageProxy::didRecognizeLongMousePress):
360         (WebKit::WebPageProxy::didCancelTrackingPotentialLongMousePress):
361         (WebKit::WebPageProxy::showContextMenu):
362         (WebKit::WebPageProxy::internalShowContextMenu):
363         (WebKit::WebPageProxy::didPerformActionMenuHitTest):
364         * UIProcess/WebPageProxy.h:
365         * UIProcess/WebPageProxy.messages.in:
366         * UIProcess/mac/WebPageProxyMac.mm:
367         (WebKit::WebPageProxy::showSelectionServiceMenu):
368         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
369         (WebKit::WebChromeClient::mouseDidMoveOverElement):
370         (WebKit::WebChromeClient::didBeginTrackingPotentialLongMousePress):
371         (WebKit::WebChromeClient::didRecognizeLongMousePress):
372         (WebKit::WebChromeClient::didCancelTrackingPotentialLongMousePress):
373         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
374         (WebKit::WebFrameLoaderClient::detachedFromParent2):
375         (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
376         (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
377         (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
378         (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
379         (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
380         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
381         (WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
382         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
383         (WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
384         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
385         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
386         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
387         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
388         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
389         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
390         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
391         (WebKit::WebFrameLoaderClient::dispatchUnableToImplementPolicy):
392         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
393         (WebKit::WebFrameLoaderClient::shouldGoToHistoryItem):
394         (WebKit::WebFrameLoaderClient::didDisplayInsecureContent):
395         (WebKit::WebFrameLoaderClient::didRunInsecureContent):
396         (WebKit::WebFrameLoaderClient::didDetectXSS):
397         * WebProcess/WebPage/WebContextMenu.cpp:
398         (WebKit::WebContextMenu::show):
399         * WebProcess/WebPage/mac/WebPageMac.mm:
400         (WebKit::WebPage::performActionMenuHitTestAtLocation):
401
402 2014-12-29  Sam Weinig  <sam@webkit.org>
403
404         Move Pasteboard code out of WebProcessPool and into its own singleton class
405         https://bugs.webkit.org/show_bug.cgi?id=139987
406
407         Reviewed by Anders Carlsson.
408
409         * DerivedSources.make:
410         * Shared/WebPasteboardProxy.cpp: Added.
411         (WebKit::WebPasteboardProxy::shared):
412         (WebKit::WebPasteboardProxy::WebPasteboardProxy):
413         (WebKit::WebPasteboardProxy::addWebProcessProxy):
414         * Shared/WebPasteboardProxy.h: Added.
415         * Shared/WebPasteboardProxy.messages.in: Added.
416         * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: Added.
417         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
418         * UIProcess/WebProcessPool.cpp:
419         (WebKit::WebProcessPool::didReceiveSyncMessage):
420         (WebKit::WebProcessPool::dummy): Deleted.
421         * UIProcess/WebProcessPool.h:
422         * UIProcess/WebProcessPool.messages.in:
423         * UIProcess/WebProcessProxy.cpp:
424         (WebKit::WebProcessProxy::WebProcessProxy):
425         * WebKit2.xcodeproj/project.pbxproj:
426         * WebProcess/Plugins/PDF/PDFPlugin.mm:
427         (WebKit::PDFPlugin::writeItemsToPasteboard):
428         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
429
430 2014-12-29  Anders Carlsson  <andersca@apple.com>
431
432         Use UserData for bundle initialization data
433         https://bugs.webkit.org/show_bug.cgi?id=139989
434
435         Reviewed by Sam Weinig.
436
437         * Shared/WebProcessCreationParameters.cpp:
438         (WebKit::WebProcessCreationParameters::~WebProcessCreationParameters):
439         (WebKit::WebProcessCreationParameters::encode):
440         (WebKit::WebProcessCreationParameters::decode):
441         * Shared/WebProcessCreationParameters.h:
442         * UIProcess/WebProcessPool.cpp:
443         (WebKit::WebProcessPool::createNewWebProcess):
444         * WebProcess/WebProcess.cpp:
445         (WebKit::WebProcess::initializeWebProcess):
446         * WebProcess/WebProcess.h:
447         * WebProcess/WebProcess.messages.in:
448         * WebProcess/cocoa/WebProcessCocoa.mm:
449         (WebKit::WebProcess::platformInitializeWebProcess):
450
451 2014-12-28  Anders Carlsson  <andersca@apple.com>
452
453         Use UserData when sending messages to the process pool
454         https://bugs.webkit.org/show_bug.cgi?id=139978
455
456         Reviewed by Sam Weinig.
457
458         * Scripts/webkit/messages.py:
459         (generate_message_handler):
460         Include the connection parameter for legacy receivers as well.
461
462         * Shared/CoreIPCSupport/WebContextMessageKinds.h:
463         Remove this, it's no longer needed.
464
465         * UIProcess/WebProcessPool.cpp:
466         (WebKit::WebProcessPool::didReceiveMessage):
467         No need to special case the postMessage message.
468
469         (WebKit::WebProcessPool::didReceiveSyncMessage):
470         No need to special case the postSynchronousMessageMessage message.
471
472         (WebKit::WebProcessPool::handleMessage):
473         Convert handles to objects and call didReceiveMessageFromInjectedBundle.
474
475         (WebKit::WebProcessPool::handleSynchronousMessage):
476         Convert handles to objects, call didReceiveSynchronousMessageFromInjectedBundle, and then
477         convert objects back to handles in the reply.
478
479         (WebKit::WebProcessPool::didReceiveMessageFromInjectedBundle): Deleted.
480         (WebKit::WebProcessPool::didReceiveSynchronousMessageFromInjectedBundle): Deleted.
481         (WebKit::WebProcessPool::dummy): Deleted.
482         * UIProcess/WebProcessPool.h:
483         Add handleMessage and handleSynchronousMessage message handlers.
484
485         * UIProcess/WebProcessPool.messages.in:
486         Add new messages.
487
488         * WebKit2.xcodeproj/project.pbxproj:
489         Remove a now unused file.
490
491         * WebProcess/InjectedBundle/InjectedBundle.cpp:
492         (WebKit::InjectedBundle::postMessage):
493         Convert objects to handles in the message body and then send the HandleMessage to the UI process.
494
495         (WebKit::InjectedBundle::postSynchronousMessage):
496         Convert objects to handles in the message body, send the HandleSynchronousMessage message to the UI process,
497         and then convert handles back to objects in the reply.
498
499 2014-12-28  Anders Carlsson  <andersca@apple.com>
500
501         Transform nested objects inside arrays
502         https://bugs.webkit.org/show_bug.cgi?id=139976
503
504         Reviewed by Oliver Hunt.
505
506         Call transformGraph on each element so that we'll transform other nested objects correctly.
507
508         * Shared/UserData.cpp:
509         (WebKit::transformGraph):
510
511 2014-12-27  Dan Bernstein  <mitz@apple.com>
512
513         iOS build fix after r177765.
514
515         * Shared/mac/ObjCObjectGraph.mm:
516         (WebKit::ObjCObjectGraph::encode):
517
518 2014-12-27  Anders Carlsson  <andersca@apple.com>
519
520         Switch WebConnection over to sending objects with UserData
521         https://bugs.webkit.org/show_bug.cgi?id=139967
522
523         Reviewed by Oliver Hunt.
524
525         * Shared/WebConnection.cpp:
526         (WebKit::WebConnection::postMessage):
527         No need to construct the message manually anymore.
528
529         (WebKit::WebConnection::handleMessage):
530         No need to decode the message manually, just get the object from the UserData message body,
531         convert any handles to objects, and dispatch the message.
532
533         * Shared/WebConnection.h:
534         Remove now unused members.
535
536         * Shared/WebConnection.messages.in:
537         Give HandleMessage a proper signature.
538
539         * UIProcess/WebConnectionToWebProcess.cpp:
540         (WebKit::WebConnectionToWebProcess::transformHandlesToObjects):
541         (WebKit::WebConnectionToWebProcess::transformObjectsToHandles):
542         Call the WebProcessProxy version.
543
544         (WebKit::WebConnectionToWebProcess::encodeMessageBody): Deleted.
545         (WebKit::WebConnectionToWebProcess::decodeMessageBody): Deleted.
546
547         * UIProcess/WebConnectionToWebProcess.h:
548         * WebProcess/WebConnectionToUIProcess.cpp:
549         (WebKit::WebConnectionToUIProcess::encodeMessageBody): Deleted.
550         (WebKit::WebConnectionToUIProcess::decodeMessageBody): Deleted.
551         * WebProcess/WebConnectionToUIProcess.h:
552         Delete more unused members.
553
554 2014-12-27  Anders Carlsson  <andersca@apple.com>
555
556         Encode and decode WKTypeRefWrapper objects
557         https://bugs.webkit.org/show_bug.cgi?id=139966
558
559         Reviewed by Oliver Hunt.
560
561         * Shared/UserData.cpp:
562         (WebKit::UserData::encode):
563         * Shared/UserData.h:
564         * Shared/mac/ObjCObjectGraph.mm:
565         (WebKit::typeFromObject):
566         (WebKit::ObjCObjectGraph::encode):
567         (WebKit::ObjCObjectGraph::decode):
568
569 2014-12-27  Anders Carlsson  <andersca@apple.com>
570
571         Implement encoding and decoding of ObjCObjectGraph objects
572         https://bugs.webkit.org/show_bug.cgi?id=139965
573
574         Reviewed by Oliver Hunt.
575
576         * Shared/UserData.cpp:
577         (WebKit::UserData::encode):
578         (WebKit::UserData::decode):
579         * Shared/mac/ObjCObjectGraph.h:
580         * Shared/mac/ObjCObjectGraph.mm:
581         (WebKit::typeFromObject):
582         (WebKit::ObjCObjectGraph::encode):
583         (WebKit::ObjCObjectGraph::decode):
584
585 2014-12-27  Dan Bernstein  <mitz@apple.com>
586
587         [Cocoa] WKWebProcessPlugInLoadDelegate uses the deprecated WKRenderingProgressEvents enum
588         https://bugs.webkit.org/show_bug.cgi?id=139964
589
590         Reviewed by Anders Carlsson.
591
592         * Shared/API/Cocoa/WKRenderingProgressEventsInternal.h: Removed.
593
594         * Shared/API/Cocoa/_WKRenderingProgressEvents.h: Added. Moved the enum definition from
595         WKWebViewPrivate.h to here.
596
597         * Shared/API/Cocoa/_WKRenderingProgressEventsInternal.h: Added.
598         (renderingProgressEvents): Moved from NavigationState.mm to here.
599
600         * UIProcess/API/Cocoa/WKBrowsingContextController.h: Removed observedRenderingProgressEvents
601         property declaration.
602         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
603         (layoutMilestones): Deleted.
604         (-[WKBrowsingContextController setObservedRenderingProgressEvents:]): Deleted. This is not
605         needed for binary compatibility.
606         (didLayout): Deleted.
607         (setUpPageLoaderClient): Removed setting up didLayout callback.
608         * UIProcess/API/Cocoa/WKBrowsingContextLoadDelegate.h: Removed unused delegate method.
609
610         * UIProcess/API/Cocoa/WKWebViewPrivate.h: Import definition of _WKRenderingProgressEvents
611         from new header.
612
613         * UIProcess/Cocoa/NavigationState.mm:
614         (WebKit::renderingProgressEvents): Moved into its own header.
615
616         * WebKit2.xcodeproj/project.pbxproj: Updated for file additions and removeals, and moved
617         WKRenderingProgressEvents.h into a new Deprecated group.
618
619         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Changed the type of
620         a delegate method parameter to _WKRenderingProgressEvents.
621         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
622         (didLayout): Pass the new type.
623
624 2014-12-26  Conrad Shultz  <conrad_shultz@apple.com>
625
626         Safari build crashes when "zooming into"/choosing a tab from tab view
627         https://bugs.webkit.org/show_bug.cgi?id=139934
628
629         Reviewed by Dan Bernstein.
630
631         * UIProcess/API/mac/WKView.mm:
632         (-[WKView _setIgnoresNonWheelEvents:]):
633         Trying to add a nil gesture recognizer raises an exception. Stop assuming that a
634         gesture recognizer is non-nil.
635
636 2014-12-26  Anders Carlsson  <andersca@apple.com>
637
638         Handle more types in the UserData encode/decode functions
639         https://bugs.webkit.org/show_bug.cgi?id=139959
640
641         Reviewed by Dan Bernstein.
642
643         * Shared/UserData.cpp:
644         (WebKit::UserData::encode):
645         (WebKit::UserData::decode):
646
647 2014-12-26  Anders Carlsson  <andersca@apple.com>
648
649         Move handle encoding functions to their respective implementation files
650         https://bugs.webkit.org/show_bug.cgi?id=139957
651
652         Reviewed by Dan Bernstein.
653
654         * Shared/API/APIFrameHandle.cpp:
655         (API::FrameHandle::encode):
656         (API::FrameHandle::decode):
657         * Shared/API/APIFrameHandle.h:
658         * Shared/API/APIPageGroupHandle.cpp:
659         (API::PageGroupHandle::PageGroupHandle):
660         (API::PageGroupHandle::encode):
661         (API::PageGroupHandle::decode):
662         * Shared/API/APIPageGroupHandle.h:
663         * Shared/API/APIPageHandle.cpp:
664         (API::PageHandle::encode):
665         (API::PageHandle::decode):
666         * Shared/API/APIPageHandle.h:
667         * Shared/UserData.cpp:
668         (WebKit::UserData::encode):
669         (WebKit::UserData::decode):
670
671 2014-12-26  Anders Carlsson  <andersca@apple.com>
672
673         Add the notion of auto-converting page and frame handles
674         https://bugs.webkit.org/show_bug.cgi?id=139954
675
676         Reviewed by Dan Bernstein.
677
678         This makes it possible to tell the difference between page and frame handles that
679         should be converted to their respective UI or web process object representations
680         and handles that should stay the same (for the modern API for example).
681         
682         * Shared/API/APIFrameHandle.cpp:
683         (API::FrameHandle::create):
684         (API::FrameHandle::createAutoconverting):
685         (API::FrameHandle::FrameHandle):
686         * Shared/API/APIFrameHandle.h:
687         (API::FrameHandle::isAutoconverting):
688         * Shared/API/APIPageHandle.cpp:
689         (API::PageHandle::create):
690         (API::PageHandle::createAutoconverting):
691         (API::PageHandle::PageHandle):
692         * Shared/API/APIPageHandle.h:
693         (API::PageHandle::isAutoconverting):
694         * Shared/API/Cocoa/_WKFrameHandle.mm:
695         (-[_WKFrameHandle initWithCoder:]):
696         * Shared/UserData.cpp:
697         (WebKit::shouldTransform):
698         * Shared/UserData.h:
699         * UIProcess/Cocoa/UIDelegate.mm:
700         (WebKit::UIDelegate::UIClient::printFrame):
701         * UIProcess/WebProcessProxy.cpp:
702         (WebKit::WebProcessProxy::transformHandlesToObjects):
703         (WebKit::WebProcessProxy::transformObjectsToHandles):
704         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
705         (-[WKWebProcessPlugInFrame handle]):
706         * WebProcess/WebProcess.cpp:
707         (WebKit::WebProcess::transformHandlesToObjects):
708         (WebKit::WebProcess::transformObjectsToHandles):
709
710 2014-12-26  Dan Bernstein  <mitz@apple.com>
711
712         [Cocoa] Some modern SPI changes have missing or incorrect availability annotations
713         https://bugs.webkit.org/show_bug.cgi?id=139940
714
715         Reviewed by Darin Adler.
716
717         * Shared/API/c/WKDeclarationSpecifiers.h: Renamed WK_DEPRECATED to WK_C_DEPRECATED.
718
719         * Shared/API/Cocoa/WKFoundation.h: Define WK_DEPRECATED when API availability is not enabled
720         to mean that the declaration is currently deprecated.
721
722         * Shared/API/c/WKConnectionRef.h: Updated for the renaming of the existing WK_DEPRECATED to
723         WK_C_DEPRECATED.
724         * UIProcess/API/C/WKContext.h: Ditto.
725         * UIProcess/API/C/WKContextConnectionClient.h: Ditto.
726         * UIProcess/API/C/WKContextDownloadClient.h: Ditto.
727         * UIProcess/API/C/WKContextHistoryClient.h: Ditto.
728         * UIProcess/API/C/WKContextInjectedBundleClient.h: Ditto.
729         * UIProcess/API/C/WKCookieManager.h: Ditto.
730         * UIProcess/API/C/WKDatabaseManager.h: Ditto.
731         * UIProcess/API/C/WKGeolocationManager.h: Ditto.
732         * UIProcess/API/C/WKIconDatabase.h: Ditto.
733         * UIProcess/API/C/WKNotificationProvider.h: Ditto.
734         * UIProcess/API/C/WKPageContextMenuClient.h: Ditto.
735         * UIProcess/API/C/WKPageFindClient.h: Ditto.
736         * UIProcess/API/C/WKPageFindMatchesClient.h: Ditto.
737         * UIProcess/API/C/WKPageFormClient.h: Ditto.
738         * UIProcess/API/C/WKPageUIClient.h: Ditto.
739         * WebProcess/InjectedBundle/API/c/WKBundle.h: Ditto.
740         * WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h: Ditto.
741         * WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h: Ditto.
742         * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h: Ditto.
743         * WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h: Ditto.
744         * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h: Ditto.
745         * WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h: Ditto.
746         * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h: Ditto.
747         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h: Ditto.
748         * WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h: Ditto.
749         * WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h: Ditto.
750         * WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h: Ditto.
751
752         * Shared/API/Cocoa/WKRenderingProgressEvents.h: Added missing availability annotation.
753
754         * UIProcess/API/Cocoa/WKPreferencesPrivate.h: Changed to use WK_MAC_TBA and WK_IOS_TBA for
755         _WKDebugOverlayRegions enum. Added availability annotations to new properties.
756
757         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h: Added availability annotation to new method.
758
759         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: Annotated new method, changed Mac
760         availability of iOS-only method to NA.
761
762         * UIProcess/API/Cocoa/WKWebViewPrivate.h: Added availability annotation to new enum value,
763         new property, and new method. Added deprecation annotation to one method.
764
765         * UIProcess/API/Cocoa/_WKWebsiteDataStore.h: Annotated new method.
766
767         * mac/rewrite-availability-macros.sh: Rewrite WK_DEPRECATED to NS_DEPRECATED.
768
769 2014-12-26  Dan Bernstein  <mitz@apple.com>
770
771         <rdar://problem/19348208> REGRESSION (r177027): iOS builds use the wrong toolchain
772         https://bugs.webkit.org/show_bug.cgi?id=139950
773
774         Reviewed by David Kilzer.
775
776         * Configurations/Base.xcconfig: Only define TOOLCHAINS when building for OS X, doing so
777         in a manner that works with Xcode 5.1.1.
778
779 2014-12-25  Hunseop Jeong  <hs85.jeong@samsung.com>
780
781         Fix build warning after r177700
782         https://bugs.webkit.org/show_bug.cgi?id=139948
783
784         Reviewed by Alexey Proskuryakov.
785
786         * UIProcess/WebConnectionToWebProcess.cpp:
787         (WebKit::WebConnectionToWebProcess::transformHandlesToObjects):
788         (WebKit::WebConnectionToWebProcess::transformObjectsToHandles):
789
790 2014-12-25  Chris Dumez  <cdumez@apple.com>
791
792         [iOS] Log better using FeatureCounter why PageCache is failing due to pruned resources
793         https://bugs.webkit.org/show_bug.cgi?id=139921
794
795         Reviewed by Gavin Barraclough and Alexey Proskuryakov.
796
797         Call PageCache::pruneToCapacityNow() instead of multiple calls to
798         setCapacity() as it does exactly what we want. Also pass the new
799         PrunedReason argument so help us do better logging.
800
801         * WebProcess/WebProcess.cpp:
802         (WebKit::WebProcess::releasePageCache):
803
804 2014-12-25  Commit Queue  <commit-queue@webkit.org>
805
806         Unreviewed, rolling out r177712 and r177717.
807         https://bugs.webkit.org/show_bug.cgi?id=139944
808
809         Caused flaky assertion failures (Requested by ap on #webkit).
810
811         Reverted changesets:
812
813         "[iOS] Log better using FeatureCounter why PageCache is
814         failing due to pruned resources"
815         https://bugs.webkit.org/show_bug.cgi?id=139921
816         http://trac.webkit.org/changeset/177712
817
818         "Unreviewed, fix build warning after r177712"
819         http://trac.webkit.org/changeset/177717
820
821 2014-12-24  Dan Bernstein  <mitz@apple.com>
822
823         [Cocoa] WebKit private headers shouldn’t contain “inappropriate” macros
824         https://bugs.webkit.org/show_bug.cgi?id=139942
825
826         Reviewed by Darin Adler.
827
828         * WebKit2.xcodeproj/project.pbxproj: In the Check For Inappropriate Macros in External
829         Headers script build phase, check the PrivateHeaders directory as well.
830
831 2014-12-24  Dan Bernstein  <mitz@apple.com>
832
833         Addressed a linker warning about the definition of a method in a category overridng a method from the class.
834
835         * UIProcess/API/mac/WKView.mm:
836         (-[WKView(Private) _targetWindowForMovePreparation]): Deleted. This was identical to the
837         definition in the main WKView implementation above.
838
839 2014-12-23  ChangSeok Oh  <changseok.oh@collabora.com>
840
841         [GTK] Build fix after r177692
842         https://bugs.webkit.org/show_bug.cgi?id=139919
843
844         Reviewed by Gyuyoung Kim.
845
846         This change addresses build failures introduced after r177692.
847
848         * PlatformEfl.cmake: Renamed WebContextSoup to WebProcessPoolSoup.cpp
849         * PlatformGTK.cmake: ditto.
850         * UIProcess/API/gtk/PageClientImpl.cpp:
851         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
852         * UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp:
853         (webkitFormSubmissionRequestCreate):
854         (webkit_form_submission_request_get_text_fields):
855         * UIProcess/API/gtk/WebKitFormSubmissionRequestPrivate.h:
856         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
857         (didReceiveWebViewMessageFromInjectedBundle):
858         (didReceiveMessageFromInjectedBundle):
859         * UIProcess/API/gtk/WebKitSecurityManager.cpp:
860         (registerSecurityPolicyForURIScheme):
861         * UIProcess/API/gtk/WebKitWebContext.cpp:
862         (webkitWebContextConstructed):
863         (webkit_web_context_prefetch_dns):
864         (webkitWebContextGetContext):
865         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
866         * UIProcess/API/gtk/WebKitWebView.cpp:
867         (webkit_web_view_get_snapshot):
868         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
869         (webkitWebViewBaseCreate):
870         (webkitWebViewBaseCreateWebPage):
871         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
872         * UIProcess/API/gtk/WebKitWindowProperties.cpp:
873         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
874         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
875         * UIProcess/gtk/WebProcessPoolGtk.cpp: Renamed from Source/WebKit2/UIProcess/gtk/WebContextGtk.cpp.
876         (WebKit::initInspectorServer):
877         (WebKit::WebProcessPool::platformDefaultApplicationCacheDirectory):
878         (WebKit::WebProcessPool::platformInitializeWebProcess):
879         (WebKit::WebProcessPool::platformInvalidateContext):
880         (WebKit::WebProcessPool::platformDefaultWebSQLDatabaseDirectory):
881         (WebKit::WebProcessPool::platformDefaultIndexedDBDatabaseDirectory):
882         (WebKit::WebProcessPool::platformDefaultIconDatabasePath):
883         (WebKit::WebProcessPool::platformDefaultLocalStorageDirectory):
884         (WebKit::WebProcessPool::platformDefaultMediaKeysStorageDirectory):
885         (WebKit::WebProcessPool::platformDefaultDiskCacheDirectory):
886         (WebKit::WebProcessPool::platformDefaultCookieStorageDirectory):
887         (WebKit::WebProcessPool::setIgnoreTLSErrors):
888         * UIProcess/soup/WebProcessPoolSoup.cpp: Renamed from Source/WebKit2/UIProcess/soup/WebContextSoup.cpp.
889         (WebKit::WebProcessPool::platformInitializeNetworkProcess):
890         * WebProcess/InjectedBundle/API/gtk/WebKitWebExtension.cpp:
891         (webkitWebExtensionDidReceiveMessage):
892         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
893         (didInitiateLoadForResource):
894         (willSendRequestForFrame):
895         (didReceiveResponseForResource):
896         (didReceiveContentLengthForResource):
897         (didFinishLoadForResource):
898         (didFailLoadForResource):
899         (webkitWebPageDidReceiveMessage):
900         * WebProcess/InjectedBundle/API/gtk/WebKitWebPagePrivate.h:
901
902 2014-12-23  Dan Bernstein  <mitz@apple.com>
903
904         iOS build fix
905
906         * UIProcess/API/Cocoa/WKProcessGroup.mm:
907         (-[WKProcessGroup _geolocationProvider]):
908
909 2014-12-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
910
911         [EFL][WK2] Fix a lot of build break since r177692 
912         https://bugs.webkit.org/show_bug.cgi?id=139932
913
914         Unreviewed EFL build fix.
915
916         Rename WebContext with WebProcessPool in EFL port files.
917
918         * CMakeLists.txt:
919         * UIProcess/API/efl/EwkView.cpp:
920         * UIProcess/API/efl/ewk_context.cpp:
921         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
922         (TEST_F):
923         * UIProcess/CoordinatedGraphics/WebView.cpp:
924         (WebKit::WebView::WebView):
925         * UIProcess/CoordinatedGraphics/WebView.h:
926         * UIProcess/Network/CustomProtocols/soup/CustomProtocolManagerProxySoup.cpp:
927         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
928         (WebKit::CustomProtocolManagerProxy::startLoading):
929         (WebKit::CustomProtocolManagerProxy::stopLoading):
930         * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.cpp:
931         (WebKit::WebSoupCustomProtocolRequestManager::create):
932         (WebKit::WebSoupCustomProtocolRequestManager::WebSoupCustomProtocolRequestManager):
933         (WebKit::WebSoupCustomProtocolRequestManager::registerSchemeForCustomProtocol):
934         (WebKit::WebSoupCustomProtocolRequestManager::unregisterSchemeForCustomProtocol):
935         (WebKit::WebSoupCustomProtocolRequestManager::didReceiveResponse):
936         (WebKit::WebSoupCustomProtocolRequestManager::didLoadData):
937         (WebKit::WebSoupCustomProtocolRequestManager::didFailWithError):
938         (WebKit::WebSoupCustomProtocolRequestManager::didFinishLoading):
939         * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h:
940         * UIProcess/WebBatteryManagerProxy.cpp:
941         (WebKit::WebBatteryManagerProxy::create):
942         (WebKit::WebBatteryManagerProxy::WebBatteryManagerProxy):
943         (WebKit::WebBatteryManagerProxy::providerDidChangeBatteryStatus):
944         (WebKit::WebBatteryManagerProxy::providerUpdateBatteryStatus):
945         * UIProcess/WebBatteryManagerProxy.h:
946         * UIProcess/WebTextChecker.cpp:
947         (WebKit::updateStateForAllContexts):
948         * UIProcess/WebVibrationProxy.cpp:
949         (WebKit::WebVibrationProxy::WebVibrationProxy):
950         (WebKit::WebVibrationProxy::~WebVibrationProxy):
951         * UIProcess/efl/RequestManagerClientEfl.h:
952         * UIProcess/efl/WebContextEfl.cpp:
953         (WebKit::WebProcessPool::platformDefaultApplicationCacheDirectory):
954         (WebKit::WebProcessPool::platformInitializeWebProcess):
955         (WebKit::WebProcessPool::platformInvalidateContext):
956         (WebKit::WebProcessPool::platformDefaultWebSQLDatabaseDirectory):
957         (WebKit::WebProcessPool::platformDefaultIndexedDBDatabaseDirectory):
958         (WebKit::WebProcessPool::platformDefaultIconDatabasePath):
959         (WebKit::WebProcessPool::platformDefaultLocalStorageDirectory):
960         (WebKit::WebProcessPool::platformDefaultMediaKeysStorageDirectory):
961         (WebKit::WebProcessPool::platformDefaultDiskCacheDirectory):
962         (WebKit::WebProcessPool::platformDefaultCookieStorageDirectory):
963         (WebKit::WebProcessPool::setIgnoreTLSErrors):
964         (WebKit::WebContext::platformDefaultApplicationCacheDirectory): Deleted.
965         (WebKit::WebContext::platformInitializeWebProcess): Deleted.
966         (WebKit::WebContext::platformInvalidateContext): Deleted.
967         (WebKit::WebContext::platformDefaultWebSQLDatabaseDirectory): Deleted.
968         (WebKit::WebContext::platformDefaultIndexedDBDatabaseDirectory): Deleted.
969         (WebKit::WebContext::platformDefaultIconDatabasePath): Deleted.
970         (WebKit::WebContext::platformDefaultLocalStorageDirectory): Deleted.
971         (WebKit::WebContext::platformDefaultMediaKeysStorageDirectory): Deleted.
972         (WebKit::WebContext::platformDefaultDiskCacheDirectory): Deleted.
973         (WebKit::WebContext::platformDefaultCookieStorageDirectory): Deleted.
974         (WebKit::WebContext::setIgnoreTLSErrors): Deleted.
975         * UIProcess/efl/WebInspectorProxyEfl.cpp:
976         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
977         * UIProcess/efl/WebViewEfl.cpp:
978         (WebKit::WebView::create):
979         (WebKit::WebViewEfl::WebViewEfl):
980         * UIProcess/efl/WebViewEfl.h:
981         * UIProcess/soup/WebContextSoup.cpp:
982         (WebKit::WebProcessPool::platformInitializeNetworkProcess):
983         (WebKit::WebContext::platformInitializeNetworkProcess): Deleted.
984         * UIProcess/soup/WebCookieManagerProxySoup.cpp:
985         (WebKit::WebCookieManagerProxy::setCookiePersistentStorage):
986         * UIProcess/soup/WebSoupRequestManagerProxy.h:
987
988 2014-12-23  Sam Weinig  <sam@webkit.org>
989
990         Remove telephone number context support from ContextMenuContextData, it is unused
991         https://bugs.webkit.org/show_bug.cgi?id=139931
992
993         Reviewed by Alexey Proskuryakov.
994
995         m_isTelephoneNumberContext was only ever set to true in the ContextMenuContextData
996         constructor that took a TelephoneNumberContextTag, which never got called. Remove it
997         all.
998
999         * Shared/ContextMenuContextData.cpp:
1000         (WebKit::ContextMenuContextData::ContextMenuContextData):
1001         (WebKit::ContextMenuContextData::encode):
1002         (WebKit::ContextMenuContextData::decode):
1003         * Shared/ContextMenuContextData.h:
1004         (WebKit::ContextMenuContextData::ContextMenuContextData):
1005         (WebKit::ContextMenuContextData::isTelephoneNumberContext): Deleted.
1006         * UIProcess/mac/WebContextMenuProxyMac.mm:
1007         (WebKit::WebContextMenuProxyMac::showContextMenu):
1008
1009 2014-12-23  Sam Weinig  <sam@webkit.org>
1010
1011         Attempt to fix the Mountain Lion build.
1012
1013         * Shared/ContextMenuContextData.h:
1014         (WebKit::ContextMenuContextData::isTelephoneNumberContext):
1015
1016 2014-12-23  Anders Carlsson  <andersca@apple.com>
1017
1018         Handle WKTypeRefWrapper when converting object graphs
1019         https://bugs.webkit.org/show_bug.cgi?id=139927
1020
1021         Reviewed by Tim Horton.
1022
1023         * UIProcess/Cocoa/WebProcessProxyCocoa.mm:
1024         (WebKit::WebProcessProxy::transformHandlesToObjects):
1025         (WebKit::WebProcessProxy::transformObjectsToHandles):
1026         * WebProcess/cocoa/WebProcessCocoa.mm:
1027         (WebKit::WebProcess::transformHandlesToObjects):
1028         (WebKit::WebProcess::transformObjectsToHandles):
1029
1030 2014-12-23  Chris Dumez  <cdumez@apple.com>
1031
1032         [iOS] Log better using FeatureCounter why PageCache is failing due to pruned resources
1033         https://bugs.webkit.org/show_bug.cgi?id=139921
1034         <rdar://problem/19255690>
1035
1036         Reviewed by Gavin Barraclough.
1037
1038         Call PageCache::pruneToCapacityNow() instead of multiple calls to
1039         setCapacity() as it does exactly what we want. Also pass the new
1040         PrunedReason argument so help us do better logging.
1041
1042         * WebProcess/WebProcess.cpp:
1043         (WebKit::WebProcess::releasePageCache):
1044
1045 2014-12-23  Sam Weinig  <sam@webkit.org>
1046
1047         Attempt to fix the iOS build.
1048
1049         * UIProcess/API/Cocoa/WKProcessGroup.mm:
1050         (-[WKProcessGroup _geolocationProvider]):
1051         * UIProcess/API/ios/WKViewIOS.mm:
1052         (-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
1053
1054 2014-12-23  Anders Carlsson  <andersca@apple.com>
1055
1056         Handle coding object graphs in the UI process
1057         https://bugs.webkit.org/show_bug.cgi?id=139925
1058
1059         Reviewed by Sam Weinig.
1060
1061         * UIProcess/Cocoa/WebProcessProxyCocoa.mm: Added.
1062         (WebKit::WebProcessProxy::transformHandlesToObjects):
1063         (WebKit::WebProcessProxy::transformObjectsToHandles):
1064         * UIProcess/WebProcessProxy.cpp:
1065         (WebKit::WebProcessProxy::transformHandlesToObjects):
1066         (WebKit::WebProcessProxy::transformObjectsToHandles):
1067         * UIProcess/WebProcessProxy.h:
1068         * WebKit2.xcodeproj/project.pbxproj:
1069         * WebProcess/WebProcess.cpp:
1070         (WebKit::WebProcess::transformObjectsToHandles):
1071         * WebProcess/WebProcess.h:
1072
1073 2014-12-23  Sam Weinig  <sam@webkit.org>
1074
1075         ContextMenuContextData should store a ShareableBitmap not a ShareableBitmap::Handle
1076         https://bugs.webkit.org/show_bug.cgi?id=139924
1077
1078         Reviewed by Anders Carlsson.
1079
1080         Replaces the ShareableBitmap::Handle in ContextMenuContextData with a RefPtr<ShareableBitmap>.
1081         Removes the now unnecessary override copy-constructor and assignment-operator.
1082
1083         * Shared/ContextMenuContextData.cpp:
1084         (WebKit::ContextMenuContextData::ContextMenuContextData):
1085         (WebKit::ContextMenuContextData::encode):
1086         (WebKit::ContextMenuContextData::decode):
1087         (WebKit::ContextMenuContextData::controlledDataIsEditable):
1088         (WebKit::ContextMenuContextData::operator=): Deleted.
1089         * Shared/ContextMenuContextData.h:
1090         (WebKit::ContextMenuContextData::ContextMenuContextData):
1091         (WebKit::ContextMenuContextData::controlledImage):
1092         (WebKit::ContextMenuContextData::needsServicesMenu):
1093         (WebKit::ContextMenuContextData::controlledImageHandle): Deleted.
1094         * UIProcess/WebPageProxy.cpp:
1095         (WebKit::WebPageProxy::internalShowContextMenu):
1096         * UIProcess/mac/WebContextMenuProxyMac.mm:
1097         (WebKit::WebContextMenuProxyMac::setupServicesMenu):
1098
1099 2014-12-23  Chris Dumez  <cdumez@apple.com>
1100
1101         Unreviewed iOS build fix after 177692.
1102
1103         Missing WebKit:: namespace.
1104
1105         * UIProcess/ios/WKContentView.h:
1106
1107 2014-12-23  Anders Carlsson  <andersca@apple.com>
1108
1109         Fix 32-build.
1110
1111         * WebProcess/cocoa/WebProcessCocoa.mm:
1112         (WebKit::WebProcess::transformHandlesToObjects):
1113         (WebKit::WebProcess::transformObjectsToHandles):
1114
1115 2014-12-23  Timothy Horton  <timothy_horton@apple.com>
1116
1117         Install a TextIndicator for link immediate actions
1118         https://bugs.webkit.org/show_bug.cgi?id=139897
1119         <rdar://problem/19333076>
1120
1121         Reviewed by Anders Carlsson.
1122
1123         * UIProcess/mac/WKImmediateActionController.mm:
1124         (-[WKImmediateActionController _defaultAnimationController]):
1125         Install the link's TextIndicator.
1126
1127         (-[WKImmediateActionController menuItemDidClose:]):
1128         Dismiss the TextIndicator and clean up when the item closes.
1129
1130 2014-12-23  Timothy Horton  <timothy_horton@apple.com>
1131
1132         Expose ElementBoundingBox on WKHitTestResult
1133         https://bugs.webkit.org/show_bug.cgi?id=139895
1134         <rdar://problem/19333075>
1135
1136         Reviewed by Dan Bernstein.
1137
1138         * UIProcess/API/C/WKHitTestResult.cpp:
1139         (WKHitTestResultGetElementBoundingBox):
1140         * UIProcess/API/C/WKHitTestResult.h:
1141         Expose the rect.
1142
1143 2014-12-23  Timothy Horton  <timothy_horton@apple.com>
1144
1145         Remove the custom web page preview code
1146         https://bugs.webkit.org/show_bug.cgi?id=139894
1147         <rdar://problem/19333074>
1148
1149         Reviewed by Dan Bernstein.
1150
1151         * UIProcess/API/Cocoa/WKViewPrivate.h:
1152         * UIProcess/API/mac/WKView.mm:
1153         (-[WKView _dismissContentRelativeChildWindows]):
1154         (-[WKView _viewForPreviewingURL:initialFrameSize:]): Deleted.
1155         (-[WKView _titleForPreviewOfURL:]): Deleted.
1156         (-[WKView _setPreviewTitle:]): Deleted.
1157         (-[WKView _setPreviewLoading:]): Deleted.
1158         (-[WKView _setPreviewOverrideImage:]): Deleted.
1159         (-[WKView _finishPreviewingURL:withPreviewView:]): Deleted.
1160         (-[WKView _handleClickInPreviewView:URL:]): Deleted.
1161         (-[WKView _shouldUseStandardQuickLookPreview]): Deleted.
1162         * UIProcess/mac/WKImmediateActionController.h:
1163         * UIProcess/mac/WKImmediateActionController.mm:
1164         (-[WKImmediateActionController willDestroyView:]):
1165         (-[WKImmediateActionController _clearImmediateActionState]):
1166         (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
1167         (-[WKImmediateActionController _defaultAnimationController]):
1168         (-[WKImmediateActionController hidePreview]): Deleted.
1169         (-[WKImmediateActionController setPreviewTitle:]): Deleted.
1170         (-[WKImmediateActionController setPreviewLoading:]): Deleted.
1171         (-[WKImmediateActionController setPreviewOverrideImage:]): Deleted.
1172         (-[WKImmediateActionController _animationControllerForCustomPreview]): Deleted.
1173         * UIProcess/mac/WKPagePreviewViewController.h: Removed.
1174         * UIProcess/mac/WKPagePreviewViewController.mm: Removed.
1175         * UIProcess/mac/WKPreviewPopoverAnimationController.h: Removed.
1176         * UIProcess/mac/WKPreviewPopoverAnimationController.mm: Removed.
1177         * WebKit2.xcodeproj/project.pbxproj:
1178         Remove all of the custom web page preview code. Clients that want the custom
1179         preview can implement it by overriding the immediate action.
1180
1181 2014-12-23  Anders Carlsson  <andersca@apple.com>
1182
1183         Add WebProcessProxy::transformHandlesToObjects
1184         https://bugs.webkit.org/show_bug.cgi?id=139922
1185
1186         Reviewed by Tim Horton.
1187
1188         This will be used to convert between the handles and their respective UI side objects.
1189
1190         * UIProcess/WebProcessProxy.cpp:
1191         (WebKit::WebProcessProxy::transformHandlesToObjects):
1192         (WebKit::WebProcessProxy::transformObjectsToHandles):
1193         (WebKit::WebProcessProxy::apiObjectByConvertingToHandles): Deleted.
1194         * UIProcess/WebProcessProxy.h:
1195
1196 2014-12-23  Anders Carlsson  <andersca@apple.com>
1197
1198         Add handle transform functions to WebConnection
1199         https://bugs.webkit.org/show_bug.cgi?id=139920
1200
1201         Reviewed by Sam Weinig.
1202
1203         This will be used by the web connection code to convert between objects and their respective handles.
1204
1205         * Shared/WebConnection.h:
1206         * UIProcess/WebConnectionToWebProcess.cpp:
1207         (WebKit::WebConnectionToWebProcess::transformHandlesToObjects):
1208         (WebKit::WebConnectionToWebProcess::transformObjectsToHandles):
1209         * UIProcess/WebConnectionToWebProcess.h:
1210         * WebProcess/WebConnectionToUIProcess.cpp:
1211         (WebKit::WebConnectionToUIProcess::transformHandlesToObjects):
1212         (WebKit::WebConnectionToUIProcess::transformObjectsToHandles):
1213         * WebProcess/WebConnectionToUIProcess.h:
1214
1215 2014-12-23  Sam Weinig  <sam@webkit.org>
1216
1217         Rename ImmutableDictionary to API::Dictionary and merge MutableDictionary into it
1218         https://bugs.webkit.org/show_bug.cgi?id=139917
1219
1220         Reviewed by Anders Carlsson.
1221
1222         - Renames ImmutableDictionary -> API::Dictionary
1223         - Merges MutableDictionary into the new API::Dictionary
1224             (as a result WKDictionaryIsMutable() now always returns true)
1225
1226         * File list elided *
1227
1228 2014-12-23  Anders Carlsson  <andersca@apple.com>
1229
1230         Add WebProcess::transformObjectsToHandles
1231         https://bugs.webkit.org/show_bug.cgi?id=139918
1232
1233         Reviewed by Tim Horton.
1234
1235         This function will be used for transforming bundle objects to their respective handle types
1236         when sending messages to the UI process.
1237
1238         * WebProcess/WebProcess.cpp:
1239         (WebKit::WebProcess::transformHandlesToObjects):
1240         (WebKit::WebProcess::transformObjectsToHandles):
1241         * WebProcess/WebProcess.h:
1242         * WebProcess/cocoa/WebProcessCocoa.mm:
1243         (WebKit::WebProcess::transformHandlesToObjects):
1244         (WebKit::WebProcess::transformObjectsToHandles):
1245
1246 2014-12-23  Anders Carlsson  <andersca@apple.com>
1247
1248         Move dynamic_objc_cast to RetainPtr.h
1249         https://bugs.webkit.org/show_bug.cgi?id=139915
1250
1251         Reviewed by Sam Weinig.
1252
1253         * Shared/mac/ObjCObjectGraph.mm:
1254         (WebKit::dynamic_objc_cast): Deleted.
1255
1256 2014-12-23  Anders Carlsson  <andersca@apple.com>
1257
1258         Add WebProcess::transformHandlesToObjects
1259         https://bugs.webkit.org/show_bug.cgi?id=139913
1260
1261         Reviewed by Tim Horton.
1262
1263         Rename objectGraphByTransformingObjectsToHandles to transformObjectsToHandles and add
1264         transformHandlesToObjects that will try to convert handles to the actual bundle type objects.
1265
1266         * WebProcess/WebProcess.h:
1267         * WebProcess/cocoa/WebProcessCocoa.mm:
1268         (WebKit::WebProcess::transformHandlesToObjects):
1269         (WebKit::WebProcess::transformObjectsToHandles):
1270         (WebKit::WebProcess::objectGraphByTransformingObjectsToHandles): Deleted.
1271
1272 2014-12-23  Anders Carlsson  <andersca@apple.com>
1273
1274         Add WebProcess::objectGraphByTransformingObjectsToHandles
1275         https://bugs.webkit.org/show_bug.cgi?id=139912
1276
1277         Reviewed by Tim Horton.
1278
1279         This will be used to convert Objective-C object graphs containing bundle types to their handle counterparts.
1280
1281         * WebProcess/WebProcess.cpp:
1282         (WebKit::WebProcess::transformHandlesToObjects):
1283         (WebKit::WebProcess::apiObjectByConvertingFromHandles): Deleted.
1284         Rename apiObjectByConvertingFromHandles to transformHandlesToObjects.
1285
1286         * WebProcess/WebProcess.h:
1287         * WebProcess/cocoa/WebProcessCocoa.mm:
1288         (WebKit::WebProcess::objectGraphByTransformingObjectsToHandles):
1289
1290 2014-12-23  Anders Carlsson  <andersca@apple.com>
1291
1292         Fix UserMessage::transform to only call shouldTransform once
1293         https://bugs.webkit.org/show_bug.cgi?id=139911
1294
1295         Reviewed by Sam Weinig.
1296
1297         Also, make it possible for transformers to return null objects and change the transformers
1298         to return the passed in object when there's no need to do a transform.
1299
1300         * Shared/UserData.cpp:
1301         (WebKit::transformGraph):
1302         (WebKit::UserData::transform):
1303         (WebKit::UserData::encode): Deleted.
1304         (WebKit::UserData::decode): Deleted.
1305         * UIProcess/WebProcessProxy.cpp:
1306         (WebKit::WebProcessProxy::apiObjectByConvertingToHandles):
1307         * WebProcess/WebProcess.cpp:
1308         (WebKit::WebProcess::apiObjectByConvertingFromHandles):
1309
1310 2014-12-23  Sam Weinig  <sam@webkit.org>
1311
1312         Rename WebContext to WebProcessPool
1313         https://bugs.webkit.org/show_bug.cgi?id=139909
1314
1315         Rubber-stamped by Anders Carlsson.
1316
1317         - Major renames:
1318             WebContext -> WebProcessPool
1319             WebContextConfiguration -> WebProcessPoolConfiguration
1320             API::ContextConfiguration -> API::ProcessPoolConfiguration
1321
1322         * File list elided *
1323
1324 2014-12-23  Anders Carlsson  <andersca@apple.com>
1325
1326         Only call shouldTransformGraph once per graph
1327         https://bugs.webkit.org/show_bug.cgi?id=139910
1328
1329         Reviewed by Sam Weinig.
1330
1331         Don't call shouldTransformGraph for each node in the object graph. Instead, call it once
1332         and then transform the entire graph if needed.
1333
1334         * Shared/mac/ObjCObjectGraph.h:
1335         * Shared/mac/ObjCObjectGraph.mm:
1336         (WebKit::shouldTransformGraph):
1337         (WebKit::transformGraph):
1338         (WebKit::ObjCObjectGraph::transform):
1339         (WebKit::shouldTransform): Deleted.
1340
1341 2014-12-22  Anders Carlsson  <andersca@apple.com>
1342
1343         Use a Transformer for UserData as well, to avoid always copying arrays and dictionaries
1344         https://bugs.webkit.org/show_bug.cgi?id=139896
1345
1346         Reviewed by Darin Adler.
1347
1348         * Shared/UserData.cpp:
1349         (WebKit::shouldTransform):
1350         (WebKit::UserData::transform):
1351         * Shared/UserData.h:
1352         (WebKit::UserData::Transformer::~Transformer):
1353         * UIProcess/WebProcessProxy.cpp:
1354         (WebKit::WebProcessProxy::apiObjectByConvertingToHandles):
1355         * WebProcess/WebProcess.cpp:
1356         (WebKit::WebProcess::apiObjectByConvertingFromHandles):
1357
1358 2014-12-22  Anders Carlsson  <andersca@apple.com>
1359
1360         Make it possible to transform Objective-C object graphs, replacing certain elements with others
1361         https://bugs.webkit.org/show_bug.cgi?id=139893
1362
1363         Reviewed by Sam Weinig.
1364
1365         * Shared/mac/ObjCObjectGraph.h:
1366         (WebKit::ObjCObjectGraph::Transformer::~Transformer):
1367         * Shared/mac/ObjCObjectGraph.mm:
1368         (WebKit::dynamic_objc_cast):
1369         (WebKit::shouldTransform):
1370         (WebKit::ObjCObjectGraph::transform):
1371
1372 2014-12-22  Jaehun Lim  <ljaehun.lim@samsung.com>
1373
1374         Unreviewed build fix after r177661 and r177662
1375
1376         * CMakeLists.txt: Add APIPageGroupHandle.cpp to the source list.
1377
1378 2014-12-22  Anders Carlsson  <andersca@apple.com>
1379
1380         Convert pages and page groups to their respective handle objects
1381         https://bugs.webkit.org/show_bug.cgi?id=139891
1382
1383         Reviewed by Tim Horton.
1384
1385         * UIProcess/WebProcessProxy.cpp:
1386         (WebKit::WebProcessProxy::apiObjectByConvertingToHandles):
1387         * WebProcess/WebProcess.cpp:
1388         (WebKit::WebProcess::apiObjectByConvertingFromHandles):
1389
1390 2014-12-22  Anders Carlsson  <andersca@apple.com>
1391
1392         Add a bunch of missing header includes in preparation for making toImpl require the complete type
1393         https://bugs.webkit.org/show_bug.cgi?id=139887
1394
1395         Reviewed by Andreas Kling.
1396
1397         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
1398         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1399         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1400         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
1401         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
1402         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp:
1403         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
1404         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
1405         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1406         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
1407         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1408
1409 2014-12-22  Chris Dumez  <cdumez@apple.com>
1410
1411         [iOS] Log using FeatureCounter user-triggered zooming
1412         https://bugs.webkit.org/show_bug.cgi?id=139879
1413         <rdar://problem/19329130>
1414
1415         Reviewed by Benjamin Poulain.
1416
1417         Log using FeatureCounter user-triggered zooming on iOS.
1418
1419         * WebProcess/WebPage/ios/WebPageIOS.mm:
1420         (WebKit::WebPage::willStartUserTriggeredZooming):
1421
1422 2014-12-22  Anders Carlsson  <andersca@apple.com>
1423
1424         Add an API::PageGroupHandle object
1425         https://bugs.webkit.org/show_bug.cgi?id=139881
1426
1427         Reviewed by Sam Weinig.
1428
1429         API::PageGroupHandle won't be exposed to any API, it will only be used to facilitate passing page groups
1430         between the UI and web process inside UserData objects.
1431
1432         * Shared/API/APIObject.h:
1433         * Shared/API/APIPageGroupHandle.cpp: Added.
1434         (API::PageGroupHandle::create):
1435         (API::PageGroupHandle::~PageGroupHandle):
1436         (API::PageGroupHandle::PageGroupHandle):
1437         * Shared/API/APIPageGroupHandle.h: Added.
1438         (API::PageGroupHandle::webPageGroupData):
1439         * Shared/UserData.cpp:
1440         (WebKit::UserData::UserData):
1441         (WebKit::UserData::encode):
1442         (WebKit::UserData::decode):
1443         * Shared/UserData.h:
1444         * UIProcess/WebPageGroup.h:
1445         (WebKit::WebPageGroup::data):
1446         * UIProcess/WebProcessProxy.cpp:
1447         (WebKit::WebProcessProxy::apiObjectByConvertingToHandles):
1448         * WebKit2.xcodeproj/project.pbxproj:
1449
1450 2014-12-22  Daniel Bates  <dabates@apple.com>
1451
1452         Fix the iOS build after <https://trac.webkit.org/changeset/177639>
1453         (https://bugs.webkit.org/show_bug.cgi?id=139866)
1454
1455         Substitute APISecurityOrigin.h for WebSecurityOrigin.h as the latter was renamed to the former.
1456
1457         * UIProcess/ios/WKGeolocationProviderIOS.mm:
1458
1459 2014-12-22  Csaba Osztrogonác  <ossy@webkit.org>
1460
1461         URTBF after r177649.
1462
1463         * CMakeLists.txt:
1464
1465 2014-12-22  Csaba Osztrogonác  <ossy@webkit.org>
1466
1467         Last URTBF after r177639, GTK builds now.
1468
1469         * UIProcess/API/gtk/WebKitJavascriptResult.cpp:
1470         * UIProcess/API/gtk/WebKitUIClient.cpp:
1471         * UIProcess/API/gtk/WebKitUserContentManager.cpp:
1472         * UIProcess/API/gtk/WebKitUserMediaPermissionRequest.cpp:
1473         (webkitUserMediaPermissionRequestCreate):
1474         * UIProcess/API/gtk/WebKitUserMediaPermissionRequestPrivate.h:
1475         * UIProcess/API/gtk/WebKitWebView.cpp:
1476         (webkitWebViewRunJavaScriptCallback):
1477         (webkit_web_view_run_javascript):
1478         (resourcesStreamReadCallback):
1479
1480 2014-12-22  Anders Carlsson  <andersca@apple.com>
1481
1482         Move more API classes from Shared to Shared/API.
1483
1484         Rubber-stamped by Sam Weinig.
1485
1486         * Shared/API/APIArray.cpp: Renamed from Source/WebKit2/Shared/APIArray.cpp.
1487         * Shared/API/APIArray.h: Renamed from Source/WebKit2/Shared/APIArray.h.
1488         * Shared/API/APIClient.h: Renamed from Source/WebKit2/Shared/APIClient.h.
1489         * Shared/API/APIData.cpp: Renamed from Source/WebKit2/Shared/APIData.cpp.
1490         * Shared/API/APIData.h: Renamed from Source/WebKit2/Shared/APIData.h.
1491         * Shared/API/APIError.cpp: Renamed from Source/WebKit2/Shared/APIError.cpp.
1492         * Shared/API/APIError.h: Renamed from Source/WebKit2/Shared/APIError.h.
1493         * Shared/API/APIFrameHandle.cpp: Renamed from Source/WebKit2/Shared/APIFrameHandle.cpp.
1494         * Shared/API/APIFrameHandle.h: Renamed from Source/WebKit2/Shared/APIFrameHandle.h.
1495         * Shared/API/APIGeometry.cpp: Renamed from Source/WebKit2/Shared/APIGeometry.cpp.
1496         * Shared/API/APIGeometry.h: Renamed from Source/WebKit2/Shared/APIGeometry.h.
1497         * Shared/API/APINumber.h: Renamed from Source/WebKit2/Shared/APINumber.h.
1498         * Shared/API/APIObject.cpp: Renamed from Source/WebKit2/Shared/APIObject.cpp.
1499         * Shared/API/APIObject.h: Renamed from Source/WebKit2/Shared/APIObject.h.
1500         * Shared/API/APIPageHandle.cpp: Renamed from Source/WebKit2/Shared/APIPageHandle.cpp.
1501         * Shared/API/APIPageHandle.h: Renamed from Source/WebKit2/Shared/APIPageHandle.h.
1502         * Shared/API/APIString.h: Renamed from Source/WebKit2/Shared/APIString.h.
1503         * Shared/API/APIURL.h: Renamed from Source/WebKit2/Shared/APIURL.h.
1504         * Shared/API/APIURLRequest.cpp: Renamed from Source/WebKit2/Shared/APIURLRequest.cpp.
1505         * Shared/API/APIURLRequest.h: Renamed from Source/WebKit2/Shared/APIURLRequest.h.
1506         * Shared/API/APIURLResponse.cpp: Renamed from Source/WebKit2/Shared/APIURLResponse.cpp.
1507         * Shared/API/APIURLResponse.h: Renamed from Source/WebKit2/Shared/APIURLResponse.h.
1508
1509 2014-12-22  Csaba Osztrogonác  <ossy@webkit.org>
1510
1511         One more URTBF after r177639 to try to make GTK happy.
1512
1513         * UIProcess/API/gtk/WebKitUserContentManager.cpp:
1514
1515 2014-12-22  Csaba Osztrogonác  <ossy@webkit.org>
1516
1517         URTBF after r177639 to try to make GTK happy.
1518
1519         * UIProcess/API/gtk/WebKitJavascriptResult.cpp:
1520
1521 2014-12-22  Anders Carlsson  <andersca@apple.com>
1522
1523         Rename a bunch of API classes and move them to Shared/API
1524         https://bugs.webkit.org/show_bug.cgi?id=139866
1525
1526         Reviewed by Sam Weinig.
1527
1528         * Shared/API/APISecurityOrigin.h: Renamed from Source/WebKit2/Shared/WebSecurityOrigin.h.
1529         (API::SecurityOrigin::createFromString):
1530         (API::SecurityOrigin::create):
1531         (API::SecurityOrigin::securityOrigin):
1532         (API::SecurityOrigin::SecurityOrigin):
1533         * Shared/API/APISerializedScriptValue.h: Renamed from Source/WebKit2/Shared/WebSerializedScriptValue.h.
1534         (API::SerializedScriptValue::create):
1535         (API::SerializedScriptValue::adopt):
1536         (API::SerializedScriptValue::deserialize):
1537         (API::SerializedScriptValue::dataReference):
1538         (API::SerializedScriptValue::internalRepresentation):
1539         (API::SerializedScriptValue::SerializedScriptValue):
1540         * Shared/API/APIUserContentURLPattern.h: Renamed from Source/WebKit2/Shared/WebUserContentURLPattern.h.
1541         (API::UserContentURLPattern::create):
1542         (API::UserContentURLPattern::host):
1543         (API::UserContentURLPattern::scheme):
1544         (API::UserContentURLPattern::isValid):
1545         (API::UserContentURLPattern::matchesURL):
1546         (API::UserContentURLPattern::matchesSubdomains):
1547         (API::UserContentURLPattern::patternString):
1548         (API::UserContentURLPattern::UserContentURLPattern):
1549         * Shared/API/c/WKSecurityOrigin.cpp:
1550         (WKSecurityOriginGetTypeID):
1551         (WKSecurityOriginCreateFromString):
1552         (WKSecurityOriginCreateFromDatabaseIdentifier):
1553         (WKSecurityOriginCreate):
1554         * Shared/API/c/WKSerializedScriptValue.cpp:
1555         (WKSerializedScriptValueGetTypeID):
1556         (WKSerializedScriptValueCreate):
1557         (WKSerializedScriptValueCreateWithInternalRepresentation):
1558         * Shared/API/c/WKSharedAPICast.h:
1559         (WebKit::toCopiedAPI):
1560         * Shared/API/c/WKUserContentURLPattern.cpp:
1561         (WKUserContentURLPatternGetTypeID):
1562         (WKUserContentURLPatternCreate):
1563         * Shared/SecurityOriginData.cpp:
1564         (WebKit::performAPICallbackWithSecurityOriginDataVector):
1565         * Shared/UserData.cpp:
1566         (WebKit::UserData::encode):
1567         (WebKit::UserData::decode):
1568         * Shared/UserMessageCoders.h:
1569         (WebKit::UserMessageEncoder::baseEncode):
1570         (WebKit::UserMessageDecoder::baseDecode):
1571         * UIProcess/API/APIUIClient.h:
1572         (API::UIClient::exceededDatabaseQuota):
1573         (API::UIClient::decidePolicyForGeolocationPermissionRequest):
1574         (API::UIClient::decidePolicyForUserMediaPermissionRequest):
1575         (API::UIClient::decidePolicyForNotificationPermissionRequest):
1576         * UIProcess/API/C/WKNotification.cpp:
1577         * UIProcess/API/C/WKPage.cpp:
1578         (WKPageSetPageUIClient):
1579         * UIProcess/API/Cocoa/WKWebView.mm:
1580         (-[WKWebView evaluateJavaScript:completionHandler:]):
1581         * UIProcess/Cocoa/UIDelegate.h:
1582         * UIProcess/Cocoa/UIDelegate.mm:
1583         (WebKit::UIDelegate::UIClient::exceededDatabaseQuota):
1584         * UIProcess/GenericCallback.h:
1585         * UIProcess/Notifications/WebNotification.cpp:
1586         (WebKit::WebNotification::WebNotification):
1587         * UIProcess/Notifications/WebNotification.h:
1588         (WebKit::WebNotification::origin):
1589         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1590         (WebKit::WebNotificationManagerProxy::providerDidUpdateNotificationPolicy):
1591         (WebKit::WebNotificationManagerProxy::providerDidRemoveNotificationPolicies):
1592         * UIProcess/Notifications/WebNotificationManagerProxy.h:
1593         * UIProcess/Notifications/WebNotificationProvider.cpp:
1594         * UIProcess/Notifications/WebNotificationProvider.h:
1595         * UIProcess/PageClient.h:
1596         (WebKit::PageClient::decidePolicyForGeolocationPermissionRequest):
1597         * UIProcess/WebApplicationCacheManagerProxy.cpp:
1598         (WebKit::WebApplicationCacheManagerProxy::deleteEntriesForOrigin):
1599         * UIProcess/WebApplicationCacheManagerProxy.h:
1600         * UIProcess/WebCookieManagerProxy.cpp:
1601         * UIProcess/WebDatabaseManagerProxy.cpp:
1602         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
1603         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
1604         (WebKit::WebDatabaseManagerProxy::deleteDatabaseWithNameForOrigin):
1605         (WebKit::WebDatabaseManagerProxy::deleteDatabasesForOrigin):
1606         (WebKit::WebDatabaseManagerProxy::setQuotaForOrigin):
1607         (WebKit::WebDatabaseManagerProxy::didModifyOrigin):
1608         (WebKit::WebDatabaseManagerProxy::didModifyDatabase):
1609         * UIProcess/WebDatabaseManagerProxy.h:
1610         * UIProcess/WebDatabaseManagerProxyClient.cpp:
1611         (WebKit::WebDatabaseManagerProxyClient::didModifyOrigin):
1612         (WebKit::WebDatabaseManagerProxyClient::didModifyDatabase):
1613         * UIProcess/WebDatabaseManagerProxyClient.h:
1614         * UIProcess/WebKeyValueStorageManager.cpp:
1615         (WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
1616         (WebKit::WebKeyValueStorageManager::getStorageDetailsByOrigin):
1617         (WebKit::WebKeyValueStorageManager::deleteEntriesForOrigin):
1618         * UIProcess/WebKeyValueStorageManager.h:
1619         * UIProcess/WebMediaCacheManagerProxy.cpp:
1620         * UIProcess/WebOriginDataManagerProxy.cpp:
1621         (WebKit::WebOriginDataManagerProxy::didGetOrigins):
1622         (WebKit::WebOriginDataManagerProxy::deleteEntriesForOrigin):
1623         * UIProcess/WebOriginDataManagerProxy.h:
1624         * UIProcess/WebPageProxy.cpp:
1625         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
1626         (WebKit::WebPageProxy::scriptValueCallback):
1627         (WebKit::WebPageProxy::exceededDatabaseQuota):
1628         (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
1629         (WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
1630         (WebKit::WebPageProxy::requestNotificationPermission):
1631         * UIProcess/WebPageProxy.h:
1632         * UIProcess/WebResourceCacheManagerProxy.cpp:
1633         (WebKit::WebResourceCacheManagerProxy::clearCacheForOrigin):
1634         * UIProcess/WebResourceCacheManagerProxy.h:
1635         * UIProcess/ios/PageClientImplIOS.h:
1636         * UIProcess/ios/PageClientImplIOS.mm:
1637         (WebKit::PageClientImpl::decidePolicyForGeolocationPermissionRequest):
1638         * UIProcess/ios/WKContentView.h:
1639         * WebKit2.xcodeproj/project.pbxproj:
1640         * WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
1641         (API::InjectedBundle::PageUIClient::didReachApplicationCacheOriginQuota):
1642         (API::InjectedBundle::PageUIClient::didExceedDatabaseQuota):
1643         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1644         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1645         (WebKit::InjectedBundlePageUIClient::didReachApplicationCacheOriginQuota):
1646         (WebKit::InjectedBundlePageUIClient::didExceedDatabaseQuota):
1647         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
1648         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1649         (WebKit::WebChromeClient::exceededDatabaseQuota):
1650         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
1651
1652 2014-12-21  Sam Weinig  <sam@webkit.org>
1653
1654         Allow the WebContext's history client to coexist with WKWebView's history delegate
1655         https://bugs.webkit.org/show_bug.cgi?id=139857
1656
1657         Reviewed by Anders Carlsson.
1658
1659         - Renames API::HistoryClient to API::LegacyContextHistoryClient to make it clear what it is for.
1660         - Re-routes the history client functions from the WebProcessProxy to the WebPageProxy.
1661         - Add history client functions to API::LoaderClient and implement them for NavigationState's 
1662           LoaderClient subclass. Removes the need for WKProcessPool to have to setup a history client and
1663           forward to the NavigationState.
1664
1665         * UIProcess/API/APIHistoryClient.h: Removed.
1666         * UIProcess/API/APILegacyContextHistoryClient.h: Copied from Source/WebKit2/UIProcess/API/APIHistoryClient.h.
1667         (API::LegacyContextHistoryClient::~LegacyContextHistoryClient):
1668         (API::LegacyContextHistoryClient::didNavigateWithNavigationData):
1669         (API::LegacyContextHistoryClient::didPerformClientRedirect):
1670         (API::LegacyContextHistoryClient::didPerformServerRedirect):
1671         (API::LegacyContextHistoryClient::didUpdateHistoryTitle):
1672         (API::LegacyContextHistoryClient::populateVisitedLinks):
1673         (API::HistoryClient::~HistoryClient): Deleted.
1674         (API::HistoryClient::didNavigateWithNavigationData): Deleted.
1675         (API::HistoryClient::didPerformClientRedirect): Deleted.
1676         (API::HistoryClient::didPerformServerRedirect): Deleted.
1677         (API::HistoryClient::didUpdateHistoryTitle): Deleted.
1678         (API::HistoryClient::populateVisitedLinks): Deleted.
1679         * UIProcess/API/APILoaderClient.h:
1680         (API::LoaderClient::didNavigateWithNavigationData):
1681         (API::LoaderClient::didPerformClientRedirect):
1682         (API::LoaderClient::didPerformServerRedirect):
1683         (API::LoaderClient::didUpdateHistoryTitle):
1684         * UIProcess/API/C/WKContext.cpp:
1685         (WKContextSetHistoryClient):
1686         * UIProcess/API/Cocoa/WKProcessPool.mm:
1687         (-[WKProcessPool _initWithConfiguration:]):
1688         * UIProcess/API/mac/WKView.mm:
1689         * UIProcess/Cocoa/HistoryClient.h: Removed.
1690         * UIProcess/Cocoa/HistoryClient.mm: Removed.
1691         * UIProcess/Cocoa/NavigationState.h:
1692         * UIProcess/Cocoa/NavigationState.mm:
1693         (WebKit::NavigationState::LoaderClient::didNavigateWithNavigationData):
1694         (WebKit::NavigationState::LoaderClient::didPerformClientRedirect):
1695         (WebKit::NavigationState::LoaderClient::didPerformServerRedirect):
1696         (WebKit::NavigationState::LoaderClient::didUpdateHistoryTitle):
1697         (WebKit::NavigationState::didNavigateWithNavigationData): Deleted.
1698         (WebKit::NavigationState::didPerformClientRedirect): Deleted.
1699         (WebKit::NavigationState::didPerformServerRedirect): Deleted.
1700         (WebKit::NavigationState::didUpdateHistoryTitle): Deleted.
1701         * UIProcess/WebContext.cpp:
1702         (WebKit::WebContext::WebContext):
1703         (WebKit::WebContext::setHistoryClient):
1704         (WebKit::WebContext::populateVisitedLinks):
1705         * UIProcess/WebContext.h:
1706         (WebKit::WebContext::historyClient):
1707         * UIProcess/WebPageProxy.cpp:
1708         (WebKit::WebPageProxy::didNavigateWithNavigationData):
1709         (WebKit::WebPageProxy::didPerformClientRedirect):
1710         (WebKit::WebPageProxy::didPerformServerRedirect):
1711         (WebKit::WebPageProxy::didUpdateHistoryTitle):
1712         * UIProcess/WebPageProxy.h:
1713         * UIProcess/WebPageProxy.messages.in:
1714         * UIProcess/WebProcessProxy.cpp:
1715         (WebKit::WebProcessProxy::didNavigateWithNavigationData): Deleted.
1716         (WebKit::WebProcessProxy::didPerformClientRedirect): Deleted.
1717         (WebKit::WebProcessProxy::didPerformServerRedirect): Deleted.
1718         (WebKit::WebProcessProxy::didUpdateHistoryTitle): Deleted.
1719         * UIProcess/WebProcessProxy.h:
1720         * UIProcess/WebProcessProxy.messages.in:
1721         * WebKit2.xcodeproj/project.pbxproj:
1722         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1723         (WebKit::WebFrameLoaderClient::updateGlobalHistory):
1724         (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
1725         (WebKit::WebFrameLoaderClient::setTitle):
1726
1727 2014-12-22  Michael Catanzaro  <mcatanzaro@igalia.com>
1728
1729         [GTK] another outdated comment
1730         https://bugs.webkit.org/show_bug.cgi?id=139863
1731
1732         Reviewed by Darin Adler.
1733
1734         Remove outdated comment. We nowadays block untrusted connections by
1735         default.
1736
1737         * WebProcess/gtk/WebProcessMainGtk.cpp:
1738
1739 2014-12-21  Eric Carlson  <eric.carlson@apple.com>
1740
1741         [iOS] avoid WebVideoFullscreenManager crash
1742         https://bugs.webkit.org/show_bug.cgi?id=139852
1743         <rdar://problem/19319302>
1744
1745         Reviewed by Darin Adler.
1746
1747         * WebProcess/ios/WebVideoFullscreenManager.mm:
1748         (WebKit::WebVideoFullscreenManager::didExitFullscreen): NULL-check m_layerHostingContext and m_page.
1749         (WebKit::WebVideoFullscreenManager::setVideoLayerFrameFenced): NULL-check m_layerHostingContext.
1750
1751 2014-12-21  David Kilzer  <ddkilzer@apple.com>
1752
1753         Fix WebKit2 build with newer clang compiler
1754
1755         Fixes the following build error:
1756
1757             In file included from DerivedSources/WebKit2/WebVideoFullscreenManagerProxyMessageReceiver.cpp:32:
1758             Source/WebKit2/Platform/IPC/HandleMessage.h:16:25: error: non-const lvalue reference to type 'Vector<[3 * ...]>' cannot bind to a temporary of type 'Vector<[3 * ...]>'
1759                 (object->*function)(std::get<ArgsIndex>(std::forward<ArgsTuple>(args))...);
1760                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1761             Source/WebKit2/Platform/IPC/HandleMessage.h:22:5: note: in instantiation of function template specialization 'IPC::callMemberFunctionImpl<WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(WTF::Vector<std::__1::pair<double, double>, 0, WTF::CrashOnOverflow> &), std::__1::tuple<WTF::Vector<std::__1::pair<double, double>, 0, WTF::CrashOnOverflow> >, 0>' requested here
1762                 callMemberFunctionImpl(object, function, std::forward<ArgsTuple>(args), ArgsIndicies());
1763                 ^
1764             Source/WebKit2/Platform/IPC/HandleMessage.h:120:5: note: in instantiation of function template specialization 'IPC::callMemberFunction<WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(WTF::Vector<std::__1::pair<double, double>, 0, WTF::CrashOnOverflow> &), std::__1::tuple<WTF::Vector<std::__1::pair<double, double>, 0, WTF::CrashOnOverflow> >, std::make_index_sequence<1> >' requested here
1765                 callMemberFunction(WTF::move(arguments), object, function);
1766                 ^
1767             DerivedSources/WebKit2/WebVideoFullscreenManagerProxyMessageReceiver.cpp:55:14: note: in instantiation of function template specialization 'IPC::handleMessage<Messages::WebVideoFullscreenManagerProxy::SetSeekableRangesVector, WebKit::WebVideoFullscreenManagerProxy, void (WebKit::WebVideoFullscreenManagerProxy::*)(WTF::Vector<std::__1::pair<double, double>, 0, WTF::CrashOnOverflow> &)>' requested here
1768                     IPC::handleMessage<Messages::WebVideoFullscreenManagerProxy::SetSeekableRangesVector>(decoder, this, &WebVideoFullscreenManagerProxy::setSeekableRangesVector);
1769                          ^
1770
1771         * UIProcess/ios/WebVideoFullscreenManagerProxy.h:
1772         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1773         (WebKit::WebVideoFullscreenManagerProxy::setSeekableRangesVector):
1774         Make Vector<std::pair<double, double>>& argument const because a
1775         temporary is not allowed to bind to a non-const reference.
1776
1777 2014-12-20  Eric Carlson  <eric.carlson@apple.com>
1778
1779         [iOS] add optimized fullscreen API
1780         https://bugs.webkit.org/show_bug.cgi?id=139833
1781         <rdar://problem/18844486>
1782
1783         Reviewed by Simon Fraser.
1784
1785         * Configurations/FeatureDefines.xcconfig: Add ENABLE_VIDEO_PRESENTATION_MODE.
1786
1787 2014-12-20  David Kilzer  <ddkilzer@apple.com>
1788
1789         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
1790         <http://webkit.org/b/139463>
1791
1792         Reviewed by Mark Rowe.
1793
1794         * Configurations/All.xcconfig:
1795         - Only set EXCLUDED_SOURCE_FILE_NAMES on iOS.
1796         * Configurations/Base.xcconfig:
1797         - Only set FRAMEWORK_CONTENT_DIRECTORY, GCC_ENABLE_OBJC_GC and
1798           TOOLCHAINS on OS X.
1799         * Configurations/BaseLegacyProcess.xcconfig:
1800         - Only set SKIP_INSTALL on iOS.
1801         * Configurations/BaseTarget.xcconfig:
1802         - Set WEBKIT_FRAMEWORKS_DIR and UMBRELLA_FRAMEWORKS_DIR based on
1803           SDK, and simply them.
1804         * Configurations/BaseXPCService.xcconfig:
1805         - Set INSTALL_PATH_ACTUAL_Normal based on SDK.
1806         * Configurations/DebugRelease.xcconfig:
1807         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
1808         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
1809         * Configurations/NetworkProcess.xcconfig:
1810         - Only set EXCLUDED_SHIM_FILE_NAME and CODE_SIGN_ENTITLEMENTS on
1811           iOS.
1812         * Configurations/NetworkService.Development.xcconfig:
1813         - Set INFOPLIST_FILE based on SDK.
1814         - Simplify CODE_SIGN_ENTITLEMENTS for iOS.
1815         * Configurations/NetworkService.xcconfig:
1816         - Set INFOPLIST_FILE based on SDK.
1817         - Simplify CODE_SIGN_ENTITLEMENTS for iOS.
1818         * Configurations/PluginProcess.xcconfig:
1819         - Only set EXCLUDED_SHIM_FILE_NAME and SKIP_INSTALL on iOS.
1820         * Configurations/PluginProcessShim.xcconfig:
1821         - Set OTHER_LDFLAGS based on SDK.
1822         * Configurations/PluginService.32.xcconfig:
1823         - Only set VALID_ARCHS on OS X.
1824         - Set OTHER_LDFLAGS based on platform-specific values.
1825         - Only set SKIP_INSTALL on iOS.
1826         * Configurations/PluginService.64.xcconfig:
1827         - Set ARCHS based on SDK.
1828         - Set OTHER_LDFLAGS based on platform-specific values.
1829         - Only set SKIP_INSTALL on iOS.
1830         * Configurations/PluginService.Development.xcconfig:
1831         - Only set SKIP_INSTALL on iOS.
1832         - Set OTHER_LDFLAGS based on platform-specific values.
1833         * Configurations/SecItemShim.xcconfig:
1834         - Set OTHER_LDFLAGS based on platform-specific values.
1835         * Configurations/Version.xcconfig:
1836         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
1837         * Configurations/WebContentProcess.xcconfig:
1838         - Only set EXCLUDED_SHIM_FILE_NAME on iOS.
1839         - Only set CODE_SIGN_ENTITLEMENTS on iOS Simulator.
1840         * Configurations/WebContentService.Development.xcconfig:
1841         - Set INFOPLIST_FILE and BUNDLE_LOCALIZATION_KEY based on SDK.
1842         - Only set CODE_SIGN_ENTITLEMENTS on iOS hardware.
1843         - Set OTHER_LDFLAGS based on platform-specific values.
1844         * Configurations/WebContentService.xcconfig: Ditto.
1845         * Configurations/WebKit.xcconfig:
1846         - Set FRAMEWORK_AND_LIBRARY_LDFLAGS, SECTORDER_FLAGS, and
1847           WK_API_AVAILABILITY_ENABLED based on SDK.
1848         - Set OTHER_LDFLAGS based on platform-specific values.
1849         - Only set EXCLUDED_SOURCE_FILE_NAMES on iOS.
1850         * Configurations/WebKit2.xcconfig:
1851         - Set INSTALL_PATH, INSTALL_PATH_ACTUAL, DYLIB_INSTALL_NAME_BASE,
1852           NORMAL_WEBKIT2_FRAMEWORKS_DIR, WEBKIT2_FRAMEWORKS_DIR and
1853           NORMAL_PRODUCTION_FRAMEWORKS_DIR based on SDK.
1854         - Set SKIP_INSTALL on iOS.
1855         * Configurations/WebProcessShim.xcconfig:
1856         - Set OTHER_LDFLAGS based on platform-specific values.
1857
1858 2014-12-19  Jessie Berlin  <jberlin@webkit.org>
1859
1860         Build fix.
1861
1862         * UIProcess/mac/WebInspectorProxyMac.mm:
1863
1864 2014-12-19  Jessie Berlin  <jberlin@webkit.org>
1865
1866         Simplify the build fixes from r177615 and r177617.
1867
1868         Rubber-stamped by Dan Bernstein.
1869
1870         * UIProcess/mac/WebInspectorProxyMac.mm:
1871
1872 2014-12-19  Jessie Berlin  <jberlin@webkit.org>
1873
1874         Another attempt at a speculative build fix.
1875
1876         * UIProcess/mac/WebInspectorProxyMac.mm:
1877
1878 2014-12-19  Jessie Berlin  <jberlin@webkit.org>
1879
1880         Speculative build fix after r177610.
1881
1882         * UIProcess/mac/WebInspectorProxyMac.mm:
1883
1884 2014-12-19  Chris Dumez  <cdumez@apple.com>
1885
1886         [iOS] Add didEnterFullscreen / didExitFullscreen callbacks to WKUIDelegatePrivate
1887         https://bugs.webkit.org/show_bug.cgi?id=139835
1888         <rdar://problem/19312042>
1889
1890         Reviewed by Anders Carlsson.
1891
1892         Add didEnterFullscreen / didExitFullscreen callbacks to WKUIDelegatePrivate
1893         so that they can be implemented in MobileSafari.
1894
1895         * UIProcess/API/APIUIClient.h:
1896         (API::UIClient::didEnterFullscreen):
1897         (API::UIClient::didExitFullscreen):
1898         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
1899         * UIProcess/Cocoa/UIDelegate.h:
1900         * UIProcess/Cocoa/UIDelegate.mm:
1901         (WebKit::UIDelegate::setDelegate):
1902         (WebKit::UIDelegate::UIClient::didEnterFullscreen):
1903         (WebKit::UIDelegate::UIClient::didExitFullscreen):
1904         * UIProcess/WebPageProxy.cpp:
1905         (WebKit::WebPageProxy::didEnterFullscreen):
1906         (WebKit::WebPageProxy::didExitFullscreen):
1907         * UIProcess/WebPageProxy.h:
1908         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1909         (WebKit::WebVideoFullscreenManagerProxy::didExitFullscreen):
1910         (WebKit::WebVideoFullscreenManagerProxy::didEnterFullscreen):
1911
1912 2014-12-19  Joseph Pecoraro  <pecoraro@apple.com>
1913
1914         Web Inspector: Inspector does not reopen correctly after Inspector Process crashes
1915         https://bugs.webkit.org/show_bug.cgi?id=139838
1916
1917         Reviewed by Timothy Hatcher.
1918
1919         When the WebContentProcess holding the Inspector Frontend crashes, we
1920         would properly tear down the inspector objects. However, the next time
1921         the inspector is opened, when creating the new page in the Inspector
1922         Page Group, a WebPageProxy is created with a Terminated WebProcessProxy.
1923
1924         That Terminated WebProcessProxy is automatically replaced with the next
1925         load request is given. The newly created process was missing the
1926         message listeners and assumed URL access settings that the
1927         WebInspectorProxy had set on the old process.
1928
1929         So, WebInspectorProxy now listens for and resets the process properties
1930         when the inspector process is recreated.
1931
1932         * UIProcess/WebInspectorProxy.h:
1933         * UIProcess/WebInspectorProxy.cpp:
1934         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
1935         Reset process properties when the process is relaunched.
1936
1937         (WebKit::WebInspectorProxy::createInspectorPage):
1938         (WebKit::WebInspectorProxy::didClose):
1939         Save connection identifier if we need to establish connections later.
1940
1941         * UIProcess/mac/WebInspectorProxyMac.mm:
1942         (-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]):
1943         (-[WKWebInspectorWKView _didRelaunchProcess]):
1944         (WebKit::WebInspectorProxy::closeTimerFired):
1945         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1946         Send WebInspectorProxy a message when the process underlying the
1947         WKView is relaunched.
1948
1949 2014-12-19  Anders Carlsson  <andersca@apple.com>
1950
1951         Get rid of the hardcoded set of structs in the message generation script
1952         https://bugs.webkit.org/show_bug.cgi?id=139844
1953
1954         Reviewed by Tim Horton.
1955
1956         Instead, make it possible to use 'struct' in front of the type name to declare that the type is a struct.
1957
1958         * DatabaseProcess/DatabaseProcess.messages.in:
1959         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
1960         * NetworkProcess/NetworkProcess.messages.in:
1961         * PluginProcess/PluginProcess.messages.in:
1962         * PluginProcess/WebProcessConnection.messages.in:
1963         * Scripts/webkit/messages.py:
1964         (struct_or_class):
1965         (forward_declarations_for_namespace):
1966         (forward_declarations_and_headers):
1967         * Scripts/webkit/model.py:
1968         (Parameter.__init__):
1969         * Scripts/webkit/parser.py:
1970         (parse_parameters_string):
1971         * UIProcess/Storage/StorageManager.messages.in:
1972         * UIProcess/WebContext.messages.in:
1973         * UIProcess/WebPageProxy.messages.in:
1974         * UIProcess/WebProcessProxy.messages.in:
1975         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1976         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
1977         * WebProcess/OriginData/WebOriginDataManager.messages.in:
1978         * WebProcess/ResourceCache/WebResourceCacheManager.messages.in:
1979         * WebProcess/WebPage/DrawingArea.messages.in:
1980         * WebProcess/WebPage/WebPage.messages.in:
1981         * WebProcess/WebProcess.messages.in:
1982
1983 2014-12-19  Timothy Horton  <timothy_horton@apple.com>
1984
1985         Fix the build.
1986
1987         * UIProcess/API/mac/WKView.mm:
1988         (-[WKView _setIgnoresNonWheelEvents:]):
1989
1990 2014-12-19  Beth Dakin  <bdakin@apple.com>
1991
1992         Preview popovers don't show an arrow for large links
1993         https://bugs.webkit.org/show_bug.cgi?id=139842
1994         -and corresponding-
1995         <rdar://problem/19301470>
1996
1997         Reviewed by Tim Horton.
1998
1999         This patch addresses the case where the link is so large that there is no 
2000         available space on any side once you factor in screen padding. In that case, we 
2001         should give up early on not obscuring the link.
2002         * UIProcess/mac/WKPreviewPopoverAnimationController.mm:
2003         (-[WKPreviewPopoverAnimationController _targetSizeForPagePreview]):
2004         (-[WKPreviewPopoverAnimationController _effectivePaddingWithPreviewPadding:]):
2005         (-[WKPreviewPopoverAnimationController _maxSpaceAvailableOnYEdgeForOriginRect:withScreenRect:previewPadding:]):
2006         (-[WKPreviewPopoverAnimationController _maxSpaceAvailableOnXEdgeForOriginRect:withScreenRect:previewPadding:]):
2007         (-[WKPreviewPopoverAnimationController _preferredPopoverSizeWithPreviewPadding:forTargetSize:]):
2008
2009 2014-12-19  Timothy Horton  <timothy_horton@apple.com>
2010
2011         WKView's ignoresNonWheelEvents should ignore immediate actions
2012         https://bugs.webkit.org/show_bug.cgi?id=139839
2013         <rdar://problem/19312111>
2014
2015         Reviewed by Anders Carlsson.
2016
2017         * UIProcess/API/mac/WKView.mm:
2018         (-[WKView initWithFrame:context:configuration:webView:]):
2019         (-[WKView _setIgnoresNonWheelEvents:]):
2020         Install/uninstall the immediate action gesture recognizer when
2021         toggling ignoresNonWheelEvents.
2022
2023 2014-12-19  Csaba Osztrogonác  <ossy@webkit.org>
2024
2025         URTBF after r177593.
2026
2027         * PluginProcess/PluginProcess.h:
2028         * PluginProcess/unix/PluginProcessUnix.cpp:
2029         (WebKit::PluginProcess::platformInitializePluginProcess):
2030         * Shared/WebProcessCreationParameters.h:
2031         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
2032         * WebProcess/WebProcess.h:
2033         * WebProcess/soup/WebProcessSoup.cpp:
2034         (WebKit::WebProcess::platformInitializeWebProcess):
2035
2036 2014-12-19  Anders Carlsson  <andersca@apple.com>
2037
2038         Use WebCore::MachSendRights for the compositing render server port
2039         https://bugs.webkit.org/show_bug.cgi?id=139834
2040
2041         Reviewed by Tim Horton.
2042
2043         * Platform/IPC/HandleMessage.h:
2044         (IPC::callMemberFunctionImpl):
2045         * Platform/mac/LayerHostingContext.h:
2046         * Platform/mac/LayerHostingContext.mm:
2047         (WebKit::LayerHostingContext::createForPort):
2048         * PluginProcess/PluginControllerProxy.h:
2049         * PluginProcess/PluginProcess.cpp:
2050         (WebKit::PluginProcess::PluginProcess):
2051         (WebKit::PluginProcess::initializePluginProcess):
2052         * PluginProcess/PluginProcess.h:
2053         (WebKit::PluginProcess::compositingRenderServerPort):
2054         * PluginProcess/mac/PluginControllerProxyMac.mm:
2055         (WebKit::PluginControllerProxy::compositingRenderServerPort):
2056         * PluginProcess/mac/PluginProcessMac.mm:
2057         (WebKit::PluginProcess::platformInitializePluginProcess):
2058         * Shared/Plugins/PluginProcessCreationParameters.cpp:
2059         * Shared/Plugins/PluginProcessCreationParameters.h:
2060         * Shared/WebCoreArgumentCoders.h:
2061         * Shared/WebProcessCreationParameters.h:
2062         * Shared/mac/WebCoreArgumentCodersMac.mm:
2063         (IPC::ArgumentCoder<MachSendRight>::encode):
2064         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2065         (WebKit::PluginProcessProxy::platformInitializePluginProcess):
2066         * UIProcess/mac/WebContextMac.mm:
2067         (WebKit::WebContext::platformInitializeWebProcess):
2068         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
2069         (WebKit::NPN_GetValue):
2070         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2071         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2072         (WebKit::NetscapePlugin::compositingRenderServerPort):
2073         (WebKit::NetscapePlugin::setLayerHostingMode):
2074         * WebProcess/Plugins/PluginController.h:
2075         * WebProcess/Plugins/PluginView.cpp:
2076         (WebKit::PluginView::compositingRenderServerPort):
2077         * WebProcess/Plugins/PluginView.h:
2078         * WebProcess/WebProcess.cpp:
2079         (WebKit::WebProcess::WebProcess):
2080         (WebKit::WebProcess::initializeWebProcess):
2081         * WebProcess/WebProcess.h:
2082         (WebKit::WebProcess::compositingRenderServerPort):
2083         * WebProcess/cocoa/WebProcessCocoa.mm:
2084         (WebKit::WebProcess::platformInitializeWebProcess):
2085
2086 2014-12-19  Andreas Kling  <akling@apple.com>
2087
2088         Ref-ify TextIterator API.
2089         <https://webkit.org/b/139823>
2090
2091         Reviewed by Antti Koivisto.
2092
2093         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.mm:
2094         (-[WKDOMTextIterator currentRange]):
2095
2096 2014-12-19  Commit Queue  <commit-queue@webkit.org>
2097
2098         Unreviewed, rolling out r177574.
2099         https://bugs.webkit.org/show_bug.cgi?id=139821
2100
2101         "Broke Production builds by installing
2102         libWebCoreTestSupport.dylib in the wrong directory" (Requested
2103         by ddkilzer on #webkit).
2104
2105         Reverted changeset:
2106
2107         "Switch from using PLATFORM_NAME to SDK selectors in WebCore,
2108         WebInspectorUI, WebKit, WebKit2"
2109         https://bugs.webkit.org/show_bug.cgi?id=139463
2110         http://trac.webkit.org/changeset/177574
2111
2112 2014-12-19  David Kilzer  <ddkilzer@apple.com>
2113
2114         Switch from using PLATFORM_NAME to SDK selectors in WebCore, WebInspectorUI, WebKit, WebKit2
2115         <http://webkit.org/b/139463>
2116
2117         Reviewed by Mark Rowe.
2118
2119         * Configurations/All.xcconfig:
2120         - Only set EXCLUDED_SOURCE_FILE_NAMES on iOS.
2121         * Configurations/Base.xcconfig:
2122         - Only set FRAMEWORK_CONTENT_DIRECTORY, GCC_ENABLE_OBJC_GC and
2123           TOOLCHAINS on OS X.
2124         * Configurations/BaseLegacyProcess.xcconfig:
2125         - Only set SKIP_INSTALL on iOS.
2126         * Configurations/BaseTarget.xcconfig:
2127         - Set WEBKIT_FRAMEWORKS_DIR and UMBRELLA_FRAMEWORKS_DIR based on
2128           SDK, and simply them.
2129         * Configurations/BaseXPCService.xcconfig:
2130         - Set INSTALL_PATH_ACTUAL_Normal based on SDK.
2131         * Configurations/DebugRelease.xcconfig:
2132         - Only set MACOSX_DEPLOYMENT_TARGET and SDKROOT on OS X.
2133         - Set WEBKIT_SYSTEM_INTERFACE_LIBRARY based on SDK.
2134         * Configurations/NetworkProcess.xcconfig:
2135         - Only set EXCLUDED_SHIM_FILE_NAME and CODE_SIGN_ENTITLEMENTS on
2136           iOS.
2137         * Configurations/NetworkService.Development.xcconfig:
2138         - Set INFOPLIST_FILE based on SDK.
2139         - Simplify CODE_SIGN_ENTITLEMENTS for iOS.
2140         * Configurations/NetworkService.xcconfig:
2141         - Set INFOPLIST_FILE based on SDK.
2142         - Simplify CODE_SIGN_ENTITLEMENTS for iOS.
2143         * Configurations/PluginProcess.xcconfig:
2144         - Only set EXCLUDED_SHIM_FILE_NAME and SKIP_INSTALL on iOS.
2145         * Configurations/PluginProcessShim.xcconfig:
2146         - Set OTHER_LDFLAGS based on SDK.
2147         * Configurations/PluginService.32.xcconfig:
2148         - Only set VALID_ARCHS on OS X.
2149         - Set OTHER_LDFLAGS based on platform-specific values.
2150         - Only set SKIP_INSTALL on iOS.
2151         * Configurations/PluginService.64.xcconfig:
2152         - Set ARCHS based on SDK.
2153         - Set OTHER_LDFLAGS based on platform-specific values.
2154         - Only set SKIP_INSTALL on iOS.
2155         * Configurations/PluginService.Development.xcconfig:
2156         - Only set SKIP_INSTALL on iOS.
2157         - Set OTHER_LDFLAGS based on platform-specific values.
2158         * Configurations/SecItemShim.xcconfig:
2159         - Set OTHER_LDFLAGS based on platform-specific values.
2160         * Configurations/Version.xcconfig:
2161         - Set SYSTEM_VERSION_PREFIX separately for iOS and OS X.
2162         * Configurations/WebContentProcess.xcconfig:
2163         - Only set EXCLUDED_SHIM_FILE_NAME on iOS.
2164         - Only set CODE_SIGN_ENTITLEMENTS on iOS Simulator.
2165         * Configurations/WebContentService.Development.xcconfig:
2166         - Set INFOPLIST_FILE and BUNDLE_LOCALIZATION_KEY based on SDK.
2167         - Only set CODE_SIGN_ENTITLEMENTS on iOS hardware.
2168         - Set OTHER_LDFLAGS based on platform-specific values.
2169         * Configurations/WebContentService.xcconfig: Ditto.
2170         * Configurations/WebKit.xcconfig:
2171         - Set FRAMEWORK_AND_LIBRARY_LDFLAGS, SECTORDER_FLAGS, and
2172           WK_API_AVAILABILITY_ENABLED based on SDK.
2173         - Set OTHER_LDFLAGS based on platform-specific values.
2174         - Only set EXCLUDED_SOURCE_FILE_NAMES on iOS.
2175         * Configurations/WebKit2.xcconfig:
2176         - Set INSTALL_PATH, INSTALL_PATH_ACTUAL, DYLIB_INSTALL_NAME_BASE,
2177           NORMAL_WEBKIT2_FRAMEWORKS_DIR, WEBKIT2_FRAMEWORKS_DIR and
2178           NORMAL_PRODUCTION_FRAMEWORKS_DIR based on SDK.
2179         - Set SKIP_INSTALL on iOS.
2180         * Configurations/WebProcessShim.xcconfig:
2181         - Set OTHER_LDFLAGS based on platform-specific values.
2182
2183 2014-12-18  Jon Honeycutt  <jhoneycutt@apple.com>
2184
2185         iOS build fix.
2186
2187         * UIProcess/mac/WKPreviewPopoverAnimationController.mm:
2188
2189 2014-12-18  Jessie Berlin  <jberlin@webkit.org>
2190
2191         Speculative build-fix after r177522.
2192
2193         * UIProcess/mac/WKPreviewPopoverAnimationController.mm:
2194         (-[WKPreviewPopoverAnimationController setPreviewOverrideImage:]):
2195
2196 2014-12-18  Andreas Kling  <akling@apple.com>
2197
2198         Ref-ify various Document-related things.
2199         <https://webkit.org/b/139796>
2200
2201         Reviewed by Anders Carlsson.
2202
2203         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm:
2204         (-[WKDOMDocument createTextNode:]):
2205
2206 2014-12-18  Beth Dakin  <bdakin@apple.com>
2207
2208         Speculative build fix.
2209
2210         * UIProcess/ProcessThrottler.h:
2211
2212 2014-12-18  Anders Carlsson  <andersca@apple.com>
2213
2214         Use MachSendRight in WebKit2
2215         https://bugs.webkit.org/show_bug.cgi?id=139800
2216
2217         Reviewed by Tim Horton.
2218
2219         * Platform/IPC/ArgumentEncoder.h:
2220         (IPC::ArgumentEncoder::encode):
2221         (IPC::ArgumentEncoder::operator<<):
2222         * Shared/WebCoreArgumentCoders.h:
2223         * Shared/mac/RemoteLayerBackingStore.mm:
2224         (WebKit::RemoteLayerBackingStore::encode):
2225         (WebKit::RemoteLayerBackingStore::decode):
2226         * Shared/mac/WebCoreArgumentCodersMac.mm:
2227         (IPC::ArgumentCoder<MachSendRight>::encode):
2228         (IPC::ArgumentCoder<MachSendRight>::decode):
2229
2230 2014-12-18  Gavin Barraclough  <barraclough@apple.com>
2231
2232         Remove custom token mechanism from ProcessThrottler
2233         https://bugs.webkit.org/show_bug.cgi?id=139744
2234
2235         Reviewed by Geoff Garen.
2236
2237         ProcessThrottler implements its own token-based counter mechanism, but should
2238         just use RefCounter.
2239
2240         * UIProcess/Cocoa/NavigationState.h:
2241             - remove std::unique_ptr.
2242         * UIProcess/Cocoa/NavigationState.mm:
2243         (WebKit::NavigationState::didChangeIsLoading):
2244             - remove std::make_unique.
2245         * UIProcess/GenericCallback.h:
2246         (WebKit::CallbackBase::CallbackBase):
2247         (WebKit::GenericCallback::create):
2248         (WebKit::GenericCallback::GenericCallback):
2249         (WebKit::CallbackMap::put):
2250             - remove std::unique_ptr.
2251         * UIProcess/ProcessThrottler.cpp:
2252         (WebKit::ProcessThrottler::ProcessThrottler):
2253         (WebKit::m_backgroundCounter):
2254         (WebKit::ProcessThrottler::assertionState):
2255         (WebKit::ProcessThrottler::updateAssertion):
2256         (WebKit::ProcessThrottler::ForegroundActivityToken::ForegroundActivityToken): Deleted.
2257         (WebKit::ProcessThrottler::ForegroundActivityToken::~ForegroundActivityToken): Deleted.
2258         (WebKit::ProcessThrottler::BackgroundActivityToken::BackgroundActivityToken): Deleted.
2259         (WebKit::ProcessThrottler::BackgroundActivityToken::~BackgroundActivityToken): Deleted.
2260             - removed old implementation of ForegroundActivityToken/BackgroundActivityToken.
2261         * UIProcess/ProcessThrottler.h:
2262         (WebKit::ProcessThrottler::foregroundActivityToken):
2263         (WebKit::ProcessThrottler::backgroundActivityToken):
2264             - added accessors to create activity tokens.
2265         (WebKit::ProcessThrottler::weakPtr): Deleted.
2266             - removed members replaced by RefCounter types.
2267         * UIProcess/WebPageProxy.cpp:
2268         (WebKit::WebPageProxy::updateActivityToken):
2269         (WebKit::WebPageProxy::validateCommand):
2270         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
2271         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
2272         (WebKit::WebPageProxy::getSourceForFrame):
2273         (WebKit::WebPageProxy::getContentsAsString):
2274         (WebKit::WebPageProxy::getBytecodeProfile):
2275         (WebKit::WebPageProxy::getContentsAsMHTMLData):
2276         (WebKit::WebPageProxy::getSelectionOrContentsAsString):
2277         (WebKit::WebPageProxy::getSelectionAsWebArchiveData):
2278         (WebKit::WebPageProxy::getMainResourceDataOfFrame):
2279         (WebKit::WebPageProxy::getResourceDataFromFrame):
2280         (WebKit::WebPageProxy::getWebArchiveOfFrame):
2281         (WebKit::WebPageProxy::getMarkedRangeAsync):
2282         (WebKit::WebPageProxy::getSelectedRangeAsync):
2283         (WebKit::WebPageProxy::characterIndexForPointAsync):
2284         (WebKit::WebPageProxy::firstRectForCharacterRangeAsync):
2285         (WebKit::WebPageProxy::takeSnapshot):
2286         (WebKit::WebPageProxy::installViewStateChangeCompletionHandler):
2287             - remove std::make_unique.
2288         * UIProcess/WebPageProxy.h:
2289             - remove std::unique_ptr.
2290         * UIProcess/WebProcessProxy.cpp:
2291         (WebKit::WebProcessProxy::setIsHoldingLockedFiles):
2292             - remove std::make_unique.
2293         * UIProcess/WebProcessProxy.h:
2294             - remove std::unique_ptr.
2295         * UIProcess/ios/WebPageProxyIOS.mm:
2296         (WebKit::WebPageProxy::selectWithGesture):
2297         (WebKit::WebPageProxy::updateSelectionWithTouches):
2298         (WebKit::WebPageProxy::requestAutocorrectionData):
2299         (WebKit::WebPageProxy::applyAutocorrection):
2300         (WebKit::WebPageProxy::executeEditCommand):
2301         (WebKit::WebPageProxy::selectTextWithGranularityAtPoint):
2302         (WebKit::WebPageProxy::selectPositionAtBoundaryWithDirection):
2303         (WebKit::WebPageProxy::selectPositionAtPoint):
2304         (WebKit::WebPageProxy::beginSelectionInDirection):
2305         (WebKit::WebPageProxy::updateSelectionWithExtentPoint):
2306         (WebKit::WebPageProxy::requestDictationContext):
2307         (WebKit::WebPageProxy::requestAutocorrectionContext):
2308         (WebKit::WebPageProxy::selectWithTwoTouches):
2309         (WebKit::WebPageProxy::moveSelectionByOffset):
2310         (WebKit::WebPageProxy::focusNextAssistedNode):
2311             - remove std::make_unique.
2312         * UIProcess/mac/WebPageProxyMac.mm:
2313         (WebKit::WebPageProxy::attributedSubstringForCharacterRangeAsync):
2314             - remove std::make_unique.
2315
2316 2014-12-18  Gavin Barraclough  <barraclough@apple.com>
2317
2318         Add strong typing to RefCounter interface, return value as a bool.
2319         https://bugs.webkit.org/show_bug.cgi?id=139776
2320
2321         Reviewed by Geoff Garen.
2322
2323         Currently all token vended by a RefCounter have the same type - Ref<RefCounter::Count>.
2324         This means there is no compile time type checking to prevent mistakes. Update the count()
2325         method to token<>(), templated on type used to identify the token being returned.
2326         Calls to token<T>() will return a result of type RefCounter::Token<T>.
2327
2328         There are a few problems with the fact the counter will return you an exact count of the
2329         number of outstanding tokens:
2330           - It is desirable to only fire the callback on zero-edge changes; it is more consistent
2331             to do so if the value is only readable as a boolean.
2332           - It is desirable to provide the value as an argument to the callback, however to make
2333             this useful for integer values it is also necessary to indicate the direction of change
2334             (0->1 is often interesting where 2->1 is not).
2335           - There is a mismatch between the precision of returning a count, and the inherent
2336             imprecision of a token based mechanism, where it may be difficult to guarantee
2337             absolutely no unnecessary refcount churn, and thus unintentional counter values.
2338
2339         Removed PluginProcessManager::m_processSuppressionEnabled. Now the callback only fires on
2340         zero-edge transitions we no longer need this to filter changes.
2341
2342         * UIProcess/Plugins/PluginProcessManager.cpp:
2343         (WebKit::PluginProcessManager::PluginProcessManager):
2344             - updateProcessSuppressionState -> updateProcessSuppressionDisabled.
2345         * UIProcess/Plugins/PluginProcessManager.h:
2346         (WebKit::PluginProcessManager::processSuppressionDisabledForPageCount): Deleted.
2347         (WebKit::PluginProcessManager::processSuppressionDisabledToken):
2348             - processSuppressionDisabledForPageCount -> processSuppressionDisabledToken.
2349         (WebKit::PluginProcessManager::processSuppressionEnabled): Deleted.
2350         (WebKit::PluginProcessManager::processSuppressionDisabled):
2351             - processSuppressionEnabled -> processSuppressionDisabled.
2352         * UIProcess/Plugins/PluginProcessProxy.cpp:
2353         (WebKit::PluginProcessProxy::didFinishLaunching):
2354             - processSuppressionEnabled -> processSuppressionDisabled.
2355         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
2356         (WebKit::PluginProcessManager::updateProcessSuppressionState): Deleted.
2357         (WebKit::PluginProcessManager::updateProcessSuppressionDisabled):
2358             - updateProcessSuppressionState -> updateProcessSuppressionDisabled
2359         * UIProcess/ProcessThrottler.h:
2360             - added UserObservablePageToken, ProcessSuppressionDisabledToken types.
2361         * UIProcess/WebContext.cpp:
2362         (WebKit::WebContext::WebContext):
2363         (WebKit::m_processSuppressionDisabledForPageCounter):
2364             - lambda now has bool argument.
2365         * UIProcess/WebContext.h:
2366         (WebKit::WebContext::userObservablePageCount):
2367         (WebKit::WebContext::processSuppressionDisabledForPageCount):
2368             - count() -> token<>(), changed return type.
2369         * UIProcess/WebPageProxy.h:
2370             - changed types of token members.
2371         * UIProcess/mac/WebContextMac.mm:
2372         (WebKit::WebContext::updateProcessSuppressionState):
2373             renamed m_pluginProcessManagerProcessSuppressionDisabledCount -> m_pluginProcessManagerProcessSuppressionDisabledToken.
2374
2375 2014-12-18  Timothy Horton  <timothy_horton@apple.com>
2376
2377         Try to fix some builds.
2378
2379         * UIProcess/mac/WKPreviewPopoverAnimationController.mm:
2380
2381 2014-12-18  Anders Carlsson  <andersca@apple.com>
2382
2383         Fix build.
2384
2385         * UIProcess/API/mac/WKViewInternal.h:
2386
2387 2014-12-18  Chris Dumez  <cdumez@apple.com>
2388
2389         Add missing availability annotation on @property _featureCounterEnabled
2390         https://bugs.webkit.org/show_bug.cgi?id=139794
2391         <rdar://problem/19266254>
2392
2393         Rubber-stamped by Dan Bernstein.
2394
2395         Follow-up to r177526 adding availability annotation on @property
2396         _featureCounterEnabled.
2397
2398         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
2399
2400 2014-12-18  Beth Dakin  <bdakin@apple.com>
2401
2402         Need to re-enable action menus
2403         https://bugs.webkit.org/show_bug.cgi?id=139795
2404         -and corresponding-
2405         rdar://problem/19299367
2406
2407         Reviewed by Tim Horton.
2408
2409         Re-enable the menus by un-commenting the code to create the menu and controller.
2410         * UIProcess/API/mac/WKView.mm:
2411         (-[WKView initWithFrame:context:configuration:webView:]):
2412
2413         performActionMenuHitTest already takes a parameter indicating whether the hit test 
2414         is for an immediate action or not. The callback didPerformActionMenuHitTest needs 
2415         that information too so that it knows whether to call into the 
2416         ActionMenuController or the ImmediateActionController.
2417         (-[WKView _didPerformActionMenuHitTest:forImmediateAction:userData:]):
2418         (-[WKView _didPerformActionMenuHitTest:userData:]): Deleted.
2419         * UIProcess/API/mac/WKViewInternal.h:
2420         * UIProcess/PageClient.h:
2421         * UIProcess/WebPageProxy.cpp:
2422         (WebKit::WebPageProxy::didPerformActionMenuHitTest):
2423         * UIProcess/WebPageProxy.h:
2424         * UIProcess/WebPageProxy.messages.in:
2425         * UIProcess/mac/PageClientImpl.h:
2426         * UIProcess/mac/PageClientImpl.mm:
2427         (WebKit::PageClientImpl::didPerformActionMenuHitTest):
2428         * WebProcess/WebPage/mac/WebPageMac.mm:
2429         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2430
2431 2014-12-18  Chris Dumez  <cdumez@apple.com>
2432
2433         [WK2] Stop using WKPreferencesPrivate API to toggle FeatureCounter support
2434         https://bugs.webkit.org/show_bug.cgi?id=139794
2435         <rdar://problem/19266254>
2436
2437         Reviewed by Anders Carlsson.
2438
2439         Stop using WKPreferencesPrivate API to toggle FeatureCounter support
2440         and use WKWebViewConfigurationPrivate API instead. FeatureCounter is
2441         not meant to change state after the view has been created.
2442
2443         * UIProcess/API/C/WKPreferences.cpp:
2444         (WKPreferencesSetFeatureCounterEnabled): Deleted.
2445         (WKPreferencesGetFeatureCounterEnabled): Deleted.
2446         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2447         * UIProcess/API/Cocoa/WKPreferences.mm:
2448         (-[WKPreferences _featureCounterEnabled]): Deleted.
2449         (-[WKPreferences _setFeatureCounterEnabled:]): Deleted.
2450         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
2451         * UIProcess/API/Cocoa/WKWebView.mm:
2452         (-[WKWebView initWithFrame:configuration:]):
2453         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
2454         (-[WKWebViewConfiguration init]):
2455         (-[WKWebViewConfiguration copyWithZone:]):
2456         (-[WKWebViewConfiguration _featureCounterEnabled]):
2457         (-[WKWebViewConfiguration _setFeatureCounterEnabled:]):
2458         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
2459
2460 2014-12-18  Timothy Horton  <timothy_horton@apple.com>
2461
2462         Fix the build.
2463
2464         * UIProcess/API/mac/WKView.mm:
2465         (-[WKView _setPreviewOverrideImage:]):
2466
2467 2014-12-18  Timothy Horton  <timothy_horton@apple.com>
2468
2469         Change page preview loading order, and add a TextIndicator
2470         https://bugs.webkit.org/show_bug.cgi?id=139793
2471         <rdar://problem/19288547>
2472
2473         Reviewed by Beth Dakin.
2474
2475         * Shared/mac/ActionMenuHitTestResult.h:
2476         * Shared/mac/ActionMenuHitTestResult.mm:
2477         (WebKit::ActionMenuHitTestResult::encode):
2478         (WebKit::ActionMenuHitTestResult::decode):
2479         * WebProcess/WebPage/mac/WebPageMac.mm:
2480         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2481         Build a TextIndicator for links.
2482
2483         * UIProcess/API/Cocoa/WKViewPrivate.h:
2484         * UIProcess/API/mac/WKView.mm:
2485         (-[WKView _dismissContentRelativeChildWindows]):
2486         (-[WKView _setPreviewTitle:]):
2487         (-[WKView _setPreviewLoading:]):
2488         Remove unneeded WK_API_ENABLED #ifs.
2489
2490         (-[WKView _setPreviewOverrideImage:]):
2491         Add; forward to WKImmediateActionController.
2492
2493         * UIProcess/mac/WKImmediateActionController.h:
2494         * UIProcess/mac/WKImmediateActionController.mm:
2495         (-[WKImmediateActionController willDestroyView:]):
2496         Shut down the WKPreviewPopoverAnimationController.
2497
2498         (-[WKImmediateActionController _clearImmediateActionState]):
2499         (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
2500         Don't build an immediate action item here; we'll always build it in
2501         willBeginAnimation, and the one we build here is likely to be wrong.
2502
2503         (-[WKImmediateActionController _defaultAnimationController]):
2504         (-[WKImmediateActionController hidePreview]):
2505         (-[WKImmediateActionController setPreviewTitle:]):
2506         (-[WKImmediateActionController setPreviewLoading:]):
2507         (-[WKImmediateActionController setPreviewOverrideImage:]):
2508         (-[WKImmediateActionController _animationControllerForCustomPreview]):
2509         (-[WKImmediateActionController _createPreviewPopoverIfNeededForURL:]): Deleted.
2510         (-[WKImmediateActionController popoverWillClose:]): Deleted.
2511         (targetSizeFitsInAvailableSpace): Deleted.
2512         (-[WKImmediateActionController largestPopoverSize]): Deleted.
2513         (-[WKImmediateActionController _preferredPopoverSizeWithPreviewPadding:]): Deleted.
2514         (-[WKImmediateActionController pagePreviewViewController:viewForPreviewingURL:initialFrameSize:]): Deleted.
2515         (-[WKImmediateActionController pagePreviewViewController:titleForPreviewOfURL:]): Deleted.
2516         (-[WKImmediateActionController pagePreviewViewControllerWasClicked:]): Deleted.
2517         Move preview popover code to WKPreviewPopoverAnimationController.
2518         Install and uninstall the link text indicator when necessary.
2519
2520         * UIProcess/mac/WKPagePreviewViewController.h:
2521         * UIProcess/mac/WKPagePreviewViewController.mm:
2522         (-[WKPagePreviewViewController setLoading:]):
2523         (-[WKPagePreviewViewController loadView]):
2524         (-[WKPagePreviewViewController replacePreviewWithImage:atSize:]):
2525         Allow overriding the preview with a full-view NSImage.
2526         Hide the preview view until the loading spinner goes away.
2527
2528         * UIProcess/mac/WKPreviewPopoverAnimationController.h: Copied from Source/WebKit2/UIProcess/mac/WKImmediateActionController.h.
2529         * UIProcess/mac/WKPreviewPopoverAnimationController.mm: Added.
2530         (+[WKPreviewPopoverAnimationController _shouldImmediatelyShowPreview]):
2531         (-[WKPreviewPopoverAnimationController initWithURL:view:page:originRect:eventLocationInView:]):
2532         (-[WKPreviewPopoverAnimationController close]):
2533         (-[WKPreviewPopoverAnimationController setPreviewLoading:]):
2534         (-[WKPreviewPopoverAnimationController setPreviewOverrideImage:]):
2535         If we have shown the popover, choose a size strictly smaller than
2536         its current size.
2537
2538         (-[WKPreviewPopoverAnimationController _hidePreview]):
2539         (-[WKPreviewPopoverAnimationController setPreviewTitle:]):
2540         (-[WKPreviewPopoverAnimationController _createPreviewPopover]):
2541         (-[WKPreviewPopoverAnimationController _showPreview]):
2542         (targetSizeFitsInAvailableSpace):
2543         (-[WKPreviewPopoverAnimationController largestPopoverSize]):
2544         (-[WKPreviewPopoverAnimationController _targetSizeForPagePreview]):
2545         (-[WKPreviewPopoverAnimationController _preferredPopoverSizeWithPreviewPadding:forTargetSize:]):
2546         (-[WKPreviewPopoverAnimationController _previewWatchdogTimerFired:]):
2547         (-[WKPreviewPopoverAnimationController recognizerWillBeginAnimation:]):
2548         (-[WKPreviewPopoverAnimationController recognizerDidUpdateAnimation:]):
2549         (-[WKPreviewPopoverAnimationController recognizerDidCancelAnimation:]):
2550         (-[WKPreviewPopoverAnimationController recognizerDidCompleteAnimation:]):
2551         (-[WKPreviewPopoverAnimationController recognizerDidDismissAnimation:]):
2552         (-[WKPreviewPopoverAnimationController pagePreviewViewController:viewForPreviewingURL:initialFrameSize:]):
2553         (-[WKPreviewPopoverAnimationController pagePreviewViewController:titleForPreviewOfURL:]):
2554         (-[WKPreviewPopoverAnimationController pagePreviewViewControllerWasClicked:]):
2555         (-[WKPreviewPopoverAnimationController popoverWillClose:]):
2556         Move code in from WKImmediateActionController.
2557         Forward NSImmediateActionAnimationControllerDelegate methods
2558         to the popover's animation controller if we've popped it.
2559         Pop the popover if we've loaded or 1 second has passed, whichever
2560         comes first.
2561
2562         * WebKit2.xcodeproj/project.pbxproj:
2563
2564 2014-12-18  Anders Carlsson  <andersca@apple.com>
2565
2566         Add a MachSendRight class to WebCore and use it in IOSurface
2567         https://bugs.webkit.org/show_bug.cgi?id=139787
2568
2569         Reviewed by Tim Horton.
2570
2571         * Shared/mac/RemoteLayerBackingStore.mm:
2572         (WebKit::RemoteLayerBackingStore::encode):
2573
2574 2014-12-18  Daniel Bates  <dabates@apple.com>
2575
2576         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/177486>
2577         (https://bugs.webkit.org/show_bug.cgi?id=139755)
2578
2579         * WebProcess/WebPage/ios/WebPageIOS.mm:
2580         (WebKit::WebPage::selectWithGesture): Wrap return value of Range::create() in RefPtr<Range>()
2581         to make the the compiler happy since it wants clauses of the ternary operator to have the same data type
2582         and Ref<Range> object does not support nullptr.
2583         (WebKit::WebPage::selectWordBackward): Substitute Ref::ptr() for PassRefPtr::get().
2584         (WebKit::WebPage::moveSelectionByOffset): Ditto.
2585         (WebKit::WebPage::selectPositionAtPoint): Ditto.
2586         (WebKit::WebPage::selectPositionAtBoundaryWithDirection): Ditto.
2587         (WebKit::WebPage::requestDictationContext): Ditto.
2588         (WebKit::computeAutocorrectionContext): Ditto.
2589
2590 2014-12-18  Antti Koivisto  <antti@apple.com>
2591
2592         Remove alwaysUseBaselineOfPrimaryFont setting
2593         https://bugs.webkit.org/show_bug.cgi?id=139770
2594
2595         Reviewed by Anders Carlsson.
2596
2597         * Shared/WebPreferencesDefinitions.h:
2598         * WebProcess/WebPage/WebPage.cpp:
2599         (WebKit::WebPage::updatePreferences):
2600
2601 2014-12-18  Adrian Perez de Castro  <aperez@igalia.com>
2602
2603         [GTK] Implement webkit_web_view_is_playing_audio()
2604         https://bugs.webkit.org/show_bug.cgi?id=138918
2605
2606         Reviewed by Carlos Garcia Campos.
2607
2608         Implements webkit_web_view_is_playing_audio(), and overrides
2609         UIClient::isPlayingAudioDidChange() to be able to emit change
2610         notification signals for the new WebKitWebView::is-playing-audio
2611         property.
2612
2613         * UIProcess/API/gtk/WebKitUIClient.cpp:
2614         (isPlayingAudioDidChange): Added.
2615         * UIProcess/API/gtk/WebKitWebView.cpp:
2616         (webkitWebViewIsPlayingAudioChanged): Helper function to emit the
2617         emit the notify::is-playing-audio signal when needed.
2618         (webkitWebViewGetProperty): Handle the WebKitWebView::is-playing-audio
2619         property.
2620         (webkit_web_view_class_init): Install the
2621         WebKitWebView::is-playing-audio property.
2622         (webkit_web_view_is_playing_audio): Added.
2623         * UIProcess/API/gtk/WebKitWebView.h:
2624         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2625         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add
2626         webkit_web_view_is_playing_audio() to the list of public API
2627         functions.
2628
2629 2014-12-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2630
2631         [GTK] Allow to build with ENABLE_NETWORK_CACHE
2632         https://bugs.webkit.org/show_bug.cgi?id=139728
2633
2634         Reviewed by Antti Koivisto.
2635
2636         Just make it build for now.
2637
2638         * CMakeLists.txt: Add new files to compilation.
2639         * NetworkProcess/NetworkResourceLoader.cpp:
2640         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry): Use
2641         ENABLE(SHAREABLE_RESOURCE) when ShareableResource is used.
2642         * NetworkProcess/cache/NetworkCache.cpp:
2643         (WebKit::decodeStorageEntry): Ditto.
2644         (WebKit::makeCacheKey): Use ENABLE(CACHE_PARTITIONING) for ResourceRequest::cachePartition().
2645         * NetworkProcess/cache/NetworkCache.h:
2646         * NetworkProcess/cache/NetworkCacheStorage.h:
2647         (WebKit::NetworkCacheStorage::Data::isNull): Move implementation
2648         to platform specific files.
2649         * NetworkProcess/cache/NetworkCacheStorageCocoa.mm:
2650         (WebKit::NetworkCacheStorage::Data::isNull): Moved from the header.
2651         * NetworkProcess/cache/NetworkCacheStorageSoup.cpp: Added.
2652         (WebKit::NetworkCacheStorage::Data::Data):
2653         (WebKit::NetworkCacheStorage::Data::data):
2654         (WebKit::NetworkCacheStorage::Data::isNull):
2655         (WebKit::NetworkCacheStorage::open):
2656         (WebKit::NetworkCacheStorage::NetworkCacheStorage):
2657         (WebKit::NetworkCacheStorage::initializeKeyFilter):
2658         (WebKit::NetworkCacheStorage::removeEntry):
2659         (WebKit::NetworkCacheStorage::dispatchRetrieveOperation):
2660         (WebKit::NetworkCacheStorage::dispatchPendingRetrieveOperations):
2661         (WebKit::NetworkCacheStorage::retrieve):
2662         (WebKit::NetworkCacheStorage::store):
2663         (WebKit::NetworkCacheStorage::setMaximumSize):
2664         (WebKit::NetworkCacheStorage::clear):
2665         * PlatformGTK.cmake: Add NetworkCacheStorageSoup.cpp.
2666         * config.h:
2667
2668 2014-12-17  Dan Bernstein  <mitz@apple.com>
2669
2670         <rdar://problem/19282508> WebKitLegacy is unusable due to bad dylib identifier
2671         https://bugs.webkit.org/show_bug.cgi?id=139760
2672
2673         Reviewed by Anders Carlsson.
2674
2675         * Configurations/WebKit2.xcconfig:
2676
2677 2014-12-17  Beth Dakin  <bdakin@apple.com>
2678
2679         Page previews are sometimes sized much smaller than it seems they should be
2680         https://bugs.webkit.org/show_bug.cgi?id=139754
2681         -and corresponding-
2682         rdar://problem/19286550        
2683
2684         Reviewed by Tim Horton.
2685
2686         Increase the minimum size and add in a missing else!!
2687         * UIProcess/mac/WKImmediateActionController.mm:
2688         (-[WKImmediateActionController _preferredPopoverSizeWithPreviewPadding:]):
2689
2690 2014-12-17  Anders Carlsson  <andersca@apple.com>
2691
2692         Ref-ify WebPageProxy and WebProcessProxy creation functions
2693         https://bugs.webkit.org/show_bug.cgi?id=139751
2694
2695         Reviewed by Andreas Kling.
2696
2697         * UIProcess/WebContext.cpp:
2698         (WebKit::WebContext::createNewWebProcess):
2699         * UIProcess/WebPageProxy.cpp:
2700         (WebKit::WebPageProxy::create):
2701         * UIProcess/WebPageProxy.h:
2702         * UIProcess/WebProcessProxy.cpp:
2703         (WebKit::WebProcessProxy::create):
2704         (WebKit::WebProcessProxy::createWebPage):
2705         * UIProcess/WebProcessProxy.h:
2706
2707 2014-12-17  Joseph Pecoraro  <pecoraro@apple.com>
2708
2709         Unreviewed iOS Build Fix after r177459.
2710
2711         * UIProcess/ios/WebInspectorProxyIOS.mm:
2712         (WebKit::WebInspectorProxy::platformInvalidate):
2713         (WebKit::WebInspectorProxy::platformHide):
2714         Add missing WebInspectorProxy platform methods.
2715
2716 2014-12-17  Enrica Casucci  <enrica@apple.com>
2717
2718         [iOS] Define button and action should respect profile settings.
2719         https://bugs.webkit.org/show_bug.cgi?id=139739
2720         rdar://problem/15461887
2721
2722         Reviewed by Joseph Pecoraro.
2723
2724         * UIProcess/ios/WKContentViewInteraction.mm:
2725         (-[WKContentView canPerformAction:withSender:]):
2726         (-[WKContentView _define:]):
2727
2728 2014-12-17  Joseph Pecoraro  <pecoraro@apple.com>
2729
2730         Web Inspector: [Mac] Occosional Crashes Closing Inspector
2731         https://bugs.webkit.org/show_bug.cgi?id=139740
2732
2733         Reviewed by Timothy Hatcher.
2734
2735         * UIProcess/WebPageProxy.cpp:
2736         (WebKit::WebPageProxy::didReceiveEvent):
2737         The WebPageProxy could have gotten destroyed in handling (e.g. keyboard shortcut
2738         to close the Inspector Window), so protect the object to avoid destruction
2739         during handling.
2740
2741         * UIProcess/WebInspectorProxy.h:
2742         * UIProcess/WebPageProxy.cpp:
2743         Add platformInvalidate opportunity for the platform to do invalidation work.
2744
2745         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2746         (WebKit::WebInspectorProxy::platformInvalidate):
2747         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2748         (WebKit::WebInspectorProxy::platformInvalidate):
2749         Empty implementations, these ports do not need to do anything.
2750
2751         * UIProcess/WebInspectorProxy.h:
2752         * UIProcess/mac/WebInspectorProxyMac.mm:
2753         (WebKit::WebInspectorProxy::closeTimerFired):
2754         (WebKit::WebInspectorProxy::platformDidClose):
2755         (WebKit::WebInspectorProxy::platformInvalidate):
2756         When closing / invalidating make sure we close the WKView to clear client
2757         for any delayed callbacks.
2758
2759 2014-12-17  Chris Dumez  <cdumez@apple.com>
2760
2761         [iOS] Make it possible to toggle FeatureCounter support at runtime
2762         https://bugs.webkit.org/show_bug.cgi?id=139688
2763         <rdar://problem/19266254>
2764
2765         Reviewed by Andreas Kling.
2766
2767         Add private settings API to toggle FeatureCounter support on Safari and
2768         MobileSafari.
2769
2770         * Shared/WebPreferencesDefinitions.h:
2771         * UIProcess/API/C/WKPreferences.cpp:
2772         (WKPreferencesSetFeatureCounterEnabled):
2773         (WKPreferencesGetFeatureCounterEnabled):
2774         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2775         * UIProcess/API/Cocoa/WKPreferences.mm:
2776         (-[WKPreferences _featureCounterEnabled]):
2777         (-[WKPreferences _setFeatureCounterEnabled:]):
2778         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
2779         * WebProcess/WebPage/WebPage.cpp:
2780         (WebKit::WebPage::updatePreferences):
2781
2782 2014-12-17  Anders Carlsson  <andersca@apple.com>
2783
2784         Clean up SQL statement building in SQLiteIDBCursor
2785         https://bugs.webkit.org/show_bug.cgi?id=139741
2786
2787         Reviewed by Andreas Kling.
2788
2789         This vastly simplifies the code and gets rid of the last
2790         uses of DEPRECATED_DEFINE_STATIC_LOCAL in WebKit2.
2791
2792         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBCursor.cpp:
2793         (WebKit::buildIndexStatement):
2794         (WebKit::buildObjectStoreStatement):
2795         (WebKit::SQLiteIDBCursor::establishStatement):
2796         (WebKit::getIndexStatement): Deleted.
2797         (WebKit::getObjectStoreStatement): Deleted.
2798
2799 2014-12-17  Andreas Kling  <akling@apple.com>
2800
2801         Purge PassRefPtr from Frame.
2802         <https://webkit.org/b/139731>
2803
2804         Reviewed by Anders Carlsson.
2805
2806         * WebProcess/WebPage/WebFrame.cpp:
2807         (WebKit::WebFrame::createSubframe):
2808
2809 2014-12-17  Dan Bernstein  <mitz@apple.com>
2810
2811         iOS build fix
2812
2813         * UIProcess/ios/PageClientImplIOS.h:
2814         * UIProcess/ios/PageClientImplIOS.mm:
2815         (WebKit::PageClientImpl::PageClient::setTextIndicatorAnimationProgress):
2816
2817 2014-12-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2818
2819         Unreviewed. Fix GTK+ build after r177427.
2820
2821         * UIProcess/API/gtk/PageClientImpl.cpp:
2822         (WebKit::PageClientImpl::setTextIndicatorAnimationProgress):
2823         * UIProcess/API/gtk/PageClientImpl.h:
2824
2825 2014-12-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2826
2827         Unreviewed, EFL build fix since r177427.
2828
2829         * UIProcess/CoordinatedGraphics/WebView.cpp:
2830         (WebKit::WebView::setTextIndicatorAnimationProgress): Added.
2831         * UIProcess/CoordinatedGraphics/WebView.h:
2832
2833 2014-12-16  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2834
2835         Move WebCore/platform/graphics/surfaces to std::unique_ptr
2836         https://bugs.webkit.org/show_bug.cgi?id=139641
2837
2838         Reviewed by Andreas Kling.
2839
2840         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2841
2842 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
2843
2844         Implement and adopt two new TextIndicator presentation animations
2845         https://bugs.webkit.org/show_bug.cgi?id=139715
2846         <rdar://problem/19237945>
2847
2848         Reviewed by Anders Carlsson.
2849
2850         * UIProcess/API/mac/WKView.mm:
2851         (-[WKView _setTextIndicator:fadeOut:]):
2852         (-[WKView _setTextIndicatorAnimationProgress:]):
2853         (-[WKView _setTextIndicator:fadeOut:animationCompletionHandler:]): Deleted.
2854         * UIProcess/API/mac/WKViewInternal.h:
2855         * UIProcess/PageClient.h:
2856         * UIProcess/WebPageProxy.cpp:
2857         (WebKit::WebPageProxy::WebPageProxy):
2858         (WebKit::WebPageProxy::setTextIndicatorAnimationProgress):
2859         (WebKit::WebPageProxy::performActionMenuHitTestAtLocation):
2860         * UIProcess/WebPageProxy.h:
2861         * UIProcess/mac/PageClientImpl.h:
2862         * UIProcess/mac/PageClientImpl.mm:
2863         (WebKit::PageClientImpl::setTextIndicatorAnimationProgress):
2864         (WebKit::PageClientImpl::didPerformDictionaryLookup):
2865         Remove the completion handler block argument from TextIndicator
2866         installation.
2867         Plumb animation progress through PageClient to TextIndicatorWindow.
2868
2869         * UIProcess/mac/WKActionMenuController.mm:
2870         (-[WKActionMenuController prepareForMenu:withEvent:]):
2871         (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
2872         * UIProcess/mac/WKImmediateActionController.mm:
2873         (-[WKImmediateActionController _clearImmediateActionState]):
2874         (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
2875         (-[WKImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
2876         (-[WKImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2877         (-[WKImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2878         (-[WKImmediateActionController _menuItemForDataDetectedText]):
2879         (-[WKImmediateActionController _animationControllerForText]):
2880         Forward immediate action gesture recognizer animation progress
2881         to TextIndicator. Force us to keep the selection when immediate
2882         action popovers steal first responder status from the WebView.
2883
2884         * WebProcess/WebPage/WebPage.h:
2885         * WebProcess/WebPage/WebPage.messages.in:
2886         * WebProcess/WebPage/mac/WebPageMac.mm:
2887         (WebKit::textIndicatorTransitionForActionMenu):
2888         (WebKit::WebPage::performActionMenuHitTestAtLocation):
2889         Factor out the presentation animation decision code.
2890         For immediate actions, of the Lookup range is equal to the
2891         selection range, use a Crossfade animation; otherwise, use a FadeIn
2892         animation.
2893         Push whether the actionMenuHitTest is for an immediate action
2894         or a menu to the Web process, to make the presentation animation
2895         decision code live entirely in the Web process.
2896         Avoid extracting encoded image data if we know we're doing
2897         an immediate action and will never need it.
2898
2899 2014-12-16  Anders Carlsson  <andersca@apple.com>
2900
2901         Fix lambda and std::function formatting
2902         https://bugs.webkit.org/show_bug.cgi?id=139719
2903
2904         Reviewed by Sam Weinig.
2905
2906         * DatabaseProcess/DatabaseProcess.cpp:
2907         (WebKit::DatabaseProcess::getOrigins):
2908         (WebKit::DatabaseProcess::deleteEntriesForOrigin):
2909         (WebKit::DatabaseProcess::deleteEntriesModifiedBetweenDates):
2910         (WebKit::DatabaseProcess::deleteAllEntries):
2911         * DatabaseProcess/DatabaseProcess.h:
2912         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
2913         (WebKit::UniqueIDBDatabase::deleteDatabase):
2914         (WebKit::UniqueIDBDatabase::getOrEstablishIDBDatabaseMetadata):
2915         (WebKit::UniqueIDBDatabase::openTransaction):
2916         (WebKit::UniqueIDBDatabase::beginTransaction):
2917         (WebKit::UniqueIDBDatabase::commitTransaction):
2918         (WebKit::UniqueIDBDatabase::resetTransaction):
2919         (WebKit::UniqueIDBDatabase::rollbackTransaction):
2920         (WebKit::UniqueIDBDatabase::postTransactionOperation):
2921         (WebKit::UniqueIDBDatabase::changeDatabaseVersion):
2922         (WebKit::UniqueIDBDatabase::createObjectStore):
2923         (WebKit::UniqueIDBDatabase::deleteObjectStore):
2924         (WebKit::UniqueIDBDatabase::clearObjectStore):
2925         (WebKit::UniqueIDBDatabase::createIndex):
2926         (WebKit::UniqueIDBDatabase::deleteIndex):
2927         (WebKit::UniqueIDBDatabase::putRecord):
2928         (WebKit::UniqueIDBDatabase::getRecord):
2929         (WebKit::UniqueIDBDatabase::openCursor):
2930         (WebKit::UniqueIDBDatabase::cursorAdvance):
2931         (WebKit::UniqueIDBDatabase::cursorIterate):
2932         (WebKit::UniqueIDBDatabase::count):
2933         (WebKit::UniqueIDBDatabase::deleteRange):
2934         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
2935         * NetworkProcess/cache/NetworkCacheStorageCocoa.mm:
2936         (WebKit::NetworkCacheStorage::store):
2937         * Shared/AsyncTask.h:
2938         (WebKit::AsyncTask::AsyncTask):
2939         * Shared/ChildProcess.cpp:
2940         (WebKit::didCloseOnConnectionWorkQueue):
2941         * Shared/WebContextMenuItemData.cpp:
2942         (WebKit::WebContextMenuItemData::WebContextMenuItemData):
2943         * Shared/WebContextMenuItemData.h:
2944         (WebKit::WebContextMenuItemData::selectionHandler):
2945         * Shared/mac/SecItemShim.cpp:
2946         (WebKit::responseMap):
2947         * UIProcess/Plugins/PluginProcessManager.cpp:
2948         (WebKit::PluginProcessManager::PluginProcessManager):
2949         * UIProcess/WebContext.cpp:
2950         (WebKit::WebContext::WebContext):
2951         (WebKit::m_processSuppressionDisabledForPageCounter):
2952         * UIProcess/WebOriginDataManagerProxy.cpp:
2953         (WebKit::CallbackSynchronizer::create):
2954         (WebKit::CallbackSynchronizer::CallbackSynchronizer):
2955         * UIProcess/WebPageProxy.cpp:
2956         (WebKit::WebPageProxy::WebPageProxy):
2957         * UIProcess/mac/WebContextMenuProxyMac.mm:
2958         (-[WKSelectionHandlerWrapper initWithSelectionHandler:]):
2959         (WebKit::nsMenuItemVector):
2960         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
2961         (WebKit::WebIDBServerConnection::deleteDatabase):
2962         (WebKit::WebIDBServerConnection::getOrEstablishIDBDatabaseMetadata):
2963         (WebKit::WebIDBServerConnection::openTransaction):
2964         (WebKit::WebIDBServerConnection::beginTransaction):
2965         (WebKit::WebIDBServerConnection::commitTransaction):
2966         (WebKit::WebIDBServerConnection::resetTransaction):
2967         (WebKit::WebIDBServerConnection::rollbackTransaction):
2968         (WebKit::WebIDBServerConnection::setIndexKeys):
2969         (WebKit::WebIDBServerConnection::createObjectStore):
2970         (WebKit::WebIDBServerConnection::createIndex):
2971         (WebKit::WebIDBServerConnection::deleteIndex):
2972         (WebKit::WebIDBServerConnection::get):
2973         (WebKit::WebIDBServerConnection::put):
2974         (WebKit::WebIDBServerConnection::count):
2975         (WebKit::WebIDBServerConnection::deleteRange):
2976         (WebKit::WebIDBServerConnection::clearObjectStore):
2977         (WebKit::WebIDBServerConnection::deleteObjectStore):
2978         (WebKit::WebIDBServerConnection::changeDatabaseVersion):
2979         (WebKit::WebIDBServerConnection::openCursor):
2980         (WebKit::WebIDBServerConnection::cursorAdvance):
2981         (WebKit::WebIDBServerConnection::cursorIterate):
2982         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
2983         * WebProcess/OriginData/WebOriginDataManagerSupplement.h:
2984         * WebProcess/WebProcess.cpp:
2985         (WebKit::WebProcess::getOrigins):
2986         (WebKit::WebProcess::deleteEntriesForOrigin):
2987         (WebKit::WebProcess::deleteEntriesModifiedBetweenDates):
2988         (WebKit::WebProcess::deleteAllEntries):
2989         * WebProcess/WebProcess.h:
2990
2991 2014-12-16  Anders Carlsson  <andersca@apple.com>
2992
2993         Get rid of a couple of binds in WebKit2
2994         https://bugs.webkit.org/show_bug.cgi?id=139717
2995
2996         Reviewed by Sam Weinig.
2997
2998         * DatabaseProcess/DatabaseProcess.cpp:
2999         (WebKit::DatabaseProcess::postDatabaseTask):
3000         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
3001         (WebKit::UniqueIDBDatabase::didShutdownBackingStore):
3002         (WebKit::UniqueIDBDatabase::postMainThreadTask):
3003         (WebKit::UniqueIDBDatabase::performNextMainThreadTask):
3004         (WebKit::UniqueIDBDatabase::postDatabaseTask):
3005         (WebKit::UniqueIDBDatabase::performNextMainThreadTaskWithoutAdoptRef): Deleted.
3006         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
3007         * Platform/IPC/mac/ConnectionMac.mm:
3008         (IPC::Connection::initializeDeadNameSource):
3009         * UIProcess/Launcher/ProcessLauncher.cpp:
3010         (WebKit::processLauncherWorkQueue):
3011         (WebKit::ProcessLauncher::ProcessLauncher):
3012         * WebProcess/Plugins/PluginView.cpp:
3013         (WebKit::PluginView::unprotectPluginFromDestruction):
3014         (WebKit::derefPluginView): Deleted.
3015
3016 2014-12-16  Andreas Kling  <akling@apple.com>
3017
3018         Use Ref for SecurityOrigin.
3019         <https://webkit.org/b/139710>
3020
3021         Reviewed by Anders Carlsson.
3022
3023         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
3024         (WebKit::UniqueIDBDatabase::databaseFilenameIdentifier):
3025         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3026         (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
3027         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
3028         (WebKit::WebIDBServerConnection::WebIDBServerConnection):
3029         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3030         (WebKit::InjectedBundle::addOriginAccessWhitelistEntry):
3031         (WebKit::InjectedBundle::removeOriginAccessWhitelistEntry):
3032
3033 2014-12-16  Anders Carlsson  <andersca@apple.com>
3034
3035         Remove deprecated StorageNamespaceImpl overloads
3036         https://bugs.webkit.org/show_bug.cgi?id=139713
3037
3038         Reviewed by Andreas Kling.
3039
3040         * WebProcess/Storage/StorageNamespaceImpl.cpp:
3041         (WebKit::StorageNamespaceImpl::storageArea):
3042         (WebKit::StorageNamespaceImpl::copy):
3043         (WebKit::StorageNamespaceImpl::createSessionStorageNamespace): Deleted.
3044         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace): Deleted.
3045         * WebProcess/Storage/StorageNamespaceImpl.h:
3046
3047 2014-12-16  Beth Dakin  <bdakin@apple.com>
3048
3049         Speculative build fix.
3050
3051         * UIProcess/mac/WKImmediateActionController.mm:
3052         (-[WKImmediateActionController _animationControllerForCustomPreview]):
3053
3054 2014-12-16  Beth Dakin  <bdakin@apple.com>
3055
3056         REGRESSION: Preview popovers obscure the link, look wrong
3057         https://bugs.webkit.org/show_bug.cgi?id=139711
3058         -and corresponding-
3059         rdar://problem/19271854
3060
3061         Reviewed by Tim Horton.
3062
3063         Switch to using NSPopoverAnimationController.
3064         * UIProcess/mac/WKImmediateActionController.mm:
3065         (-[WKImmediateActionController _defaultAnimationController]):
3066         (-[WKImmediateActionController _animationControllerForCustomPreview]):
3067
3068 2014-12-16  Timothy Horton  <timothy_horton@apple.com>
3069
3070         Immediate action popovers can get stuck open
3071         https://bugs.webkit.org/show_bug.cgi?id=139709
3072         <rdar://problem/19270279>
3073
3074         Reviewed by Beth Dakin.
3075
3076         * UIProcess/mac/WKImmediateActionController.mm:
3077         (-[WKImmediateActionController _clearImmediateActionState]):
3078         Don't clear the animation controller; it breaks things and was unnecessary.
3079
3080 2014-12-16  Conrad Shultz  <conrad_shultz@apple.com>
3081
3082         Add a progress indicator to the preview popover
3083         https://bugs.webkit.org/show_bug.cgi?id=139699
3084
3085         Reviewed by Tim Horton.
3086
3087         * UIProcess/API/Cocoa/WKViewPrivate.h:
3088         * UIProcess/API/mac/WKView.mm:
3089         (-[WKView _setPreviewLoading:]):
3090         Wrap -[WKImmediateActionController setPreviewLoading:].
3091
3092         * UIProcess/mac/WKImmediateActionController.h:
3093         * UIProcess/mac/WKImmediateActionController.mm:
3094         (-[WKImmediateActionController _createPreviewPopoverIfNeededForURL:]):
3095         Flag the preview view controller as loading before beginning the load.
3096         (-[WKImmediateActionController setPreviewLoading:]):
3097         Wrap -[WKPagePreviewViewController setLoading:].
3098
3099         * UIProcess/mac/WKPagePreviewViewController.h:
3100         * UIProcess/mac/WKPagePreviewViewController.mm:
3101         (-[WKPagePreviewViewController setLoading:]):
3102         Toggle the progress indicator animation state.
3103         (-[WKPagePreviewViewController isLoading]):
3104         Accessor.
3105         (-[WKPagePreviewViewController loadView]):
3106         Create and center an indeterminate progress indicator that won't scale with the preview content.
3107
3108 2014-12-16  Enrica Casucci  <enrica@apple.com>
3109
3110         Fix iOS builders for 8.0
3111         https://bugs.webkit.org/show_bug.cgi?id=139495
3112
3113         Reviewed by Jer Noble
3114
3115         * UIProcess/API/Cocoa/WKWebView.mm:
3116         (-[WKWebView _mayAutomaticallyShowVideoOptimized]):
3117         * UIProcess/WebPageProxy.cpp:
3118         (WebKit::WebPageProxy::WebPageProxy):
3119         (WebKit::WebPageProxy::reattachToWebProcess):
3120         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
3121
3122 2014-12-16  Gavin Barraclough  <barraclough@apple.com>
3123
3124         Move Mac process suppression from WebCore to WebKit2
3125         https://bugs.webkit.org/show_bug.cgi?id=139705
3126
3127         Reviewed by Geoff Garen.
3128
3129         Currently PageThrottler constructs the PageActivityState, holds a copy of the ViewState,
3130         and an optional UserActivity.
3131
3132         Instead, still construct the PageActivityState but just pass this out via the Page to WebPage.
3133         Logic From PageThrottler::updateUserActivity merged into WebPage::updateUserActivity.
3134
3135         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3136         (WebKit::WebChromeClient::setPageActivityState):
3137             - added to propagate PageActivityState to WebPage.
3138         * WebProcess/WebCoreSupport/WebChromeClient.h:
3139             - added setPageActivityState to propagate PageActivityState to WebPage.
3140         * WebProcess/WebPage/WebPage.cpp:
3141         (WebKit::WebPage::WebPage):
3142             - calls to updateUserActivity.
3143         (WebKit::WebPage::setPageActivityState):
3144             - calls to updateUserActivity.
3145         (WebKit::WebPage::updateUserActivity):
3146             - incorporate logic from PageThrottler::updateUserActivity.
3147         (WebKit::WebPage::setViewState):
3148             - calls to updateUserActivity.
3149         (WebKit::WebPage::updatePreferences):
3150             - calls to updateUserActivity.
3151         * WebProcess/WebPage/WebPage.h:
3152             - added setPageActivityState, m_activityState.
3153
3154 2014-12-16  Anders Carlsson  <andersca@apple.com>
3155
3156         More StorageManager modernization
3157         https://bugs.webkit.org/show_bug.cgi?id=139704
3158
3159         Reviewed by Andreas Kling.
3160
3161         * UIProcess/Storage/StorageManager.cpp:
3162         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
3163         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
3164         (WebKit::StorageManager::createSessionStorageMap):
3165         (WebKit::StorageManager::destroyStorageMap):
3166         (WebKit::StorageManager::findStorageArea):
3167         (WebKit::StorageManager::getOrCreateLocalStorageNamespace):
3168
3169 2014-12-16  Anders Carlsson  <andersca@apple.com>
3170
3171         Use Ref in another StorageManager function
3172         https://bugs.webkit.org/show_bug.cgi?id=139700
3173
3174         Reviewed by Andreas Kling.
3175
3176         * UIProcess/Storage/StorageManager.cpp:
3177         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
3178
3179 2014-12-16  Anders Carlsson  <andersca@apple.com>
3180
3181         Use Ref in StorageManager
3182         https://bugs.webkit.org/show_bug.cgi?id=139698
3183
3184         Reviewed by Andreas Kling.
3185
3186         * UIProcess/Storage/StorageManager.cpp:
3187         (WebKit::StorageManager::TransientLocalStorageNamespace::create):
3188         (WebKit::StorageManager::TransientLocalStorageNamespace::getOrCreateStorageArea):
3189         (WebKit::StorageManager::StorageArea::create):
3190         (WebKit::StorageManager::StorageArea::clone):
3191         (WebKit::StorageManager::LocalStorageNamespace::create):
3192         (WebKit::StorageManager::SessionStorageNamespace::create):
3193         (WebKit::StorageManager::create):
3194         * UIProcess/Storage/StorageManager.h:
3195
3196 2014-12-16  Gavin Barraclough  <barraclough@apple.com>
3197
3198         Split UserActivity from disabled flag in WebPage
3199         https://bugs.webkit.org/show_bug.cgi?id=139696
3200
3201         Reviewed by Geoffrey Garen.
3202
3203         In preparation for other things driving the UserActivity.
3204
3205         * WebProcess/WebPage/WebPage.cpp:
3206         (WebKit::WebPage::WebPage):
3207             - initialize new members.
3208         (WebKit::WebPage::updateUserActivity):
3209             - start/stop the m_userActivity, based on m_processSupressionEnabled
3210         (WebKit::WebPage::updatePreferences):
3211             - call updateUserActivity to account for m_processSupressionEnabled changes.
3212         * WebProcess/WebPage/WebPage.h:
3213             - split m_processSuppressionDisabledByWebPreference -> m_processSupressionEnabled, m_userActivity.
3214
3215 2014-12-16  Anders Carlsson  <andersca@apple.com>
3216
3217         Get rid of PassRefPtr inside StorageManager
3218         https://bugs.webkit.org/show_bug.cgi?id=139693
3219
3220         Reviewed by Andreas Kling.
3221
3222         * UIProcess/Storage/StorageManager.cpp:
3223         (WebKit::StorageManager::TransientLocalStorageNamespace::getOrCreateStorageArea):
3224         (WebKit::StorageManager::StorageArea::create):
3225         (WebKit::StorageManager::StorageArea::StorageArea):
3226         (WebKit::StorageManager::StorageArea::clone):
3227         (WebKit::StorageManager::LocalStorageNamespace::create):
3228         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
3229         (WebKit::StorageManager::SessionStorageNamespace::create):
3230         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
3231         (WebKit::StorageManager::create):
3232         * UIProcess/Storage/StorageManager.h:
3233
3234 2014-12-16  Tim Horton  <timothy_horton@apple.com>
3235
3236         Disable TextIndication for Lookup immediate actions
3237         https://bugs.webkit.org/show_bug.cgi?id=139684
3238
3239         Reviewed by Anders Carlsson.
3240
3241         * UIProcess/mac/WKImmediateActionController.mm:
3242         (-[WKImmediateActionController _animationControllerForText]):
3243
3244 2014-12-16  Dan Bernstein  <mitz@apple.com>
3245
3246         [Cocoa] WKWebProcessPlugInLoadDelegate can’t tell what type of same-document navigation has happened
3247         https://bugs.webkit.org/show_bug.cgi?id=139669
3248
3249         Reviewed by Anders Carlsson.
3250
3251         * Shared/API/Cocoa/_WKSameDocumentNavigationType.h: Added. Moved the
3252         _WKSameDocumentNavigationType type definition here from WKNavigationDelegatePrivate.h.
3253         * Shared/API/Cocoa/_WKSameDocumentNavigationTypeInternal.h: Added.
3254         (WebKit::toWKSameDocumentNavigationType): Moved from NavigationState.mm.
3255
3256         * Shared/API/c/WKSharedAPICast.h:
3257         (WebKit::toSameDocumentNavigationType): Added this conversion helper.
3258
3259         * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h: Added #import.
3260
3261         * UIProcess/Cocoa/NavigationState.mm:
3262         (WebKit::toWKSameDocumentNavigationType): Deleted.
3263
3264         * WebKit2.xcodeproj/project.pbxproj: Updated for added headers.
3265
3266         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h: Declared new
3267         delegate method that take a navigation type parameter.
3268
3269         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
3270         (didSameDocumentNavigationForFrame): Changed to call the new delegate method, passing the
3271         navigation type.
3272
3273 2014-12-16  Carlos Garcia Campos  <cgarcia@igalia.com>
3274
3275         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.7.3 release.
3276
3277         * gtk/NEWS: Add release notes for 2.7.3.
3278
3279 2014-12-16  Antti Koivisto  <antti@apple.com>
3280
3281         WebKit level persistent caching
3282         https://bugs.webkit.org/show_bug.cgi?id=30322
3283
3284         Minor cleanups based on comments by Joseph Pecoraro.
3285
3286         * NetworkProcess/cache/NetworkCache.cpp:
3287         (WebKit::decodeStorageEntry):
3288         * NetworkProcess/cache/NetworkCache.h:
3289         * NetworkProcess/cache/NetworkCacheStorage.h:
3290         * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
3291         (WebKit::NetworkProcess::platformInitializeNetworkProcessCocoa):
3292
3293 2014-12-15  Bartlomiej Gajda  <b.gajda@samsung.com>
3294
3295         Build fix after r177301.
3296         https://bugs.webkit.org/show_bug.cgi?id=139666
3297
3298         Reviewed by Gyuyoung Kim.
3299
3300         * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
3301         (WebKit::WebPage::findZoomableAreaForPoint):
3302
3303 2014-12-15  Simon Fraser  <simon.fraser@apple.com>
3304
3305         [iOS WK2] Possible crash when setting the WKWebViews's scroll view delegate, if the scroll view outlives the web view
3306         https://bugs.webkit.org/show_bug.cgi?id=139662
3307         rdar://problem/18083882
3308
3309         Reviewed by Benjamin Poulain.
3310         
3311         Null out the internal delegate on the WKScrollView when the WKWebView goes away, since
3312         it's possible for a client to set its own scroll view delegate, forcing the creation of
3313         a WKScrollViewDelegateForwarder, and then retain the UIScrollView past the lifetime of
3314         the WKWebView. In this situation, the WKScrollViewDelegateForwarder's internalDelegate
3315         would point to a deleted WKWebView.
3316
3317         * UIProcess/API/Cocoa/WKWebView.mm:
3318         (-[WKWebView dealloc]):
3319
3320 2014-12-15  Beth Dakin  <bdakin@apple.com>
3321
3322         Make lookup an immediate action instead of an action menu item
3323         https://bugs.webkit.org/show_bug.cgi?id=139661
3324         -and corresponding-
3325         rdar://problem/19198414
3326
3327         Reviewed by Tim Horton.
3328
3329         New type.
3330         * Shared/API/c/WKImmediateActionTypes.h:
3331
3332         ActionMenuHitTestResult now includes a DictionaryPopupInfo.
3333         * Shared/mac/ActionMenuHitTestResult.h:
3334         * Shared/mac/ActionMenuHitTestResult.mm:
3335         (WebKit::ActionMenuHitTestResult::encode):
3336         (WebKit::ActionMenuHitTestResult::decode):
3337
3338         Remove all lookup menu items.
3339         * UIProcess/mac/WKActionMenuController.mm:
3340         (-[WKActionMenuController _defaultMenuItemsForText]):
3341         (-[WKActionMenuController _defaultMenuItemsForEditableText]):
3342         (-[WKActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]):
3343         (-[WKActionMenuController _createActionMenuItemForTag:]):
3344         (-[WKActionMenuController _lookupText:]): Deleted.
3345
3346         Set the defaultAnimationController to the lookup-provided animation controller 
3347         when appropriate.
3348         * UIProcess/mac/WKImmediateActionController.mm:
3349         (-[WKImmediateActionController _defaultAnimationController]):
3350         (-[WKImmediateActionController _animationControllerForText]):
3351
3352         Re-factor performDictionaryLookupForRange() so that most of the work is done in a 
3353         new function called dictionaryPopupInfoForRange(). This was that code can be used 
3354         for both performing a dictionary lookup and just getting the DictionaryPopupInfo 
3355         for the ActionMenuHitTest.
3356         * WebProcess/WebPage/WebPage.h:
3357         * WebProcess/WebPage/mac/WebPageMac.mm:
3358         (WebKit::WebPage::dictionaryPopupInfoForRange):
3359         (WebKit::WebPage::performDictionaryLookupForRange):
3360         (WebKit::WebPage::performActionMenuHitTestAtLocation):
3361         (WebKit::WebPage::lookupTextAtLocation):
3362
3363 2014-12-15  Matt Baker  <mattbaker@apple.com>
3364
3365         Web Inspector: Docked inspector repositioned incorrectly when dragging frame borders
3366         https://bugs.webkit.org/show_bug.cgi?id=139415
3367
3368         Reviewed by Joseph Pecoraro.
3369
3370         The _ignoreNextInspectedViewFrameDidChange flag wasn't set back to NO after
3371         being tested by inspectedViewFrameDidChange.
3372
3373         * UIProcess/mac/WebInspectorProxyMac.mm:
3374         (-[WKWebInspectorProxyObjCAdapter inspectedViewFrameDidChange:]):
3375
3376 2014-12-15  Gavin Barraclough  <barraclough@apple.com>
3377
3378         Simplify tracking of process suppression disabled for PluginProcessManager
3379         https://bugs.webkit.org/show_bug.cgi?id=139611
3380
3381         Unreviewed gtk/efl build fix.
3382
3383         * UIProcess/Plugins/PluginProcessManager.h:
3384             - missing #ifdef
3385
3386 2014-12-15  Timothy Horton  <timothy_horton@apple.com>
3387
3388         Implement Data Detectors immediate actions for WebKit2
3389         https://bugs.webkit.org/show_bug.cgi?id=139617
3390         <rdar://problem/19198539>
3391
3392         Reviewed by Beth Dakin.
3393
3394         * UIProcess/mac/WKImmediateActionController.mm:
3395         (-[WKImmediateActionController _menuItemForDataDetectedText]):
3396         Note that this action context is only for immediate actions.
3397
3398 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
3399
3400         Addressing post-review comments in r177035
3401         https://bugs.webkit.org/show_bug.cgi?id=139557
3402
3403         Reviewed by Darin Adler.
3404
3405         * Shared/WebHitTestResult.cpp:
3406         (WebKit::WebHitTestResult::Data::elementBoundingBoxInWindowCoordinates): Migrate off rendererBoundingBox().
3407         * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
3408         (WebKit::WebPage::findZoomableAreaForPoint): Ditto.
3409
3410 2014-12-15  Timothy Horton  <timothy_horton@apple.com>
3411
3412         Implement Data Detectors immediate actions for WebKit2
3413         https://bugs.webkit.org/show_bug.cgi?id=139617
3414         <rdar://problem/19198539>
3415
3416         Reviewed by Beth Dakin.
3417
3418         * Shared/API/c/WKImmediateActionTypes.h:
3419         Add a new type.
3420
3421         * UIProcess/API/mac/WKView.mm:
3422         (-[WKView mouseDown:]):
3423         Send mouseDown along to the WKImmediateActionController too.
3424
3425         (-[WKView initWithFrame:context:configuration:webView:]):
3426         Temporarily disable action menus.
3427
3428         (-[WKView _dismissContentRelativeChildWindows]):
3429         Hide the immediate action preview when detaching child windows.
3430
3431         * UIProcess/mac/WKImmediateActionController.h:
3432         * UIProcess/mac/WKImmediateActionController.mm:
3433         (-[WKImmediateActionController willDestroyView:]):
3434         Clear the DDActionContext when tearing down the view.
3435
3436         (-[WKImmediateActionController wkView:willHandleMouseDown:]):
3437         (-[WKImmediateActionController _cancelImmediateAction]):
3438         (-[WKImmediateActionController _clearImmediateActionState]):
3439         (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
3440         (-[WKImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
3441         (-[WKImmediateActionController _defaultAnimationController]):
3442         (-[WKImmediateActionController _updateImmediateActionItem]):
3443         (-[WKImmediateActionController hidePreview]):
3444         (-[WKImmediateActionController popoverWillClose:]):
3445         (-[WKImmediateActionController _menuItemForDataDetectedText]):
3446         Copy most of the DataDetectors implementation into WKImmediateActionController.
3447
3448 2014-12-15  Myles C. Maxfield  <mmaxfield@apple.com>
3449
3450         Delete Notation because we don't use it
3451         https://bugs.webkit.org/show_bug.cgi?id=139171
3452
3453         Reviewed by Kent Tamura.
3454
3455         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
3456         (WebKit::WKDOMNodeClass):
3457         * mac/MigrateHeadersFromWebKitLegacy.make:
3458
3459 2014-12-15  David Kilzer  <ddkilzer@apple.com>
3460
3461         Remove last references to OfflineStorage process
3462         <http://webkit.org/b/139648>
3463
3464         Reviewed by Anders Carlsson.
3465
3466         * WebKit2.xcodeproj/project.pbxproj: Remove last references to
3467         the OfflineStorage process.  See r154251 and r154256.
3468
3469 2014-12-15  Gavin Barraclough  <barraclough@apple.com>
3470
3471         Change HysteresisActivity to use a lambda
3472         https://bugs.webkit.org/show_bug.cgi?id=139636
3473
3474         Reviewed by Darin Adler.
3475
3476         The current implementation provides notifications via callbacks to a delegate. Using a delegate
3477         with callbacks is limiting a number of ways. The callback names are very ambiguous, the callbacks
3478         must either be on a separate object (more boilerplate), or the callback must be public for
3479         HysteresisActivity to call them, or friends get involved. Without the boilerplate of extra
3480         delegate objects it's hard to scale use of these objects - a single object can't serve as a
3481         delegate for multiple HysteresisActivity members.
3482
3483         Instead, make HysteresisActivity take a lambda to callback on state change. To simplify, changed
3484         HysteresisState to only track Started/Stopped states (removed WillStopPendingTimeout).
3485
3486         * WebProcess/WebCoreSupport/WebSQLiteDatabaseTracker.cpp:
3487         (WebKit::WebSQLiteDatabaseTracker::WebSQLiteDatabaseTracker):
3488             - HysteresisActivity now takes a lambda, not a delegate.
3489         (WebKit::WebSQLiteDatabaseTracker::hysteresisUpdated):
3490         (WebKit::WebSQLiteDatabaseTracker::started): Deleted.
3491         (WebKit::WebSQLiteDatabaseTracker::stopped): Deleted.
3492        &nbs