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