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