Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone...
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
2
3         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
4         https://bugs.webkit.org/show_bug.cgi?id=149309
5         <rdar://problem/22748363>
6
7         Reviewed by Brent Fulgham.
8
9         Callback of bundle clients could kill the documentloader. Therefore, make a copy
10         of the navigationID before invoking the callback.
11
12         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
13         (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
14         (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
15         (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
16         (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
17         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
18         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
19         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
20
21 2015-11-30  Tim Horton  <timothy_horton@apple.com>
22
23         Get rid of the !USE(ASYNC_NSTEXTINPUTCLIENT) codepath
24         https://bugs.webkit.org/show_bug.cgi?id=151673
25
26         Reviewed by Anders Carlsson.
27
28         * UIProcess/API/Cocoa/WKWebView.mm:
29         * UIProcess/API/mac/WKView.mm:
30         * UIProcess/Cocoa/WebViewImpl.h:
31         * UIProcess/Cocoa/WebViewImpl.mm:
32         (WebKit::WebViewImpl::resignFirstResponder): Deleted.
33         (WebKit::WebViewImpl::interpretKeyEvent): Deleted.
34         (WebKit::WebViewImpl::executeSavedKeypressCommands): Deleted.
35         (WebKit::WebViewImpl::doCommandBySelector): Deleted.
36         (WebKit::WebViewImpl::insertText): Deleted.
37         (WebKit::WebViewImpl::inputContext): Deleted.
38         (WebKit::WebViewImpl::selectedRange): Deleted.
39         (WebKit::WebViewImpl::hasMarkedText): Deleted.
40         (WebKit::WebViewImpl::unmarkText): Deleted.
41         (WebKit::WebViewImpl::setMarkedText): Deleted.
42         (WebKit::WebViewImpl::markedRange): Deleted.
43         (WebKit::WebViewImpl::attributedSubstringForProposedRange): Deleted.
44         (WebKit::WebViewImpl::characterIndexForPoint): Deleted.
45         (WebKit::WebViewImpl::firstRectForCharacterRange): Deleted.
46         (WebKit::WebViewImpl::performKeyEquivalent): Deleted.
47         (WebKit::WebViewImpl::keyUp): Deleted.
48         (WebKit::WebViewImpl::keyDown): Deleted.
49         (WebKit::WebViewImpl::flagsChanged): Deleted.
50         * UIProcess/PageClient.h:
51         * UIProcess/WebPageProxy.cpp:
52         (WebKit::WebPageProxy::WebPageProxy): Deleted.
53         (WebKit::WebPageProxy::resetStateAfterProcessExited): Deleted.
54         * UIProcess/WebPageProxy.h:
55         * UIProcess/mac/PageClientImpl.h:
56         * UIProcess/mac/PageClientImpl.mm:
57         (WebKit::PageClientImpl::notifyApplicationAboutInputContextChange): Deleted.
58         * UIProcess/mac/WebPageProxyMac.mm:
59         (WebKit::WebPageProxy::setComposition): Deleted.
60         (WebKit::WebPageProxy::confirmComposition): Deleted.
61         (WebKit::WebPageProxy::insertText): Deleted.
62         (WebKit::WebPageProxy::insertDictatedText): Deleted.
63         (WebKit::WebPageProxy::getMarkedRange): Deleted.
64         (WebKit::WebPageProxy::getSelectedRange): Deleted.
65         (WebKit::WebPageProxy::getAttributedSubstringFromRange): Deleted.
66         (WebKit::WebPageProxy::characterIndexForPoint): Deleted.
67         (WebKit::WebPageProxy::firstRectForCharacterRange): Deleted.
68         (WebKit::WebPageProxy::executeKeypressCommands): Deleted.
69         (WebKit::WebPageProxy::cancelComposition): Deleted.
70         (WebKit::WebPageProxy::editorStateChanged): Deleted.
71         * WebProcess/WebPage/WebPage.cpp:
72         (WebKit::WebPage::didChangeSelection):
73         * WebProcess/WebPage/WebPage.h:
74         * WebProcess/WebPage/WebPage.messages.in:
75         * WebProcess/WebPage/mac/WebPageMac.mm:
76         (WebKit::WebPage::setComposition): Deleted.
77         (WebKit::WebPage::confirmComposition): Deleted.
78         (WebKit::WebPage::insertText): Deleted.
79         (WebKit::WebPage::insertDictatedText): Deleted.
80         (WebKit::WebPage::getMarkedRange): Deleted.
81         (WebKit::WebPage::getSelectedRange): Deleted.
82         (WebKit::WebPage::getAttributedSubstringFromRange): Deleted.
83         (WebKit::WebPage::characterIndexForPoint): Deleted.
84         (WebKit::WebPage::firstRectForCharacterRange): Deleted.
85         (WebKit::WebPage::executeKeypressCommands): Deleted.
86         (WebKit::WebPage::cancelComposition): Deleted.
87
88 2015-11-30  Tim Horton  <timothy_horton@apple.com>
89
90         Remove some unused synchronous drawing SPI
91         https://bugs.webkit.org/show_bug.cgi?id=151672
92
93         Reviewed by Anders Carlsson.
94
95         * UIProcess/API/Cocoa/WKViewPrivate.h:
96         * UIProcess/API/mac/WKView.mm:
97         (-[WKView forceAsyncDrawingAreaSizeUpdate:]): Deleted.
98         (-[WKView waitForAsyncDrawingAreaSizeUpdate]): Deleted.
99         * UIProcess/Cocoa/WebViewImpl.h:
100         * UIProcess/Cocoa/WebViewImpl.mm:
101         (WebKit::WebViewImpl::forceAsyncDrawingAreaSizeUpdate): Deleted.
102         (WebKit::WebViewImpl::waitForAsyncDrawingAreaSizeUpdate): Deleted.
103
104 2015-11-30  Tim Horton  <timothy_horton@apple.com>
105
106         Get rid of the legacy swipe shadow style
107         https://bugs.webkit.org/show_bug.cgi?id=151671
108
109         Reviewed by Anders Carlsson.
110
111         * UIProcess/mac/ViewGestureControllerMac.mm:
112         (WebKit::ViewGestureController::beginSwipeGesture): Deleted.
113         (WebKit::ViewGestureController::handleSwipeGesture): Deleted.
114         (WebKit::ViewGestureController::removeSwipeSnapshot): Deleted.
115         It is no longer needed.
116
117 2015-11-30  Tim Horton  <timothy_horton@apple.com>
118
119         [iOS] Option-up and Option-down should scroll a little less than a full page
120         https://bugs.webkit.org/show_bug.cgi?id=151538
121         <rdar://problem/23642675>
122
123         Reviewed by Simon Fraser.
124
125         * UIProcess/ios/WKContentViewInteraction.mm:
126         (-[WKContentView _scrollOffsetForEvent:]):
127         (-[WKContentView _interpretKeyEvent:isCharEvent:]):
128         Clean up the code a little, and adjust so that we *always* use pageStep
129         instead of just scrolling by the unobscured rect when scrolling by a page.
130         Previously, we did for the spacebar, but not for option-up and option-down.
131
132 2015-11-30  Brian Burg  <bburg@apple.com>
133
134         Web Inspector: using "Reload Web Inspector" when docked breaks dock-specific styles
135         https://bugs.webkit.org/show_bug.cgi?id=151642
136
137         Reviewed by Timothy Hatcher.
138
139         After a frontend loads, explicitly tell it about the current dock
140         state. This is necessary for force-reloading the inspector, since
141         the dock state isn't sent from UIProcess in this case.
142
143         * WebProcess/WebPage/WebInspectorUI.cpp:
144         (WebKit::WebInspectorUI::frontendLoaded):
145         (WebKit::WebInspectorUI::setDockingUnavailable):
146         * WebProcess/WebPage/WebInspectorUI.h:
147
148 2015-11-30  Alex Christensen  <achristensen@webkit.org>
149
150         Make ProcessModel always MultipleSecondaryProcesses
151         https://bugs.webkit.org/show_bug.cgi?id=151662
152
153         Reviewed by Antti Koivisto.
154
155         Single WebProcess behavior can still be achieved by setting the maximum number of WebProcesses to 1.
156
157         * Shared/API/c/WKDeprecatedFunctions.cpp:
158         (WKContextSetUsesNetworkProcess):
159         (WKContextSetProcessModel):
160         (WKContextGetProcessModel):
161         (WKGraphicsContextGetCGContext):
162         * UIProcess/API/APIProcessPoolConfiguration.cpp:
163         (API::ProcessPoolConfiguration::createWithLegacyOptions):
164         (API::ProcessPoolConfiguration::copy):
165         * UIProcess/API/APIProcessPoolConfiguration.h:
166         * UIProcess/API/C/WKAPICast.h:
167         (WebKit::toAPI):
168         (WebKit::toFontSmoothingLevel):
169         (WebKit::toProcessModel): Deleted.
170         * UIProcess/API/C/WKContext.cpp:
171         (WKContextGetCacheModel):
172         (WKContextSetMaximumNumberOfProcesses):
173         (WKContextSetProcessModel): Deleted.
174         (WKContextGetProcessModel): Deleted.
175         * UIProcess/API/C/WKContext.h:
176         * UIProcess/API/Cocoa/WKProcessGroup.mm:
177         (-[WKProcessGroup initWithInjectedBundleURL:]):
178         * UIProcess/API/Cocoa/WKProcessPool.mm:
179         * UIProcess/API/efl/ewk_context.cpp:
180         (EwkContext::cacheModel):
181         (EwkContext::setProcessModel):
182         (EwkContext::processModel):
183         (EwkContext::clearResourceCache):
184         (EwkContext::jsGlobalContext):
185         (ewk_context_message_from_extensions_callback_set):
186         (ewk_context_process_model_set):
187         (ewk_context_process_model_get):
188         (ewk_context_tls_error_policy_get):
189         (toWKProcessModel): Deleted.
190         (toEwkProcessModel): Deleted.
191         * UIProcess/API/gtk/WebKitWebContext.cpp:
192         * UIProcess/ProcessModel.h: Removed.
193         * UIProcess/WebCookieManagerProxy.cpp:
194         (WebKit::WebCookieManagerProxy::shouldTerminate):
195         (WebKit::WebCookieManagerProxy::refWebContextSupplement):
196         * UIProcess/WebInspectorProxy.cpp:
197         (WebKit::WebInspectorProxy::inspectorProcessPool):
198         * UIProcess/WebPageProxy.cpp:
199         (WebKit::WebPageProxy::reattachToWebProcess):
200         * UIProcess/WebProcessPool.cpp:
201         (WebKit::WebProcessPool::create):
202         (WebKit::WebProcessPool::setDownloadClient):
203         (WebKit::WebProcessPool::setMaximumNumberOfProcesses):
204         (WebKit::WebProcessPool::processDidCachePage):
205         (WebKit::WebProcessPool::createNewWebProcess):
206         (WebKit::WebProcessPool::disconnectProcess):
207         (WebKit::WebProcessPool::createWebPage):
208         (WebKit::WebProcessPool::postMessageToInjectedBundle):
209         (WebKit::WebProcessPool::requestWebContentStatistics):
210         (WebKit::WebProcessPool::requestNetworkingStatistics):
211         (WebKit::WebProcessPool::setProcessModel): Deleted.
212         (WebKit::WebProcessPool::ensureSharedWebProcess): Deleted.
213         * UIProcess/WebProcessPool.h:
214         (WebKit::WebProcessPool::sendToAllProcessesRelaunchingThemIfNecessary):
215         (WebKit::WebProcessPool::sendToOneProcess):
216         * WebKit2.xcodeproj/project.pbxproj:
217
218 2015-11-30  Chris Dumez  <cdumez@apple.com>
219
220         [WK2][Cache] We should not speculatively revalidate transient resources
221         https://bugs.webkit.org/show_bug.cgi?id=151402
222         <rdar://problem/23092196>
223
224         Reviewed by Antti Koivisto.
225
226         We should not speculatively revalidate transient resources. This patch
227         adds a simple and conservative algorithm to detect that a subresource is
228         transient and then ignores those when doing the speculative revalidation.
229
230         The algorithm is question marks as transient all subresources that are
231         not common to the 2 last loads of a main resource.
232
233         This is not perfect as I see the number of non-speculative revalidations
234         going up to 11-12 from 9 in the context of the warm PLT. However, it is
235         best to be conservative at first and we can improve this later.
236
237         * NetworkProcess/cache/NetworkCache.cpp:
238         (WebKit::NetworkCache::Cache::retrieve):
239         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
240         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::create):
241         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::~PendingFrameLoad):
242         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::registerSubresource):
243         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::markLoadAsCompleted):
244         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::setExistingSubresourcesEntry):
245         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::PendingFrameLoad):
246         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::saveToDiskIfReady):
247         (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
248         (WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
249         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
250         (WebKit::NetworkCache::SpeculativeLoadManager::retrieve): Deleted.
251         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry): Deleted.
252         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.h:
253         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
254         (WebKit::NetworkCache::SubresourcesEntry::encodeAsStorageRecord):
255         (WebKit::NetworkCache::SubresourcesEntry::decodeStorageRecord):
256         (WebKit::NetworkCache::SubresourcesEntry::SubresourcesEntry):
257         (WebKit::NetworkCache::SubresourcesEntry::updateSubresourceKeys):
258         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h:
259         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::encode):
260         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::decode):
261         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::SubresourceInfo):
262         (WebKit::NetworkCache::SubresourcesEntry::subresources):
263
264 2015-11-30  Brent Fulgham  <bfulgham@apple.com>
265
266         [Mac] Add font service permission to the sandbox profile
267         https://bugs.webkit.org/show_bug.cgi?id=151509
268         <rdar://problem/23508753>
269
270         Reviewed by Anders Carlsson.
271
272         Update the sandbox profile for Mac WebKit to allow access to the
273         "com.apple.fonts" service.
274
275         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
276         * WebProcess/com.apple.WebProcess.sb.in:
277
278 2015-11-30  Alex Christensen  <achristensen@webkit.org>
279
280         Make usesNetworkProcess always true
281         https://bugs.webkit.org/show_bug.cgi?id=151580
282
283         Reviewed by Darin Adler.
284
285         * NetworkProcess/mac/RemoteNetworkingContext.mm:
286         (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
287         * Shared/API/c/WKDeprecatedFunctions.cpp:
288         (WKInspectorToggleJavaScriptProfiling):
289         (WKContextSetUsesNetworkProcess):
290         (WKGraphicsContextGetCGContext):
291         * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm:
292         (WebKit::CustomProtocolManager::initializeConnection):
293         (WebKit::CustomProtocolManager::initialize):
294         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
295         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
296         (WebKit::CustomProtocolManager::initialize):
297         * Shared/WebProcessCreationParameters.cpp:
298         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
299         (WebKit::WebProcessCreationParameters::encode):
300         (WebKit::WebProcessCreationParameters::decode):
301         * Shared/WebProcessCreationParameters.h:
302         * UIProcess/API/APIProcessPoolConfiguration.cpp:
303         (API::ProcessPoolConfiguration::createWithLegacyOptions):
304         (API::ProcessPoolConfiguration::copy):
305         * UIProcess/API/APIProcessPoolConfiguration.h:
306         * UIProcess/API/C/WKContext.cpp:
307         (WKContextSetJavaScriptGarbageCollectorTimerEnabled):
308         (WKContextUseTestingNetworkSession):
309         (WKContextSetUsesNetworkProcess): Deleted.
310         * UIProcess/API/C/WKContextPrivate.h:
311         * UIProcess/API/Cocoa/WKProcessGroup.mm:
312         (-[WKProcessGroup initWithInjectedBundleURL:]):
313         * UIProcess/API/efl/ewk_context.cpp:
314         (EwkContext::setProcessModel):
315         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
316         (WebKit::WebProcessPool::updateProcessSuppressionState):
317         (WebKit::WebProcessPool::platformInitializeWebProcess):
318         * UIProcess/Downloads/DownloadProxy.cpp:
319         (WebKit::DownloadProxy::cancel):
320         (WebKit::DownloadProxy::invalidate):
321         * UIProcess/WebCookieManagerProxy.cpp:
322         (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
323         (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
324         * UIProcess/WebProcessPool.cpp:
325         (WebKit::WebProcessPool::WebProcessPool):
326         (WebKit::m_processSuppressionDisabledForPageCounter):
327         (WebKit::WebProcessPool::networkingProcessConnection):
328         (WebKit::WebProcessPool::languageChanged):
329         (WebKit::WebProcessPool::textCheckerStateChanged):
330         (WebKit::WebProcessPool::ensureNetworkProcess):
331         (WebKit::WebProcessPool::setAnyPageGroupMightHavePrivateBrowsingEnabled):
332         (WebKit::WebProcessPool::createNewWebProcess):
333         (WebKit::WebProcessPool::download):
334         (WebKit::WebProcessPool::resumeDownload):
335         (WebKit::WebProcessPool::setCanHandleHTTPSServerTrustEvaluation):
336         (WebKit::WebProcessPool::setCacheModel):
337         (WebKit::WebProcessPool::createDownloadProxy):
338         (WebKit::WebProcessPool::addMessageReceiver):
339         (WebKit::WebProcessPool::allowSpecificHTTPSCertificateForHost):
340         (WebKit::WebProcessPool::setHTTPPipeliningEnabled):
341         (WebKit::WebProcessPool::requestNetworkingStatistics):
342         (WebKit::WebProcessPool::setUsesNetworkProcess): Deleted.
343         (WebKit::WebProcessPool::usesNetworkProcess): Deleted.
344         * UIProcess/WebProcessPool.h:
345         (WebKit::WebProcessPool::sendToNetworkingProcess):
346         (WebKit::WebProcessPool::sendToNetworkingProcessRelaunchingIfNecessary):
347         * UIProcess/WebProcessProxy.cpp:
348         (WebKit::WebProcessProxy::shutDown):
349         (WebKit::WebProcessProxy::removeWebPage):
350         (WebKit::WebProcessProxy::canTerminateChildProcess):
351         (WebKit::WebProcessProxy::updateTextCheckerState):
352         (WebKit::WebProcessProxy::didSaveToPageCache):
353         (WebKit::WebProcessProxy::didSetAssertionState):
354         (WebKit::WebProcessProxy::createDownloadProxy): Deleted.
355         * UIProcess/WebProcessProxy.h:
356         * UIProcess/efl/WebProcessPoolEfl.cpp:
357         (WebKit::WebProcessPool::platformInitializeWebProcess):
358         (WebKit::WebProcessPool::setIgnoreTLSErrors):
359         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
360         (WebKit::BlobRegistryProxy::registerFileBlobURL):
361         (WebKit::BlobRegistryProxy::registerBlobURL):
362         (WebKit::BlobRegistryProxy::unregisterBlobURL):
363         (WebKit::BlobRegistryProxy::registerBlobURLForSlice):
364         (WebKit::BlobRegistryProxy::blobSize):
365         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
366         (WebKit::WebPlatformStrategies::cookiesForDOM):
367         (WebKit::WebPlatformStrategies::setCookiesFromDOM):
368         (WebKit::WebPlatformStrategies::cookiesEnabled):
369         (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
370         (WebKit::WebPlatformStrategies::getRawCookies):
371         (WebKit::WebPlatformStrategies::deleteCookie):
372         (WebKit::WebPlatformStrategies::resourceLoadScheduler):
373         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
374         (WebKit::WebPlatformStrategies::createPingHandle):
375         (WebKit::WebPlatformStrategies::createBlobRegistry):
376         * WebProcess/WebPage/WebFrame.cpp:
377         (WebKit::WebFrame::startDownload):
378         (WebKit::WebFrame::convertMainResourceLoadToDownload):
379         (WebKit::WebFrame::source):
380         * WebProcess/WebProcess.cpp:
381         (WebKit::WebProcess::WebProcess):
382         (WebKit::m_webSQLiteDatabaseTracker):
383         (WebKit::WebProcess::initializeConnection):
384         (WebKit::WebProcess::initializeWebProcess):
385         (WebKit::WebProcess::ensureNetworkProcessConnection):
386         (WebKit::WebProcess::destroyPrivateBrowsingSession):
387         (WebKit::WebProcess::pluginProcessConnectionManager):
388         (WebKit::WebProcess::shouldTerminate):
389         (WebKit::WebProcess::setInjectedBundleParameters):
390         (WebKit::WebProcess::networkConnection):
391         (WebKit::WebProcess::setEnhancedAccessibility):
392         (WebKit::WebProcess::prefetchDNS):
393         (WebKit::WebProcess::didCreateDownload): Deleted.
394         (WebKit::WebProcess::didDestroyDownload): Deleted.
395         (WebKit::WebProcess::downloadProxyConnection): Deleted.
396         (WebKit::WebProcess::downloadsAuthenticationManager): Deleted.
397         (WebKit::WebProcess::downloadManager): Deleted.
398         (WebKit::WebProcess::usesNetworkProcess): Deleted.
399         (WebKit::WebProcess::downloadRequest): Deleted.
400         (WebKit::WebProcess::resumeDownload): Deleted.
401         (WebKit::WebProcess::cancelDownload): Deleted.
402         * WebProcess/WebProcess.h:
403         (WebKit::WebProcess::textCheckerState):
404         (WebKit::WebProcess::eventDispatcher):
405         * WebProcess/WebProcess.messages.in:
406         * WebProcess/soup/WebProcessSoup.cpp:
407         (WebKit::WebProcess::platformSetCacheModel):
408         (WebKit::WebProcess::platformClearResourceCaches):
409         (WebKit::WebProcess::platformInitializeWebProcess):
410         (WebKit::WebProcess::platformTerminate):
411         (WebKit::getCacheDiskFreeSize): Deleted.
412         (WebKit::setSoupSessionAcceptLanguage): Deleted.
413         (WebKit::languageChanged): Deleted.
414         (WebKit::WebProcess::setIgnoreTLSErrors): Deleted.
415         (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost): Deleted.
416
417 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
418
419         [GTK] UI process crash when the screensaver DBus proxy is being created while the web view is destroyed
420         https://bugs.webkit.org/show_bug.cgi?id=151653
421
422         Reviewed by Martin Robinson.
423
424         We correctly cancel the proxy creation, but when the async ready
425         callback is called, the view could be destroyed already. In that
426         case g_dbus_proxy_new_for_bus_finish() will return nullptr and
427         fail with cancelled error, but we are using the passed web view
428         without checking first if the creation failed or not.
429
430         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
431         (screenSaverProxyCreatedCallback):
432
433 2015-11-28  Tim Horton  <timothy_horton@apple.com>
434
435         Stop unnecessarily copying WKWebViewConfiguration in a few places
436         https://bugs.webkit.org/show_bug.cgi?id=151639
437
438         Reviewed by Dan Bernstein.
439
440         * UIProcess/API/Cocoa/WKWebView.mm:
441         (-[WKWebView initWithFrame:configuration:]):
442         (-[WKWebView dealloc]):
443         (-[WKWebView _contentProviderRegistry]):
444         (-[WKWebView _selectionGranularity]):
445         (-[WKWebView _setHasCustomContentView:loadedMIMEType:]):
446         * UIProcess/API/Cocoa/WKWebViewInternal.h:
447         * UIProcess/ios/PageClientImplIOS.mm:
448         (WebKit::PageClientImpl::mimeTypesWithCustomContentProviders):
449         * UIProcess/ios/WKContentViewInteraction.mm:
450         (-[WKContentView setupInteraction]):
451         (-[WKContentView _stopAssistingKeyboard]):
452         Looking at allocation traces I noticed that we were making way more
453         WKWebViewConfigurations than made sense; looking at backtraces I found
454         a few internal callers of -[WKWebView configuration], which copies the
455         configuration. There's no reason for these internal callers to make 
456         such a copy, though.
457
458         I'm not exactly sure what the usual approach is here, but I added
459         getters so WKContentViewInteraction and PageClientImplIOS can get to
460         the values they're looking for without using the configuration property.
461
462 2015-11-27  Brady Eidson  <beidson@apple.com>
463
464         Modern IDB: Class-ify IDBGetResult making it impossible to get the data members wrong.
465         https://bugs.webkit.org/show_bug.cgi?id=151627
466
467         Reviewed by Alexey Proskuryakov.
468
469         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
470         (WebKit::UniqueIDBDatabase::getRecordFromBackingStore):
471         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
472         
473         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
474         
475         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
476         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::getIndexRecord):
477         
478         * Shared/WebCoreArgumentCoders.cpp:
479         (IPC::ArgumentCoder<IDBGetResult>::encode):
480         (IPC::ArgumentCoder<IDBGetResult>::decode):
481         * Shared/WebCoreArgumentCoders.h:
482         
483         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
484
485 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
486
487         [GTK] Remove the remaining uses of GMainLoopSource
488         https://bugs.webkit.org/show_bug.cgi?id=151632
489
490         Reviewed by Žan Doberšek.
491
492         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
493         (_WebKitWebViewBasePrivate::_WebKitWebViewBasePrivate):
494         (_WebKitWebViewBasePrivate::clearRedirectedWindowSoonTimerFired):
495         (webkitWebViewBaseClearRedirectedWindowSoon):
496         (webkitWebViewBaseEnterAcceleratedCompositingMode):
497
498 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
499
500         [GTK] Use the network process unconditionally
501         https://bugs.webkit.org/show_bug.cgi?id=151541
502
503         Reviewed by Alex Christensen.
504
505         Make the shared secondary process model become multiple secondary
506         process model with a limit of 1 web process. Use the same options
507         when creating a context with legacy configuration (unit tests and
508         inspector proxy).
509
510         * NetworkProcess/gtk/NetworkProcessMainGtk.cpp:
511         * UIProcess/API/APIProcessPoolConfiguration.cpp:
512         (API::ProcessPoolConfiguration::createWithLegacyOptions):
513         * UIProcess/API/gtk/WebKitWebContext.cpp:
514         (webkitWebContextConstructed):
515         (webkit_web_context_set_process_model):
516         (webkit_web_context_get_process_model):
517         (webkit_web_context_set_web_process_count_limit):
518         (webkit_web_context_get_web_process_count_limit):
519         (toWebKitProcessModel): Deleted.
520         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
521         * UIProcess/gtk/WebProcessPoolGtk.cpp:
522         (WebKit::WebProcessPool::setIgnoreTLSErrors):
523         (WebKit::WebProcessPool::platformInitializeWebProcess):
524
525 2015-11-23  Brian Burg  <bburg@apple.com>
526
527         Web Inspector: inspector settings should not be shared between different inspection levels
528         https://bugs.webkit.org/show_bug.cgi?id=151151
529
530         Reviewed by Timothy Hatcher.
531
532         In WebKit2, we already track the inspection level of WebPages in order to give inspectors
533         different page groups. Send the inspection level to WebInspectorUI WebProcess when
534         establishing a connection from the UIProcess. Use this number in the FrontendClient.
535
536         * UIProcess/WebInspectorProxy.cpp:
537         (WebKit::WebInspectorProxy::inspectionLevel): Renamed from inspectorLevel to be consistent.
538         (WebKit::WebInspectorProxy::inspectorPageGroupIdentifier):
539         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
540         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
541         (WebKit::WebInspectorProxy::createInspectorPage):
542         (WebKit::WebInspectorProxy::inspectorLevel): Deleted.
543         * UIProcess/WebInspectorProxy.h:
544         * UIProcess/mac/WebInspectorProxyMac.mm:
545         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
546         * WebProcess/WebPage/WebInspectorUI.cpp:
547         (WebKit::WebInspectorUI::establishConnection):
548         * WebProcess/WebPage/WebInspectorUI.h:
549         * WebProcess/WebPage/WebInspectorUI.messages.in:
550
551 2015-11-23  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
552
553         REGRESSION(r188206): [EFL] Missing to adjust scrollbar size to ewk_view_contents_size_get API test
554         https://bugs.webkit.org/show_bug.cgi?id=148735
555
556         Reviewed by Csaba Osztrogonác.
557
558         r189256 missed to adjust scrollbar size to other tests in ewk_view_contents_size_get() API test.
559         In this case we need to apply scrollbar size to both width and height unlike previous fix. Because
560         horizontal scrollbar is also shown since device pixel ratio(= 2.0) is adjusted.
561
562         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
563         (TEST_F):
564
565 2015-11-23  Alex Christensen  <achristensen@webkit.org>
566
567         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
568         https://bugs.webkit.org/show_bug.cgi?id=151532
569
570         Reviewed by Benjamin Poulain.
571
572         * UIProcess/WebGeolocationManagerProxy.cpp:
573         (WebKit::WebGeolocationManagerProxy::processPoolDestroyed):
574         (WebKit::WebGeolocationManagerProxy::processDidClose):
575         When a WebProcessPool is destroyed, only call stopUpdating if m_updateRequesters.clear()
576         stopped the updating, like we do in WebGeolocationManagerProxy::removeRequester.
577         Otherwise, call setEnableHighAccuracy if needed, also like we do in WebGeolocationManagerProxy::removeRequester.
578
579 2015-11-23  Brian Burg  <bburg@apple.com>
580
581         Web Inspector: when inspecting the inspector, add the inspection level to the title bar
582         https://bugs.webkit.org/show_bug.cgi?id=151555
583
584         Reviewed by Timothy Hatcher.
585
586         If the inspection level says we are inspecting an inspector, include the level
587         in the title bar to easily disambiguate it from the base level inspector.
588
589         * UIProcess/mac/WebInspectorProxyMac.mm:
590         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
591
592 2015-11-23  Csaba Osztrogonác  <ossy@webkit.org>
593
594         Unreviewed speculative buildfix after r192701.
595
596         * PlatformMac.cmake:
597
598 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
599
600         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.11.2 release.
601
602         * gtk/NEWS: Add release notes for 2.11.2.
603
604 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
605
606         Unreviewed. Add missing inspector file to GTK+ compilation.
607
608         * PlatformGTK.cmake:
609
610 == Rolled over to ChangeLog-2015-11-21 ==