Skipping tests added with r191968 on win.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2015-11-03  Anders Carlsson  <andersca@apple.com>
2
3         Simplify -[_WKRemoteObjectRegistry _invokeMethod:]
4         https://bugs.webkit.org/show_bug.cgi?id=150844
5
6         Reviewed by Tim Horton.
7
8         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
9         (-[_WKRemoteObjectRegistry _invokeMethod:]):
10         (-[_WKRemoteObjectRegistry _invokeMessageWithInterfaceIdentifier:encodedInvocation:]): Deleted.
11         * Shared/API/Cocoa/_WKRemoteObjectRegistryInternal.h:
12
13 2015-11-02  Anders Carlsson  <andersca@apple.com>
14
15         CTTE the responsiveness timer getter
16         https://bugs.webkit.org/show_bug.cgi?id=150825
17
18         Reviewed by Daniel Bates.
19
20         * UIProcess/API/C/mac/WKPagePrivateMac.mm:
21         (-[WKObservablePageState _webProcessIsResponsive]):
22         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
23         (-[WKBrowsingContextController _webProcessIsResponsive]):
24         * UIProcess/API/Cocoa/WKWebView.mm:
25         (-[WKWebView _webProcessIsResponsive]):
26         * UIProcess/WebPageProxy.cpp:
27         (WebKit::WebPageProxy::reattachToWebProcessForReload):
28         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
29         (WebKit::WebPageProxy::tryClose):
30         (WebKit::WebPageProxy::loadRequest):
31         (WebKit::WebPageProxy::loadFile):
32         (WebKit::WebPageProxy::loadData):
33         (WebKit::WebPageProxy::loadHTMLString):
34         (WebKit::WebPageProxy::loadAlternateHTMLString):
35         (WebKit::WebPageProxy::loadPlainTextString):
36         (WebKit::WebPageProxy::loadWebArchiveData):
37         (WebKit::WebPageProxy::navigateToPDFLinkWithSimulatedClick):
38         (WebKit::WebPageProxy::stopLoading):
39         (WebKit::WebPageProxy::reload):
40         (WebKit::WebPageProxy::goForward):
41         (WebKit::WebPageProxy::goBack):
42         (WebKit::WebPageProxy::goToBackForwardItem):
43         (WebKit::WebPageProxy::dispatchViewStateChange):
44         (WebKit::WebPageProxy::handleMouseEvent):
45         (WebKit::WebPageProxy::sendWheelEvent):
46         (WebKit::WebPageProxy::handleKeyboardEvent):
47         (WebKit::WebPageProxy::handleGestureEvent):
48         (WebKit::WebPageProxy::handleTouchEventSynchronously):
49         (WebKit::WebPageProxy::handleTouchEvent):
50         (WebKit::WebPageProxy::closePage):
51         (WebKit::WebPageProxy::runJavaScriptAlert):
52         (WebKit::WebPageProxy::runJavaScriptConfirm):
53         (WebKit::WebPageProxy::runJavaScriptPrompt):
54         (WebKit::WebPageProxy::runBeforeUnloadConfirmPanel):
55         (WebKit::WebPageProxy::runOpenPanel):
56         (WebKit::WebPageProxy::showPopupMenu):
57         (WebKit::WebPageProxy::internalShowContextMenu):
58         (WebKit::WebPageProxy::didReceiveEvent):
59         (WebKit::WebPageProxy::stopResponsivenessTimer):
60         (WebKit::WebPageProxy::runModal):
61         (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
62         * UIProcess/WebProcessProxy.h:
63         (WebKit::WebProcessProxy::responsivenessTimer):
64
65 2015-11-03  Carlos Garcia Campos  <cgarcia@igalia.com>
66
67         Unreviewed. Update OptionsGTK.cmake and NEWS for 2.11.1 release.
68
69         * gtk/NEWS: Add release notes for 2.11.1.
70
71 2015-11-03  Alex Christensen  <achristensen@webkit.org>
72
73         Use the same cookie storage as WebCore when using NETWORK_SESSION
74         https://bugs.webkit.org/show_bug.cgi?id=150833
75
76         Reviewed by Antti Koivisto.
77
78         This fixes 12 tests when using NETWORK_SESSION.
79
80         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
81         (WebKit::NetworkSession::NetworkSession):
82
83 2015-11-03  Alex Christensen  <achristensen@webkit.org>
84
85         Clean up NETWORK_SESSION code after r191848
86         https://bugs.webkit.org/show_bug.cgi?id=150829
87
88         Reviewed by Darin Adler.
89
90         * NetworkProcess/NetworkResourceLoader.cpp:
91         (WebKit::NetworkResourceLoader::didReceiveData):
92         (WebKit::NetworkResourceLoader::didCompleteWithError):
93         * NetworkProcess/NetworkSession.h:
94         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
95         (WebKit::NetworkSession::NetworkSession):
96         (WebKit::NetworkSession::createDataTaskWithRequest):
97         (WebKit::NetworkSession::dataTaskForIdentifier):
98
99 2015-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
100
101         Unreviewed. Fix GTK+ build after r191924.
102
103         * UIProcess/API/gtk/WebKitWebView.cpp:
104
105 2015-11-02  Alex Christensen  <achristensen@webkit.org>
106
107         Fix CMake build after r191922.
108
109         * PlatformMac.cmake:
110
111 2015-11-02  Andy Estes  <aestes@apple.com>
112
113         Try again to fix the iOS build.
114
115         * Shared/mac/PDFKitImports.mm:
116
117 2015-11-02  Tim Horton  <timothy_horton@apple.com>
118
119         Try to fix the iOS build
120
121         * Shared/mac/PDFKitImports.h:
122
123 2015-11-02  Tim Horton  <timothy_horton@apple.com>
124
125         Address a misssed review comment in r191922
126
127         * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
128         (WebKit::PDFPlugin::nextMatchForString):
129
130 2015-11-02  Anders Carlsson  <andersca@apple.com>
131
132         Add KVO-compliant _webProcessIsResponsive property to WKWebView and _WKObservablePageState
133         https://bugs.webkit.org/show_bug.cgi?id=150818
134         rdar://problem/22372131
135
136         Reviewed by Tim Horton.
137
138         * UIProcess/API/C/mac/WKPagePrivateMac.h:
139         * UIProcess/API/C/mac/WKPagePrivateMac.mm:
140         (-[WKObservablePageState _webProcessIsResponsive]):
141         * UIProcess/API/Cocoa/PageLoadStateObserver.h:
142         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
143         (-[WKBrowsingContextController _webProcessIsResponsive]):
144         * UIProcess/API/Cocoa/WKWebView.mm:
145         (-[WKWebView _webProcessIsResponsive]):
146         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
147         * UIProcess/Cocoa/NavigationState.h:
148         * UIProcess/Cocoa/NavigationState.mm:
149         (WebKit::NavigationState::willChangeWebProcessIsResponsive):
150         (WebKit::NavigationState::didChangeWebProcessIsResponsive):
151         * UIProcess/PageLoadState.cpp:
152         (WebKit::PageLoadState::willChangeProcessIsResponsive):
153         (WebKit::PageLoadState::didChangeProcessIsResponsive):
154         * UIProcess/PageLoadState.h:
155         * UIProcess/ResponsivenessTimer.cpp:
156         (WebKit::ResponsivenessTimer::ResponsivenessTimer):
157         (WebKit::ResponsivenessTimer::timerFired):
158         (WebKit::ResponsivenessTimer::stop):
159         * UIProcess/ResponsivenessTimer.h:
160         * UIProcess/WebPageProxy.cpp:
161         (WebKit::WebPageProxy::willChangeProcessIsResponsive):
162         (WebKit::WebPageProxy::didChangeProcessIsResponsive):
163         * UIProcess/WebPageProxy.h:
164         * UIProcess/WebProcessProxy.cpp:
165         (WebKit::WebProcessProxy::WebProcessProxy):
166         (WebKit::WebProcessProxy::didBecomeUnresponsive):
167         (WebKit::WebProcessProxy::didBecomeResponsive):
168         (WebKit::WebProcessProxy::willChangeIsResponsive):
169         (WebKit::WebProcessProxy::didChangeIsResponsive):
170         * UIProcess/WebProcessProxy.h:
171
172 2015-11-02  Tim Horton  <timothy_horton@apple.com>
173
174         PDFPlugin should take advantage of threaded scrolling
175         https://bugs.webkit.org/show_bug.cgi?id=150037
176
177         Reviewed by Anders Carlsson.
178
179         Duplicate PDFPlugin, creating PDFPlugin (the modern version), and
180         DeprecatedPDFPlugin (containing the code that used to be in PDFPlugin
181         prior to this patch).
182
183         The new PDFPlugin differs from the old one in a few significant ways,
184         and we need to keep both alive for the time being. Significant differences
185         include:
186
187         - PDFPlugin is no longer a ScrollableArea
188         - PDFPlugin no longer hosts layers owned by PDFKit; instead, it draws
189           into the page tiles, allowing WebCore's threaded scrolling to do its job
190         - PDFPlugin now resizes itself to the size of the document
191         - PDFPlugin doesn't handle zooming itself, it just delegates to the page
192         - PDFLayerController has large and incompatible API changes
193         - PDFPlugin now implements more of the HUD behavior, but it's still
194           painted by PDFLayerController (into a view-relative PageOverlay)
195
196         [ File list elided because it's long and useless. ]
197
198 2015-11-02  Andy Estes  <aestes@apple.com>
199
200         [Cocoa] Add tvOS and watchOS to SUPPORTED_PLATFORMS
201         https://bugs.webkit.org/show_bug.cgi?id=150819
202
203         Reviewed by Dan Bernstein.
204
205         This tells Xcode to include these platforms in its Devices dropdown, making it possible to build in the IDE.
206
207         * Configurations/Base.xcconfig:
208
209 2015-11-02  Anders Carlsson  <andersca@apple.com>
210
211         Begin work on supporting reply blocks in _WKRemoteObjectRegistry
212         https://bugs.webkit.org/show_bug.cgi?id=150739
213
214         Reviewed by Tim Horton.
215
216         * Platform/spi/Cocoa/BlockSPI.h:
217         Add SPI header.
218
219         * Shared/API/Cocoa/RemoteObjectInvocation.h:
220         (WebKit::RemoteObjectInvocation::ReplyInfo::ReplyInfo):
221         (WebKit::RemoteObjectInvocation::replyInfo):
222         * Shared/API/Cocoa/RemoteObjectInvocation.mm:
223         (WebKit::RemoteObjectInvocation::RemoteObjectInvocation):
224         (WebKit::RemoteObjectInvocation::encode):
225         (WebKit::RemoteObjectInvocation::decode):
226         Add an optional ReplyInfo struct to RemoteObjectInvocation.
227
228         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
229         (generateReplyIdentifier):
230         Helper function to generate a reply identifier.
231
232         (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
233         Do some block parameter validation.
234
235         * WebKit2.xcodeproj/project.pbxproj:
236
237 2015-11-02  Brent Fulgham  <bfulgham@apple.com>
238
239         [iOS] Another unreviewed sandbox update.
240
241         * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb: Change copyright.
242
243 2015-11-02  Brent Fulgham  <bfulgham@apple.com>
244
245         [iOS] Unreviewed sandbox update.
246
247         Correcting copyright information.
248
249         * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb:
250
251 2015-11-02  Tim Horton  <timothy_horton@apple.com>
252
253         Get rid of WKWebView's inner WKView (WKView being inside WKWebView leads to weird API issues)
254         https://bugs.webkit.org/show_bug.cgi?id=150174
255
256         Reviewed by Anders Carlsson.
257
258         * UIProcess/API/Cocoa/WKWebView.mm:
259         (-[WKWebView initWithFrame:configuration:]):
260         (-[WKWebView dealloc]):
261         (-[WKWebView allowsLinkPreview]):
262         (-[WKWebView setAllowsLinkPreview:]):
263         (-[WKWebView acceptsFirstResponder]):
264         (-[WKWebView becomeFirstResponder]):
265         (-[WKWebView resignFirstResponder]):
266         (-[WKWebView viewWillStartLiveResize]):
267         (-[WKWebView viewDidEndLiveResize]):
268         (-[WKWebView isFlipped]):
269         (-[WKWebView intrinsicContentSize]):
270         (-[WKWebView prepareContentInRect:]):
271         (-[WKWebView setFrameSize:]):
272         (-[WKWebView renewGState]):
273         (-[WKWebView writeSelectionToPasteboard:types:]):
274         (-[WKWebView centerSelectionInVisibleArea:]):
275         (-[WKWebView validRequestorForSendType:returnType:]):
276         (-[WKWebView readSelectionFromPasteboard:]):
277         (-[WKWebView changeFont:]):
278         (-[WKWebView validateUserInterfaceItem:]):
279         (-[WKWebView startSpeaking:]):
280         (-[WKWebView stopSpeaking:]):
281         (-[WKWebView showGuessPanel:]):
282         (-[WKWebView checkSpelling:]):
283         (-[WKWebView changeSpelling:]):
284         (-[WKWebView toggleContinuousSpellChecking:]):
285         (-[WKWebView isGrammarCheckingEnabled]):
286         (-[WKWebView setGrammarCheckingEnabled:]):
287         (-[WKWebView toggleGrammarChecking:]):
288         (-[WKWebView toggleAutomaticSpellingCorrection:]):
289         (-[WKWebView orderFrontSubstitutionsPanel:]):
290         (-[WKWebView toggleSmartInsertDelete:]):
291         (-[WKWebView isAutomaticQuoteSubstitutionEnabled]):
292         (-[WKWebView setAutomaticQuoteSubstitutionEnabled:]):
293         (-[WKWebView toggleAutomaticQuoteSubstitution:]):
294         (-[WKWebView isAutomaticDashSubstitutionEnabled]):
295         (-[WKWebView setAutomaticDashSubstitutionEnabled:]):
296         (-[WKWebView toggleAutomaticDashSubstitution:]):
297         (-[WKWebView isAutomaticLinkDetectionEnabled]):
298         (-[WKWebView setAutomaticLinkDetectionEnabled:]):
299         (-[WKWebView toggleAutomaticLinkDetection:]):
300         (-[WKWebView isAutomaticTextReplacementEnabled]):
301         (-[WKWebView setAutomaticTextReplacementEnabled:]):
302         (-[WKWebView toggleAutomaticTextReplacement:]):
303         (-[WKWebView uppercaseWord:]):
304         (-[WKWebView lowercaseWord:]):
305         (-[WKWebView capitalizeWord:]):
306         (-[WKWebView _wantsKeyDownForEvent:]):
307         (-[WKWebView scrollWheel:]):
308         (-[WKWebView swipeWithEvent:]):
309         (-[WKWebView mouseMoved:]):
310         (-[WKWebView mouseDown:]):
311         (-[WKWebView mouseUp:]):
312         (-[WKWebView mouseDragged:]):
313         (-[WKWebView mouseEntered:]):
314         (-[WKWebView mouseExited:]):
315         (-[WKWebView otherMouseDown:]):
316         (-[WKWebView otherMouseDragged:]):
317         (-[WKWebView otherMouseUp:]):
318         (-[WKWebView rightMouseDown:]):
319         (-[WKWebView rightMouseDragged:]):
320         (-[WKWebView rightMouseUp:]):
321         (-[WKWebView pressureChangeWithEvent:]):
322         (-[WKWebView acceptsFirstMouse:]):
323         (-[WKWebView shouldDelayWindowOrderingForEvent:]):
324         (-[WKWebView doCommandBySelector:]):
325         (-[WKWebView insertText:]):
326         (-[WKWebView insertText:replacementRange:]):
327         (-[WKWebView inputContext]):
328         (-[WKWebView performKeyEquivalent:]):
329         (-[WKWebView keyUp:]):
330         (-[WKWebView keyDown:]):
331         (-[WKWebView flagsChanged:]):
332         (-[WKWebView setMarkedText:selectedRange:replacementRange:]):
333         (-[WKWebView unmarkText]):
334         (-[WKWebView selectedRange]):
335         (-[WKWebView hasMarkedText]):
336         (-[WKWebView markedRange]):
337         (-[WKWebView attributedSubstringForProposedRange:actualRange:]):
338         (-[WKWebView characterIndexForPoint:]):
339         (-[WKWebView firstRectForCharacterRange:actualRange:]):
340         (-[WKWebView selectedRangeWithCompletionHandler:]):
341         (-[WKWebView markedRangeWithCompletionHandler:]):
342         (-[WKWebView hasMarkedTextWithCompletionHandler:]):
343         (-[WKWebView attributedSubstringForProposedRange:completionHandler:]):
344         (-[WKWebView firstRectForCharacterRange:completionHandler:]):
345         (-[WKWebView characterIndexForPoint:completionHandler:]):
346         (-[WKWebView validAttributesForMarkedText]):
347         (-[WKWebView draggedImage:endedAt:operation:]):
348         (-[WKWebView draggingEntered:]):
349         (-[WKWebView draggingUpdated:]):
350         (-[WKWebView draggingExited:]):
351         (-[WKWebView prepareForDragOperation:]):
352         (-[WKWebView performDragOperation:]):
353         (-[WKWebView _hitTest:dragTypes:]):
354         (-[WKWebView _windowResizeMouseLocationIsInVisibleScrollerThumb:]):
355         (-[WKWebView viewWillMoveToWindow:]):
356         (-[WKWebView viewDidMoveToWindow]):
357         (-[WKWebView drawRect:]):
358         (-[WKWebView isOpaque]):
359         (-[WKWebView mouseDownCanMoveWindow]):
360         (-[WKWebView viewDidHide]):
361         (-[WKWebView viewDidUnhide]):
362         (-[WKWebView viewDidChangeBackingProperties]):
363         (-[WKWebView _activeSpaceDidChange:]):
364         (-[WKWebView accessibilityFocusedUIElement]):
365         (-[WKWebView accessibilityIsIgnored]):
366         (-[WKWebView accessibilityHitTest:]):
367         (-[WKWebView accessibilityAttributeValue:]):
368         (-[WKWebView hitTest:]):
369         (-[WKWebView conversationIdentifier]):
370         (-[WKWebView quickLookWithEvent:]):
371         (-[WKWebView addTrackingRect:owner:userData:assumeInside:]):
372         (-[WKWebView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]):
373         (-[WKWebView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]):
374         (-[WKWebView removeTrackingRect:]):
375         (-[WKWebView _removeTrackingRects:count:]):
376         (-[WKWebView view:stringForToolTip:point:userData:]):
377         (-[WKWebView pasteboardChangedOwner:]):
378         (-[WKWebView pasteboard:provideDataForType:]):
379         (-[WKWebView namesOfPromisedFilesDroppedAtDestination:]):
380         (-[WKWebView wantsUpdateLayer]):
381         (-[WKWebView updateLayer]):
382         (-[WKWebView setAllowsBackForwardNavigationGestures:]):
383         (-[WKWebView allowsBackForwardNavigationGestures]):
384         (-[WKWebView smartMagnifyWithEvent:]):
385         (-[WKWebView setMagnification:centeredAtPoint:]):
386         (-[WKWebView setMagnification:]):
387         (-[WKWebView magnification]):
388         (-[WKWebView setAllowsMagnification:]):
389         (-[WKWebView allowsMagnification]):
390         (-[WKWebView magnifyWithEvent:]):
391         (-[WKWebView rotateWithEvent:]):
392         (-[WKWebView _web_superInputContext]):
393         (-[WKWebView _web_superQuickLookWithEvent:]):
394         (-[WKWebView _web_superSwipeWithEvent:]):
395         (-[WKWebView _web_superMagnifyWithEvent:]):
396         (-[WKWebView _web_superSmartMagnifyWithEvent:]):
397         (-[WKWebView _web_superRemoveTrackingRect:]):
398         (-[WKWebView _web_superAccessibilityAttributeValue:]):
399         (-[WKWebView _web_superDoCommandBySelector:]):
400         (-[WKWebView _web_superPerformKeyEquivalent:]):
401         (-[WKWebView _web_superKeyDown:]):
402         (-[WKWebView _web_superHitTest:]):
403         (-[WKWebView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
404         (-[WKWebView _web_prepareForImmediateActionAnimation]):
405         (-[WKWebView _web_cancelImmediateActionAnimation]):
406         (-[WKWebView _web_completeImmediateActionAnimation]):
407         (-[WKWebView _web_didChangeContentSize:]):
408         (-[WKWebView _web_dismissContentRelativeChildWindows]):
409         (-[WKWebView _web_dismissContentRelativeChildWindowsWithAnimation:]):
410         (-[WKWebView _web_gestureEventWasNotHandledByWebCore:]):
411         (-[WKWebView _setEditable:]):
412         (-[WKWebView _remoteObjectRegistry]):
413         (-[WKWebView _layoutMode]):
414         (-[WKWebView _setLayoutMode:]):
415         (-[WKWebView _setViewScale:]):
416         (-[WKWebView _drawsTransparentBackground]):
417         (-[WKWebView _setDrawsTransparentBackground:]):
418         (-[WKWebView _inspectorAttachmentView]):
419         (-[WKWebView _setInspectorAttachmentView:]):
420         (-[WKWebView _windowOcclusionDetectionEnabled]):
421         (-[WKWebView _setWindowOcclusionDetectionEnabled:]):
422         (-[WKWebView _setOverrideDeviceScaleFactor:]):
423         (-[WKWebView _overrideDeviceScaleFactor]):
424         (-[WKWebView _setTopContentInset:]):
425         (-[WKWebView _topContentInset]):
426         (-[WKWebView _pageExtendedBackgroundColor]):
427         (-[WKWebView _immediateActionAnimationControllerForHitTestResult:withType:userData:]):
428         (-[WKWebView _setAutomaticallyAdjustsContentInsets:]):
429         (-[WKWebView _automaticallyAdjustsContentInsets]):
430         (-[WKWebView _setMinimumLayoutWidth:]):
431         (-[WKWebView resizeSubviewsWithOldSize:]): Deleted.
432         (-[WKWebView _ignoresNonWheelEvents]): Deleted.
433         (-[WKWebView _setIgnoresNonWheelEvents:]): Deleted.
434         (-[WKWebView _setIntrinsicContentSize:]): Deleted.
435         * UIProcess/API/Cocoa/WKWebViewInternal.h:
436         * UIProcess/API/mac/WKView.mm:
437         (-[WKView _web_superInputContext]):
438         (-[WKView _web_superQuickLookWithEvent:]):
439         (-[WKView _web_superSwipeWithEvent:]):
440         (-[WKView _web_superMagnifyWithEvent:]):
441         (-[WKView _web_superSmartMagnifyWithEvent:]):
442         (-[WKView _web_superRemoveTrackingRect:]):
443         (-[WKView _web_superAccessibilityAttributeValue:]):
444         (-[WKView _web_superDoCommandBySelector:]):
445         (-[WKView _web_superPerformKeyEquivalent:]):
446         (-[WKView _web_superKeyDown:]):
447         (-[WKView _web_superHitTest:]):
448         (-[WKView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
449         (-[WKView _web_prepareForImmediateActionAnimation]):
450         (-[WKView _web_cancelImmediateActionAnimation]):
451         (-[WKView _web_completeImmediateActionAnimation]):
452         (-[WKView _web_didChangeContentSize:]):
453         (-[WKView _web_dismissContentRelativeChildWindows]):
454         (-[WKView _web_dismissContentRelativeChildWindowsWithAnimation:]):
455         (-[WKView _web_gestureEventWasNotHandledByWebCore:]):
456         (-[WKView _superInputContext]): Deleted.
457         (-[WKView _superQuickLookWithEvent:]): Deleted.
458         (-[WKView _superSwipeWithEvent:]): Deleted.
459         (-[WKView _superMagnifyWithEvent:]): Deleted.
460         (-[WKView _superSmartMagnifyWithEvent:]): Deleted.
461         (-[WKView _superRemoveTrackingRect:]): Deleted.
462         (-[WKView _superAccessibilityAttributeValue:]): Deleted.
463         (-[WKView _superDoCommandBySelector:]): Deleted.
464         (-[WKView _superPerformKeyEquivalent:]): Deleted.
465         (-[WKView _superKeyDown:]): Deleted.
466         (-[WKView _superHitTest:]): Deleted.
467         (-[WKView _addFontPanelObserver]): Deleted.
468         * UIProcess/API/mac/WKViewInternal.h:
469         * UIProcess/Cocoa/WebViewImpl.h:
470         * UIProcess/Cocoa/WebViewImpl.mm:
471         (WebKit::WebViewImpl::hitTest):
472         (WebKit::WebViewImpl::updateSecureInputState):
473         (WebKit::WebViewImpl::notifyInputContextAboutDiscardedComposition):
474         (WebKit::WebViewImpl::executeSavedCommandBySelector):
475         (WebKit::WebViewImpl::dismissContentRelativeChildWindowsWithAnimation):
476         (WebKit::WebViewImpl::dismissContentRelativeChildWindowsWithAnimationFromViewOnly):
477         (WebKit::WebViewImpl::quickLookWithEvent):
478         (WebKit::WebViewImpl::prepareForImmediateActionAnimation):
479         (WebKit::WebViewImpl::cancelImmediateActionAnimation):
480         (WebKit::WebViewImpl::completeImmediateActionAnimation):
481         (WebKit::WebViewImpl::didChangeContentSize):
482         (WebKit::WebViewImpl::accessibilityAttributeValue):
483         (WebKit::WebViewImpl::removeTrackingRect):
484         (WebKit::WebViewImpl::swipeWithEvent):
485         (WebKit::WebViewImpl::magnifyWithEvent):
486         (WebKit::WebViewImpl::smartMagnifyWithEvent):
487         (WebKit::WebViewImpl::gestureEventWasNotHandledByWebCore):
488         (WebKit::WebViewImpl::doCommandBySelector):
489         (WebKit::WebViewImpl::inputContext):
490         (WebKit::WebViewImpl::performKeyEquivalent):
491         (WebKit::WebViewImpl::keyDown):
492         * UIProcess/mac/PageClientImpl.mm:
493         (WebKit::PageClientImpl::setDragImage):
494         (WebKit::PageClientImpl::intrinsicContentSizeDidChange): Deleted.
495         (WebKit::PageClientImpl::immediateActionAnimationControllerForHitTestResult): Deleted.
496         Plop.
497
498 2015-11-02  Anders Carlsson  <andersca@apple.com>
499
500         Remove unused API client callback code
501         https://bugs.webkit.org/show_bug.cgi?id=150813
502
503         Reviewed by Tim Horton.
504
505         * UIProcess/API/APILoaderClient.h:
506         (API::LoaderClient::interactionOccurredWhileProcessUnresponsive): Deleted.
507         * UIProcess/API/C/WKPage.cpp:
508         (WKPageSetPageLoaderClient): Deleted.
509         * UIProcess/ResponsivenessTimer.cpp:
510         (WebKit::ResponsivenessTimer::timerFired):
511         * UIProcess/ResponsivenessTimer.h:
512         * UIProcess/WebPageProxy.cpp:
513         (WebKit::WebPageProxy::interactionOccurredWhileProcessUnresponsive): Deleted.
514         * UIProcess/WebPageProxy.h:
515         * UIProcess/WebProcessProxy.cpp:
516         (WebKit::WebProcessProxy::interactionOccurredWhileUnresponsive): Deleted.
517         * UIProcess/WebProcessProxy.h:
518
519 2015-10-31  Andy Estes  <aestes@apple.com>
520
521         Replace iOS-only WebKitSystemInterface calls with SPI
522         https://bugs.webkit.org/show_bug.cgi?id=150763
523
524         Reviewed by Darin Adler.
525
526         * Platform/ios/AccessibilityIOS.h: Added.
527         * Platform/ios/AccessibilityIOS.mm: Added.
528         (WebKit::newAccessibilityRemoteToken): Upstreamed the implementation of WKAXRemoteToken() from WebKitSystemInterface.
529         * Shared/WebPreferencesDefinitions.h: Used Settings::defaultMinimumZoomFontSize() instead of WKGetMinimumZoomFontSize().
530         * Shared/WebPreferencesStore.cpp:
531         * UIProcess/API/Cocoa/WKWebView.mm:
532         (shouldAllowPictureInPictureMediaPlayback): Used dyld_get_program_sdk_version() instead of iosExecutableWasLinkedOnOrAfterVersion().
533         (-[WKWebView _takeViewSnapshot]): Used screenScaleFactor() instead of WKGetScreenScaleFactor().
534         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
535         (-[WKWebViewConfiguration init]): Used deviceClass() instead of WKGetDeviceClass().
536         * UIProcess/ios/WKContentView.mm:
537         (-[WKContentView _commonInitializationWithProcessPool:configuration:]): Used screenScaleFactor() instead of WKGetScaleFactorForScreen().
538         (-[WKContentView _updateForScreen:]): Ditto.
539         (storeAccessibilityRemoteConnectionInformation): Upstreamed the implementation of WKAXStoreRemoteConnectionInformation() from WebKitSystemInterface.
540         (-[WKContentView _accessibilityRegisterUIProcessTokens]): Used newAccessibilityRemoteToken() and storeAccessibilityRemoteConnectionInformation() instead of WKAXRemoteToken() and WKAXStoreRemoteConnectionInformation().
541         * UIProcess/ios/WKContentViewInteraction.mm:
542         * UIProcess/ios/WebPageProxyIOS.mm:
543         (WebKit::WebPageProxy::screenSize): Used screenSize() instead of WKGetScreenSize().
544         (WebKit::WebPageProxy::availableScreenSize): Used availableScreenSize() instead of WKGetAvailableScreenSize().
545         (WebKit::WebPageProxy::textAutosizingWidth): Used screenSize() instead of WKGetScreenSize().
546         * WebKit2.xcodeproj/project.pbxproj:
547         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
548         (InitWebCoreSystemInterface): Deleted.
549         * WebProcess/WebPage/ios/WebPageIOS.mm:
550         (WebKit::WebPage::platformInitializeAccessibility): Used newAccessibilityRemoteToken() instead of WKAXRemoteToken().
551
552 2015-11-02  Commit Queue  <commit-queue@webkit.org>
553
554         Unreviewed, rolling out r191902.
555         https://bugs.webkit.org/show_bug.cgi?id=150811
556
557         This change broke iOS builders (Requested by ryanhaddad on
558         #webkit).
559
560         Reverted changeset:
561
562         "Replace iOS-only WebKitSystemInterface calls with SPI"
563         https://bugs.webkit.org/show_bug.cgi?id=150763
564         http://trac.webkit.org/changeset/191902
565
566 2015-10-31  Andy Estes  <aestes@apple.com>
567
568         Replace iOS-only WebKitSystemInterface calls with SPI
569         https://bugs.webkit.org/show_bug.cgi?id=150763
570
571         Reviewed by Darin Adler.
572
573         * Platform/ios/AccessibilityIOS.h: Added.
574         * Platform/ios/AccessibilityIOS.mm: Added.
575         (WebKit::newAccessibilityRemoteToken): Upstreamed the implementation of WKAXRemoteToken() from WebKitSystemInterface.
576         * Shared/WebPreferencesDefinitions.h: Used Settings::defaultMinimumZoomFontSize() instead of WKGetMinimumZoomFontSize().
577         * Shared/WebPreferencesStore.cpp:
578         * UIProcess/API/Cocoa/WKWebView.mm:
579         (shouldAllowPictureInPictureMediaPlayback): Used dyld_get_program_sdk_version() instead of iosExecutableWasLinkedOnOrAfterVersion().
580         (-[WKWebView _takeViewSnapshot]): Used screenScaleFactor() instead of WKGetScreenScaleFactor().
581         * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
582         (-[WKWebViewConfiguration init]): Used deviceClass() instead of WKGetDeviceClass().
583         * UIProcess/ios/WKContentView.mm:
584         (-[WKContentView _commonInitializationWithProcessPool:configuration:]): Used screenScaleFactor() instead of WKGetScaleFactorForScreen().
585         (-[WKContentView _updateForScreen:]): Ditto.
586         (storeAccessibilityRemoteConnectionInformation): Upstreamed the implementation of WKAXStoreRemoteConnectionInformation() from WebKitSystemInterface.
587         (-[WKContentView _accessibilityRegisterUIProcessTokens]): Used newAccessibilityRemoteToken() and storeAccessibilityRemoteConnectionInformation() instead of WKAXRemoteToken() and WKAXStoreRemoteConnectionInformation().
588         * UIProcess/ios/WKContentViewInteraction.mm:
589         * UIProcess/ios/WebPageProxyIOS.mm:
590         (WebKit::WebPageProxy::screenSize): Used screenSize() instead of WKGetScreenSize().
591         (WebKit::WebPageProxy::availableScreenSize): Used availableScreenSize() instead of WKGetAvailableScreenSize().
592         (WebKit::WebPageProxy::textAutosizingWidth): Used screenSize() instead of WKGetScreenSize().
593         * WebKit2.xcodeproj/project.pbxproj:
594         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
595         (InitWebCoreSystemInterface): Deleted.
596         * WebProcess/WebPage/ios/WebPageIOS.mm:
597         (WebKit::WebPage::platformInitializeAccessibility): Used newAccessibilityRemoteToken() instead of WKAXRemoteToken().
598
599 2015-11-02  Yongjun Zhang  <yongjun_zhang@apple.com>
600
601         Add objC delegate callback for webProcessDidBecomeResponsive and webProcessDidBecomeUnresponsive.
602         https://bugs.webkit.org/show_bug.cgi?id=150778
603
604         Add methods into WKNavigationDelegatePrivate to notify WebKit client when web process becomes unresponsive
605         or responsive, which is reported by WebKit::ResponsivenessTimer.
606
607         Reviewed by Darin Adler.
608
609         * UIProcess/API/APINavigationClient.h: Add two new method processDidBecomeResponsive and processDidBecomeUnresponsive
610             to NavigationClient; they are called when WebKit::ResponsivenessTimer update its client's state.
611         (API::NavigationClient::processDidBecomeResponsive):
612         (API::NavigationClient::processDidBecomeUnresponsive):
613         * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h: Add two new delegate method to WKNavigationDelegatePrivate:
614             _webViewWebProcessDidBecomeResponsive: and _webViewWebProcessDidBecomeUnresponsive:
615         * UIProcess/Cocoa/NavigationState.h: Add new overriding methods processDidBecomeResponsive and processDidBecomeUnresponsive.
616             Also add a bool member for each method to indicate if the delegate has implement the related method.
617         * UIProcess/Cocoa/NavigationState.mm:
618         (WebKit::NavigationState::setNavigationDelegate): Update the new bool members based on the delegate.
619         (WebKit::NavigationState::NavigationClient::processDidBecomeResponsive): Send the delegate message to navigationDelegate
620             if _webViewWebProcessDidBecomeResponsive: is implemented.
621         (WebKit::NavigationState::NavigationClient::processDidBecomeUnresponsive): Ditto.
622         * UIProcess/WebPageProxy.cpp:
623         (WebKit::WebPageProxy::processDidBecomeUnresponsive): Call navigationClient's processDidBecomeUnresponsive if the page proxy
624             has navigationClient.
625         (WebKit::WebPageProxy::processDidBecomeResponsive):  Call navigationClient's processDidBecomeResponsive if the page proxy
626             has navigationClient.
627
628 2015-11-02  Beth Dakin  <bdakin@apple.com>
629
630         Tapping and holding a link should have a share option
631         https://bugs.webkit.org/show_bug.cgi?id=150693
632
633         Reviewed by Dan Bernstein.
634
635         This is a follow-up to the original change. This change fixes non-ascii URLs. 
636         They should maintain their non-ascii characters when they are shared.
637
638         * UIProcess/ios/WKContentViewInteraction.mm:
639         (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]):
640         * UIProcess/ios/WKPDFView.mm:
641         (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]):
642
643 2015-11-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
644
645         Rename JSDOMWrapper.impl to JSDOMWrapper.wrapped
646         https://bugs.webkit.org/show_bug.cgi?id=150613
647
648         Reviewed by Darin Adler.
649
650         * WebProcess/WebPage/WebFrame.cpp:
651         (WebKit::WebFrame::frameForContext): Renaming impl() to wrapped().
652         (WebKit::WebFrame::counterValue): Ditto.
653
654 2015-11-02  Carlos Garcia Campos  <cgarcia@igalia.com>
655
656         [GLIB] Remove support for GSocket main loop sources from GMainLoopSource
657         https://bugs.webkit.org/show_bug.cgi?id=150772
658
659         Reviewed by Žan Doberšek.
660
661         Add GSocketMonitor class to be used by Connection to monitor the
662         availability of the socket file descriptor instead of using a
663         GMainLoopSource.
664
665         * Platform/IPC/Connection.h:
666         * Platform/IPC/glib/GSocketMonitor.cpp: Added.
667         (IPC::GSocketMonitor::~GSocketMonitor):
668         (IPC::GSocketMonitor::socketSourceCallback):
669         (IPC::GSocketMonitor::start):
670         (IPC::GSocketMonitor::stop):
671         * Platform/IPC/glib/GSocketMonitor.h: Added.
672         * Platform/IPC/unix/ConnectionUnix.cpp:
673         (IPC::Connection::platformInvalidate):
674         (IPC::Connection::open):
675         * PlatformGTK.cmake:
676
677 2015-11-01  Carlos Garcia Campos  <cgarcia@igalia.com>
678
679         [GTK] Use RunLoop in WorkQueue implementation
680         https://bugs.webkit.org/show_bug.cgi?id=150770
681
682         Reviewed by Darin Adler.
683
684         * Platform/IPC/unix/ConnectionUnix.cpp:
685         (IPC::Connection::open): Get the main context from the WorkQueue Runloop.
686
687 2015-11-01  Yusuke Suzuki  <utatane.tea@gmail.com>
688
689         [ES6] Support Generator Syntax
690         https://bugs.webkit.org/show_bug.cgi?id=150769
691
692         Reviewed by Geoffrey Garen.
693
694         Added ENABLE_ES6_GENERATORS flag.
695
696         * Configurations/FeatureDefines.xcconfig:
697
698 2015-11-01  Brent Fulgham  <bfulgham@apple.com>
699
700         Use convenience function in sandbox profile
701         https://bugs.webkit.org/show_bug.cgi?id=150732
702         <rdar://problem/23287894>
703
704         Reviewed by Alexey Proskuryakov.
705
706         * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: Switch to
707         the 'awd-log-directory' convenience function.
708
709 2015-11-01  Joonghun Park  <jh718.park@samsung.com>
710
711         [EFL] Fix inappropriate move semantics use in parseAndRemoveEnvironments function
712         https://bugs.webkit.org/show_bug.cgi?id=150544
713
714         Reviewed by Darin Adler.
715
716         In parseAndRemoveEnvironments function, it declares its paramerter type as rvalue.
717         But in ProcessLauncher::launchProcess(), the argument of
718         parseAndRemoveEnvironments still be used after the call of the function.
719         Currently the rvalue is not assigned to any other variable in parseAndRemoveEnvironments,
720         so it doesn't lead to runtime error but use of move semantic
721         is not appropriate semantically in this case.
722
723         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
724         (WebKit::parseAndRemoveEnvironments):
725         (WebKit::ProcessLauncher::launchProcess):
726
727 2015-11-01  Commit Queue  <commit-queue@webkit.org>
728
729         Unreviewed, rolling out r191831.
730         https://bugs.webkit.org/show_bug.cgi?id=150774
731
732         The new test fails (Requested by ap on #webkit).
733
734         Reverted changeset:
735
736         "Begin work on supporting reply blocks in
737         _WKRemoteObjectRegistry"
738         https://bugs.webkit.org/show_bug.cgi?id=150739
739         http://trac.webkit.org/changeset/191831
740
741 2015-11-01  Philip Chimento  <philip.chimento@gmail.com>
742
743         [GTK] Fix combinations of PLATFORM(GTK) and OS(DARWIN)
744         https://bugs.webkit.org/show_bug.cgi?id=144560
745
746         Reviewed by Darin Adler.
747
748         * NetworkProcess/NetworkProcess.cpp:
749         (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
750         Change order of OS(DARWIN) and USE(UNIX_DOMAIN_SOCKETS) checks,
751         so that we can use Unix domain sockets even on Darwin for the GTK
752         platform.
753         * Platform/IPC/Attachment.cpp: Add USE(UNIX_DOMAIN_SOCKETS) check
754         to OS(DARWIN) check, in order to support GTK platform on OSX.
755         * Platform/IPC/Attachment.h: Change order of OS(DARWIN) and
756         USE(UNIX_DOMAIN_SOCKETS) checks throughout.
757         (IPC::Attachment::size):
758         (IPC::Attachment::releaseFileDescriptor):
759         (IPC::Attachment::fileDescriptor):
760         (IPC::Attachment::disposition):
761         (IPC::Attachment::port): 
762         * Platform/IPC/Connection.h: Ditto.
763         (IPC::Connection::identifierIsNull):
764         (IPC::Connection::Identifier::Identifier): 
765         (IPC::Connection::xpcConnection): 
766         * Platform/IPC/unix/ConnectionUnix.cpp: Only use SOCK_SEQPACKET
767         if the platform is not GTK, because otherwise the PLATFORM(GTK)
768         check below is never reached.
769         * Platform/SharedMemory.h: Change order of OS(DARWIN) and
770         USE(UNIX_DOMAIN_SOCKETS) checks.
771         * PluginProcess/PluginProcess.cpp: Ditto.
772         (WebKit::PluginProcess::createWebProcessConnection):
773         * Shared/API/c/WKBase.h: Don't include WKBaseMac.h if building
774         GTK.
775         * UIProcess/API/C/WKNativeEvent.h: Don't use Apple API if
776         building GTK.
777         * UIProcess/Launcher/ProcessLauncher.cpp: Change to
778         OS(DARWIN) && !PLATFORM(GTK), in the absence of a better platform
779         macro such as USE(MACH).
780         (WebKit::ProcessLauncher::didFinishLaunchingProcess):
781         * UIProcess/Launcher/ProcessLauncher.h: Ditto.
782         * UIProcess/Network/NetworkProcessProxy.cpp: Change order of
783         OS(DARWIN) and PLATFORM(GTK) checks.
784         (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
785         (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
786         * UIProcess/Plugins/PluginProcessProxy.cpp: Ditto.
787         (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
788         (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
789         * WebProcess/Plugins/PluginProcessConnectionManager.cpp: Ditto.
790         (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
791         * WebProcess/WebPage/WebInspector.cpp: Ditto.
792         (WebKit::WebInspector::createInspectorPage):
793         * WebProcess/WebPage/WebInspectorUI.cpp: Ditto.
794         (WebKit::WebInspectorUI::establishConnection):
795         * WebProcess/WebProcess.cpp: Ditto.
796         (WebKit::WebProcess::ensureNetworkProcessConnection):
797
798 2015-11-01  Carlos Garcia Campos  <cgarcia@igalia.com>
799
800         [GTK] Use RunLoop::Timer in PluginInfoCache
801         https://bugs.webkit.org/show_bug.cgi?id=150757
802
803         Reviewed by Darin Adler.
804
805         Use RunLoop::Timer instead of GMainLoopSource to save the cache
806         contents in an idle. Also remove the mutex, since RunLoop::Timer
807         is thread safe and saveToFile() is private and only called by the
808         main thread loop. Also removed the code to save the file in the
809         destructor since PluginInfoCache is a singleton and never
810         destroyed. It's very unlikely that the program finished before the
811         cache is saved, but even if that happens it would be harmless, the
812         cache will be saved at some point the next time.
813
814         * UIProcess/Plugins/gtk/PluginInfoCache.cpp:
815         (WebKit::PluginInfoCache::PluginInfoCache):
816         (WebKit::PluginInfoCache::updatePluginInfo):
817         (WebKit::PluginInfoCache::~PluginInfoCache):
818         (WebKit::PluginInfoCache::saveToFile):
819         * UIProcess/Plugins/gtk/PluginInfoCache.h:
820
821 2015-11-01  Carlos Garcia Campos  <cgarcia@igalia.com>
822
823         [GTK] Use a RunLoop::Timer to schedule rendering frames in accelerated compositing mode
824         https://bugs.webkit.org/show_bug.cgi?id=150756
825
826         Reviewed by Darin Adler.
827
828         Use a RunLoop::Timer instead of a GMainLoopSource for the
829         accelerated compositing render loop to improve the performance,
830         since RunLoop::Timer uses a persistent source.
831         All the logic to schedule rames has been moved to a helper
832         internal class RenderFrameScheduler.
833
834         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
835         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::RenderFrameScheduler):
836         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::~RenderFrameScheduler):
837         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::start):
838         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::stop):
839         (WebKit::shouldSkipNextFrameBecauseOfContinousImmediateFlushes):
840         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::nextFrame):
841         (WebKit::LayerTreeHostGtk::RenderFrameScheduler::renderFrame):
842         (WebKit::LayerTreeHostGtk::LayerTreeHostGtk):
843         (WebKit::LayerTreeHostGtk::renderFrame):
844         (WebKit::LayerTreeHostGtk::scheduleLayerFlush):
845         (WebKit::LayerTreeHostGtk::cancelPendingLayerFlush):
846         (WebKit::LayerTreeHostGtk::layerFlushTimerFired): Deleted.
847         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
848
849 2015-10-31  Andreas Kling  <akling@apple.com>
850
851         Add a debug overlay with information about web process resource usage.
852         <https://webkit.org/b/150599>
853
854         Reviewed by Darin Adler.
855
856         Add WK2 preferences SPI for showing/hiding the resource usage overlay.
857
858         * Shared/WebPreferencesDefinitions.h:
859         * UIProcess/API/C/WKPreferences.cpp:
860         (WKPreferencesSetResourceUsageOverlayVisible):
861         (WKPreferencesGetResourceUsageOverlayVisible):
862         * UIProcess/API/C/WKPreferencesRefPrivate.h:
863         * UIProcess/API/Cocoa/WKPreferences.mm:
864         (-[WKPreferences _resourceUsageOverlayVisible]):
865         (-[WKPreferences _setResourceUsageOverlayVisible:]):
866         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
867         * WebProcess/WebPage/WebPage.cpp:
868         (WebKit::WebPage::updatePreferences):
869
870 2015-10-31  Alex Christensen  <achristensen@webkit.org>
871
872         Share more code between NETWORK_SESSION and non-NETWORK_SESSION NetworkResourceLoaders
873         https://bugs.webkit.org/show_bug.cgi?id=150742
874
875         Reviewed by Darin Adler.
876
877         r191457 added enough code to NetworkResourceLoader to load most resources successfully if there are no errors.
878         It passed about 80% of LayoutTests/http and crashed sometimes.
879         This passes about 95% of LayoutTests/http and does not crash on any of the LayoutTests/http.
880         It should not change behavior of the non-NETWORK_SESSION code which is currently the default in trunk.
881
882         * NetworkProcess/NetworkResourceLoader.cpp:
883         (WebKit::NetworkResourceLoader::abort):
884         (WebKit::NetworkResourceLoader::sharedDidReceiveResponse):
885         (WebKit::NetworkResourceLoader::sharedDidReceiveBuffer):
886         (WebKit::NetworkResourceLoader::sharedDidFinishLoading):
887         (WebKit::NetworkResourceLoader::sharedDidFail):
888         (WebKit::NetworkResourceLoader::sharedWillSendRedirectedRequest):
889         (WebKit::NetworkResourceLoader::willPerformHTTPRedirection):
890         (WebKit::NetworkResourceLoader::didReceiveChallenge):
891         (WebKit::NetworkResourceLoader::didReceiveResponse):
892         (WebKit::NetworkResourceLoader::didReceiveData):
893         (WebKit::NetworkResourceLoader::didCompleteWithError):
894         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
895         (WebKit::NetworkResourceLoader::didReceiveBuffer):
896         (WebKit::NetworkResourceLoader::didFinishLoading):
897         (WebKit::NetworkResourceLoader::didFail):
898         (WebKit::NetworkResourceLoader::willSendRequestAsync):
899         * NetworkProcess/NetworkResourceLoader.h:
900         * NetworkProcess/NetworkSession.h:
901         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
902
903 2015-10-28  Wenson Hsieh  <wenson_hsieh@apple.com>
904
905         Inner height behavior when the keyboard is shown should match on WKWebView and MobileSafari
906         https://bugs.webkit.org/show_bug.cgi?id=150634
907         <rdar://problem/23202254>
908
909         Reviewed by Benjamin Poulain.
910
911         Make WKWebView match behavior in Safari by not firing resize events and changing the inner height when showing
912         or hiding the keyboard. Previously, the WKWebView would do both of the above because we use the scroll view's
913         contentInset property when no unobscured insets are explicitly set for the WKWebView. To fix this, when updating
914         the visible content rect of a WKWebView for computing the inner height, we readjust the computed bottom inset
915         to not take the keyboard height into account. To know how much we need to readjust the inset by, we store the
916         total amount by which the scroll view's bottom inset has been adjusted due to the keyboard.
917
918         We perform this readjustment in _updateVisibleContentRects rather than in _computedContentInset since some users
919         of _computedContentInset may still expect the bottom inset to account for the keyboard height. However, when
920         updating visible content rects, we should not account for the keyboard height since we don't want the inner height
921         to change when showing or hiding the keyboard.
922
923         Lastly, while calling _adjustForAutomaticKeyboardInfo, we may end up calling _updateVisibleContentRects. This call
924         is unnecessary since we call it again immediately after _adjustForAutomaticKeyboardInfo, and it also complicates
925         the readjustment logic, so it makes sense to prevent the update from happening altogether while we are adjusting
926         the scroll view's insets due to keyboard changes. Altogether, these changes mean that the computed inner height
927         will no longer be adjusted for the keyboard height on WKWebViews, matching the behavior observed on mobile Safari.
928
929         Test: LayoutTests/fast/events/ios/keyboard-should-not-trigger-resize.html
930
931         * UIProcess/API/Cocoa/WKWebView.mm:
932         (-[WKWebView _updateVisibleContentRects]):
933         (-[WKWebView _keyboardChangedWithInfo:adjustScrollView:]):
934
935 2015-10-30  Anders Carlsson  <andersca@apple.com>
936
937         Begin work on supporting reply blocks in _WKRemoteObjectRegistry
938         https://bugs.webkit.org/show_bug.cgi?id=150739
939
940         Reviewed by Tim Horton.
941
942         * Platform/spi/Cocoa/BlockSPI.h:
943         Add SPI header.
944
945         * Shared/API/Cocoa/RemoteObjectInvocation.h:
946         (WebKit::RemoteObjectInvocation::ReplyInfo::ReplyInfo):
947         (WebKit::RemoteObjectInvocation::replyInfo):
948         * Shared/API/Cocoa/RemoteObjectInvocation.mm:
949         (WebKit::RemoteObjectInvocation::RemoteObjectInvocation):
950         (WebKit::RemoteObjectInvocation::encode):
951         (WebKit::RemoteObjectInvocation::decode):
952         Add an optional ReplyInfo struct to RemoteObjectInvocation.
953
954         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
955         (generateReplyIdentifier):
956         Helper function to generate a reply identifier.
957
958         (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
959         Do some block parameter validation.
960
961         * WebKit2.xcodeproj/project.pbxproj:
962
963 2015-10-30  Beth Dakin  <bdakin@apple.com>
964
965         Link preview doesn't work on XHTML pages with Content-Type header as 
966         ‘application/xhtml+xml’
967         https://bugs.webkit.org/show_bug.cgi?id=150740
968         -and corresponding-
969         rdar://problem/23063585
970
971         Reviewed by Tim Horton.
972
973         For XHTML pages, the element names are lowercase. This patch uses 
974         equalIgnoringCase to fix the bug.
975         * UIProcess/ios/WKContentViewInteraction.mm:
976         (-[WKContentView _actionForLongPress]):
977         (-[WKContentView _interactionShouldBeginFromPreviewItemController:forPosition:]):
978         (-[WKContentView _dataForPreviewItemController:atPosition:type:]):
979
980 2015-10-30  Tim Horton  <timothy_horton@apple.com>
981
982         WKView being inside WKWebView leads to weird API issues
983         https://bugs.webkit.org/show_bug.cgi?id=150174
984
985         Reviewed by Anders Carlsson.
986
987         * UIProcess/API/mac/WKView.mm:
988         (-[WKView initWithFrame:processGroup:browsingContextGroup:relatedToView:]):
989         (-[WKView prepareContentInRect:]):
990         (-[WKView initWithFrame:processPool:configuration:webView:]):
991         (-[WKView pageRef]):
992         (-[WKView _web_immediateActionAnimationControllerForHitTestResultInternal:withType:userData:]):
993         (-[WKView dealloc]): Deleted.
994         * UIProcess/Cocoa/WebViewImpl.h:
995         (WebKit::WebViewImpl::page):
996         * UIProcess/Cocoa/WebViewImpl.mm:
997         (-[WKWindowVisibilityObserver initWithView:impl:]):
998         (-[WKWindowVisibilityObserver dealloc]):
999         (-[WKWindowVisibilityObserver _activeSpaceDidChange:]):
1000         (WebKit::WebViewImpl::WebViewImpl):
1001         (WebKit::WebViewImpl::~WebViewImpl):
1002         (WebKit::WebViewImpl::setDrawsBackground):
1003         (WebKit::WebViewImpl::drawsBackground):
1004         (WebKit::WebViewImpl::setDrawsTransparentBackground):
1005         (WebKit::WebViewImpl::drawsTransparentBackground):
1006         (WebKit::WebViewImpl::isOpaque):
1007         (WebKit::WebViewImpl::acceptsFirstMouse):
1008         (WebKit::WebViewImpl::becomeFirstResponder):
1009         (WebKit::WebViewImpl::resignFirstResponder):
1010         (WebKit::WebViewImpl::viewWillStartLiveResize):
1011         (WebKit::WebViewImpl::viewDidEndLiveResize):
1012         (WebKit::WebViewImpl::updateWindowAndViewFrames):
1013         (WebKit::WebViewImpl::setFixedLayoutSize):
1014         (WebKit::WebViewImpl::fixedLayoutSize):
1015         (WebKit::WebViewImpl::isUsingUISideCompositing):
1016         (WebKit::WebViewImpl::setDrawingAreaSize):
1017         (WebKit::WebViewImpl::forceAsyncDrawingAreaSizeUpdate):
1018         (WebKit::WebViewImpl::waitForAsyncDrawingAreaSizeUpdate):
1019         (WebKit::WebViewImpl::updateLayer):
1020         (WebKit::WebViewImpl::drawRect):
1021         (WebKit::WebViewImpl::dispatchSetTopContentInset):
1022         (WebKit::WebViewImpl::prepareContentInRect):
1023         (WebKit::WebViewImpl::updateViewExposedRect):
1024         (WebKit::WebViewImpl::setMinimumSizeForAutoLayout):
1025         (WebKit::WebViewImpl::minimumSizeForAutoLayout):
1026         (WebKit::WebViewImpl::setShouldExpandToViewHeightForAutoLayout):
1027         (WebKit::WebViewImpl::shouldExpandToViewHeightForAutoLayout):
1028         (WebKit::WebViewImpl::setIntrinsicContentSize):
1029         (WebKit::WebViewImpl::setViewScale):
1030         (WebKit::WebViewImpl::viewScale):
1031         (WebKit::WebViewImpl::supportsArbitraryLayoutModes):
1032         (WebKit::WebViewImpl::setOverrideDeviceScaleFactor):
1033         (WebKit::WebViewImpl::windowDidOrderOffScreen):
1034         (WebKit::WebViewImpl::windowDidOrderOnScreen):
1035         (WebKit::WebViewImpl::windowDidBecomeKey):
1036         (WebKit::WebViewImpl::windowDidResignKey):
1037         (WebKit::WebViewImpl::windowDidMiniaturize):
1038         (WebKit::WebViewImpl::windowDidDeminiaturize):
1039         (WebKit::WebViewImpl::windowDidChangeBackingProperties):
1040         (WebKit::WebViewImpl::windowDidChangeScreen):
1041         (WebKit::WebViewImpl::windowDidChangeLayerHosting):
1042         (WebKit::WebViewImpl::windowDidChangeOcclusionState):
1043         (WebKit::WebViewImpl::shouldDelayWindowOrderingForEvent):
1044         (WebKit::WebViewImpl::windowResizeMouseLocationIsInVisibleScrollerThumb):
1045         (WebKit::WebViewImpl::viewDidMoveToWindow):
1046         (WebKit::WebViewImpl::viewDidChangeBackingProperties):
1047         (WebKit::WebViewImpl::viewDidHide):
1048         (WebKit::WebViewImpl::viewDidUnhide):
1049         (WebKit::WebViewImpl::activeSpaceDidChange):
1050         (WebKit::WebViewImpl::postFakeMouseMovedEventForFlagsChangedEvent):
1051         (WebKit::WebViewImpl::setUnderlayColor):
1052         (WebKit::WebViewImpl::underlayColor):
1053         (WebKit::WebViewImpl::pageExtendedBackgroundColor):
1054         (WebKit::WebViewImpl::setOverlayScrollbarStyle):
1055         (WebKit::WebViewImpl::overlayScrollbarStyle):
1056         (WebKit::WebViewImpl::endDeferringViewInWindowChanges):
1057         (WebKit::WebViewImpl::endDeferringViewInWindowChangesSync):
1058         (WebKit::WebViewImpl::prepareForMoveToWindow):
1059         (WebKit::WebViewImpl::updateSecureInputState):
1060         (WebKit::WebViewImpl::setPluginComplexTextInputState):
1061         (WebKit::WebViewImpl::handlePluginComplexTextInputKeyDown):
1062         (WebKit::WebViewImpl::handleAcceptedAlternativeText):
1063         (WebKit::WebViewImpl::pressureChangeWithEvent):
1064         (WebKit::WebViewImpl::isEditable):
1065         (WebKit::WebViewImpl::executeEditCommandForSelector):
1066         (WebKit::WebViewImpl::writeSelectionToPasteboard):
1067         (WebKit::WebViewImpl::readSelectionFromPasteboard):
1068         (WebKit::WebViewImpl::validRequestorForSendAndReturnTypes):
1069         (WebKit::WebViewImpl::centerSelectionInVisibleArea):
1070         (WebKit::WebViewImpl::updateFontPanelIfNeeded):
1071         (WebKit::WebViewImpl::changeFontFromFontPanel):
1072         (WebKit::WebViewImpl::validateUserInterfaceItem):
1073         (WebKit::WebViewImpl::startSpeaking):
1074         (WebKit::WebViewImpl::showGuessPanel):
1075         (WebKit::WebViewImpl::checkSpelling):
1076         (WebKit::WebViewImpl::changeSpelling):
1077         (WebKit::WebViewImpl::toggleContinuousSpellChecking):
1078         (WebKit::WebViewImpl::setGrammarCheckingEnabled):
1079         (WebKit::WebViewImpl::toggleGrammarChecking):
1080         (WebKit::WebViewImpl::toggleAutomaticSpellingCorrection):
1081         (WebKit::WebViewImpl::toggleSmartInsertDelete):
1082         (WebKit::WebViewImpl::setAutomaticQuoteSubstitutionEnabled):
1083         (WebKit::WebViewImpl::toggleAutomaticQuoteSubstitution):
1084         (WebKit::WebViewImpl::setAutomaticDashSubstitutionEnabled):
1085         (WebKit::WebViewImpl::toggleAutomaticDashSubstitution):
1086         (WebKit::WebViewImpl::setAutomaticLinkDetectionEnabled):
1087         (WebKit::WebViewImpl::toggleAutomaticLinkDetection):
1088         (WebKit::WebViewImpl::setAutomaticTextReplacementEnabled):
1089         (WebKit::WebViewImpl::toggleAutomaticTextReplacement):
1090         (WebKit::WebViewImpl::uppercaseWord):
1091         (WebKit::WebViewImpl::lowercaseWord):
1092         (WebKit::WebViewImpl::capitalizeWord):
1093         (WebKit::WebViewImpl::preferencesDidChange):
1094         (WebKit::WebViewImpl::dismissContentRelativeChildWindowsFromViewOnly):
1095         (WebKit::WebViewImpl::quickLookWithEvent):
1096         (WebKit::WebViewImpl::immediateActionAnimationControllerForHitTestResult):
1097         (WebKit::WebViewImpl::didChangeContentSize):
1098         (WebKit::WebViewImpl::setIgnoresNonWheelEvents):
1099         (WebKit::WebViewImpl::updateRemoteAccessibilityRegistration):
1100         (WebKit::WebViewImpl::accessibilityRegisterUIProcessTokens):
1101         (WebKit::WebViewImpl::stringForToolTip):
1102         (WebKit::WebViewImpl::setInspectorAttachmentView):
1103         (WebKit::WebViewImpl::remoteObjectRegistry):
1104         (WebKit::WebViewImpl::browsingContextController):
1105         (WebKit::WebViewImpl::draggedImage):
1106         (WebKit::WebViewImpl::draggingEntered):
1107         (WebKit::WebViewImpl::draggingUpdated):
1108         (WebKit::WebViewImpl::draggingExited):
1109         (WebKit::WebViewImpl::performDragOperation):
1110         (WebKit::WebViewImpl::takeViewSnapshot):
1111         (WebKit::WebViewImpl::saveBackForwardSnapshotForCurrentItem):
1112         (WebKit::WebViewImpl::saveBackForwardSnapshotForItem):
1113         (WebKit::WebViewImpl::setAllowsBackForwardNavigationGestures):
1114         (WebKit::WebViewImpl::setMagnification):
1115         (WebKit::WebViewImpl::magnification):
1116         (WebKit::WebViewImpl::scrollWheel):
1117         (WebKit::WebViewImpl::swipeWithEvent):
1118         (WebKit::WebViewImpl::magnifyWithEvent):
1119         (WebKit::WebViewImpl::rotateWithEvent):
1120         (WebKit::WebViewImpl::doCommandBySelector):
1121         (WebKit::WebViewImpl::insertText):
1122         (WebKit::WebViewImpl::selectedRangeWithCompletionHandler):
1123         (WebKit::WebViewImpl::markedRangeWithCompletionHandler):
1124         (WebKit::WebViewImpl::hasMarkedTextWithCompletionHandler):
1125         (WebKit::WebViewImpl::attributedSubstringForProposedRange):
1126         (WebKit::WebViewImpl::firstRectForCharacterRange):
1127         (WebKit::WebViewImpl::characterIndexForPoint):
1128         (WebKit::WebViewImpl::inputContext):
1129         (WebKit::WebViewImpl::unmarkText):
1130         (WebKit::WebViewImpl::setMarkedText):
1131         (WebKit::WebViewImpl::performKeyEquivalent):
1132         (WebKit::WebViewImpl::keyUp):
1133         (WebKit::WebViewImpl::keyDown):
1134         (WebKit::WebViewImpl::flagsChanged):
1135         (WebKit::WebViewImpl::executeSavedKeypressCommands):
1136         (WebKit::WebViewImpl::selectedRange):
1137         (WebKit::WebViewImpl::hasMarkedText):
1138         (WebKit::WebViewImpl::markedRange):
1139         (WebKit::WebViewImpl::setContentPreparationRect): Deleted.
1140         (WebKit::WebViewImpl::immediateActionAnimationControllerForHitTestResultFromViewOnly): Deleted.
1141         (WebKit::WebViewImpl::destroyRemoteObjectRegistry): Deleted.
1142         * UIProcess/WebPageProxy.h:
1143         (WebKit::WebPageProxy::scrollPinningBehavior):
1144         (WebKit::WebPageProxy::overlayScrollbarStyle):
1145         * UIProcess/WebProcessPool.cpp:
1146         (WebKit::WebProcessPool::createWebPage):
1147         * UIProcess/WebProcessPool.h:
1148         * UIProcess/mac/PageClientImpl.h:
1149         * UIProcess/mac/PageClientImpl.mm:
1150         (WebKit::PageClientImpl::PageClientImpl):
1151         (WebKit::PageClientImpl::createDrawingAreaProxy):
1152         (WebKit::PageClientImpl::viewSize):
1153         (WebKit::PageClientImpl::activeView):
1154         (WebKit::PageClientImpl::activeWindow):
1155         (WebKit::PageClientImpl::isViewFocused):
1156         (WebKit::PageClientImpl::makeFirstResponder):
1157         (WebKit::PageClientImpl::isViewVisible):
1158         (WebKit::PageClientImpl::colorSpace):
1159         (WebKit::PageClientImpl::processDidExit):
1160         (WebKit::PageClientImpl::pageClosed):
1161         (WebKit::PageClientImpl::didRelaunchProcess):
1162         (WebKit::PageClientImpl::preferencesDidChange):
1163         (WebKit::PageClientImpl::toolTipChanged):
1164         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
1165         (WebKit::PageClientImpl::didChangeContentSize):
1166         (WebKit::PageClientImpl::setCursor):
1167         (WebKit::PageClientImpl::registerEditCommand):
1168         (WebKit::PageClientImpl::registerInsertionUndoGrouping):
1169         (WebKit::PageClientImpl::clearAllEditCommands):
1170         (WebKit::PageClientImpl::canUndoRedo):
1171         (WebKit::PageClientImpl::executeUndoRedo):
1172         (WebKit::PageClientImpl::setDragImage):
1173         (WebKit::PageClientImpl::setPromisedDataForImage):
1174         (WebKit::PageClientImpl::setPromisedDataForAttachment):
1175         (WebKit::PageClientImpl::updateSecureInputState):
1176         (WebKit::PageClientImpl::resetSecureInputState):
1177         (WebKit::PageClientImpl::notifyInputContextAboutDiscardedComposition):
1178         (WebKit::PageClientImpl::convertToDeviceSpace):
1179         (WebKit::PageClientImpl::convertToUserSpace):
1180         (WebKit::PageClientImpl::screenToRootView):
1181         (WebKit::PageClientImpl::rootViewToScreen):
1182         (WebKit::PageClientImpl::doneWithKeyEvent):
1183         (WebKit::PageClientImpl::createPopupMenuProxy):
1184         (WebKit::PageClientImpl::createContextMenuProxy):
1185         (WebKit::PageClientImpl::createColorPicker):
1186         (WebKit::PageClientImpl::setTextIndicator):
1187         (WebKit::PageClientImpl::clearTextIndicator):
1188         (WebKit::PageClientImpl::setTextIndicatorAnimationProgress):
1189         (WebKit::PageClientImpl::accessibilityWebProcessTokenReceived):
1190         (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
1191         (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
1192         (WebKit::PageClientImpl::updateAcceleratedCompositingMode):
1193         (WebKit::PageClientImpl::setAcceleratedCompositingRootLayer):
1194         (WebKit::PageClientImpl::acceleratedCompositingRootLayer):
1195         (WebKit::PageClientImpl::takeViewSnapshot):
1196         (WebKit::PageClientImpl::selectionDidChange):
1197         (WebKit::PageClientImpl::wheelEventWasNotHandledByWebCore):
1198         (WebKit::PageClientImpl::gestureEventWasNotHandledByWebCore):
1199         (WebKit::PageClientImpl::pluginFocusOrWindowFocusChanged):
1200         (WebKit::PageClientImpl::setPluginComplexTextInputState):
1201         (WebKit::PageClientImpl::didPerformDictionaryLookup):
1202         (WebKit::PageClientImpl::dismissContentRelativeChildWindows):
1203         (WebKit::PageClientImpl::showCorrectionPanel):
1204         (WebKit::PageClientImpl::recordAutocorrectionResponse):
1205         (WebKit::PageClientImpl::recommendedScrollbarStyleDidChange):
1206         (WebKit::PageClientImpl::intrinsicContentSizeDidChange):
1207         (WebKit::PageClientImpl::executeSavedCommandBySelector):
1208         (WebKit::PageClientImpl::showDictationAlternativeUI):
1209         (WebKit::PageClientImpl::closeFullScreenManager):
1210         (WebKit::PageClientImpl::isFullScreen):
1211         (WebKit::PageClientImpl::enterFullScreen):
1212         (WebKit::PageClientImpl::exitFullScreen):
1213         (WebKit::PageClientImpl::beganEnterFullScreen):
1214         (WebKit::PageClientImpl::beganExitFullScreen):
1215         (WebKit::PageClientImpl::didFirstVisuallyNonEmptyLayoutForMainFrame):
1216         (WebKit::PageClientImpl::didFinishLoadForMainFrame):
1217         (WebKit::PageClientImpl::didFailLoadForMainFrame):
1218         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
1219         (WebKit::PageClientImpl::removeNavigationGestureSnapshot):
1220         (WebKit::PageClientImpl::boundsOfLayerInLayerBackedWindowCoordinates):
1221         (WebKit::PageClientImpl::didPerformImmediateActionHitTest):
1222         (WebKit::PageClientImpl::immediateActionAnimationControllerForHitTestResult):
1223         (WebKit::PageClientImpl::showPlatformContextMenu):
1224         (WebKit::PageClientImpl::refView):
1225         (WebKit::PageClientImpl::derefView):
1226         (WebKit::PageClientImpl::startWindowDrag):
1227         (WebKit::PageClientImpl::platformWindow):
1228         (WebKit::PageClientImpl::inspectorAttachmentView):
1229         (WebKit::PageClientImpl::remoteObjectRegistry):
1230         * UIProcess/mac/WebColorPickerMac.h:
1231         * UIProcess/mac/WebColorPickerMac.mm:
1232         (WebKit::WebColorPickerMac::create):
1233         (WebKit::WebColorPickerMac::WebColorPickerMac):
1234         (-[WKColorPopoverMac initWithFrame:inView:]):
1235         * UIProcess/mac/WebContextMenuProxyMac.h:
1236         * UIProcess/mac/WebContextMenuProxyMac.mm:
1237         (WebKit::WebContextMenuProxyMac::WebContextMenuProxyMac):
1238         * UIProcess/mac/WebPopupMenuProxyMac.h:
1239         (WebKit::WebPopupMenuProxyMac::create):
1240         * UIProcess/mac/WebPopupMenuProxyMac.mm:
1241         (WebKit::WebPopupMenuProxyMac::WebPopupMenuProxyMac):
1242         Move ownership of WebPageProxy and PageClientImpl to WebViewImpl.
1243
1244 2015-10-30  Alex Christensen  <achristensen@webkit.org>
1245
1246         Fix Mac CMake build after rr191810.
1247
1248         * PlatformMac.cmake:
1249         Add RemoteObjectInvocation.mm.
1250
1251 2015-10-30  Anders Carlsson  <andersca@apple.com>
1252
1253         Add a separate object that represents a remote object invocation
1254         https://bugs.webkit.org/show_bug.cgi?id=150639
1255
1256         Reviewed by Tim Horton.
1257
1258         * Shared/API/Cocoa/RemoteObjectInvocation.h: Copied from Source/WebKit2/Shared/API/Cocoa/RemoteObjectRegistry.h.
1259         (WebKit::RemoteObjectInvocation::interfaceIdentifier):
1260         (WebKit::RemoteObjectInvocation::encodedInvocation):
1261         * Shared/API/Cocoa/RemoteObjectInvocation.mm: Copied from Source/WebKit2/Shared/API/Cocoa/RemoteObjectRegistry.mm.
1262         (WebKit::RemoteObjectInvocation::RemoteObjectInvocation):
1263         (WebKit::RemoteObjectInvocation::encode):
1264         (WebKit::RemoteObjectInvocation::decode):
1265         * Shared/API/Cocoa/RemoteObjectRegistry.h:
1266         * Shared/API/Cocoa/RemoteObjectRegistry.messages.in:
1267         * Shared/API/Cocoa/RemoteObjectRegistry.mm:
1268         (WebKit::RemoteObjectRegistry::sendInvocation):
1269         (WebKit::RemoteObjectRegistry::invokeMethod):
1270         * Shared/API/Cocoa/_WKRemoteObjectRegistry.mm:
1271         (-[_WKRemoteObjectRegistry _sendInvocation:interface:]):
1272         (-[_WKRemoteObjectRegistry _invokeMethod:]):
1273         * Shared/API/Cocoa/_WKRemoteObjectRegistryInternal.h:
1274         * WebKit2.xcodeproj/project.pbxproj:
1275
1276 2015-10-30  Beth Dakin  <bdakin@apple.com>
1277
1278         Another speculative build fix.
1279
1280         * UIProcess/API/Cocoa/_WKElementAction.h:
1281
1282 2015-10-30  Beth Dakin  <bdakin@apple.com>
1283
1284         Speculative build fix.
1285
1286         * Platform/spi/ios/UIKitSPI.h:
1287         * UIProcess/ios/WKContentViewInteraction.mm:
1288
1289 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1290
1291         WKView being inside WKWebView leads to weird API issues
1292         https://bugs.webkit.org/show_bug.cgi?id=150174
1293
1294         Reviewed by Anders Carlsson.
1295
1296         * UIProcess/API/mac/WKView.mm:
1297         (-[WKView mouseMoved:]):
1298         (-[WKView mouseDown:]):
1299         (-[WKView mouseUp:]):
1300         (-[WKView mouseDragged:]):
1301         (-[WKView mouseEntered:]):
1302         (-[WKView mouseExited:]):
1303         (-[WKView otherMouseDown:]):
1304         (-[WKView otherMouseDragged:]):
1305         (-[WKView otherMouseUp:]):
1306         (-[WKView rightMouseDown:]):
1307         (-[WKView rightMouseDragged:]):
1308         (-[WKView rightMouseUp:]):
1309         (-[WKView _updateViewExposedRect]): Deleted.
1310         * UIProcess/Cocoa/WebViewImpl.h:
1311         * UIProcess/Cocoa/WebViewImpl.mm:
1312         (WebKit::WebViewImpl::mouseMoved):
1313         (WebKit::WebViewImpl::mouseDown):
1314         (WebKit::WebViewImpl::mouseUp):
1315         (WebKit::WebViewImpl::mouseDragged):
1316         Move mouse event handling.
1317
1318 2015-10-30  Beth Dakin  <bdakin@apple.com>
1319
1320         Tapping and holding a link should have a share option
1321         https://bugs.webkit.org/show_bug.cgi?id=150693
1322         -and corresponding-
1323         rdar://problem/21319702
1324
1325         Reviewed by Tim Horton.
1326
1327         New _WKElementActionType called _WKElementActionTypeShare.
1328         * UIProcess/API/Cocoa/_WKElementAction.h:
1329         * UIProcess/API/Cocoa/_WKElementAction.mm:
1330         (+[_WKElementAction _elementActionWithType:customTitle:assistant:]):
1331
1332         _WKElementActionTypeShare is part of the default actions for links.
1333         * UIProcess/ios/WKActionSheetAssistant.h:
1334         * UIProcess/ios/WKActionSheetAssistant.mm:
1335         (-[WKActionSheetAssistant defaultActionsForLinkSheet:]):
1336
1337         Handle the sharing part!
1338         * UIProcess/ios/WKContentViewInteraction.mm:
1339         (-[WKContentView actionSheetAssistant:shareElementWithURL:rect:]):
1340
1341         To support this in PDF, PDF need to create a _webSelectionAssistant.
1342         * UIProcess/ios/WKPDFView.mm:
1343         (-[WKPDFView web_initWithFrame:webView:]):
1344         (-[WKPDFView actionSheetAssistant:openElementAtLocation:]):
1345         (-[WKPDFView actionSheetAssistant:shareElementWithURL:rect:]):
1346         (-[WKPDFView actionSheetAssistant:shouldIncludeAppLinkActionsForElement:]):
1347
1348 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1349
1350         WKView being inside WKWebView leads to weird API issues
1351         https://bugs.webkit.org/show_bug.cgi?id=150174
1352
1353         Reviewed by Anders Carlsson.
1354
1355         * UIProcess/API/mac/WKView.mm:
1356         (-[WKView _wantsKeyDownForEvent:]):
1357         (-[WKView acceptsFirstMouse:]):
1358         (-[WKView shouldDelayWindowOrderingForEvent:]):
1359         (-[WKView validAttributesForMarkedText]):
1360         (-[WKView _windowResizeMouseLocationIsInVisibleScrollerThumb:]):
1361         (-[WKView drawRect:]):
1362         (-[WKView isOpaque]):
1363         (-[WKView mouseDownCanMoveWindow]):
1364         (-[WKView viewDidHide]):
1365         (-[WKView viewDidUnhide]):
1366         (-[WKView _activeSpaceDidChange:]):
1367         (-[WKView hitTest:]):
1368         (-[WKView wantsUpdateLayer]):
1369         (-[WKView canChangeFrameLayout:]):
1370         (-[WKView printOperationWithPrintInfo:forFrame:]):
1371         (+[WKView hideWordDefinitionWindow]):
1372         * UIProcess/Cocoa/WebViewImpl.h:
1373         (WebKit::WebViewImpl::wantsUpdateLayer):
1374         (WebKit::WebViewImpl::mouseDownCanMoveWindow):
1375         (WebKit::WebViewImpl::wantsKeyDownForEvent):
1376         (WebKit::WebViewImpl::layerHostingView): Deleted.
1377         * UIProcess/Cocoa/WebViewImpl.mm:
1378         (WebKit::WebViewImpl::isOpaque):
1379         (WebKit::WebViewImpl::acceptsFirstMouse):
1380         (WebKit::WebViewImpl::drawRect):
1381         (WebKit::WebViewImpl::canChangeFrameLayout):
1382         (WebKit::WebViewImpl::printOperationWithPrintInfo):
1383         (WebKit::WebViewImpl::shouldDelayWindowOrderingForEvent):
1384         (WebKit::WebViewImpl::windowResizeMouseLocationIsInVisibleScrollerThumb):
1385         (WebKit::WebViewImpl::viewDidHide):
1386         (WebKit::WebViewImpl::viewDidUnhide):
1387         (WebKit::WebViewImpl::activeSpaceDidChange):
1388         (WebKit::WebViewImpl::hitTest):
1389         (WebKit::WebViewImpl::hideWordDefinitionWindow):
1390         (WebKit::WebViewImpl::validAttributesForMarkedText):
1391         Printing and random bits.
1392
1393 2015-10-30  Anders Carlsson  <andersca@apple.com>
1394
1395         REGRESSION (r191691): Unexpected "Share" context menu when right clicking around inspector
1396         https://bugs.webkit.org/show_bug.cgi?id=150699
1397         rdar://problem/23324522
1398
1399         Reviewed by Tim Horton.
1400
1401         Don't create a share menu item if we have nothing to share.
1402
1403         * UIProcess/mac/WebContextMenuProxyMac.mm:
1404         (WebKit::WebContextMenuProxyMac::createShareMenuItem):
1405
1406 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1407
1408         Initialize some new WebViewImpl members
1409
1410         * UIProcess/Cocoa/WebViewImpl.h:
1411         Oh well.
1412
1413 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1414
1415         Fix the build
1416
1417         * UIProcess/API/mac/WKView.mm:
1418
1419 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1420
1421         Fix the build
1422
1423         * UIProcess/Cocoa/WebViewImpl.h:
1424         * UIProcess/Cocoa/WebViewImpl.mm:
1425         (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent):
1426
1427 2015-10-30  Tim Horton  <timothy_horton@apple.com>
1428
1429         WKView being inside WKWebView leads to weird API issues
1430         https://bugs.webkit.org/show_bug.cgi?id=150174
1431
1432         Reviewed by Darin Adler.
1433
1434         * UIProcess/API/mac/WKView.mm:
1435         (-[WKView doCommandBySelector:]):
1436         (-[WKView insertText:]):
1437         (-[WKView insertText:replacementRange:]):
1438         (-[WKView inputContext]):
1439         (-[WKView performKeyEquivalent:]):
1440         (-[WKView keyUp:]):
1441         (-[WKView keyDown:]):
1442         (-[WKView flagsChanged:]):
1443         (-[WKView setMarkedText:selectedRange:replacementRange:]):
1444         (-[WKView unmarkText]):
1445         (-[WKView selectedRange]):
1446         (-[WKView hasMarkedText]):
1447         (-[WKView markedRange]):
1448         (-[WKView attributedSubstringForProposedRange:actualRange:]):
1449         (-[WKView characterIndexForPoint:]):
1450         (-[WKView firstRectForCharacterRange:actualRange:]):
1451         (-[WKView selectedRangeWithCompletionHandler:]):
1452         (-[WKView markedRangeWithCompletionHandler:]):
1453         (-[WKView hasMarkedTextWithCompletionHandler:]):
1454         (-[WKView attributedSubstringForProposedRange:completionHandler:]):
1455         (-[WKView firstRectForCharacterRange:completionHandler:]):
1456         (-[WKView characterIndexForPoint:completionHandler:]):
1457         (-[WKView _superPerformKeyEquivalent:]):
1458         (-[WKView _superKeyDown:]):
1459         (extractUnderlines): Deleted.
1460         (-[WKView _collectKeyboardLayoutCommandsForEvent:to:]): Deleted.
1461         (-[WKView _interpretKeyEvent:completionHandler:]): Deleted.
1462         (-[WKView NO_RETURN_DUE_TO_ASSERT]): Deleted.
1463         (-[WKView _interpretKeyEvent:savingCommandsTo:]): Deleted.
1464         (-[WKView _executeSavedKeypressCommands]): Deleted.
1465         (-[WKView _doneWithKeyEvent:eventWasHandled:]): Deleted.
1466         * UIProcess/API/mac/WKViewInternal.h:
1467         * UIProcess/Cocoa/WebViewImpl.h:
1468         * UIProcess/Cocoa/WebViewImpl.mm:
1469         (WebKit::WebViewImpl::doneWithKeyEvent):
1470         (WebKit::extractUnderlines):
1471         (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent):
1472         (WebKit::WebViewImpl::interpretKeyEvent):
1473         (WebKit::WebViewImpl::doCommandBySelector):
1474         (WebKit::WebViewImpl::insertText):
1475         (WebKit::WebViewImpl::selectedRangeWithCompletionHandler):
1476         (WebKit::WebViewImpl::markedRangeWithCompletionHandler):
1477         (WebKit::WebViewImpl::hasMarkedTextWithCompletionHandler):
1478         (WebKit::WebViewImpl::attributedSubstringForProposedRange):
1479         (WebKit::WebViewImpl::firstRectForCharacterRange):
1480         (WebKit::WebViewImpl::characterIndexForPoint):
1481         (WebKit::WebViewImpl::inputContext):
1482         (WebKit::WebViewImpl::unmarkText):
1483         (WebKit::WebViewImpl::setMarkedText):
1484         (WebKit::WebViewImpl::selectedRange):
1485         (WebKit::WebViewImpl::hasMarkedText):
1486         (WebKit::WebViewImpl::markedRange):
1487         (WebKit::WebViewImpl::performKeyEquivalent):
1488         (WebKit::WebViewImpl::keyUp):
1489         (WebKit::WebViewImpl::keyDown):
1490         (WebKit::WebViewImpl::flagsChanged):
1491         (WebKit::WebViewImpl::executeSavedKeypressCommands):
1492         * UIProcess/mac/PageClientImpl.mm:
1493         (WebKit::PageClientImpl::doneWithKeyEvent):
1494         Move NSTextInputClient implementation.
1495
1496 2015-10-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1497
1498         [GTK] Move the socket polling off the WorkQueue
1499         https://bugs.webkit.org/show_bug.cgi?id=150593
1500
1501         Reviewed by Anders Carlsson.
1502
1503         Create the socket poll source in Connection::open and attach it to
1504         the connection work queue context.
1505
1506         * Platform/IPC/Connection.h:
1507         * Platform/IPC/unix/ConnectionUnix.cpp:
1508         (IPC::Connection::platformInvalidate):
1509         (IPC::Connection::open):
1510
1511 2015-10-30  Carlos Garcia Campos  <cgarcia@igalia.com>
1512
1513         [GTK] Use RunLoop::Timer instead of GMainLoopSource
1514         https://bugs.webkit.org/show_bug.cgi?id=150592
1515
1516         Reviewed by Žan Doberšek.
1517
1518         * Shared/Downloads/soup/DownloadSoup.cpp:
1519         (WebKit::DownloadClient::DownloadClient):
1520         (WebKit::DownloadClient::didReceiveData):
1521         (WebKit::DownloadClient::handleResponseLater):
1522         * UIProcess/gtk/GestureController.cpp:
1523         (WebKit::GestureController::DragGesture::begin):
1524         (WebKit::GestureController::DragGesture::update):
1525         (WebKit::GestureController::DragGesture::end):
1526         (WebKit::GestureController::DragGesture::longPressFired):
1527         (WebKit::GestureController::DragGesture::DragGesture):
1528         (WebKit::GestureController::ZoomGesture::scaleChanged):
1529         (WebKit::GestureController::ZoomGesture::ZoomGesture):
1530         * UIProcess/gtk/GestureController.h:
1531
1532 2015-10-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1533
1534         [GTK] Use a persistent main loop source in RunLoop glib implementation
1535         https://bugs.webkit.org/show_bug.cgi?id=150590
1536
1537         Reviewed by Žan Doberšek.
1538
1539         Use RunLoop::dispatch() instead of
1540         GMainLoopSource::scheduleAndDeleteOnDestroy in a couple of simple
1541         cases.
1542
1543         * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp:
1544         (WebKit::NetworkCache::runTaskInQueue):
1545         * UIProcess/gtk/DragAndDropHandler.cpp:
1546         (WebKit::DragAndDropHandler::dragLeave):
1547
1548 2015-10-29  Alex Christensen  <achristensen@webkit.org>
1549
1550         Make WebCore a framework in Mac CMake build
1551         https://bugs.webkit.org/show_bug.cgi?id=150702
1552
1553         Reviewed by Geoffrey Garen.
1554
1555         * PlatformMac.cmake:
1556
1557 2015-10-29  Alex Christensen  <achristensen@webkit.org>
1558
1559         EFL build fix after r191749
1560
1561         * CMakeLists.txt:
1562         Only Mac should include the Cocoa directory.
1563
1564 2015-10-29  Tim Horton  <timothy_horton@apple.com>
1565
1566         WKView being inside WKWebView leads to weird API issues
1567         https://bugs.webkit.org/show_bug.cgi?id=150174
1568
1569         Reviewed by Anders Carlsson.
1570
1571         * Platform/spi/mac/AppKitSPI.h:
1572         * UIProcess/API/mac/WKView.mm:
1573         (-[WKView validRequestorForSendType:returnType:]):
1574         (-[WKView readSelectionFromPasteboard:]):
1575         (-[WKView changeFont:]):
1576         (-[WKView startSpeaking:]):
1577         (-[WKView stopSpeaking:]):
1578         (-[WKView showGuessPanel:]):
1579         (-[WKView checkSpelling:]):
1580         (-[WKView changeSpelling:]):
1581         (-[WKView toggleContinuousSpellChecking:]):
1582         (-[WKView isGrammarCheckingEnabled]):
1583         (-[WKView setGrammarCheckingEnabled:]):
1584         (-[WKView toggleGrammarChecking:]):
1585         (-[WKView toggleAutomaticSpellingCorrection:]):
1586         (-[WKView orderFrontSubstitutionsPanel:]):
1587         (-[WKView toggleSmartInsertDelete:]):
1588         (-[WKView isAutomaticQuoteSubstitutionEnabled]):
1589         (-[WKView setAutomaticQuoteSubstitutionEnabled:]):
1590         (-[WKView toggleAutomaticQuoteSubstitution:]):
1591         (-[WKView isAutomaticDashSubstitutionEnabled]):
1592         (-[WKView setAutomaticDashSubstitutionEnabled:]):
1593         (-[WKView toggleAutomaticDashSubstitution:]):
1594         (-[WKView isAutomaticLinkDetectionEnabled]):
1595         (-[WKView setAutomaticLinkDetectionEnabled:]):
1596         (-[WKView toggleAutomaticLinkDetection:]):
1597         (-[WKView isAutomaticTextReplacementEnabled]):
1598         (-[WKView setAutomaticTextReplacementEnabled:]):
1599         (-[WKView toggleAutomaticTextReplacement:]):
1600         (-[WKView uppercaseWord:]):
1601         (-[WKView lowercaseWord:]):
1602         (-[WKView capitalizeWord:]):
1603         * UIProcess/Cocoa/WebViewImpl.h:
1604         * UIProcess/Cocoa/WebViewImpl.mm:
1605         (WebKit::WebViewImpl::readSelectionFromPasteboard):
1606         (WebKit::WebViewImpl::validRequestorForSendAndReturnTypes):
1607         (WebKit::WebViewImpl::changeFontFromFontPanel):
1608         (WebKit::WebViewImpl::startSpeaking):
1609         (WebKit::WebViewImpl::stopSpeaking):
1610         (WebKit::WebViewImpl::showGuessPanel):
1611         (WebKit::WebViewImpl::checkSpelling):
1612         (WebKit::WebViewImpl::changeSpelling):
1613         (WebKit::WebViewImpl::toggleContinuousSpellChecking):
1614         (WebKit::WebViewImpl::isGrammarCheckingEnabled):
1615         (WebKit::WebViewImpl::setGrammarCheckingEnabled):
1616         (WebKit::WebViewImpl::toggleGrammarChecking):
1617         (WebKit::WebViewImpl::toggleAutomaticSpellingCorrection):
1618         (WebKit::WebViewImpl::orderFrontSubstitutionsPanel):
1619         (WebKit::WebViewImpl::toggleSmartInsertDelete):
1620         (WebKit::WebViewImpl::isAutomaticQuoteSubstitutionEnabled):
1621         (WebKit::WebViewImpl::setAutomaticQuoteSubstitutionEnabled):
1622         (WebKit::WebViewImpl::toggleAutomaticQuoteSubstitution):
1623         (WebKit::WebViewImpl::isAutomaticDashSubstitutionEnabled):
1624         (WebKit::WebViewImpl::setAutomaticDashSubstitutionEnabled):
1625         (WebKit::WebViewImpl::toggleAutomaticDashSubstitution):
1626         (WebKit::WebViewImpl::isAutomaticLinkDetectionEnabled):
1627         (WebKit::WebViewImpl::setAutomaticLinkDetectionEnabled):
1628         (WebKit::WebViewImpl::toggleAutomaticLinkDetection):
1629         (WebKit::WebViewImpl::setAutomaticTextReplacementEnabled):
1630         (WebKit::WebViewImpl::toggleAutomaticTextReplacement):
1631         (WebKit::WebViewImpl::uppercaseWord):
1632         (WebKit::WebViewImpl::lowercaseWord):
1633         (WebKit::WebViewImpl::capitalizeWord):
1634         Move spellcheck and related bits.
1635
1636 2015-10-29  Eric Carlson  <eric.carlson@apple.com>
1637
1638         Revert inadvertent changes
1639         https://bugs.webkit.org/show_bug.cgi?id=150694
1640
1641         Reviewed by Tim Horton.
1642
1643         * WebProcess/com.apple.WebProcess.sb.in:
1644
1645 2015-10-29  Alex Christensen  <achristensen@webkit.org>
1646
1647         CMake build fix.
1648
1649         * CMakeLists.txt:
1650         * PlatformMac.cmake:
1651         I mistakenly added some mac-specific files to the shared CMakeLists.txt.  This puts them in the right place.
1652         * UIProcess/WebPageProxy.cpp:
1653         (WebKit::WebPageProxy::viewWillStartLiveResize):
1654         (WebKit::WebPageProxy::viewDidLeaveWindow):
1655         (WebKit::WebPageProxy::didEndColorPicker):
1656         Add preprocessor enable checks.
1657
1658 2015-10-29  Tim Horton  <timothy_horton@apple.com>
1659
1660         WKView being inside WKWebView leads to weird API issues
1661         https://bugs.webkit.org/show_bug.cgi?id=150174
1662
1663         Reviewed by Darin Adler.
1664
1665         * UIProcess/API/mac/WKView.mm:
1666         (-[WKView browsingContextController]):
1667         (-[WKView validateUserInterfaceItem:]):
1668         (-[WKView saveBackForwardSnapshotForCurrentItem]):
1669         (-[WKView saveBackForwardSnapshotForItem:]):
1670         (-[WKView updateLayer]):
1671         (-[WKView minimumSizeForAutoLayout]):
1672         (-[WKView setMinimumSizeForAutoLayout:]):
1673         (-[WKView shouldExpandToViewHeightForAutoLayout]):
1674         (-[WKView setShouldExpandToViewHeightForAutoLayout:]):
1675         (-[WKView underlayColor]):
1676         (-[WKView setUnderlayColor:]):
1677         (-[WKView _setOverlayScrollbarStyle:]):
1678         (-[WKView _overlayScrollbarStyle]):
1679         (-[WKView _pageExtendedBackgroundColor]):
1680         (-[WKView forceAsyncDrawingAreaSizeUpdate:]):
1681         (-[WKView waitForAsyncDrawingAreaSizeUpdate]):
1682         (-[WKView isUsingUISideCompositing]):
1683         (createSelectorExceptionMap): Deleted.
1684         (commandNameForSelector): Deleted.
1685         (menuItem): Deleted.
1686         (toolbarItem): Deleted.
1687         (-[WKView _setUserInterfaceItemState:enabled:state:]): Deleted.
1688         * UIProcess/Cocoa/WebViewImpl.h:
1689         * UIProcess/Cocoa/WebViewImpl.mm:
1690         (WebKit::WebViewImpl::createDrawingAreaProxy):
1691         (WebKit::WebViewImpl::isUsingUISideCompositing):
1692         (WebKit::WebViewImpl::forceAsyncDrawingAreaSizeUpdate):
1693         (WebKit::WebViewImpl::waitForAsyncDrawingAreaSizeUpdate):
1694         (WebKit::WebViewImpl::updateLayer):
1695         (WebKit::WebViewImpl::setMinimumSizeForAutoLayout):
1696         (WebKit::WebViewImpl::minimumSizeForAutoLayout):
1697         (WebKit::WebViewImpl::setShouldExpandToViewHeightForAutoLayout):
1698         (WebKit::WebViewImpl::shouldExpandToViewHeightForAutoLayout):
1699         (WebKit::WebViewImpl::setUnderlayColor):
1700         (WebKit::WebViewImpl::underlayColor):
1701         (WebKit::WebViewImpl::pageExtendedBackgroundColor):
1702         (WebKit::WebViewImpl::setOverlayScrollbarStyle):
1703         (WebKit::WebViewImpl::overlayScrollbarStyle):
1704         (WebKit::createSelectorExceptionMap):
1705         (WebKit::commandNameForSelector):
1706         (WebKit::WebViewImpl::executeSavedCommandBySelector):
1707         (WebKit::WebViewImpl::executeEditCommandForSelector):
1708         (WebKit::menuItem):
1709         (WebKit::toolbarItem):
1710         (WebKit::WebViewImpl::validateUserInterfaceItem):
1711         (WebKit::WebViewImpl::setUserInterfaceItemState):
1712         (WebKit::WebViewImpl::browsingContextController):
1713         (WebKit::WebViewImpl::saveBackForwardSnapshotForCurrentItem):
1714         (WebKit::WebViewImpl::saveBackForwardSnapshotForItem):
1715         (WebKit::WebViewImpl::executeEditCommand): Deleted.
1716         Move UI validation and a grab-bag of other things.
1717
1718 2015-10-29  Alex Christensen  <achristensen@webkit.org>
1719
1720         Fix Mac CMake build
1721         https://bugs.webkit.org/show_bug.cgi?id=150686
1722
1723         Reviewed by Filip Pizlo.
1724
1725         * CMakeLists.txt:
1726         * PlatformMac.cmake:
1727
1728 2015-10-29  Commit Queue  <commit-queue@webkit.org>
1729
1730         Unreviewed, rolling out r191728.
1731         https://bugs.webkit.org/show_bug.cgi?id=150668
1732
1733         Caused a lot of timeouts in layout tests (Requested by KaL on
1734         #webkit).
1735
1736         Reverted changeset:
1737
1738         "[GTK] Use a persistent main loop source in RunLoop glib
1739         implementation"
1740         https://bugs.webkit.org/show_bug.cgi?id=150590
1741         http://trac.webkit.org/changeset/191728
1742
1743 2015-10-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1744
1745         [GTK] Use a persistent main loop source in RunLoop glib implementation
1746         https://bugs.webkit.org/show_bug.cgi?id=150590
1747
1748         Reviewed by Žan Doberšek.
1749
1750         Use RunLoop::dispatch() instead of
1751         GMainLoopSource::scheduleAndDeleteOnDestroy in a couple of simple
1752         cases.
1753
1754         * NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp:
1755         (WebKit::NetworkCache::runTaskInQueue):
1756         * UIProcess/gtk/DragAndDropHandler.cpp:
1757         (WebKit::DragAndDropHandler::dragLeave):
1758
1759 2015-10-28  Tim Horton  <timothy_horton@apple.com>
1760
1761         Fix the build
1762
1763         * UIProcess/mac/PageClientImpl.mm:
1764         (WebKit::PageClientImpl::startWindowDrag):
1765         (WebKit::PageClientImpl::platformWindow):
1766
1767 2015-10-28  Tim Horton  <timothy_horton@apple.com>
1768
1769         WKView being inside WKWebView leads to weird API issues
1770         https://bugs.webkit.org/show_bug.cgi?id=150174
1771
1772         Reviewed by Anders Carlsson.
1773
1774         * UIProcess/API/C/mac/WKPagePrivateMac.mm:
1775         (WKPageGetObjectRegistry):
1776         * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
1777         (-[WKBrowsingContextController _remoteObjectRegistry]):
1778         * UIProcess/API/mac/WKView.mm:
1779         (-[WKView dealloc]):
1780         (-[WKView _inspectorAttachmentView]):
1781         (-[WKView _setInspectorAttachmentView:]):
1782         (-[WKView windowOcclusionDetectionEnabled]):
1783         (-[WKView setWindowOcclusionDetectionEnabled:]):
1784         (-[WKView _setTotalHeightOfBanners:]):
1785         (-[WKView _totalHeightOfBanners]):
1786         (-[WKView initWithFrame:processPool:configuration:webView:]): Deleted.
1787         (-[WKView _remoteObjectRegistry]): Deleted.
1788         (-[WKView _startWindowDrag]): Deleted.
1789         * UIProcess/API/mac/WKViewInternal.h:
1790         * UIProcess/Cocoa/WebViewImpl.h:
1791         (WebKit::WebViewImpl::setWindowOcclusionDetectionEnabled):
1792         (WebKit::WebViewImpl::windowOcclusionDetectionEnabled):
1793         (WebKit::WebViewImpl::setTotalHeightOfBanners):
1794         (WebKit::WebViewImpl::totalHeightOfBanners):
1795         * UIProcess/Cocoa/WebViewImpl.mm:
1796         (WebKit::WebViewImpl::window):
1797         (WebKit::WebViewImpl::setInspectorAttachmentView):
1798         (WebKit::WebViewImpl::inspectorAttachmentView):
1799         (WebKit::WebViewImpl::remoteObjectRegistry):
1800         (WebKit::WebViewImpl::destroyRemoteObjectRegistry):
1801         * UIProcess/PageClient.h:
1802         * UIProcess/WebPageProxy.h:
1803         * UIProcess/mac/PageClientImpl.h:
1804         * UIProcess/mac/PageClientImpl.mm:
1805         (WebKit::PageClientImpl::isViewVisible):
1806         (WebKit::PageClientImpl::createColorPicker):
1807         (WebKit::PageClientImpl::startWindowDrag):
1808         (WebKit::PageClientImpl::platformWindow):
1809         (WebKit::PageClientImpl::inspectorAttachmentView):
1810         (WebKit::PageClientImpl::remoteObjectRegistry):
1811         * UIProcess/mac/WebInspectorProxyMac.mm:
1812         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1813         (WebKit::WebInspectorProxy::platformCanAttach):
1814         (WebKit::WebInspectorProxy::platformBringToFront):
1815         (WebKit::WebInspectorProxy::inspectedViewFrameDidChange):
1816         (WebKit::WebInspectorProxy::platformInspectedWindowHeight):
1817         (WebKit::WebInspectorProxy::platformInspectedWindowWidth):
1818         (WebKit::WebInspectorProxy::platformAttach):
1819         (WebKit::WebInspectorProxy::platformDetach):
1820         (WebKit::WebInspectorProxy::platformStartWindowDrag):
1821         * UIProcess/mac/WebPageProxyMac.mm:
1822         (WebKit::WebPageProxy::startWindowDrag):
1823         (WebKit::WebPageProxy::platformWindow):
1824         (WebKit::WebPageProxy::inspectorAttachmentView):
1825         (WebKit::WebPageProxy::remoteObjectRegistry):
1826         (WebKit::WebPageProxy::wkView): Deleted.
1827         Get rid of the wkView() getters on PageClientImpl and WebPageProxy, because
1828         those can't be a thing in the brave new world. Instead, plumb the four
1829         callers through PageClient to WebViewImpl.
1830
1831         Also, move a few more things (banners, window occlusion).
1832
1833 2015-10-27  Anders Carlsson  <andersca@apple.com>
1834
1835         Stub out more of the context menu SPI
1836         https://bugs.webkit.org/show_bug.cgi?id=150606
1837
1838         Reviewed by Dan Bernstein.
1839
1840         Add a delegate method that will allow the client to modify the menu. Also,
1841         add an empty _WKContextMenuElementInfo class and its _WKElementInfo superclass.
1842
1843         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
1844         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h: Added.
1845         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.mm: Added.
1846         * UIProcess/API/Cocoa/_WKElementInfo.h: Added.
1847         * UIProcess/API/Cocoa/_WKElementInfo.mm: Added.
1848         * UIProcess/Cocoa/UIDelegate.h:
1849         * UIProcess/Cocoa/UIDelegate.mm:
1850         (WebKit::UIDelegate::setDelegate):
1851         (WebKit::UIDelegate::ContextMenuClient::menuFromProposedMenu):
1852         (WebKit::UIDelegate::UIClient::createNewPage):
1853         * UIProcess/mac/WebContextMenuProxyMac.mm:
1854         (WebKit::WebContextMenuProxyMac::showContextMenu):
1855         * WebKit2.xcodeproj/project.pbxproj:
1856
1857 2015-10-28  Anders Carlsson  <andersca@apple.com>
1858
1859         Stop using ContextMenuItem::shareMenuItem in the UI process
1860         https://bugs.webkit.org/show_bug.cgi?id=150578
1861
1862         Reviewed by Tim Horton.
1863
1864         * UIProcess/mac/WebContextMenuProxyMac.h:
1865         * UIProcess/mac/WebContextMenuProxyMac.mm:
1866         (WebKit::WebContextMenuProxyMac::createShareMenuItem):
1867         (WebKit::WebContextMenuProxyMac::createContextMenuItem):
1868         (WebKit::WebContextMenuProxyMac::shareMenuItem): Deleted.
1869
1870 2015-10-28  Tim Horton  <timothy_horton@apple.com>
1871
1872         WKView being inside WKWebView leads to weird API issues
1873         https://bugs.webkit.org/show_bug.cgi?id=150174
1874
1875         Reviewed by Anders Carlsson.
1876
1877         * UIProcess/API/mac/WKView.mm:
1878         (-[WKView _superDoCommandBySelector:]):
1879         (-[WKView _createDrawingAreaProxy]): Deleted.
1880         (-[WKView _processDidExit]): Deleted.
1881         (-[WKView _pageClosed]): Deleted.
1882         (-[WKView _didRelaunchProcess]): Deleted.
1883         (-[WKView _convertToDeviceSpace:]): Deleted.
1884         (-[WKView _convertToUserSpace:]): Deleted.
1885         (-[WKView _executeSavedCommandBySelector:]): Deleted.
1886         (-[WKResponderChainSink initWithResponderChain:]): Deleted.
1887         (-[WKResponderChainSink detach]): Deleted.
1888         (-[WKResponderChainSink didReceiveUnhandledCommand]): Deleted.
1889         (-[WKResponderChainSink noResponderFor:]): Deleted.
1890         (-[WKResponderChainSink doCommandBySelector:]): Deleted.
1891         (-[WKResponderChainSink tryToPerform:with:]): Deleted.
1892         * UIProcess/API/mac/WKViewInternal.h:
1893         * UIProcess/Cocoa/WebViewImpl.h:
1894         * UIProcess/Cocoa/WebViewImpl.mm:
1895         (-[WKResponderChainSink initWithResponderChain:]):
1896         (-[WKResponderChainSink detach]):
1897         (-[WKResponderChainSink didReceiveUnhandledCommand]):
1898         (-[WKResponderChainSink noResponderFor:]):
1899         (-[WKResponderChainSink doCommandBySelector:]):
1900         (-[WKResponderChainSink tryToPerform:with:]):
1901         (WebKit::WebViewImpl::createDrawingAreaProxy):
1902         (WebKit::WebViewImpl::processDidExit):
1903         (WebKit::WebViewImpl::pageClosed):
1904         (WebKit::WebViewImpl::didRelaunchProcess):
1905         (WebKit::WebViewImpl::executeSavedCommandBySelector):
1906         (WebKit::WebViewImpl::resetGestureController): Deleted.
1907         * UIProcess/mac/PageClientImpl.mm:
1908         (WebKit::PageClientImpl::createDrawingAreaProxy):
1909         (WebKit::PageClientImpl::processDidExit):
1910         (WebKit::PageClientImpl::pageClosed):
1911         (WebKit::PageClientImpl::didRelaunchProcess):
1912         (WebKit::PageClientImpl::convertToDeviceSpace):
1913         (WebKit::PageClientImpl::convertToUserSpace):
1914         (WebKit::PageClientImpl::executeSavedCommandBySelector):
1915         Move most of the rest of WKViewInternal.h's methods to WebViewImpl.
1916
1917 2015-10-28  Alex Christensen  <achristensen@webkit.org>
1918
1919         Compile and link with CMake on Mac
1920         https://bugs.webkit.org/show_bug.cgi?id=150632
1921
1922         Reviewed by Tim Horton.
1923
1924         * CMakeLists.txt:
1925         * PlatformEfl.cmake:
1926         * PlatformGTK.cmake:
1927         * PlatformMac.cmake:
1928
1929 2015-10-27  Anders Carlsson  <andersca@apple.com>
1930
1931         Stub out more of the context menu SPI
1932         https://bugs.webkit.org/show_bug.cgi?id=150606
1933
1934         Reviewed by Dan Bernstein.
1935
1936         Add a delegate method that will allow the client to modify the menu. Also,
1937         add an empty _WKContextMenuElementInfo class and its _WKElementInfo superclass.
1938
1939         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
1940         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.h: Added.
1941         * UIProcess/API/Cocoa/_WKContextMenuElementInfo.mm: Added.
1942         * UIProcess/API/Cocoa/_WKElementInfo.h: Added.
1943         * UIProcess/API/Cocoa/_WKElementInfo.mm: Added.
1944         * UIProcess/Cocoa/UIDelegate.h:
1945         * UIProcess/Cocoa/UIDelegate.mm:
1946         (WebKit::UIDelegate::setDelegate):
1947         (WebKit::UIDelegate::ContextMenuClient::menuFromProposedMenu):
1948         (WebKit::UIDelegate::UIClient::createNewPage):
1949         * UIProcess/mac/WebContextMenuProxyMac.mm:
1950         (WebKit::WebContextMenuProxyMac::showContextMenu):
1951         * WebKit2.xcodeproj/project.pbxproj:
1952
1953 2015-10-28  Chris Dumez  <cdumez@apple.com>
1954
1955         Use RunLoopTimer in DataURLDecoder to avoid issues related to runloops
1956         https://bugs.webkit.org/show_bug.cgi?id=150609
1957         <rdar://problem/22702894>
1958
1959         Reviewed by Antti Koivisto.
1960
1961         Move addSchedulePair() call to Page::platformInitialize() so that
1962         RunLoopTimer can be used by any Page, even those that don't have
1963         a WebPage wrapper.
1964
1965         * WebProcess/WebPage/mac/WebPageMac.mm:
1966         (WebKit::WebPage::platformInitialize): Deleted.
1967
1968 2015-10-27  Tim Horton  <timothy_horton@apple.com>
1969
1970         Fix the 32-bit build.
1971
1972         * UIProcess/Cocoa/WebViewImpl.mm:
1973         (WebKit::WebViewImpl::dragImageForView):
1974
1975 2015-10-27  Tim Horton  <timothy_horton@apple.com>
1976
1977         Fix the build.
1978
1979         * UIProcess/Cocoa/WebViewImpl.mm:
1980
1981 2015-10-27  Tim Horton  <timothy_horton@apple.com>
1982
1983         WKView being inside WKWebView leads to weird API issues
1984         https://bugs.webkit.org/show_bug.cgi?id=150174
1985
1986         Reviewed by Anders Carlsson.
1987
1988         * UIProcess/API/mac/WKView.mm:
1989         (-[WKView mouseDown:]):
1990         (-[WKView mouseUp:]):
1991         (-[WKView acceptsFirstMouse:]):
1992         (-[WKView shouldDelayWindowOrderingForEvent:]):
1993         (-[WKView pasteboardChangedOwner:]):
1994         (-[WKView pasteboard:provideDataForType:]):
1995         (-[WKView namesOfPromisedFilesDroppedAtDestination:]):
1996         (-[WKView _startWindowDrag]):
1997         (-[WKView _setMouseDownEvent:]): Deleted.
1998         (-[WKView _colorSpace]): Deleted.
1999         (-[WKView _dragImageForView:withImage:at:linkDrag:]): Deleted.
2000         (matchesExtensionOrEquivalent): Deleted.
2001         (-[WKView _setFileAndURLTypes:withExtension:withTitle:withURL:withVisibleURL:forPasteboard:]): Deleted.
2002         (-[WKView _setPromisedDataForImage:withFileName:withExtension:withTitle:withURL:withVisibleURL:withArchive:forPasteboard:]): Deleted.
2003         (-[WKView _setPromisedDataForAttachment:withExtension:withTitle:withURL:withVisibleURL:forPasteboard:]): Deleted.
2004         (fileExists): Deleted.
2005         (pathWithUniqueFilenameForPath): Deleted.
2006         (-[WKView spellCheckerDocumentTag]): Deleted.
2007         (-[WKView handleAcceptedAlternativeText:]): Deleted.
2008         (-[WKView initWithFrame:processPool:configuration:webView:]): Deleted.
2009         * UIProcess/API/mac/WKViewInternal.h:
2010         * UIProcess/Cocoa/WebViewImpl.h:
2011         * UIProcess/Cocoa/WebViewImpl.mm:
2012         (WebKit::WebViewImpl::handleAcceptedAlternativeText):
2013         (WebKit::WebViewImpl::spellCheckerDocumentTag):
2014         (WebKit::WebViewImpl::startWindowDrag):
2015         (WebKit::WebViewImpl::dragImageForView):
2016         (WebKit::matchesExtensionOrEquivalent):
2017         (WebKit::WebViewImpl::setFileAndURLTypes):
2018         (WebKit::WebViewImpl::setPromisedDataForImage):
2019         (WebKit::WebViewImpl::setPromisedDataForAttachment):
2020         (WebKit::WebViewImpl::pasteboardChangedOwner):
2021         (WebKit::WebViewImpl::provideDataForPasteboard):
2022         (WebKit::fileExists):
2023         (WebKit::pathWithUniqueFilenameForPath):
2024         (WebKit::WebViewImpl::namesOfPromisedFilesDroppedAtDestination):
2025         (WebKit::WebViewImpl::setLastMouseDownEvent):
2026         * UIProcess/mac/CorrectionPanel.h:
2027         * UIProcess/mac/CorrectionPanel.mm:
2028         (WebKit::CorrectionPanel::show):
2029         (WebKit::CorrectionPanel::recordAutocorrectionResponse):
2030         (WebKit::CorrectionPanel::handleAcceptedReplacement):
2031         * UIProcess/mac/PageClientImpl.mm:
2032         (WebKit::PageClientImpl::colorSpace):
2033         (WebKit::PageClientImpl::setDragImage):
2034         (WebKit::PageClientImpl::setPromisedDataForImage):
2035         (WebKit::PageClientImpl::setPromisedDataForAttachment):
2036         (WebKit::PageClientImpl::showCorrectionPanel):
2037         (WebKit::PageClientImpl::recordAutocorrectionResponse):
2038         (WebKit::PageClientImpl::showDictationAlternativeUI):
2039         Move some pasteboard and spellcheck code.
2040
2041 2015-10-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2042
2043         Implement viewport-width-based fast-click heuristic
2044         https://bugs.webkit.org/show_bug.cgi?id=150604
2045         <rdar://problem/23267308>
2046
2047         Reviewed by Simon Fraser.
2048
2049         Implement a new fast-click heuristic that applies to viewports with width = device-width. The basic rules are
2050         as follows: when a page has viewport width = device-width and is at initial zoom scale, we disable double-tapping
2051         in favor of fast-clicking. However, if the viewport scale is not the initial scale, we allow double tapping. For
2052         fast-clicking to remain useful after the user pinch-zooms, we change our double-tap to zoom out behavior to zoom
2053         to the initial scale rather than the minimum scale. For unscalable viewports, we default to fast-clicking behavior,
2054         and for all other viewports not at device-width, we double-tap to zoom and scroll as normal.
2055
2056         This patch removes some logic previously used for our scroll- and zoom-based fast-clicking heuristic, and adds
2057         information about the viewport width and initial scale to RemoteLayerTreeTransactions. This information is then
2058         used by the UI process to determine whether double tapping should be disabled or enabled.
2059
2060         The fast-click heuristic can be turned off through user default preferences, and a tap highlight for debugging
2061         fast-clicking can also be enabled through a user default preference. A red highlight indicates that a single-
2062         tap was slow, whereas a green highlight indicates a fast single-tap.
2063
2064         * Shared/mac/RemoteLayerTreeTransaction.h:
2065         (WebKit::RemoteLayerTreeTransaction::initialScaleFactor):
2066         (WebKit::RemoteLayerTreeTransaction::setInitialScaleFactor):
2067         (WebKit::RemoteLayerTreeTransaction::viewportMetaTagWidth):
2068         (WebKit::RemoteLayerTreeTransaction::setViewportMetaTagWidth):
2069         * Shared/mac/RemoteLayerTreeTransaction.mm:
2070         (WebKit::RemoteLayerTreeTransaction::encode):
2071         (WebKit::RemoteLayerTreeTransaction::decode):
2072         * UIProcess/API/Cocoa/WKWebView.mm:
2073         (-[WKWebView initWithFrame:configuration:]):
2074         (-[WKWebView _processDidExit]):
2075         (-[WKWebView _didCommitLayerTree:]):
2076         (-[WKWebView _zoomToInitialScaleWithOrigin:animated:]):
2077         (-[WKWebView _allowsDoubleTapGestures]):
2078         (-[WKWebView _setViewportMetaTagWidth:]): Deleted.
2079         (-[WKWebView _contentZoomScale]): Deleted.
2080         (-[WKWebView _viewportMetaTagWidth]): Deleted.
2081         (-[WKWebView _viewportIsUserScalable]): Deleted.
2082         * UIProcess/API/Cocoa/WKWebViewInternal.h:
2083         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
2084         * UIProcess/PageClient.h:
2085         * UIProcess/WebPageProxy.h:
2086         * UIProcess/WebPageProxy.messages.in:
2087         * UIProcess/ios/PageClientImplIOS.h:
2088         * UIProcess/ios/PageClientImplIOS.mm:
2089         (WebKit::PageClientImpl::disableDoubleTapGesturesDuringTapIfNecessary):
2090         (WebKit::PageClientImpl::didChangeViewportMetaTagWidth): Deleted.
2091         (WebKit::PageClientImpl::disableDoubleTapGesturesUntilTapIsFinishedIfNecessary): Deleted.
2092         * UIProcess/ios/SmartMagnificationController.h:
2093         * UIProcess/ios/SmartMagnificationController.mm:
2094         (WebKit::SmartMagnificationController::didCollectGeometryForSmartMagnificationGesture):
2095         * UIProcess/ios/WKContentView.h:
2096         * UIProcess/ios/WKContentView.mm:
2097         (-[WKContentView _zoomToInitialScaleWithOrigin:]):
2098         * UIProcess/ios/WKContentViewInteraction.h:
2099         * UIProcess/ios/WKContentViewInteraction.mm:
2100         (-[WKContentView setupInteraction]):
2101         (-[WKContentView _showTapHighlight]):
2102         (-[WKContentView _didGetTapHighlightForRequest:color:quads:topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:]):
2103         (-[WKContentView _mayDisableDoubleTapGesturesDuringSingleTap]):
2104         (-[WKContentView _disableDoubleTapGesturesDuringTapIfNecessary:]):
2105         (-[WKContentView _finishInteraction]):
2106         (-[WKContentView _endPotentialTapAndEnableDoubleTapGesturesIfNecessary]):
2107         (-[WKContentView _tapHighlightColorForFastClick:]):
2108         (-[WKContentView _setDoubleTapGesturesEnabled:]):
2109         (-[WKContentView _fastClickZoomThreshold]): Deleted.
2110         (-[WKContentView _allowDoubleTapToZoomForCurrentZoomScale:andTargetZoomScale:]): Deleted.
2111         (-[WKContentView _disableDoubleTapGesturesUntilTapIsFinishedIfNecessary:allowsDoubleTapZoom:targetRect:isReplaced:minimumScale:maximumScale:]): Deleted.
2112         * UIProcess/ios/WebPageProxyIOS.mm:
2113         (WebKit::WebPageProxy::disableDoubleTapGesturesDuringTapIfNecessary):
2114         (WebKit::WebPageProxy::viewportMetaTagWidthDidChange): Deleted.
2115         (WebKit::WebPageProxy::disableDoubleTapGesturesUntilTapIsFinishedIfNecessary): Deleted.
2116         * WebProcess/WebPage/ViewGestureGeometryCollector.h:
2117         * WebProcess/WebPage/WebPage.cpp:
2118         (WebKit::WebPage::willCommitLayerTree):
2119         * WebProcess/WebPage/ios/WebPageIOS.mm:
2120         (WebKit::WebPage::potentialTapAtPosition):
2121         (WebKit::WebPage::viewportPropertiesDidChange): Deleted.
2122
2123 2015-10-27  Tim Horton  <timothy_horton@apple.com>
2124
2125         WKView being inside WKWebView leads to weird API issues
2126         https://bugs.webkit.org/show_bug.cgi?id=150174
2127
2128         Reviewed by Anders Carlsson.
2129
2130         * UIProcess/API/mac/WKView.mm:
2131         (-[WKView _superAccessibilityAttributeValue:]):
2132         (-[WKView accessibilityFocusedUIElement]):
2133         (-[WKView accessibilityIsIgnored]):
2134         (-[WKView accessibilityHitTest:]):
2135         (-[WKView accessibilityAttributeValue:]):
2136         (-[WKView _processDidExit]):
2137         (-[WKView _pageClosed]):
2138         (-[WKView _updateRemoteAccessibilityRegistration:]): Deleted.
2139         (-[WKView enableAccessibilityIfNecessary]): Deleted.
2140         (-[WKView _toolTipChangedFrom:to:]): Deleted.
2141         (-[WKView _setAccessibilityWebProcessToken:]): Deleted.
2142         (-[WKView _hasFullScreenWindowController]): Deleted.
2143         (-[WKView _fullScreenWindowController]): Deleted.
2144         (-[WKView _closeFullScreenWindowController]): Deleted.
2145         (-[WKView _setSuppressVisibilityUpdates:]): Deleted.
2146         (-[WKView _suppressVisibilityUpdates]): Deleted.
2147         (-[WKView _primaryTrackingArea]): Deleted.
2148         (-[WKView _setPrimaryTrackingArea:]): Deleted.
2149         (-[WKView initWithFrame:processPool:configuration:webView:]): Deleted.
2150         * UIProcess/API/mac/WKViewInternal.h:
2151         * UIProcess/Cocoa/WebViewImpl.h:
2152         (WebKit::WebViewImpl::accessibilityIsIgnored):
2153         (WebKit::WebViewImpl::primaryTrackingArea):
2154         * UIProcess/Cocoa/WebViewImpl.mm:
2155         (WebKit::trackingAreaOptions):
2156         (WebKit::WebViewImpl::WebViewImpl):
2157         (WebKit::WebViewImpl::setAccessibilityWebProcessToken):
2158         (WebKit::WebViewImpl::updateRemoteAccessibilityRegistration):
2159         (WebKit::WebViewImpl::accessibilityFocusedUIElement):
2160         (WebKit::WebViewImpl::accessibilityHitTest):
2161         (WebKit::WebViewImpl::enableAccessibilityIfNecessary):
2162         (WebKit::WebViewImpl::accessibilityAttributeValue):
2163         (WebKit::WebViewImpl::setPrimaryTrackingArea):
2164         (WebKit::WebViewImpl::toolTipChanged):
2165         * UIProcess/mac/PageClientImpl.mm:
2166         (WebKit::PageClientImpl::toolTipChanged):
2167         (WebKit::PageClientImpl::accessibilityWebProcessTokenReceived):
2168         (WebKit::PageClientImpl::recommendedScrollbarStyleDidChange):
2169         (WebKit::PageClientImpl::closeFullScreenManager):
2170         (WebKit::PageClientImpl::isFullScreen):
2171         (WebKit::PageClientImpl::enterFullScreen):
2172         (WebKit::PageClientImpl::exitFullScreen):
2173         (WebKit::PageClientImpl::beganEnterFullScreen):
2174         (WebKit::PageClientImpl::beganExitFullScreen):
2175         Move accessibility code, and fold in some internal-only methods.
2176
2177 2015-10-27  Tim Horton  <timothy_horton@apple.com>
2178
2179         WKView being inside WKWebView leads to weird API issues
2180         https://bugs.webkit.org/show_bug.cgi?id=150174
2181
2182         Reviewed by Anders Carlsson.
2183
2184         * UIProcess/API/mac/WKView.mm:
2185         (-[WKView scrollWheel:]):
2186         (-[WKView swipeWithEvent:]):
2187         (-[WKView _superSwipeWithEvent:]):
2188         (-[WKView _superMagnifyWithEvent:]):
2189         (-[WKView _superSmartMagnifyWithEvent:]):
2190         (-[WKView _processDidExit]):
2191         (-[WKView setAllowsBackForwardNavigationGestures:]):
2192         (-[WKView allowsBackForwardNavigationGestures]):
2193         (-[WKView setAllowsMagnification:]):
2194         (-[WKView allowsMagnification]):
2195         (-[WKView magnifyWithEvent:]):
2196         (-[WKView rotateWithEvent:]):
2197         (-[WKView _gestureEventWasNotHandledByWebCore:]):
2198         (-[WKView smartMagnifyWithEvent:]):
2199         (-[WKView setMagnification:centeredAtPoint:]):
2200         (-[WKView setMagnification:]):
2201         (-[WKView magnification]):
2202         (-[WKView _setCustomSwipeViews:]):
2203         (-[WKView _setCustomSwipeViewsTopContentInset:]):
2204         (-[WKView _tryToSwipeWithEvent:ignoringPinnedState:]):
2205         (-[WKView _setDidMoveSwipeSnapshotCallback:]):
2206         (-[WKView _ensureGestureController]): Deleted.
2207         (takeWindowSnapshot): Deleted.
2208         (-[WKView _takeViewSnapshot]): Deleted.
2209         (-[WKView _wheelEventWasNotHandledByWebCore:]): Deleted.
2210         (-[WKView _didFirstVisuallyNonEmptyLayoutForMainFrame]): Deleted.
2211         (-[WKView _didFinishLoadForMainFrame]): Deleted.
2212         (-[WKView _didFailLoadForMainFrame]): Deleted.
2213         (-[WKView _didSameDocumentNavigationForMainFrame:]): Deleted.
2214         (-[WKView _removeNavigationGestureSnapshot]): Deleted.
2215         * UIProcess/API/mac/WKViewInternal.h:
2216         * UIProcess/Cocoa/WebViewImpl.h:
2217         (WebKit::WebViewImpl::gestureController):
2218         (WebKit::WebViewImpl::allowsBackForwardNavigationGestures):
2219         (WebKit::WebViewImpl::allowsMagnification):
2220         * UIProcess/Cocoa/WebViewImpl.mm:
2221         (WebKit::takeWindowSnapshot):
2222         (WebKit::WebViewImpl::takeViewSnapshot):
2223         (WebKit::WebViewImpl::ensureGestureController):
2224         (WebKit::WebViewImpl::resetGestureController):
2225         (WebKit::WebViewImpl::setAllowsBackForwardNavigationGestures):
2226         (WebKit::WebViewImpl::setAllowsMagnification):
2227         (WebKit::WebViewImpl::setMagnification):
2228         (WebKit::WebViewImpl::magnification):
2229         (WebKit::WebViewImpl::setCustomSwipeViews):
2230         (WebKit::WebViewImpl::setCustomSwipeViewsTopContentInset):
2231         (WebKit::WebViewImpl::tryToSwipeWithEvent):
2232         (WebKit::WebViewImpl::setDidMoveSwipeSnapshotCallback):
2233         (WebKit::WebViewImpl::scrollWheel):
2234         (WebKit::WebViewImpl::swipeWithEvent):
2235         (WebKit::WebViewImpl::magnifyWithEvent):
2236         (WebKit::WebViewImpl::smartMagnifyWithEvent):
2237         (WebKit::WebViewImpl::rotateWithEvent):
2238         (WebKit::WebViewImpl::gestureEventWasNotHandledByWebCore):
2239         (WebKit::WebViewImpl::gestureEventWasNotHandledByWebCoreFromViewOnly):
2240         * UIProcess/mac/PageClientImpl.mm:
2241         (WebKit::PageClientImpl::takeViewSnapshot):
2242         (WebKit::PageClientImpl::wheelEventWasNotHandledByWebCore):
2243         (WebKit::PageClientImpl::didFirstVisuallyNonEmptyLayoutForMainFrame):
2244         (WebKit::PageClientImpl::didFinishLoadForMainFrame):
2245         (WebKit::PageClientImpl::didFailLoadForMainFrame):
2246         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
2247         (WebKit::PageClientImpl::removeNavigationGestureSnapshot):
2248         Move swipe, zoom, rotate, and snapshotting code.
2249
2250 2015-10-27  Zhuo Li  <zachli@apple.com>
2251
2252         Add WebKit API to clear data type Search Field Recent Searches.
2253         https://bugs.webkit.org/show_bug.cgi?id=150019.
2254
2255         Reviewed by Anders Carlsson.
2256
2257         * Shared/WebsiteData/WebsiteDataTypes.h: Add data type Search Field Recent Searches.
2258         * UIProcess/API/Cocoa/WKWebsiteDataRecord.mm:
2259         (dataTypesToString): Ditto.
2260         * UIProcess/API/Cocoa/WKWebsiteDataRecordInternal.h:
2261         (WebKit::toWebsiteDataTypes): Ditto.
2262         (WebKit::toWKWebsiteDataTypes): Ditto.
2263         * UIProcess/API/Cocoa/WKWebsiteDataRecordPrivate.h: Ditto.
2264         * UIProcess/WebsiteData/WebsiteDataStore.cpp:
2265         (WebKit::WebsiteDataStore::removeData): Handle the case when data type is Search
2266         Field Recent Searches.
2267         * UIProcess/WebsiteData/WebsiteDataStore.h: Add a private function for removing
2268         recent searches based on time.
2269         * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:
2270         (WebKit::WebsiteDataStoreCocoa::platformRemoveRecentSearches): Call the removing
2271         recent searches logic in WebCore.
2272         * UIProcess/efl/WebPageProxyEfl.cpp:
2273         (WebKit::WebsiteDataStore::platformRemoveRecentSearches): Not implemented.
2274         * UIProcess/gtk/WebPageProxyGtk.cpp:
2275         (WebKit::WebsiteDataStore::platformRemoveRecentSearches): Not implemented.
2276
2277 2015-10-26  Brady Eidson  <beidson@apple.com>
2278
2279         Make IDBKeyData from a struct to a class.
2280         https://bugs.webkit.org/show_bug.cgi?id=150576
2281
2282         Reviewed by Alex Christensen.
2283
2284         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
2285         * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
2286         * DatabaseProcess/IndexedDB/IDBSerialization.h:
2287         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
2288         (WebKit::UniqueIDBDatabase::putRecordInBackingStore):
2289         * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
2290         * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
2291         * DatabaseProcess/IndexedDB/sqlite/SQLiteIDBCursor.cpp:
2292         (WebKit::buildIndexStatement):
2293         (WebKit::buildObjectStoreStatement):
2294         (WebKit::SQLiteIDBCursor::establishStatement):
2295         (WebKit::SQLiteIDBCursor::createSQLiteStatement):
2296         (WebKit::SQLiteIDBCursor::resetAndRebindStatement):
2297         (WebKit::SQLiteIDBCursor::iterate):
2298         * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
2299         (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createIndex):
2300         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
2301         (WebKit::WebIDBServerConnection::didPutRecord):
2302         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
2303         * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
2304
2305 2015-10-26  Philip Chimento  <philip.chimento@gmail.com>
2306
2307         [GTK] [Stable] InstallMissingMediaPluginsPermissionRequest not defined when building without GStreamer
2308         https://bugs.webkit.org/show_bug.cgi?id=148607
2309
2310         Unreviewed, build fix.
2311
2312         * UIProcess/gstreamer/InstallMissingMediaPluginsPermissionRequest.h:
2313         Add a stub for the InstallMissingMediaPluginsPermissionRequest class
2314         for the case when video is disabled or not using GStreamer. It's OK
2315         that this class does nothing, because the associated C API contains
2316         an assert_not_reached if video is disabled. We just need to define
2317         the symbol so that the function signature will compile.
2318
2319 2015-10-26  Anders Carlsson  <andersca@apple.com>
2320
2321         Pipe custom context menu handling through to the UIDelegate object
2322         https://bugs.webkit.org/show_bug.cgi?id=150572
2323
2324         Reviewed by Tim Horton.
2325
2326         * UIProcess/API/APIContextMenuClient.h:
2327         (API::ContextMenuClient::menuFromProposedMenu):
2328         * UIProcess/API/Cocoa/WKWebView.mm:
2329         (-[WKWebView setUIDelegate:]):
2330         * UIProcess/Cocoa/UIDelegate.h:
2331         * UIProcess/Cocoa/UIDelegate.mm:
2332         (WebKit::UIDelegate::createContextMenuClient):
2333         (WebKit::UIDelegate::ContextMenuClient::ContextMenuClient):
2334         (WebKit::UIDelegate::ContextMenuClient::~ContextMenuClient):
2335         (WebKit::UIDelegate::ContextMenuClient::menuFromProposedMenu):
2336         * UIProcess/mac/WebContextMenuProxyMac.mm:
2337         (WebKit::WebContextMenuProxyMac::showContextMenu):
2338
2339 2015-10-26  Tim Horton  <timothy_horton@apple.com>
2340
2341         WKView being inside WKWebView leads to weird API issues
2342         https://bugs.webkit.org/show_bug.cgi?id=150174
2343
2344         Reviewed by Anders Carlsson.
2345
2346         * UIProcess/API/mac/WKView.mm:
2347         (-[WKView mouseDown:]):
2348         (-[WKView mouseDragged:]):
2349         (-[WKView draggedImage:endedAt:operation:]):
2350         (-[WKView draggingEntered:]):
2351         (-[WKView draggingUpdated:]):
2352         (-[WKView draggingExited:]):
2353         (-[WKView prepareForDragOperation:]):
2354         (-[WKView performDragOperation:]):
2355         (-[WKView _hitTest:dragTypes:]):
2356         (-[WKView initWithFrame:processPool:configuration:webView:]):
2357         (-[WKView applicationFlags:]): Deleted.
2358         (maybeCreateSandboxExtensionFromPasteboard): Deleted.
2359         (createSandboxExtensionsForFileUpload): Deleted.
2360         (-[WKView _registerDraggedTypes]): Deleted.
2361         * UIProcess/Cocoa/WebViewImpl.h:
2362         (WebKit::WebViewImpl::ignoresMouseDraggedEvents):
2363         * UIProcess/Cocoa/WebViewImpl.mm:
2364         (WebKit::WebViewImpl::setIgnoresMouseDraggedEvents):
2365         (WebKit::WebViewImpl::draggedImage):
2366         (WebKit::applicationFlagsForDrag):
2367         (WebKit::WebViewImpl::draggingEntered):
2368         (WebKit::WebViewImpl::draggingUpdated):
2369         (WebKit::WebViewImpl::draggingExited):
2370         (WebKit::WebViewImpl::prepareForDragOperation):
2371         (WebKit::maybeCreateSandboxExtensionFromPasteboard):
2372         (WebKit::createSandboxExtensionsForFileUpload):
2373         (WebKit::WebViewImpl::performDragOperation):
2374         (WebKit::WebViewImpl::hitTestForDragTypes):
2375         (WebKit::WebViewImpl::registerDraggedTypes):
2376         Move some drag-related things to WebViewImpl.
2377
2378 2015-10-26  Anders Carlsson  <andersca@apple.com>
2379
2380         Pipe custom context menu handling through to the UIDelegate object
2381         https://bugs.webkit.org/show_bug.cgi?id=150572
2382
2383         Reviewed by Tim Horton.
2384
2385         * UIProcess/API/APIContextMenuClient.h:
2386         (API::ContextMenuClient::menuFromProposedMenu):
2387         * UIProcess/API/Cocoa/WKWebView.mm:
2388         (-[WKWebView setUIDelegate:]):
2389         * UIProcess/Cocoa/UIDelegate.h:
2390         * UIProcess/Cocoa/UIDelegate.mm:
2391         (WebKit::UIDelegate::createContextMenuClient):
2392         (WebKit::UIDelegate::ContextMenuClient::ContextMenuClient):
2393         (WebKit::UIDelegate::ContextMenuClient::~ContextMenuClient):
2394         (WebKit::UIDelegate::ContextMenuClient::menuFromProposedMenu):
2395         * UIProcess/mac/WebContextMenuProxyMac.mm:
2396         (WebKit::WebContextMenuProxyMac::showContextMenu):
2397
2398 2015-10-26  Alex Christensen  <achristensen@webkit.org>
2399
2400         Build fix when using NETWORK_SESSION after r191457.
2401
2402         * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
2403         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
2404         Use resourceResponse.
2405
2406 2015-10-26  Anders Carlsson  <andersca@apple.com>
2407
2408         Remove more dead context menu code
2409         https://bugs.webkit.org/show_bug.cgi?id=150569
2410
2411         Reviewed by Tim Horton.
2412
2413         * UIProcess/API/APIContextMenuClient.h:
2414         (API::ContextMenuClient::contextMenuDismissed): Deleted.
2415         * UIProcess/API/C/WKPage.cpp:
2416         (WKPageSetPageContextMenuClient): Deleted.
2417
2418 2015-10-26  Anders Carlsson  <andersca@apple.com>
2419
2420         Remove dead context menu code
2421         https://bugs.webkit.org/show_bug.cgi?id=150567
2422
2423         Reviewed by Tim Horton.
2424
2425         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
2426         (WebKit::WebContextMenuClient::getCustomMenuFromDefaultItems): Deleted.
2427         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
2428
2429 2015-10-26  Tim Horton  <timothy_horton@apple.com>
2430
2431         Don't expose the whitelist/blacklist in _WKUserStyleSheet
2432         https://bugs.webkit.org/show_bug.cgi?id=150566
2433
2434         Reviewed by Anders Carlsson.
2435
2436         * UIProcess/API/Cocoa/_WKUserStyleSheet.h:
2437         * UIProcess/API/Cocoa/_WKUserStyleSheet.mm:
2438         (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:]):
2439         (toWTFStrings): Deleted.
2440         (-[_WKUserStyleSheet initWithSource:whitelistedURLPatterns:blacklistedURLPatterns:forMainFrameOnly:]): Deleted.
2441         (-[_WKUserStyleSheet whitelistedURLPatterns]): Deleted.
2442         (-[_WKUserStyleSheet blacklistedURLPatterns]): Deleted.
2443
2444 2015-10-25  Carlos Garcia Campos  <cgarcia@igalia.com>
2445
2446         Unreviewed. Fix GTK+ build after r191543.
2447
2448         * UIProcess/API/gtk/WebKitWebView.cpp:
2449         (webkit_web_view_run_javascript):
2450         (resourcesStreamReadCallback):
2451
2452 2015-10-24  Tim Horton  <timothy_horton@apple.com>
2453
2454         Add a way to add user style sheets to WKUserContentController
2455         https://bugs.webkit.org/show_bug.cgi?id=150531
2456         <rdar://problem/23191691>
2457
2458         Reviewed by Darin Adler.
2459
2460         * Shared/API/APIObject.h:
2461         * Shared/Cocoa/APIObject.mm:
2462         (API::Object::newObject):
2463         Boilerplate for a new API::UserStyleSheet.
2464
2465         * UIProcess/API/APIUserStyleSheet.cpp: Added.
2466         (API::generateIdentifier):
2467         (API::UserStyleSheet::generateUniqueURL):
2468         * UIProcess/API/APIUserStyleSheet.h: Added.
2469         Added API::UserStyleSheet, borrowing URL generation code from API::UserScript.
2470
2471         * UIProcess/API/Cocoa/WKUserContentController.mm:
2472         (-[WKUserContentController _addUserStyleSheet:]):
2473         (-[WKUserContentController _removeAllUserStyleSheets]):
2474         Forward add and remove-all to WebUserContentControllerProxy.
2475
2476         * UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:
2477         * UIProcess/API/Cocoa/_WKUserStyleSheet.h: Added.
2478         * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: Added.
2479         (toWTFStrings):
2480         (-[_WKUserStyleSheet initWithSource:whitelistedURLPatterns:blacklistedURLPatterns:forMainFrameOnly:]):
2481         (-[_WKUserStyleSheet source]):
2482         (-[_WKUserStyleSheet isForMainFrameOnly]):
2483         (-[_WKUserStyleSheet copyWithZone:]):
2484         (-[_WKUserStyleSheet _apiObject]):
2485         * UIProcess/API/Cocoa/_WKUserStyleSheetInternal.h: Added.
2486         (API::wrapper):
2487         * WebKit2.xcodeproj/project.pbxproj:
2488         Add the new modern API object (as SPI for now).
2489
2490 2015-10-24  Tim Horton  <timothy_horton@apple.com>
2491
2492         Expose more information about the exception in WKErrorJavaScriptExceptionOccurred errors
2493         https://bugs.webkit.org/show_bug.cgi?id=150525
2494
2495         Reviewed by Darin Adler.
2496
2497         * Scripts/webkit/messages.py:
2498         (headers_for_type):
2499         * Shared/WebCoreArgumentCoders.cpp:
2500         (IPC::ArgumentCoder<ExceptionDetails>::encode):
2501         (IPC::ArgumentCoder<ExceptionDetails>::decode):
2502         * Shared/WebCoreArgumentCoders.h:
2503         Learn how to en/decode ExceptionDetails.
2504
2505         * UIProcess/API/C/WKPage.cpp:
2506         (WKPageRunJavaScriptInMainFrame):
2507         * UIProcess/WebPageProxy.cpp:
2508         (WebKit::WebPageProxy::runJavaScriptInMainFrame):
2509         (WebKit::WebPageProxy::scriptValueCallback):
2510         * UIProcess/WebPageProxy.h:
2511         * UIProcess/WebPageProxy.messages.in:
2512         * WebProcess/WebPage/WebPage.cpp:
2513         (WebKit::WebPage::runJavaScriptInMainFrame):
2514         Plumb ExceptionDetails back through runJavaScriptInMainFrame, across the
2515         process boundary.
2516
2517         * UIProcess/API/Cocoa/WKError.mm:
2518         (localizedDescriptionForErrorCode):
2519         * UIProcess/API/Cocoa/WKErrorInternal.h:
2520         * UIProcess/API/Cocoa/WKErrorPrivate.h:
2521         Expose localizedDescriptionForErrorCode so that WKWebView can do special
2522         things with its error.
2523         Add new private userInfo keys for exception info.
2524
2525         * UIProcess/API/Cocoa/WKWebView.mm:
2526         (-[WKWebView evaluateJavaScript:completionHandler:]):
2527         Fill in the NSError userInfo with the exception info.
2528
2529 2015-10-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2530
2531         [EFL] Fix a wrong enum variable use
2532         https://bugs.webkit.org/show_bug.cgi?id=150522
2533
2534         Reviewed by Csaba Osztrogonác.
2535
2536         * UIProcess/API/efl/EwkView.cpp:
2537         (EwkView::requestPopupMenu):
2538         Use kWKPopupItemTextDirectionLTR instead of EWK_TEXT_DIRECTION_LEFT_TO_RIGHT.
2539
2540 2015-10-24  Dan Bernstein  <mitz@apple.com>
2541
2542         [Cocoa] _WKFormInputSession should provide access to the focused element info
2543         https://bugs.webkit.org/show_bug.cgi?id=150512
2544
2545         Reviewed by Tim Horton.
2546
2547         * UIProcess/API/Cocoa/_WKFormInputSession.h: Added focusedElementInfo property to the
2548           protocol.
2549
2550         * UIProcess/ios/WKContentViewInteraction.mm:
2551         (-[WKFormInputSession initWithContentView:focusedElementInfo:userObject:]): Added the
2552           focusedElementInfo argument, used to initialize a new ivar.
2553         (-[WKFormInputSession focusedElementInfo]): Added this getter for the new
2554           _WKFormInputSession property.
2555         (-[WKContentView _startAssistingNode:userIsInteracting:blurPreviousNode:userObject:]):
2556           Create the WKFocusedElementInfo unconditionally and pass it to the new WKFormInputSession
2557           initializer.
2558
2559 2015-10-24  Dan Bernstein  <mitz@apple.com>
2560
2561         [iOS] Allow clients to specify a custom input view to be used for a form input session
2562         https://bugs.webkit.org/show_bug.cgi?id=150395
2563
2564         Reviewed by Tim Horton.
2565
2566         * UIProcess/API/Cocoa/_WKFormInputSession.h: Added customInputView property to the protocol.
2567
2568         * UIProcess/ios/WKContentViewInteraction.mm:
2569         (-[WKFormInputSession customInputView]): Added this getter.
2570         (-[WKFormInputSession setCustomInputView:]): Added this setter, which reloads the input
2571           views when the custom input view changes.
2572         (-[WKContentView inputView]): Changed to return the custom view from the input session if
2573           there is one.
2574
2575 2015-10-23  Alex Christensen  <achristensen@webkit.org>
2576
2577         Fix CMake compile error and add correct null check
2578         https://bugs.webkit.org/show_bug.cgi?id=150520
2579
2580         Reviewed by Simon Fraser.
2581
2582         * UIProcess/API/Cocoa/WKWebView.mm:
2583         (-[WKWebView _doAfterNextPresentationUpdate:]):
2584
2585 2015-10-23  Alex Christensen  <achristensen@webkit.org>
2586
2587         Progress towards CMake on Mac
2588         https://bugs.webkit.org/show_bug.cgi?id=150517
2589
2590         Reviewed by Tim Horton.
2591
2592         * CMakeLists.txt:
2593         * PlatformEfl.cmake:
2594         * PlatformGTK.cmake:
2595         * PlatformMac.cmake:
2596         * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp: Removed.
2597         * WebProcess/Cookies/curl/WebCookieManagerCurl.cpp: Removed.
2598
2599 2015-10-23  Tim Horton  <timothy_horton@apple.com>
2600
2601         WKView being inside WKWebView leads to weird API issues
2602         https://bugs.webkit.org/show_bug.cgi?id=150174
2603
2604         * UIProcess/Cocoa/WebViewImpl.h:
2605         Whoops.
2606
2607 2015-10-23  Tim Horton  <timothy_horton@apple.com>
2608
2609         WKView being inside WKWebView leads to weird API issues
2610         https://bugs.webkit.org/show_bug.cgi?id=150174
2611
2612         Reviewed by Anders Carlsson.
2613
2614         * UIProcess/API/mac/WKView.mm:
2615         (-[WKView hitTest:]):
2616         (-[WKView _processDidExit]):
2617         (-[WKView _setThumbnailView:]):
2618         (-[WKView _thumbnailView]):
2619         (-[WKFlippedView isFlipped]): Deleted.
2620         (-[WKView dealloc]): Deleted.
2621         (-[WKView _setAcceleratedCompositingModeRootLayer:]): Deleted.
2622         (-[WKView _acceleratedCompositingModeRootLayer]): Deleted.
2623         (-[WKView _updateThumbnailViewLayer]): Deleted.
2624         (-[WKView _reparentLayerTreeInThumbnailView]): Deleted.
2625         * UIProcess/API/mac/WKViewInternal.h:
2626         * UIProcess/Cocoa/WebViewImpl.h:
2627         (WebKit::WebViewImpl::acceleratedCompositingRootLayer):
2628         (WebKit::WebViewImpl::layerHostingView):
2629         (WebKit::WebViewImpl::thumbnailView):
2630         * UIProcess/Cocoa/WebViewImpl.mm:
2631         (-[WKFlippedView isFlipped]):
2632         (WebKit::WebViewImpl::~WebViewImpl):
2633         (WebKit::WebViewImpl::setAcceleratedCompositingRootLayer):
2634         (WebKit::WebViewImpl::setThumbnailView):
2635         (WebKit::WebViewImpl::reparentLayerTreeInThumbnailView):
2636         (WebKit::WebViewImpl::updateThumbnailViewLayer):
2637         * UIProcess/mac/PageClientImpl.mm:
2638         (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
2639         (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
2640         (WebKit::PageClientImpl::updateAcceleratedCompositingMode):
2641         (WebKit::PageClientImpl::setAcceleratedCompositingRootLayer):
2642         (WebKit::PageClientImpl::acceleratedCompositingRootLayer):
2643         Move accelerated compositing and thumbnail view code.
2644
2645 2015-10-23  Tim Horton  <timothy_horton@apple.com>
2646
2647         WKView being inside WKWebView leads to weird API issues
2648         https://bugs.webkit.org/show_bug.cgi?id=150174
2649
2650         Reviewed by Anders Carlsson.
2651
2652         * UIProcess/API/mac/WKView.mm:
2653         (-[WKView _superRemoveTrackingRect:]):
2654         (-[WKView addTrackingRect:owner:userData:assumeInside:]):
2655         (-[WKView _addTrackingRect:owner:userData:assumeInside:useTrackingNum:]):
2656         (-[WKView _addTrackingRects:owner:userDataList:assumeInsideList:trackingNums:count:]):
2657         (-[WKView removeTrackingRect:]):
2658         (-[WKView _removeTrackingRects:count:]):
2659         (-[WKView view:stringForToolTip:point:userData:]):
2660         (-[WKView _toolTipChangedFrom:to:]):
2661         (-[WKView _setAcceleratedCompositingModeRootLayer:]): Deleted.
2662         (-[WKView _acceleratedCompositingModeRootLayer]): Deleted.
2663         (takeWindowSnapshot): Deleted.
2664         * UIProcess/Cocoa/WebViewImpl.h:
2665         * UIProcess/Cocoa/WebViewImpl.mm:
2666         (WebKit::WebViewImpl::addTrackingRect):
2667         (WebKit::WebViewImpl::addTrackingRectWithTrackingNum):
2668         (WebKit::WebViewImpl::addTrackingRectsWithTrackingNums):
2669         (WebKit::WebViewImpl::removeTrackingRect):
2670         (WebKit::WebViewImpl::removeTrackingRects):
2671         (WebKit::WebViewImpl::sendToolTipMouseExited):
2672         (WebKit::WebViewImpl::sendToolTipMouseEntered):
2673         (WebKit::WebViewImpl::stringForToolTip):
2674         (WebKit::WebViewImpl::toolTipChanged):
2675         Move tooltip code.
2676
2677 2015-10-23  Tim Horton  <timothy_horton@apple.com>
2678
2679         WKView being inside WKWebView leads to weird API issues
2680         https://bugs.webkit.org/show_bug.cgi?id=150174
2681
2682         Reviewed by Anders Carlsson.
2683
2684         * UIProcess/API/mac/WKView.mm:
2685         (-[WKView _interpretKeyEvent:completionHandler:]):
2686         (-[WKView inputContext]):
2687         (-[WKView performKeyEquivalent:]):
2688         (-[WKView keyDown:]):
2689         (-[WKView _doneWithKeyEvent:eventWasHandled:]):
2690         (-[WKView _setPluginComplexTextInputState:]): Deleted.
2691         (-[WKView _disableComplexTextInputIfNecessary]): Deleted.
2692         (-[WKView _handlePluginComplexTextInputKeyDown:]): Deleted.
2693         (-[WKView _tryHandlePluginComplexTextInputKeyDown:]): Deleted.
2694         (-[WKView _tryPostProcessPluginComplexTextInputKeyDown:]): Deleted.
2695         (-[WKView _pluginFocusOrWindowFocusChanged:pluginComplexTextInputIdentifier:]): Deleted.
2696         (-[WKView _setPluginComplexTextInputState:pluginComplexTextInputIdentifier:]): Deleted.
2697         * UIProcess/API/mac/WKViewInternal.h:
2698         * UIProcess/Cocoa/WebViewImpl.h:
2699         (WebKit::WebViewImpl::pluginComplexTextInputState):
2700         (WebKit::WebViewImpl::pluginComplexTextInputIdentifier):
2701         * UIProcess/Cocoa/WebViewImpl.mm:
2702         (WebKit::WebViewImpl::setPluginComplexTextInputState):
2703         (WebKit::WebViewImpl::setPluginComplexTextInputStateAndIdentifier):
2704         (WebKit::WebViewImpl::disableComplexTextInputIfNecessary):
2705         (WebKit::WebViewImpl::handlePluginComplexTextInputKeyDown):
2706         (WebKit::WebViewImpl::tryHandlePluginComplexTextInputKeyDown):
2707         (WebKit::WebViewImpl::pluginFocusOrWindowFocusChanged):
2708         (WebKit::WebViewImpl::tryPostProcessPluginComplexTextInputKeyDown):
2709         * UIProcess/mac/PageClientImpl.mm:
2710         (WebKit::PageClientImpl::pluginFocusOrWindowFocusChanged):
2711         (WebKit::PageClientImpl::setPluginComplexTextInputState):
2712         Move a few more methods.
2713
2714 2015-10-23  Eric Carlson  <eric.carlson@apple.com>
2715
2716         [MediaStream] Fix UserMediaPermissionRequestProxy::invalidate
2717         https://bugs.webkit.org/show_bug.cgi?id=150503
2718         <rdar://problem/23235386>
2719
2720         Reviewed by Dean Jackson.
2721
2722         * UIProcess/UserMediaPermissionRequestProxy.cpp:
2723         (WebKit::UserMediaPermissionRequestProxy::UserMediaPermissionRequestProxy): m_manager is a pointer.
2724         (WebKit::UserMediaPermissionRequestProxy::allow): Return early if m_manager is null, clear it after
2725           calling the manager.
2726         (WebKit::UserMediaPermissionRequestProxy::deny): Ditto.
2727         (WebKit::UserMediaPermissionRequestProxy::invalidate): Clear m_manager.
2728         * UIProcess/UserMediaPermissionRequestProxy.h: Change m_manager from a reference to a
2729           pointer so it can be cleared.
2730
2731 2015-10-23  Claudio Saavedra  <csaavedra@igalia.com>
2732
2733         [GTK] Minor web editor fixes
2734         https://bugs.webkit.org/show_bug.cgi?id=150501
2735
2736         Reviewed by Carlos Garcia Campos.
2737
2738         * UIProcess/gtk/KeyBindingTranslator.cpp: Remove
2739         "MoveParagraphForward/Backward" as these commands do not exist in
2740         WebKit (anymore?).
2741         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
2742         (WebKit::WebEditorClient::executePendingEditorCommands):
2743         Editor::Command can take a String, no need to convert to a C char.
2744
2745 2015-10-23  Timothy Horton  <timothy_horton@apple.com>
2746
2747         Fix the build by unapplying review comments.
2748
2749         * UIProcess/Cocoa/WebViewImpl.h:
2750
2751 2015-10-23  Tim Horton  <timothy_horton@apple.com>
2752
2753         WKView being inside WKWebView leads to weird API issues
2754         https://bugs.webkit.org/show_bug.cgi?id=150174
2755
2756         Reviewed by Anders Carlsson.
2757
2758         * UIProcess/API/mac/WKView.mm:
2759         (-[WKView renewGState]):
2760         (-[WKView writeSelectionToPasteboard:types:]):
2761         (-[WKView centerSelectionInVisibleArea:]):
2762         (-[WKView scrollWheel:]):
2763         (-[WKView swipeWithEvent:]):
2764         (-[WKView mouseMoved:]):
2765         (-[WKView mouseDown:]):
2766         (-[WKView mouseUp:]):
2767         (-[WKView mouseDragged:]):
2768         (-[WKView pressureChangeWithEvent:]):
2769         (-[WKView acceptsFirstMouse:]):
2770         (-[WKView shouldDelayWindowOrderingForEvent:]):
2771         (-[WKView performKeyEquivalent:]):
2772         (-[WKView keyUp:]):
2773         (-[WKView keyDown:]):
2774         (-[WKView flagsChanged:]):
2775         (-[WKView _superQuickLookWithEvent:]):
2776         (-[WKView _addFontPanelObserver]):
2777         (-[WKView viewWillMoveToWindow:]):
2778         (-[WKView viewDidMoveToWindow]):
2779         (-[WKView viewDidChangeBackingProperties]):
2780         (-[WKView enableAccessibilityIfNecessary]):
2781         (-[WKView quickLookWithEvent:]):
2782         (-[WKView _colorSpace]):
2783         (-[WKView _didRelaunchProcess]):
2784         (-[WKView _setTextIndicator:]):
2785         (-[WKView _setTextIndicator:withLifetime:]):
2786         (-[WKView _clearTextIndicatorWithAnimation:]):
2787         (-[WKView _setTextIndicatorAnimationProgress:]):
2788         (-[WKView initWithFrame:processPool:configuration:webView:]):
2789         (-[WKView _didPerformImmediateActionHitTest:contentPreventsDefault:userData:]):
2790         (-[WKView _internalImmediateActionAnimationControllerForHitTestResult:withType:userData:]):
2791         (-[WKView _internalPrepareForImmediateActionAnimation]):
2792         (-[WKView _internalCancelImmediateActionAnimation]):
2793         (-[WKView _internalCompleteImmediateActionAnimation]):
2794         (-[WKView _internalDismissContentRelativeChildWindowsWithAnimation:]):
2795         (-[WKView beginDeferringViewInWindowChanges]):
2796         (-[WKView endDeferringViewInWindowChanges]):
2797         (-[WKView endDeferringViewInWindowChangesSync]):
2798         (-[WKView _prepareForMoveToWindow:withCompletionHandler:]):
2799         (-[WKView isDeferringViewInWindowChanges]):
2800         (-[WKView allowsLinkPreview]):
2801         (-[WKView setAllowsLinkPreview:]):
2802         (-[WKView _setIgnoresAllEvents:]):
2803         (-[WKView _setIgnoresNonWheelMouseEvents:]):
2804         (-[WKView _setIgnoresNonWheelEvents:]):
2805         (-[WKView _ignoresNonWheelEvents]):
2806         (-[WKView _ignoresAllEvents]):
2807         (-[WKView _setOverrideDeviceScaleFactor:]):
2808         (-[WKView _overrideDeviceScaleFactor]):
2809         (-[WKView _setTopContentInset:]):
2810         (-[WKView _topContentInset]):
2811         (-[WKView _dismissContentRelativeChildWindows]):
2812         (-[WKView _dismissContentRelativeChildWindowsWithAnimation:]):
2813         (-[WKView _setAutomaticallyAdjustsContentInsets:]):
2814         (-[WKView _automaticallyAdjustsContentInsets]):
2815         (-[WKWindowVisibilityObserver initWithView:]): Deleted.
2816         (-[WKWindowVisibilityObserver startObserving:]): Deleted.
2817         (-[WKWindowVisibilityObserver stopObserving:]): Deleted.
2818         (-[WKWindowVisibilityObserver _windowDidOrderOnScreen:]): Deleted.
2819         (-[WKWindowVisibilityObserver _windowDidOrderOffScreen:]): Deleted.
2820         (-[WKView dealloc]): Deleted.
2821         (-[WKView _updateWindowAndViewFrames]): Deleted.
2822         (-[WKView updateFontPanelIfNeeded]): Deleted.
2823         (-[WKView _selectionChanged]): Deleted.
2824         (-[WKView addWindowObserversForWindow:]): Deleted.
2825         (-[WKView removeWindowObservers]): Deleted.
2826         (-[WKView doWindowDidChangeScreen]): Deleted.
2827         (-[WKView _windowDidBecomeKey:]): Deleted.
2828         (-[WKView _windowDidChangeScreen:]): Deleted.
2829         (-[WKView _windowDidChangeLayerHosting:]): Deleted.
2830         (-[WKView _windowDidResignKey:]): Deleted.
2831         (-[WKView _windowDidMiniaturize:]): Deleted.
2832         (-[WKView _windowDidDeminiaturize:]): Deleted.
2833         (-[WKView _windowDidMove:]): Deleted.
2834         (-[WKView _windowDidResize:]): Deleted.
2835         (-[WKView _windowDidOrderOffScreen:]): Deleted.
2836         (-[WKView _windowDidOrderOnScreen:]): Deleted.
2837         (-[WKView _windowDidChangeBackingProperties:]): Deleted.
2838         (-[WKView _windowDidChangeOcclusionState:]): Deleted.
2839         (-[WKView _prepareForDictionaryLookup]): Deleted.
2840         (-[WKView _dictionaryLookupPopoverWillClose:]): Deleted.
2841         (-[WKView _accessibilityRegisterUIProcessTokens]): Deleted.
2842         (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]): Deleted.
2843         (-[WKView _intrinsicDeviceScaleFactor]): Deleted.
2844         (-[WKView _preferencesDidChange]): Deleted.
2845         (-[WKView _targetWindowForMovePreparation]): Deleted.
2846         (-[WKView _updateContentInsetsIfAutomatic]): Deleted.
2847         (-[WKView observeValueForKeyPath:ofObject:change:context:]): Deleted.
2848         (-[WKView _dispatchSetTopContentInset]): Deleted.
2849         * UIProcess/API/mac/WKViewInternal.h:
2850         * UIProcess/Cocoa/WebViewImpl.h:
2851         (WebKit::WebViewImpl::automaticallyAdjustsContentInsets):
2852         (WebKit::WebViewImpl::topContentInset):
2853         (WebKit::WebViewImpl::overrideDeviceScaleFactor):
2854         (WebKit::WebViewImpl::isDeferringViewInWindowChanges):
2855         (WebKit::WebViewImpl::targetWindowForMovePreparation):
2856         (WebKit::WebViewImpl::lastPressureEvent):
2857         (WebKit::WebViewImpl::allowsLinkPreview):
2858         (WebKit::WebViewImpl::ignoresNonWheelEvents):
2859         (WebKit::WebViewImpl::ignoresAllEvents):
2860         (WebKit::WebViewImpl::createWeakPtr):
2861         * UIProcess/Cocoa/WebViewImpl.mm:
2862         (SOFT_LINK_CONSTANT_MAY_FAIL):
2863         (-[WKWindowVisibilityObserver initWithView:impl:]):
2864         (-[WKWindowVisibilityObserver dealloc]):
2865         (-[WKWindowVisibilityObserver startObserving:]):
2866         (-[WKWindowVisibilityObserver stopObserving:]):
2867         (-[WKWindowVisibilityObserver startObservingFontPanel]):
2868         (-[WKWindowVisibilityObserver startObservingLookupDismissal]):
2869         (-[WKWindowVisibilityObserver _windowDidOrderOnScreen:]):
2870         (-[WKWindowVisibilityObserver _windowDidOrderOffScreen:]):
2871         (-[WKWindowVisibilityObserver _windowDidBecomeKey:]):
2872         (-[WKWindowVisibilityObserver _windowDidResignKey:]):
2873         (-[WKWindowVisibilityObserver _windowDidMiniaturize:]):
2874         (-[WKWindowVisibilityObserver _windowDidDeminiaturize:]):
2875         (-[WKWindowVisibilityObserver _windowDidMove:]):
2876         (-[WKWindowVisibilityObserver _windowDidResize:]):
2877         (-[WKWindowVisibilityObserver _windowDidChangeBackingProperties:]):
2878         (-[WKWindowVisibilityObserver _windowDidChangeScreen:]):
2879         (-[WKWindowVisibilityObserver _windowDidChangeLayerHosting:]):
2880         (-[WKWindowVisibilityObserver _windowDidChangeOcclusionState:]):
2881         (-[WKWindowVisibilityObserver observeValueForKeyPath:ofObject:change:context:]):
2882         (-[WKWindowVisibilityObserver _dictionaryLookupPopoverWillClose:]):
2883         (-[WKEditCommandObjC initWithWebEditCommandProxy:]):
2884         (-[WKEditCommandObjC command]):
2885         (-[WKEditorUndoTargetObjC undoEditing:]):
2886         (-[WKEditorUndoTargetObjC redoEditing:]):
2887         (WebKit::WebViewImpl::WebViewImpl):
2888         (WebKit::WebViewImpl::~WebViewImpl):
2889         (WebKit::WebViewImpl::becomeFirstResponder):
2890         (WebKit::WebViewImpl::resignFirstResponder):
2891         (WebKit::WebViewImpl::renewGState):
2892         (WebKit::WebViewImpl::updateWindowAndViewFrames):
2893         (WebKit::WebViewImpl::setAutomaticallyAdjustsContentInsets):
2894         (WebKit::WebViewImpl::updateContentInsetsIfAutomatic):
2895         (WebKit::WebViewImpl::setTopContentInset):
2896         (WebKit::WebViewImpl::dispatchSetTopContentInset):
2897         (WebKit::WebViewImpl::setOverrideDeviceScaleFactor):
2898         (WebKit::WebViewImpl::intrinsicDeviceScaleFactor):
2899         (WebKit::WebViewImpl::windowDidOrderOffScreen):
2900         (WebKit::WebViewImpl::windowDidOrderOnScreen):
2901         (WebKit::WebViewImpl::windowDidBecomeKey):
2902         (WebKit::WebViewImpl::windowDidResignKey):
2903         (WebKit::WebViewImpl::windowDidMiniaturize):
2904         (WebKit::WebViewImpl::windowDidDeminiaturize):
2905         (WebKit::WebViewImpl::windowDidMove):
2906         (WebKit::WebViewImpl::windowDidResize):
2907         (WebKit::WebViewImpl::windowDidChangeBackingProperties):
2908         (WebKit::WebViewImpl::windowDidChangeScreen):
2909         (WebKit::WebViewImpl::windowDidChangeLayerHosting):
2910         (WebKit::WebViewImpl::windowDidChangeOcclusionState):
2911         (WebKit::WebViewImpl::viewWillMoveToWindow):
2912         (WebKit::WebViewImpl::viewDidMoveToWindow):
2913         (WebKit::WebViewImpl::viewDidChangeBackingProperties):
2914         (WebKit::WebViewImpl::postFakeMouseMovedEventForFlagsChangedEvent):
2915         (WebKit::WebViewImpl::colorSpace):
2916         (WebKit::WebViewImpl::beginDeferringViewInWindowChanges):
2917         (WebKit::WebViewImpl::endDeferringViewInWindowChanges):
2918         (WebKit::WebViewImpl::endDeferringViewInWindowChangesSync):
2919         (WebKit::WebViewImpl::prepareForMoveToWindow):
2920         (WebKit::WebViewImpl::pressureChangeWithEvent):
2921         (WebKit::WebViewImpl::isEditable):
2922         (WebKit::WebViewImpl::executeEditCommand):
2923         (WebKit::WebViewImpl::registerEditCommand):
2924         (WebKit::WebViewImpl::clearAllEditCommands):
2925         (WebKit::WebViewImpl::writeSelectionToPasteboard):
2926         (WebKit::WebViewImpl::centerSelectionInVisibleArea):
2927         (WebKit::WebViewImpl::selectionDidChange):
2928         (WebKit::WebViewImpl::startObservingFontPanel):
2929         (WebKit::WebViewImpl::updateFontPanelIfNeeded):
2930         (WebKit::WebViewImpl::preferencesDidChange):
2931         (WebKit::WebViewImpl::setTextIndicator):
2932         (WebKit::WebViewImpl::clearTextIndicatorWithAnimation):
2933         (WebKit::WebViewImpl::setTextIndicatorAnimationProgress):
2934         (WebKit::WebViewImpl::dismissContentRelativeChildWindows):
2935         (WebKit::WebViewImpl::quickLookWithEvent):
2936         (WebKit::WebViewImpl::prepareForDictionaryLookup):
2937         (WebKit::WebViewImpl::setAllowsLinkPreview):
2938         (WebKit::WebViewImpl::immediateActionAnimationControllerForHitTestResult):
2939         (WebKit::WebViewImpl::prepareForImmediateActionAnimation):
2940         (WebKit::WebViewImpl::cancelImmediateActionAnimation):
2941         (WebKit::WebViewImpl::completeImmediateActionAnimation):
2942         (WebKit::WebViewImpl::setIgnoresNonWheelEvents):
2943         (WebKit::WebViewImpl::setIgnoresAllEvents):
2944         (WebKit::WebViewImpl::accessibilityRegisterUIProcessTokens):
2945         * UIProcess/mac/PageClientImpl.h:
2946         * UIProcess/mac/PageClientImpl.mm:
2947         (WebKit::PageClientImpl::activeWindow):
2948         (WebKit::PageClientImpl::preferencesDidChange):
2949         (WebKit::PageClientImpl::registerEditCommand):
2950         (WebKit::PageClientImpl::clearAllEditCommands):
2951         (WebKit::PageClientImpl::selectionDidChange):
2952         (WebKit::PageClientImpl::didPerformDictionaryLookup):
2953         (-[WKEditCommandObjC initWithWebEditCommandProxy:]): Deleted.
2954         (-[WKEditCommandObjC command]): Deleted.
2955         (-[WKEditorUndoTargetObjC undoEditing:]): Deleted.
2956         (-[WKEditorUndoTargetObjC redoEditing:]): Deleted.
2957         (WebKit::PageClientImpl::PageClientImpl): Deleted.
2958         Move more things to WebViewImpl.
2959         This also introduces an unfortunate pattern that is required for things which
2960         clients override on WKView, where we have a flow like this:
2961                 - somebody (PageClient, etc.) calls WebViewImpl::x
2962                 - WebViewImpl::x does nothing except call [WKView _x]
2963                 - [WKView _x] calls WebViewImpl::xFromViewOnly, which does the real work
2964         As long as no clients call the -FromViewOnly variant, this will mean that
2965         all callers are bottlenecked through the overridable WKView method.
2966         How this works with WKWebView, I am not sure yet.
2967
2968         * UIProcess/mac/WKImmediateActionController.h:
2969         * UIProcess/mac/WKImmediateActionController.mm:
2970         (-[WKImmediateActionController initWithPage:view:viewImpl:recognizer:]):
2971         (-[WKImmediateActionController willDestroyView:]):
2972         (-[WKImmediateActionController immediateActionRecognizerWillPrepare:]):
2973         (-[WKImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
2974         (-[WKImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
2975         (-[WKImmediateActionController menuItem:viewAtScreenPoint:]):
2976         (-[WKImmediateActionController menuItem:previewItemAtPoint:]):
2977         (-[WKImmediateActionController menuItem:itemFrameForPoint:]):
2978         (-[WKImmediateActionController menuItem:maxSizeForPoint:]):
2979         (-[WKImmediateActionController _animationControllerForDataDetectedText]):
2980         (-[WKImmediateActionController _animationControllerForDataDetectedLink]):
2981         (-[WKImmediateActionController _animationControllerForText]):
2982         (-[WKImmediateActionController initWithPage:view:recognizer:]): Deleted.
2983         Keep a generic NSView, use the WebViewImpl for WK*View related things.
2984
2985 2015-10-22  Joonghun Park  <jh718.park@samsung.com>
2986
2987         [GTK] Fix build break since r191471
2988         https://bugs.webkit.org/show_bug.cgi?id=150487
2989
2990         Reviewed by Žan Doberšek.
2991
2992         * UIProcess/API/gtk/WebKitContextMenuClient.cpp:
2993         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
2994         (WebKit::WebContextMenuProxyGtk::populate):
2995
2996 2015-10-22  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
2997
2998         [EFL] Build break since r191472 and r191473
2999         https://bugs.webkit.org/show_bug.cgi?id=150485
3000
3001         Unreviewed build fix.
3002
3003         * CMakeLists.txt: Remove icu include path and move page include path.
3004
3005 2015-10-22  Sam Weinig  <sam@webkit.org>
3006
3007         Navigations on the same host (but with different schemes and ports) should not trigger universal links
3008         <rdar://problem/22811325>
3009         https://bugs.webkit.org/show_bug.cgi?id=150481
3010
3011         Reviewed by Dan Bernstein.
3012
3013         Update the policy for following universal links to only take host into consideration.
3014
3015         * UIProcess/API/C/WKPage.cpp:
3016         (WKPageSetPageUIClient):
3017         * UIProcess/Cocoa/UIDelegate.mm:
3018         (WebKit::UIDelegate::UIClient::createNewPage):
3019         * UIProcess/WebPageProxy.cpp:
3020         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3021         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3022         (WebKit::WebPageProxy::createNewPage):
3023         (WebKit::WebPageProxy::showPage):
3024
3025 2015-10-22  Anders Carlsson  <andersca@apple.com>
3026
3027         Simplify menu creation
3028         https://bugs.webkit.org/show_bug.cgi?id=150476
3029
3030         Reviewed by Tim Horton.
3031
3032         Instead of creating vectors of NSMenuItem objects, just simply build the menu recursively.
3033
3034         * UIProcess/mac/WebContextMenuProxyMac.h:
3035         * UIProcess/mac/WebContextMenuProxyMac.mm:
3036         (WebKit::WebContextMenuProxyMac::createContextMenuFromItems):
3037         (WebKit::WebContextMenuProxyMac::createContextMenuItem):
3038         (WebKit::WebContextMenuProxyMac::showContextMenu):
3039         (WebKit::populateNSMenu): Deleted.
3040         (WebKit::nsMenuItem): Deleted.
3041         (WebKit::nsMenuItemVector): Deleted.
3042
3043 2015-10-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3044
3045         ERROR: Unhandled web process message 'StorageAreaMap:DispatchStorageEvent'
3046         https://bugs.webkit.org/show_bug.cgi?id=150315
3047
3048         Reviewed by Andreas Kling.
3049
3050         It was introduced in r184930, that keeps the session storage area
3051         maps alive in the UI process when they are destroyed by the web
3052         process. The problem is that we also keep the listeners, so that
3053         events are also dispatched to the listeners of destroyed areas,
3054         and the message handlers were removed in the web process.
3055
3056         * UIProcess/Storage/StorageManager.cpp:
3057         (WebKit::StorageManager::createTransientLocalStorageMap): Add a
3058         listener for the new storage map ID when the map is reused.
3059         (WebKit::StorageManager::destroyStorageMap): Always remove
3060         listeners of destroyed maps.
3061
3062 2015-10-22  Tim Horton  <timothy_horton@apple.com>
3063
3064         Add a SPI variant of loadData that accepts user data to WKWebView
3065         https://bugs.webkit.org/show_bug.cgi?id=150475
3066
3067         Reviewed by Anders Carlsson.
3068
3069         * UIProcess/API/Cocoa/WKWebView.mm:
3070         (-[WKWebView _loadData:MIMEType:characterEncodingName:baseURL:userData:]):
3071         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3072
3073 2015-10-22  Alex Christensen  <achristensen@webkit.org>
3074
3075         Progress towards CMake on Mac
3076         https://bugs.webkit.org/show_bug.cgi?id=150466
3077
3078         Reviewed by Chris Dumez.
3079
3080         * CMakeLists.txt:
3081         * PlatformMac.cmake:
3082         * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
3083
3084 2015-10-22  Anders Carlsson  <andersca@apple.com>
3085
3086         NativeContextMenuItem isn't needed anymore, remove it
3087         https://bugs.webkit.org/show_bug.cgi?id=150473
3088
3089         Reviewed by Tim Horton.
3090
3091         * PlatformEfl.cmake:
3092         * PlatformGTK.cmake:
3093         * Shared/NativeContextMenuItem.h: Removed.
3094         (WebKit::NativeContextMenuItem::~NativeContextMenuItem): Deleted.
3095         (WebKit::NativeContextMenuItem::nsMenuItem): Deleted.
3096         * Shared/WebContextMenuItem.cpp:
3097         (WebKit::WebContextMenuItem::WebContextMenuItem): Deleted.
3098         * Shared/WebContextMenuItem.h:
3099         (WebKit::WebContextMenuItem::create): Deleted.
3100         (WebKit::WebContextMenuItem::nativeContextMenuItem): Deleted.
3101         * Shared/efl/NativeContextMenuItemEfl.cpp: Removed.
3102         (WebKit::NativeContextMenuItem::NativeContextMenuItem): Deleted.
3103         * Shared/gtk/NativeContextMenuItemGtk.cpp: Removed.
3104         (WebKit::NativeContextMenuItem::NativeContextMenuItem): Deleted.
3105         * Shared/mac/NativeContextMenuItem.mm: Removed.
3106         (WebKit::NativeContextMenuItem::NativeContextMenuItem): Deleted.
3107         * UIProcess/mac/WebContextMenuProxyMac.mm:
3108         (WebKit::nsMenuItem): Deleted.
3109         * WebKit2.xcodeproj/project.pbxproj:
3110
3111 2015-10-22  Anders Carlsson  <andersca@apple.com>
3112
3113         CTTE WebContextMenuItemData
3114         https://bugs.webkit.org/show_bug.cgi?id=150471
3115
3116         Reviewed by Tim Horton.
3117
3118         * Shared/API/c/WKContextMenuItem.cpp:
3119         (WKContextMenuItemGetTag):
3120         (WKContextMenuItemGetType):
3121         (WKContextMenuItemCopyTitle):
3122         (WKContextMenuItemGetEnabled):
3123         (WKContextMenuItemGetChecked):
3124         * Shared/WebContextMenuItem.cpp:
3125         (WebKit::WebContextMenuItem::create):
3126         * Shared/WebContextMenuItem.h:
3127         (WebKit::WebContextMenuItem::data):
3128         * UIProcess/API/C/WKPage.cpp:
3129         (WKPageSelectContextMenuItem):
3130         * UIProcess/mac/WebContextMenuProxyMac.mm:
3131         (WebKit::nsMenuItem):
3132         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3133         (WKBundlePageClickMenuItem):
3134         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
3135         (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
3136
3137 2015-10-22  Anders Carlsson  <andersca@apple.com>
3138
3139         Handle nil menu items.
3140
3141         * UIProcess/mac/WebContextMenuProxyMac.mm:
3142         (WebKit::nsMenuItemVector):
3143
3144 2015-10-22  Anders Carlsson  <andersca@apple.com>
3145
3146         Wait to convert the share menu item to a real share menu until after calling out to the client
3147         https://bugs.webkit.org/show_bug.cgi?id=150465
3148
3149         Reviewed by Tim Horton.
3150
3151         This will let us simplify more code in upcoming patches.
3152
3153         * UIProcess/mac/WebContextMenuProxyMac.h:
3154         * UIProcess/mac/WebContextMenuProxyMac.mm:
3155         (WebKit::nsMenuItem):
3156         (WebKit::nsMenuItemVector):
3157         (WebKit::WebContextMenuProxyMac::showContextMenu):
3158
3159 2015-10-22  Myles C. Maxfield  <mmaxfield@apple.com>
3160
3161         [Cocoa] Migrate WKSetPatternPhaseInUserSpace() and WKGetUserToBaseCTM() from WKSI
3162         https://bugs.webkit.org/show_bug.cgi?id=150460
3163
3164         Reviewed by Tim Horton.
3165
3166         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3167         (InitWebCoreSystemInterface): Deleted.
3168
3169 2015-10-22  Alex Christensen  <achristensen@webkit.org>
3170
3171         Initial NSURLSession WebResourceLoader implementation
3172         https://bugs.webkit.org/show_bug.cgi?id=150355
3173
3174         Reviewed by Antti Koivisto.
3175
3176         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3177         (WebKit::NetworkConnectionToWebProcess::convertMainResourceLoadToDownload):
3178         (WebKit::NetworkConnectionToWebProcess::cookiesForDOM):
3179         * NetworkProcess/NetworkResourceLoader.cpp:
3180         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
3181         (WebKit::NetworkResourceLoader::startNetworkLoad):
3182         (WebKit::NetworkResourceLoader::setDefersLoading):
3183         (WebKit::NetworkResourceLoader::cleanup):
3184         (WebKit::NetworkResourceLoader::didConvertHandleToDownload):
3185         (WebKit::NetworkResourceLoader::abort):
3186         (WebKit::NetworkResourceLoader::willPerformHTTPRedirection):
3187         (WebKit::NetworkResourceLoader::didReceiveChallenge):
3188         (WebKit::NetworkResourceLoader::didReceiveResponse):
3189         (WebKit::NetworkResourceLoader::didReceiveData):
3190         (WebKit::NetworkResourceLoader::didCompleteWithError):
3191         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
3192         (WebKit::NetworkResourceLoader::willSendRequestAsync):
3193         (WebKit::NetworkResourceLoader::continueWillSendRequest):
3194         (WebKit::NetworkResourceLoader::continueDidReceiveResponse):
3195         (WebKit::NetworkResourceLoader::didSendData):
3196         (WebKit::NetworkResourceLoader::receivedCancellation):
3197         (WebKit::NetworkResourceLoader::startBufferingTimerIfNeeded):
3198         (WebKit::NetworkResourceLoader::bufferingTimerFired):
3199         (WebKit::NetworkResourceLoader::validateCacheEntry):
3200         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
3201         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceAsync):
3202         (WebKit::NetworkResourceLoader::continueCanAuthenticateAgainstProtectionSpace):
3203         (WebKit::NetworkResourceLoader::supportsDataArray):
3204         * NetworkProcess/NetworkResourceLoader.h:
3205         (WebKit::NetworkResourceLoader::create):
3206         (WebKit::NetworkResourceLoader::currentRequest):
3207         (WebKit::NetworkResourceLoader::handle):
3208         * NetworkProcess/NetworkSession.h: Added.
3209         (WebKit::NetworkSessionTaskClient::~NetworkSessionTaskClient):
3210         (WebKit::NetworkingDataTask::client):
3211         (WebKit::NetworkingDataTask::clearClient):
3212         (WebKit::NetworkSession::~NetworkSession):
3213         * NetworkProcess/cocoa/NetworkSessionCocoa.mm: Added.
3214         (toNSURLSessionResponseDisposition):
3215         (toNSURLSessionAuthChallengeDisposition):
3216         (-[NetworkSessionDelegate initWithNetworkSession:]):
3217         (-[NetworkSessionDelegate URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:]):
3218         (-[NetworkSessionDelegate URLSession:task:didReceiveChallenge:completionHandler:]):
3219         (-[NetworkSessionDelegate URLSession:task:didCompleteWithError:]):
3220         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]):
3221         (-[NetworkSessionDelegate URLSession:dataTask:didReceiveData:]):
3222         (WebKit::NetworkSession::create):
3223         (WebKit::NetworkSession::singleton):
3224         (WebKit::configurationForType):
3225         (WebKit::NetworkSession::NetworkSession):
3226         (WebKit::NetworkSession::createDataTaskWithRequest):
3227         (WebKit::NetworkSession::dataTaskForIdentifier):
3228         (WebKit::NetworkingDataTask::NetworkingDataTask):
3229         (WebKit::NetworkingDataTask::~NetworkingDataTask):
3230         (WebKit::NetworkingDataTask::suspend):
3231         (WebKit::NetworkingDataTask::resume):
3232         (WebKit::NetworkingDataTask::taskIdentifier):
3233         * NetworkProcess/mac/NetworkResourceLoaderMac.mm:
3234         (WebKit::NetworkResourceLoader::willCacheResponseAsync):
3235         * WebKit2.xcodeproj/project.pbxproj:
3236         * config.h:
3237
3238 2015-10-22  Philippe Normand  <pnormand@igalia.com>
3239
3240         Unreviewed, GTK build fix for disabled redirected XComposite window support.
3241
3242         * UIProcess/API/gtk/WebKitWebViewBase.cpp: Add USE(REDIRECTED_XCOMPOSITE_WINDOW) guards.
3243         * UIProcess/DrawingAreaProxyImpl.h: Mark virtual methods as override to avoid compilation warnings.
3244
3245 2015-10-22  Wenson Hsieh  <wenson_hsieh@apple.com>
3246
3247         Implement touch-action: manipulation; for iOS
3248         https://bugs.webkit.org/show_bug.cgi?id=149854
3249         <rdar://problem/23017145>
3250
3251         Reviewed by Benjamin Poulain.
3252
3253         Implements the manipulation value for the CSS property touch-action. Performs hit-testing upon receiving a potential
3254         tap to determine whether to disable double-tap gesture recognition over the duration of the tap. If so, sends a message
3255         from the web process to the UI process indicating that double-tapping should be disabled, allowing single taps to
3256         avoid the delay.
3257
3258         * WebProcess/WebPage/ios/WebPageIOS.mm:
3259         (WebKit::WebPage::potentialTapAtPosition):
3260
3261 2015-10-22  Ryosuke Niwa  <rniwa@webkit.org>
3262
3263         REGRESSION (r181972): Scroll position changes to top of youtube page when switching tabs
3264         https://bugs.webkit.org/show_bug.cgi?id=150428
3265
3266         Reviewed by Antti Koivisto.
3267
3268         Call updateFocusAppearance with RevealMode::DoNotReveal to avoid revealing the focused element.
3269
3270         * WebProcess/WebPage/WebPage.cpp:
3271         (WebKit::WebPage::restoreSelectionInFocusedEditableElement):
3272
3273 2015-10-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3274
3275         Unreviewed. Fix a crash in GTk+ after r191402.
3276
3277         Since r191402 WebContextMenuProxy is no longer refcounted, and
3278         std::unique_ptr is used instead. This means that when we show the
3279         context menu for the second time in a web view, a new
3280         WebContextMenuProxy is created and the previous one is
3281         destroyed. We were setting the active context menu of the WebView
3282         in the constructor of WebContextMenuProxy, and unsetting it in the
3283         destructor. Now the constructor of the new WebContextMenuProxy
3284         happens before the destructor of the current one that unsets the
3285         WebView active context menu. This patch simply makes the web view
3286         unset its active context menu when it's unmapped and a new one
3287         hasn't been set.
3288
3289         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3290         (activeContextMenuUnmapped):
3291         (webkitWebViewBaseSetActiveContextMenuProxy):
3292         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
3293         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
3294
3295 2015-10-22  Hunseop Jeong  <hs85.jeong@samsung.com>
3296
3297         [GTK] Try to fix the build after r191402.
3298         https://bugs.webkit.org/show_bug.cgi?id=150435
3299
3300         Reviewed by Carlos Garcia Campos.
3301
3302         * UIProcess/API/gtk/PageClientImpl.cpp:
3303         (WebKit::PageClientImpl::createPopupMenuProxy):
3304         (WebKit::PageClientImpl::createContextMenuProxy):
3305         (WebKit::PageClientImpl::createColorPicker):
3306         * UIProcess/API/gtk/PageClientImpl.h:
3307         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
3308         (WebKit::WebContextMenuProxyGtk::populate):
3309         (WebKit::WebContextMenuProxyGtk::show):
3310         (WebKit::WebContextMenuProxyGtk::WebContextMenuProxyGtk):
3311         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
3312         (WebKit::WebContextMenuProxyGtk::menuPositionFunction):
3313         (WebKit::WebContextMenuProxyGtk::showContextMenu): Deleted.
3314         (WebKit::WebContextMenuProxyGtk::hideContextMenu): Deleted.
3315         (WebKit::WebContextMenuProxyGtk::cancelTracking): Deleted.
3316         * UIProcess/gtk/WebContextMenuProxyGtk.h:
3317         (WebKit::WebContextMenuProxyGtk::gtkMenu):
3318         (WebKit::WebContextMenuProxyGtk::create): Deleted.
3319
3320 2015-10-21  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3321
3322        Unreviewed EFL build fix. Remove customizeMenu implementation.
3323
3324         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
3325         (WebKit::WebContextMenuClient::customizeMenu): Deleted.
3326
3327 2015-10-21  Alex Christensen  <achristensen@webkit.org>
3328
3329         Speculative EFL build fix.
3330
3331         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
3332         Remove another customizeMenu call.
3333
3334 2015-10-21  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3335
3336         [EFL][GTK][WK2] Fix build break since r191402, r191401
3337         https://bugs.webkit.org/show_bug.cgi?id=150432
3338
3339         Unreviewed EFL and GTK build fix.
3340
3341         * CMakeLists.txt:
3342         * UIProcess/CoordinatedGraphics/WebView.cpp:
3343         (WebKit::WebView::createContextMenuProxy):
3344         * UIProcess/CoordinatedGraphics/WebView.h:
3345         * UIProcess/efl/WebContextMenuProxyEfl.cpp:
3346         (WebKit::WebContextMenuProxyEfl::show):
3347         * UIProcess/efl/WebContextMenuProxyEfl.h:
3348         (WebKit::WebContextMenuProxyEfl::create): Deleted.
3349         * UIProcess/efl/WebViewEfl.cpp:
3350         (WebKit::WebViewEfl::createContextMenuProxy):
3351         * UIProcess/efl/WebViewEfl.h:
3352         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
3353         (WebKit::WebContextMenuClient::customizeMenu):
3354         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
3355
3356 2015-10-21  Anders Carlsson  <andersca@apple.com>
3357
3358         Get rid of WebContextMenuClient::customizeMenu, it's no longer used
3359         https://bugs.webkit.org/show_bug.cgi?id=150427
3360
3361         Reviewed by Tim Horton.
3362
3363         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
3364         (WebKit::WebContextMenuClient::customizeMenu): Deleted.
3365         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
3366
3367 2015-10-21  Tim Horton  <timothy_horton@apple.com>
3368
3369         API-ify the FindMatches client
3370         https://bugs.webkit.org/show_bug.cgi?id=150422
3371
3372         Reviewed by Anders Carlsson.
3373
3374         * UIProcess/API/APIFindMatchesClient.h: Renamed from Source/WebKit2/UIProcess/WebFindClient.h.
3375         (API::FindMatchesClient::~FindMatchesClient):
3376         (API::FindMatchesClient::didFindStringMatches):
3377         (API::FindMatchesClient::didGetImageForMatchResult):
3378         * UIProcess/API/C/WKPage.cpp:
3379         (WKPageSetPageFindMatchesClient):
3380         * UIProcess/WebFindClient.cpp: Removed.
3381         * UIProcess/WebPageProxy.cpp:
3382         (WebKit::WebPageProxy::WebPageProxy):
3383         (WebKit::WebPageProxy::setFindMatchesClient):
3384         (WebKit::WebPageProxy::close):
3385         (WebKit::WebPageProxy::didGetImageForFindMatch):
3386         (WebKit::WebPageProxy::didFindStringMatches):
3387         (WebKit::WebPageProxy::initializeFindMatchesClient): Deleted.
3388         * UIProcess/WebPageProxy.h:
3389         (WebKit::WebPageProxy::findMatchesClient):
3390         * WebKit2.xcodeproj/project.pbxproj:
3391
3392 2015-10-21  Enrica Casucci  <enrica@apple.com>
3393
3394         WebProcess crashes when accessibility bundle is not found.
3395         https://bugs.webkit.org/show_bug.cgi?id=150414
3396
3397         Reviewed by Dan Bernstein.
3398
3399         The uninitialized pointer to NSError causes the print function to crash.
3400
3401         * WebProcess/cocoa/WebProcessCocoa.mm:
3402         (WebKit::registerWithAccessibility):
3403
3404 2015-10-21  Anders Carlsson  <andersca@apple.com>
3405
3406         Move services menu handling out into a separate function
3407         https://bugs.webkit.org/show_bug.cgi?id=150420
3408
3409         Reviewed by Tim Horton.
3410
3411         * UIProcess/mac/WebContextMenuProxyMac.h:
3412         * UIProcess/mac/WebContextMenuProxyMac.mm:
3413         (WebKit::WebContextMenuProxyMac::showServicesMenu):
3414         (WebKit::WebContextMenuProxyMac::show):
3415         (WebKit::WebContextMenuProxyMac::showContextMenu):
3416         (WebKit::WebContextMenuProxyMac::populate): Deleted.
3417
3418 2015-10-21  Wenson Hsieh  <wenson_hsieh@apple.com>
3419
3420         Single tapping clickable elements in unscalable pages should show a tap highlight
3421         https://bugs.webkit.org/show_bug.cgi?id=150382
3422
3423         Reviewed by Simon Fraser.
3424
3425         When the double tap gesture recognizer is disabled ahead of time (as in the case of unscalable pages) the tap is
3426         committed before the geometries come in. To fix this, we introduce a flag that allows the single tap to be
3427         committed before the tap highlight arrives. This allows the tap highlight to be immediately animated when receiving
3428         the tap highlight geometries only in the case where double tapping is disabled when recognizing the single tap.
3429
3430         * UIProcess/ios/WKContentViewInteraction.h:
3431         * UIProcess/ios/WKContentViewInteraction.mm:
3432         (-[WKContentView setupInteraction]):
3433         (-[WKContentView cleanupInteraction]):
3434         (-[WKContentView _didGetTapHighlightForRequest:color:quads:topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:]):
3435         (-[WKContentView _singleTapRecognized:]):
3436         (-[WKContentView _singleTapCommited:]):
3437
3438 2015-10-21  Anders Carlsson  <andersca@apple.com>
3439
3440         Get rid of useBinaryEncoding from WKPageGetContentsAsMHTMLData
3441         https://bugs.webkit.org/show_bug.cgi?id=150417
3442
3443         Reviewed by Tim Horton.
3444
3445         The useBinaryEncoding parameter is always false, so just get rid of it.
3446
3447         * UIProcess/API/C/WKPage.cpp:
3448         (WKPageGetContentsAsMHTMLData):
3449         * UIProcess/API/C/WKPage.h:
3450         * UIProcess/API/efl/ewk_view.cpp:
3451