Turn on gesture events when building for Yosemite
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2016-01-04  Tim Horton  <timothy_horton@apple.com>
2
3         Turn on gesture events when building for Yosemite
4         https://bugs.webkit.org/show_bug.cgi?id=152704
5         rdar://problem/24042472
6
7         Reviewed by Anders Carlsson.
8
9         * Configurations/FeatureDefines.xcconfig:
10
11 2016-01-04  Tim Horton  <timothy_horton@apple.com>
12
13         Hardware keyboard key-commands stop responding when viewing PDFs
14         https://bugs.webkit.org/show_bug.cgi?id=152712
15         <rdar://problem/23014457>
16
17         Reviewed by Dan Bernstein.
18
19         Maintain first responder status through any content view swapping, by
20         making WKWebView become first responder if needed, and pushing first
21         responder status down to the swapped-in content view if possible.
22
23         * UIProcess/API/Cocoa/WKWebView.mm:
24         (-[WKWebView becomeFirstResponder]):
25         Make the current content view first responder instead of the WKContentView,
26         in case we have a custom content view installed.
27
28         (-[WKWebView canBecomeFirstResponder]):
29         WKWebView can always become first responder, even if none of its children can.
30         This makes it so that if a custom content view can't become first responder,
31         WKWebView will take the responsibility.
32
33         (-[WKWebView _setHasCustomContentView:loadedMIMEType:]):
34         Return the responsibility of being first responder to the newly-installed
35         content view if WKWebView is currently the first responder (either because
36         of tab switching or because the previous content view did not support
37         being first responder), if it supports being first responder.
38
39 2016-01-04  Commit Queue  <commit-queue@webkit.org>
40
41         Unreviewed, rolling out r194544.
42         https://bugs.webkit.org/show_bug.cgi?id=152711
43
44         This change caused assertions in existing inspector tests
45         (Requested by ryanhaddad on #webkit).
46
47         Reverted changeset:
48
49         "Web Inspector: reproducible debug ASSERT when inspecting the
50         inspector (WK2)"
51         https://bugs.webkit.org/show_bug.cgi?id=152080
52         http://trac.webkit.org/changeset/194544
53
54 2016-01-04  Alex Christensen  <achristensen@webkit.org>
55
56         Fix Mac CMake build after r194378.
57
58         * CMakeLists.txt:
59
60 2016-01-04  Brian Burg  <bburg@apple.com>
61
62         Web Inspector: reproducible debug ASSERT when inspecting the inspector (WK2)
63         https://bugs.webkit.org/show_bug.cgi?id=152080
64
65         Reviewed by Timothy Hatcher.
66
67         We hit an assert underneath ChildProcessProxy::addMessageReceiver when opening Inspector[2]
68         because we try to add WebInpectorProxy as a message receiver twice for the same process.
69
70         On investigating, I found several interrelated issues that caused this state of affairs:
71
72          - WebInspectorProxy adds message receivers for inspector page's WebProcess and the
73         inspected page's WebProcess. When inspecting the inspector, we mistakenly add a receiver
74         again because the inspector is now the inspected page.
75          - We mixed up process ids when adding message receivers.
76          - invalidate() is re-entrant, causing us to try and double-remove the message receiver.
77
78         Fix this by removing add/remove of message recievers for the inspector page when then
79         inspected page is itself an inspector page. In that case, the receivers are managed by
80         the inspector page's WebInspectorProxy instance.
81
82         * UIProcess/WebInspectorProxy.cpp:
83         (WebKit::WebInspectorProxy::invalidate): Re-arrange to guard against useless reentrancy.
84         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
85         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
86         (WebKit::WebInspectorProxy::didClose):
87
88 2016-01-04  Alex Christensen  <achristensen@webkit.org>
89
90         Build fix after r194536 when using NetworkSession.
91
92         * NetworkProcess/Downloads/DownloadManager.cpp:
93         (WebKit::DownloadManager::dataTaskBecameDownloadTask):
94         (WebKit::DownloadManager::convertHandleToDownload):
95         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
96         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
97         WTFMove changed underneath me.
98
99 2016-01-04  Alex Christensen  <achristensen@webkit.org>
100
101         Progress towards implementing downloads with NetworkSession
102         https://bugs.webkit.org/show_bug.cgi?id=152576
103
104         Reviewed by Brady Eidson.
105
106         * NetworkProcess/Downloads/Download.cpp:
107         (WebKit::Download::Download):
108         (WebKit::Download::~Download):
109         (WebKit::Download::didStart):
110         (WebKit::Download::didReceiveAuthenticationChallenge):
111         * NetworkProcess/Downloads/Download.h:
112         (WebKit::Download::downloadID):
113         * NetworkProcess/Downloads/DownloadManager.cpp:
114         (WebKit::DownloadManager::startDownload):
115         (WebKit::DownloadManager::dataTaskBecameDownloadTask):
116         (WebKit::DownloadManager::convertHandleToDownload):
117         * NetworkProcess/Downloads/DownloadManager.h:
118         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
119         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
120         * NetworkProcess/NetworkLoad.cpp:
121         (WebKit::NetworkLoad::convertTaskToDownload):
122         * NetworkProcess/NetworkLoad.h:
123         * NetworkProcess/NetworkSession.h:
124         (WebKit::NetworkDataTask::client):
125         (WebKit::NetworkDataTask::clearClient):
126         (WebKit::NetworkDataTask::downloadID):
127         (WebKit::NetworkDataTask::setDownloadID):
128         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
129         (-[WKNetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
130         (-[WKNetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
131
132 2016-01-04  Michael Catanzaro  <mcatanzaro@igalia.com>
133
134         [GTK] Rename _WebKitWebContextPrivate.context to _WebKitWebContextPrivate.processPool
135         https://bugs.webkit.org/show_bug.cgi?id=152672
136
137         Reviewed by Carlos Garcia Campos.
138
139         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
140         (attachDownloadClientToContext):
141         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
142         (attachInjectedBundleClientToContext):
143         * UIProcess/API/gtk/WebKitSecurityManager.cpp:
144         (registerSecurityPolicyForURIScheme):
145         * UIProcess/API/gtk/WebKitWebContext.cpp:
146         (webkitWebContextConstructed):
147         (webkitWebContextDispose):
148         (webkit_web_context_set_cache_model):
149         (webkit_web_context_get_cache_model):
150         (webkit_web_context_clear_cache):
151         (webkit_web_context_get_cookie_manager):
152         (ensureFaviconDatabase):
153         (webkit_web_context_set_favicon_database_directory):
154         (webkit_web_context_set_additional_plugins_directory):
155         (webkitWebContextGetPluginThread):
156         (webkit_web_context_set_tls_errors_policy):
157         (webkit_web_context_set_disk_cache_directory):
158         (webkit_web_context_prefetch_dns):
159         (webkit_web_context_allow_tls_certificate_for_host):
160         (webkit_web_context_set_process_model):
161         (webkit_web_context_set_web_process_count_limit):
162         (webkitWebContextStartDownload):
163         (webkitWebContextGetProcessPool):
164         (webkitWebContextCreatePageForWebView):
165         (webkitWebContextGetContext): Deleted.
166         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
167
168 2016-01-03  Simon Fraser  <simon.fraser@apple.com>
169
170         Rename scrollPosition(Scrollbar*) to scrollOffset(ScrollbarOrientation)
171         https://bugs.webkit.org/show_bug.cgi?id=152666
172
173         Reviewed by Dan Bernstein.
174
175         Scrollbar values take offsets (zero-based), so rename the accessor used
176         by scrollbars to set their value, and pass in an orientation, rather than
177         a pointer to the scrollbar.
178
179         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
180         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
181         (WebKit::PDFPlugin::scrollOffset):
182         (WebKit::PDFPlugin::scrollPosition): Renamed.
183
184 2015-12-31  Andy Estes  <aestes@apple.com>
185
186         Replace WTF::move with WTFMove
187         https://bugs.webkit.org/show_bug.cgi?id=152601
188
189         Reviewed by Brady Eidson.
190
191         * DatabaseProcess/DatabaseProcess.cpp:
192         (WebKit::DatabaseProcess::postDatabaseTask):
193         (WebKit::DatabaseProcess::fetchWebsiteData):
194         (WebKit::DatabaseProcess::deleteWebsiteData):
195         (WebKit::DatabaseProcess::deleteWebsiteDataForOrigins):
196         (WebKit::DatabaseProcess::indexedDatabaseOrigins):
197         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
198         (WebKit::UniqueIDBDatabase::postTransactionOperation):
199         (WebKit::UniqueIDBDatabase::postMainThreadTask):
200         (WebKit::UniqueIDBDatabase::postDatabaseTask):
201         * NetworkProcess/Downloads/DownloadManager.cpp:
202         (WebKit::DownloadManager::startDownload):
203         (WebKit::DownloadManager::convertHandleToDownload):
204         (WebKit::DownloadManager::resumeDownload):
205         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
206         (WebKit::NetworkServiceInitializerDelegate::NetworkServiceInitializerDelegate):
207         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
208         (WebKit::NetworkBlobRegistry::registerBlobURL):
209         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
210         (WebKit::NetworkConnectionToWebProcess::performSynchronousLoad):
211         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
212         * NetworkProcess/NetworkLoad.cpp:
213         (WebKit::NetworkLoad::didReceiveData):
214         (WebKit::NetworkLoad::didReceiveBuffer):
215         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
216         * NetworkProcess/NetworkProcess.cpp:
217         (WebKit::fetchDiskCacheEntries):
218         (WebKit::NetworkProcess::fetchWebsiteData):
219         (WebKit::NetworkProcess::deleteWebsiteData):
220         (WebKit::clearDiskCacheEntries):
221         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
222         * NetworkProcess/NetworkResourceLoader.cpp:
223         (WebKit::NetworkResourceLoader::SynchronousLoadData::SynchronousLoadData):
224         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
225         (WebKit::NetworkResourceLoader::retrieveCacheEntry):
226         (WebKit::NetworkResourceLoader::didFinishLoading):
227         (WebKit::NetworkResourceLoader::tryStoreAsCacheEntry):
228         (WebKit::NetworkResourceLoader::validateCacheEntry):
229         * NetworkProcess/NetworkResourceLoader.h:
230         * NetworkProcess/cache/NetworkCache.cpp:
231         (WebKit::NetworkCache::Cache::retrieve):
232         (WebKit::NetworkCache::Cache::store):
233         (WebKit::NetworkCache::Cache::clear):
234         * NetworkProcess/cache/NetworkCacheCoders.h:
235         * NetworkProcess/cache/NetworkCacheDataSoup.cpp:
236         (WebKit::NetworkCache::Data::empty):
237         (WebKit::NetworkCache::Data::subrange):
238         (WebKit::NetworkCache::concatenate):
239         (WebKit::NetworkCache::Data::adoptMap):
240         * NetworkProcess/cache/NetworkCacheEntry.cpp:
241         (WebKit::NetworkCache::Entry::Entry):
242         * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp:
243         (WebKit::NetworkCache::runTaskInQueue):
244         (WebKit::NetworkCache::fillDataFromReadBuffer):
245         (WebKit::NetworkCache::IOChannel::readSyncInThread):
246         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
247         (WebKit::NetworkCache::SpeculativeLoad::SpeculativeLoad):
248         (WebKit::NetworkCache::SpeculativeLoad::didFinishLoading):
249         (WebKit::NetworkCache::SpeculativeLoad::didComplete):
250         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
251         (WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
252         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):
253         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::takeCacheEntry):
254         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::create):
255         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::setExistingSubresourcesEntry):
256         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::PendingFrameLoad):
257         (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
258         (WebKit::NetworkCache::SpeculativeLoadManager::addPreloadedEntry):
259         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveEntryFromStorage):
260         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry):
261         (WebKit::NetworkCache::SpeculativeLoadManager::preloadEntry):
262         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
263         * NetworkProcess/cache/NetworkCacheStatistics.cpp:
264         (WebKit::NetworkCache::Statistics::queryWasEverRequested):
265         * NetworkProcess/cache/NetworkCacheStorage.cpp:
266         (WebKit::NetworkCache::Storage::ReadOperation::finish):
267         (WebKit::NetworkCache::Storage::synchronize):
268         (WebKit::NetworkCache::Storage::dispatchReadOperation):
269         (WebKit::NetworkCache::Storage::dispatchWriteOperation):
270         (WebKit::NetworkCache::Storage::retrieve):
271         (WebKit::NetworkCache::Storage::store):
272         (WebKit::NetworkCache::Storage::traverse):
273         (WebKit::NetworkCache::Storage::clear):
274         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
275         (WebKit::NetworkCache::SubresourcesEntry::SubresourcesEntry):
276         (WebKit::NetworkCache::SubresourcesEntry::updateSubresourceKeys):
277         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
278         (WebKit::NetworkDataTask::NetworkDataTask):
279         * NetworkProcess/soup/NetworkProcessSoup.cpp:
280         (WebKit::NetworkProcess::clearDiskCache):
281         * Platform/IPC/ArgumentCoders.h:
282         (IPC::ArgumentCoder<WTF::Optional<T>>::decode):
283         * Platform/IPC/ArgumentDecoder.cpp:
284         (IPC::ArgumentDecoder::ArgumentDecoder):
285         * Platform/IPC/ArgumentEncoder.cpp:
286         (IPC::ArgumentEncoder::addAttachment):
287         (IPC::ArgumentEncoder::releaseAttachments):
288         * Platform/IPC/Attachment.cpp:
289         (IPC::Attachment::encode):
290         * Platform/IPC/Connection.cpp:
291         (IPC::Connection::SyncMessageState::processIncomingMessage):
292         (IPC::Connection::SyncMessageState::dispatchMessages):
293         (IPC::Connection::dispatchWorkQueueMessageReceiverMessage):
294         (IPC::Connection::sendMessage):
295         (IPC::Connection::sendSyncReply):
296         (IPC::Connection::waitForMessage):
297         (IPC::Connection::sendSyncMessage):
298         (IPC::Connection::sendSyncMessageFromSecondaryThread):
299         (IPC::Connection::waitForSyncReply):
300         (IPC::Connection::processIncomingSyncReply):
301         (IPC::Connection::processIncomingMessage):
302         (IPC::Connection::sendOutgoingMessages):
303         (IPC::Connection::dispatchSyncMessage):
304         (IPC::Connection::enqueueIncomingMessage):
305         (IPC::Connection::dispatchOneMessage):
306         * Platform/IPC/Connection.h:
307         (IPC::Connection::Identifier::Identifier):
308         (IPC::Connection::send):
309         (IPC::Connection::sendSync):
310         * Platform/IPC/HandleMessage.h:
311         (IPC::handleMessage):
312         (IPC::handleMessageDelayed):
313         * Platform/IPC/MessageDecoder.cpp:
314         (IPC::MessageDecoder::MessageDecoder):
315         (IPC::MessageDecoder::setImportanceAssertion):
316         (IPC::MessageDecoder::unwrapForTesting):
317         * Platform/IPC/MessageDecoder.h:
318         (IPC::MessageDecoder::setMessageProcessingToken):
319         * Platform/IPC/MessageEncoder.cpp:
320         (IPC::MessageEncoder::wrapForTesting):
321         * Platform/IPC/MessageRecorder.cpp:
322         (IPC::MessageRecorder::recordOutgoingMessage):
323         (IPC::MessageRecorder::recordIncomingMessage):
324         (IPC::MessageRecorder::MessageProcessingToken::MessageProcessingToken):
325         * Platform/IPC/MessageSender.cpp:
326         (IPC::MessageSender::sendMessage):
327         * Platform/IPC/MessageSender.h:
328         (IPC::MessageSender::send):
329         (IPC::MessageSender::sendSync):
330         * Platform/IPC/glib/GSocketMonitor.cpp:
331         (IPC::GSocketMonitor::start):
332         * Platform/IPC/mac/ConnectionMac.mm:
333         (IPC::Connection::open):
334         (IPC::createMessageDecoder):
335         (IPC::Connection::receiveSourceEventHandler):
336         * Platform/IPC/unix/ConnectionUnix.cpp:
337         (IPC::Connection::processMessage):
338         * Platform/unix/SharedMemoryUnix.cpp:
339         (WebKit::SharedMemory::Handle::decode):
340         (WebKit::SharedMemory::Handle::releaseAttachment):
341         (WebKit::SharedMemory::Handle::adoptAttachment):
342         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
343         (WebKit::PluginServiceInitializerDelegate::PluginServiceInitializerDelegate):
344         * PluginProcess/PluginProcess.cpp:
345         (WebKit::PluginProcess::initializePluginProcess):
346         * PluginProcess/WebProcessConnection.cpp:
347         (WebKit::WebProcessConnection::addPluginControllerProxy):
348         (WebKit::WebProcessConnection::createPluginInternal):
349         * PluginProcess/mac/PluginProcessMac.mm:
350         (WebKit::PluginProcess::platformInitializePluginProcess):
351         * Scripts/webkit/LegacyMessageReceiver-expected.cpp:
352         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
353         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::send):
354         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
355         (Messages::WebPage::TestMultipleAttributes::DelayedReply::send):
356         * Scripts/webkit/MessageReceiver-expected.cpp:
357         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::DelayedReply):
358         (Messages::WebPage::GetPluginProcessConnection::DelayedReply::send):
359         (Messages::WebPage::TestMultipleAttributes::DelayedReply::DelayedReply):
360         (Messages::WebPage::TestMultipleAttributes::DelayedReply::send):
361         * Scripts/webkit/messages.py:
362         (generate_message_handler):
363         * Shared/API/APIArray.cpp:
364         (API::Array::create):
365         (API::Array::createStringArray):
366         (API::Array::copy):
367         * Shared/API/APIArray.h:
368         * Shared/API/APIDictionary.cpp:
369         (API::Dictionary::create):
370         (API::Dictionary::Dictionary):
371         (API::Dictionary::keys):
372         * Shared/API/APIPageGroupHandle.cpp:
373         (API::PageGroupHandle::create):
374         (API::PageGroupHandle::PageGroupHandle):
375         (API::PageGroupHandle::decode):
376         * Shared/API/APIString.h:
377         * Shared/API/APIURL.h:
378         (API::URL::create):
379         (API::URL::URL):
380         * Shared/API/Cocoa/RemoteObjectInvocation.h:
381         (WebKit::RemoteObjectInvocation::ReplyInfo::ReplyInfo):
382         * Shared/API/Cocoa/RemoteObjectInvocation.mm:
383         (WebKit::RemoteObjectInvocation::RemoteObjectInvocation):
384         (WebKit::RemoteObjectInvocation::decode):
385         * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
386         (ensureObjectStream):
387         (createEncodedObject):
388         * Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
389         (initializeMethod):
390         (-[_WKRemoteObjectInterface setClasses:forSelector:argumentIndex:ofReply:]):
391         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
392         (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
393         * Shared/API/c/WKArray.cpp:
394         (WKArrayCreate):
395         (WKArrayCreateAdoptingValues):
396         * Shared/API/c/WKDictionary.cpp:
397         (WKDictionaryCreate):
398         * Shared/API/c/WKSharedAPICast.h:
399         (WebKit::ProxyingRefPtr::ProxyingRefPtr):
400         * Shared/APIWebArchive.mm:
401         (API::WebArchive::WebArchive):
402         (API::WebArchive::subresources):
403         (API::WebArchive::subframeArchives):
404         * Shared/AsyncRequest.cpp:
405         (WebKit::AsyncRequest::AsyncRequest):
406         (WebKit::AsyncRequest::setAbortHandler):
407         * Shared/AsyncRequest.h:
408         * Shared/BlockingResponseMap.h:
409         (BlockingResponseMap::didReceiveResponse):
410         * Shared/ChildProcessProxy.cpp:
411         (WebKit::ChildProcessProxy::sendMessage):
412         (WebKit::ChildProcessProxy::didFinishLaunching):
413         * Shared/ChildProcessProxy.h:
414         (WebKit::ChildProcessProxy::send):
415         (WebKit::ChildProcessProxy::sendSync):
416         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
417         (WebKit::CoordinatedGraphicsScene::dispatchOnMainThread):
418         (WebKit::CoordinatedGraphicsScene::dispatchOnClientRunLoop):
419         (WebKit::CoordinatedGraphicsScene::createLayer):
420         (WebKit::CoordinatedGraphicsScene::syncRemoteContent):
421         (WebKit::CoordinatedGraphicsScene::appendUpdate):
422         * Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp:
423         (WebKit::ThreadSafeCoordinatedSurface::create):
424         (WebKit::ThreadSafeCoordinatedSurface::ThreadSafeCoordinatedSurface):
425         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
426         (WebKit::CompositingRunLoop::CompositingRunLoop):
427         (WebKit::CompositingRunLoop::callOnCompositingRunLoop):
428         (WebKit::ThreadedCompositor::callOnCompositingThread):
429         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
430         (WebKit::XPCServiceInitializerDelegate::XPCServiceInitializerDelegate):
431         (WebKit::XPCServiceInitializer):
432         * Shared/Plugins/Netscape/PluginInformation.cpp:
433         (WebKit::createPluginInformationDictionary):
434         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.h:
435         (WebKit::RemoteScrollingCoordinatorTransaction::setStateTreeToEncode):
436         * Shared/SessionTracker.cpp:
437         (WebKit::SessionTracker::setSession):
438         * Shared/UserData.cpp:
439         (WebKit::UserData::UserData):
440         (WebKit::transformGraph):
441         (WebKit::UserData::decode):
442         * Shared/WebBackForwardListItem.cpp:
443         (WebKit::WebBackForwardListItem::create):
444         (WebKit::WebBackForwardListItem::WebBackForwardListItem):
445         * Shared/WebBackForwardListItem.h:
446         (WebKit::WebBackForwardListItem::setPageState):
447         * Shared/WebCompiledContentExtension.cpp:
448         (WebKit::WebCompiledContentExtension::create):
449         (WebKit::WebCompiledContentExtension::WebCompiledContentExtension):
450         * Shared/WebCompiledContentExtensionData.h:
451         (WebKit::WebCompiledContentExtensionData::WebCompiledContentExtensionData):
452         * Shared/WebContextMenuItem.cpp:
453         (WebKit::WebContextMenuItem::submenuItemsAsAPIArray):
454         * Shared/WebCoreArgumentCoders.cpp:
455         (IPC::ArgumentCoder<UserStyleSheet>::decode):
456         (IPC::ArgumentCoder<UserScript>::decode):
457         (IPC::ArgumentCoder<FilterOperations>::decode):
458         (IPC::ArgumentCoder<BlobPart>::decode):
459         * Shared/WebKeyboardEvent.cpp:
460         (WebKit::WebKeyboardEvent::WebKeyboardEvent):
461         * Shared/WebPreferencesStore.h:
462         (WebKit::WebPreferencesStore::Value::Value):
463         * Shared/WebRenderLayer.cpp:
464         (WebKit::WebRenderLayer::createArrayFromLayerList):
465         * Shared/WebRenderObject.cpp:
466         (WebKit::WebRenderObject::WebRenderObject):
467         * Shared/WebTouchEvent.cpp:
468         (WebKit::WebTouchEvent::WebTouchEvent):
469         * Shared/efl/WebEventFactory.cpp:
470         (WebKit::WebEventFactory::createWebTouchEvent):
471         * Shared/gtk/NativeWebKeyboardEventGtk.cpp:
472         (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
473         * Shared/gtk/NativeWebTouchEventGtk.cpp:
474         (WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
475         * Shared/gtk/WebContextMenuItemGtk.cpp:
476         (WebKit::WebContextMenuItemGtk::WebContextMenuItemGtk):
477         * Shared/gtk/WebEventFactory.cpp:
478         (WebKit::WebEventFactory::createWebKeyboardEvent):
479         (WebKit::WebEventFactory::createWebTouchEvent):
480         * Shared/linux/SeccompFilters/OpenSyscall.cpp:
481         (WebKit::OpenSyscall::createFromOpenatContext):
482         (WebKit::OpenSyscall::createFromCreatContext):
483         (WebKit::OpenSyscallResult::encode):
484         * Shared/mac/ObjCObjectGraph.mm:
485         (WebKit::ObjCObjectGraph::decode):
486         * Shared/mac/RemoteLayerBackingStore.mm:
487         (WebKit::RemoteLayerBackingStore::takeFrontContextPendingFlush):
488         (WebKit::RemoteLayerBackingStore::Buffer::discard):
489         * Shared/mac/RemoteLayerTreeTransaction.h:
490         (WebKit::RemoteLayerTreeTransaction::setCallbackIDs):
491         * Shared/mac/RemoteLayerTreeTransaction.mm:
492         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
493         (WebKit::RemoteLayerTreeTransaction::decode):
494         (WebKit::RemoteLayerTreeTransaction::setCreatedLayers):
495         (WebKit::RemoteLayerTreeTransaction::setDestroyedLayerIDs):
496         (WebKit::RemoteLayerTreeTransaction::setLayerIDsWithNewlyUnreachableBackingStore):
497         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
498         (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
499         * UIProcess/API/APIProcessPoolConfiguration.h:
500         * UIProcess/API/APISessionState.cpp:
501         (API::SessionState::create):
502         (API::SessionState::SessionState):
503         * UIProcess/API/APIUserContentExtension.cpp:
504         (API::UserContentExtension::UserContentExtension):
505         * UIProcess/API/APIUserContentExtension.h:
506         * UIProcess/API/APIUserContentExtensionStore.cpp:
507         (API::compiledToFile):
508         (API::createExtension):
509         (API::UserContentExtensionStore::compileContentExtension):
510         * UIProcess/API/APIUserScript.h:
511         * UIProcess/API/APIWebsiteDataRecord.cpp:
512         (API::WebsiteDataRecord::create):
513         (API::WebsiteDataRecord::WebsiteDataRecord):
514         * UIProcess/API/APIWebsiteDataStore.cpp:
515         (API::WebsiteDataStore::create):
516         (API::WebsiteDataStore::WebsiteDataStore):
517         * UIProcess/API/C/WKApplicationCacheManager.cpp:
518         (WKApplicationCacheManagerGetApplicationCacheOrigins):
519         * UIProcess/API/C/WKKeyValueStorageManager.cpp:
520         (WKKeyValueStorageManagerGetKeyValueStorageOrigins):
521         (WKKeyValueStorageManagerGetStorageDetailsByOrigin):
522         * UIProcess/API/C/WKPage.cpp:
523         (WKPageCopySessionState):
524         (WKPageRestoreFromSessionState):
525         (WKPageSetPageContextMenuClient):
526         (WKPageSetPageFindMatchesClient):
527         (WKPageSetPageLoaderClient):
528         (WebKit::RunJavaScriptAlertResultListener::create):
529         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
530         (WebKit::RunJavaScriptConfirmResultListener::create):
531         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
532         (WebKit::RunJavaScriptPromptResultListener::create):
533         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
534         (WKPageSetPageUIClient):
535         (WKPageSetPageNavigationClient):
536         (WKPageCopyRelatedPages):
537         * UIProcess/API/C/WKResourceCacheManager.cpp:
538         (WKResourceCacheManagerGetCacheOrigins):
539         * UIProcess/API/C/WKSessionStateRef.cpp:
540         (WKSessionStateCreateFromData):
541         * UIProcess/API/C/mac/WKContextPrivateMac.mm:
542         (WKContextGetInfoForInstalledPlugIns):
543         * UIProcess/API/C/mac/WKPagePrivateMac.mm:
544         (-[WKObservablePageState initWithPage:]):
545         * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
546         (createWKArray):
547         * UIProcess/API/Cocoa/WKWebView.mm:
548         (-[WKWebView initWithFrame:configuration:]):
549         (-[WKWebView _takeViewSnapshot]):
550         (-[WKWebView _restoreFromSessionStateData:]):
551         (-[WKWebView _setInputDelegate:]):
552         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
553         (LazyInitialized::set):
554         * UIProcess/API/Cocoa/WKWebsiteDataStore.mm:
555         (-[WKWebsiteDataStore fetchDataRecordsOfTypes:completionHandler:]):
556         * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm:
557         (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]):
558         * UIProcess/API/Cocoa/_WKSessionState.mm:
559         (-[_WKSessionState _initWithSessionState:]):
560         * UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm:
561         (-[_WKUserContentExtensionStore compileContentExtensionForIdentifier:encodedContentExtension:completionHandler:]):
562         * UIProcess/API/efl/ewk_database_manager.cpp:
563         (EwkDatabaseManager::getDatabaseOrigins):
564         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
565         (webkitContextMenuItemToWebContextMenuItemGtk):
566         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
567         (webkit_file_chooser_request_select_files):
568         * UIProcess/API/gtk/WebKitNotificationProvider.cpp:
569         (WebKitNotificationProvider::notificationCloseCallback):
570         * UIProcess/API/gtk/WebKitWebContext.cpp:
571         (webkit_web_context_prefetch_dns):
572         (webkitWebContextCreatePageForWebView):
573         * UIProcess/API/gtk/WebKitWebView.cpp:
574         (webkit_web_view_get_snapshot):
575         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
576         (webkitWebViewBaseTouchEvent):
577         (webkitWebViewBaseCreateWebPage):
578         * UIProcess/API/gtk/WebKitWebsiteDataManager.cpp:
579         (webkitWebsiteDataManagerCreate):
580         (webkitWebsiteDataManagerGetDataStore):
581         * UIProcess/API/mac/WKView.mm:
582         (-[WKView initWithFrame:processPool:configuration:webView:]):
583         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
584         (-[WKView initWithFrame:configurationRef:]):
585         * UIProcess/Cocoa/NavigationState.mm:
586         (WebKit::tryAppLink):
587         (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
588         (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationResponse):
589         * UIProcess/Cocoa/WebViewImpl.mm:
590         (WebKit::WebViewImpl::WebViewImpl):
591         (WebKit::WebViewImpl::takeViewSnapshot):
592         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
593         (WebKit::CoordinatedLayerTreeHostProxy::dispatchUpdate):
594         * UIProcess/Databases/DatabaseProcessProxy.cpp:
595         (WebKit::DatabaseProcessProxy::fetchWebsiteData):
596         (WebKit::DatabaseProcessProxy::deleteWebsiteData):
597         (WebKit::DatabaseProcessProxy::deleteWebsiteDataForOrigins):
598         * UIProcess/GenericCallback.h:
599         (WebKit::CallbackMap::put):
600         * UIProcess/InspectorServer/WebSocketServer.cpp:
601         (WebKit::WebSocketServer::didAcceptConnection):
602         * UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp:
603         (WebKit::connectionCallback):
604         * UIProcess/Network/NetworkProcessProxy.cpp:
605         (WebKit::NetworkProcessProxy::fetchWebsiteData):
606         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
607         (WebKit::WebNotificationManagerProxy::providerDidCloseNotifications):
608         * UIProcess/Notifications/WebNotificationProvider.cpp:
609         (WebKit::WebNotificationProvider::clearNotifications):
610         * UIProcess/PageLoadState.cpp:
611         (WebKit::PageLoadState::Transaction::Transaction):
612         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
613         (WebKit::PlugInAutoStartProvider::autoStartOriginsTableCopy):
614         * UIProcess/Plugins/PluginProcessManager.cpp:
615         (WebKit::PluginProcessManager::pluginProcessToken):
616         (WebKit::PluginProcessManager::fetchWebsiteData):
617         (WebKit::PluginProcessManager::deleteWebsiteData):
618         (WebKit::PluginProcessManager::deleteWebsiteDataForHostNames):
619         * UIProcess/Plugins/PluginProcessProxy.cpp:
620         (WebKit::PluginProcessProxy::fetchWebsiteData):
621         (WebKit::PluginProcessProxy::deleteWebsiteData):
622         (WebKit::PluginProcessProxy::deleteWebsiteDataForHostNames):
623         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
624         (WebKit::RemoteScrollingCoordinatorProxy::updateScrollingTree):
625         * UIProcess/StatisticsRequest.cpp:
626         (WebKit::StatisticsRequest::completedRequest):
627         * UIProcess/Storage/LocalStorageDatabase.cpp:
628         (WebKit::LocalStorageDatabase::create):
629         (WebKit::LocalStorageDatabase::LocalStorageDatabase):
630         * UIProcess/Storage/StorageManager.cpp:
631         (WebKit::StorageManager::TransientLocalStorageNamespace::getOrCreateStorageArea):
632         (WebKit::StorageManager::StorageArea::create):
633         (WebKit::StorageManager::StorageArea::StorageArea):
634         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
635         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
636         (WebKit::StorageManager::getSessionStorageOrigins):
637         (WebKit::StorageManager::getLocalStorageOrigins):
638         (WebKit::StorageManager::getLocalStorageOriginDetails):
639         (WebKit::StorageManager::createTransientLocalStorageMap):
640         (WebKit::StorageManager::createSessionStorageMap):
641         * UIProcess/UserContent/WebScriptMessageHandler.cpp:
642         (WebKit::WebScriptMessageHandler::create):
643         (WebKit::WebScriptMessageHandler::WebScriptMessageHandler):
644         * UIProcess/UserContent/WebUserContentControllerProxy.cpp:
645         (WebKit::WebUserContentControllerProxy::addUserStyleSheet):
646         * UIProcess/ViewGestureController.cpp:
647         (WebKit::ViewGestureController::SnapshotRemovalTracker::start):
648         (WebKit::ViewGestureController::SnapshotRemovalTracker::fireRemovalCallbackImmediately):
649         * UIProcess/WebBackForwardList.cpp:
650         (WebKit::WebBackForwardList::addItem):
651         (WebKit::WebBackForwardList::backListAsAPIArrayWithLimit):
652         (WebKit::WebBackForwardList::forwardListAsAPIArrayWithLimit):
653         (WebKit::WebBackForwardList::removeAllItems):
654         (WebKit::WebBackForwardList::clear):
655         (WebKit::WebBackForwardList::restoreFromState):
656         * UIProcess/WebCookieManagerProxy.cpp:
657         (WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
658         (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
659         * UIProcess/WebFormClient.cpp:
660         (WebKit::WebFormClient::willSubmitForm):
661         * UIProcess/WebFrameListenerProxy.h:
662         (WebKit::WebFrameListenerProxy::setNavigation):
663         * UIProcess/WebFrameProxy.h:
664         (WebKit::WebFrameProxy::contentFilterDidBlockLoad):
665         * UIProcess/WebGrammarDetail.cpp:
666         (WebKit::WebGrammarDetail::guesses):
667         * UIProcess/WebInspectorProxy.cpp:
668         (WebKit::WebInspectorProxy::createInspectorPage):
669         * UIProcess/WebMediaCacheManagerProxy.cpp:
670         (WebKit::WebMediaCacheManagerProxy::getHostnamesWithMediaCache):
671         * UIProcess/WebPageProxy.cpp:
672         (WebKit::ExceededDatabaseQuotaRecords::add):
673         (WebKit::WebPageProxy::create):
674         (WebKit::WebPageProxy::WebPageProxy):
675         (WebKit::WebPageProxy::setHistoryClient):
676         (WebKit::WebPageProxy::setNavigationClient):
677         (WebKit::WebPageProxy::setLoaderClient):
678         (WebKit::WebPageProxy::setPolicyClient):
679         (WebKit::WebPageProxy::setFormClient):
680         (WebKit::WebPageProxy::setUIClient):
681         (WebKit::WebPageProxy::setFindClient):
682         (WebKit::WebPageProxy::setFindMatchesClient):
683         (WebKit::WebPageProxy::setDiagnosticLoggingClient):
684         (WebKit::WebPageProxy::setContextMenuClient):
685         (WebKit::WebPageProxy::reattachToWebProcessForReload):
686         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
687         (WebKit::WebPageProxy::loadRequest):
688         (WebKit::WebPageProxy::loadFile):
689         (WebKit::WebPageProxy::loadData):
690         (WebKit::WebPageProxy::loadHTMLString):
691         (WebKit::WebPageProxy::reload):
692         (WebKit::WebPageProxy::didChangeBackForwardList):
693         (WebKit::WebPageProxy::setInitialFocus):
694         (WebKit::WebPageProxy::validateCommand):
695         (WebKit::WebPageProxy::handleWheelEvent):
696         (WebKit::WebPageProxy::processNextQueuedWheelEvent):
697         (WebKit::WebPageProxy::restoreFromSessionState):
698         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
699         (WebKit::WebPageProxy::getRenderTreeExternalRepresentation):
700         (WebKit::WebPageProxy::getSourceForFrame):
701         (WebKit::WebPageProxy::getContentsAsString):
702         (WebKit::WebPageProxy::getBytecodeProfile):
703         (WebKit::WebPageProxy::getContentsAsMHTMLData):
704         (WebKit::WebPageProxy::getSelectionOrContentsAsString):
705         (WebKit::WebPageProxy::getSelectionAsWebArchiveData):
706         (WebKit::WebPageProxy::getMainResourceDataOfFrame):
707         (WebKit::WebPageProxy::getResourceDataFromFrame):
708         (WebKit::WebPageProxy::getWebArchiveOfFrame):
709         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
710         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
711         (WebKit::WebPageProxy::decidePolicyForResponse):
712         (WebKit::WebPageProxy::sendMessage):
713         (WebKit::WebPageProxy::exceededDatabaseQuota):
714         (WebKit::WebPageProxy::getMarkedRangeAsync):
715         (WebKit::WebPageProxy::getSelectedRangeAsync):
716         (WebKit::WebPageProxy::characterIndexForPointAsync):
717         (WebKit::WebPageProxy::firstRectForCharacterRangeAsync):
718         (WebKit::WebPageProxy::takeSnapshot):
719         * UIProcess/WebProcessPool.cpp:
720         (WebKit::WebProcessPool::setHistoryClient):
721         (WebKit::WebProcessPool::setDownloadClient):
722         (WebKit::WebProcessPool::createWebPage):
723         (WebKit::WebProcessPool::getStatistics):
724         (WebKit::WebProcessPool::pluginInfoStoreDidLoadPlugins):
725         * UIProcess/WebProcessProxy.cpp:
726         (WebKit::WebProcessProxy::createWebPage):
727         (WebKit::WebProcessProxy::addBackForwardItem):
728         (WebKit::WebProcessProxy::fetchWebsiteData):
729         * UIProcess/WebsiteData/WebsiteDataRecord.cpp:
730         (WebKit::WebsiteDataRecord::add):
731         * UIProcess/WebsiteData/WebsiteDataStore.cpp:
732         (WebKit::WebsiteDataStore::create):
733         (WebKit::WebsiteDataStore::WebsiteDataStore):
734         (WebKit::WebsiteDataStore::fetchData):
735         (WebKit::WebsiteDataStore::removeData):
736         (WebKit::WebsiteDataStore::mediaKeyOrigins):
737         * UIProcess/efl/InputMethodContextEfl.cpp:
738         (WebKit::InputMethodContextEfl::InputMethodContextEfl):
739         * UIProcess/efl/InputMethodContextEfl.h:
740         (WebKit::InputMethodContextEfl::create):
741         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
742         (WebKit::WebContextMenuProxyEfl::showContextMenu):
743         * UIProcess/efl/WebUIPopupMenuClient.cpp:
744         (WebUIPopupMenuClient::showPopupMenu):
745         * UIProcess/gtk/InputMethodFilter.cpp:
746         (WebKit::InputMethodFilter::filterKeyEvent):
747         * UIProcess/gtk/KeyBindingTranslator.cpp:
748         (WebKit::KeyBindingTranslator::commandsForKeyEvent):
749         * UIProcess/gtk/RedirectedXCompositeWindow.cpp:
750         (WebKit::XDamageNotifier::add):
751         (WebKit::RedirectedXCompositeWindow::RedirectedXCompositeWindow):
752         (WebKit::RedirectedXCompositeWindow::surface):
753         * UIProcess/ios/WKActionSheetAssistant.mm:
754         (-[WKActionSheetAssistant showImageSheet]):
755         (-[WKActionSheetAssistant showLinkSheet]):
756         * UIProcess/ios/WKContentView.mm:
757         (-[WKContentView _commonInitializationWithProcessPool:configuration:]):
758         (-[WKContentView initWithFrame:processPool:configuration:webView:]):
759         * UIProcess/ios/WKContentViewInteraction.mm:
760         (-[WKContentView actionSheetAssistant:decideActionsForElement:defaultActions:]):
761         * UIProcess/ios/WKGeolocationProviderIOS.mm:
762         (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]):
763         (-[WKGeolocationProviderIOS geolocationAuthorizationDenied]):
764         * UIProcess/ios/WKPDFView.mm:
765         (-[WKPDFView actionSheetAssistant:decideActionsForElement:defaultActions:]):
766         * UIProcess/ios/WebPageProxyIOS.mm:
767         (WebKit::WebPageProxy::selectWithGesture):
768         (WebKit::WebPageProxy::updateSelectionWithTouches):
769         (WebKit::WebPageProxy::requestAutocorrectionData):
770         (WebKit::WebPageProxy::applyAutocorrection):
771         (WebKit::WebPageProxy::executeEditCommand):
772         (WebKit::WebPageProxy::selectTextWithGranularityAtPoint):
773         (WebKit::WebPageProxy::selectPositionAtBoundaryWithDirection):
774         (WebKit::WebPageProxy::moveSelectionAtBoundaryWithDirection):
775         (WebKit::WebPageProxy::selectPositionAtPoint):
776         (WebKit::WebPageProxy::beginSelectionInDirection):
777         (WebKit::WebPageProxy::updateSelectionWithExtentPoint):
778         (WebKit::WebPageProxy::updateSelectionWithExtentPointAndBoundary):
779         (WebKit::WebPageProxy::requestDictationContext):
780         (WebKit::WebPageProxy::requestAutocorrectionContext):
781         (WebKit::WebPageProxy::getLookupContextAtPoint):
782         (WebKit::WebPageProxy::selectWithTwoTouches):
783         (WebKit::WebPageProxy::moveSelectionByOffset):
784         (WebKit::WebPageProxy::focusNextAssistedNode):
785         * UIProcess/ios/WebVideoFullscreenManagerProxy.h:
786         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
787         (WebKit::WebVideoFullscreenManagerProxy::createModelAndInterface):
788         * UIProcess/ios/forms/WKFileUploadPanel.mm:
789         (-[WKFileUploadPanel _chooseFiles:displayString:iconImage:]):
790         * UIProcess/mac/LegacySessionStateCoding.cpp:
791         (WebKit::HistoryEntryDataEncoder::finishEncoding):
792         (WebKit::decodeFormData):
793         (WebKit::decodeBackForwardTreeNode):
794         (WebKit::decodeSessionHistoryEntries):
795         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
796         (WebKit::RemoteLayerTreeDrawingAreaProxy::dispatchAfterEnsuringDrawing):
797         * UIProcess/mac/ViewGestureController.h:
798         (WebKit::ViewGestureController::setCustomSwipeViews):
799         * UIProcess/mac/ViewGestureControllerMac.mm:
800         (WebKit::ViewGestureController::PendingSwipeTracker::PendingSwipeTracker):
801         * UIProcess/mac/ViewSnapshotStore.mm:
802         (WebKit::ViewSnapshot::create):
803         (WebKit::ViewSnapshot::ViewSnapshot):
804         (WebKit::ViewSnapshot::setSurface):
805         * UIProcess/mac/WebPageProxyMac.mm:
806         (WebKit::WebPageProxy::attributedSubstringForCharacterRangeAsync):
807         (WebKit::WebPageProxy::fontAtSelection):
808         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
809         (contextMenuItems):
810         (WKBundlePageCopyOriginsWithApplicationCache):
811         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
812         (WKBundlePageOverlayCreate):
813         * WebProcess/InjectedBundle/API/efl/ewk_extension.cpp:
814         (EwkExtension::didCreatePage):
815         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
816         (webkitFrameGetOrCreate):
817         (didInitiateLoadForResource):
818         (willSendRequestForFrame):
819         (didReceiveResponseForResource):
820         (didReceiveContentLengthForResource):
821         (didFinishLoadForResource):
822         (didFailLoadForResource):
823         (webkitWebPageDidReceiveMessage):
824         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
825         (-[WKWebProcessPlugInBrowserContextController _setFormDelegate:]):
826         * WebProcess/InjectedBundle/InjectedBundle.cpp:
827         (WebKit::InjectedBundle::addUserScript):
828         (WebKit::InjectedBundle::addUserStyleSheet):
829         * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
830         (WebKit::InjectedBundleBackForwardListItem::children):
831         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
832         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
833         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
834         (WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
835         (WebKit::InjectedBundlePageFormClient::willSubmitForm):
836         (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
837         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
838         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
839         * WebProcess/Network/WebResourceLoader.cpp:
840         (WebKit::WebResourceLoader::willSendRequest):
841         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
842         (WebKit::NPN_PostURL):
843         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
844         (WebKit::NetscapePlugin::scheduleTimer):
845         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
846         (WebKit::convertStringToKeyCodes):
847         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
848         (WebKit::PDFPlugin::PDFPlugin):
849         * WebProcess/Plugins/PDF/PDFPlugin.mm:
850         (-[WKPDFHUDAnimationDelegate initWithAnimationCompletionHandler:]):
851         * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
852         (WebKit::PDFPluginChoiceAnnotation::createAnnotationElement):
853         * WebProcess/Storage/StorageAreaMap.cpp:
854         (WebKit::StorageAreaMap::create):
855         (WebKit::StorageAreaMap::StorageAreaMap):
856         * WebProcess/Storage/StorageNamespaceImpl.cpp:
857         (WebKit::StorageNamespaceImpl::storageArea):
858         * WebProcess/UserContent/WebUserContentController.cpp:
859         (WebKit::WebUserContentController::addUserContentExtensions):
860         * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
861         (WebKit::toHTTPBody):
862         (WebKit::toFrameState):
863         (WebKit::applyFrameState):
864         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
865         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
866         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
867         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
868         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
869         (WebKit::WebFrameLoaderClient::contentFilterDidBlockLoad):
870         * WebProcess/WebCoreSupport/WebPasteboardOverrides.cpp:
871         (WebKit::WebPasteboardOverrides::addOverride):
872         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
873         (WebKit::WebEditorClient::executePendingEditorCommands):
874         * WebProcess/WebPage/FindController.cpp:
875         (WebKit::FindController::findStringMatches):
876         * WebProcess/WebPage/ViewUpdateDispatcher.cpp:
877         (WebKit::ViewUpdateDispatcher::dispatchVisibleContentRectUpdate):
878         * WebProcess/WebPage/WebFrame.cpp:
879         (WebKit::WebFrame::createSubframe):
880         (WebKit::WebFrame::create):
881         (WebKit::WebFrame::WebFrame):
882         (WebKit::WebFrame::didReceivePolicyDecision):
883         (WebKit::WebFrame::childFrames):
884         (WebKit::WebFrame::createSelectionSnapshot):
885         * WebProcess/WebPage/WebPage.cpp:
886         (WebKit::WebPage::setInjectedBundleContextMenuClient):
887         (WebKit::WebPage::setInjectedBundleFormClient):
888         (WebKit::WebPage::setInjectedBundleUIClient):
889         (WebKit::WebPage::trackedRepaintRects):
890         (WebKit::WebPage::createDocumentLoader):
891         * WebProcess/WebPage/WebPageGroupProxy.cpp:
892         (WebKit::WebPageGroupProxy::addUserContentExtension):
893         * WebProcess/WebPage/WebPageOverlay.cpp:
894         (WebKit::WebPageOverlay::create):
895         (WebKit::WebPageOverlay::WebPageOverlay):
896         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
897         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::RenderFrameScheduler):
898         * WebProcess/WebPage/ios/WebPageIOS.mm:
899         (WebKit::WebPage::computePagesForPrintingAndStartDrawingToPDF):
900         * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
901         (WebKit::PlatformCAAnimationRemote::setTimingFunction):
902         (WebKit::PlatformCAAnimationRemote::setValues):
903         (WebKit::PlatformCAAnimationRemote::setTimingFunctions):
904         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
905         (WebKit::RemoteLayerTreeContext::layerWasCreated):
906         (WebKit::RemoteLayerTreeContext::buildTransaction):
907         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
908         (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
909         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::create):
910         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::BackingStoreFlusher):
911         (WebKit::RemoteLayerTreeDrawingArea::BackingStoreFlusher::flush):
912         * WebProcess/WebProcess.cpp:
913         (WebKit::WebProcess::initializeWebProcess):
914         (WebKit::WebProcess::transformObjectsToHandles):
915         * WebProcess/cocoa/WebProcessCocoa.mm:
916         (WebKit::WebProcess::platformInitializeWebProcess):
917         * WebProcess/ios/WebVideoFullscreenManager.mm:
918         (WebKit::WebVideoFullscreenInterfaceContext::setLayerHostingContext):
919         (WebKit::WebVideoFullscreenManager::createModelAndInterface):
920         (WebKit::WebVideoFullscreenManager::setSeekableRanges):
921         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
922         (webkitSoupRequestInputStreamDidFailWithError):
923
924 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
925
926         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
927
928         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
929         (WebKit::WebFrameLoaderClient::restoreViewState):
930         * WebProcess/WebPage/efl/WebPageEfl.cpp:
931         (WebKit::WebPage::restorePageState):
932
933 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
934
935         Fix naming in HistoryItem to refer to scrollPositions
936         https://bugs.webkit.org/show_bug.cgi?id=152646
937
938         Reviewed by Zalan Bujtas.
939         
940         HistoryItem stores a scrollPosition, so call it that.
941         
942         No behavior change.
943
944         * Shared/SessionState.cpp:
945         (WebKit::FrameState::encode):
946         (WebKit::FrameState::decode):
947         * Shared/SessionState.h:
948         * UIProcess/mac/LegacySessionStateCoding.cpp:
949         (WebKit::encodeFrameStateNode):
950         (WebKit::decodeBackForwardTreeNode):
951         * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
952         (WebKit::toFrameState):
953         (WebKit::applyFrameState):
954
955 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
956
957         Fix reload and programmatic scrolling in RTL documents
958         https://bugs.webkit.org/show_bug.cgi?id=152639
959
960         Reviewed by Zalan Bujtas.
961
962         Reloading a left-scrolled RTL document would cause the content to appear
963         at an odd offset, and programmatic sideways scrolls in RTL documents also
964         jumped to the wrong location.
965         
966         Fix by resolving offset/position confusion in ScrollableArea::scrollPositionChanged()
967         and the scrolling tree.
968         
969         ScrollableArea::scrollPositionChanged() was erroneously passing a scrollPosition
970         to setScrollOffset(). 
971         
972         ScrollingTreeFrameScrollingNode* were confused about offsets and positions. It
973         turns out that the layer position is just -scrollPosition, but minimumScrollPosition()
974         and maximumScrollPosition() need fixing to return positions, not offsets.
975         
976         ScrollingTreeFrameScrollingNode::viewToContentsOffset() was also doing incorrect
977         math with scrollOrigin, which was detected by a failing test.
978         
979         Add more logging to the Scrolling channel.
980
981         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
982         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
983         (WebKit::PDFPlugin::setScrollOffset):
984
985 2016-01-01  Michael Catanzaro  <mcatanzaro@igalia.com>
986
987         [SOUP] REGRESSION(r192761): Broke resource URIs for applications that use g_resource_load in a web extension
988         https://bugs.webkit.org/show_bug.cgi?id=152634
989
990         Reviewed by Carlos Garcia Campos.
991
992         Load GResource URIs locally, not in the network process. Applications expect calling
993         g_resource_load in a web extension to make it possible to load resource URIs, but that
994         doesn't work now that the network process is in use. Loading them locally solves this.
995
996         * WebProcess/Network/WebLoaderStrategy.cpp:
997         (WebKit::WebLoaderStrategy::scheduleLoad):
998
999 2016-01-01  Jeff Miller  <jeffm@apple.com>
1000
1001         Update user-visible copyright strings to include 2016
1002         https://bugs.webkit.org/show_bug.cgi?id=152531
1003
1004         Reviewed by Alexey Proskuryakov.
1005
1006         * DatabaseProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1007         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService.Development/Info.plist:
1008         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseService/Info.plist:
1009         * Info.plist:
1010         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1011         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-OSX.plist:
1012         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info-iOS.plist:
1013         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist:
1014         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX.plist:
1015         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-iOS.plist:
1016         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1017         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist:
1018         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
1019         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1020         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1021         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist:
1022         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist:
1023         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist:
1024         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist:
1025         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist:
1026
1027 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
1028
1029         Rename documentScrollOffsetRelativeTo* functions
1030         https://bugs.webkit.org/show_bug.cgi?id=152632
1031
1032         Reviewed by Zalan Bujtas.
1033
1034         ScrollView::documentScrollOffsetRelativeTo* functions return scroll positions,
1035         not offsets, so rename them and fix their return types, and fix callers. Make
1036         their code more similar.
1037
1038         * WebProcess/WebPage/WebPage.cpp:
1039         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
1040         (WebKit::WebPage::plugInIntersectsSearchRect):
1041
1042 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
1043
1044         [iOS WK2] Fix incorrect scrollPosition handling
1045         https://bugs.webkit.org/show_bug.cgi?id=152630
1046
1047         Reviewed by Zalan Bujtas.
1048         
1049         WebPage::updateVisibleContentRects() was setting the ScrollView's scroll position
1050         to a scrollOffset, which was counteracted by ScrollView::unobscuredContentRect()
1051         adding the scrollOrigin to the scrollPosition, which resulted in the correct
1052         rects, but an incorrect scrollPosition. Fix.
1053
1054         * WebProcess/WebPage/ios/WebPageIOS.mm:
1055         (WebKit::WebPage::updateVisibleContentRects):
1056
1057 2015-12-31  Michael Catanzaro  <mcatanzaro@igalia.com>
1058
1059         Unreviewed, fix a log message
1060
1061         * WebProcess/Network/WebResourceLoader.cpp:
1062         (WebKit::WebResourceLoader::didReceiveResponse):
1063
1064 2015-12-31  David Kilzer  <ddkilzer@apple.com>
1065
1066         Stop using USE(CFNETWORK) path on iOS
1067         https://bugs.webkit.org/show_bug.cgi?id=142540
1068
1069         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
1070
1071         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
1072         Reviewed by Daniel Bates.
1073
1074         * NetworkProcess/Downloads/ios/DownloadIOS.mm: This is now the
1075         USE(CFNETWORK) && !USE(NETWORK_SESSION) code path.
1076         * NetworkProcess/Downloads/mac/DownloadMac.mm: This is now the
1077         !USE(CFNETWORK) && !USE(NETWORK_SESSION) code path.  Make use of
1078         NSURLDownloadSPI.h.  Ignore a deprecated delcaration warning now
1079         that we're using actual header declarations internally.
1080         * NetworkProcess/NetworkProcess.cpp:
1081         (WebKit::NetworkProcess::initializeNetworkProcess): Update for
1082         iOS to use NSURLConnection loader.
1083
1084 2015-12-31  Andy Estes  <aestes@apple.com>
1085
1086         Fix warnings uncovered by migrating to WTF_MOVE
1087         https://bugs.webkit.org/show_bug.cgi?id=152601
1088
1089         Reviewed by Daniel Bates.
1090
1091         * UIProcess/API/APIUIClient.h:
1092         (API::UIClient::actionsForElement): Moving a return value passed to the function by value is redundant, since it
1093         will be implicitly moved in this case.
1094         * UIProcess/Cocoa/UIDelegate.mm:
1095         (WebKit::UIDelegate::UIClient::actionsForElement): Ditto.
1096
1097 2015-12-30  Simon Fraser  <simon.fraser@apple.com>
1098
1099         Add explicit conversions between scrollOffset and scrollPostion, and use them in a few places
1100         https://bugs.webkit.org/show_bug.cgi?id=152594
1101
1102         Reviewed by Sam Weinig.
1103
1104         Add functions to ScrollableArea to convert between scrollPosition and scrollOffset,
1105         and use them in places where code did the math with scrollOrigin.
1106
1107         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
1108         (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
1109         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1110         (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
1111
1112 2015-12-30  Zan Dobersek  <zdobersek@igalia.com>
1113
1114         [TexMap] Clean up TextureMapperAnimation, TextureMapperAnimations
1115         https://bugs.webkit.org/show_bug.cgi?id=152112
1116
1117         Reviewed by Darin Adler.
1118
1119         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1120         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
1121
1122 2015-12-29  Simon Fraser  <simon.fraser@apple.com>
1123
1124         Remove ScrollView::scrollOffset() in preparation for scrollOffset vs. scrollPosition clarification
1125         https://bugs.webkit.org/show_bug.cgi?id=152589
1126
1127         Reviewed by Sam Weinig.
1128
1129         Current code uses scrollOffset vs. scrollPosition interchangeably, and confusingly.
1130         Longer term, I plan to make "scrollPosition" be the value that is relative to the 
1131         contents, i.e. affected by scrollOrigin, and "scrollOffset" be the zero-based value
1132         that's used to set scrollbar values.
1133         
1134         To prepare for this, remove ScrollView::scrollOffset(), which is just the
1135         scrollPosition as an IntSize.
1136         
1137         Add some typedefs in ScrollableArea, which will slowly propagate through the
1138         code as position vs. offset is clarified.
1139
1140         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
1141         (WebKit::InjectedBundleRangeHandle::renderedImage):
1142         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.h:
1143         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
1144         (WebKit::PDFPlugin::scrollPosition):
1145         (WebKit::PDFPlugin::minimumScrollPosition):
1146         (WebKit::PDFPlugin::maximumScrollPosition):
1147         * WebProcess/WebPage/WebFrame.cpp:
1148         (WebKit::WebFrame::scrollOffset):
1149         * WebProcess/WebPage/WebPage.cpp:
1150         (WebKit::WebPage::scrollMainFrameIfNotAtMaxScrollPosition):
1151         (WebKit::WebPage::updateMainFrameScrollOffsetPinning):
1152
1153 2015-12-25  Andy Estes  <aestes@apple.com>
1154
1155         Stop moving local objects in return statements
1156         https://bugs.webkit.org/show_bug.cgi?id=152557
1157
1158         Reviewed by Brady Eidson.
1159
1160         Calling std::move() on a local object in a return statement prevents the compiler from applying the return value optimization.
1161
1162         Clang can warn about these mistakes with -Wpessimizing-move, although only when std::move() is called directly.
1163         I found these issues by temporarily replacing WTF::move with std::move and recompiling.
1164
1165         * UIProcess/WebPageProxy.cpp:
1166         (WebKit::ExceededDatabaseQuotaRecords::createRecord):
1167
1168 2015-12-26  Joonghun Park  <jh718.park@samsung.com>
1169
1170         [WK2][EFL] Use eina_file_path_join at platformDefaultIconDatabasePath in WebProcessPoolEfl
1171         https://bugs.webkit.org/show_bug.cgi?id=152565
1172
1173         Reviewed by Gyuyoung Kim.
1174
1175         Use eina_file_path_join and EINA_PATH_SEP_S at platformDefaultIconDatabasePath
1176         instead of operator+ and separator "/" respectively
1177         to concatenate paths.
1178
1179         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
1180         * UIProcess/efl/WebProcessPoolEfl.cpp:
1181         (WebKit::WebProcessPool::platformDefaultIconDatabasePath):
1182
1183 2015-12-25  David Kilzer  <ddkilzer@apple.com>
1184
1185         ResourceError should store failingURL as URL instead of String to avoid reparsing and to address FIXME comments in ResourceErrorCF.cpp and ResourceErrorMac.mm
1186         <http://webkit.org/b/146391>
1187
1188         Reviewed by Antti Koivisto.
1189
1190         * NetworkProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp:
1191         (WebKit::platformDownloadNetworkError):
1192         * NetworkProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp:
1193         (WebKit::platformDownloadNetworkError):
1194         * NetworkProcess/Downloads/soup/DownloadSoup.cpp:
1195         (WebKit::DownloadClient::didReceiveResponse):
1196         * NetworkProcess/Downloads/soup/DownloadSoupErrors.h:
1197         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
1198         (IPC::ArgumentCoder<ResourceError>::encodePlatformData):
1199         (IPC::ArgumentCoder<ResourceError>::decodePlatformData):
1200         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1201         (LoaderClient::didFailProvisionalLoadWithErrorForFrame):
1202         (LoaderClient::didFailLoadWithErrorForFrame):
1203         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
1204         (webkit_uri_scheme_request_finish_error):
1205         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
1206         (WebKit::internalError):
1207         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
1208         (WebKit::internalError):
1209         - Update for type change of 'failingURL' argument to
1210           ResourceError().
1211
1212 2015-12-23  Simon Fraser  <simon.fraser@apple.com>
1213
1214         Use "constrainedBetween" in more places
1215         https://bugs.webkit.org/show_bug.cgi?id=152543
1216
1217         Reviewed by Zalan Bujtas.
1218
1219         Replace code that contrains points via shrunkTo/expandedTo() with calls
1220         to constrainedBetween(), and implement constrainedBetween() on IntPoint,
1221         FloatPoint and LayoutPoint.
1222
1223         Convert some functions that return points to more modern syntax.
1224
1225         * UIProcess/API/Cocoa/WKWebView.mm:
1226         (constrainContentOffset):
1227
1228 2015-12-22  Hunseop Jeong  <hs85.jeong@samsung.com>
1229
1230         [EFL] ewk_application_cache_manager test failed after r193812
1231         https://bugs.webkit.org/show_bug.cgi?id=152498
1232
1233         Reviewed by Gyuyoung Kim.
1234
1235         Need to enable the offline_web_application_cache for the ewk_application_cache_manager test.
1236
1237         * UIProcess/API/efl/tests/test_ewk2_application_cache_manager.cpp:
1238         (TEST_F):
1239
1240 2015-12-22  Andy Estes  <aestes@apple.com>
1241
1242         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
1243         https://bugs.webkit.org/show_bug.cgi?id=152463
1244
1245         Reviewed by Alexey Proskuryakov.
1246
1247         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
1248         declared in CFNetworkSPI.h.
1249
1250         * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
1251         (WebKit::initializeNetworkSettings):
1252         * NetworkProcess/mac/NetworkProcessMac.mm:
1253         (WebKit::overrideSystemProxies):
1254         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1255         (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
1256         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1257         (InitWebCoreSystemInterface):
1258
1259 2015-12-22  Brent Fulgham  <bfulgham@apple.com>
1260
1261         Allow JavaScript to iterate over plugins for local SecurityOrigins
1262         https://bugs.webkit.org/show_bug.cgi?id=152489
1263
1264         Reviewed by Alexey Proskuryakov.
1265
1266         The 'getWebVisiblePluginInfo' is filtering plugins, even when we want to list
1267         all plugins. To avoid this, we check the Document's SecurityOrigin. If no such
1268         origin exists, we construct a SecurityOrigin from the URL.
1269         
1270         If the relevant SecurityOrigin satsifies 'isLocal', we show all plugins.
1271
1272         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1273         (WebKit::WebPlatformStrategies::getWebVisiblePluginInfo):
1274
1275 2015-12-21  Hunseop Jeong  <hs85.jeong@samsung.com>
1276
1277         [EFL] test_ewk2_context failed after r192808
1278         https://bugs.webkit.org/show_bug.cgi?id=151846
1279
1280         Reviewed by Gyuyoung Kim.
1281
1282         As we can make the single WebProcess behavior by setting the miximum number
1283         of WebProcess to 1 after r192808, I remove the ewk_context_process_model_{set|get}
1284         apis and add the ewk_context_web_process_count_limit_{set|get} apis and tests.
1285
1286         * UIProcess/API/efl/ewk_context.cpp:
1287         (EwkContext::EwkContext):
1288         (EwkContext::setProcessCountLimit):
1289         (EwkContext::processCountLimit):
1290         (ewk_context_web_process_count_limit_set):
1291         (ewk_context_web_process_count_limit_get):
1292         (EwkContext::setProcessModel): Deleted.
1293         (EwkContext::processModel): Deleted.
1294         (ewk_context_process_model_set): Deleted.
1295         (ewk_context_process_model_get): Deleted.
1296         * UIProcess/API/efl/ewk_context.h:
1297         * UIProcess/API/efl/ewk_context_private.h:
1298         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
1299         (EWK2UnitTest::EWK2UnitTestBase::SetUp):
1300         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
1301         (TEST_F): Changed the ewk_context_{web|network}_process_model tests to
1302         ewk_context_{web|network}_process_count_limit tests.
1303
1304 2015-12-21  Joonghun Park  <jh718.park@samsung.com>
1305
1306         [WK2][EFL] Use cacheDirectoryFileSystemRepresentation and websiteDataDirectoryFileSystemRepresentation
1307         to refactor APIWebsiteDataStoreEfl
1308         https://bugs.webkit.org/show_bug.cgi?id=152475
1309
1310         Reviewed by Gyuyoung Kim.
1311
1312         Use cacheDirectoryFileSystemRepresentation and websiteDataDirectoryFileSystemRepresentation
1313         instead of to use efreet_cache_home_get
1314         and efreet_data_home_get directly.
1315         And also use EINA_PATH_SEP_S instead of "/" as directory separator,
1316         and WebCore::pathByAppendingComponent instead of operator+.
1317
1318         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp:
1319         (API::WebsiteDataStore::defaultApplicationCacheDirectory):
1320         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
1321         (API::WebsiteDataStore::defaultIndexedDBDatabaseDirectory):
1322         (API::WebsiteDataStore::defaultLocalStorageDirectory):
1323         (API::WebsiteDataStore::defaultMediaKeysStorageDirectory):
1324         (API::WebsiteDataStore::defaultWebSQLDatabaseDirectory):
1325         (API::WebsiteDataStore::cacheDirectoryFileSystemRepresentation):
1326         (API::WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation):
1327
1328 2015-12-21  Antti Koivisto  <antti@apple.com>
1329
1330         Factor NetworkResourceLoader code for storing a cache entry into a function
1331         https://bugs.webkit.org/show_bug.cgi?id=152467
1332
1333         Reviewed by Andreas Kling.
1334
1335         * NetworkProcess/NetworkResourceLoader.cpp:
1336         (WebKit::NetworkResourceLoader::didFinishLoading):
1337
1338             Having m_cacheEntryForValidation already implies canUseCache() so remove the test from this path.
1339             Move storing to the end of the function so we don't delay DidFinishResourceLoad message on it.
1340
1341         (WebKit::NetworkResourceLoader::sendBufferMaybeAborting):
1342         (WebKit::NetworkResourceLoader::tryStoreAsCacheEntry):
1343
1344             Factor to a function.
1345             Remove m_response.isHTTP() test as it is covered by NetworkCache::store().
1346             Remove !isPrivateSession test as it is covered by NetworkResourceLoader::canUseCache().
1347
1348         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry):
1349         * NetworkProcess/NetworkResourceLoader.h:
1350
1351 2015-12-21  Antti Koivisto  <antti@apple.com>
1352
1353         Limit cached redirect chain length
1354         https://bugs.webkit.org/show_bug.cgi?id=152477
1355
1356         Reviewed by Andreas Kling.
1357
1358         Networking layer prevents cycles and limits the redirect chain length so creating cache cycles is difficult.
1359         For robustness the network cache should still limit the maximum redirect chain length.
1360
1361         This patch adds a limit of five redirects both when storing and retrieving cache entries.
1362
1363         * NetworkProcess/NetworkResourceLoader.cpp:
1364         (WebKit::NetworkResourceLoader::canUseCache):
1365         (WebKit::NetworkResourceLoader::canUseCachedRedirect):
1366         (WebKit::NetworkResourceLoader::willSendRedirectedRequest):
1367         (WebKit::NetworkResourceLoader::continueWillSendRequest):
1368         (WebKit::NetworkResourceLoader::dispatchWillSendRequestForCacheEntry):
1369         * NetworkProcess/NetworkResourceLoader.h:
1370
1371 2015-12-21  Dan Bernstein  <mitz@apple.com>
1372
1373         Different and incorrect flags are passed to sendSync when accessibility is enabled, SpinRunLoopWhileWaitingForReply
1374         https://bugs.webkit.org/show_bug.cgi?id=126021
1375
1376         Reviewed by Darin Adler.
1377
1378         Get rid of SpinRunLoopWhileWaitingForReply because it’s not used anymore.
1379
1380         * Platform/IPC/Connection.cpp:
1381         (IPC::Connection::waitForSyncReply): Removed the SpinRunLoopWhileWaitingForReply branch.
1382
1383         * Platform/IPC/Connection.h: Removed SpinRunLoopWhileWaitingForReply.
1384
1385         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1386         (WebKit::WebChromeClient::runBeforeUnloadConfirmPanel): Don’t check
1387           WebPage::synchronousMessagesShouldSpinRunLoop() and don’t specify
1388           SpinRunLoopWhileWaitingForReply.
1389         (WebKit::WebChromeClient::runJavaScriptAlert): Ditto.
1390         (WebKit::WebChromeClient::runJavaScriptConfirm): Ditto.
1391         (WebKit::WebChromeClient::runJavaScriptPrompt): Ditto.
1392         (WebKit::WebChromeClient::print): Ditto.
1393         (WebKit::WebChromeClient::exceededDatabaseQuota): Ditto.
1394         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
1395
1396         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1397         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse): Ditto.
1398
1399         * WebProcess/WebPage/WebPage.cpp:
1400         (WebKit::WebPage::synchronousMessagesShouldSpinRunLoop): Deleted.
1401         * WebProcess/WebPage/WebPage.h:
1402
1403 2015-12-20  Joonghun Park  <jh718.park@samsung.com>
1404
1405         [WK2][EFL] Use WebsiteDataStore instead of WebDatabaseManager which has been deleted in r194295
1406         https://bugs.webkit.org/show_bug.cgi?id=152460
1407
1408         Reviewed by Gyuyoung Kim.
1409
1410         Use WebsiteDataStore to support EFL WebDatabase API and to fix build break.
1411
1412         * PlatformEfl.cmake:
1413         * UIProcess/API/APIWebsiteDataStore.cpp:
1414         * UIProcess/API/efl/APIWebsiteDataStoreEfl.cpp: Copied from Source/WebKit2/UIProcess/API/APIWebsiteDataStore.cpp.
1415         (API::WebsiteDataStore::defaultApplicationCacheDirectory):
1416         (API::WebsiteDataStore::defaultNetworkCacheDirectory):
1417         (API::WebsiteDataStore::defaultIndexedDBDatabaseDirectory):
1418         (API::WebsiteDataStore::defaultLocalStorageDirectory):
1419         (API::WebsiteDataStore::defaultMediaKeysStorageDirectory):
1420         (API::WebsiteDataStore::defaultWebSQLDatabaseDirectory):
1421         (API::WebsiteDataStore::cacheDirectoryFileSystemRepresentation):
1422         (API::WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation):
1423         (API::WebsiteDataStore::defaultDataStoreConfiguration):
1424         * UIProcess/API/efl/ewk_context.cpp:
1425         (EwkContext::EwkContext):
1426         * UIProcess/API/efl/ewk_database_manager.cpp:
1427         (EwkDatabaseManager::EwkDatabaseManager):
1428         (EwkDatabaseManager::getDatabaseOrigins):
1429         * UIProcess/API/efl/ewk_database_manager_private.h:
1430         * UIProcess/efl/WebProcessPoolEfl.cpp:
1431         (WebKit::WebProcessPool::legacyPlatformDefaultApplicationCacheDirectory):
1432         (WebKit::WebProcessPool::legacyPlatformDefaultWebSQLDatabaseDirectory):
1433         (WebKit::WebProcessPool::legacyPlatformDefaultIndexedDBDatabaseDirectory):
1434         (WebKit::WebProcessPool::legacyPlatformDefaultLocalStorageDirectory):
1435         (WebKit::WebProcessPool::legacyPlatformDefaultMediaKeysStorageDirectory):
1436         (WebKit::WebProcessPool::legacyPlatformDefaultNetworkCacheDirectory):
1437
1438 2015-12-20  Dan Bernstein  <mitz@apple.com>
1439
1440         Remove unused setToolbarHeight
1441         https://bugs.webkit.org/show_bug.cgi?id=152466
1442
1443         Reviewed by Darin Adler.
1444
1445         * UIProcess/WebInspectorProxy.cpp:
1446         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1447         * UIProcess/WebInspectorProxy.h:
1448         (WebKit::WebInspectorProxy::setToolbarHeight): Deleted.
1449         * UIProcess/WebInspectorProxy.messages.in:
1450         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1451         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1452         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1453         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1454         * UIProcess/mac/WebInspectorProxyMac.mm:
1455         (WebKit::WebInspectorProxy::platformSetToolbarHeight): Deleted.
1456         * WebProcess/WebPage/WebInspectorUI.cpp:
1457         (WebKit::WebInspectorUI::setToolbarHeight): Deleted.
1458         * WebProcess/WebPage/WebInspectorUI.h:
1459
1460 2015-12-19  Dan Bernstein  <mitz@apple.com>
1461
1462         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
1463         https://bugs.webkit.org/show_bug.cgi?id=152462
1464
1465         Reviewed by Alexey Proskuryakov.
1466
1467         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
1468           that became uniform across all OS X versions as a result:
1469
1470         * Configurations/BaseTarget.xcconfig:
1471         * Configurations/BaseXPCService.xcconfig:
1472         * Configurations/DebugRelease.xcconfig:
1473         * Configurations/FeatureDefines.xcconfig:
1474         * Configurations/Version.xcconfig:
1475         * Configurations/WebKit.xcconfig:
1476
1477         - Removed the definition of BUNDLE_LOCALIZATION_KEY:
1478
1479         * Configurations/WebContentService.Development.xcconfig:
1480         * Configurations/WebContentService.xcconfig:
1481
1482         - Added CFBundleFollowParentLocalization set to true:
1483
1484         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-OSX.plist:
1485         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info-iOS.plist:
1486         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist:
1487         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX.plist:
1488         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-iOS.plist:
1489
1490         * WebKit2.xcodeproj/project.pbxproj: Removed the “Add CFBundle Localization Info.plist Key”
1491           script build phases from the Web Content Service targets.
1492
1493         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
1494           never getting compiled:
1495
1496         * DatabaseProcess/mac/com.apple.WebKit.Databases.sb.in:
1497         * NetworkProcess/cocoa/NetworkProcessCocoa.mm:
1498         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
1499         * Platform/IPC/mac/ConnectionMac.mm:
1500         * Platform/IPC/mac/ImportanceAssertion.h:
1501         * Platform/mac/MenuUtilities.h:
1502         * Platform/mac/MenuUtilities.mm:
1503         * Platform/mac/StringUtilities.h:
1504         * Platform/mac/StringUtilities.mm:
1505         * Shared/API/Cocoa/WKFoundation.h:
1506         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1507         * UIProcess/API/Cocoa/WKViewPrivate.h:
1508         * UIProcess/API/Cocoa/WKWebView.mm:
1509         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
1510         * UIProcess/API/mac/WKView.mm:
1511         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
1512         * UIProcess/Cocoa/WebViewImpl.h:
1513         * UIProcess/Cocoa/WebViewImpl.mm:
1514         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1515         * UIProcess/mac/PageClientImpl.mm:
1516         * UIProcess/mac/WKImmediateActionController.h:
1517         * UIProcess/mac/WKImmediateActionController.mm:
1518         * UIProcess/mac/WebInspectorProxyMac.mm:
1519         * WebProcess/WebPage/FindController.cpp:
1520         * WebProcess/WebPage/WebPage.cpp:
1521         * WebProcess/com.apple.WebProcess.sb.in:
1522         * config.h:
1523
1524 2015-12-18  Antti Koivisto  <antti@apple.com>
1525
1526         Cache redirects as separate entries
1527         https://bugs.webkit.org/show_bug.cgi?id=152424
1528
1529         Reviewed by Alex Christensen.
1530
1531         We are currently caching redirect chains. This has correctness issues and can be inefficient in cases
1532         where multiple URLs redirect to the same destination.
1533
1534         After this patch we write a cache entry for each redirect individually.
1535
1536         * NetworkProcess/NetworkLoad.cpp:
1537         (WebKit::NetworkLoad::sharedWillSendRedirectedRequest):
1538         * NetworkProcess/NetworkLoad.h:
1539         (WebKit::NetworkLoad::currentRequest):
1540         (WebKit::NetworkLoad::clearCurrentRequest):
1541         * NetworkProcess/NetworkLoadClient.h:
1542
1543             Add original request as a parameter for willSendRedirectedRequest.
1544
1545         * NetworkProcess/NetworkResourceLoader.cpp:
1546         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
1547         (WebKit::NetworkResourceLoader::canUseCache):
1548
1549             Factor to a function.
1550
1551         (WebKit::NetworkResourceLoader::isSynchronous):
1552         (WebKit::NetworkResourceLoader::start):
1553         (WebKit::NetworkResourceLoader::retrieveCacheEntry):
1554
1555             Factor to a function.
1556             Call dispatchWillSendRequestForCacheEntry for cached redirects.
1557
1558         (WebKit::NetworkResourceLoader::startNetworkLoad):
1559
1560             Make this take request as argument instead of always loading originalRequest().
1561
1562         (WebKit::NetworkResourceLoader::abort):
1563         (WebKit::NetworkResourceLoader::didFinishLoading):
1564
1565             Remove redirect chain code.
1566             Store cache entry for current request instead of the original request.
1567
1568         (WebKit::NetworkResourceLoader::didFailLoading):
1569         (WebKit::NetworkResourceLoader::willSendRedirectedRequest):
1570
1571             Write cache entry for redirect.
1572
1573         (WebKit::NetworkResourceLoader::continueWillSendRequest):
1574
1575             If we are playing back cached redirect continue with another cache lookup.
1576
1577         (WebKit::NetworkResourceLoader::didRetrieveCacheEntry):
1578
1579             No need to synthesize fake willSendRequest anymore.
1580
1581         (WebKit::NetworkResourceLoader::validateCacheEntry):
1582         (WebKit::NetworkResourceLoader::dispatchWillSendRequestForCacheEntry):
1583
1584             Route via web process willSendRequest so cached redirects looks exactly like network ones.
1585
1586         (WebKit::NetworkResourceLoader::messageSenderConnection):
1587         * NetworkProcess/NetworkResourceLoader.h:
1588         * NetworkProcess/cache/NetworkCache.cpp:
1589         (WebKit::NetworkCache::makeUseDecision):
1590
1591             Ignore validation headers for cached redirects.
1592
1593         (WebKit::NetworkCache::makeRetrieveDecision):
1594         (WebKit::NetworkCache::makeStoreDecision):
1595         (WebKit::NetworkCache::Cache::retrieve):
1596         (WebKit::NetworkCache::Cache::store):
1597
1598             Rename originalRequest -> request since it is not really the original request anymore in all cases.
1599
1600         (WebKit::NetworkCache::Cache::storeRedirect):
1601
1602             Stored redirects include the network layer generated ResourceRequest instead of body data.
1603
1604         (WebKit::NetworkCache::Cache::update):
1605         * NetworkProcess/cache/NetworkCache.h:
1606         * NetworkProcess/cache/NetworkCacheEntry.cpp:
1607         (WebKit::NetworkCache::Entry::Entry):
1608
1609             New constructor for making redirect entries.
1610
1611         (WebKit::NetworkCache::Entry::encodeAsStorageRecord):
1612         (WebKit::NetworkCache::Entry::decodeStorageRecord):
1613
1614             Encoding support.
1615
1616         * NetworkProcess/cache/NetworkCacheEntry.h:
1617         (WebKit::NetworkCache::Entry::varyingRequestHeaders):
1618         (WebKit::NetworkCache::Entry::redirectRequest):
1619         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp:
1620         (WebKit::NetworkCache::SpeculativeLoad::~SpeculativeLoad):
1621         (WebKit::NetworkCache::SpeculativeLoad::willSendRedirectedRequest):
1622         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:
1623         * NetworkProcess/cache/NetworkCacheStatistics.cpp:
1624         (WebKit::NetworkCache::cachedEntryReuseFailureToDiagnosticKey):
1625
1626 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
1627
1628         Avoid triggering clang's -Wundefined-bool-conversion
1629         https://bugs.webkit.org/show_bug.cgi?id=152408
1630
1631         Reviewed by Mark Lam.
1632
1633         Use ASSERT_THIS_GC_OBJECT_INHERITS where needed.
1634
1635         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1636         (WebKit::JSNPObject::callMethod):
1637         (WebKit::JSNPObject::callObject):
1638         (WebKit::JSNPObject::callConstructor):
1639         (WebKit::JSNPObject::deleteProperty):
1640
1641 2015-12-15  Anders Carlsson  <andersca@apple.com>
1642
1643         Get rid of WebDatabaseManager, it's been replaced by WebsiteDataStore
1644         https://bugs.webkit.org/show_bug.cgi?id=152318
1645
1646         Reviewed by Tim Horton.
1647
1648         Build fixes by Ossy.
1649
1650         * DerivedSources.make:
1651         * Shared/API/APIObject.h:
1652         * Shared/API/c/WKBase.h:
1653         * UIProcess/API/C/WKAPICast.h:
1654         * UIProcess/API/C/WKContext.cpp:
1655         (WKContextGetDatabaseManager): Deleted.
1656         * UIProcess/API/C/WKContext.h:
1657         * UIProcess/API/C/WKDatabaseManager.cpp: Removed.
1658         (WKDatabaseManagerGetTypeID): Deleted.
1659         (WKDatabaseManagerGetOriginKey): Deleted.
1660         (WKDatabaseManagerGetOriginQuotaKey): Deleted.
1661         (WKDatabaseManagerGetOriginUsageKey): Deleted.
1662         (WKDatabaseManagerGetDatabaseDetailsKey): Deleted.
1663         (WKDatabaseManagerGetDatabaseDetailsNameKey): Deleted.
1664         (WKDatabaseManagerGetDatabaseDetailsDisplayNameKey): Deleted.
1665         (WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey): Deleted.
1666         (WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey): Deleted.
1667         (WKDatabaseManagerGetDatabaseDetailsCreationTimeKey): Deleted.
1668         (WKDatabaseManagerGetDatabaseDetailsModificationTimeKey): Deleted.
1669         (WKDatabaseManagerSetClient): Deleted.
1670         (WKDatabaseManagerGetDatabasesByOrigin): Deleted.
1671         (WKDatabaseManagerGetDatabaseOrigins): Deleted.
1672         (WKDatabaseManagerDeleteDatabasesWithNameForOrigin): Deleted.
1673         (WKDatabaseManagerDeleteDatabasesForOrigin): Deleted.
1674         (WKDatabaseManagerDeleteAllDatabases): Deleted.
1675         (WKDatabaseManagerSetQuotaForOrigin): Deleted.
1676         * UIProcess/API/C/WKDatabaseManager.h: Removed.
1677         * UIProcess/WebDatabaseManagerProxy.cpp: Removed.
1678         (WebKit::WebDatabaseManagerProxy::supplementName): Deleted.
1679         (WebKit::WebDatabaseManagerProxy::originKey): Deleted.
1680         (WebKit::WebDatabaseManagerProxy::originQuotaKey): Deleted.
1681         (WebKit::WebDatabaseManagerProxy::originUsageKey): Deleted.
1682         (WebKit::WebDatabaseManagerProxy::databaseDetailsKey): Deleted.
1683         (WebKit::WebDatabaseManagerProxy::databaseDetailsNameKey): Deleted.
1684         (WebKit::WebDatabaseManagerProxy::databaseDetailsDisplayNameKey): Deleted.
1685         (WebKit::WebDatabaseManagerProxy::databaseDetailsExpectedUsageKey): Deleted.
1686         (WebKit::WebDatabaseManagerProxy::databaseDetailsCurrentUsageKey): Deleted.
1687         (WebKit::WebDatabaseManagerProxy::databaseDetailsCreationTimeKey): Deleted.
1688         (WebKit::WebDatabaseManagerProxy::databaseDetailsModificationTimeKey): Deleted.
1689         (WebKit::WebDatabaseManagerProxy::create): Deleted.
1690         (WebKit::WebDatabaseManagerProxy::WebDatabaseManagerProxy): Deleted.
1691         (WebKit::WebDatabaseManagerProxy::~WebDatabaseManagerProxy): Deleted.
1692         (WebKit::WebDatabaseManagerProxy::initializeClient): Deleted.
1693         (WebKit::WebDatabaseManagerProxy::processPoolDestroyed): Deleted.
1694         (WebKit::WebDatabaseManagerProxy::processDidClose): Deleted.
1695         (WebKit::WebDatabaseManagerProxy::shouldTerminate): Deleted.
1696         (WebKit::WebDatabaseManagerProxy::refWebContextSupplement): Deleted.
1697         (WebKit::WebDatabaseManagerProxy::derefWebContextSupplement): Deleted.
1698         (WebKit::WebDatabaseManagerProxy::getDatabasesByOrigin): Deleted.
1699         (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin): Deleted.
1700         (WebKit::WebDatabaseManagerProxy::getDatabaseOrigins): Deleted.
1701         (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins): Deleted.
1702         (WebKit::WebDatabaseManagerProxy::deleteDatabaseWithNameForOrigin): Deleted.
1703         (WebKit::WebDatabaseManagerProxy::deleteDatabasesForOrigin): Deleted.
1704         (WebKit::WebDatabaseManagerProxy::deleteAllDatabases): Deleted.
1705         (WebKit::WebDatabaseManagerProxy::setQuotaForOrigin): Deleted.
1706         (WebKit::WebDatabaseManagerProxy::didModifyOrigin): Deleted.
1707         (WebKit::WebDatabaseManagerProxy::didModifyDatabase): Deleted.
1708         * UIProcess/WebDatabaseManagerProxy.h: Removed.
1709         * UIProcess/WebDatabaseManagerProxy.messages.in: Removed.
1710         * UIProcess/WebDatabaseManagerProxyClient.cpp: Removed.
1711         (WebKit::WebDatabaseManagerProxyClient::didModifyOrigin): Deleted.
1712         (WebKit::WebDatabaseManagerProxyClient::didModifyDatabase): Deleted.
1713         * UIProcess/WebDatabaseManagerProxyClient.h: Removed.
1714         * UIProcess/WebProcessPool.cpp:
1715         * WebKit2.xcodeproj/project.pbxproj:
1716         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1717         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp: Removed.
1718         (WebKit::WebDatabaseManager::supplementName): Deleted.
1719         (WebKit::WebDatabaseManager::WebDatabaseManager): Deleted.
1720         (WebKit::WebDatabaseManager::initialize): Deleted.
1721         (WebKit::WebDatabaseManager::getDatabasesByOrigin): Deleted.
1722         (WebKit::WebDatabaseManager::getDatabaseOrigins): Deleted.
1723         (WebKit::WebDatabaseManager::deleteDatabaseWithNameForOrigin): Deleted.
1724         (WebKit::WebDatabaseManager::deleteDatabasesForOrigin): Deleted.
1725         (WebKit::WebDatabaseManager::deleteAllDatabases): Deleted.
1726         (WebKit::WebDatabaseManager::closeAllDatabases): Deleted.
1727         (WebKit::WebDatabaseManager::setQuotaForOrigin): Deleted.
1728         (WebKit::WebDatabaseManager::dispatchDidModifyOrigin): Deleted.
1729         (WebKit::WebDatabaseManager::dispatchDidModifyDatabase): Deleted.
1730         * WebProcess/WebCoreSupport/WebDatabaseManager.h: Removed.
1731         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in: Removed.
1732         * WebProcess/WebCoreSupport/ios/WebDatabaseManagerIOS.mm: Removed.
1733         (WebKit::WebDatabaseManager::dispatchDidAddNewOrigin): Deleted.
1734         (WebKit::WebDatabaseManager::dispatchDidDeleteDatabase): Deleted.
1735         (WebKit::WebDatabaseManager::dispatchDidDeleteDatabaseOrigin): Deleted.
1736         * WebProcess/WebProcess.cpp:
1737         (WebKit::WebProcess::processWillSuspendImminently):
1738         (WebKit::m_webSQLiteDatabaseTracker): Deleted.
1739
1740 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
1741
1742         [GTK] Unreviewed, fix GtkDoc after r193620
1743
1744         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:
1745
1746 2015-12-18  Dan Bernstein  <mitz@apple.com>
1747
1748         WebPage::didCompleteUserMediaPermissionCheck and WebPage::didReceiveUserMediaPermissionDecision are exported
1749         https://bugs.webkit.org/show_bug.cgi?id=152429
1750
1751         Reviewed by Tim Horton.
1752
1753         * WebProcess/WebPage/WebPage.h: Removed WK_EXPORT specifiers from these two declarations.
1754
1755 2015-12-18  Alex Christensen  <achristensen@webkit.org>
1756
1757         Move networking code from Shared to NetworkProcess
1758         https://bugs.webkit.org/show_bug.cgi?id=152421
1759
1760         Reviewed by Antti Koivisto.
1761
1762         Since recently removing the non-NetworkProcess configurations, this code is no longer shared with the WebProcess.
1763
1764         * CMakeLists.txt:
1765         * DerivedSources.make:
1766         * NetworkProcess/CustomProtocols: Copied from Source/WebKit2/Shared/Network/CustomProtocols.
1767         * NetworkProcess/Downloads: Copied from Source/WebKit2/Shared/Downloads.
1768         * NetworkProcess/Downloads/Download.cpp: Copied from Source/WebKit2/Shared/Downloads/Download.cpp.
1769         * NetworkProcess/Downloads/Download.h: Copied from Source/WebKit2/Shared/Downloads/Download.h.
1770         * NetworkProcess/Downloads/DownloadID.h: Copied from Source/WebKit2/Shared/Downloads/DownloadID.h.
1771         * NetworkProcess/Downloads/DownloadManager.cpp: Copied from Source/WebKit2/Shared/Downloads/DownloadManager.cpp.
1772         * NetworkProcess/Downloads/DownloadManager.h: Copied from Source/WebKit2/Shared/Downloads/DownloadManager.h.
1773         * NetworkProcess/NetworkProcessCreationParameters.cpp: Copied from Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.cpp.
1774         * NetworkProcess/NetworkProcessCreationParameters.h: Copied from Source/WebKit2/Shared/Network/NetworkProcessCreationParameters.h.
1775         * NetworkProcess/NetworkProcessSupplement.h: Copied from Source/WebKit2/Shared/Network/NetworkProcessSupplement.h.
1776         * NetworkProcess/NetworkResourceLoadParameters.cpp: Copied from Source/WebKit2/Shared/Network/NetworkResourceLoadParameters.cpp.
1777         * NetworkProcess/NetworkResourceLoadParameters.h: Copied from Source/WebKit2/Shared/Network/NetworkResourceLoadParameters.h.
1778         * PlatformEfl.cmake:
1779         * PlatformGTK.cmake:
1780         * PlatformMac.cmake:
1781         * Shared/Downloads: Removed.
1782         * Shared/Downloads/Download.cpp: Removed.
1783         * Shared/Downloads/Download.h: Removed.
1784         * Shared/Downloads/DownloadAuthenticationClient.cpp: Removed.
1785         * Shared/Downloads/DownloadAuthenticationClient.h: Removed.
1786         * Shared/Downloads/DownloadID.h: Removed.
1787         * Shared/Downloads/DownloadManager.cpp: Removed.
1788         * Shared/Downloads/DownloadManager.h: Removed.
1789         * Shared/Downloads/cocoa: Removed.
1790         * Shared/Downloads/cocoa/DownloadCocoa.mm: Removed.
1791         * Shared/Downloads/efl: Removed.
1792         * Shared/Downloads/efl/DownloadSoupErrorsEfl.cpp: Removed.
1793         * Shared/Downloads/gtk: Removed.
1794         * Shared/Downloads/gtk/DownloadSoupErrorsGtk.cpp: Removed.
1795         * Shared/Downloads/ios: Removed.
1796         * Shared/Downloads/ios/DownloadIOS.mm: Removed.
1797         * Shared/Downloads/mac: Removed.
1798         * Shared/Downloads/mac/DownloadMac.mm: Removed.
1799         * Shared/Downloads/soup: Removed.
1800         * Shared/Downloads/soup/DownloadSoup.cpp: Removed.
1801         * Shared/Downloads/soup/DownloadSoupErrors.h: Removed.
1802         * Shared/Network: Removed.
1803         * Shared/Network/CustomProtocols: Removed.
1804         * Shared/Network/CustomProtocols/Cocoa: Removed.
1805         * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm: Removed.
1806         * Shared/Network/CustomProtocols/CustomProtocolManager.h: Removed.
1807         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in: Removed.
1808         * Shared/Network/CustomProtocols/soup: Removed.
1809         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp: Removed.
1810         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.h: Removed.
1811         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp: Removed.
1812         * Shared/Network/NetworkProcessCreationParameters.cpp: Removed.
1813         * Shared/Network/NetworkProcessCreationParameters.h: Removed.
1814         * Shared/Network/NetworkProcessSupplement.h: Removed.
1815         * Shared/Network/NetworkResourceLoadParameters.cpp: Removed.
1816         * Shared/Network/NetworkResourceLoadParameters.h: Removed.
1817         * WebKit2.xcodeproj/project.pbxproj:
1818
1819 2015-12-18  Michael Catanzaro  <mcatanzaro@igalia.com>
1820
1821         LayerTreeHostGtk triggers -Wunused-private-field
1822         https://bugs.webkit.org/show_bug.cgi?id=152410
1823
1824         Reviewed by Carlos Garcia Campos.
1825
1826         Remove the unused member variable.
1827
1828         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1829
1830 2015-12-18  Alex Christensen  <achristensen@webkit.org>
1831
1832         Add types for DownloadID and TaskIdentifier
1833         https://bugs.webkit.org/show_bug.cgi?id=152401
1834
1835         Reviewed by Brady Eidson.
1836
1837         DownloadID and TaskIdentifier used to both be just uint64_t's.
1838         It is confusing to distinguish between them, so now they both have names.
1839         We need a HashMap<TaskIdentifier, DownloadID> instead of a HashMap<uint64_t, uint64_t>.
1840
1841         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1842         (WebKit::storageSession):
1843         (WebKit::NetworkConnectionToWebProcess::startDownload):
1844         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
1845         * NetworkProcess/NetworkConnectionToWebProcess.h:
1846         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
1847         * NetworkProcess/NetworkProcess.cpp:
1848         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
1849         (WebKit::NetworkProcess::downloadRequest):
1850         (WebKit::NetworkProcess::resumeDownload):
1851         (WebKit::NetworkProcess::cancelDownload):
1852         (WebKit::NetworkProcess::getNetworkProcessStatistics):
1853         (WebKit::NetworkProcess::logDiagnosticMessage):
1854         (WebKit::NetworkProcess::logDiagnosticMessageWithResult):
1855         (WebKit::NetworkProcess::logDiagnosticMessageWithValue):
1856         * NetworkProcess/NetworkProcess.h:
1857         * NetworkProcess/NetworkProcess.messages.in:
1858         * NetworkProcess/NetworkSession.h:
1859         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
1860         (WebKit::NetworkSession::createDataTaskWithRequest):
1861         (WebKit::NetworkSession::dataTaskForIdentifier):
1862         (WebKit::NetworkDataTask::resume):
1863         (WebKit::NetworkDataTask::taskIdentifier): Deleted.
1864         * Shared/Downloads/Download.cpp:
1865         (WebKit::Download::Download):
1866         (WebKit::Download::messageSenderDestinationID):
1867         * Shared/Downloads/Download.h:
1868         (WebKit::Download::downloadID):
1869         * Shared/Downloads/DownloadID.h: Added.
1870         (WebKit::DownloadID::DownloadID):
1871         (WebKit::DownloadID::operator==):
1872         (WebKit::DownloadID::downloadID):
1873         (IPC::ArgumentCoder<WebKit::DownloadID>::encode):
1874         (IPC::ArgumentCoder<WebKit::DownloadID>::decode):
1875         (WTF::DownloadIDHash::hash):
1876         (WTF::DownloadIDHash::equal):
1877         (WTF::HashTraits<WebKit::DownloadID>::emptyValue):
1878         (WTF::HashTraits<WebKit::DownloadID>::constructDeletedValue):
1879         (WTF::HashTraits<WebKit::DownloadID>::isDeletedValue):
1880         * Shared/Downloads/DownloadManager.cpp:
1881         (WebKit::DownloadManager::DownloadManager):
1882         (WebKit::DownloadManager::startDownload):
1883         (WebKit::DownloadManager::convertHandleToDownload):
1884         (WebKit::DownloadManager::resumeDownload):
1885         (WebKit::DownloadManager::cancelDownload):
1886         * Shared/Downloads/DownloadManager.h:
1887         (WebKit::DownloadManager::isDownloading):
1888         * UIProcess/API/C/WKDownload.cpp:
1889         (WKDownloadGetID):
1890         (WKDownloadCopyRequest):
1891         * UIProcess/Downloads/DownloadProxy.h:
1892         (WebKit::DownloadProxy::downloadID):
1893         (WebKit::DownloadProxy::request):
1894         (WebKit::DownloadProxy::resumeData):
1895         * UIProcess/Downloads/DownloadProxyMap.cpp:
1896         (WebKit::DownloadProxyMap::createDownloadProxy):
1897         (WebKit::DownloadProxyMap::downloadFinished):
1898         (WebKit::DownloadProxyMap::processDidClose):
1899         * UIProcess/Downloads/DownloadProxyMap.h:
1900         * UIProcess/WebPageProxy.cpp:
1901         (WebKit::WebPageProxy::receivedPolicyDecision):
1902         (WebKit::WebPageProxy::frameDidBecomeFrameSet):
1903         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1904         (WebKit::WebPageProxy::decidePolicyForResponse):
1905         (WebKit::WebPageProxy::decidePolicyForResponseSync):
1906         * UIProcess/WebPageProxy.h:
1907         * UIProcess/WebPageProxy.messages.in:
1908         * WebKit2.xcodeproj/project.pbxproj:
1909         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1910         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1911         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1912         * WebProcess/WebPage/WebFrame.cpp:
1913         (WebKit::WebFrame::invalidatePolicyListener):
1914         (WebKit::WebFrame::didReceivePolicyDecision):
1915         (WebKit::WebFrame::startDownload):
1916         (WebKit::WebFrame::convertMainResourceLoadToDownload):
1917         * WebProcess/WebPage/WebFrame.h:
1918         * WebProcess/WebPage/WebPage.cpp:
1919         (WebKit::WebPage::setSessionID):
1920         (WebKit::WebPage::didReceivePolicyDecision):
1921         * WebProcess/WebPage/WebPage.h:
1922         * WebProcess/WebPage/WebPage.messages.in:
1923
1924 2015-12-17  Dan Bernstein  <mitz@apple.com>
1925
1926         Fixed a typo from r194022.
1927
1928         * Configurations/WebKit.xcconfig: Changed PlugInProcessShim.dylib to PluginProcessShim.dylib.
1929
1930 2015-12-17  Commit Queue  <commit-queue@webkit.org>
1931
1932         Unreviewed, rolling out r194250 and r194254.
1933         https://bugs.webkit.org/show_bug.cgi?id=152414
1934
1935         broke api tests (Requested by alexchristensen on #webkit).
1936
1937         Reverted changesets:
1938
1939         "Add types for DownloadID and TaskIdentifier"
1940         https://bugs.webkit.org/show_bug.cgi?id=152401
1941         http://trac.webkit.org/changeset/194250
1942
1943         "Build fix after r194250"
1944         http://trac.webkit.org/changeset/194254
1945
1946 2015-12-17  Alex Christensen  <achristensen@webkit.org>
1947
1948         Build fix after r194250
1949
1950         * WebKit2.xcodeproj/project.pbxproj:
1951         Change target membership from all to WebKit.
1952
1953 2015-12-17  Alex Christensen  <achristensen@webkit.org>
1954
1955         Add types for DownloadID and TaskIdentifier
1956         https://bugs.webkit.org/show_bug.cgi?id=152401
1957
1958         Reviewed by Brady Eidson.
1959
1960         DownloadID and TaskIdentifier used to both be just uint64_t's.
1961         It is confusing to distinguish between them, so now they both have names.
1962         We need a HashMap<TaskIdentifier, DownloadID> instead of a HashMap<uint64_t, uint64_t>.
1963
1964         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1965         (WebKit::storageSession):
1966         (WebKit::NetworkConnectionToWebProcess::startDownload):
1967         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
1968         * NetworkProcess/NetworkConnectionToWebProcess.h:
1969         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
1970         * NetworkProcess/NetworkProcess.cpp:
1971         (WebKit::NetworkProcess::deleteWebsiteDataForOrigins):
1972         (WebKit::NetworkProcess::downloadRequest):
1973         (WebKit::NetworkProcess::resumeDownload):
1974         (WebKit::NetworkProcess::cancelDownload):
1975         (WebKit::NetworkProcess::getNetworkProcessStatistics):
1976         (WebKit::NetworkProcess::logDiagnosticMessage):
1977         (WebKit::NetworkProcess::logDiagnosticMessageWithResult):
1978         (WebKit::NetworkProcess::logDiagnosticMessageWithValue):
1979         * NetworkProcess/NetworkProcess.h:
1980         * NetworkProcess/NetworkProcess.messages.in:
1981         * NetworkProcess/NetworkSession.h:
1982         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
1983         (WebKit::NetworkSession::createDataTaskWithRequest):
1984         (WebKit::NetworkSession::dataTaskForIdentifier):
1985         (WebKit::NetworkDataTask::resume):
1986         (WebKit::NetworkDataTask::taskIdentifier): Deleted.
1987         * Shared/Downloads/Download.cpp:
1988         (WebKit::Download::Download):
1989         (WebKit::Download::messageSenderDestinationID):
1990         * Shared/Downloads/Download.h:
1991         (WebKit::Download::downloadID):
1992         * Shared/Downloads/DownloadID.h: Added.
1993         (WebKit::DownloadID::DownloadID):
1994         (WebKit::DownloadID::operator==):
1995         (WebKit::DownloadID::downloadID):
1996         (IPC::ArgumentCoder<WebKit::DownloadID>::encode):
1997         (IPC::ArgumentCoder<WebKit::DownloadID>::decode):
1998         (WTF::DownloadIDHash::hash):
1999         (WTF::DownloadIDHash::equal):
2000         (WTF::HashTraits<WebKit::DownloadID>::emptyValue):
2001         (WTF::HashTraits<WebKit::DownloadID>::constructDeletedValue):
2002         (WTF::HashTraits<WebKit::DownloadID>::isDeletedValue):
2003         * Shared/Downloads/DownloadManager.cpp:
2004         (WebKit::DownloadManager::DownloadManager):
2005         (WebKit::DownloadManager::startDownload):
2006         (WebKit::DownloadManager::convertHandleToDownload):
2007         (WebKit::DownloadManager::resumeDownload):
2008         (WebKit::DownloadManager::cancelDownload):
2009         * Shared/Downloads/DownloadManager.h:
2010         (WebKit::DownloadManager::isDownloading):
2011         * UIProcess/API/C/WKDownload.cpp:
2012         (WKDownloadGetID):
2013         (WKDownloadCopyRequest):
2014         * UIProcess/Downloads/DownloadProxy.h:
2015         (WebKit::DownloadProxy::downloadID):
2016         (WebKit::DownloadProxy::request):
2017         (WebKit::DownloadProxy::resumeData):
2018         * UIProcess/Downloads/DownloadProxyMap.cpp:
2019         (WebKit::DownloadProxyMap::createDownloadProxy):
2020         (WebKit::DownloadProxyMap::downloadFinished):
2021         (WebKit::DownloadProxyMap::processDidClose):
2022         * UIProcess/Downloads/DownloadProxyMap.h:
2023         * UIProcess/WebPageProxy.cpp:
2024         (WebKit::WebPageProxy::receivedPolicyDecision):
2025         (WebKit::WebPageProxy::frameDidBecomeFrameSet):
2026         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
2027         (WebKit::WebPageProxy::decidePolicyForResponse):
2028         (WebKit::WebPageProxy::decidePolicyForResponseSync):
2029         * UIProcess/WebPageProxy.h:
2030         * UIProcess/WebPageProxy.messages.in:
2031         * WebKit2.xcodeproj/project.pbxproj:
2032         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2033         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2034         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2035         * WebProcess/WebPage/WebFrame.cpp:
2036         (WebKit::WebFrame::invalidatePolicyListener):
2037         (WebKit::WebFrame::didReceivePolicyDecision):
2038         (WebKit::WebFrame::startDownload):
2039         (WebKit::WebFrame::convertMainResourceLoadToDownload):
2040         * WebProcess/WebPage/WebFrame.h:
2041         * WebProcess/WebPage/WebPage.cpp:
2042         (WebKit::WebPage::setSessionID):
2043         (WebKit::WebPage::didReceivePolicyDecision):
2044         * WebProcess/WebPage/WebPage.h:
2045         * WebProcess/WebPage/WebPage.messages.in:
2046
2047 2015-12-17  Simon Fraser  <simon.fraser@apple.com>
2048
2049         Disable viewport "shrink to fit" outside of multitasking mode
2050         https://bugs.webkit.org/show_bug.cgi?id=152403
2051         rdar://problem/23818102
2052
2053         Reviewed by Tim Horton.
2054         
2055         Plumb through a value that indicates whether the WKWebView is in split screen,
2056         and use it to conditionally enable shrink-to-fit mode only in split screen.
2057         
2058         * Shared/VisibleContentRectUpdateInfo.cpp: Added m_allowShrinkToFit, and sort
2059         the member variables, and encoding order, to optimize packing, with some initializers.
2060         (WebKit::VisibleContentRectUpdateInfo::encode):
2061         (WebKit::VisibleContentRectUpdateInfo::decode):
2062         * Shared/VisibleContentRectUpdateInfo.h:
2063         (WebKit::VisibleContentRectUpdateInfo::VisibleContentRectUpdateInfo):
2064         (WebKit::VisibleContentRectUpdateInfo::allowShrinkToFit):
2065         (WebKit::operator==):
2066         * UIProcess/API/Cocoa/WKWebView.mm: Add _allowsViewportShrinkToFit member variable,
2067         with getter and setter.
2068         (-[WKWebView _updateVisibleContentRects]): Unwrap the line.
2069         (-[WKWebView _setAllowsViewportShrinkToFit:]):
2070         (-[WKWebView _allowsViewportShrinkToFit]):
2071         * UIProcess/API/Cocoa/WKWebViewPrivate.h: _allowsViewportShrinkToFit SPI.
2072         * UIProcess/WebPageProxy.h: Pass allowShrinkToFit through.
2073         * UIProcess/ios/WKContentView.mm: Ditto.
2074         (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:]):
2075         * UIProcess/ios/WebPageProxyIOS.mm:
2076         (WebKit::WebPageProxy::updateVisibleContentRects): Padd allowShrinkToFit to the web process via the VisibleContentRectUpdateInfo.
2077         * WebProcess/WebPage/WebPage.cpp:
2078         (WebKit::WebPage::updatePreferences): Store m_ignoreViewportScalingConstraints in a member variable since we can't
2079         get back to the prefs later.
2080         * WebProcess/WebPage/WebPage.h:
2081         * WebProcess/WebPage/ios/WebPageIOS.mm:
2082         (WebKit::WebPage::updateVisibleContentRects): This is the behavior change: call setCanIgnoreScalingConstraints()
2083         on the viewport configuration, consulting the pref (via m_ignoreViewportScalingConstraints) and the new
2084         visibleContentRectUpdateInfo.allowShrinkToFit().
2085
2086 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2087
2088         ViewportConfiguration functions should return a bool to say if anything changed
2089         https://bugs.webkit.org/show_bug.cgi?id=152353
2090
2091         Reviewed by Tim Horton.
2092
2093         Rather than callers all checking whether setting ViewportConfiguration values
2094         changes state, have its functions return a bool if the values change.
2095
2096         * WebProcess/WebPage/WebPage.cpp:
2097         (WebKit::WebPage::mainFrameDidLayout):
2098         (WebKit::WebPage::didCommitLoad):
2099         * WebProcess/WebPage/ios/WebPageIOS.mm:
2100         (WebKit::WebPage::viewportPropertiesDidChange):
2101         (WebKit::WebPage::setViewportConfigurationMinimumLayoutSize):
2102
2103 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2104
2105         Progress towards implementing downloads with NetworkSession
2106         https://bugs.webkit.org/show_bug.cgi?id=152371
2107
2108         Reviewed by Darin Adler.
2109
2110         * NetworkProcess/NetworkProcess.cpp:
2111         (WebKit::NetworkProcess::downloadRequest):
2112         (WebKit::NetworkProcess::resumeDownload):
2113         (WebKit::NetworkProcess::cancelDownload):
2114         * NetworkProcess/NetworkProcess.h:
2115         * NetworkProcess/NetworkProcess.messages.in:
2116         * Shared/Authentication/AuthenticationManager.cpp:
2117         (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
2118         * Shared/Authentication/AuthenticationManager.h:
2119         * Shared/Downloads/Download.cpp:
2120         (WebKit::Download::Download):
2121         (WebKit::Download::didReceiveAuthenticationChallenge):
2122         * Shared/Downloads/Download.h:
2123         * Shared/Downloads/DownloadManager.cpp:
2124         (WebKit::DownloadManager::startDownload):
2125         (WebKit::DownloadManager::convertHandleToDownload):
2126         (WebKit::DownloadManager::resumeDownload):
2127         (WebKit::DownloadManager::cancelDownload):
2128         (WebKit::DownloadManager::downloadFinished):
2129         (WebKit::DownloadManager::didCreateDownload):
2130         * Shared/Downloads/DownloadManager.h:
2131         * Shared/Downloads/cocoa: Added.
2132         * Shared/Downloads/cocoa/DownloadCocoa.mm: Added.
2133         (WebKit::Download::start):
2134         (WebKit::Download::resume):
2135         (WebKit::Download::cancel):
2136         (WebKit::Download::platformInvalidate):
2137         * Shared/Downloads/ios/DownloadIOS.mm:
2138         * Shared/Downloads/mac/DownloadMac.mm:
2139         (WebKit::Download::start):
2140         (WebKit::Download::startWithHandle):
2141         (WebKit::Download::resume):
2142         * UIProcess/WebProcessPool.cpp:
2143         (WebKit::WebProcessPool::resumeDownload):
2144         * UIProcess/WebProcessPool.h:
2145         * WebKit2.xcodeproj/project.pbxproj:
2146
2147 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2148
2149         ViewportConfiguration functions should return a bool to say if anything changed
2150         https://bugs.webkit.org/show_bug.cgi?id=152353
2151
2152         Reviewed by Tim Horton.
2153
2154         Rather than callers all checking whether setting ViewportConfiguration values
2155         changes state, have its functions return a bool if the values change.
2156
2157         * WebProcess/WebPage/WebPage.cpp:
2158         (WebKit::WebPage::mainFrameDidLayout):
2159         (WebKit::WebPage::didCommitLoad):
2160         * WebProcess/WebPage/ios/WebPageIOS.mm:
2161         (WebKit::WebPage::viewportPropertiesDidChange):
2162         (WebKit::WebPage::setViewportConfigurationMinimumLayoutSize):
2163
2164 2015-12-16  Tim Horton  <timothy_horton@apple.com>
2165
2166         REGRESSION (r191299): Zoom gestures are enabled even if allowsMagnification=NO
2167         https://bugs.webkit.org/show_bug.cgi?id=152373
2168         <rdar://problem/23931998>
2169
2170         Reviewed by Simon Fraser.
2171
2172         * UIProcess/Cocoa/WebViewImpl.mm:
2173         (WebKit::WebViewImpl::gestureEventWasNotHandledByWebCoreFromViewOnly):
2174         Don't pass the event on to ViewGestureController if we shouldn't handle it,
2175         just like we would have done in magnifyWithEvent before.
2176
2177 2015-12-16  Tim Horton  <timothy_horton@apple.com>
2178
2179         REGRESSION (r194125): Crashes in touchesEndedWithEvent on occasion when interacting with the page
2180         https://bugs.webkit.org/show_bug.cgi?id=152366
2181         <rdar://problem/23929672>
2182
2183         Reviewed by Beth Dakin.
2184
2185         * UIProcess/Cocoa/WebViewImpl.mm:
2186         (WebKit::WebViewImpl::touchesEndedWithEvent):
2187         (WebKit::WebViewImpl::touchesCancelledWithEvent):
2188         NSTouch identifiers aren't pointer-comparable. We need to use isEqual to
2189         compare them and find the ones to remove.
2190
2191 2015-12-16  Simon Fraser  <simon.fraser@apple.com>
2192
2193         Simplify isOverlayScrollbar() logic
2194         https://bugs.webkit.org/show_bug.cgi?id=152357
2195
2196         Reviewed by Beth Dakin.
2197
2198         Replace code that checks for isOverlayScrollbar() explicitly with calls to new
2199         occupiedWidth()/occupiedHeight() functions on Scrollbar, which do the overlay
2200         scrollbar check internally.
2201         
2202         Add ScrollableArea::scrollbarIntrusion() which returns an IntSize with the occupiedWidth
2203         and occupiedHeight of any scrollbars, and use it in a few places.
2204
2205         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
2206         (WebKit::PDFPlugin::updateScrollbars):
2207         (WebKit::PDFPlugin::maximumScrollPosition):
2208
2209 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2210
2211         Build fix when using NETWORK_SESSION after r193972.
2212
2213         Rubber-stamped by Joseph Pecoraro.
2214
2215         Renamed NetworkSessionDelegate to WKNetworkSessionDelegate to conform to the 
2216         newly-enforced style rule in check-for-inappropriate-objc-class-names.
2217
2218         * NetworkProcess/NetworkSession.h:
2219         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2220         (toNSURLSessionAuthChallengeDisposition):
2221         (-[WKNetworkSessionDelegate initWithNetworkSession:]):
2222         (WebKit::NetworkSession::NetworkSession):
2223         (-[NetworkSessionDelegate initWithNetworkSession:]): Deleted.
2224
2225 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2226
2227         Implement Web Timing when using NETWORK_SESSION
2228         https://bugs.webkit.org/show_bug.cgi?id=152285
2229
2230         Reviewed by Darin Adler.
2231
2232         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2233         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
2234         (WebKit::NetworkSession::NetworkSession):
2235         Use functions moved to ResourceLoadTiming.h.  setCollectsTimingData is for Mavericks, _timingDataOptions is post-Mavericks.
2236
2237 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2238
2239         [Fetch API] Add fetch API compile time flag
2240         https://bugs.webkit.org/show_bug.cgi?id=152254
2241
2242         Reviewed by Darin Adler.
2243
2244         * Configurations/FeatureDefines.xcconfig:
2245
2246 2015-12-15  Tim Horton  <timothy_horton@apple.com>
2247
2248         [Mac] Gesture Events should not have negative scale
2249         https://bugs.webkit.org/show_bug.cgi?id=151065
2250         <rdar://problem/23474123>
2251
2252         Reviewed by Anders Carlsson.
2253
2254         * Shared/NativeWebGestureEvent.h:
2255         * Shared/mac/NativeWebGestureEventMac.mm:
2256         (WebKit::distanceForTouches):
2257         (WebKit::NativeWebGestureEvent::NativeWebGestureEvent):
2258         Compute the distance between the two oldest touches, and use that as
2259         the scale (really the gesture diameter) on the event, instead of
2260         passing through AppKit's magnification (which is computed differently).
2261         This matches the documented behavior of the existing gesture events on iOS.
2262
2263         * UIProcess/API/Cocoa/WKWebView.mm:
2264         (-[WKWebView touchesBeganWithEvent:]):
2265         (-[WKWebView touchesMovedWithEvent:]):
2266         (-[WKWebView touchesEndedWithEvent:]):
2267         (-[WKWebView touchesCancelledWithEvent:]):
2268         * UIProcess/API/mac/WKView.mm:
2269         (-[WKView touchesBeganWithEvent:]):
2270         (-[WKView touchesMovedWithEvent:]):
2271         (-[WKView touchesEndedWithEvent:]):
2272         (-[WKView touchesCancelledWithEvent:]):
2273         Plumb touch events through to WebViewImpl.
2274
2275         * UIProcess/Cocoa/WebViewImpl.h:
2276         * UIProcess/Cocoa/WebViewImpl.mm:
2277         (WebKit::WebViewImpl::WebViewImpl):
2278         (WebKit::WebViewImpl::magnifyWithEvent):
2279         (WebKit::WebViewImpl::touchesOrderedByAge):
2280         (WebKit::WebViewImpl::touchesBeganWithEvent):
2281         (WebKit::WebViewImpl::touchesMovedWithEvent):
2282         (WebKit::WebViewImpl::touchesEndedWithEvent):
2283         (WebKit::WebViewImpl::touchesCancelledWithEvent):
2284         (WebKit::WebViewImpl::rotateWithEvent):
2285         Keep track of the most recent incoming touches, by identifier, in age order.
2286         Pass them through to NativeWebGestureEvent so it can determine the gesture diameter.
2287
2288 2015-12-15  Anders Carlsson  <andersca@apple.com>
2289
2290         Call DatabaseManager directly from WKBundle.cpp
2291         https://bugs.webkit.org/show_bug.cgi?id=152317
2292
2293         Reviewed by Tim Horton.
2294
2295         This is in preparation for getting rid of some old database manager code.
2296
2297         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2298         (WKBundleClearAllDatabases):
2299         (WKBundleSetDatabaseQuota):
2300         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2301         (WebKit::InjectedBundle::clearAllDatabases): Deleted.
2302         (WebKit::InjectedBundle::setDatabaseQuota): Deleted.
2303         * WebProcess/InjectedBundle/InjectedBundle.h:
2304
2305 2015-12-15  Daniel Bates  <dabates@apple.com>
2306
2307         Guard code that uses class LayerTreeHost with USE(COORDINATED_GRAPHICS) or USE(TEXTURE_MAPPER)
2308         https://bugs.webkit.org/show_bug.cgi?id=152265
2309
2310         Reviewed by Tim Horton.
2311
2312         We neither make use of LayerTreeHost on Mac nor on iOS. We should guard code that makes
2313         use of this class as applicable. This also fixes the iOS Simulator build when using
2314         Apple Internal software.
2315
2316         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Guard code that used LayerTreeHost.
2317         * WebProcess/WebPage/LayerTreeHost.cpp: Guard contents of file with USE(COORDINATED_GRAPHICS) || USE(TEXTURE_MAPPER).
2318         * WebProcess/WebPage/LayerTreeHost.h: Ditto.
2319         * WebProcess/WebPage/WebPage.cpp:
2320         (WebKit::WebPage::scalePage): Ditto.
2321         (WebKit::WebPage::setDeviceScaleFactor): Ditto.
2322         * WebProcess/WebPage/WebPage.h: Substitute header LayerTreeContext.h for LayerTreeHost.h since we make use
2323         of the enum class LayerHostingMode.
2324         * WebProcess/WebPage/ios/WebPageIOS.mm:
2325         (WebKit::WebPage::updateVisibleContentRects): Remove unnecessary code; DrawingArea::layerTreeHost() always
2326         returns nullptr on iOS.
2327
2328 2015-12-15  Zan Dobersek  <zdobersek@igalia.com>
2329
2330         [TexMap] Operate with a reference to the TextureMapper wherever possible
2331         https://bugs.webkit.org/show_bug.cgi?id=152118
2332
2333         Reviewed by Martin Robinson.
2334
2335         Replace pointers to the TextureMapper object with references.
2336
2337         * Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp:
2338         (WebKit::CoordinatedBackingStoreTile::swapBuffers):
2339         (WebKit::CoordinatedBackingStore::paintTilesToTextureMapper):
2340         (WebKit::CoordinatedBackingStore::paintToTextureMapper):
2341         (WebKit::CoordinatedBackingStore::drawBorder):
2342         (WebKit::CoordinatedBackingStore::drawRepaintCounter):
2343         (WebKit::CoordinatedBackingStore::commitTileOperations):
2344         * Shared/CoordinatedGraphics/CoordinatedBackingStore.h:
2345         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
2346         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
2347         (WebKit::CoordinatedGraphicsScene::paintToGraphicsContext):
2348         (WebKit::CoordinatedGraphicsScene::commitPendingBackingStoreOperations):
2349
2350 2015-12-14  YongGeol Jung  <yg48.jung@samsung.com>
2351
2352         [Coordinated Graphics] CSS transition effect is not shown when transformed with "%" unit.
2353         https://bugs.webkit.org/show_bug.cgi?id=152278
2354
2355         Reviewed by Darin Adler.
2356
2357         boxSize is encoded as FloatSize type but decoded as IntSize type.
2358         So boxSize gets invalid value after decoding.
2359         Due to this layer goes to out of screen during animation.
2360
2361         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2362         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
2363
2364 2015-12-14  Dan Bernstein  <mitz@apple.com>
2365
2366         <rdar://problem/23886216> REGRESSION (r194022): Production builds of PluginProcess crash on launch when not installed in /System
2367         https://bugs.webkit.org/show_bug.cgi?id=152291
2368
2369         Reviewed by Darin Adler.
2370
2371         * Configurations/PluginProcess.xcconfig: Added a FIXME.
2372         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2373         (WebKit::addDYLDEnvironmentAdditions): Set DYLD_LIBRARY_PATH to point to where the shims
2374         are. This is needed because starting in El Capitan, the processes’ main executables link
2375         directly against the shims, so the dynamic linker needs to be able to find them in the
2376         non-/System location. Also added a FIXME about not having to set DYLD_INSERT_LIBRARIES when
2377         the main executables link the them directly.
2378
2379 2015-12-14  Simon Fraser  <simon.fraser@apple.com>
2380
2381         Dump some more data in the RemoteLayerTreeTransaction
2382         https://bugs.webkit.org/show_bug.cgi?id=152283
2383
2384         Reviewed by Dean Jackson.
2385         
2386         Dump some scale factors, viewport meta tag width and render tree size.
2387
2388         * Shared/mac/RemoteLayerTreeTransaction.mm:
2389         (WebKit::RemoteLayerTreeTransaction::description):
2390
2391 2015-12-14  Tim Horton  <timothy_horton@apple.com>
2392
2393         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
2394         https://bugs.webkit.org/show_bug.cgi?id=152266
2395         <rdar://problem/22092676>
2396
2397         Reviewed by Simon Fraser.
2398
2399         * UIProcess/ios/WKPDFView.mm:
2400         (-[WKPDFView web_setMinimumSize:]):
2401         We weren't retaining the UIScrollView, but depending on it surviving
2402         into this block's invocation.
2403
2404         We don't need to do this asynchronously anymore because the referenced
2405         bug is fixed, so make it happen synchronously. This also fixes the crash
2406         because there's no opportunity for the scroll view to be released.
2407
2408 2015-12-14  Tim Horton  <timothy_horton@apple.com>
2409
2410         TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate() sets fence port on context twice
2411         https://bugs.webkit.org/show_bug.cgi?id=152239
2412         <rdar://problem/22893289>
2413
2414         Reviewed by Darin Adler.
2415
2416         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2417         (WebKit::TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate):
2418         No need to setFencePort; createFencePort also installs it on the creating context.
2419
2420 2015-12-12  Alex Christensen  <achristensen@webkit.org>
2421
2422         Use existing code for redirects when using NETWORK_SESSION
2423         https://bugs.webkit.org/show_bug.cgi?id=152207
2424         rdar://problem/23860624
2425
2426         Reviewed by Darin Adler.
2427         
2428         This fixes http/tests/cookies/set-cookie-on-redirect.html when using NETWORK_SESSION.
2429
2430         * NetworkProcess/NetworkLoad.cpp:
2431         (WebKit::NetworkLoad::continueWillSendRequest):
2432         (WebKit::NetworkLoad::convertTaskToDownload):
2433         (WebKit::NetworkLoad::willPerformHTTPRedirection):
2434         (WebKit::NetworkLoad::didReceiveChallenge):
2435         * NetworkProcess/NetworkLoad.h:
2436         * NetworkProcess/NetworkSession.h:
2437
2438 2015-12-13  Tim Horton  <timothy_horton@apple.com>
2439
2440         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
2441         https://bugs.webkit.org/show_bug.cgi?id=150988
2442         <rdar://problem/18993594>
2443
2444         Reviewed by Darin Adler.
2445
2446         * WebProcess/WebPage/WebFrame.cpp:
2447         (WebKit::WebFrame::createSelectionSnapshot):
2448         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
2449
2450 2015-12-13  Dan Bernstein  <mitz@apple.com>
2451
2452         Another fix after r194018.
2453
2454         * Configurations/BaseTarget.xcconfig:
2455         * Configurations/BaseXPCService.xcconfig:
2456
2457 2015-12-13  Dan Bernstein  <mitz@apple.com>
2458
2459         [Mac] Shims used by XPC services are installed inside legacy process bundles
2460         https://bugs.webkit.org/show_bug.cgi?id=152233
2461
2462         Reviewed by Sam Weinig.
2463
2464         Have the shim dylibs installed in the framework’s Frameworks directory instead.
2465
2466         * Configurations/BaseLegacyProcess.xcconfig: Simplified now that EXCLUDED_SHIM_FILE_NAME is
2467           no longer defined, because shims aren’t copied into legacy processes.
2468
2469         * Configurations/NetworkProcess.xcconfig: Removed definition of EXCLUDED_SHIM_FILE_NAME.
2470         * Configurations/PluginProcess.xcconfig: Ditto.
2471         * Configurations/WebContentProcess.xcconfig: Ditto.
2472
2473         * Configurations/Shim.xcconfig: Install the shims when building for OS X. Added definitions
2474           of INSTALL_PATH and DYLIB_INSTALL_NAME_BASE which are now common to all shims.
2475
2476         * Configurations/PluginProcessShim.xcconfig: Removed definitions of INSTALL_PATH and
2477           DYLIB_INSTALL_NAME_BASE from here, now that they are defined for all shims in
2478           Shim.xcconfig.
2479         * Configurations/SecItemShim.xcconfig: Ditto.
2480         * Configurations/WebProcessShim.xcconfig:
2481
2482         * Configurations/WebKit.xcconfig: Added the shims to EXCLUDED_SOURCE_FILE_NAMES for iOS.
2483
2484         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist: Changed
2485           the value of DYLD_INSERT_LIBRARIES to point to the shim’s new location.
2486         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist: Ditto.
2487         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist: Ditto.
2488
2489         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2490         (WebKit::computeProcessShimPath): Changed to return the new paths, which are all inside the
2491           framework’s Frameworks directory.
2492
2493         * WebKit2.xcodeproj/project.pbxproj:
2494         - Removed references to WRAPPER_NAME from the “Copy XPC services for engineering builds”
2495           build phase in the All target, becase WRAPPER_NAME is empty in an aggregate target.
2496         - Removed the PlugInProcess target’s dependency on the PluginProcessShim target and its
2497           Copy Plug-in Process Shim build phase.
2498         - Removed the NetworkProcess target’s dependency on the SecItemShim target and its Copy
2499           Sec Item Shim build phase.
2500         - Removed the WebProcess target’s dependency on the WebProcessShim target and its Copy
2501           WebProcessShim build phase.
2502         - Made the WebKit target depend on the shim targets, and added to it a Copy Shims build
2503           phase that copies the shims into the framework’s Frameworks directory.
2504
2505 2015-12-13  Dan Bernstein  <mitz@apple.com>
2506
2507         Build fix.
2508
2509         * Configurations/PluginProcess.xcconfig:
2510
2511 2015-12-13  Dan Bernstein  <mitz@apple.com>
2512
2513         [Mac] Shims aren’t inserted properly on Yosemite when building with the El Capitan SDK
2514         https://bugs.webkit.org/show_bug.cgi?id=152229
2515
2516         Reviewed by Darin Adler.
2517
2518         * Configurations/BaseTarget.xcconfig: Defined WK_LINK_SHIM on OS X to YES or NO based on the
2519           target version.
2520         * Configurations/BaseXPCService.xcconfig: Define WK_XPC_SERVICE_INFOPLIST_SUFFIX to
2521           "-10.9-10.10" when targeting those OS X versions.
2522         * Configurations/NetworkService.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
2523           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
2524         * Configurations/PluginProcess.xcconfig: Use WK_LINK_SHIM in the definition of
2525           LDFLAGS_SHIM_Production for OS X.
2526         * Configurations/PluginService.32.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
2527           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
2528         * Configurations/PluginService.64.xcconfig: Ditto.
2529         * Configurations/WebContentService.xcconfig: Ditto.
2530
2531 2015-12-12  Katlyn Graff  <kgraff@apple.com>
2532
2533         Safari background tabs should be fully suspended where possible.
2534         https://bugs.webkit.org/show_bug.cgi?id=150515
2535
2536         Reviewed by Ryosuke Niwa.
2537
2538         Added a runtime flag enabling tab suspension, default off.
2539
2540         * Shared/WebProcessCreationParameters.cpp:
2541         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
2542         (WebKit::WebProcessCreationParameters::encode):
2543         (WebKit::WebProcessCreationParameters::decode):
2544         * Shared/WebProcessCreationParameters.h:
2545         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
2546         (WebKit::registerUserDefaultsIfNeeded):
2547         (WebKit::WebProcessPool::platformInitializeWebProcess):
2548         * WebProcess/cocoa/WebProcessCocoa.mm:
2549         (WebKit::WebProcess::platformInitializeWebProcess):
2550
2551 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
2552
2553         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
2554         https://bugs.webkit.org/show_bug.cgi?id=152197
2555
2556         Reviewed by Dean Jackson.
2557
2558         * Shared/WebPreferencesDefinitions.h:
2559         * UIProcess/API/C/WKPreferences.cpp:
2560         (WKPreferencesSetMockCaptureDevicesEnabled):
2561         (WKPreferencesGetMockCaptureDevicesEnabled):
2562         * UIProcess/API/C/WKPreferencesRefPrivate.h:
2563         * UIProcess/API/Cocoa/WKPreferences.mm:
2564         (-[WKPreferences _mockCaptureDevicesEnabled]):
2565         (-[WKPreferences _setMockCaptureDevicesEnabled:]):
2566         * WebProcess/WebPage/WebPage.cpp:
2567         (WebKit::WebPage::updatePreferences):
2568
2569 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
2570
2571         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
2572         https://bugs.webkit.org/show_bug.cgi?id=152156
2573
2574         Reviewed by Dan Bernstein.
2575
2576         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
2577         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID):
2578         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
2579         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
2580         (WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy):
2581         Rename internal classes with "_WK" prefix.
2582
2583 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
2584
2585         [MediaStream] Expose media capture devices persistent permissions to WebCore
2586         https://bugs.webkit.org/show_bug.cgi?id=152087
2587
2588         Reviewed by Chris Dumez.
2589
2590         * CMakeLists.txt: Add UserMediaPermissionCheckProxy.cpp and WKUserMediaPermissionCheck.cpp.
2591
2592         * Shared/API/APIObject.h: Define UserMediaPermissionCheck.
2593
2594         * Shared/API/c/WKBase.h: Add WKUserMediaPermissionCheckRef typedef.
2595
2596         * UIProcess/API/APIUIClient.h:
2597         (API::UIClient::checkUserMediaPermissionForOrigin): New.
2598
2599         * UIProcess/API/C/WKAPICast.h: Add WKUserMediaPermissionCheckRef/UserMediaPermissionCheckProxy mapping.
2600
2601         * UIProcess/API/C/WKPage.cpp:
2602         (WKPageSetPageUIClient): Implement checkUserMediaPermissionForOrigin.
2603
2604         * UIProcess/API/C/WKPageUIClient.h: Add WKCheckUserMediaPermissionCallback typedef and add
2605           checkUserMediaPermissionForOrigin to WKPageUIClientV6.
2606
2607         * UIProcess/API/C/WKUserMediaPermissionCheck.cpp: Added.
2608         (WKUserMediaPermissionCheckGetTypeID):
2609         (WKUserMediaPermissionCheckSetHasPermission):
2610
2611         * UIProcess/API/C/WKUserMediaPermissionCheck.h: Added.
2612
2613         * UIProcess/UserMediaPermissionCheckProxy.cpp: Added.
2614         (WebKit::UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy):
2615         (WebKit::UserMediaPermissionCheckProxy::setHasPermission):
2616         (WebKit::UserMediaPermissionCheckProxy::invalidate):
2617         * UIProcess/UserMediaPermissionCheckProxy.h: Added.
2618         (WebKit::UserMediaPermissionCheckProxy::create):
2619         * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
2620         (WebKit::UserMediaPermissionRequestManagerProxy::invalidateRequests):
2621         (WebKit::UserMediaPermissionRequestManagerProxy::createRequest):
2622         (WebKit::UserMediaPermissionRequestManagerProxy::didReceiveUserMediaPermissionDecision):
2623         (WebKit::UserMediaPermissionRequestManagerProxy::createUserMediaPermissionCheck):
2624         (WebKit::UserMediaPermissionRequestManagerProxy::didCompleteUserMediaPermissionCheck):
2625         * UIProcess/UserMediaPermissionRequestManagerProxy.h:
2626         * UIProcess/WebPageProxy.cpp:
2627         (WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
2628         (WebKit::WebPageProxy::checkUserMediaPermissionForFrame):
2629         (WebKit::WebPageProxy::requestNotificationPermission):
2630         * UIProcess/WebPageProxy.h:
2631         * UIProcess/WebPageProxy.messages.in:
2632
2633         * WebKit2.xcodeproj/project.pbxproj: Add UserMediaPermissionCheckProxy.*, and WKUserMediaPermissionCheck.*.
2634
2635         * WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp:
2636         (WebKit::UserMediaPermissionRequestManager::startUserMediaRequest): Renamed from startRequest.
2637         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaRequest): Renamed from cancelRequest.
2638         (WebKit::UserMediaPermissionRequestManager::didReceiveUserMediaPermissionDecision): m_requestToIDMap ->
2639           m_userMediaRequestToIDMap.remove.
2640         (WebKit::UserMediaPermissionRequestManager::startUserMediaPermissionCheck): New, start the request.
2641         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaPermissionCheck): New, cancel
2642           the request.
2643         (WebKit::UserMediaPermissionRequestManager::didCompleteUserMediaPermissionCheck): New, 
2644           all the request completion method.
2645         (WebKit::UserMediaPermissionRequestManager::startRequest): Deleted.
2646         (WebKit::UserMediaPermissionRequestManager::cancelRequest): Deleted.
2647         * WebProcess/MediaStream/UserMediaPermissionRequestManager.h:
2648
2649         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
2650         (WebKit::WebUserMediaClient::requestUserMediaAccess): startRequest -> startUserMediaRequest.
2651         (WebKit::WebUserMediaClient::cancelUserMediaAccessRequest): cancelRequest -> cancelUserMediaRequest.
2652         (WebKit::WebUserMediaClient::checkUserMediaPermission): New.
2653         (WebKit::WebUserMediaClient::cancelUserMediaPermissionCheck): New.
2654         * WebProcess/WebCoreSupport/WebUserMediaClient.h:
2655
2656         * WebProcess/WebPage/WebPage.cpp:
2657         (WebKit::WebPage::didCompleteUserMediaPermissionCheck): New.
2658         * WebProcess/WebPage/WebPage.h:
2659         * WebProcess/WebPage/WebPage.messages.in: Add DidCompleteUserMediaPermissionCheck.
2660
2661 2015-12-10  Joseph Pecoraro  <pecoraro@apple.com>
2662
2663         Remote Inspector: Verify the identity of the other side of XPC connections
2664         https://bugs.webkit.org/show_bug.cgi?id=152153
2665
2666         Reviewed by Brian Burg.
2667
2668         * Shared/mac/SandboxUtilities.mm:
2669         * UIProcess/ApplicationStateTracker.mm:
2670         Use new header.
2671
2672 2015-12-10  Alex Christensen  <achristensen@webkit.org>
2673
2674         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
2675         https://bugs.webkit.org/show_bug.cgi?id=152022
2676         rdar://problem/23763584
2677
2678         Reviewed by Darin Adler.
2679
2680         * Shared/API/c/WKURLRequest.cpp:
2681         (WKURLRequestCopyHTTPMethod):
2682         (WKURLRequestCopyWithHTTPBody):
2683         (WKURLRequestSetDefaultTimeoutInterval):
2684         * Shared/API/c/WKURLRequest.h:
2685         Make WKURLRequestCopyWithHTTPBody SPI for testing.
2686         * Shared/API/c/mac/WKURLRequestNS.mm:
2687         (WKURLRequestCreateWithNSURLRequest):
2688         Crash if someone tries to use an NSURLRequest with HTTPBodyStream, which will not work with the network process.
2689         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
2690         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
2691         Use an HTTP body if the client's willSendRequestForFrame returned one.
2692         This is the functional change of this patch.
2693
2694 2015-12-10  Zan Dobersek  <zdobersek@igalia.com>
2695
2696         [CoordinatedGraphics] Reserve capacity for the children vector in CoordinatedGraphicsScene::setLayerChildrenIfNeeded()
2697         https://bugs.webkit.org/show_bug.cgi?id=152117
2698
2699         Reviewed by Martin Robinson.
2700
2701         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
2702         (WebKit::CoordinatedGraphicsScene::setLayerChildrenIfNeeded): Reserve the capacity
2703         for the new Vector that will contain the same number of items as the Vector
2704         on the CoordinatedGraphicsLayerState object.
2705
2706 2015-12-09  Daniel Bates  <dabates@apple.com>
2707
2708         [iOS] Bail out if the page proxy is invalid when WebPageProxy::processWillBecome{Foreground, Suspended}() are called
2709         https://bugs.webkit.org/show_bug.cgi?id=151877
2710
2711         Reviewed by Darin Adler.
2712
2713         We cannot assume that a WebPageProxy is in a valid state when WebPageProxy::processWillBecome{Foreground, Suspended}()
2714         are called because these callbacks may occur after the web process crashed and before a
2715         WebPageProxy attaches to a new web process (and hence is considered in a valid state).
2716
2717         * UIProcess/WebPageProxy.cpp:
2718         (WebKit::WebPageProxy::processWillBecomeSuspended): Early return if the page proxy is invalid.
2719         (WebKit::WebPageProxy::processWillBecomeForeground): Ditto.
2720
2721 2015-12-09  Commit Queue  <commit-queue@webkit.org>
2722
2723         Unreviewed, rolling out r193864.
2724         https://bugs.webkit.org/show_bug.cgi?id=152100
2725
2726         caused all inspector tests to assert in WK2 Debug (Requested
2727         by brrian on #webkit).
2728
2729         Reverted changeset:
2730
2731         "Web Inspector: reproducible debug ASSERT when inspecting the
2732         inspector (WK2)"
2733         https://bugs.webkit.org/show_bug.cgi?id=152080
2734         http://trac.webkit.org/changeset/193864
2735
2736 2015-12-09  Brian Burg  <bburg@apple.com>
2737
2738         Web Inspector: reproducible debug ASSERT when inspecting the inspector (WK2)
2739         https://bugs.webkit.org/show_bug.cgi?id=152080
2740
2741         Reviewed by Timothy Hatcher.
2742
2743         We hit an assert underneath ChildProcessProxy::addMessageReceiver because
2744         we tried to connect the inspector page and inspected page more than once.
2745         This relationship is already set up in the constructor of WebProcessProxy.
2746
2747         * UIProcess/WebInspectorProxy.cpp:
2748         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
2749
2750 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2751
2752         [EFL] Need to change expectation result in ewk_settings_offline_web_application_cache_enabled API test
2753         https://bugs.webkit.org/show_bug.cgi?id=152063
2754
2755         Reviewed by Csaba Osztrogonác.
2756
2757         Expect false initial value of ewk_settings_offline_web_application_cache_enabled_get()
2758         because r193812 didn't enable it by default.
2759
2760         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
2761         (TEST_F):
2762
2763 2015-12-09  Gwang Yoon Hwang  <yoon@igalia.com>
2764
2765         [ThreadedCompositor] Add support for HiDPI
2766         https://bugs.webkit.org/show_bug.cgi?id=152071
2767
2768         Reviewed by Carlos Garcia Campos.
2769
2770         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
2771         (WebKit::ThreadedCompositor::setDeviceScaleFactor): Added to receive the
2772         device scale factor from the layer tree host.
2773         (WebKit::ThreadedCompositor::renderLayerTree):
2774         Apply device scale factor before rendering the page.
2775         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
2776         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
2777         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
2778         Send a updated device scale factor to the compositing thread.
2779
2780 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
2781
2782         [CoordinatedGraphics] Remove unnecessary guards in CoordinatedDrawingArea
2783         https://bugs.webkit.org/show_bug.cgi?id=152068
2784
2785         Reviewed by Gyuyoung Kim.
2786
2787         CoordinatedDrawingArea is only for UI side compositor of CoordinatedGraphics.
2788         So, COORDINATED_GRAPHICS_MULTIPROCESS guards are not necessary.
2789         This patch also removes COORDINATED_GRAPHICS_MULTIPROCESS guards from DrawingAreaImpl
2790         because of same reason.
2791
2792         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
2793         (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy): Deleted.
2794         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
2795         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
2796         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
2797         * WebProcess/WebPage/DrawingAreaImpl.h:
2798
2799 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
2800
2801         [GTK] Crash in WebProcess when loading large content with custom URI schemes
2802         https://bugs.webkit.org/show_bug.cgi?id=144262
2803
2804         Reviewed by Carlos Garcia Campos.
2805
2806         Properly handle scenarios where errors happen after reading the first
2807         chunk of data coming from the GInputStream provided by the application.
2808
2809         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
2810         * UIProcess/API/gtk/WebKitWebContext.cpp:
2811         (webkitWebContextIsLoadingCustomProtocol): New, checks whether a load
2812         is still in progress, after the startLoading method has been called.
2813         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
2814         (webkitURISchemeRequestReadCallback): Early return if the stream has been
2815         cancelled on finish_error, so that we make sure we don't keep on reading
2816         the GInputStream after that point.
2817         (webkit_uri_scheme_request_finish_error): Don't send a didFailWithError
2818         message to the Network process if the load is not longer in progress.
2819         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp:
2820         (WebKit::CustomProtocolManagerImpl::didFailWithError): Handle the case where
2821         an error is notified from the UI process after the first chunk has been read.
2822         (WebKit::CustomProtocolManagerImpl::didReceiveResponse): Handle the case where
2823         data might no longer be available if an error happened even before this point.
2824         * WebProcess/soup/WebKitSoupRequestInputStream.h:
2825         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
2826         (webkitSoupRequestInputStreamDidFailWithError): Notify the custom GInputStream
2827         that we no longer want to keep reading data in chunks due to a specific error.
2828         (webkitSoupRequestInputStreamReadAsync): Early finish the GTask with a specific
2829         error whenever webkitSoupRequestInputStreamDidFailWithError() has been called.
2830
2831 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
2832
2833         [CoordinatedGraphics][EFL] Fix unhandled web process message when launching MiniBrowser
2834         https://bugs.webkit.org/show_bug.cgi?id=152048
2835
2836         Reviewed by Gyuyoung Kim.
2837
2838         WebPage should be initialized before updating preferences.
2839
2840         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
2841         (WKViewInitialize): Deleted.
2842         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
2843         * UIProcess/API/efl/EwkView.cpp:
2844         (EwkView::EwkView):
2845         Calls WKViewSetIsActive instead of WKViewInitialize not to change the behavior
2846         of EFL port.
2847         * UIProcess/CoordinatedGraphics/WebView.cpp:
2848         (WebKit::WebView::WebView):
2849         Initialize just before creating WebPage because there is not use case to separate
2850         initializing WebPage from creating in CoordinatedGraphics.
2851         (WebKit::WebView::initialize): Deleted.
2852         * UIProcess/CoordinatedGraphics/WebView.h:
2853
2854 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
2855
2856         [GTK] Add API to handle beforeunload events
2857         https://bugs.webkit.org/show_bug.cgi?id=139090
2858
2859         Reviewed by Gustavo Noronha Silva.
2860
2861         beforeunload is fired when a page is about to be closed, to ask
2862         the user for confirmation. This happens when reloading a page,
2863         when navigating to another page or when the page is closed by a
2864         user action (a tab or window closed). In the first two cases, the
2865         event is automatically fired by WebCore, but in the case of a user
2866         action we need additional API to ensure the event is fired before
2867         the page is closed. A new script dialog type has been added to
2868         handle beforeunload events and webkit_web_view_try_close() to
2869         allow applications to try to close the page.
2870
2871         * UIProcess/API/gtk/WebKitScriptDialog.cpp:
2872         (webkit_script_dialog_confirm_set_confirmed): BeforeUnloadConfirm
2873         dialogs can also be confirmed.
2874         * UIProcess/API/gtk/WebKitScriptDialog.h: Add
2875         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type.
2876         * UIProcess/API/gtk/WebKitUIClient.cpp: Implement
2877         canRunBeforeUnloadConfirmPanel() and runBeforeUnloadConfirmPanel().
2878         * UIProcess/API/gtk/WebKitWebView.cpp:
2879         (webkitWebViewCreateJavaScriptDialog): Add secondaryText optional
2880         parameter for BeforeUnloadConfirm dialogs. Do not set the default
2881         response if the dialog was created without buttons.
2882         (webkitWebViewScriptDialog): Handle
2883         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type to
2884         create a message dialog for beforeunlos events.
2885         (webkit_web_view_class_init): Update documentation of
2886         WebKitWebView::close and WebKitWebView::script-dialog.
2887         (webkitWebViewRunJavaScriptBeforeUnloadConfirm): Emit WebKitWebView::script-dialog.
2888         (webkit_web_view_try_close): Try to close the page.
2889         * UIProcess/API/gtk/WebKitWebView.h:
2890         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
2891         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
2892
2893 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2894
2895         [EFL] Missing to set ignoreTLSError to NetworkProcess
2896         https://bugs.webkit.org/show_bug.cgi?id=152047
2897
2898         Reviewed by Csaba Osztrogonác.
2899
2900         NetworkProcess has been enabled for all ports since r192796 though, EFL port
2901         didn't send the ignoreTLSError value to NetworkProcess. This has caused failure of EFL API tests
2902         related with ssl feature.
2903
2904         * UIProcess/efl/WebProcessPoolEfl.cpp:
2905         (WebKit::WebProcessPool::setIgnoreTLSErrors):
2906
2907 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2908
2909         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
2910         https://bugs.webkit.org/show_bug.cgi?id=151942
2911
2912         Reviewed by Darin Adler.
2913
2914         As wkpreference settings were moved from EwkView to WKPreferenceEfl, the offline-web-application-cache feature
2915         is enabled by default when running API test. It seems this option should be enabled by MiniBrowser.
2916
2917         * UIProcess/efl/WebPreferencesEfl.cpp:
2918         (WebKit::WebPreferences::platformInitializeStore): Remove to enable web application cache feature here.
2919
2920 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
2921
2922         [CoordinatedGraphics] layerTreeHost always exist in CoordinatedDrawingArea
2923         https://bugs.webkit.org/show_bug.cgi?id=151987
2924
2925         Reviewed by Darin Adler.
2926
2927         CoordinatedGraphics using UI side compositor always forces accelerated compositing.
2928         This patch cleans up dead code for layerTreeHost which always exists.
2929
2930         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
2931         (WebKit::CoordinatedDrawingAreaProxy::paint): Deleted.
2932         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable): Deleted.
2933         (WebKit::CoordinatedDrawingAreaProxy::update): Deleted.
2934         (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState): Deleted.
2935         (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode): Deleted.
2936         (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate): Deleted.
2937         (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode): Deleted.
2938         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStoreSoon): Deleted.
2939         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStore): Deleted.
2940         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
2941         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable):
2942         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
2943         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
2944         (WebKit::CoordinatedDrawingArea::layerHostDidFlushLayers): Deleted.
2945         (WebKit::CoordinatedDrawingArea::scheduleCompositingLayerFlush): Deleted.
2946         (WebKit::CoordinatedDrawingArea::didUpdate): Deleted.
2947         (WebKit::CoordinatedDrawingArea::enterAcceleratedCompositingMode): Deleted.
2948         (WebKit::CoordinatedDrawingArea::scheduleDisplay): Deleted.
2949         (WebKit::CoordinatedDrawingArea::displayTimerFired): Deleted.
2950         (WebKit::CoordinatedDrawingArea::display): Deleted.
2951         (WebKit::shouldPaintBoundsRect): Deleted.
2952         (WebKit::CoordinatedDrawingArea::attachViewOverlayGraphicsLayer): Deleted.
2953         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
2954
2955 2015-12-08  Alex Christensen  <achristensen@webkit.org>
2956
2957         Progress towards implementing downloads with NetworkSession
2958         https://bugs.webkit.org/show_bug.cgi?id=151883
2959
2960         Reviewed by Brady Eidson.
2961
2962         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2963         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
2964         * NetworkProcess/NetworkLoad.cpp:
2965         (WebKit::NetworkLoad::~NetworkLoad):
2966         (WebKit::NetworkLoad::continueDidReceiveResponse):
2967         (WebKit::NetworkLoad::convertTaskToDownload):
2968         (WebKit::NetworkLoad::willPerformHTTPRedirection):
2969         (WebKit::NetworkLoad::didReceiveChallenge):
2970         (WebKit::NetworkLoad::didReceiveResponse):
2971         (WebKit::NetworkLoad::didReceiveData):
2972         (WebKit::NetworkLoad::didCompleteWithError):
2973         (WebKit::NetworkLoad::didBecomeDownload):
2974         (WebKit::NetworkLoad::didReceiveResponseAsync):
2975         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
2976         * NetworkProcess/NetworkLoad.h:
2977         * NetworkProcess/NetworkLoadClient.h:
2978         * NetworkProcess/NetworkResourceLoader.cpp:
2979         (WebKit::NetworkResourceLoader::cleanup):
2980         (WebKit::NetworkResourceLoader::didConvertToDownload):
2981         (WebKit::NetworkResourceLoader::abort):
2982         (WebKit::NetworkResourceLoader::didConvertHandleToDownload): Deleted.
2983         * NetworkProcess/NetworkResourceLoader.h:
2984         * NetworkProcess/NetworkSession.h:
2985         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
2986         (WebKit::NetworkSession::~NetworkSession): Deleted.
2987         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:
2988         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2989         (-[NetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
2990         (-[NetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
2991         (WebKit::NetworkSession::NetworkSession):
2992         (WebKit::NetworkSession::~NetworkSession):
2993         (WebKit::NetworkSession::createDataTaskWithRequest):
2994         * Shared/Downloads/Download.h:
2995         * Shared/Downloads/DownloadManager.h:
2996         (WebKit::DownloadManager::isDownloading):
2997         (WebKit::DownloadManager::activeDownloadCount):
2998
2999 2015-12-08  Joseph Pecoraro  <pecoraro@apple.com>
3000
3001         Create a Sandbox SPI header
3002         https://bugs.webkit.org/show_bug.cgi?id=151981
3003
3004         Reviewed by Andy Estes.
3005
3006         * PluginProcess/mac/PluginProcessShim.mm:
3007         * Shared/ios/ChildProcessIOS.mm:
3008         * Shared/mac/ChildProcessMac.mm:
3009         * Shared/mac/SandboxUtilities.mm:
3010
3011 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
3012
3013         [MediaStream] Rename UserMediaClient and UserMediaController methods
3014         https://bugs.webkit.org/show_bug.cgi?id=152001
3015
3016         Reviewed by Brady Eidson.
3017
3018         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
3019         (WebKit::WebUserMediaClient::pageDestroyed):
3020         (WebKit::WebUserMediaClient::requestUserMediaAccess):
3021         (WebKit::WebUserMediaClient::cancelUserMediaAccessRequest):
3022         (WebKit::WebUserMediaClient::requestPermission): Deleted.
3023         (WebKit::WebUserMediaClient::cancelRequest): Deleted.
3024         * WebProcess/WebCoreSupport/WebUserMediaClient.h:
3025
3026 2015-12-08  Tomas Popela  <tpopela@redhat.com>
3027
3028         [GTK] Remove an unused variable from WebKitWebContext
3029         https://bugs.webkit.org/show_bug.cgi?id=151999
3030
3031         Reviewed by Carlos Garcia Campos.
3032
3033         * UIProcess/API/gtk/WebKitWebContext.cpp:
3034
3035 2015-12-08  Chris Dumez  <cdumez@apple.com>
3036
3037         Add diagnostic logging to measure speculative revalidation accuracy
3038         https://bugs.webkit.org/show_bug.cgi?id=151953
3039         <rdar://problem/23092196>
3040
3041         Reviewed by Darin Adler.
3042
3043         We track the following:
3044         1. Resources we knew about AND did not get requested
3045            A. We did not speculate (Good)
3046            B. We speculated but did not go to network (Bad)
3047            C. We speculated and went to network (Very bad)
3048         2. Resources we did not know about (Neutral)
3049         3. Resources we knew about AND got requested
3050            A. We did not speculate (Bad)
3051            B. We speculated but did not go to network (Good)
3052            C. We speculated and went to network (Very good)
3053
3054         * NetworkProcess/cache/NetworkCache.cpp:
3055         (WebKit::NetworkCache::Cache::retrieve):
3056         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
3057         (WebKit::NetworkCache::allSpeculativeLoadingDiagnosticMessages):
3058         (WebKit::NetworkCache::printSpeculativeLoadingDiagnosticMessageCounts):
3059         (WebKit::NetworkCache::logSpeculativeLoadingDiagnosticMessage):
3060         (WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
3061         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):
3062         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::wasRevalidated):
3063         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::markLoadAsCompleted):
3064         (WebKit::NetworkCache::SpeculativeLoadManager::retrieve):
3065         (WebKit::NetworkCache::SpeculativeLoadManager::addPreloadedEntry):
3066         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry):
3067         (WebKit::NetworkCache::SpeculativeLoadManager::preloadEntry):
3068         (WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
3069         (WebKit::NetworkCache::makeSubresourcesKey): Deleted.
3070         (WebKit::NetworkCache::constructRevalidationRequest): Deleted.
3071         (WebKit::NetworkCache::responseNeedsRevalidation): Deleted.
3072         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::saveToDiskIfReady): Deleted.
3073         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveEntryFromStorage): Deleted.
3074         (WebKit::NetworkCache::SpeculativeLoadManager::satisfyPendingRequests): Deleted.
3075         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.h:
3076
3077 2015-12-08  Csaba Osztrogonác  <ossy@webkit.org>
3078
3079         [EFL] REGRESSION(r173394): MiniBrowser stucked in an infinite loop if NETWORK_CACHE is disabled
3080         https://bugs.webkit.org/show_bug.cgi?id=137692
3081
3082         Reviewed by Darin Adler.
3083
3084         * WebProcess/Network/WebLoaderStrategy.cpp:
3085         (WebKit::maximumBufferingTime): Disable caching if NETWORK_CACHE is disabled.
3086
3087 2015-12-08  Ryuan Choi  <ryuan.choi@navercorp.com>
3088
3089         [EFL] Add API to provide preferences before creating ewk_view
3090         https://bugs.webkit.org/show_bug.cgi?id=151587
3091
3092         Reviewed by Gyuyoung Kim.
3093
3094         This patch adds ewk_view_configuration_settings_get to provide preferences
3095         before createing ewk_view.
3096
3097         * PlatformEfl.cmake:
3098         * UIProcess/API/efl/ewk_view_configuration.cpp:
3099         (EwkViewConfiguration::EwkViewConfiguration):
3100         (ewk_view_configuration_settings_get):
3101         * UIProcess/API/efl/ewk_view_configuration.h:
3102         * UIProcess/API/efl/ewk_view_configuration_private.h:
3103         (EwkViewConfiguration::pageGroup):
3104         * UIProcess/API/efl/tests/test_ewk2_view_configuration.cpp:
3105         (TEST_F): Added test case for ewk_view_configuration_settings_get().
3106
3107 2015-12-07  Gustavo Noronha Silva  <gns@gnome.org>
3108
3109         [GTK] Notify WebCore when notification is clicked
3110         https://bugs.webkit.org/show_bug.cgi?id=151951
3111
3112         Reviewed by Carlos Garcia Campos.
3113
3114         * UIProcess/API/gtk/WebKitNotification.cpp:
3115         (webkit_notification_class_init): new clicked signal.
3116         (webkit_notification_clicked): method to emit the clicked signal.
3117         * UIProcess/API/gtk/WebKitNotification.h:
3118         * UIProcess/API/gtk/WebKitNotificationProvider.cpp:
3119         (WebKitNotificationProvider::notificationClickedCallback): handle the clicked signal and tell WebProcess about the click.
3120         (WebKitNotificationProvider::show): connect to the clicked signal in addition to closed.
3121         * UIProcess/API/gtk/WebKitNotificationProvider.h:
3122         * UIProcess/API/gtk/WebKitWebView.cpp:
3123         (notifyNotificationClicked): handle the click on our libnotify notification.
3124         (webkitWebViewShowNotification): add the "default" action to our libnotify notification to be notified of the click.
3125         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
3126
3127 2015-12-07  Commit Queue  <commit-queue@webkit.org>
3128
3129         Unreviewed, rolling out r193655.
3130         https://bugs.webkit.org/show_bug.cgi?id=151970
3131
3132         This change broke existing LayoutTests on mac-wk2 (Requested
3133         by ryanhaddad on #webkit).
3134
3135         Reverted changeset:
3136
3137         "UIProcess should determine AppNap state for WebPage"
3138         https://bugs.webkit.org/show_bug.cgi?id=151964
3139         http://trac.webkit.org/changeset/193655
3140
3141 2015-12-05  Gavin Barraclough  <barraclough@apple.com>
3142
3143         UIProcess should determine AppNap state for WebPage
3144         https://bugs.webkit.org/show_bug.cgi?id=151964
3145
3146         Reviewed by Anders Carlson.
3147
3148         Step 1 in unifying this with the iOS process suppression mechanism is to move the decision out of the WebContent process.
3149
3150         * UIProcess/WebPageProxy.cpp:
3151         (WebKit::WebPageProxy::WebPageProxy):
3152         (WebKit::WebPageProxy::dispatchViewStateChange):
3153         (WebKit::WebPageProxy::setPageActivityState):
3154         (WebKit::WebPageProxy::updateActivityToken):
3155         (WebKit::WebPageProxy::preferencesDidChange):
3156         * UIProcess/WebPageProxy.h:
3157         (WebKit::WebPageProxy::isInWindow):
3158         (WebKit::WebPageProxy::didUpdateViewState):
3159         * UIProcess/WebPageProxy.messages.in:
3160             - WebPage now propagates PageActivityState to the WebPageProxy, for use
3161               determining the supression state of the WebProcess.
3162         * WebProcess/WebPage/WebPage.cpp:
3163         (WebKit::m_shouldDispatchFakeMouseMoveEvents):
3164         (WebKit::WebPage::setPageActivityState):
3165         (WebKit::WebPage::setUserActivityStarted):
3166         (WebKit::WebPage::setViewState):
3167         (WebKit::WebPage::updatePreferences):
3168         (WebKit::WebPage::updateUserActivity): Deleted.
3169         * WebProcess/WebPage/WebPage.h:
3170         * WebProcess/WebPage/WebPage.messages.in:
3171             - WebPage no longer determines when to update it's own UserActivity - instead,
3172               let the UI process do so. As such, no longer need to track whether process
3173               supression is enabled. Instead, add message to
3174
3175 2015-12-07  Chris Dumez  <cdumez@apple.com>
3176
3177         [WK2] Regression(r187691): If a page is showing an auth pane in one tab, any new tabs with same page hang until credentials are entered in first tab
3178         https://bugs.webkit.org/show_bug.cgi?id=151960
3179         <rdar://problem/23618112>
3180
3181         Reviewed by Alex Christensen.
3182
3183         After r187691, if a page is showing an auth pane in one tab, any new
3184         tabs with same page hang until credentials are entered in first tab.
3185         This is because we coalescing all authentication challenges from the
3186         same domain, no matter what tab they are for. This can be confusing
3187         so we now only coalesce authentication challenges within each tab,
3188         by leveraging the pageID (in addition to the domain).
3189
3190         * Shared/Authentication/AuthenticationManager.cpp:
3191         (WebKit::AuthenticationManager::shouldCoalesceChallenge):
3192         (WebKit::AuthenticationManager::coalesceChallengesMatching):
3193         (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
3194         * Shared/Authentication/AuthenticationManager.h:
3195
3196 2015-12-07  Beth Dakin  <bdakin@apple.com>
3197
3198         Hook up request and show for typing candidates in WK1
3199         https://bugs.webkit.org/show_bug.cgi?id=151831
3200         -and corresponding-
3201         <rdar://problem/23751214>
3202
3203         Reviewed by Enrica Casucci.
3204
3205         Empty client for now.
3206         * WebProcess/WebCoreSupport/WebEditorClient.h:
3207
3208 2015-12-07  Philippe Normand  <pnormand@igalia.com>
3209
3210         [GTK][Mac] socketpair assertion failure
3211         https://bugs.webkit.org/show_bug.cgi?id=151293
3212
3213         Reviewed by Carlos Garcia Campos.
3214
3215         * Platform/IPC/unix/ConnectionUnix.cpp: Don't use SEQPACKET sockets on Darwin.
3216
3217 2015-12-07  Gwang Yoon Hwang  <yoon@igalia.com>
3218
3219         [ThreadedCompositor] Add support for PlatformLayer.
3220         https://bugs.webkit.org/show_bug.cgi?id=143299
3221
3222         Reviewed by Žan Doberšek.
3223
3224         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
3225         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
3226         Swap pending buffers of TextureMapperPlatformLayerProxies before painting contents.
3227         (WebKit::CoordinatedGraphicsScene::syncPlatformLayerIfNeeded):
3228         In threaded compositor, CoordinatedGraphicsScence only cares about creation and deletion
3229         of platform layers.
3230
3231         (WebKit::CoordinatedGraphicsScene::onNewBufferAvailable):
3232         Whenever new buffer comes via TextureMapperPlatformLayerProxy, CoordinatedGraphicsScene will
3233         update the scene if it is needed.
3234
3235 2015-12-07  Mario Sanchez Prada  <mario@endlessm.com>
3236
3237         [GTK] Allow applications to force Accelerated Compositing mode
3238         https://bugs.webkit.org/show_bug.cgi?id=150558
3239
3240         Reviewed by Carlos Garcia Campos.
3241
3242         Enable forcing Accelerated Compositing mode to be always on if
3243         a WEBKIT_FORCE_COMPOSITING_MODE environment variable is set.
3244
3245         This can be useful for controlled environments where we know that
3246         AC always on works well enough, to get smoother animations.
3247
3248         * UIProcess/gtk/WebPreferencesGtk.cpp:
3249         (WebKit::WebPreferences::platformInitializeStore): Set forceCompositingMode
3250         setting to true if the environment variable is found.
3251
3252 2015-12-07  Jon Forsberg  <jon.orebro@gmail.com>
3253
3254         [GTK] Add webkit_uri_request_get_http_method
3255         https://bugs.webkit.org/show_bug.cgi?id=151601
3256
3257         Reviewed by Martin Robinson.
3258
3259         Add a method to get the HTTP method of a WebKitURIRequest.
3260
3261         * UIProcess/API/gtk/WebKitURIRequest.cpp:
3262         (webkit_uri_request_get_http_method):
3263         * UIProcess/API/gtk/WebKitURIRequest.h:
3264         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
3265
3266 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
3267
3268         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
3269         https://bugs.webkit.org/show_bug.cgi?id=79918
3270
3271         Reviewed by Gustavo Noronha Silva.
3272
3273         Add WebKitConsoleMessage boxed type that is passed to the
3274         WebKitWebPage::console-message-sent signal with all the details
3275         about the message.
3276
3277         * PlatformGTK.cmake: Add new files to compilation.
3278         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: Add new symbols.
3279         * UIProcess/API/gtk/docs/webkit2gtk-4.0.types: Add webkit_console_message_get_type.
3280         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add new section to the docs.
3281         * WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
3282         (API::InjectedBundle::PageUIClient::willAddMessageToConsole): Add
3283         paramaters for all console message details.
3284         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.cpp: Added.
3285         (webkit_console_message_copy):
3286         (webkit_console_message_free):
3287         (webkit_console_message_get_source):
3288         (webkit_console_message_get_level):
3289         (webkit_console_message_get_text):
3290         (webkit_console_message_get_line):
3291         (webkit_console_message_get_source_id):
3292         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h: Added.
3293         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessagePrivate.h: Added.
3294         (_WebKitConsoleMessage::_WebKitConsoleMessage):
3295         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
3296         (webkitWebPageDidSendConsoleMessage): Emit the
3297         WebKitWebPage::console-message-sent signal.
3298         (didReceiveResponseForResource): Generate a console message in
3299         case of HTTP failure >= 400 for consistency with the inspector.
3300         (didFailLoadForResource): Generate a console message in case of
3301         resource load failure for consistency with the inspector.
3302         (webkit_web_page_class_init): Add WebKitWebPage::console-message-sent signal.
3303         (webkitWebPageCreate): Set custom UI client.
3304         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
3305         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
3306         (WebKit::InjectedBundlePageUIClient::willAddMessageToConsole):
3307         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
3308         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3309         (WebKit::WebChromeClient::addMessageToConsole): Pass all the
3310         console message details to the ui client.
3311
3312 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
3313
3314         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
3315         https://bugs.webkit.org/show_bug.cgi?id=151934
3316
3317         Reviewed by Csaba Osztrogonác.
3318
3319         * UIProcess/API/efl/ewk_view.cpp:
3320         (ewk_view_try_close):
3321         Called window_close callback immediately when WKPageTryClose returns true.
3322         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3323         (TEST_F): Improved test cases for try_close to test when content does not contain
3324         onbeforeunload callback.
3325
3326 2015-12-07  Jaehun Lim  <ljaehun.lim@samsung.com>
3327
3328         [EFL] Moving preference settings from EwkView to WebPreferencesEfl
3329         https://bugs.webkit.org/show_bug.cgi?id=151928
3330
3331         Reviewed by Gyuyoung Kim.
3332
3333         It implements WebPreferences::platformInitializeStore() in WebPreferencesEfl.cpp.
3334
3335         * UIProcess/API/efl/EwkView.cpp:
3336         (EwkView::EwkView):
3337         * UIProcess/efl/WebPreferencesEfl.cpp:
3338         (WebKit::WebPreferences::platformInitializeStore):
3339
3340 2015-12-04  Anders Carlsson  <andersca@apple.com>
3341
3342         Crash when secondary clicking on a link on yahoo.com
3343         https://bugs.webkit.org/show_bug.cgi?id=151900
3344         rdar://problem/23765149
3345
3346         Reviewed by Beth Dakin.
3347
3348         Don't use +[NSURL URLWithString:] since it doesn't handle invalid URLs as well as WebCore::URL.
3349
3350         * UIProcess/mac/WebContextMenuProxyMac.mm:
3351         (WebKit::WebContextMenuProxyMac::createShareMenuItem):
3352
3353 2015-12-04  Beth Dakin  <bdakin@apple.com>
3354
3355         Crash in clients using userData in 
3356         _immediateActionAnimationControllerForHitTestResult
3357         https://bugs.webkit.org/show_bug.cgi?id=151887
3358
3359         Rubber-stamped by Anders Carlsson.
3360
3361         Follow-up fix to handle null userData.
3362         * UIProcess/API/Cocoa/WKWebView.mm:
3363         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
3364
3365 2015-12-04  Beth Dakin  <bdakin@apple.com>
3366
3367         Crash in clients using userData in 
3368         _immediateActionAnimationControllerForHitTestResult
3369         https://bugs.webkit.org/show_bug.cgi?id=151887
3370
3371         Reviewed by Sam Weinig.
3372
3373         Cast this correctly.
3374         * UIProcess/API/Cocoa/WKWebView.mm:
3375         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
3376
3377 2015-12-04  Gavin Barraclough  <barraclough@apple.com>
3378
3379         Background state not being tracked correctly for PDFs on iOS
3380         https://bugs.webkit.org/show_bug.cgi?id=151886
3381
3382         Reviewed by Anders Carlson.
3383
3384         The problem here is that when viewing a PDF we don't have an ApplicationStateTracker.
3385         (While we do have a content view - which normally holds the ApplicationStateTracker -
3386         the content view is not in a window, and only has an ApplicationStateTracker while in a
3387         window). For now, let's give the WKPDFView an ApplicationStateTracker of its very own.
3388         In the future we may want to refactor ownership of the ApplicationStateTracker up to
3389         the WKWebView.
3390
3391         * UIProcess/API/Cocoa/WKWebView.mm:
3392         (-[WKWebView _isBackground]):
3393             - Added, checks background state of content/PDF view.
3394         * UIProcess/API/Cocoa/WKWebViewInternal.h:
3395             - expose _isBackground to PageClientImplIOS.
3396         * UIProcess/ApplicationStateTracker.h:
3397         (WebKit::ApplicationStateTracker::isInBackground):
3398         * UIProcess/ApplicationStateTracker.mm:
3399         (WebKit::isBackgroundState):
3400         (WebKit::ApplicationStateTracker::ApplicationStateTracker):
3401             - generalize WKContentView -> UIView, so this may now also be a WKPDFView.
3402         * UIProcess/ios/PageClientImplIOS.mm:
3403         (WebKit::PageClientImpl::isViewVisible):
3404             - check background state via the WKWebView.
3405         * UIProcess/ios/WKPDFView.h:
3406         * UIProcess/ios/WKPDFView.mm:
3407         (-[WKPDFView willMoveToWindow:]):
3408         (-[WKPDFView didMoveToWindow]):
3409         (-[WKPDFView isBackground]):
3410         (-[WKPDFView _applicationDidEnterBackground]):
3411         (-[WKPDFView _applicationWillEnterForeground]):
3412             - added methods to initialize ApplicationStateTracker, access background state, & callbacks to the page proxy.
3413
3414 2015-12-04  Antti Koivisto  <antti@apple.com>
3415
3416         Rename WebResourceLoadScheduler to WebLoaderStrategy
3417         https://bugs.webkit.org/show_bug.cgi?id=151854
3418
3419         Reviewed by Anders Carlsson.
3420
3421         It implements WebCore::LoaderStrategy and doesn't do any scheduling.
3422
3423  &n