Build fix when using NETWORK_SESSION after r193972.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2015-12-16  Alex Christensen  <achristensen@webkit.org>
2
3         Build fix when using NETWORK_SESSION after r193972.
4
5         Rubber-stamped by Joseph Pecoraro.
6
7         Renamed NetworkSessionDelegate to WKNetworkSessionDelegate to conform to the 
8         newly-enforced style rule in check-for-inappropriate-objc-class-names.
9
10         * NetworkProcess/NetworkSession.h:
11         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
12         (toNSURLSessionAuthChallengeDisposition):
13         (-[WKNetworkSessionDelegate initWithNetworkSession:]):
14         (WebKit::NetworkSession::NetworkSession):
15         (-[NetworkSessionDelegate initWithNetworkSession:]): Deleted.
16
17 2015-12-16  Alex Christensen  <achristensen@webkit.org>
18
19         Implement Web Timing when using NETWORK_SESSION
20         https://bugs.webkit.org/show_bug.cgi?id=152285
21
22         Reviewed by Darin Adler.
23
24         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
25         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
26         (WebKit::NetworkSession::NetworkSession):
27         Use functions moved to ResourceLoadTiming.h.  setCollectsTimingData is for Mavericks, _timingDataOptions is post-Mavericks.
28
29 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
30
31         [Fetch API] Add fetch API compile time flag
32         https://bugs.webkit.org/show_bug.cgi?id=152254
33
34         Reviewed by Darin Adler.
35
36         * Configurations/FeatureDefines.xcconfig:
37
38 2015-12-15  Tim Horton  <timothy_horton@apple.com>
39
40         [Mac] Gesture Events should not have negative scale
41         https://bugs.webkit.org/show_bug.cgi?id=151065
42         <rdar://problem/23474123>
43
44         Reviewed by Anders Carlsson.
45
46         * Shared/NativeWebGestureEvent.h:
47         * Shared/mac/NativeWebGestureEventMac.mm:
48         (WebKit::distanceForTouches):
49         (WebKit::NativeWebGestureEvent::NativeWebGestureEvent):
50         Compute the distance between the two oldest touches, and use that as
51         the scale (really the gesture diameter) on the event, instead of
52         passing through AppKit's magnification (which is computed differently).
53         This matches the documented behavior of the existing gesture events on iOS.
54
55         * UIProcess/API/Cocoa/WKWebView.mm:
56         (-[WKWebView touchesBeganWithEvent:]):
57         (-[WKWebView touchesMovedWithEvent:]):
58         (-[WKWebView touchesEndedWithEvent:]):
59         (-[WKWebView touchesCancelledWithEvent:]):
60         * UIProcess/API/mac/WKView.mm:
61         (-[WKView touchesBeganWithEvent:]):
62         (-[WKView touchesMovedWithEvent:]):
63         (-[WKView touchesEndedWithEvent:]):
64         (-[WKView touchesCancelledWithEvent:]):
65         Plumb touch events through to WebViewImpl.
66
67         * UIProcess/Cocoa/WebViewImpl.h:
68         * UIProcess/Cocoa/WebViewImpl.mm:
69         (WebKit::WebViewImpl::WebViewImpl):
70         (WebKit::WebViewImpl::magnifyWithEvent):
71         (WebKit::WebViewImpl::touchesOrderedByAge):
72         (WebKit::WebViewImpl::touchesBeganWithEvent):
73         (WebKit::WebViewImpl::touchesMovedWithEvent):
74         (WebKit::WebViewImpl::touchesEndedWithEvent):
75         (WebKit::WebViewImpl::touchesCancelledWithEvent):
76         (WebKit::WebViewImpl::rotateWithEvent):
77         Keep track of the most recent incoming touches, by identifier, in age order.
78         Pass them through to NativeWebGestureEvent so it can determine the gesture diameter.
79
80 2015-12-15  Anders Carlsson  <andersca@apple.com>
81
82         Call DatabaseManager directly from WKBundle.cpp
83         https://bugs.webkit.org/show_bug.cgi?id=152317
84
85         Reviewed by Tim Horton.
86
87         This is in preparation for getting rid of some old database manager code.
88
89         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
90         (WKBundleClearAllDatabases):
91         (WKBundleSetDatabaseQuota):
92         * WebProcess/InjectedBundle/InjectedBundle.cpp:
93         (WebKit::InjectedBundle::clearAllDatabases): Deleted.
94         (WebKit::InjectedBundle::setDatabaseQuota): Deleted.
95         * WebProcess/InjectedBundle/InjectedBundle.h:
96
97 2015-12-15  Daniel Bates  <dabates@apple.com>
98
99         Guard code that uses class LayerTreeHost with USE(COORDINATED_GRAPHICS) or USE(TEXTURE_MAPPER)
100         https://bugs.webkit.org/show_bug.cgi?id=152265
101
102         Reviewed by Tim Horton.
103
104         We neither make use of LayerTreeHost on Mac nor on iOS. We should guard code that makes
105         use of this class as applicable. This also fixes the iOS Simulator build when using
106         Apple Internal software.
107
108         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Guard code that used LayerTreeHost.
109         * WebProcess/WebPage/LayerTreeHost.cpp: Guard contents of file with USE(COORDINATED_GRAPHICS) || USE(TEXTURE_MAPPER).
110         * WebProcess/WebPage/LayerTreeHost.h: Ditto.
111         * WebProcess/WebPage/WebPage.cpp:
112         (WebKit::WebPage::scalePage): Ditto.
113         (WebKit::WebPage::setDeviceScaleFactor): Ditto.
114         * WebProcess/WebPage/WebPage.h: Substitute header LayerTreeContext.h for LayerTreeHost.h since we make use
115         of the enum class LayerHostingMode.
116         * WebProcess/WebPage/ios/WebPageIOS.mm:
117         (WebKit::WebPage::updateVisibleContentRects): Remove unnecessary code; DrawingArea::layerTreeHost() always
118         returns nullptr on iOS.
119
120 2015-12-15  Zan Dobersek  <zdobersek@igalia.com>
121
122         [TexMap] Operate with a reference to the TextureMapper wherever possible
123         https://bugs.webkit.org/show_bug.cgi?id=152118
124
125         Reviewed by Martin Robinson.
126
127         Replace pointers to the TextureMapper object with references.
128
129         * Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp:
130         (WebKit::CoordinatedBackingStoreTile::swapBuffers):
131         (WebKit::CoordinatedBackingStore::paintTilesToTextureMapper):
132         (WebKit::CoordinatedBackingStore::paintToTextureMapper):
133         (WebKit::CoordinatedBackingStore::drawBorder):
134         (WebKit::CoordinatedBackingStore::drawRepaintCounter):
135         (WebKit::CoordinatedBackingStore::commitTileOperations):
136         * Shared/CoordinatedGraphics/CoordinatedBackingStore.h:
137         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
138         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
139         (WebKit::CoordinatedGraphicsScene::paintToGraphicsContext):
140         (WebKit::CoordinatedGraphicsScene::commitPendingBackingStoreOperations):
141
142 2015-12-14  YongGeol Jung  <yg48.jung@samsung.com>
143
144         [Coordinated Graphics] CSS transition effect is not shown when transformed with "%" unit.
145         https://bugs.webkit.org/show_bug.cgi?id=152278
146
147         Reviewed by Darin Adler.
148
149         boxSize is encoded as FloatSize type but decoded as IntSize type.
150         So boxSize gets invalid value after decoding.
151         Due to this layer goes to out of screen during animation.
152
153         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
154         (IPC::ArgumentCoder<TextureMapperAnimation>::decode):
155
156 2015-12-14  Dan Bernstein  <mitz@apple.com>
157
158         <rdar://problem/23886216> REGRESSION (r194022): Production builds of PluginProcess crash on launch when not installed in /System
159         https://bugs.webkit.org/show_bug.cgi?id=152291
160
161         Reviewed by Darin Adler.
162
163         * Configurations/PluginProcess.xcconfig: Added a FIXME.
164         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
165         (WebKit::addDYLDEnvironmentAdditions): Set DYLD_LIBRARY_PATH to point to where the shims
166         are. This is needed because starting in El Capitan, the processes’ main executables link
167         directly against the shims, so the dynamic linker needs to be able to find them in the
168         non-/System location. Also added a FIXME about not having to set DYLD_INSERT_LIBRARIES when
169         the main executables link the them directly.
170
171 2015-12-14  Simon Fraser  <simon.fraser@apple.com>
172
173         Dump some more data in the RemoteLayerTreeTransaction
174         https://bugs.webkit.org/show_bug.cgi?id=152283
175
176         Reviewed by Dean Jackson.
177         
178         Dump some scale factors, viewport meta tag width and render tree size.
179
180         * Shared/mac/RemoteLayerTreeTransaction.mm:
181         (WebKit::RemoteLayerTreeTransaction::description):
182
183 2015-12-14  Tim Horton  <timothy_horton@apple.com>
184
185         Frequent crash under -[WKPDFView web_setMinimumSize:]_block_invoke
186         https://bugs.webkit.org/show_bug.cgi?id=152266
187         <rdar://problem/22092676>
188
189         Reviewed by Simon Fraser.
190
191         * UIProcess/ios/WKPDFView.mm:
192         (-[WKPDFView web_setMinimumSize:]):
193         We weren't retaining the UIScrollView, but depending on it surviving
194         into this block's invocation.
195
196         We don't need to do this asynchronously anymore because the referenced
197         bug is fixed, so make it happen synchronously. This also fixes the crash
198         because there's no opportunity for the scroll view to be released.
199
200 2015-12-14  Tim Horton  <timothy_horton@apple.com>
201
202         TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate() sets fence port on context twice
203         https://bugs.webkit.org/show_bug.cgi?id=152239
204         <rdar://problem/22893289>
205
206         Reviewed by Darin Adler.
207
208         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
209         (WebKit::TiledCoreAnimationDrawingAreaProxy::createFenceForGeometryUpdate):
210         No need to setFencePort; createFencePort also installs it on the creating context.
211
212 2015-12-12  Alex Christensen  <achristensen@webkit.org>
213
214         Use existing code for redirects when using NETWORK_SESSION
215         https://bugs.webkit.org/show_bug.cgi?id=152207
216         rdar://problem/23860624
217
218         Reviewed by Darin Adler.
219         
220         This fixes http/tests/cookies/set-cookie-on-redirect.html when using NETWORK_SESSION.
221
222         * NetworkProcess/NetworkLoad.cpp:
223         (WebKit::NetworkLoad::continueWillSendRequest):
224         (WebKit::NetworkLoad::convertTaskToDownload):
225         (WebKit::NetworkLoad::willPerformHTTPRedirection):
226         (WebKit::NetworkLoad::didReceiveChallenge):
227         * NetworkProcess/NetworkLoad.h:
228         * NetworkProcess/NetworkSession.h:
229
230 2015-12-13  Tim Horton  <timothy_horton@apple.com>
231
232         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
233         https://bugs.webkit.org/show_bug.cgi?id=150988
234         <rdar://problem/18993594>
235
236         Reviewed by Darin Adler.
237
238         * WebProcess/WebPage/WebFrame.cpp:
239         (WebKit::WebFrame::createSelectionSnapshot):
240         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
241
242 2015-12-13  Dan Bernstein  <mitz@apple.com>
243
244         Another fix after r194018.
245
246         * Configurations/BaseTarget.xcconfig:
247         * Configurations/BaseXPCService.xcconfig:
248
249 2015-12-13  Dan Bernstein  <mitz@apple.com>
250
251         [Mac] Shims used by XPC services are installed inside legacy process bundles
252         https://bugs.webkit.org/show_bug.cgi?id=152233
253
254         Reviewed by Sam Weinig.
255
256         Have the shim dylibs installed in the framework’s Frameworks directory instead.
257
258         * Configurations/BaseLegacyProcess.xcconfig: Simplified now that EXCLUDED_SHIM_FILE_NAME is
259           no longer defined, because shims aren’t copied into legacy processes.
260
261         * Configurations/NetworkProcess.xcconfig: Removed definition of EXCLUDED_SHIM_FILE_NAME.
262         * Configurations/PluginProcess.xcconfig: Ditto.
263         * Configurations/WebContentProcess.xcconfig: Ditto.
264
265         * Configurations/Shim.xcconfig: Install the shims when building for OS X. Added definitions
266           of INSTALL_PATH and DYLIB_INSTALL_NAME_BASE which are now common to all shims.
267
268         * Configurations/PluginProcessShim.xcconfig: Removed definitions of INSTALL_PATH and
269           DYLIB_INSTALL_NAME_BASE from here, now that they are defined for all shims in
270           Shim.xcconfig.
271         * Configurations/SecItemShim.xcconfig: Ditto.
272         * Configurations/WebProcessShim.xcconfig:
273
274         * Configurations/WebKit.xcconfig: Added the shims to EXCLUDED_SOURCE_FILE_NAMES for iOS.
275
276         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info-OSX-10.9-10.10.plist: Changed
277           the value of DYLD_INSERT_LIBRARIES to point to the shim’s new location.
278         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64-10.9-10.10.Info.plist: Ditto.
279         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info-OSX-10.9-10.10.plist: Ditto.
280
281         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
282         (WebKit::computeProcessShimPath): Changed to return the new paths, which are all inside the
283           framework’s Frameworks directory.
284
285         * WebKit2.xcodeproj/project.pbxproj:
286         - Removed references to WRAPPER_NAME from the “Copy XPC services for engineering builds”
287           build phase in the All target, becase WRAPPER_NAME is empty in an aggregate target.
288         - Removed the PlugInProcess target’s dependency on the PluginProcessShim target and its
289           Copy Plug-in Process Shim build phase.
290         - Removed the NetworkProcess target’s dependency on the SecItemShim target and its Copy
291           Sec Item Shim build phase.
292         - Removed the WebProcess target’s dependency on the WebProcessShim target and its Copy
293           WebProcessShim build phase.
294         - Made the WebKit target depend on the shim targets, and added to it a Copy Shims build
295           phase that copies the shims into the framework’s Frameworks directory.
296
297 2015-12-13  Dan Bernstein  <mitz@apple.com>
298
299         Build fix.
300
301         * Configurations/PluginProcess.xcconfig:
302
303 2015-12-13  Dan Bernstein  <mitz@apple.com>
304
305         [Mac] Shims aren’t inserted properly on Yosemite when building with the El Capitan SDK
306         https://bugs.webkit.org/show_bug.cgi?id=152229
307
308         Reviewed by Darin Adler.
309
310         * Configurations/BaseTarget.xcconfig: Defined WK_LINK_SHIM on OS X to YES or NO based on the
311           target version.
312         * Configurations/BaseXPCService.xcconfig: Define WK_XPC_SERVICE_INFOPLIST_SUFFIX to
313           "-10.9-10.10" when targeting those OS X versions.
314         * Configurations/NetworkService.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
315           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
316         * Configurations/PluginProcess.xcconfig: Use WK_LINK_SHIM in the definition of
317           LDFLAGS_SHIM_Production for OS X.
318         * Configurations/PluginService.32.xcconfig: Use WK_XPC_SERVICE_INFOPLIST_SUFFIX in the
319           definition of INFOPLIST_FILE. Use WK_LINK_SHIM in the definition of OTHER_LDFLAGS.
320         * Configurations/PluginService.64.xcconfig: Ditto.
321         * Configurations/WebContentService.xcconfig: Ditto.
322
323 2015-12-12  Katlyn Graff  <kgraff@apple.com>
324
325         Safari background tabs should be fully suspended where possible.
326         https://bugs.webkit.org/show_bug.cgi?id=150515
327
328         Reviewed by Ryosuke Niwa.
329
330         Added a runtime flag enabling tab suspension, default off.
331
332         * Shared/WebProcessCreationParameters.cpp:
333         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
334         (WebKit::WebProcessCreationParameters::encode):
335         (WebKit::WebProcessCreationParameters::decode):
336         * Shared/WebProcessCreationParameters.h:
337         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
338         (WebKit::registerUserDefaultsIfNeeded):
339         (WebKit::WebProcessPool::platformInitializeWebProcess):
340         * WebProcess/cocoa/WebProcessCocoa.mm:
341         (WebKit::WebProcess::platformInitializeWebProcess):
342
343 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
344
345         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
346         https://bugs.webkit.org/show_bug.cgi?id=152197
347
348         Reviewed by Dean Jackson.
349
350         * Shared/WebPreferencesDefinitions.h:
351         * UIProcess/API/C/WKPreferences.cpp:
352         (WKPreferencesSetMockCaptureDevicesEnabled):
353         (WKPreferencesGetMockCaptureDevicesEnabled):
354         * UIProcess/API/C/WKPreferencesRefPrivate.h:
355         * UIProcess/API/Cocoa/WKPreferences.mm:
356         (-[WKPreferences _mockCaptureDevicesEnabled]):
357         (-[WKPreferences _setMockCaptureDevicesEnabled:]):
358         * WebProcess/WebPage/WebPage.cpp:
359         (WebKit::WebPage::updatePreferences):
360
361 2015-12-11  Joseph Pecoraro  <pecoraro@apple.com>
362
363         check-for-inappropriate-objc-class-names should check all class names, not just externally visible ones
364         https://bugs.webkit.org/show_bug.cgi?id=152156
365
366         Reviewed by Dan Bernstein.
367
368         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
369         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID):
370         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
371         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
372         (WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy):
373         Rename internal classes with "_WK" prefix.
374
375 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
376
377         [MediaStream] Expose media capture devices persistent permissions to WebCore
378         https://bugs.webkit.org/show_bug.cgi?id=152087
379
380         Reviewed by Chris Dumez.
381
382         * CMakeLists.txt: Add UserMediaPermissionCheckProxy.cpp and WKUserMediaPermissionCheck.cpp.
383
384         * Shared/API/APIObject.h: Define UserMediaPermissionCheck.
385
386         * Shared/API/c/WKBase.h: Add WKUserMediaPermissionCheckRef typedef.
387
388         * UIProcess/API/APIUIClient.h:
389         (API::UIClient::checkUserMediaPermissionForOrigin): New.
390
391         * UIProcess/API/C/WKAPICast.h: Add WKUserMediaPermissionCheckRef/UserMediaPermissionCheckProxy mapping.
392
393         * UIProcess/API/C/WKPage.cpp:
394         (WKPageSetPageUIClient): Implement checkUserMediaPermissionForOrigin.
395
396         * UIProcess/API/C/WKPageUIClient.h: Add WKCheckUserMediaPermissionCallback typedef and add
397           checkUserMediaPermissionForOrigin to WKPageUIClientV6.
398
399         * UIProcess/API/C/WKUserMediaPermissionCheck.cpp: Added.
400         (WKUserMediaPermissionCheckGetTypeID):
401         (WKUserMediaPermissionCheckSetHasPermission):
402
403         * UIProcess/API/C/WKUserMediaPermissionCheck.h: Added.
404
405         * UIProcess/UserMediaPermissionCheckProxy.cpp: Added.
406         (WebKit::UserMediaPermissionCheckProxy::UserMediaPermissionCheckProxy):
407         (WebKit::UserMediaPermissionCheckProxy::setHasPermission):
408         (WebKit::UserMediaPermissionCheckProxy::invalidate):
409         * UIProcess/UserMediaPermissionCheckProxy.h: Added.
410         (WebKit::UserMediaPermissionCheckProxy::create):
411         * UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
412         (WebKit::UserMediaPermissionRequestManagerProxy::invalidateRequests):
413         (WebKit::UserMediaPermissionRequestManagerProxy::createRequest):
414         (WebKit::UserMediaPermissionRequestManagerProxy::didReceiveUserMediaPermissionDecision):
415         (WebKit::UserMediaPermissionRequestManagerProxy::createUserMediaPermissionCheck):
416         (WebKit::UserMediaPermissionRequestManagerProxy::didCompleteUserMediaPermissionCheck):
417         * UIProcess/UserMediaPermissionRequestManagerProxy.h:
418         * UIProcess/WebPageProxy.cpp:
419         (WebKit::WebPageProxy::requestUserMediaPermissionForFrame):
420         (WebKit::WebPageProxy::checkUserMediaPermissionForFrame):
421         (WebKit::WebPageProxy::requestNotificationPermission):
422         * UIProcess/WebPageProxy.h:
423         * UIProcess/WebPageProxy.messages.in:
424
425         * WebKit2.xcodeproj/project.pbxproj: Add UserMediaPermissionCheckProxy.*, and WKUserMediaPermissionCheck.*.
426
427         * WebProcess/MediaStream/UserMediaPermissionRequestManager.cpp:
428         (WebKit::UserMediaPermissionRequestManager::startUserMediaRequest): Renamed from startRequest.
429         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaRequest): Renamed from cancelRequest.
430         (WebKit::UserMediaPermissionRequestManager::didReceiveUserMediaPermissionDecision): m_requestToIDMap ->
431           m_userMediaRequestToIDMap.remove.
432         (WebKit::UserMediaPermissionRequestManager::startUserMediaPermissionCheck): New, start the request.
433         (WebKit::UserMediaPermissionRequestManager::cancelUserMediaPermissionCheck): New, cancel
434           the request.
435         (WebKit::UserMediaPermissionRequestManager::didCompleteUserMediaPermissionCheck): New, 
436           all the request completion method.
437         (WebKit::UserMediaPermissionRequestManager::startRequest): Deleted.
438         (WebKit::UserMediaPermissionRequestManager::cancelRequest): Deleted.
439         * WebProcess/MediaStream/UserMediaPermissionRequestManager.h:
440
441         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
442         (WebKit::WebUserMediaClient::requestUserMediaAccess): startRequest -> startUserMediaRequest.
443         (WebKit::WebUserMediaClient::cancelUserMediaAccessRequest): cancelRequest -> cancelUserMediaRequest.
444         (WebKit::WebUserMediaClient::checkUserMediaPermission): New.
445         (WebKit::WebUserMediaClient::cancelUserMediaPermissionCheck): New.
446         * WebProcess/WebCoreSupport/WebUserMediaClient.h:
447
448         * WebProcess/WebPage/WebPage.cpp:
449         (WebKit::WebPage::didCompleteUserMediaPermissionCheck): New.
450         * WebProcess/WebPage/WebPage.h:
451         * WebProcess/WebPage/WebPage.messages.in: Add DidCompleteUserMediaPermissionCheck.
452
453 2015-12-10  Joseph Pecoraro  <pecoraro@apple.com>
454
455         Remote Inspector: Verify the identity of the other side of XPC connections
456         https://bugs.webkit.org/show_bug.cgi?id=152153
457
458         Reviewed by Brian Burg.
459
460         * Shared/mac/SandboxUtilities.mm:
461         * UIProcess/ApplicationStateTracker.mm:
462         Use new header.
463
464 2015-12-10  Alex Christensen  <achristensen@webkit.org>
465
466         REGRESSION (r192796) WKBundlePageResourceLoadClient should be able to setHTTPBody in willSendRequestForFrame
467         https://bugs.webkit.org/show_bug.cgi?id=152022
468         rdar://problem/23763584
469
470         Reviewed by Darin Adler.
471
472         * Shared/API/c/WKURLRequest.cpp:
473         (WKURLRequestCopyHTTPMethod):
474         (WKURLRequestCopyWithHTTPBody):
475         (WKURLRequestSetDefaultTimeoutInterval):
476         * Shared/API/c/WKURLRequest.h:
477         Make WKURLRequestCopyWithHTTPBody SPI for testing.
478         * Shared/API/c/mac/WKURLRequestNS.mm:
479         (WKURLRequestCreateWithNSURLRequest):
480         Crash if someone tries to use an NSURLRequest with HTTPBodyStream, which will not work with the network process.
481         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
482         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
483         Use an HTTP body if the client's willSendRequestForFrame returned one.
484         This is the functional change of this patch.
485
486 2015-12-10  Zan Dobersek  <zdobersek@igalia.com>
487
488         [CoordinatedGraphics] Reserve capacity for the children vector in CoordinatedGraphicsScene::setLayerChildrenIfNeeded()
489         https://bugs.webkit.org/show_bug.cgi?id=152117
490
491         Reviewed by Martin Robinson.
492
493         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
494         (WebKit::CoordinatedGraphicsScene::setLayerChildrenIfNeeded): Reserve the capacity
495         for the new Vector that will contain the same number of items as the Vector
496         on the CoordinatedGraphicsLayerState object.
497
498 2015-12-09  Daniel Bates  <dabates@apple.com>
499
500         [iOS] Bail out if the page proxy is invalid when WebPageProxy::processWillBecome{Foreground, Suspended}() are called
501         https://bugs.webkit.org/show_bug.cgi?id=151877
502
503         Reviewed by Darin Adler.
504
505         We cannot assume that a WebPageProxy is in a valid state when WebPageProxy::processWillBecome{Foreground, Suspended}()
506         are called because these callbacks may occur after the web process crashed and before a
507         WebPageProxy attaches to a new web process (and hence is considered in a valid state).
508
509         * UIProcess/WebPageProxy.cpp:
510         (WebKit::WebPageProxy::processWillBecomeSuspended): Early return if the page proxy is invalid.
511         (WebKit::WebPageProxy::processWillBecomeForeground): Ditto.
512
513 2015-12-09  Commit Queue  <commit-queue@webkit.org>
514
515         Unreviewed, rolling out r193864.
516         https://bugs.webkit.org/show_bug.cgi?id=152100
517
518         caused all inspector tests to assert in WK2 Debug (Requested
519         by brrian on #webkit).
520
521         Reverted changeset:
522
523         "Web Inspector: reproducible debug ASSERT when inspecting the
524         inspector (WK2)"
525         https://bugs.webkit.org/show_bug.cgi?id=152080
526         http://trac.webkit.org/changeset/193864
527
528 2015-12-09  Brian Burg  <bburg@apple.com>
529
530         Web Inspector: reproducible debug ASSERT when inspecting the inspector (WK2)
531         https://bugs.webkit.org/show_bug.cgi?id=152080
532
533         Reviewed by Timothy Hatcher.
534
535         We hit an assert underneath ChildProcessProxy::addMessageReceiver because
536         we tried to connect the inspector page and inspected page more than once.
537         This relationship is already set up in the constructor of WebProcessProxy.
538
539         * UIProcess/WebInspectorProxy.cpp:
540         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
541
542 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
543
544         [EFL] Need to change expectation result in ewk_settings_offline_web_application_cache_enabled API test
545         https://bugs.webkit.org/show_bug.cgi?id=152063
546
547         Reviewed by Csaba Osztrogonác.
548
549         Expect false initial value of ewk_settings_offline_web_application_cache_enabled_get()
550         because r193812 didn't enable it by default.
551
552         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
553         (TEST_F):
554
555 2015-12-09  Gwang Yoon Hwang  <yoon@igalia.com>
556
557         [ThreadedCompositor] Add support for HiDPI
558         https://bugs.webkit.org/show_bug.cgi?id=152071
559
560         Reviewed by Carlos Garcia Campos.
561
562         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:
563         (WebKit::ThreadedCompositor::setDeviceScaleFactor): Added to receive the
564         device scale factor from the layer tree host.
565         (WebKit::ThreadedCompositor::renderLayerTree):
566         Apply device scale factor before rendering the page.
567         * Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.h:
568         * WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp:
569         (WebKit::ThreadedCoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
570         Send a updated device scale factor to the compositing thread.
571
572 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
573
574         [CoordinatedGraphics] Remove unnecessary guards in CoordinatedDrawingArea
575         https://bugs.webkit.org/show_bug.cgi?id=152068
576
577         Reviewed by Gyuyoung Kim.
578
579         CoordinatedDrawingArea is only for UI side compositor of CoordinatedGraphics.
580         So, COORDINATED_GRAPHICS_MULTIPROCESS guards are not necessary.
581         This patch also removes COORDINATED_GRAPHICS_MULTIPROCESS guards from DrawingAreaImpl
582         because of same reason.
583
584         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
585         (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy): Deleted.
586         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
587         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
588         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
589         * WebProcess/WebPage/DrawingAreaImpl.h:
590
591 2015-12-09  Mario Sanchez Prada  <mario@endlessm.com>
592
593         [GTK] Crash in WebProcess when loading large content with custom URI schemes
594         https://bugs.webkit.org/show_bug.cgi?id=144262
595
596         Reviewed by Carlos Garcia Campos.
597
598         Properly handle scenarios where errors happen after reading the first
599         chunk of data coming from the GInputStream provided by the application.
600
601         * UIProcess/API/gtk/WebKitWebContextPrivate.h:
602         * UIProcess/API/gtk/WebKitWebContext.cpp:
603         (webkitWebContextIsLoadingCustomProtocol): New, checks whether a load
604         is still in progress, after the startLoading method has been called.
605         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
606         (webkitURISchemeRequestReadCallback): Early return if the stream has been
607         cancelled on finish_error, so that we make sure we don't keep on reading
608         the GInputStream after that point.
609         (webkit_uri_scheme_request_finish_error): Don't send a didFailWithError
610         message to the Network process if the load is not longer in progress.
611         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerImpl.cpp:
612         (WebKit::CustomProtocolManagerImpl::didFailWithError): Handle the case where
613         an error is notified from the UI process after the first chunk has been read.
614         (WebKit::CustomProtocolManagerImpl::didReceiveResponse): Handle the case where
615         data might no longer be available if an error happened even before this point.
616         * WebProcess/soup/WebKitSoupRequestInputStream.h:
617         * WebProcess/soup/WebKitSoupRequestInputStream.cpp:
618         (webkitSoupRequestInputStreamDidFailWithError): Notify the custom GInputStream
619         that we no longer want to keep reading data in chunks due to a specific error.
620         (webkitSoupRequestInputStreamReadAsync): Early finish the GTask with a specific
621         error whenever webkitSoupRequestInputStreamDidFailWithError() has been called.
622
623 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
624
625         [CoordinatedGraphics][EFL] Fix unhandled web process message when launching MiniBrowser
626         https://bugs.webkit.org/show_bug.cgi?id=152048
627
628         Reviewed by Gyuyoung Kim.
629
630         WebPage should be initialized before updating preferences.
631
632         * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
633         (WKViewInitialize): Deleted.
634         * UIProcess/API/C/CoordinatedGraphics/WKView.h:
635         * UIProcess/API/efl/EwkView.cpp:
636         (EwkView::EwkView):
637         Calls WKViewSetIsActive instead of WKViewInitialize not to change the behavior
638         of EFL port.
639         * UIProcess/CoordinatedGraphics/WebView.cpp:
640         (WebKit::WebView::WebView):
641         Initialize just before creating WebPage because there is not use case to separate
642         initializing WebPage from creating in CoordinatedGraphics.
643         (WebKit::WebView::initialize): Deleted.
644         * UIProcess/CoordinatedGraphics/WebView.h:
645
646 2015-12-09  Carlos Garcia Campos  <cgarcia@igalia.com>
647
648         [GTK] Add API to handle beforeunload events
649         https://bugs.webkit.org/show_bug.cgi?id=139090
650
651         Reviewed by Gustavo Noronha Silva.
652
653         beforeunload is fired when a page is about to be closed, to ask
654         the user for confirmation. This happens when reloading a page,
655         when navigating to another page or when the page is closed by a
656         user action (a tab or window closed). In the first two cases, the
657         event is automatically fired by WebCore, but in the case of a user
658         action we need additional API to ensure the event is fired before
659         the page is closed. A new script dialog type has been added to
660         handle beforeunload events and webkit_web_view_try_close() to
661         allow applications to try to close the page.
662
663         * UIProcess/API/gtk/WebKitScriptDialog.cpp:
664         (webkit_script_dialog_confirm_set_confirmed): BeforeUnloadConfirm
665         dialogs can also be confirmed.
666         * UIProcess/API/gtk/WebKitScriptDialog.h: Add
667         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type.
668         * UIProcess/API/gtk/WebKitUIClient.cpp: Implement
669         canRunBeforeUnloadConfirmPanel() and runBeforeUnloadConfirmPanel().
670         * UIProcess/API/gtk/WebKitWebView.cpp:
671         (webkitWebViewCreateJavaScriptDialog): Add secondaryText optional
672         parameter for BeforeUnloadConfirm dialogs. Do not set the default
673         response if the dialog was created without buttons.
674         (webkitWebViewScriptDialog): Handle
675         WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM script dialog type to
676         create a message dialog for beforeunlos events.
677         (webkit_web_view_class_init): Update documentation of
678         WebKitWebView::close and WebKitWebView::script-dialog.
679         (webkitWebViewRunJavaScriptBeforeUnloadConfirm): Emit WebKitWebView::script-dialog.
680         (webkit_web_view_try_close): Try to close the page.
681         * UIProcess/API/gtk/WebKitWebView.h:
682         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
683         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
684
685 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
686
687         [EFL] Missing to set ignoreTLSError to NetworkProcess
688         https://bugs.webkit.org/show_bug.cgi?id=152047
689
690         Reviewed by Csaba Osztrogonác.
691
692         NetworkProcess has been enabled for all ports since r192796 though, EFL port
693         didn't send the ignoreTLSError value to NetworkProcess. This has caused failure of EFL API tests
694         related with ssl feature.
695
696         * UIProcess/efl/WebProcessPoolEfl.cpp:
697         (WebKit::WebProcessPool::setIgnoreTLSErrors):
698
699 2015-12-09  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
700
701         [EFL] REGRESSION(r193616): WKPreferences test has been failed since r193616
702         https://bugs.webkit.org/show_bug.cgi?id=151942
703
704         Reviewed by Darin Adler.
705
706         As wkpreference settings were moved from EwkView to WKPreferenceEfl, the offline-web-application-cache feature
707         is enabled by default when running API test. It seems this option should be enabled by MiniBrowser.
708
709         * UIProcess/efl/WebPreferencesEfl.cpp:
710         (WebKit::WebPreferences::platformInitializeStore): Remove to enable web application cache feature here.
711
712 2015-12-09  Ryuan Choi  <ryuan.choi@navercorp.com>
713
714         [CoordinatedGraphics] layerTreeHost always exist in CoordinatedDrawingArea
715         https://bugs.webkit.org/show_bug.cgi?id=151987
716
717         Reviewed by Darin Adler.
718
719         CoordinatedGraphics using UI side compositor always forces accelerated compositing.
720         This patch cleans up dead code for layerTreeHost which always exists.
721
722         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
723         (WebKit::CoordinatedDrawingAreaProxy::paint): Deleted.
724         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable): Deleted.
725         (WebKit::CoordinatedDrawingAreaProxy::update): Deleted.
726         (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState): Deleted.
727         (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode): Deleted.
728         (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate): Deleted.
729         (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode): Deleted.
730         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStoreSoon): Deleted.
731         (WebKit::CoordinatedDrawingAreaProxy::discardBackingStore): Deleted.
732         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
733         (WebKit::CoordinatedDrawingAreaProxy::setBackingStoreIsDiscardable):
734         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
735         (WebKit::CoordinatedDrawingArea::CoordinatedDrawingArea): Deleted.
736         (WebKit::CoordinatedDrawingArea::layerHostDidFlushLayers): Deleted.
737         (WebKit::CoordinatedDrawingArea::scheduleCompositingLayerFlush): Deleted.
738         (WebKit::CoordinatedDrawingArea::didUpdate): Deleted.
739         (WebKit::CoordinatedDrawingArea::enterAcceleratedCompositingMode): Deleted.
740         (WebKit::CoordinatedDrawingArea::scheduleDisplay): Deleted.
741         (WebKit::CoordinatedDrawingArea::displayTimerFired): Deleted.
742         (WebKit::CoordinatedDrawingArea::display): Deleted.
743         (WebKit::shouldPaintBoundsRect): Deleted.
744         (WebKit::CoordinatedDrawingArea::attachViewOverlayGraphicsLayer): Deleted.
745         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
746
747 2015-12-08  Alex Christensen  <achristensen@webkit.org>
748
749         Progress towards implementing downloads with NetworkSession
750         https://bugs.webkit.org/show_bug.cgi?id=151883
751
752         Reviewed by Brady Eidson.
753
754         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
755         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
756         * NetworkProcess/NetworkLoad.cpp:
757         (WebKit::NetworkLoad::~NetworkLoad):
758         (WebKit::NetworkLoad::continueDidReceiveResponse):
759         (WebKit::NetworkLoad::convertTaskToDownload):
760         (WebKit::NetworkLoad::willPerformHTTPRedirection):
761         (WebKit::NetworkLoad::didReceiveChallenge):
762         (WebKit::NetworkLoad::didReceiveResponse):
763         (WebKit::NetworkLoad::didReceiveData):
764         (WebKit::NetworkLoad::didCompleteWithError):
765         (WebKit::NetworkLoad::didBecomeDownload):
766         (WebKit::NetworkLoad::didReceiveResponseAsync):
767         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
768         * NetworkProcess/NetworkLoad.h:
769         * NetworkProcess/NetworkLoadClient.h:
770         * NetworkProcess/NetworkResourceLoader.cpp:
771         (WebKit::NetworkResourceLoader::cleanup):
772         (WebKit::NetworkResourceLoader::didConvertToDownload):
773         (WebKit::NetworkResourceLoader::abort):
774         (WebKit::NetworkResourceLoader::didConvertHandleToDownload): Deleted.
775         * NetworkProcess/NetworkResourceLoader.h:
776         * NetworkProcess/NetworkSession.h:
777         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
778         (WebKit::NetworkSession::~NetworkSession): Deleted.
779         * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h:
780         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
781         (-[NetworkSessionDelegate URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:]):
782         (-[NetworkSessionDelegate URLSession:dataTask:didBecomeDownloadTask:]):
783         (WebKit::NetworkSession::NetworkSession):
784         (WebKit::NetworkSession::~NetworkSession):
785         (WebKit::NetworkSession::createDataTaskWithRequest):
786         * Shared/Downloads/Download.h:
787         * Shared/Downloads/DownloadManager.h:
788         (WebKit::DownloadManager::isDownloading):
789         (WebKit::DownloadManager::activeDownloadCount):
790
791 2015-12-08  Joseph Pecoraro  <pecoraro@apple.com>
792
793         Create a Sandbox SPI header
794         https://bugs.webkit.org/show_bug.cgi?id=151981
795
796         Reviewed by Andy Estes.
797
798         * PluginProcess/mac/PluginProcessShim.mm:
799         * Shared/ios/ChildProcessIOS.mm:
800         * Shared/mac/ChildProcessMac.mm:
801         * Shared/mac/SandboxUtilities.mm:
802
803 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
804
805         [MediaStream] Rename UserMediaClient and UserMediaController methods
806         https://bugs.webkit.org/show_bug.cgi?id=152001
807
808         Reviewed by Brady Eidson.
809
810         * WebProcess/WebCoreSupport/WebUserMediaClient.cpp:
811         (WebKit::WebUserMediaClient::pageDestroyed):
812         (WebKit::WebUserMediaClient::requestUserMediaAccess):
813         (WebKit::WebUserMediaClient::cancelUserMediaAccessRequest):
814         (WebKit::WebUserMediaClient::requestPermission): Deleted.
815         (WebKit::WebUserMediaClient::cancelRequest): Deleted.
816         * WebProcess/WebCoreSupport/WebUserMediaClient.h:
817
818 2015-12-08  Tomas Popela  <tpopela@redhat.com>
819
820         [GTK] Remove an unused variable from WebKitWebContext
821         https://bugs.webkit.org/show_bug.cgi?id=151999
822
823         Reviewed by Carlos Garcia Campos.
824
825         * UIProcess/API/gtk/WebKitWebContext.cpp:
826
827 2015-12-08  Chris Dumez  <cdumez@apple.com>
828
829         Add diagnostic logging to measure speculative revalidation accuracy
830         https://bugs.webkit.org/show_bug.cgi?id=151953
831         <rdar://problem/23092196>
832
833         Reviewed by Darin Adler.
834
835         We track the following:
836         1. Resources we knew about AND did not get requested
837            A. We did not speculate (Good)
838            B. We speculated but did not go to network (Bad)
839            C. We speculated and went to network (Very bad)
840         2. Resources we did not know about (Neutral)
841         3. Resources we knew about AND got requested
842            A. We did not speculate (Bad)
843            B. We speculated but did not go to network (Good)
844            C. We speculated and went to network (Very good)
845
846         * NetworkProcess/cache/NetworkCache.cpp:
847         (WebKit::NetworkCache::Cache::retrieve):
848         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
849         (WebKit::NetworkCache::allSpeculativeLoadingDiagnosticMessages):
850         (WebKit::NetworkCache::printSpeculativeLoadingDiagnosticMessageCounts):
851         (WebKit::NetworkCache::logSpeculativeLoadingDiagnosticMessage):
852         (WebKit::NetworkCache::SpeculativeLoadManager::ExpiringEntry::ExpiringEntry):
853         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::PreloadedEntry):
854         (WebKit::NetworkCache::SpeculativeLoadManager::PreloadedEntry::wasRevalidated):
855         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::markLoadAsCompleted):
856         (WebKit::NetworkCache::SpeculativeLoadManager::retrieve):
857         (WebKit::NetworkCache::SpeculativeLoadManager::addPreloadedEntry):
858         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry):
859         (WebKit::NetworkCache::SpeculativeLoadManager::preloadEntry):
860         (WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
861         (WebKit::NetworkCache::makeSubresourcesKey): Deleted.
862         (WebKit::NetworkCache::constructRevalidationRequest): Deleted.
863         (WebKit::NetworkCache::responseNeedsRevalidation): Deleted.
864         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::saveToDiskIfReady): Deleted.
865         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveEntryFromStorage): Deleted.
866         (WebKit::NetworkCache::SpeculativeLoadManager::satisfyPendingRequests): Deleted.
867         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.h:
868
869 2015-12-08  Csaba Osztrogonác  <ossy@webkit.org>
870
871         [EFL] REGRESSION(r173394): MiniBrowser stucked in an infinite loop if NETWORK_CACHE is disabled
872         https://bugs.webkit.org/show_bug.cgi?id=137692
873
874         Reviewed by Darin Adler.
875
876         * WebProcess/Network/WebLoaderStrategy.cpp:
877         (WebKit::maximumBufferingTime): Disable caching if NETWORK_CACHE is disabled.
878
879 2015-12-08  Ryuan Choi  <ryuan.choi@navercorp.com>
880
881         [EFL] Add API to provide preferences before creating ewk_view
882         https://bugs.webkit.org/show_bug.cgi?id=151587
883
884         Reviewed by Gyuyoung Kim.
885
886         This patch adds ewk_view_configuration_settings_get to provide preferences
887         before createing ewk_view.
888
889         * PlatformEfl.cmake:
890         * UIProcess/API/efl/ewk_view_configuration.cpp:
891         (EwkViewConfiguration::EwkViewConfiguration):
892         (ewk_view_configuration_settings_get):
893         * UIProcess/API/efl/ewk_view_configuration.h:
894         * UIProcess/API/efl/ewk_view_configuration_private.h:
895         (EwkViewConfiguration::pageGroup):
896         * UIProcess/API/efl/tests/test_ewk2_view_configuration.cpp:
897         (TEST_F): Added test case for ewk_view_configuration_settings_get().
898
899 2015-12-07  Gustavo Noronha Silva  <gns@gnome.org>
900
901         [GTK] Notify WebCore when notification is clicked
902         https://bugs.webkit.org/show_bug.cgi?id=151951
903
904         Reviewed by Carlos Garcia Campos.
905
906         * UIProcess/API/gtk/WebKitNotification.cpp:
907         (webkit_notification_class_init): new clicked signal.
908         (webkit_notification_clicked): method to emit the clicked signal.
909         * UIProcess/API/gtk/WebKitNotification.h:
910         * UIProcess/API/gtk/WebKitNotificationProvider.cpp:
911         (WebKitNotificationProvider::notificationClickedCallback): handle the clicked signal and tell WebProcess about the click.
912         (WebKitNotificationProvider::show): connect to the clicked signal in addition to closed.
913         * UIProcess/API/gtk/WebKitNotificationProvider.h:
914         * UIProcess/API/gtk/WebKitWebView.cpp:
915         (notifyNotificationClicked): handle the click on our libnotify notification.
916         (webkitWebViewShowNotification): add the "default" action to our libnotify notification to be notified of the click.
917         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
918
919 2015-12-07  Commit Queue  <commit-queue@webkit.org>
920
921         Unreviewed, rolling out r193655.
922         https://bugs.webkit.org/show_bug.cgi?id=151970
923
924         This change broke existing LayoutTests on mac-wk2 (Requested
925         by ryanhaddad on #webkit).
926
927         Reverted changeset:
928
929         "UIProcess should determine AppNap state for WebPage"
930         https://bugs.webkit.org/show_bug.cgi?id=151964
931         http://trac.webkit.org/changeset/193655
932
933 2015-12-05  Gavin Barraclough  <barraclough@apple.com>
934
935         UIProcess should determine AppNap state for WebPage
936         https://bugs.webkit.org/show_bug.cgi?id=151964
937
938         Reviewed by Anders Carlson.
939
940         Step 1 in unifying this with the iOS process suppression mechanism is to move the decision out of the WebContent process.
941
942         * UIProcess/WebPageProxy.cpp:
943         (WebKit::WebPageProxy::WebPageProxy):
944         (WebKit::WebPageProxy::dispatchViewStateChange):
945         (WebKit::WebPageProxy::setPageActivityState):
946         (WebKit::WebPageProxy::updateActivityToken):
947         (WebKit::WebPageProxy::preferencesDidChange):
948         * UIProcess/WebPageProxy.h:
949         (WebKit::WebPageProxy::isInWindow):
950         (WebKit::WebPageProxy::didUpdateViewState):
951         * UIProcess/WebPageProxy.messages.in:
952             - WebPage now propagates PageActivityState to the WebPageProxy, for use
953               determining the supression state of the WebProcess.
954         * WebProcess/WebPage/WebPage.cpp:
955         (WebKit::m_shouldDispatchFakeMouseMoveEvents):
956         (WebKit::WebPage::setPageActivityState):
957         (WebKit::WebPage::setUserActivityStarted):
958         (WebKit::WebPage::setViewState):
959         (WebKit::WebPage::updatePreferences):
960         (WebKit::WebPage::updateUserActivity): Deleted.
961         * WebProcess/WebPage/WebPage.h:
962         * WebProcess/WebPage/WebPage.messages.in:
963             - WebPage no longer determines when to update it's own UserActivity - instead,
964               let the UI process do so. As such, no longer need to track whether process
965               supression is enabled. Instead, add message to
966
967 2015-12-07  Chris Dumez  <cdumez@apple.com>
968
969         [WK2] Regression(r187691): If a page is showing an auth pane in one tab, any new tabs with same page hang until credentials are entered in first tab
970         https://bugs.webkit.org/show_bug.cgi?id=151960
971         <rdar://problem/23618112>
972
973         Reviewed by Alex Christensen.
974
975         After r187691, if a page is showing an auth pane in one tab, any new
976         tabs with same page hang until credentials are entered in first tab.
977         This is because we coalescing all authentication challenges from the
978         same domain, no matter what tab they are for. This can be confusing
979         so we now only coalesce authentication challenges within each tab,
980         by leveraging the pageID (in addition to the domain).
981
982         * Shared/Authentication/AuthenticationManager.cpp:
983         (WebKit::AuthenticationManager::shouldCoalesceChallenge):
984         (WebKit::AuthenticationManager::coalesceChallengesMatching):
985         (WebKit::AuthenticationManager::didReceiveAuthenticationChallenge):
986         * Shared/Authentication/AuthenticationManager.h:
987
988 2015-12-07  Beth Dakin  <bdakin@apple.com>
989
990         Hook up request and show for typing candidates in WK1
991         https://bugs.webkit.org/show_bug.cgi?id=151831
992         -and corresponding-
993         <rdar://problem/23751214>
994
995         Reviewed by Enrica Casucci.
996
997         Empty client for now.
998         * WebProcess/WebCoreSupport/WebEditorClient.h:
999
1000 2015-12-07  Philippe Normand  <pnormand@igalia.com>
1001
1002         [GTK][Mac] socketpair assertion failure
1003         https://bugs.webkit.org/show_bug.cgi?id=151293
1004
1005         Reviewed by Carlos Garcia Campos.
1006
1007         * Platform/IPC/unix/ConnectionUnix.cpp: Don't use SEQPACKET sockets on Darwin.
1008
1009 2015-12-07  Gwang Yoon Hwang  <yoon@igalia.com>
1010
1011         [ThreadedCompositor] Add support for PlatformLayer.
1012         https://bugs.webkit.org/show_bug.cgi?id=143299
1013
1014         Reviewed by Žan Doberšek.
1015
1016         * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
1017         (WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext):
1018         Swap pending buffers of TextureMapperPlatformLayerProxies before painting contents.
1019         (WebKit::CoordinatedGraphicsScene::syncPlatformLayerIfNeeded):
1020         In threaded compositor, CoordinatedGraphicsScence only cares about creation and deletion
1021         of platform layers.
1022
1023         (WebKit::CoordinatedGraphicsScene::onNewBufferAvailable):
1024         Whenever new buffer comes via TextureMapperPlatformLayerProxy, CoordinatedGraphicsScene will
1025         update the scene if it is needed.
1026
1027 2015-12-07  Mario Sanchez Prada  <mario@endlessm.com>
1028
1029         [GTK] Allow applications to force Accelerated Compositing mode
1030         https://bugs.webkit.org/show_bug.cgi?id=150558
1031
1032         Reviewed by Carlos Garcia Campos.
1033
1034         Enable forcing Accelerated Compositing mode to be always on if
1035         a WEBKIT_FORCE_COMPOSITING_MODE environment variable is set.
1036
1037         This can be useful for controlled environments where we know that
1038         AC always on works well enough, to get smoother animations.
1039
1040         * UIProcess/gtk/WebPreferencesGtk.cpp:
1041         (WebKit::WebPreferences::platformInitializeStore): Set forceCompositingMode
1042         setting to true if the environment variable is found.
1043
1044 2015-12-07  Jon Forsberg  <jon.orebro@gmail.com>
1045
1046         [GTK] Add webkit_uri_request_get_http_method
1047         https://bugs.webkit.org/show_bug.cgi?id=151601
1048
1049         Reviewed by Martin Robinson.
1050
1051         Add a method to get the HTTP method of a WebKitURIRequest.
1052
1053         * UIProcess/API/gtk/WebKitURIRequest.cpp:
1054         (webkit_uri_request_get_http_method):
1055         * UIProcess/API/gtk/WebKitURIRequest.h:
1056         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
1057
1058 2015-12-07  Carlos Garcia Campos  <cgarcia@igalia.com>
1059
1060         [GTK] Add WebKitWebPage::console-message-sent signal to Web Extensions API
1061         https://bugs.webkit.org/show_bug.cgi?id=79918
1062
1063         Reviewed by Gustavo Noronha Silva.
1064
1065         Add WebKitConsoleMessage boxed type that is passed to the
1066         WebKitWebPage::console-message-sent signal with all the details
1067         about the message.
1068
1069         * PlatformGTK.cmake: Add new files to compilation.
1070         * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt: Add new symbols.
1071         * UIProcess/API/gtk/docs/webkit2gtk-4.0.types: Add webkit_console_message_get_type.
1072         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add new section to the docs.
1073         * WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
1074         (API::InjectedBundle::PageUIClient::willAddMessageToConsole): Add
1075         paramaters for all console message details.
1076         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.cpp: Added.
1077         (webkit_console_message_copy):
1078         (webkit_console_message_free):
1079         (webkit_console_message_get_source):
1080         (webkit_console_message_get_level):
1081         (webkit_console_message_get_text):
1082         (webkit_console_message_get_line):
1083         (webkit_console_message_get_source_id):
1084         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessage.h: Added.
1085         * WebProcess/InjectedBundle/API/gtk/WebKitConsoleMessagePrivate.h: Added.
1086         (_WebKitConsoleMessage::_WebKitConsoleMessage):
1087         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
1088         (webkitWebPageDidSendConsoleMessage): Emit the
1089         WebKitWebPage::console-message-sent signal.
1090         (didReceiveResponseForResource): Generate a console message in
1091         case of HTTP failure >= 400 for consistency with the inspector.
1092         (didFailLoadForResource): Generate a console message in case of
1093         resource load failure for consistency with the inspector.
1094         (webkit_web_page_class_init): Add WebKitWebPage::console-message-sent signal.
1095         (webkitWebPageCreate): Set custom UI client.
1096         * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
1097         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
1098         (WebKit::InjectedBundlePageUIClient::willAddMessageToConsole):
1099         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
1100         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1101         (WebKit::WebChromeClient::addMessageToConsole): Pass all the
1102         console message details to the ui client.
1103
1104 2015-12-07  Ryuan Choi  <ryuan.choi@navercorp.com>
1105
1106         [EFL] MiniBrowser doesn't exit when called ewk_view_try_close()
1107         https://bugs.webkit.org/show_bug.cgi?id=151934
1108
1109         Reviewed by Csaba Osztrogonác.
1110
1111         * UIProcess/API/efl/ewk_view.cpp:
1112         (ewk_view_try_close):
1113         Called window_close callback immediately when WKPageTryClose returns true.
1114         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1115         (TEST_F): Improved test cases for try_close to test when content does not contain
1116         onbeforeunload callback.
1117
1118 2015-12-07  Jaehun Lim  <ljaehun.lim@samsung.com>
1119
1120         [EFL] Moving preference settings from EwkView to WebPreferencesEfl
1121         https://bugs.webkit.org/show_bug.cgi?id=151928
1122
1123         Reviewed by Gyuyoung Kim.
1124
1125         It implements WebPreferences::platformInitializeStore() in WebPreferencesEfl.cpp.
1126
1127         * UIProcess/API/efl/EwkView.cpp:
1128         (EwkView::EwkView):
1129         * UIProcess/efl/WebPreferencesEfl.cpp:
1130         (WebKit::WebPreferences::platformInitializeStore):
1131
1132 2015-12-04  Anders Carlsson  <andersca@apple.com>
1133
1134         Crash when secondary clicking on a link on yahoo.com
1135         https://bugs.webkit.org/show_bug.cgi?id=151900
1136         rdar://problem/23765149
1137
1138         Reviewed by Beth Dakin.
1139
1140         Don't use +[NSURL URLWithString:] since it doesn't handle invalid URLs as well as WebCore::URL.
1141
1142         * UIProcess/mac/WebContextMenuProxyMac.mm:
1143         (WebKit::WebContextMenuProxyMac::createShareMenuItem):
1144
1145 2015-12-04  Beth Dakin  <bdakin@apple.com>
1146
1147         Crash in clients using userData in 
1148         _immediateActionAnimationControllerForHitTestResult
1149         https://bugs.webkit.org/show_bug.cgi?id=151887
1150
1151         Rubber-stamped by Anders Carlsson.
1152
1153         Follow-up fix to handle null userData.
1154         * UIProcess/API/Cocoa/WKWebView.mm:
1155         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
1156
1157 2015-12-04  Beth Dakin  <bdakin@apple.com>
1158
1159         Crash in clients using userData in 
1160         _immediateActionAnimationControllerForHitTestResult
1161         https://bugs.webkit.org/show_bug.cgi?id=151887
1162
1163         Reviewed by Sam Weinig.
1164
1165         Cast this correctly.
1166         * UIProcess/API/Cocoa/WKWebView.mm:
1167         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
1168
1169 2015-12-04  Gavin Barraclough  <barraclough@apple.com>
1170
1171         Background state not being tracked correctly for PDFs on iOS
1172         https://bugs.webkit.org/show_bug.cgi?id=151886
1173
1174         Reviewed by Anders Carlson.
1175
1176         The problem here is that when viewing a PDF we don't have an ApplicationStateTracker.
1177         (While we do have a content view - which normally holds the ApplicationStateTracker -
1178         the content view is not in a window, and only has an ApplicationStateTracker while in a
1179         window). For now, let's give the WKPDFView an ApplicationStateTracker of its very own.
1180         In the future we may want to refactor ownership of the ApplicationStateTracker up to
1181         the WKWebView.
1182
1183         * UIProcess/API/Cocoa/WKWebView.mm:
1184         (-[WKWebView _isBackground]):
1185             - Added, checks background state of content/PDF view.
1186         * UIProcess/API/Cocoa/WKWebViewInternal.h:
1187             - expose _isBackground to PageClientImplIOS.
1188         * UIProcess/ApplicationStateTracker.h:
1189         (WebKit::ApplicationStateTracker::isInBackground):
1190         * UIProcess/ApplicationStateTracker.mm:
1191         (WebKit::isBackgroundState):
1192         (WebKit::ApplicationStateTracker::ApplicationStateTracker):
1193             - generalize WKContentView -> UIView, so this may now also be a WKPDFView.
1194         * UIProcess/ios/PageClientImplIOS.mm:
1195         (WebKit::PageClientImpl::isViewVisible):
1196             - check background state via the WKWebView.
1197         * UIProcess/ios/WKPDFView.h:
1198         * UIProcess/ios/WKPDFView.mm:
1199         (-[WKPDFView willMoveToWindow:]):
1200         (-[WKPDFView didMoveToWindow]):
1201         (-[WKPDFView isBackground]):
1202         (-[WKPDFView _applicationDidEnterBackground]):
1203         (-[WKPDFView _applicationWillEnterForeground]):
1204             - added methods to initialize ApplicationStateTracker, access background state, & callbacks to the page proxy.
1205
1206 2015-12-04  Antti Koivisto  <antti@apple.com>
1207
1208         Rename WebResourceLoadScheduler to WebLoaderStrategy
1209         https://bugs.webkit.org/show_bug.cgi?id=151854
1210
1211         Reviewed by Anders Carlsson.
1212
1213         It implements WebCore::LoaderStrategy and doesn't do any scheduling.
1214
1215         * CMakeLists.txt:
1216         * WebKit2.xcodeproj/project.pbxproj:
1217         * WebProcess/Network/NetworkProcessConnection.cpp:
1218         (WebKit::NetworkProcessConnection::didReceiveMessage):
1219         * WebProcess/Network/WebLoaderStrategy.cpp: Copied from Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.cpp.
1220         (WebKit::WebLoaderStrategy::WebLoaderStrategy):
1221         (WebKit::WebLoaderStrategy::~WebLoaderStrategy):
1222         (WebKit::WebLoaderStrategy::loadResource):
1223         (WebKit::WebLoaderStrategy::schedulePluginStreamLoad):
1224         (WebKit::maximumBufferingTime):
1225         (WebKit::WebLoaderStrategy::scheduleLoad):
1226         (WebKit::WebLoaderStrategy::scheduleInternallyFailedLoad):
1227         (WebKit::WebLoaderStrategy::internallyFailedLoadTimerFired):
1228         (WebKit::WebLoaderStrategy::startLocalLoad):
1229         (WebKit::WebLoaderStrategy::remove):
1230         (WebKit::WebLoaderStrategy::setDefersLoading):
1231         (WebKit::WebLoaderStrategy::crossOriginRedirectReceived):
1232         (WebKit::WebLoaderStrategy::servePendingRequests):
1233         (WebKit::WebLoaderStrategy::suspendPendingRequests):
1234         (WebKit::WebLoaderStrategy::resumePendingRequests):
1235         (WebKit::WebLoaderStrategy::networkProcessCrashed):
1236         (WebKit::WebLoaderStrategy::loadResourceSynchronously):
1237         (WebKit::WebLoaderStrategy::createPingHandle):
1238         (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler): Deleted.
1239         (WebKit::WebResourceLoadScheduler::~WebResourceLoadScheduler): Deleted.
1240         (WebKit::WebResourceLoadScheduler::loadResource): Deleted.
1241         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad): Deleted.
1242         (WebKit::WebResourceLoadScheduler::scheduleLoad): Deleted.
1243         (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad): Deleted.
1244         (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired): Deleted.
1245         (WebKit::WebResourceLoadScheduler::startLocalLoad): Deleted.
1246         (WebKit::WebResourceLoadScheduler::remove): Deleted.
1247         (WebKit::WebResourceLoadScheduler::setDefersLoading): Deleted.
1248         (WebKit::WebResourceLoadScheduler::crossOriginRedirectReceived): Deleted.
1249         (WebKit::WebResourceLoadScheduler::servePendingRequests): Deleted.
1250         (WebKit::WebResourceLoadScheduler::suspendPendingRequests): Deleted.
1251         (WebKit::WebResourceLoadScheduler::resumePendingRequests): Deleted.
1252         (WebKit::WebResourceLoadScheduler::networkProcessCrashed): Deleted.
1253         (WebKit::WebResourceLoadScheduler::loadResourceSynchronously): Deleted.
1254         (WebKit::WebResourceLoadScheduler::createPingHandle): Deleted.
1255         * WebProcess/Network/WebLoaderStrategy.h: Copied from Source/WebKit2/WebProcess/Network/WebResourceLoadScheduler.h.
1256         (WebKit::WebLoaderStrategy::webResourceLoaderForIdentifier):
1257         (WebKit::WebResourceLoadScheduler::webResourceLoaderForIdentifier): Deleted.
1258         * WebProcess/Network/WebResourceLoadScheduler.cpp: Removed.
1259         * WebProcess/Network/WebResourceLoadScheduler.h: Removed.
1260         * WebProcess/Plugins/PluginView.cpp:
1261         (WebKit::PluginView::Stream::start):
1262         (WebKit::PluginView::Stream::cancel):
1263         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1264         (WebKit::WebPlatformStrategies::createLoaderStrategy):
1265         (WebKit::WebPlatformStrategies::createPasteboardStrategy):
1266         * WebProcess/WebProcess.cpp:
1267         (WebKit::WebProcess::WebProcess):
1268         (WebKit::WebProcess::initializeWebProcess):
1269         (WebKit::WebProcess::networkProcessConnectionClosed):
1270         (WebKit::WebProcess::webLoaderStrategy):
1271         (WebKit::WebProcess::webResourceLoadScheduler): Deleted.
1272         * WebProcess/WebProcess.h:
1273
1274 2015-12-03  Simon Fraser  <simon.fraser@apple.com>
1275
1276         Have layer memory use consult the backing store format
1277         https://bugs.webkit.org/show_bug.cgi?id=151827
1278         rdar://problem/23746497
1279
1280         Reviewed by Dean Jackson.
1281
1282         When computing the backing store memory size, take the pixel format into account,
1283         rather than assuming 4 bytes per pixel.
1284
1285         * Shared/mac/RemoteLayerBackingStore.h:
1286         * Shared/mac/RemoteLayerBackingStore.mm:
1287         (WebKit::RemoteLayerBackingStore::bytesPerPixel):
1288         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
1289         (WebKit::PlatformCALayerRemote::backingStoreBytesPerPixel):
1290         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
1291
1292 2015-12-03  Jer Noble  <jer.noble@apple.com>
1293
1294         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
1295         https://bugs.webkit.org/show_bug.cgi?id=151830
1296
1297         Reviewed by Anders Carlsson.
1298
1299         Add a new, private WKWebViewConfiguration property _invisibleAutoplayNotPermitted.
1300
1301         * Shared/WebPreferencesDefinitions.h:
1302         * UIProcess/API/Cocoa/WKWebView.mm:
1303         (-[WKWebView initWithFrame:configuration:]):
1304         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
1305         (-[WKWebViewConfiguration init]):
1306         (-[WKWebViewConfiguration copyWithZone:]):
1307         (-[WKWebViewConfiguration _invisibleAutoplayNotPermitted]):
1308         (-[WKWebViewConfiguration _setInvisibleAutoplayNotPermitted:]):
1309         * UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:
1310         * WebProcess/WebPage/WebPage.cpp:
1311         (WebKit::WebPage::updatePreferences):
1312
1313 2015-12-03  Sam Weinig  <sam@webkit.org>
1314
1315         It should be possible to use version 6 of the WKPageUIClient without adopting the new createNewPage
1316         https://bugs.webkit.org/show_bug.cgi?id=151826
1317
1318         Reviewed by Anders Carlsson.
1319
1320         * UIProcess/API/C/WKPage.cpp:
1321         (WKPageSetPageUIClient):
1322         Pick which variant of createNewPage to use based on which function pointer is available,
1323         not the version number.
1324
1325 2015-12-03  Anders Carlsson  <andersca@apple.com>
1326
1327         Remove Objective-C GC support
1328         https://bugs.webkit.org/show_bug.cgi?id=151819
1329         rdar://problem/23746991
1330
1331         Reviewed by Dan Bernstein.
1332
1333         * Configurations/Base.xcconfig:
1334         * Configurations/BaseLegacyProcess.xcconfig:
1335         * Configurations/BaseXPCService.xcconfig:
1336         * Shared/Cocoa/APIObject.mm:
1337         (API::Object::newObject): Deleted.
1338
1339 2015-12-03  Jer Noble  <jer.noble@apple.com>
1340
1341         Unreviewed build-fix; fix !HAVE(AVKIT) build after r193340.
1342
1343         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1344         (WebKit::WebVideoFullscreenManagerProxy::applicationDidBecomeActive):
1345
1346 2015-12-03  Sam Weinig  <sam@webkit.org>
1347
1348         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
1349         <rdar://problem/23320863>
1350         https://bugs.webkit.org/show_bug.cgi?id=151708
1351
1352         (Add missing function definitions)
1353
1354         * UIProcess/API/C/WKPage.cpp:
1355         (WKPageRunJavaScriptAlertResultListenerGetTypeID):
1356         (WKPageRunJavaScriptAlertResultListenerCall):
1357         (WKPageRunJavaScriptConfirmResultListenerGetTypeID):
1358         (WKPageRunJavaScriptConfirmResultListenerCall):
1359         (WKPageRunJavaScriptPromptResultListenerGetTypeID):
1360         (WKPageRunJavaScriptPromptResultListenerCall):
1361
1362 2015-12-03  Jer Noble  <jer.noble@apple.com>
1363
1364         [iOS] Fullscreen -> PiP should resume to Fullscreen, not inline
1365         https://bugs.webkit.org/show_bug.cgi?id=150906
1366
1367         Reviewed by Simon Fraser.
1368
1369         Add methods to pass isVisible(), applicationDidBecomeActive(), and requestFullscreenMode()
1370         to and from models and interfaces.
1371
1372         * UIProcess/ios/WebPageProxyIOS.mm:
1373         (WebKit::WebPageProxy::applicationDidBecomeActive): Notify the fullscreen manager, if preset.
1374
1375         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1376         (WebKit::WebVideoFullscreenModelContext::requestFullscreenMode): Renamed from requestExitFullscreen(); takes a mode enum.
1377         (WebKit::WebVideoFullscreenModelContext::isVisible): Added.
1378         (WebKit::WebVideoFullscreenManagerProxy::applicationDidBecomeActive): Pass to all existing interfaces.
1379         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID): Do not re-create the view if it already exists.
1380         (WebKit::WebVideoFullscreenManagerProxy::requestFullscreenMode): Renamed from requestExitFullscreen(); takes a mode enum.
1381         (WebKit::WebVideoFullscreenManagerProxy::isVisible): Added. Query Page::isVisible() and Page::isInWindow(), the latter because
1382                 PiP will cause Page::isVisible() to be TRUE even when the containing tab is backgrounded.
1383         (WebKit::WebVideoFullscreenModelContext::requestExitFullscreen): Deleted.
1384         (WebKit::WebVideoFullscreenManagerProxy::requestExitFullscreen): Deleted.
1385         * WebProcess/ios/WebVideoFullscreenManager.mm:
1386         (WebKit::WebVideoFullscreenManager::enterVideoFullscreenForVideoElement): Only resize the view if we are not already in one of
1387                 the fullscreen modes.
1388         (WebKit::WebVideoFullscreenManager::requestFullscreenMode): Renamed from requestExitFullscreen().
1389         (WebKit::WebVideoFullscreenManager::requestExitFullscreen): Deleted.
1390
1391 2015-12-02  Antti Koivisto  <antti@apple.com>
1392
1393         Move ResourceLoadScheduler to WebKit1
1394         https://bugs.webkit.org/show_bug.cgi?id=151743
1395
1396         Reviewed by Alex Christensen.
1397
1398         * NetworkProcess/NetworkProcessPlatformStrategies.cpp:
1399         (WebKit::NetworkProcessPlatformStrategies::createCookiesStrategy):
1400         (WebKit::NetworkProcessPlatformStrategies::createLoaderStrategy):
1401         (WebKit::NetworkProcessPlatformStrategies::createPasteboardStrategy):
1402         (WebKit::NetworkProcessPlatformStrategies::createPluginStrategy):
1403         (WebKit::NetworkProcessPlatformStrategies::createBlobRegistry):
1404         (WebKit::NetworkProcessPlatformStrategies::resourceLoadScheduler): Deleted.
1405         (WebKit::NetworkProcessPlatformStrategies::loadResourceSynchronously): Deleted.
1406         * NetworkProcess/NetworkProcessPlatformStrategies.h:
1407         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1408         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1409         (WebKit::WebResourceLoadScheduler::~WebResourceLoadScheduler):
1410         (WebKit::WebResourceLoadScheduler::loadResource):
1411         (WebKit::WebResourceLoadScheduler::resumePendingRequests):
1412         (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
1413         (WebKit::WebResourceLoadScheduler::loadResourceSynchronously):
1414         (WebKit::WebResourceLoadScheduler::createPingHandle):
1415         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad): Deleted.
1416         (WebKit::WebResourceLoadScheduler::setSerialLoadingEnabled): Deleted.
1417         * WebProcess/Network/WebResourceLoadScheduler.h:
1418         (WebKit::WebResourceLoadScheduler::webResourceLoaderForIdentifier):
1419         * WebProcess/Plugins/PluginView.cpp:
1420         (WebKit::PluginView::Stream::start):
1421         (WebKit::PluginView::Stream::cancel):
1422         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1423         (WebKit::WebPlatformStrategies::createLoaderStrategy):
1424         (WebKit::WebPlatformStrategies::createPasteboardStrategy):
1425         (WebKit::WebPlatformStrategies::createPluginStrategy):
1426         (WebKit::WebPlatformStrategies::createBlobRegistry):
1427         (WebKit::WebPlatformStrategies::cookiesForDOM):
1428         (WebKit::WebPlatformStrategies::deleteCookie):
1429         (WebKit::WebPlatformStrategies::refreshPlugins):
1430         (WebKit::WebPlatformStrategies::resourceLoadScheduler): Deleted.
1431         (WebKit::WebPlatformStrategies::loadResourceSynchronously): Deleted.
1432         (WebKit::WebPlatformStrategies::createPingHandle): Deleted.
1433         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1434
1435 2015-12-02  Alex Christensen  <achristensen@webkit.org>
1436
1437         Fix authentication requests with NetworkSession and canHandleHTTPSServerTrustEvaluation true
1438         https://bugs.webkit.org/show_bug.cgi?id=151775
1439         rdar://problem/23586265
1440
1441         Reviewed by Chris Dumez.
1442
1443         In https://bugs.webkit.org/show_bug.cgi?id=150968 I copied functionality from 
1444         NetworkLoad::canAuthenticateAgainstProtectionSpaceAsync into NetworkLoad::didReceiveChallenge
1445         but I overlooked the call to m_client.canAuthenticateAgainstProtectionSpaceAsync which is needed
1446         if canHandleHTTPSServerTrustEvaluation is true.  This adds that call and moves what should happen
1447         after that to NetworkLoad::continueCanAuthenticateAgainstProtectionSpace.
1448
1449         * NetworkProcess/NetworkLoad.cpp:
1450         (WebKit::NetworkLoad::didReceiveChallenge):
1451         (WebKit::NetworkLoad::didReceiveResponse):
1452         (WebKit::NetworkLoad::continueCanAuthenticateAgainstProtectionSpace):
1453         * NetworkProcess/NetworkLoad.h:
1454         * NetworkProcess/NetworkSession.h:
1455         * Shared/Authentication/AuthenticationManager.h:
1456
1457 2015-12-01  Hunseop Jeong  <hs85.jeong@samsung.com>
1458
1459         Unreviewed, fix build after r192931.
1460
1461         * CMakeLists.txt: Remove the WKOriginDataManager in CMakeLists.txt.
1462
1463 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
1464
1465         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
1466         https://bugs.webkit.org/show_bug.cgi?id=150792
1467
1468         Reviewed by Saam Barati.
1469
1470         * Configurations/FeatureDefines.xcconfig:
1471
1472 2015-12-01  Commit Queue  <commit-queue@webkit.org>
1473
1474         Unreviewed, rolling out r192914.
1475         https://bugs.webkit.org/show_bug.cgi?id=151734
1476
1477         JSC tests for this change are failing on 32 and 64-bit bots
1478         (Requested by ryanhaddad on #webkit).
1479
1480         Reverted changeset:
1481
1482         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
1483         enable this feature"
1484         https://bugs.webkit.org/show_bug.cgi?id=150792
1485         http://trac.webkit.org/changeset/192914
1486
1487 2015-12-01  Anders Carlsson  <andersca@apple.com>
1488
1489         Remove WKOriginDataManager
1490         https://bugs.webkit.org/show_bug.cgi?id=151723
1491
1492         Reviewed by Andy Estes.
1493
1494         * UIProcess/API/C/WKOriginDataManager.cpp: Removed.
1495         (WKOriginDataManagerGetTypeID): Deleted.
1496         (WKOriginDataManagerGetOrigins): Deleted.
1497         (WKOriginDataManagerDeleteEntriesForOrigin): Deleted.
1498         (WKOriginDataManagerDeleteEntriesModifiedBetweenDates): Deleted.
1499         (WKOriginDataManagerDeleteAllEntries): Deleted.
1500         * UIProcess/API/C/WKOriginDataManager.h: Removed.
1501         * WebKit2.xcodeproj/project.pbxproj:
1502
1503 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
1504
1505         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
1506         https://bugs.webkit.org/show_bug.cgi?id=150792
1507
1508         Reviewed by Saam Barati.
1509
1510         * Configurations/FeatureDefines.xcconfig:
1511
1512 2015-12-01  Sam Weinig  <sam@webkit.org>
1513
1514         Need completionHandler-based WebKit C SPI for alert, confirm, and prompt
1515         <rdar://problem/23320863>
1516         https://bugs.webkit.org/show_bug.cgi?id=151708
1517
1518         Reviewed by Anders Carlsson.
1519
1520         Add listener based versions of alert, confirm and prompt.
1521
1522         * Shared/API/APIObject.h:
1523         * Shared/API/c/WKBase.h:
1524         * UIProcess/API/C/WKPage.cpp:
1525         (WebKit::RunJavaScriptAlertResultListener::create):
1526         (WebKit::RunJavaScriptAlertResultListener::~RunJavaScriptAlertResultListener):
1527         (WebKit::RunJavaScriptAlertResultListener::call):
1528         (WebKit::RunJavaScriptAlertResultListener::RunJavaScriptAlertResultListener):
1529         (WebKit::RunJavaScriptConfirmResultListener::create):
1530         (WebKit::RunJavaScriptConfirmResultListener::~RunJavaScriptConfirmResultListener):
1531         (WebKit::RunJavaScriptConfirmResultListener::call):
1532         (WebKit::RunJavaScriptConfirmResultListener::RunJavaScriptConfirmResultListener):
1533         (WebKit::RunJavaScriptPromptResultListener::create):
1534         (WebKit::RunJavaScriptPromptResultListener::~RunJavaScriptPromptResultListener):
1535         (WebKit::RunJavaScriptPromptResultListener::call):
1536         (WebKit::RunJavaScriptPromptResultListener::RunJavaScriptPromptResultListener):
1537         (WKPageSetPageUIClient):
1538         * UIProcess/API/C/WKPageUIClient.h:
1539
1540 2015-12-01  Anders Carlsson  <andersca@apple.com>
1541
1542         Remove WebKit2.framework
1543         https://bugs.webkit.org/show_bug.cgi?id=151715
1544
1545         Reviewed by Dan Bernstein.
1546
1547         * Configurations/WebKit2.xcconfig: Removed.
1548         * UIProcess/API/Cocoa/WebKit2.h: Removed.
1549         * WebKit2.xcodeproj/project.pbxproj:
1550         * mac/Info-WebKit2.plist: Removed.
1551         * mac/MigrateHeadersToWebKit2.make: Removed.
1552         * mac/WebKit2.m: Removed.
1553
1554 2015-12-01  Alex Christensen  <achristensen@webkit.org>
1555
1556         Use Optional for matrix inverses
1557         https://bugs.webkit.org/show_bug.cgi?id=151575
1558
1559         Reviewed by Myles C. Maxfield.
1560
1561         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1562         (WebKit::NetscapePlugin::convertFromRootView):
1563         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
1564         (WebKit::NetscapePlugin::convertPoint):
1565         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
1566         (WebKit::PDFPlugin::convertFromPDFViewToRootView):
1567         (WebKit::PDFPlugin::convertFromPDFViewToScreen):
1568         (WebKit::PDFPlugin::boundsOnScreen):
1569         (WebKit::PDFPlugin::geometryDidChange):
1570         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1571         (WebKit::PDFPlugin::geometryDidChange):
1572
1573 2015-12-01  Tim Horton  <timothy_horton@apple.com>
1574
1575         Remove swipe snapshot before main document load if scroll position is already restored
1576         https://bugs.webkit.org/show_bug.cgi?id=151224
1577
1578         Reviewed by Darin Adler.
1579
1580         * UIProcess/Cocoa/WebViewImpl.h:
1581         * UIProcess/Cocoa/WebViewImpl.mm:
1582         (WebKit::WebViewImpl::didRestoreScrollPosition):
1583         * UIProcess/PageClient.h:
1584         * UIProcess/WebPageProxy.cpp:
1585         (WebKit::WebPageProxy::didRestoreScrollPosition):
1586         * UIProcess/WebPageProxy.h:
1587         * UIProcess/WebPageProxy.messages.in:
1588         * UIProcess/mac/PageClientImpl.h:
1589         * UIProcess/mac/PageClientImpl.mm:
1590         (WebKit::PageClientImpl::didRestoreScrollPosition):
1591         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1592         (WebKit::WebFrameLoaderClient::didRestoreScrollPosition):
1593         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
1594         * WebProcess/WebPage/WebPage.cpp:
1595         (WebKit::WebPage::didRestoreScrollPosition):
1596         * WebProcess/WebPage/WebPage.h:
1597         Plumb didRestoreScrollPosition through to ViewGestureController (yikes!).
1598
1599         * UIProcess/ViewGestureController.cpp:
1600         (WebKit::ViewGestureController::didFirstVisuallyNonEmptyLayoutForMainFrame):
1601         Cancel waiting for any more loads if we get to firstVisuallyNonEmptyLayout.
1602
1603         (WebKit::ViewGestureController::didReachMainFrameLoadTerminalState):
1604         Cancel waiting for scroll position restoration if we make it to main frame load,
1605         because there is a chance we won't be able to restore the old scroll position, and
1606         by main frame load time we've tried as hard as we're going to to restore it.
1607
1608         * UIProcess/mac/ViewGestureControllerMac.mm:
1609         (WebKit::ViewGestureController::endSwipeGesture):
1610         Make some legacy-style-only code clearer that it's legacy-style-only.
1611         Wait for scroll position restoration.
1612
1613 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1614
1615         REGRESSION(r192834): [GTK] Test /webkit2/WebKitWebView/editor-state/typing-attributes times out after r192834
1616         https://bugs.webkit.org/show_bug.cgi?id=151699
1617
1618         Reviewed by Tim Horton.
1619
1620         In r192834 the code to send EditorStateChanged message to the UI
1621         process from WebPage::didChangeSelection was removed for non-mac
1622         ports.
1623
1624         * WebProcess/WebPage/WebPage.cpp:
1625         (WebKit::WebPage::didChangeSelection): Send EditorStateChanged
1626         message to the UI process also for non-mac ports, as before r192834.
1627
1628 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1629
1630         Unreviewed. Fix timeouts in several HTTP layout tests in GTK+ after r192796.
1631
1632         In r192796, the initialization of m_ignoreTLSErrors in
1633         WebProcessPool was removed by mistake, making all HTTP tests that use
1634         HTTPS fail due to invalid certificate errors.
1635
1636         * UIProcess/WebProcessPool.h: Bring back m_ignoreTLSErrors initialization.
1637
1638 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1639
1640         REGRESSION(r192247): [GTK] ASSERTION FAILED: type == WebCore::ActionType || type == WebCore::CheckableActionType || type == WebCore::SeparatorType
1641         https://bugs.webkit.org/show_bug.cgi?id=151513
1642
1643         Reviewed by Martin Robinson.
1644
1645         This happens because we are using our own WebContextMenuItemGtk
1646         derived from WebContextMenuItemData, but using our own submenu
1647         items handling. We are using the non-submenu
1648         WebContextMenuItemData constructor to create our submenu items
1649         too, because WebContextMenuItemData always expect the submenu
1650         items to be passed to the constructor, but we have a set_submenu
1651         method in the public API. So we consider that a
1652         WebContextMenuItemGtk is SubmenuType if it has submenu items, but
1653         we use the action type internally. When converting a
1654         WebContextMenuItemGtk to a generic WebContextMenuItemData, we
1655         correctly set the type and pass the submenu items to the
1656         approriate constructor.
1657
1658         * Shared/gtk/WebContextMenuItemGtk.cpp:
1659         (WebKit::WebContextMenuItemGtk::WebContextMenuItemGtk): When
1660         constructing from a WebContextMenuItemData, set the type as
1661         ActionType when it's a submenu type.
1662         * Shared/gtk/WebContextMenuItemGtk.h:
1663         (WebKit::WebContextMenuItemGtk::type): Return SubmenuType if
1664         submenu items vector is not empty, otherwise use the parent method.
1665         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
1666         (webkit_context_menu_item_new_with_submenu): Create the
1667         WebContextMenuItemGtk as ActionType.
1668
1669 2015-12-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1670
1671         Unreviewed. Add missing inspector files to the GTK+ build.
1672
1673         * PlatformGTK.cmake: Add also Debug css files.
1674
1675 2015-11-30  Alexey Proskuryakov  <ap@apple.com>
1676
1677         Build fix for some compiler versions.
1678
1679         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm: Disable deprecation warnings while
1680         processing SOFT_LINK_CLASS too.
1681
1682 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
1683
1684         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
1685         https://bugs.webkit.org/show_bug.cgi?id=149309
1686         <rdar://problem/22748363>
1687
1688         Reviewed by Brent Fulgham.
1689
1690         Callback of bundle clients could kill the documentloader. Therefore, make a copy
1691         of the navigationID before invoking the callback.
1692
1693         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1694         (WebKit::WebFrameLoaderClient::dispatchDidChangeLocationWithinPage):
1695         (WebKit::WebFrameLoaderClient::dispatchDidPushStateWithinPage):
1696         (WebKit::WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
1697         (WebKit::WebFrameLoaderClient::dispatchDidPopStateWithinPage):
1698         (WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
1699         (WebKit::WebFrameLoaderClient::dispatchDidFinishDocumentLoad):
1700         (WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
1701
1702 2015-11-30  Tim Horton  <timothy_horton@apple.com>
1703
1704         Get rid of the !USE(ASYNC_NSTEXTINPUTCLIENT) codepath
1705         https://bugs.webkit.org/show_bug.cgi?id=151673
1706
1707         Reviewed by Anders Carlsson.
1708
1709         * UIProcess/API/Cocoa/WKWebView.mm:
1710         * UIProcess/API/mac/WKView.mm:
1711         * UIProcess/Cocoa/WebViewImpl.h:
1712         * UIProcess/Cocoa/WebViewImpl.mm:
1713         (WebKit::WebViewImpl::resignFirstResponder): Deleted.
1714         (WebKit::WebViewImpl::interpretKeyEvent): Deleted.
1715         (WebKit::WebViewImpl::executeSavedKeypressCommands): Deleted.
1716         (WebKit::WebViewImpl::doCommandBySelector): Deleted.
1717         (WebKit::WebViewImpl::insertText): Deleted.
1718         (WebKit::WebViewImpl::inputContext): Deleted.
1719         (WebKit::WebViewImpl::selectedRange): Deleted.
1720         (WebKit::WebViewImpl::hasMarkedText): Deleted.
1721         (WebKit::WebViewImpl::unmarkText): Deleted.
1722         (WebKit::WebViewImpl::setMarkedText): Deleted.
1723         (WebKit::WebViewImpl::markedRange): Deleted.
1724         (WebKit::WebViewImpl::attributedSubstringForProposedRange): Deleted.
1725         (WebKit::WebViewImpl::characterIndexForPoint): Deleted.
1726         (WebKit::WebViewImpl::firstRectForCharacterRange): Deleted.
1727         (WebKit::WebViewImpl::performKeyEquivalent): Deleted.
1728         (WebKit::WebViewImpl::keyUp): Deleted.
1729         (WebKit::WebViewImpl::keyDown): Deleted.
1730         (WebKit::WebViewImpl::flagsChanged): Deleted.
1731         * UIProcess/PageClient.h:
1732         * UIProcess/WebPageProxy.cpp:
1733         (WebKit::WebPageProxy::WebPageProxy): Deleted.
1734         (WebKit::WebPageProxy::resetStateAfterProcessExited): Deleted.
1735         * UIProcess/WebPageProxy.h:
1736         * UIProcess/mac/PageClientImpl.h:
1737         * UIProcess/mac/PageClientImpl.mm:
1738         (WebKit::PageClientImpl::notifyApplicationAboutInputContextChange): Deleted.
1739         * UIProcess/mac/WebPageProxyMac.mm:
1740         (WebKit::WebPageProxy::setComposition): Deleted.
1741         (WebKit::WebPageProxy::confirmComposition): Deleted.
1742         (WebKit::WebPageProxy::insertText): Deleted.
1743         (WebKit::WebPageProxy::insertDictatedText): Deleted.
1744         (WebKit::WebPageProxy::getMarkedRange): Deleted.
1745         (WebKit::WebPageProxy::getSelectedRange): Deleted.
1746         (WebKit::WebPageProxy::getAttributedSubstringFromRange): Deleted.
1747         (WebKit::WebPageProxy::characterIndexForPoint): Deleted.
1748         (WebKit::WebPageProxy::firstRectForCharacterRange): Deleted.
1749         (WebKit::WebPageProxy::executeKeypressCommands): Deleted.
1750         (WebKit::WebPageProxy::cancelComposition): Deleted.
1751         (WebKit::WebPageProxy::editorStateChanged): Deleted.
1752         * WebProcess/WebPage/WebPage.cpp:
1753         (WebKit::WebPage::didChangeSelection):
1754         * WebProcess/WebPage/WebPage.h:
1755         * WebProcess/WebPage/WebPage.messages.in:
1756         * WebProcess/WebPage/mac/WebPageMac.mm:
1757         (WebKit::WebPage::setComposition): Deleted.
1758         (WebKit::WebPage::confirmComposition): Deleted.
1759         (WebKit::WebPage::insertText): Deleted.
1760         (WebKit::WebPage::insertDictatedText): Deleted.
1761         (WebKit::WebPage::getMarkedRange): Deleted.
1762         (WebKit::WebPage::getSelectedRange): Deleted.
1763         (WebKit::WebPage::getAttributedSubstringFromRange): Deleted.
1764         (WebKit::WebPage::characterIndexForPoint): Deleted.
1765         (WebKit::WebPage::firstRectForCharacterRange): Deleted.
1766         (WebKit::WebPage::executeKeypressCommands): Deleted.
1767         (WebKit::WebPage::cancelComposition): Deleted.
1768
1769 2015-11-30  Tim Horton  <timothy_horton@apple.com>
1770
1771         Remove some unused synchronous drawing SPI
1772         https://bugs.webkit.org/show_bug.cgi?id=151672
1773
1774         Reviewed by Anders Carlsson.
1775
1776         * UIProcess/API/Cocoa/WKViewPrivate.h:
1777         * UIProcess/API/mac/WKView.mm:
1778         (-[WKView forceAsyncDrawingAreaSizeUpdate:]): Deleted.
1779         (-[WKView waitForAsyncDrawingAreaSizeUpdate]): Deleted.
1780         * UIProcess/Cocoa/WebViewImpl.h:
1781         * UIProcess/Cocoa/WebViewImpl.mm:
1782         (WebKit::WebViewImpl::forceAsyncDrawingAreaSizeUpdate): Deleted.
1783         (WebKit::WebViewImpl::waitForAsyncDrawingAreaSizeUpdate): Deleted.
1784
1785 2015-11-30  Tim Horton  <timothy_horton@apple.com>
1786
1787         Get rid of the legacy swipe shadow style
1788         https://bugs.webkit.org/show_bug.cgi?id=151671
1789
1790         Reviewed by Anders Carlsson.
1791
1792         * UIProcess/mac/ViewGestureControllerMac.mm:
1793         (WebKit::ViewGestureController::beginSwipeGesture): Deleted.
1794         (WebKit::ViewGestureController::handleSwipeGesture): Deleted.
1795         (WebKit::ViewGestureController::removeSwipeSnapshot): Deleted.
1796         It is no longer needed.
1797
1798 2015-11-30  Tim Horton  <timothy_horton@apple.com>
1799
1800         [iOS] Option-up and Option-down should scroll a little less than a full page
1801         https://bugs.webkit.org/show_bug.cgi?id=151538
1802         <rdar://problem/23642675>
1803
1804         Reviewed by Simon Fraser.
1805
1806         * UIProcess/ios/WKContentViewInteraction.mm:
1807         (-[WKContentView _scrollOffsetForEvent:]):
1808         (-[WKContentView _interpretKeyEvent:isCharEvent:]):
1809         Clean up the code a little, and adjust so that we *always* use pageStep
1810         instead of just scrolling by the unobscured rect when scrolling by a page.
1811         Previously, we did for the spacebar, but not for option-up and option-down.
1812
1813 2015-11-30  Brian Burg  <bburg@apple.com>
1814
1815         Web Inspector: using "Reload Web Inspector" when docked breaks dock-specific styles
1816         https://bugs.webkit.org/show_bug.cgi?id=151642
1817
1818         Reviewed by Timothy Hatcher.
1819
1820         After a frontend loads, explicitly tell it about the current dock
1821         state. This is necessary for force-reloading the inspector, since
1822         the dock state isn't sent from UIProcess in this case.
1823
1824         * WebProcess/WebPage/WebInspectorUI.cpp:
1825         (WebKit::WebInspectorUI::frontendLoaded):
1826         (WebKit::WebInspectorUI::setDockingUnavailable):
1827         * WebProcess/WebPage/WebInspectorUI.h:
1828
1829 2015-11-30  Alex Christensen  <achristensen@webkit.org>
1830
1831         Make ProcessModel always MultipleSecondaryProcesses
1832         https://bugs.webkit.org/show_bug.cgi?id=151662
1833
1834         Reviewed by Antti Koivisto.
1835
1836         Single WebProcess behavior can still be achieved by setting the maximum number of WebProcesses to 1.
1837
1838         * Shared/API/c/WKDeprecatedFunctions.cpp:
1839         (WKContextSetUsesNetworkProcess):
1840         (WKContextSetProcessModel):
1841         (WKContextGetProcessModel):
1842         (WKGraphicsContextGetCGContext):
1843         * UIProcess/API/APIProcessPoolConfiguration.cpp:
1844         (API::ProcessPoolConfiguration::createWithLegacyOptions):
1845         (API::ProcessPoolConfiguration::copy):
1846         * UIProcess/API/APIProcessPoolConfiguration.h:
1847         * UIProcess/API/C/WKAPICast.h:
1848         (WebKit::toAPI):
1849         (WebKit::toFontSmoothingLevel):
1850         (WebKit::toProcessModel): Deleted.
1851         * UIProcess/API/C/WKContext.cpp:
1852         (WKContextGetCacheModel):
1853         (WKContextSetMaximumNumberOfProcesses):
1854         (WKContextSetProcessModel): Deleted.
1855         (WKContextGetProcessModel): Deleted.
1856         * UIProcess/API/C/WKContext.h:
1857         * UIProcess/API/Cocoa/WKProcessGroup.mm:
1858         (-[WKProcessGroup initWithInjectedBundleURL:]):
1859         * UIProcess/API/Cocoa/WKProcessPool.mm:
1860         * UIProcess/API/efl/ewk_context.cpp:
1861         (EwkContext::cacheModel):
1862         (EwkContext::setProcessModel):
1863         (EwkContext::processModel):
1864         (EwkContext::clearResourceCache):
1865         (EwkContext::jsGlobalContext):
1866         (ewk_context_message_from_extensions_callback_set):
1867         (ewk_context_process_model_set):
1868         (ewk_context_process_model_get):
1869         (ewk_context_tls_error_policy_get):
1870         (toWKProcessModel): Deleted.
1871         (toEwkProcessModel): Deleted.
1872         * UIProcess/API/gtk/WebKitWebContext.cpp:
1873         * UIProcess/ProcessModel.h: Removed.
1874         * UIProcess/WebCookieManagerProxy.cpp:
1875         (WebKit::WebCookieManagerProxy::shouldTerminate):
1876         (WebKit::WebCookieManagerProxy::refWebContextSupplement):
1877         * UIProcess/WebInspectorProxy.cpp:
1878         (WebKit::WebInspectorProxy::inspectorProcessPool):
1879         * UIProcess/WebPageProxy.cpp:
1880         (WebKit::WebPageProxy::reattachToWebProcess):
1881         * UIProcess/WebProcessPool.cpp:
1882         (WebKit::WebProcessPool::create):
1883         (WebKit::WebProcessPool::setDownloadClient):
1884         (WebKit::WebProcessPool::setMaximumNumberOfProcesses):
1885         (WebKit::WebProcessPool::processDidCachePage):
1886         (WebKit::WebProcessPool::createNewWebProcess):
1887         (WebKit::WebProcessPool::disconnectProcess):
1888         (WebKit::WebProcessPool::createWebPage):
1889         (WebKit::WebProcessPool::postMessageToInjectedBundle):
1890         (WebKit::WebProcessPool::requestWebContentStatistics):
1891         (WebKit::WebProcessPool::requestNetworkingStatistics):
1892         (WebKit::WebProcessPool::setProcessModel): Deleted.
1893         (WebKit::WebProcessPool::ensureSharedWebProcess): Deleted.
1894         * UIProcess/WebProcessPool.h:
1895         (WebKit::WebProcessPool::sendToAllProcessesRelaunchingThemIfNecessary):
1896         (WebKit::WebProcessPool::sendToOneProcess):
1897         * WebKit2.xcodeproj/project.pbxproj:
1898
1899 2015-11-30  Chris Dumez  <cdumez@apple.com>
1900
1901         [WK2][Cache] We should not speculatively revalidate transient resources
1902         https://bugs.webkit.org/show_bug.cgi?id=151402
1903         <rdar://problem/23092196>
1904
1905         Reviewed by Antti Koivisto.
1906
1907         We should not speculatively revalidate transient resources. This patch
1908         adds a simple and conservative algorithm to detect that a subresource is
1909         transient and then ignores those when doing the speculative revalidation.
1910
1911         The algorithm is question marks as transient all subresources that are
1912         not common to the 2 last loads of a main resource.
1913
1914         This is not perfect as I see the number of non-speculative revalidations
1915         going up to 11-12 from 9 in the context of the warm PLT. However, it is
1916         best to be conservative at first and we can improve this later.
1917
1918         * NetworkProcess/cache/NetworkCache.cpp:
1919         (WebKit::NetworkCache::Cache::retrieve):
1920         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.cpp:
1921         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::create):
1922         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::~PendingFrameLoad):
1923         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::registerSubresource):
1924         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::markLoadAsCompleted):
1925         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::setExistingSubresourcesEntry):
1926         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::PendingFrameLoad):
1927         (WebKit::NetworkCache::SpeculativeLoadManager::PendingFrameLoad::saveToDiskIfReady):
1928         (WebKit::NetworkCache::SpeculativeLoadManager::registerLoad):
1929         (WebKit::NetworkCache::SpeculativeLoadManager::startSpeculativeRevalidation):
1930         (WebKit::NetworkCache::SpeculativeLoadManager::retrieveSubresourcesEntry):
1931         (WebKit::NetworkCache::SpeculativeLoadManager::retrieve): Deleted.
1932         (WebKit::NetworkCache::SpeculativeLoadManager::revalidateEntry): Deleted.
1933         * NetworkProcess/cache/NetworkCacheSpeculativeLoadManager.h:
1934         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.cpp:
1935         (WebKit::NetworkCache::SubresourcesEntry::encodeAsStorageRecord):
1936         (WebKit::NetworkCache::SubresourcesEntry::decodeStorageRecord):
1937         (WebKit::NetworkCache::SubresourcesEntry::SubresourcesEntry):
1938         (WebKit::NetworkCache::SubresourcesEntry::updateSubresourceKeys):
1939         * NetworkProcess/cache/NetworkCacheSubresourcesEntry.h:
1940         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::encode):
1941         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::decode):
1942         (WebKit::NetworkCache::SubresourcesEntry::SubresourceInfo::SubresourceInfo):
1943         (WebKit::NetworkCache::SubresourcesEntry::subresources):
1944
1945 2015-11-30  Brent Fulgham  <bfulgham@apple.com>
1946
1947         [Mac] Add font service permission to the sandbox profile
1948         https://bugs.webkit.org/show_bug.cgi?id=151509
1949         <rdar://problem/23508753>
1950
1951         Reviewed by Anders Carlsson.
1952
1953         Update the sandbox profile for Mac WebKit to allow access to the
1954         "com.apple.fonts" service.
1955
1956         * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
1957         * WebProcess/com.apple.WebProcess.sb.in:
1958
1959 2015-11-30  Alex Christensen  <achristensen@webkit.org>
1960
1961         Make usesNetworkProcess always true
1962         https://bugs.webkit.org/show_bug.cgi?id=151580
1963
1964         Reviewed by Darin Adler.
1965
1966         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1967         (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
1968         * Shared/API/c/WKDeprecatedFunctions.cpp:
1969         (WKInspectorToggleJavaScriptProfiling):
1970         (WKContextSetUsesNetworkProcess):
1971         (WKGraphicsContextGetCGContext):
1972         * Shared/Network/CustomProtocols/Cocoa/CustomProtocolManagerCocoa.mm:
1973         (WebKit::CustomProtocolManager::initializeConnection):
1974         (WebKit::CustomProtocolManager::initialize):
1975         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1976         * Shared/Network/CustomProtocols/soup/CustomProtocolManagerSoup.cpp:
1977         (WebKit::CustomProtocolManager::initialize):
1978         * Shared/WebProcessCreationParameters.cpp:
1979         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
1980         (WebKit::WebProcessCreationParameters::encode):
1981         (WebKit::WebProcessCreationParameters::decode):
1982         * Shared/WebProcessCreationParameters.h:
1983         * UIProcess/API/APIProcessPoolConfiguration.cpp:
1984         (API::ProcessPoolConfiguration::createWithLegacyOptions):
1985         (API::ProcessPoolConfiguration::copy):
1986         * UIProcess/API/APIProcessPoolConfiguration.h:
1987         * UIProcess/API/C/WKContext.cpp:
1988         (WKContextSetJavaScriptGarbageCollectorTimerEnabled):
1989         (WKContextUseTestingNetworkSession):
1990         (WKContextSetUsesNetworkProcess): Deleted.
1991         * UIProcess/API/C/WKContextPrivate.h:
1992         * UIProcess/API/Cocoa/WKProcessGroup.mm:
1993         (-[WKProcessGroup initWithInjectedBundleURL:]):
1994         * UIProcess/API/efl/ewk_context.cpp:
1995         (EwkContext::setProcessModel):
1996         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
1997         (WebKit::WebProcessPool::updateProcessSuppressionState):
1998         (WebKit::WebProcessPool::platformInitializeWebProcess):
1999         * UIProcess/Downloads/DownloadProxy.cpp:
2000         (WebKit::DownloadProxy::cancel):
2001         (WebKit::DownloadProxy::invalidate):
2002         * UIProcess/WebCookieManagerProxy.cpp:
2003         (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
2004         (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
2005         * UIProcess/WebProcessPool.cpp:
2006         (WebKit::WebProcessPool::WebProcessPool):
2007         (WebKit::m_processSuppressionDisabledForPageCounter):
2008         (WebKit::WebProcessPool::networkingProcessConnection):
2009         (WebKit::WebProcessPool::languageChanged):
2010         (WebKit::WebProcessPool::textCheckerStateChanged):
2011         (WebKit::WebProcessPool::ensureNetworkProcess):
2012         (WebKit::WebProcessPool::setAnyPageGroupMightHavePrivateBrowsingEnabled):
2013         (WebKit::WebProcessPool::createNewWebProcess):
2014         (WebKit::WebProcessPool::download):
2015         (WebKit::WebProcessPool::resumeDownload):
2016         (WebKit::WebProcessPool::setCanHandleHTTPSServerTrustEvaluation):
2017         (WebKit::WebProcessPool::setCacheModel):
2018         (WebKit::WebProcessPool::createDownloadProxy):
2019         (WebKit::WebProcessPool::addMessageReceiver):
2020         (WebKit::WebProcessPool::allowSpecificHTTPSCertificateForHost):
2021         (WebKit::WebProcessPool::setHTTPPipeliningEnabled):
2022         (WebKit::WebProcessPool::requestNetworkingStatistics):
2023         (WebKit::WebProcessPool::setUsesNetworkProcess): Deleted.
2024         (WebKit::WebProcessPool::usesNetworkProcess): Deleted.
2025         * UIProcess/WebProcessPool.h:
2026         (WebKit::WebProcessPool::sendToNetworkingProcess):
2027         (WebKit::WebProcessPool::sendToNetworkingProcessRelaunchingIfNecessary):
2028         * UIProcess/WebProcessProxy.cpp:
2029         (WebKit::WebProcessProxy::shutDown):
2030         (WebKit::WebProcessProxy::removeWebPage):
2031         (WebKit::WebProcessProxy::canTerminateChildProcess):
2032         (WebKit::WebProcessProxy::updateTextCheckerState):
2033         (WebKit::WebProcessProxy::didSaveToPageCache):
2034         (WebKit::WebProcessProxy::didSetAssertionState):
2035         (WebKit::WebProcessProxy::createDownloadProxy): Deleted.
2036         * UIProcess/WebProcessProxy.h:
2037         * UIProcess/efl/WebProcessPoolEfl.cpp:
2038         (WebKit::WebProcessPool::platformInitializeWebProcess):
2039         (WebKit::WebProcessPool::setIgnoreTLSErrors):
2040         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
2041         (WebKit::BlobRegistryProxy::registerFileBlobURL):
2042         (WebKit::BlobRegistryProxy::registerBlobURL):
2043         (WebKit::BlobRegistryProxy::unregisterBlobURL):
2044         (WebKit::BlobRegistryProxy::registerBlobURLForSlice):
2045         (WebKit::BlobRegistryProxy::blobSize):
2046         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2047         (WebKit::WebPlatformStrategies::cookiesForDOM):
2048         (WebKit::WebPlatformStrategies::setCookiesFromDOM):
2049         (WebKit::WebPlatformStrategies::cookiesEnabled):
2050         (WebKit::WebPlatformStrategies::cookieRequestHeaderFieldValue):
2051         (WebKit::WebPlatformStrategies::getRawCookies):
2052         (WebKit::WebPlatformStrategies::deleteCookie):
2053         (WebKit::WebPlatformStrategies::resourceLoadScheduler):
2054         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
2055         (WebKit::WebPlatformStrategies::createPingHandle):
2056         (WebKit::WebPlatformStrategies::createBlobRegistry):
2057         * WebProcess/WebPage/WebFrame.cpp:
2058         (WebKit::WebFrame::startDownload):
2059         (WebKit::WebFrame::convertMainResourceLoadToDownload):
2060         (WebKit::WebFrame::source):
2061         * WebProcess/WebProcess.cpp:
2062         (WebKit::WebProcess::WebProcess):
2063         (WebKit::m_webSQLiteDatabaseTracker):
2064         (WebKit::WebProcess::initializeConnection):
2065         (WebKit::WebProcess::initializeWebProcess):
2066         (WebKit::WebProcess::ensureNetworkProcessConnection):
2067         (WebKit::WebProcess::destroyPrivateBrowsingSession):
2068         (WebKit::WebProcess::pluginProcessConnectionManager):
2069         (WebKit::WebProcess::shouldTerminate):
2070         (WebKit::WebProcess::setInjectedBundleParameters):
2071         (WebKit::WebProcess::networkConnection):
2072         (WebKit::WebProcess::setEnhancedAccessibility):
2073         (WebKit::WebProcess::prefetchDNS):
2074         (WebKit::WebProcess::didCreateDownload): Deleted.
2075         (WebKit::WebProcess::didDestroyDownload): Deleted.
2076         (WebKit::WebProcess::downloadProxyConnection): Deleted.
2077         (WebKit::WebProcess::downloadsAuthenticationManager): Deleted.
2078         (WebKit::WebProcess::downloadManager): Deleted.
2079         (WebKit::WebProcess::usesNetworkProcess): Deleted.
2080         (WebKit::WebProcess::downloadRequest): Deleted.
2081         (WebKit::WebProcess::resumeDownload): Deleted.
2082         (WebKit::WebProcess::cancelDownload): Deleted.
2083         * WebProcess/WebProcess.h:
2084         (WebKit::WebProcess::textCheckerState):
2085         (WebKit::WebProcess::eventDispatcher):
2086         * WebProcess/WebProcess.messages.in:
2087         * WebProcess/soup/WebProcessSoup.cpp:
2088         (WebKit::WebProcess::platformSetCacheModel):
2089         (WebKit::WebProcess::platformClearResourceCaches):
2090         (WebKit::WebProcess::platformInitializeWebProcess):
2091         (WebKit::WebProcess::platformTerminate):
2092         (WebKit::getCacheDiskFreeSize): Deleted.
2093         (WebKit::setSoupSessionAcceptLanguage): Deleted.
2094         (WebKit::languageChanged): Deleted.
2095         (WebKit::WebProcess::setIgnoreTLSErrors): Deleted.
2096         (WebKit::WebProcess::allowSpecificHTTPSCertificateForHost): Deleted.
2097
2098 2015-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2099
2100         [GTK] UI process crash when the screensaver DBus proxy is being created while the web view is destroyed
2101         https://bugs.webkit.org/show_bug.cgi?id=151653
2102
2103         Reviewed by Martin Robinson.
2104
2105         We correctly cancel the proxy creation, but when the async ready
2106         callback is called, the view could be destroyed already. In that
2107         case g_dbus_proxy_new_for_bus_finish() will return nullptr and
2108         fail with cancelled error, but we are using the passed web view
2109         without checking first if the creation failed or not.
2110
2111         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2112         (screenSaverProxyCreatedCallback):
2113
2114 2015-11-28  Tim Horton  <timothy_horton@apple.com>
2115
2116         Stop unnecessarily copying WKWebViewConfiguration in a few places
2117         https://bugs.webkit.org/show_bug.cgi?id=151639
2118
2119         Reviewed by Dan Bernstein.
2120
2121         * UIProcess/API/Cocoa/WKWebView.mm:
2122         (-[WKWebView initWithFrame:configuration:]):
2123         (-[WKWebView dealloc]):
2124         (-[WKWebView _contentProviderRegistry]):
2125         (-[WKWebView _selectionGranularity]):
2126         (-[WKWebView _setHasCustomContentView:loadedMIMEType:]):
2127         * UIProcess/API/Cocoa/WKWebViewInternal.h:
2128         * UIProcess/ios/PageClientImplIOS.mm:
2129         (WebKit::PageClientImpl::mimeTypesWithCustomContentProviders):
2130         * UIProcess/ios/WKContentViewInteraction.mm:
2131         (-[WKContentView setupInteraction]):
2132         (-[WKContentView _stopAssistingKeyboard]):
2133         Looking at allocation traces I noticed that we were making way more
2134         WKWebViewConfigurations than made sense; looking at backtraces I found
2135         a few internal callers of -[WKWebView configuration], which copies the
2136         configuration. There's no reason for these internal callers to make 
2137         such a copy, though.
2138
2139         I'm not exactly sure what the usual approach is here, but I added
2140         getters so WKContentViewInteraction and PageClientImplIOS can get to
2141         the values they're looking for without using the configuration property.
2142
2143 2015-11-27  Brady Eidson  <beidson@apple.com>
2144
2145         Modern IDB: Class-ify IDBGetResult making it impossible to get the data members wrong.
2146         https://bugs.webkit.org/show_bug.cgi?id=151627
2147
2148         Reviewed by Alexey Proskuryakov.
2149
2150         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
2151         (WebKit::UniqueIDBDatabase::getRecordFromBackingStore):
2152         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
2153         
2154         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
2155         
2156         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
2157         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::getIndexRecord):
2158         
2159         * Shared/WebCoreArgumentCoders.cpp:
2160         (IPC::ArgumentCoder<IDBGetResult>::encode):
2161         (IPC::ArgumentCoder<IDBGetResult>::decode):
2162         * Shared/WebCoreArgumentCoders.h:
2163         
2164         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
2165
2166 2015-11-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2167
2168         [GTK] Remove the remaining uses of GMainLoopSource
2169         https://bugs.webkit.org/show_bug.cgi?id=151632
2170
2171         Reviewed by Žan Doberšek.
2172
2173         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2174         (_WebKitWebViewBasePrivate::_WebKitWebViewBasePrivate):
2175         (_WebKitWebViewBasePrivate::clearRedirectedWindowSoonTimerFired):
2176         (webkitWebViewBaseClearRedirectedWindowSoon):
2177         (webkitWebViewBaseEnterAcceleratedCompositingMode):
2178
2179 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2180
2181         [GTK] Use the network process unconditionally
2182         https://bugs.webkit.org/show_bug.cgi?id=151541
2183
2184         Reviewed by Alex Christensen.
2185
2186         Make the shared secondary process model become multiple secondary
2187         process model with a limit of 1 web process. Use the same options
2188         when creating a context with legacy configuration (unit tests and
2189         inspector proxy).
2190
2191         * NetworkProcess/gtk/NetworkProcessMainGtk.cpp:
2192         * UIProcess/API/APIProcessPoolConfiguration.cpp:
2193         (API::ProcessPoolConfiguration::createWithLegacyOptions):
2194         * UIProcess/API/gtk/WebKitWebContext.cpp:
2195         (webkitWebContextConstructed):
2196         (webkit_web_context_set_process_model):
2197         (webkit_web_context_get_process_model):
2198         (webkit_web_context_set_web_process_count_limit):
2199         (webkit_web_context_get_web_process_count_limit):
2200         (toWebKitProcessModel): Deleted.
2201         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2202         * UIProcess/gtk/WebProcessPoolGtk.cpp:
2203         (WebKit::WebProcessPool::setIgnoreTLSErrors):
2204         (WebKit::WebProcessPool::platformInitializeWebProcess):
2205
2206 2015-11-23  Brian Burg  <bburg@apple.com>
2207
2208         Web Inspector: inspector settings should not be shared between different inspection levels
2209         https://bugs.webkit.org/show_bug.cgi?id=151151
2210
2211         Reviewed by Timothy Hatcher.
2212
2213         In WebKit2, we already track the inspection level of WebPages in order to give inspectors
2214         different page groups. Send the inspection level to WebInspectorUI WebProcess when
2215         establishing a connection from the UIProcess. Use this number in the FrontendClient.
2216
2217         * UIProcess/WebInspectorProxy.cpp:
2218         (WebKit::WebInspectorProxy::inspectionLevel): Renamed from inspectorLevel to be consistent.
2219         (WebKit::WebInspectorProxy::inspectorPageGroupIdentifier):
2220         (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess):
2221         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
2222         (WebKit::WebInspectorProxy::createInspectorPage):
2223         (WebKit::WebInspectorProxy::inspectorLevel): Deleted.
2224         * UIProcess/WebInspectorProxy.h:
2225         * UIProcess/mac/WebInspectorProxyMac.mm:
2226         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
2227         * WebProcess/WebPage/WebInspectorUI.cpp:
2228         (WebKit::WebInspectorUI::establishConnection):
2229         * WebProcess/WebPage/WebInspectorUI.h:
2230         * WebProcess/WebPage/WebInspectorUI.messages.in:
2231
2232 2015-11-23  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2233
2234         REGRESSION(r188206): [EFL] Missing to adjust scrollbar size to ewk_view_contents_size_get API test
2235         https://bugs.webkit.org/show_bug.cgi?id=148735
2236
2237         Reviewed by Csaba Osztrogonác.
2238
2239         r189256 missed to adjust scrollbar size to other tests in ewk_view_contents_size_get() API test.
2240         In this case we need to apply scrollbar size to both width and height unlike previous fix. Because
2241         horizontal scrollbar is also shown since device pixel ratio(= 2.0) is adjusted.
2242
2243         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2244         (TEST_F):
2245
2246 2015-11-23  Alex Christensen  <achristensen@webkit.org>
2247
2248         Fix crash in ~WebProcessPool when using Geolocation with useNetworkProcess=true
2249         https://bugs.webkit.org/show_bug.cgi?id=151532
2250
2251         Reviewed by Benjamin Poulain.
2252
2253         * UIProcess/WebGeolocationManagerProxy.cpp:
2254         (WebKit::WebGeolocationManagerProxy::processPoolDestroyed):
2255         (WebKit::WebGeolocationManagerProxy::processDidClose):
2256         When a WebProcessPool is destroyed, only call stopUpdating if m_updateRequesters.clear()
2257         stopped the updating, like we do in WebGeolocationManagerProxy::removeRequester.
2258         Otherwise, call setEnableHighAccuracy if needed, also like we do in WebGeolocationManagerProxy::removeRequester.
2259
2260 2015-11-23  Brian Burg  <bburg@apple.com>
2261
2262         Web Inspector: when inspecting the inspector, add the inspection level to the title bar
2263         https://bugs.webkit.org/show_bug.cgi?id=151555
2264
2265         Reviewed by Timothy Hatcher.
2266
2267         If the inspection level says we are inspecting an inspector, include the level
2268         in the title bar to easily disambiguate it from the base level inspector.
2269
2270         * UIProcess/mac/WebInspectorProxyMac.mm:
2271         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
2272
2273 2015-11-23  Csaba Osztrogonác  <ossy@webkit.org>
2274
2275         Unreviewed speculative buildfix after r192701.
2276
2277         * PlatformMac.cmake:
2278
2279 2015-11-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2280
2281         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.11.2 release.
2282
2283         * gtk/NEWS: Add release notes for 2.11.2.
2284
2285 2015-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2286
2287         Unreviewed. Add missing inspector file to GTK+ compilation.
2288
2289         * PlatformGTK.cmake:
2290
2291 == Rolled over to ChangeLog-2015-11-21 ==