f7ee9acbccccee5ef4dba4f00dc9956ad86275b1
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2015-12-07  Philippe Normand  <pnormand@igalia.com>
2
3         [GTK][Mac] socketpair assertion failure
4         https://bugs.webkit.org/show_bug.cgi?id=151293
5
6         Reviewed by Carlos Garcia Campos.
7
8         * Platform/IPC/unix/ConnectionUnix.cpp: Don't use SEQPACKET sockets on Darwin.
9
10 2015-12-07  Gwang Yoon Hwang  <yoon@igalia.com>
11
12         [ThreadedCompositor] Add support for PlatformLayer.
13         https://bugs.webkit.org/show_bug.cgi?id=143299
14
15         Reviewed by Žan Doberšek.
16
17         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
18         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
19         Swap pending buffers of TextureMapperPlatformLayerProxies before painting contents.
20         (WebKit::CoordinatedGraphicsScene::syncPlatformLayerIfNeeded):
21         In threaded compositor, CoordinatedGraphicsScence only cares about creation and deletion
22         of platform layers.
23
24         (WebKit::CoordinatedGraphicsScene::onNewBufferAvailable):
25         Whenever new buffer comes via TextureMapperPlatformLayerProxy, CoordinatedGraphicsScene will
26         update the scene if it is needed.
27
28 2015-12-07  Mario Sanchez Prada  <mario@endlessm.com>
29
30         [GTK] Allow applications to force Accelerated Compositing mode
31         https://bugs.webkit.org/show_bug.cgi?id=150558
32
33         Reviewed by Carlos Garcia Campos.
34
35         Enable forcing Accelerated Compositing mode to be always on if
36         a WEBKIT_FORCE_COMPOSITING_MODE environment variable is set.
37
38         This can be useful for controlled environments where we know that
39         AC always on works well enough, to get smoother animations.
40
41         * UIProcess/gtk/WebPreferencesGtk.cpp:
42         (WebKit::WebPreferences::platformInitializeStore): Set forceCompositingMode
43         setting to true if the environment variable is found.
44
45 2015-12-07  Jon Forsberg  <jon.orebro@gmail.com>
46
47         [GTK] Add webkit_uri_request_get_http_method
48         https://bugs.webkit.org/show_bug.cgi?id=151601
49
50         Reviewed by Martin Robinson.
51
52         Add a method to get the HTTP method of a WebKitURIRequest.
53
54         * UIProcess/API/gtk/WebKitURIRequest.cpp:
55         (webkit_uri_request_get_http_method):
56         * UIProcess/API/gtk/WebKitURIRequest.h:
57         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
58
59 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
60
61         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
62         https://bugs.webkit.org/show_bug.cgi?id=79918
63
64         Reviewed by Gustavo Noronha Silva.
65
66         Add WebKitConsoleMessage boxed type that is passed to the
67         WebKitWebPage::console-message-sent signal with all the details
68         about the message.
69
70         * PlatformGTK.cmake: Add new files to compilation.
71         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: Add new symbols.
72         * UIProcess/API/gtk/docs/webkit2gtk-4.0.types: Add webkit_console_message_get_type.
73         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add new section to the docs.
74         * WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
75         (API::InjectedBundle::PageUIClient::willAddMessageToConsole): Add
76         paramaters for all console message details.
77         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.cpp: Added.
78         (webkit_console_message_copy):
79         (webkit_console_message_free):
80         (webkit_console_message_get_source):
81         (webkit_console_message_get_level):
82         (webkit_console_message_get_text):
83         (webkit_console_message_get_line):
84         (webkit_console_message_get_source_id):
85         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h: Added.
86         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessagePrivate.h: Added.
87         (_WebKitConsoleMessage::_WebKitConsoleMessage):
88         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
89         (webkitWebPageDidSendConsoleMessage): Emit the
90         WebKitWebPage::console-message-sent signal.
91         (didReceiveResponseForResource): Generate a console message in
92         case of HTTP failure >= 400 for consistency with the inspector.
93         (didFailLoadForResource): Generate a console message in case of
94         resource load failure for consistency with the inspector.
95         (webkit_web_page_class_init): Add WebKitWebPage::console-message-sent signal.
96         (webkitWebPageCreate): Set custom UI client.
97         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
98         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
99         (WebKit::InjectedBundlePageUIClient::willAddMessageToConsole):
100         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
101         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
102         (WebKit::WebChromeClient::addMessageToConsole): Pass all the
103         console message details to the ui client.
104
105 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
106
107         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
108         https://bugs.webkit.org/show_bug.cgi?id=151934
109
110         Reviewed by Csaba Osztrogonác.
111
112         * UIProcess/API/efl/ewk_view.cpp:
113         (ewk_view_try_close):
114         Called window_close callback immediately when WKPageTryClose returns true.
115         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
116         (TEST_F): Improved test cases for try_close to test when content does not contain
117         onbeforeunload callback.
118
119 2015-12-07  Jaehun Lim  <ljaehun.lim@samsung.com>
120
121         [EFL] Moving preference settings from EwkView to WebPreferencesEfl
122         https://bugs.webkit.org/show_bug.cgi?id=151928
123
124         Reviewed by Gyuyoung Kim.
125
126         It implements WebPreferences::platformInitializeStore() in WebPreferencesEfl.cpp.
127
128         * UIProcess/API/efl/EwkView.cpp:
129         (EwkView::EwkView):
130         * UIProcess/efl/WebPreferencesEfl.cpp:
131         (WebKit::WebPreferences::platformInitializeStore):
132
133 2015-12-04  Anders Carlsson  <andersca@apple.com>
134
135         Crash when secondary clicking on a link on yahoo.com
136         https://bugs.webkit.org/show_bug.cgi?id=151900
137         rdar://problem/23765149
138
139         Reviewed by Beth Dakin.
140
141         Don't use +[NSURL URLWithString:] since it doesn't handle invalid URLs as well as WebCore::URL.
142
143         * UIProcess/mac/WebContextMenuProxyMac.mm:
144         (WebKit::WebContextMenuProxyMac::createShareMenuItem):
145
146 2015-12-04  Beth Dakin  <bdakin@apple.com>
147
148         Crash in clients using userData in 
149         _immediateActionAnimationControllerForHitTestResult
150         https://bugs.webkit.org/show_bug.cgi?id=151887
151
152         Rubber-stamped by Anders Carlsson.
153
154         Follow-up fix to handle null userData.
155         * UIProcess/API/Cocoa/WKWebView.mm:
156         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
157
158 2015-12-04  Beth Dakin  <bdakin@apple.com>
159
160         Crash in clients using userData in 
161         _immediateActionAnimationControllerForHitTestResult
162         https://bugs.webkit.org/show_bug.cgi?id=151887
163
164         Reviewed by Sam Weinig.
165
166         Cast this correctly.
167         * UIProcess/API/Cocoa/WKWebView.mm:
168         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
169
170 2015-12-04  Gavin Barraclough  <barraclough@apple.com>
171
172         Background state not being tracked correctly for PDFs on iOS
173         https://bugs.webkit.org/show_bug.cgi?id=151886
174
175         Reviewed by Anders Carlson.
176
177         The problem here is that when viewing a PDF we don't have an ApplicationStateTracker.
178         (While we do have a content view - which normally holds the ApplicationStateTracker -
179         the content view is not in a window, and only has an ApplicationStateTracker while in a
180         window). For now, let's give the WKPDFView an ApplicationStateTracker of its very own.
181         In the future we may want to refactor ownership of the ApplicationStateTracker up to
182         the WKWebView.
183
184         * UIProcess/API/Cocoa/WKWebView.mm:
185         (-[WKWebView _isBackground]):
186             - Added, checks background state of content/PDF view.
187         * UIProcess/API/Cocoa/WKWebViewInternal.h:
188             - expose _isBackground to PageClientImplIOS.
189         * UIProcess/ApplicationStateTracker.h:
190         (WebKit::ApplicationStateTracker::isInBackground):
191         * UIProcess/ApplicationStateTracker.mm:
192         (WebKit::isBackgroundState):
193         (WebKit::ApplicationStateTracker::ApplicationStateTracker):
194             - generalize WKContentView -> UIView, so this may now also be a WKPDFView.
195         * UIProcess/ios/PageClientImplIOS.mm:
196         (WebKit::PageClientImpl::isViewVisible):
197             - check background state via the WKWebView.
198         * UIProcess/ios/WKPDFView.h:
199         * UIProcess/ios/WKPDFView.mm:
200         (-[WKPDFView willMoveToWindow:]):
201         (-[WKPDFView didMoveToWindow]):
202         (-[WKPDFView isBackground]):
203         (-[WKPDFView _applicationDidEnterBackground]):
204         (-[WKPDFView _applicationWillEnterForeground]):
205             - added methods to initialize ApplicationStateTracker, access background state, & callbacks to the page proxy.
206
207 2015-12-04  Antti Koivisto  <antti@apple.com>
208
209         Rename WebResourceLoadScheduler to WebLoaderStrategy
210         https://bugs.webkit.org/show_bug.cgi?id=151854
211
212         Reviewed by Anders Carlsson.
213
214         It implements WebCore::LoaderStrategy and doesn't do any scheduling.
215
216         * CMakeLists.txt:
217         * WebKit2.xcodeproj/project.pbxproj:
218         * WebProcess/Network/NetworkProcessConnection.cpp:
219         (WebKit::NetworkProcessConnection::didReceiveMessage):
220         * WebProcess/Network/WebLoaderStrategy.cpp: Copied from Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.cpp.
221         (WebKit::WebLoaderStrategy::WebLoaderStrategy):
222         (WebKit::WebLoaderStrategy::~WebLoaderStrategy):
223         (WebKit::WebLoaderStrategy::loadResource):
224         (WebKit::WebLoaderStrategy::schedulePluginStreamLoad):
225         (WebKit::maximumBufferingTime):
226         (WebKit::WebLoaderStrategy::scheduleLoad):
227         (WebKit::WebLoaderStrategy::scheduleInternallyFailedLoad):
228         (WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired):
229         (WebKit::WebLoaderStrategy::startLocalLoad):
230         (WebKit::WebLoaderStrategy::remove):
231         (WebKit::WebLoaderStrategy::setDefersLoading):
232         (WebKit::WebLoaderStrategy::crossOriginRedirectReceived):
233         (WebKit::WebLoaderStrategy::servePendingRequests):
234         (WebKit::WebLoaderStrategy::suspendPendingRequests):
235         (WebKit::WebLoaderStrategy::resumePendingRequests):
236         (WebKit::WebLoaderStrategy::networkProcessCrashed):
237         (WebKit::WebLoaderStrategy::loadResourceSynchronously):
238         (WebKit::WebLoaderStrategy::createPingHandle):
239         (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler): Deleted.
240         (WebKit::WebResourceLoadScheduler::~WebResourceLoadScheduler): Deleted.
241         (WebKit::WebResourceLoadScheduler::loadResource): Deleted.
242         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad): Deleted.
243         (WebKit::WebResourceLoadScheduler::scheduleLoad): Deleted.
244         (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad): Deleted.
245         (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired): Deleted.
246         (WebKit::WebResourceLoadScheduler::startLocalLoad): Deleted.
247         (WebKit::WebResourceLoadScheduler::remove): Deleted.
248         (WebKit::WebResourceLoadScheduler::setDefersLoading): Deleted.
249         (WebKit::WebResourceLoadScheduler::crossOriginRedirectReceived): Deleted.
250         (WebKit::WebResourceLoadScheduler::servePendingRequests): Deleted.
251         (WebKit::WebResourceLoadScheduler::suspendPendingRequests): Deleted.
252         (WebKit::WebResourceLoadScheduler::resumePendingRequests): Deleted.
253         (WebKit::WebResourceLoadScheduler::networkProcessCrashed): Deleted.
254         (WebKit::WebResourceLoadScheduler::loadResourceSynchronously): Deleted.
255         (WebKit::WebResourceLoadScheduler::createPingHandle): Deleted.
256         * WebProcess/Network/WebLoaderStrategy.h: Copied from Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.h.
257         (WebKit::WebLoaderStrategy::webResourceLoaderForIdentifier):
258         (WebKit::WebResourceLoadScheduler::webResourceLoaderForIdentifier): Deleted.
259         * WebProcess/Network/WebResourceLoadScheduler.cpp: Removed.
260         * WebProcess/Network/WebResourceLoadScheduler.h: Removed.
261         * WebProcess/Plugins/PluginView.cpp:
262         (WebKit::PluginView::Stream::start):
263         (WebKit::PluginView::Stream::cancel):
264         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
265         (WebKit::WebPlatformStrategies::createLoaderStrategy):
266         (WebKit::WebPlatformStrategies::createPasteboardStrategy):
267         * WebProcess/WebProcess.cpp:
268         (WebKit::WebProcess::WebProcess):
269         (WebKit::WebProcess::initializeWebProcess):
270         (WebKit::WebProcess::networkProcessConnectionClosed):
271         (WebKit::WebProcess::webLoaderStrategy):
272         (WebKit::WebProcess::webResourceLoadScheduler): Deleted.
273         * WebProcess/WebProcess.h:
274
275 2015-12-03  Simon Fraser  <simon.fraser@apple.com>
276
277         Have layer memory use consult the backing store format
278         https://bugs.webkit.org/show_bug.cgi?id=151827
279         rdar://problem/23746497
280
281         Reviewed by Dean Jackson.
282
283         When computing the backing store memory size, take the pixel format into account,
284         rather than assuming 4 bytes per pixel.
285
286         * Shared/mac/RemoteLayerBackingStore.h:
287         * Shared/mac/RemoteLayerBackingStore.mm:
288         (WebKit::RemoteLayerBackingStore::bytesPerPixel):
289         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
290         (WebKit::PlatformCALayerRemote::backingStoreBytesPerPixel):
291         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
292
293 2015-12-03  Jer Noble  <jer.noble@apple.com>
294
295         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
296         https://bugs.webkit.org/show_bug.cgi?id=151830
297
298         Reviewed by Anders Carlsson.
299
300         Add a new, private WKWebViewConfiguration property _invisibleAutoplayNotPermitted.
301
302         * Shared/WebPreferencesDefinitions.h:
303         * UIProcess/API/Cocoa/WKWebView.mm:
304         (-[WKWebView initWithFrame:configuration:]):
305         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
306         (-[WKWebViewConfiguration init]):
307         (-[WKWebViewConfiguration copyWithZone:]):
308         (-[WKWebViewConfiguration _invisibleAutoplayNotPermitted]):
309         (-[WKWebViewConfiguration _setInvisibleAutoplayNotPermitted:]):
310         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
311         * WebProcess/WebPage/WebPage.cpp:
312         (WebKit::WebPage::updatePreferences):
313
314 2015-12-03  Sam Weinig  <sam@webkit.org>
315
316         It should be possible to use version 6 of the WKPageUIClient without adopting the new createNewPage
317         https://bugs.webkit.org/show_bug.cgi?id=151826
318
319         Reviewed by Anders Carlsson.
320
321         * UIProcess/API/C/WKPage.cpp:
322         (WKPageSetPageUIClient):
323         Pick which variant of createNewPage to use based on which function pointer is available,
324         not the version number.
325
326 2015-12-03  Anders Carlsson  <andersca@apple.com>
327
328         Remove Objective-C GC support
329         https://bugs.webkit.org/show_bug.cgi?id=151819
330         rdar://problem/23746991
331
332         Reviewed by Dan Bernstein.
333
334         * Configurations/Base.xcconfig:
335         * Configurations/BaseLegacyProcess.xcconfig:
336         * Configurations/BaseXPCService.xcconfig:
337         * Shared/Cocoa/APIObject.mm:
338         (API::Object::newObject): Deleted.
339
340 2015-12-03  Jer Noble  <jer.noble@apple.com>
341
342         Unreviewed build-fix; fix !HAVE(AVKIT) build after r193340.
343
344         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
345         (WebKit::WebVideoFullscreenManagerProxy::applicationDidBecomeActive):
346
347 2015-12-03  Sam Weinig  <sam@webkit.org>
348
349         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
350         <rdar://problem/23320863>
351         https://bugs.webkit.org/show_bug.cgi?id=151708
352
353         (Add missing function definitions)
354
355         * UIProcess/API/C/WKPage.cpp:
356         (WKPageRunJavaScriptAlertResultListenerGetTypeID):
357         (WKPageRunJavaScriptAlertResultListenerCall):
358         (WKPageRunJavaScriptConfirmResultListenerGetTypeID):
359         (WKPageRunJavaScriptConfirmResultListenerCall):
360         (WKPageRunJavaScriptPromptResultListenerGetTypeID):
361         (WKPageRunJavaScriptPromptResultListenerCall):
362
363 2015-12-03  Jer Noble  <jer.noble@apple.com>
364
365         [iOS] Fullscreen -> PiP should resume to Fullscreen, not inline
366         https://bugs.webkit.org/show_bug.cgi?id=150906
367
368         Reviewed by Simon Fraser.
369
370         Add methods to pass isVisible(), applicationDidBecomeActive(), and requestFullscreenMode()
371         to and from models and interfaces.
372
373         * UIProcess/ios/WebPageProxyIOS.mm:
374         (WebKit::WebPageProxy::applicationDidBecomeActive): Notify the fullscreen manager, if preset.
375
376         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
377         (WebKit::WebVideoFullscreenModelContext::requestFullscreenMode): Renamed from requestExitFullscreen(); takes a mode enum.
378         (WebKit::WebVideoFullscreenModelContext::isVisible): Added.
379         (WebKit::WebVideoFullscreenManagerProxy::applicationDidBecomeActive): Pass to all existing interfaces.
380         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID): Do not re-create the view if it already exists.
381         (WebKit::WebVideoFullscreenManagerProxy::requestFullscreenMode): Renamed from requestExitFullscreen(); takes a mode enum.
382         (WebKit::WebVideoFullscreenManagerProxy::isVisible): Added. Query Page::isVisible() and Page::isInWindow(), the latter because
383                 PiP will cause Page::isVisible() to be TRUE even when the containing tab is backgrounded.
384         (WebKit::WebVideoFullscreenModelContext::requestExitFullscreen): Deleted.
385         (WebKit::WebVideoFullscreenManagerProxy::requestExitFullscreen): Deleted.
386         * WebProcess/ios/WebVideoFullscreenManager.mm:
387         (WebKit::WebVideoFullscreenManager::enterVideoFullscreenForVideoElement): Only resize the view if we are not already in one of
388                 the fullscreen modes.
389         (WebKit::WebVideoFullscreenManager::requestFullscreenMode): Renamed from requestExitFullscreen().
390         (WebKit::WebVideoFullscreenManager::requestExitFullscreen): Deleted.
391
392 2015-12-02  Antti Koivisto  <antti@apple.com>
393
394         Move ResourceLoadScheduler to WebKit1
395         https://bugs.webkit.org/show_bug.cgi?id=151743
396
397         Reviewed by Alex Christensen.
398
399         * NetworkProcess/NetworkProcessPlatformStrategies.cpp:
400         (WebKit::NetworkProcessPlatformStrategies::createCookiesStrategy):
401         (WebKit::NetworkProcessPlatformStrategies::createLoaderStrategy):
402         (WebKit::NetworkProcessPlatformStrategies::createPasteboardStrategy):
403         (WebKit::NetworkProcessPlatformStrategies::createPluginStrategy):
404         (WebKit::NetworkProcessPlatformStrategies::createBlobRegistry):
405         (WebKit::NetworkProcessPlatformStrategies::resourceLoadScheduler): Deleted.
406         (WebKit::NetworkProcessPlatformStrategies::loadResourceSynchronously): Deleted.
407         * NetworkProcess/NetworkProcessPlatformStrategies.h:
408         * WebProcess/InjectedBundle/InjectedBundle.cpp:
409         * WebProcess/Network/WebResourceLoadScheduler.cpp:
410         (WebKit::WebResourceLoadScheduler::~WebResourceLoadScheduler):
411         (WebKit::WebResourceLoadScheduler::loadResource):
412         (WebKit::WebResourceLoadScheduler::resumePendingRequests):
413         (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
414         (WebKit::WebResourceLoadScheduler::loadResourceSynchronously):
415         (WebKit::WebResourceLoadScheduler::createPingHandle):
416         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad): Deleted.
417         (WebKit::WebResourceLoadScheduler::setSerialLoadingEnabled): Deleted.
418         * WebProcess/Network/WebResourceLoadScheduler.h:
419         (WebKit::WebResourceLoadScheduler::webResourceLoaderForIdentifier):
420         * WebProcess/Plugins/PluginView.cpp:
421         (WebKit::PluginView::Stream::start):
422         (WebKit::PluginView::Stream::cancel):
423         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
424         (WebKit::WebPlatformStrategies::createLoaderStrategy):
425         (WebKit::WebPlatformStrategies::createPasteboardStrategy):
426         (WebKit::WebPlatformStrategies::createPluginStrategy):
427         (WebKit::WebPlatformStrategies::createBlobRegistry):
428         (WebKit::WebPlatformStrategies::cookiesForDOM):
429         (WebKit::WebPlatformStrategies::deleteCookie):
430         (WebKit::WebPlatformStrategies::refreshPlugins):
431         (WebKit::WebPlatformStrategies::resourceLoadScheduler): Deleted.
432         (WebKit::WebPlatformStrategies::loadResourceSynchronously): Deleted.
433         (WebKit::WebPlatformStrategies::createPingHandle): Deleted.
434         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
435
436 2015-12-02  Alex Christensen  <achristensen@webkit.org>
437
438         Fix authentication requests with NetworkSession and canHandleHTTPSServerTrustEvaluation true
439         https://bugs.webkit.org/show_bug.cgi?id=151775
440         rdar://problem/23586265
441
442         Reviewed by Chris Dumez.
443
444         In https://bugs.webkit.org/show_bug.cgi?id=150968 I copied functionality from 
445         NetworkLoad::canAuthenticateAgainstProtectionSpaceAsync into NetworkLoad::didReceiveChallenge
446         but I overlooked the call to m_client.canAuthenticateAgainstProtectionSpaceAsync which is needed
447         if canHandleHTTPSServerTrustEvaluation is true.  This adds that call and moves what should happen
448         after that to NetworkLoad::continueCanAuthenticateAgainstProtectionSpace.
449
450         * NetworkProcess/NetworkLoad.cpp:
451         (WebKit::NetworkLoad::didReceiveChallenge):
452         (WebKit::NetworkLoad::didReceiveResponse):
453         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
454         * NetworkProcess/NetworkLoad.h:
455         * NetworkProcess/NetworkSession.h:
456         * Shared/Authentication/AuthenticationManager.h:
457
458 2015-12-01  Hunseop Jeong  <hs85.jeong@samsung.com>
459
460         Unreviewed, fix build after r192931.
461
462         * CMakeLists.txt: Remove the WKOriginDataManager in CMakeLists.txt.
463
464 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
465
466         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
467         https://bugs.webkit.org/show_bug.cgi?id=150792
468
469         Reviewed by Saam Barati.
470
471         * Configurations/FeatureDefines.xcconfig:
472
473 2015-12-01  Commit Queue  <commit-queue@webkit.org>
474
475         Unreviewed, rolling out r192914.
476         https://bugs.webkit.org/show_bug.cgi?id=151734
477
478         JSC tests for this change are failing on 32 and 64-bit bots
479         (Requested by ryanhaddad on #webkit).
480
481         Reverted changeset:
482
483         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
484         enable this feature"
485         https://bugs.webkit.org/show_bug.cgi?id=150792
486         http://trac.webkit.org/changeset/192914
487
488 2015-12-01  Anders Carlsson  <andersca@apple.com>
489
490         Remove WKOriginDataManager
491         https://bugs.webkit.org/show_bug.cgi?id=151723
492
493         Reviewed by Andy Estes.
494
495         * UIProcess/API/C/WKOriginDataManager.cpp: Removed.
496         (WKOriginDataManagerGetTypeID): Deleted.
497         (WKOriginDataManagerGetOrigins): Deleted.
498         (WKOriginDataManagerDeleteEntriesForOrigin): Deleted.
499         (WKOriginDataManagerDeleteEntriesModifiedBetweenDates): Deleted.
500         (WKOriginDataManagerDeleteAllEntries): Deleted.
501         * UIProcess/API/C/WKOriginDataManager.h: Removed.
502         * WebKit2.xcodeproj/project.pbxproj:
503
504 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
505
506         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
507         https://bugs.webkit.org/show_bug.cgi?id=150792
508
509         Reviewed by Saam Barati.
510
511         * Configurations/FeatureDefines.xcconfig:
512
513 2015-12-01  Sam Weinig  <sam@webkit.org>
514
515         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
516         <rdar://problem/23320863>
517         https://bugs.webkit.org/show_bug.cgi?id=151708
518
519         Reviewed by Anders Carlsson.
520
521         Add listener based versions of alert, confirm and prompt.
522
523         * Shared/API/APIObject.h:
524         * Shared/API/c/WKBase.h:
525         * UIProcess/API/C/WKPage.cpp:
526         (WebKit::RunJavaScriptAlertResultListener::create):
527         (WebKit::RunJavaScriptAlertResultListener::~RunJavaScriptAlertResultListener):
528         (WebKit::RunJavaScriptAlertResultListener::call):
529         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
530         (WebKit::RunJavaScriptConfirmResultListener::create):
531         (WebKit::RunJavaScriptConfirmResultListener::~RunJavaScriptConfirmResultListener):
532         (WebKit::RunJavaScriptConfirmResultListener::call):
533         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
534         (WebKit::RunJavaScriptPromptResultListener::create):
535         (WebKit::RunJavaScriptPromptResultListener::~RunJavaScriptPromptResultListener):
536         (WebKit::RunJavaScriptPromptResultListener::call):
537         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
538         (WKPageSetPageUIClient):
539         * UIProcess/API/C/WKPageUIClient.h:
540
541 2015-12-01  Anders Carlsson  <andersca@apple.com>
542
543         Remove WebKit2.framework
544         https://bugs.webkit.org/show_bug.cgi?id=151715
545
546         Reviewed by Dan Bernstein.
547
548         * Configurations/WebKit2.xcconfig: Removed.
549         * UIProcess/API/Cocoa/WebKit2.h: Removed.
550         * WebKit2.xcodeproj/project.pbxproj:
551         * mac/Info-WebKit2.plist: Removed.
552         * mac/MigrateHeadersToWebKit2.make: Removed.
553         * mac/WebKit2.m: Removed.
554
555 2015-12-01  Alex Christensen  <achristensen@webkit.org>
556
557         Use Optional for matrix inverses
558         https://bugs.webkit.org/show_bug.cgi?id=151575
559
560         Reviewed by Myles C. Maxfield.
561
562         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
563         (WebKit::NetscapePlugin::convertFromRootView):
564         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
565         (WebKit::NetscapePlugin::convertPoint):
566         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
567         (WebKit::PDFPlugin::convertFromPDFViewToRootView):
568         (WebKit::PDFPlugin::convertFromPDFViewToScreen):
569         (WebKit::PDFPlugin::boundsOnScreen):
570         (WebKit::PDFPlugin::geometryDidChange):
571         * WebProcess/Plugins/PDF/PDFPlugin.mm:
572         (WebKit::PDFPlugin::geometryDidChange):
573
574 2015-12-01  Tim Horton  <timothy_horton@apple.com>
575
576         Remove swipe snapshot before main document load if scroll position is already restored
577         https://bugs.webkit.org/show_bug.cgi?id=151224
578
579         Reviewed by Darin Adler.
580
581         * UIProcess/Cocoa/WebViewImpl.h:
582         * UIProcess/Cocoa/WebViewImpl.mm:
583         (WebKit::WebViewImpl::didRestoreScrollPosition):
584         * UIProcess/PageClient.h:
585         * UIProcess/WebPageProxy.cpp:
586         (WebKit::WebPageProxy::didRestoreScrollPosition):
587         * UIProcess/WebPageProxy.h:
588         * UIProcess/WebPageProxy.messages.in:
589         * UIProcess/mac/PageClientImpl.h:
590         * UIProcess/mac/PageClientImpl.mm:
591         (WebKit::PageClientImpl::didRestoreScrollPosition):
592         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
593         (WebKit::WebFrameLoaderClient::didRestoreScrollPosition):
594         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
595         * WebProcess/WebPage/WebPage.cpp:
596         (WebKit::WebPage::didRestoreScrollPosition):
597         * WebProcess/WebPage/WebPage.h:
598         Plumb didRestoreScrollPosition through to ViewGestureController (yikes!).
599
600         * UIProcess/ViewGestureController.cpp:
601         (WebKit::ViewGestureController::didFirstVisuallyNonEmptyLayoutForMainFrame):
602         Cancel waiting for any more loads if we get to firstVisuallyNonEmptyLayout.
603
604         (WebKit::ViewGestureController::didReachMainFrameLoadTerminalState):
605         Cancel waiting for scroll position restoration if we make it to main frame load,
606         because there is a chance we won't be able to restore the old scroll position, and
607         by main frame load time we've tried as hard as we're going to to restore it.
608
609         * UIProcess/mac/ViewGestureControllerMac.mm:
610         (WebKit::ViewGestureController::endSwipeGesture):
611         Make some legacy-style-only code clearer that it's legacy-style-only.
612         Wait for scroll position restoration.
613
614 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
615
616         REGRESSION(r192834): [GTK] Test /webkit2/WebKitWebView/editor-state/typing-attributes times out after r192834
617         https://bugs.webkit.org/show_bug.cgi?id=151699
618
619         Reviewed by Tim Horton.
620
621         In r192834 the code to send EditorStateChanged message to the UI
622         process from WebPage::didChangeSelection was removed for non-mac
623         ports.
624
625         * WebProcess/WebPage/WebPage.cpp:
626         (WebKit::WebPage::didChangeSelection): Send EditorStateChanged
627         message to the UI process also for non-mac ports, as before r192834.
628
629 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
630
631         Unreviewed. Fix timeouts in several HTTP layout tests in GTK+ after r192796.
632
633         In r192796, the initialization of m_ignoreTLSErrors in
634         WebProcessPool was removed by mistake, making all HTTP tests that use
635         HTTPS fail due to invalid certificate errors.
636
637         * UIProcess/WebProcessPool.h: Bring back m_ignoreTLSErrors initialization.
638
639 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
640
641         REGRESSION(r192247): [GTK] ASSERTION FAILED: type == WebCore::ActionType || type == WebCore::CheckableActionType || type == WebCore::SeparatorType
642         https://bugs.webkit.org/show_bug.cgi?id=151513
643
644         Reviewed by Martin Robinson.
645
646         This happens because we are using our own WebContextMenuItemGtk
647         derived from WebContextMenuItemData, but using our own submenu
648         items handling. We are using the non-submenu
649         WebContextMenuItemData constructor to create our submenu items
650         too, because WebContextMenuItemData always expect the submenu
651         items to be passed to the constructor, but we have a set_submenu
652         method in the public API. So we consider that a
653         WebContextMenuItemGtk is SubmenuType if it has submenu items, but
654         we use the action type internally. When converting a
655         WebContextMenuItemGtk to a generic WebContextMenuItemData, we
656         correctly set the type and pass the submenu items to the
657         approriate constructor.
658
659         * Shared/gtk/WebContextMenuItemGtk.cpp:
660         (WebKit::WebContextMenuItemGtk::WebContextMenuItemGtk): When
661         constructing from a WebContextMenuItemData, set the type as
662         ActionType when it's a submenu type.
663         * Shared/gtk/WebContextMenuItemGtk.h:
664         (WebKit::WebContextMenuItemGtk::type): Return SubmenuType if
665         submenu items vector is not empty, otherwise use the parent method.
666         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
667         (webkit_context_menu_item_new_with_submenu): Create the
668         WebContextMenuItemGtk as ActionType.
669
670 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
671
672         Unreviewed. Add missing inspector files to the GTK+ build.
673
674         * PlatformGTK.cmake: Add also Debug css files.
675
676 2015-11-30  Alexey Proskuryakov  <ap@apple.com>
677
678         Build fix for some compiler versions.
679
680         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm: Disable deprecation warnings while
681         processing SOFT_LINK_CLASS too.
682
683 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
684
685         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
686         https://bugs.webkit.org/show_bug.cgi?id=149309
687         <rdar://problem/22748363>
688
689         Reviewed by Brent Fulgham.
690
691         Callback of bundle clients could kill the documentloader. Therefore, make a copy
692         of the navigationID before invoking the callback.
693
694         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
695         (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
696         (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
697         (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
698         (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
699         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
700         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
701         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
702
703 2015-11-30  Tim Horton  <timothy_horton@apple.com>
704
705         Get rid of the !USE(ASYNC_NSTEXTINPUTCLIENT) codepath
706         https://bugs.webkit.org/show_bug.cgi?id=151673
707
708         Reviewed by Anders Carlsson.
709
710         * UIProcess/API/Cocoa/WKWebView.mm:
711         * UIProcess/API/mac/WKView.mm:
712         * UIProcess/Cocoa/WebViewImpl.h:
713         * UIProcess/Cocoa/WebViewImpl.mm:
714         (WebKit::WebViewImpl::resignFirstResponder): Deleted.
715         (WebKit::WebViewImpl::interpretKeyEvent): Deleted.
716         (WebKit::WebViewImpl::executeSavedKeypressCommands): Deleted.
717         (WebKit::WebViewImpl::doCommandBySelector): Deleted.
718         (WebKit::WebViewImpl::insertText): Deleted.
719         (WebKit::WebViewImpl::inputContext): Deleted.
720         (WebKit::WebViewImpl::selectedRange): Deleted.
721         (WebKit::WebViewImpl::hasMarkedText): Deleted.
722         (WebKit::WebViewImpl::unmarkText): Deleted.
723         (WebKit::WebViewImpl::setMarkedText): Deleted.
724         (WebKit::WebViewImpl::markedRange): Deleted.
725         (WebKit::WebViewImpl::attributedSubstringForProposedRange): Deleted.
726         (WebKit::WebViewImpl::characterIndexForPoint): Deleted.
727         (WebKit::WebViewImpl::firstRectForCharacterRange): Deleted.
728         (WebKit::WebViewImpl::performKeyEquivalent): Deleted.
729         (WebKit::WebViewImpl::keyUp): Deleted.
730         (WebKit::WebViewImpl::keyDown): Deleted.
731         (WebKit::WebViewImpl::flagsChanged): Deleted.
732         * UIProcess/PageClient.h:
733         * UIProcess/WebPageProxy.cpp:
734         (WebKit::WebPageProxy::WebPageProxy): Deleted.
735         (WebKit::WebPageProxy::resetStateAfterProcessExited): Deleted.
736         * UIProcess/WebPageProxy.h:
737         * UIProcess/mac/PageClientImpl.h:
738         * UIProcess/mac/PageClientImpl.mm:
739         (WebKit::PageClientImpl::notifyApplicationAboutInputContextChange): Deleted.
740         * UIProcess/mac/WebPageProxyMac.mm:
741         (WebKit::WebPageProxy::setComposition): Deleted.
742         (WebKit::WebPageProxy::confirmComposition): Deleted.
743         (WebKit::WebPageProxy::insertText): Deleted.
744         (WebKit::WebPageProxy::insertDictatedText): Deleted.
745         (WebKit::WebPageProxy::getMarkedRange): Deleted.
746         (WebKit::WebPageProxy::getSelectedRange): Deleted.
747         (WebKit::WebPageProxy::getAttributedSubstringFromRange): Deleted.
748         (WebKit::WebPageProxy::characterIndexForPoint): Deleted.
749         (WebKit::WebPageProxy::firstRectForCharacterRange): Deleted.
750         (WebKit::WebPageProxy::executeKeypressCommands): Deleted.
751         (WebKit::WebPageProxy::cancelComposition): Deleted.
752         (WebKit::WebPageProxy::editorStateChanged): Deleted.
753         * WebProcess/WebPage/WebPage.cpp:
754         (WebKit::WebPage::didChangeSelection):
755         * WebProcess/WebPage/WebPage.h:
756         * WebProcess/WebPage/WebPage.messages.in:
757         * WebProcess/WebPage/mac/WebPageMac.mm:
758         (WebKit::WebPage::setComposition): Deleted.
759         (WebKit::WebPage::confirmComposition): Deleted.
760         (WebKit::WebPage::insertText): Deleted.
761         (WebKit::WebPage::insertDictatedText): Deleted.
762         (WebKit::WebPage::getMarkedRange): Deleted.
763         (WebKit::WebPage::getSelectedRange): Deleted.
764         (WebKit::WebPage::getAttributedSubstringFromRange): Deleted.
765         (WebKit::WebPage::characterIndexForPoint): Deleted.
766         (WebKit::WebPage::firstRectForCharacterRange): Deleted.
767         (WebKit::WebPage::executeKeypressCommands): Deleted.
768         (WebKit::WebPage::cancelComposition): Deleted.
769
770 2015-11-30  Tim Horton  <timothy_horton@apple.com>
771
772         Remove some unused synchronous drawing SPI
773         https://bugs.webkit.org/show_bug.cgi?id=151672
774
775         Reviewed by Anders Carlsson.
776
777         * UIProcess/API/Cocoa/WKViewPrivate.h:
778         * UIProcess/API/mac/WKView.mm:
779         (-[WKView forceAsyncDrawingAreaSizeUpdate:]): Deleted.
780         (-[WKView waitForAsyncDrawingAreaSizeUpdate]): Deleted.
781         * UIProcess/Cocoa/WebViewImpl.h:
782         * UIProcess/Cocoa/WebViewImpl.mm:
783         (WebKit::WebViewImpl::forceAsyncDrawingAreaSizeUpdate): Deleted.
784         (WebKit::WebViewImpl::waitForAsyncDrawingAreaSizeUpdate): Deleted.
785
786 2015-11-30  Tim Horton  <timothy_horton@apple.com>
787
788         Get rid of the legacy swipe shadow style
789         https://bugs.webkit.org/show_bug.cgi?id=151671
790
791         Reviewed by Anders Carlsson.
792
793         * UIProcess/mac/ViewGestureControllerMac.mm:
794         (WebKit::ViewGestureController::beginSwipeGesture): Deleted.
795         (WebKit::ViewGestureController::handleSwipeGesture): Deleted.
796         (WebKit::ViewGestureController::removeSwipeSnapshot): Deleted.
797         It is no longer needed.
798
799 2015-11-30  Tim Horton  <timothy_horton@apple.com>
800
801         [iOS] Option-up and Option-down should scroll a little less than a full page
802         https://bugs.webkit.org/show_bug.cgi?id=151538
803         <rdar://problem/23642675>
804
805         Reviewed by Simon Fraser.
806
807         * UIProcess/ios/WKContentViewInteraction.mm:
808         (-[WKContentView _scrollOffsetForEvent:]):
809         (-[WKContentView _interpretKeyEvent:isCharEvent:]):
810         Clean up the code a little, and adjust so that we *always* use pageStep
811         instead of just scrolling by the unobscured rect when scrolling by a page.
812         Previously, we did for the spacebar, but not for option-up and option-down.
813
814 2015-11-30  Brian Burg  <bburg@apple.com>
815
816         Web Inspector: using "Reload Web Inspector" when docked breaks dock-specific styles
817         https://bugs.webkit.org/show_bug.cgi?id=151642
818
819         Reviewed by Timothy Hatcher.
820
821         After a frontend loads, explicitly tell it about the current dock
822         state. This is necessary for force-reloading the inspector, since
823         the dock state isn't sent from UIProcess in this case.
824
825         * WebProcess/WebPage/WebInspectorUI.cpp:
826         (WebKit::WebInspectorUI::frontendLoaded):
827         (WebKit::WebInspectorUI::setDockingUnavailable):
828         * WebProcess/WebPage/WebInspectorUI.h:
829
830 2015-11-30  Alex Christensen  <achristensen@webkit.org>
831
832         Make ProcessModel always MultipleSecondaryProcesses
833         https://bugs.webkit.org/show_bug.cgi?id=151662
834
835         Reviewed by Antti Koivisto.
836
837         Single WebProcess behavior can still be achieved by setting the maximum number of WebProcesses to 1.
838
839         * Shared/API/c/WKDeprecatedFunctions.cpp:
840         (WKContextSetUsesNetworkProcess):
841         (WKContextSetProcessModel):
842         (WKContextGetProcessModel):
843         (WKGraphicsContextGetCGContext):
844         * UIProcess/API/APIProcessPoolConfiguration.cpp:
845         (API::ProcessPoolConfiguration::createWithLegacyOptions):
846         (API::ProcessPoolConfiguration::copy):
847         * UIProcess/API/APIProcessPoolConfiguration.h:
848         * UIProcess/API/C/WKAPICast.h:
849         (WebKit::toAPI):
850         (WebKit::toFontSmoothingLevel):
851         (WebKit::toProcessModel): Deleted.
852         * UIProcess/API/C/WKContext.cpp:
853         (WKContextGetCacheModel):
854         (WKContextSetMaximumNumberOfProcesses):
855         (WKContextSetProcessModel): Deleted.
856         (WKContextGetProcessModel): Deleted.
857         * UIProcess/API/C/WKContext.h:
858         * UIProcess/API/Cocoa/WKProcessGroup.mm:
859         (-[WKProcessGroup initWithInjectedBundleURL:]):
860         * UIProcess/API/Cocoa/WKProcessPool.mm:
861         * UIProcess/API/efl/ewk_context.cpp:
862         (EwkContext::cacheModel):
863         (EwkContext::setProcessModel):
864         (EwkContext::processModel):
865         (EwkContext::clearResourceCache):
866         (EwkContext::jsGlobalContext):
867         (ewk_context_message_from_extensions_callback_set):
868         (ewk_context_process_model_set):
869         (ewk_context_process_model_get):
870         (ewk_context_tls_error_policy_get):
871         (toWKProcessModel): Deleted.
872         (toEwkProcessModel): Deleted.
873         * UIProcess/API/gtk/WebKitWebContext.cpp:
874         * UIProcess/ProcessModel.h: Removed.
875         * UIProcess/WebCookieManagerProxy.cpp:
876         (WebKit::WebCookieManagerProxy::shouldTerminate):
877         (WebKit::WebCookieManagerProxy::refWebContextSupplement):
878         * UIProcess/WebInspectorProxy.cpp:
879         (WebKit::WebInspectorProxy::inspectorProcessPool):
880         * UIProcess/WebPageProxy.cpp:
881         (WebKit::WebPageProxy::reattachToWebProcess):
882         * UIProcess/WebProcessPool.cpp:
883         (WebKit::WebProcessPool::create):
884         (WebKit::WebProcessPool::setDownloadClient):
885         (WebKit::WebProcessPool::setMaximumNumberOfProcesses):
886         (WebKit::WebProcessPool::processDidCachePage):
887         (WebKit::WebProcessPool::createNewWebProcess):
888         (WebKit::WebProcessPool::disconnectProcess):
889         (WebKit::WebProcessPool::createWebPage):
890         (WebKit::WebProcessPool::postMessageToInjectedBundle):
891         (WebKit::WebProcessPool::requestWebContentStatistics):
892         (WebKit::WebProcessPool::requestNetworkingStatistics):
893         (WebKit::WebProcessPool::setProcessModel): Deleted.
894         (WebKit::WebProcessPool::ensureSharedWebProcess): Deleted.
895         * UIProcess/WebProcessPool.h:
896         (WebKit::WebProcessPool::sendToAllProcessesRelaunchingThemIfNecessary):
897         (WebKit::WebProcessPool::sendToOneProcess):
898         * WebKit2.xcodeproj/project.pbxproj:
899
900 2015-11-30  Chris Dumez  <cdumez@apple.com>
901
902         [WK2][Cache] We should not speculatively revalidate transient resources
903         https://bugs.webkit.org/show_bug.cgi?id=151402
904         <rdar://problem/23092196>
905
906         Reviewed by Antti Koivisto.
907
908         We should not speculatively revalidate transient resources. This patch
909         adds a simple and conservative algorithm to detect that a subresource is
910         transient and then ignores those when doing the speculative revalidation.
911
912         The algorithm is question marks as transient all subresources that are
913         not common to the 2 last loads of a main resource.
914
915         This is not perfect as I see the number of non-speculative revalidations
916         going up to 11-12 from 9 in the context of the warm PLT. However, it is
917         best to be conservative at first and we can improve this later.
918
919         * NetworkProcess/cache/NetworkCache.cpp:
920         (WebKit::NetworkCache::Cache::retrieve):
921         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
922         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::create):
923         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::~PendingFrameLoad):
924         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::registerSubresource):
925         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::markLoadAsCompleted):
926         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::setExistingSubresourcesEntry):
927         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::PendingFrameLoad):
928         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::saveToDiskIfReady):
929         (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
930         (WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
931         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
932         (WebKit::NetworkCache::SpeculativeLoadManager::retrieve): Deleted.
933         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry): Deleted.
934         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.h:
935         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
936         (WebKit::NetworkCache::SubresourcesEntry::encodeAsStorageRecord):
937         (WebKit::NetworkCache::SubresourcesEntry::decodeStorageRecord):
938         (WebKit::NetworkCache::SubresourcesEntry::SubresourcesEntry):
939         (WebKit::NetworkCache::SubresourcesEntry::updateSubresourceKeys):
940         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h:
941         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::encode):
942         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::decode):
943         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::SubresourceInfo):
944         (WebKit::NetworkCache::SubresourcesEntry::subresources):
945
946 2015-11-30  Brent Fulgham  <bfulgham@apple.com>
947
948         [Mac] Add font service permission to the sandbox profile
949         https://bugs.webkit.org/show_bug.cgi?id=151509
950         <rdar://problem/23508753>
951
952         Reviewed by Anders Carlsson.
953
954         Update the sandbox profile for Mac WebKit to allow access to the
955         "com.apple.fonts" service.
956
957         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
958         * WebProcess/com.apple.WebProcess.sb.in:
959
960 2015-11-30  Alex Christensen  <achristensen@webkit.org>
961
962         Make usesNetworkProcess always true
963         https://bugs.webkit.org/show_bug.cgi?id=151580
964
965         Reviewed by Darin Adler.
966
967         * NetworkProcess/mac/RemoteNetworkingContext.mm:
968         (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
969         * Shared/API/c/WKDeprecatedFunctions.cpp:
970         (WKInspectorToggleJavaScriptProfiling):
971         (WKContextSetUsesNetworkProcess):
972         (WKGraphicsContextGetCGContext):
973         * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm:
974         (WebKit::CustomProtocolManager::initializeConnection):
975         (WebKit::CustomProtocolManager::initialize):
976         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
977         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
978         (WebKit::CustomProtocolManager::initialize):
979         * Shared/WebProcessCreationParameters.cpp:
980         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
981         (WebKit::WebProcessCreationParameters::encode):
982         (WebKit::WebProcessCreationParameters::decode):
983         * Shared/WebProcessCreationParameters.h:
984         * UIProcess/API/APIProcessPoolConfiguration.cpp:
985         (API::ProcessPoolConfiguration::createWithLegacyOptions):
986         (API::ProcessPoolConfiguration::copy):
987         * UIProcess/API/APIProcessPoolConfiguration.h:
988         * UIProcess/API/C/WKContext.cpp:
989         (WKContextSetJavaScriptGarbageCollectorTimerEnabled):
990         (WKContextUseTestingNetworkSession):
991         (WKContextSetUsesNetworkProcess): Deleted.
992         * UIProcess/API/C/WKContextPrivate.h:
993         * UIProcess/API/Cocoa/WKProcessGroup.mm:
994         (-[WKProcessGroup initWithInjectedBundleURL:]):
995         * UIProcess/API/efl/ewk_context.cpp:
996         (EwkContext::setProcessModel):
997         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
998         (WebKit::WebProcessPool::updateProcessSuppressionState):
999         (WebKit::WebProcessPool::platformInitializeWebProcess):
1000         * UIProcess/Downloads/DownloadProxy.cpp:
1001         (WebKit::DownloadProxy::cancel):
1002         (WebKit::DownloadProxy::invalidate):
1003         * UIProcess/WebCookieManagerProxy.cpp:
1004         (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
1005         (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
1006         * UIProcess/WebProcessPool.cpp:
1007         (WebKit::WebProcessPool::WebProcessPool):
1008         (WebKit::m_processSuppressionDisabledForPageCounter):
1009         (WebKit::WebProcessPool::networkingProcessConnection):
1010         (WebKit::WebProcessPool::languageChanged):
1011         (WebKit::WebProcessPool::textCheckerStateChanged):
1012         (WebKit::WebProcessPool::ensureNetworkProcess):
1013         (WebKit::WebProcessPool::setAnyPageGroupMightHavePrivateBrowsingEnabled):
1014         (WebKit::WebProcessPool::createNewWebProcess):
1015         (WebKit::WebProcessPool::download):
1016         (WebKit::WebProcessPool::resumeDownload):
1017         (WebKit::WebProcessPool::setCanHandleHTTPSServerTrustEvaluation):
1018         (WebKit::WebProcessPool::setCacheModel):
1019         (WebKit::WebProcessPool::createDownloadProxy):
1020         (WebKit::WebProcessPool::addMessageReceiver):
1021         (WebKit::WebProcessPool::allowSpecificHTTPSCertificateForHost):
1022         (WebKit::WebProcessPool::setHTTPPipeliningEnabled):
1023         (WebKit::WebProcessPool::requestNetworkingStatistics):
1024         (WebKit::WebProcessPool::setUsesNetworkProcess): Deleted.
1025         (WebKit::WebProcessPool::usesNetworkProcess): Deleted.
1026         * UIProcess/WebProcessPool.h:
1027         (WebKit::WebProcessPool::sendToNetworkingProcess):
1028         (WebKit::WebProcessPool::sendToNetworkingProcessRelaunchingIfNecessary):
1029         * UIProcess/WebProcessProxy.cpp:
1030         (WebKit::WebProcessProxy::shutDown):
1031         (WebKit::WebProcessProxy::removeWebPage):
1032         (WebKit::WebProcessProxy::canTerminateChildProcess):
1033         (WebKit::WebProcessProxy::updateTextCheckerState):
1034         (WebKit::WebProcessProxy::didSaveToPageCache):
1035         (WebKit::WebProcessProxy::didSetAssertionState):
1036         (WebKit::WebProcessProxy::createDownloadProxy): Deleted.
1037         * UIProcess/WebProcessProxy.h:
1038         * UIProcess/efl/WebProcessPoolEfl.cpp:
1039         (WebKit::WebProcessPool::platformInitializeWebProcess):
1040         (WebKit::WebProcessPool::setIgnoreTLSErrors):
1041         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
1042         (WebKit::BlobRegistryProxy::registerFileBlobURL):
1043         (WebKit::BlobRegistryProxy::registerBlobURL):
1044         (WebKit::BlobRegistryProxy::unregisterBlobURL):
1045         (WebKit::BlobRegistryProxy::registerBlobURLForSlice):
1046         (WebKit::BlobRegistryProxy::blobSize):
1047         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1048         (WebKit::WebPlatformStrategies::cookiesForDOM):
1049         (WebKit::WebPlatformStrategies::setCookiesFromDOM):
1050         (WebKit::WebPlatformStrategies::cookiesEnabled):
1051         (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
1052         (WebKit::WebPlatformStrategies::getRawCookies):
1053         (WebKit::WebPlatformStrategies::deleteCookie):
1054         (WebKit::WebPlatformStrategies::resourceLoadScheduler):
1055         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
1056         (WebKit::WebPlatformStrategies::createPingHandle):
1057         (WebKit::WebPlatformStrategies::createBlobRegistry):
1058         * WebProcess/WebPage/WebFrame.cpp:
1059         (WebKit::WebFrame::startDownload):
1060         (WebKit::WebFrame::convertMainResourceLoadToDownload):
1061         (WebKit::WebFrame::source):
1062         * WebProcess/WebProcess.cpp:
1063         (WebKit::WebProcess::WebProcess):
1064         (WebKit::m_webSQLiteDatabaseTracker):
1065         (WebKit::WebProcess::initializeConnection):
1066         (WebKit::WebProcess::initializeWebProcess):
1067         (WebKit::WebProcess::ensureNetworkProcessConnection):
1068         (WebKit::WebProcess::destroyPrivateBrowsingSession):
1069         (WebKit::WebProcess::pluginProcessConnectionManager):
1070         (WebKit::WebProcess::shouldTerminate):
1071         (WebKit::WebProcess::setInjectedBundleParameters):
1072         (WebKit::WebProcess::networkConnection):
1073         (WebKit::WebProcess::setEnhancedAccessibility):
1074         (WebKit::WebProcess::prefetchDNS):
1075         (WebKit::WebProcess::didCreateDownload): Deleted.
1076         (WebKit::WebProcess::didDestroyDownload): Deleted.
1077         (WebKit::WebProcess::downloadProxyConnection): Deleted.
1078         (WebKit::WebProcess::downloadsAuthenticationManager): Deleted.
1079         (WebKit::WebProcess::downloadManager): Deleted.
1080         (WebKit::WebProcess::usesNetworkProcess): Deleted.
1081         (WebKit::WebProcess::downloadRequest): Deleted.
1082         (WebKit::WebProcess::resumeDownload): Deleted.
1083         (WebKit::WebProcess::cancelDownload): Deleted.
1084         * WebProcess/WebProcess.h:
1085         (WebKit::WebProcess::textCheckerState):
1086         (WebKit::WebProcess::eventDispatcher):
1087         * WebProcess/WebProcess.messages.in:
1088         * WebProcess/soup/WebProcessSoup.cpp:
1089         (WebKit::WebProcess::platformSetCacheModel):
1090         (WebKit::WebProcess::platformClearResourceCaches):
1091         (WebKit::WebProcess::platformInitializeWebProcess):
1092         (WebKit::WebProcess::platformTerminate):
1093         (WebKit::getCacheDiskFreeSize): Deleted.
1094         (WebKit::setSoupSessionAcceptLanguage): Deleted.
1095         (WebKit::languageChanged): Deleted.
1096         (WebKit::WebProcess::setIgnoreTLSErrors): Deleted.
1097         (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost): Deleted.
1098
1099 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1100
1101         [GTK] UI process crash when the screensaver DBus proxy is being created while the web view is destroyed
1102         https://bugs.webkit.org/show_bug.cgi?id=151653
1103
1104         Reviewed by Martin Robinson.
1105
1106         We correctly cancel the proxy creation, but when the async ready
1107         callback is called, the view could be destroyed already. In that
1108         case g_dbus_proxy_new_for_bus_finish() will return nullptr and
1109         fail with cancelled error, but we are using the passed web view
1110         without checking first if the creation failed or not.
1111
1112         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1113         (screenSaverProxyCreatedCallback):
1114
1115 2015-11-28  Tim Horton  <timothy_horton@apple.com>
1116
1117         Stop unnecessarily copying WKWebViewConfiguration in a few places
1118         https://bugs.webkit.org/show_bug.cgi?id=151639
1119
1120         Reviewed by Dan Bernstein.
1121
1122         * UIProcess/API/Cocoa/WKWebView.mm:
1123         (-[WKWebView initWithFrame:configuration:]):
1124         (-[WKWebView dealloc]):
1125         (-[WKWebView _contentProviderRegistry]):
1126         (-[WKWebView _selectionGranularity]):
1127         (-[WKWebView _setHasCustomContentView:loadedMIMEType:]):
1128         * UIProcess/API/Cocoa/WKWebViewInternal.h:
1129         * UIProcess/ios/PageClientImplIOS.mm:
1130         (WebKit::PageClientImpl::mimeTypesWithCustomContentProviders):
1131         * UIProcess/ios/WKContentViewInteraction.mm:
1132         (-[WKContentView setupInteraction]):
1133         (-[WKContentView _stopAssistingKeyboard]):
1134         Looking at allocation traces I noticed that we were making way more
1135         WKWebViewConfigurations than made sense; looking at backtraces I found
1136         a few internal callers of -[WKWebView configuration], which copies the
1137         configuration. There's no reason for these internal callers to make 
1138         such a copy, though.
1139
1140         I'm not exactly sure what the usual approach is here, but I added
1141         getters so WKContentViewInteraction and PageClientImplIOS can get to
1142         the values they're looking for without using the configuration property.
1143
1144 2015-11-27  Brady Eidson  <beidson@apple.com>
1145
1146         Modern IDB: Class-ify IDBGetResult making it impossible to get the data members wrong.
1147         https://bugs.webkit.org/show_bug.cgi?id=151627
1148
1149         Reviewed by Alexey Proskuryakov.
1150
1151         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
1152         (WebKit::UniqueIDBDatabase::getRecordFromBackingStore):
1153         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
1154         
1155         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
1156         
1157         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
1158         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::getIndexRecord):
1159         
1160         * Shared/WebCoreArgumentCoders.cpp:
1161         (IPC::ArgumentCoder<IDBGetResult>::encode):
1162         (IPC::ArgumentCoder<IDBGetResult>::decode):
1163         * Shared/WebCoreArgumentCoders.h:
1164         
1165         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
1166
1167 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
1168
1169         [GTK] Remove the remaining uses of GMainLoopSource
1170         https://bugs.webkit.org/show_bug.cgi?id=151632
1171
1172         Reviewed by Žan Doberšek.
1173
1174         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1175         (_WebKitWebViewBasePrivate::_WebKitWebViewBasePrivate):
1176         (_WebKitWebViewBasePrivate::clearRedirectedWindowSoonTimerFired):
1177         (webkitWebViewBaseClearRedirectedWindowSoon):
1178         (webkitWebViewBaseEnterAcceleratedCompositingMode):
1179
1180 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
1181
1182         [GTK] Use the network process unconditionally
1183         https://bugs.webkit.org/show_bug.cgi?id=151541
1184
1185         Reviewed by Alex Christensen.
1186
1187         Make the shared secondary process model become multiple secondary
1188         process model with a limit of 1 web process. Use the same options
1189         when creating a context with legacy configuration (unit tests and
1190         inspector proxy).
1191
1192         * NetworkProcess/gtk/NetworkProcessMainGtk.cpp:
1193         * UIProcess/API/APIProcessPoolConfiguration.cpp:
1194         (API::ProcessPoolConfiguration::createWithLegacyOptions):
1195         * UIProcess/API/gtk/WebKitWebContext.cpp:
1196         (webkitWebContextConstructed):
1197         (webkit_web_context_set_process_model):
1198         (webkit_web_context_get_process_model):
1199         (webkit_web_context_set_web_process_count_limit):
1200         (webkit_web_context_get_web_process_count_limit):
1201         (toWebKitProcessModel): Deleted.
1202         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1203         * UIProcess/gtk/WebProcessPoolGtk.cpp:
1204         (WebKit::WebProcessPool::setIgnoreTLSErrors):
1205         (WebKit::WebProcessPool::platformInitializeWebProcess):
1206
1207 2015-11-23  Brian Burg  <bburg@apple.com>
1208
1209         Web Inspector: inspector settings should not be shared between different inspection levels
1210         https://bugs.webkit.org/show_bug.cgi?id=151151
1211
1212         Reviewed by Timothy Hatcher.
1213
1214         In WebKit2, we already track the inspection level of WebPages in order to give inspectors
1215         different page groups. Send the inspection level to WebInspectorUI WebProcess when
1216         establishing a connection from the UIProcess. Use this number in the FrontendClient.
1217
1218         * UIProcess/WebInspectorProxy.cpp:
1219         (WebKit::WebInspectorProxy::inspectionLevel): Renamed from inspectorLevel to be consistent.
1220         (WebKit::WebInspectorProxy::inspectorPageGroupIdentifier):
1221         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
1222         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
1223         (WebKit::WebInspectorProxy::createInspectorPage):
1224         (WebKit::WebInspectorProxy::inspectorLevel): Deleted.
1225         * UIProcess/WebInspectorProxy.h:
1226         * UIProcess/mac/WebInspectorProxyMac.mm:
1227         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
1228         * WebProcess/WebPage/WebInspectorUI.cpp:
1229         (WebKit::WebInspectorUI::establishConnection):
1230         * WebProcess/WebPage/WebInspectorUI.h:
1231         * WebProcess/WebPage/WebInspectorUI.messages.in:
1232
1233 2015-11-23  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1234
1235         REGRESSION(r188206): [EFL] Missing to adjust scrollbar size to ewk_view_contents_size_get API test
1236         https://bugs.webkit.org/show_bug.cgi?id=148735
1237
1238         Reviewed by Csaba Osztrogonác.
1239
1240         r189256 missed to adjust scrollbar size to other tests in ewk_view_contents_size_get() API test.
1241         In this case we need to apply scrollbar size to both width and height unlike previous fix. Because
1242         horizontal scrollbar is also shown since device pixel ratio(= 2.0) is adjusted.
1243
1244         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1245         (TEST_F):
1246
1247 2015-11-23  Alex Christensen  <achristensen@webkit.org>
1248
1249         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
1250         https://bugs.webkit.org/show_bug.cgi?id=151532
1251
1252         Reviewed by Benjamin Poulain.
1253
1254         * UIProcess/WebGeolocationManagerProxy.cpp:
1255         (WebKit::WebGeolocationManagerProxy::processPoolDestroyed):
1256         (WebKit::WebGeolocationManagerProxy::processDidClose):
1257         When a WebProcessPool is destroyed, only call stopUpdating if m_updateRequesters.clear()
1258         stopped the updating, like we do in WebGeolocationManagerProxy::removeRequester.
1259         Otherwise, call setEnableHighAccuracy if needed, also like we do in WebGeolocationManagerProxy::removeRequester.
1260
1261 2015-11-23  Brian Burg  <bburg@apple.com>
1262
1263         Web Inspector: when inspecting the inspector, add the inspection level to the title bar
1264         https://bugs.webkit.org/show_bug.cgi?id=151555
1265
1266         Reviewed by Timothy Hatcher.
1267
1268         If the inspection level says we are inspecting an inspector, include the level
1269         in the title bar to easily disambiguate it from the base level inspector.
1270
1271         * UIProcess/mac/WebInspectorProxyMac.mm:
1272         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
1273
1274 2015-11-23  Csaba Osztrogonác  <ossy@webkit.org>
1275
1276         Unreviewed speculative buildfix after r192701.
1277
1278         * PlatformMac.cmake:
1279
1280 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
1281
1282         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.11.2 release.
1283
1284         * gtk/NEWS: Add release notes for 2.11.2.
1285
1286 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
1287
1288         Unreviewed. Add missing inspector file to GTK+ compilation.
1289
1290         * PlatformGTK.cmake:
1291
1292 == Rolled over to ChangeLog-2015-11-21 ==