Make it possible to test rubber-banding in overflow scroll
[WebKit-https.git] / Source / WebKitLegacy / mac / ChangeLog
1 2017-10-31  Simon Fraser  <simon.fraser@apple.com>
2
3         Make it possible to test rubber-banding in overflow scroll
4         https://bugs.webkit.org/show_bug.cgi?id=179078
5
6         Reviewed by Sam Weinig.
7
8         Add internals.unconstrainedScrollTo(element, x, y) and plumb through ScrollClamping
9         (which replaces RenderLayer::ScrollOffsetClamping) to support it.
10
11         Flip the default from unclamped to clamped for various RenderLayer scrolling-related
12         functions, since most callers want clamped.
13
14         * DOM/DOMHTML.mm:
15         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
16
17 2017-10-31  Tim Horton  <timothy_horton@apple.com>
18
19         Fix up some content filtering feature flags
20         https://bugs.webkit.org/show_bug.cgi?id=179079
21
22         Reviewed by Simon Fraser.
23
24         * Configurations/FeatureDefines.xcconfig:
25
26 2017-10-28  Zalan Bujtas  <zalan@apple.com>
27
28         [FrameView::layout cleanup] Move core layout logic to a separate class.
29         https://bugs.webkit.org/show_bug.cgi?id=178771
30         <rdar://problem/35166542>
31
32         Reviewed by Simon Fraser.
33
34         Move layout code out from FrameView to LayoutContext.
35
36         * WebView/WebClipView.mm:
37         (-[WebClipView _immediateScrollToPoint:]):
38         * WebView/WebFrame.mm:
39         (-[WebFrame layoutCount]):
40
41 2017-10-26  Simon Fraser  <simon.fraser@apple.com>
42
43         Fix issues with WebView subframe painting
44         https://bugs.webkit.org/show_bug.cgi?id=178842
45         rdar://problem/34072253
46
47         Reviewed by Daniel Bates.
48         
49         WebHTMLView overrides some NSView internal methods to make sure that AppKit doesn't paint
50         subframes (WebKit controls subframe painting). The method signature of one of these changed in macOS
51         High Sierra, so match the new signature.
52
53         Also rename the 'rect' param to 'displayRect' to match AppKit code.
54
55         * WebView/WebHTMLView.mm:
56         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
57         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
58
59 2017-10-25  Youenn Fablet  <youenn@apple.com>
60
61         Enable ServiceWorker to fetch resources
62         https://bugs.webkit.org/show_bug.cgi?id=178673
63
64         Reviewed by Brady Eidson.
65
66         * WebCoreSupport/WebFrameLoaderClient.mm:
67         (WebFrameLoaderClient::pageID const):
68         (WebFrameLoaderClient::frameID const):
69         (WebFrameLoaderClient::sessionID const):
70
71         Added implementation to the new getters.
72         They are noop in the context of WK1.
73
74 2017-10-24  Eric Carlson  <eric.carlson@apple.com>
75
76         Web Inspector: Enable WebKit logging configuration and display
77         https://bugs.webkit.org/show_bug.cgi?id=177027
78         <rdar://problem/33964767>
79
80         Reviewed by Joseph Pecoraro.
81
82         * WebCoreSupport/WebChromeClient.mm:
83         (stringForMessageSource): Deal with Media and WebRTC message sources.
84
85 2017-10-20  Antoine Quint  <graouts@apple.com>
86
87         [Web Animations] Provide basic timeline and animation interfaces
88         https://bugs.webkit.org/show_bug.cgi?id=178526
89
90         Reviewed by Dean Jackson.
91
92         Remove the WEB_ANIMATIONS compile-time flag.
93
94         * Configurations/FeatureDefines.xcconfig:
95         * WebView/WebPreferences.mm:
96         (+[WebPreferences initialize]):
97         * WebView/WebView.mm:
98         (-[WebView _preferencesChanged:]):
99
100 2017-10-19  Sam Weinig  <sam@webkit.org>
101
102         [Settings] Move global settings into their own file
103         https://bugs.webkit.org/show_bug.cgi?id=178512
104
105         Reviewed by Darin Adler.
106
107         Moves all global settigns out of SettingsBase and into the new DeprecatedGlobalSettings.
108
109         * WebCoreSupport/WebChromeClient.mm:
110         (WebChromeClient::supportsVideoFullscreen):
111         * WebView/WebDynamicScrollBarsView.mm:
112         (+[WebDynamicScrollBarsView _horizontalScrollerClass]):
113         (+[WebDynamicScrollBarsView _verticalScrollerClass]):
114         * WebView/WebPreferences.mm:
115         (+[WebPreferences initialize]):
116         * WebView/WebView.mm:
117         (-[WebView _commonInitializationWithFrameName:groupName:]):
118         (-[WebView _preferencesChanged:]):
119         (+[WebView _doNotStartObservingNetworkReachability]):
120
121 2017-10-17  Jiewen Tan  <jiewen_tan@apple.com>
122
123         Replace some stack raw pointers with RefPtrs within WebCore/html
124         https://bugs.webkit.org/show_bug.cgi?id=178201
125         <rdar://problem/34841692>
126
127         Reviewed by Ryosuke Niwa.
128
129         * DOM/DOM.mm:
130         (kit):
131         Change the type of node as toNode() is changed to return RefPtr.
132
133 2017-10-18  Chris Dumez  <cdumez@apple.com>
134
135         [Service Worker] Add stubs for Client / WindowClient / Clients
136         https://bugs.webkit.org/show_bug.cgi?id=178469
137
138         Reviewed by Youenn Fablet.
139
140         Rename PageVisiblityState to VisibilityState.
141
142         * WebView/WebView.mm:
143         (kit):
144
145 2017-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
146
147         Unreviewed, rolling out r223291.
148
149         See WebCore ChangeLog for more detail.
150
151         Reverted changeset:
152
153         "Remove Editor::simplifyMarkup"
154         https://bugs.webkit.org/show_bug.cgi?id=178271
155         https://trac.webkit.org/changeset/223291
156
157 2017-10-17  Keith Miller  <keith_miller@apple.com>
158
159         Change WebCore sources to work with unified source builds
160         https://bugs.webkit.org/show_bug.cgi?id=178229
161
162         Rubber stamped by Tim Horton.
163
164         * Configurations/FeatureDefines.xcconfig:
165
166 2017-10-16  Sam Weinig  <sam@webkit.org>
167
168         [Settings] Remove all custom code from Settings.h/cpp
169         https://bugs.webkit.org/show_bug.cgi?id=178330
170
171         Reviewed by Simon Fraser.
172
173         * WebView/WebPreferences.mm:
174         (+[WebPreferences initialize]):
175         
176             Update for naming changes of FrameFlattening now that it is an enum class.
177
178 2017-10-13  Alex Christensen  <achristensen@webkit.org>
179
180         Remove Editor::simplifyMarkup
181         https://bugs.webkit.org/show_bug.cgi?id=178271
182
183         Reviewed by Wenson Hsieh.
184
185         * WebView/WebView.mm:
186         (-[WebView _simplifyMarkup:endNode:]):
187
188 2017-10-12  Chris Dumez  <cdumez@apple.com>
189
190         [Mac] Add support for MouseEvent.buttons
191         https://bugs.webkit.org/show_bug.cgi?id=178214
192
193         Reviewed by Ryosuke Niwa.
194
195         * WebView/WebPDFView.mm:
196         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
197
198 2017-10-11  Sam Weinig  <sam@webkit.org>
199
200         Remove out-parameter variants of copyToVector
201         https://bugs.webkit.org/show_bug.cgi?id=178155
202
203         Reviewed by Tim Horton.
204
205         * Plugins/WebNetscapePluginView.mm:
206         (-[WebNetscapePluginView destroyPlugin]):
207         * WebView/WebHTMLRepresentation.mm:
208         (newArrayWithStrings):
209
210             Replace out-parameter based copyToVector, with one that returns a Vector.
211
212 2017-10-11  Ryosuke Niwa  <rniwa@webkit.org>
213
214         Sanitize URL in pasteboard for other applications and cross origin content
215         https://bugs.webkit.org/show_bug.cgi?id=178060
216         <rdar://problem/34874518>
217
218         Reviewed by Wenson Hsieh.
219
220         * WebCoreSupport/WebPlatformStrategies.h:
221         * WebCoreSupport/WebPlatformStrategies.mm:
222         (WebPlatformStrategies::typesSafeForDOMToReadAndWrite):
223
224 2017-10-11  Chris Dumez  <cdumez@apple.com>
225
226         Modernize Geolocation code
227         https://bugs.webkit.org/show_bug.cgi?id=178148
228
229         Reviewed by Ryosuke Niwa.
230
231         * WebCoreSupport/WebGeolocationClient.h:
232         * WebCoreSupport/WebGeolocationClient.mm:
233         (WebGeolocationClient::lastPosition):
234         * WebView/WebGeolocationPosition.mm:
235         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
236         (core):
237         (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
238         (-[WebGeolocationPosition initWithGeolocationPosition:]):
239         * WebView/WebGeolocationPositionInternal.h:
240
241 2017-10-10  Ryosuke Niwa  <rniwa@webkit.org>
242
243         Enable custom pasteboard data in DumpRenderTree and WebKitTestRunner
244         https://bugs.webkit.org/show_bug.cgi?id=178154
245
246         Reviewed by Wenson Hsieh.
247
248         Enable custom pasteboard data by default.
249
250         * WebView/WebPreferenceKeysPrivate.h:
251         * WebView/WebPreferences.mm:
252         (+[WebPreferences initialize]):
253         (-[WebPreferences customPasteboardDataEnabled]): Added.
254         (-[WebPreferences setCustomPasteboardDataEnabled:]): Added.
255         * WebView/WebPreferencesPrivate.h:
256         * WebView/WebView.mm:
257         (-[WebView _preferencesChanged:]):
258
259 2017-10-10  Sam Weinig  <sam@webkit.org>
260
261         Replace copyKeysToVector/copyValuesToVector with copyToVector(map.keys())/copyToVector(map.values())
262         https://bugs.webkit.org/show_bug.cgi?id=178102
263
264         Reviewed by Tim Horton.
265
266         * History/WebHistory.mm:
267         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
268         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
269         (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
270         * WebCoreSupport/WebUserMediaClient.mm:
271         (WebUserMediaClient::pageDestroyed):
272
273 2017-10-09  Robin Morisset  <rmorisset@apple.com>
274
275         Make the names of the options consistent
276         https://bugs.webkit.org/show_bug.cgi?id=177933
277
278         Reviewed by Saam Barati.
279
280         * WebView/WebFrame.h:
281         * WebView/WebHTMLView.mm:
282         (-[WebHTMLView setMarkedText:selectedRange:]):
283         * WebView/WebView.h:
284
285 2017-10-06  Wenson Hsieh  <wenson_hsieh@apple.com>
286
287         [iOS] Tweak support for classifying form controls (followup to r222487)
288         https://bugs.webkit.org/show_bug.cgi?id=177917
289         <rdar://problem/34820122>
290
291         Reviewed by Dean Jackson.
292
293         Implement _autofillContext in legacy WebKit, and remove the two previous SPI hooks.
294
295         * DOM/DOMHTMLInputElement.mm:
296         (-[DOMHTMLInputElement _autofillContext]):
297         (-[DOMHTMLInputElement acceptsAutofilledLoginCredentials]): Deleted.
298         (-[DOMHTMLInputElement representingPageURL]): Deleted.
299
300 2017-10-05  Keith Miller  <keith_miller@apple.com>
301
302         Unreviewed, tapi builds without optimization so we should have TAPI passes -DRELEASE_WITHOUT_OPTIMIZATIONS.
303
304         * Configurations/WebKitLegacy.xcconfig:
305
306 2017-10-05  Jer Noble  <jer.noble@apple.com>
307
308         [Cocoa] Enable ENABLE_ENCRYPTED_MEDIA build-time setting
309         https://bugs.webkit.org/show_bug.cgi?id=177261
310
311         Reviewed by Eric Carlson.
312
313         * Configurations/FeatureDefines.xcconfig:
314
315 2017-10-05  Chris Dumez  <cdumez@apple.com>
316
317         Drop unused parameters for CookiesStrategy::cookiesEnabled()
318         https://bugs.webkit.org/show_bug.cgi?id=177957
319
320         Reviewed by Alex Christensen.
321
322         * WebCoreSupport/WebPlatformStrategies.h:
323         * WebCoreSupport/WebPlatformStrategies.mm:
324         (WebPlatformStrategies::cookiesEnabled):
325
326 2017-10-05  Youenn Fablet  <youenn@apple.com>
327
328         Make LibWebRTCProvider port agnostic
329         https://bugs.webkit.org/show_bug.cgi?id=177747
330
331         Reviewed by Alex Christensen & Alex Garcia.
332
333         * WebView/WebView.mm:
334         (-[WebView _commonInitializationWithFrameName:groupName:]):
335         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
336
337 2017-10-04  Alex Christensen  <achristensen@webkit.org>
338
339         Stop linking with WebKitSystemInterface
340         https://bugs.webkit.org/show_bug.cgi?id=177915
341
342         Reviewed by Antti Koivisto.
343
344         * Configurations/DebugRelease.xcconfig:
345         * Configurations/WebKitLegacy.xcconfig:
346
347 2017-10-04  Alex Christensen  <achristensen@webkit.org>
348
349         Remove unnecessary includes of WebKitSystemInterface on Cocoa platforms
350         https://bugs.webkit.org/show_bug.cgi?id=177912
351
352         Reviewed by Saam Barati.
353
354         * Carbon/CarbonUtils.m:
355         * Carbon/CarbonWindowAdapter.mm:
356         * Carbon/HIWebView.mm:
357         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
358         * Misc/WebNSFileManagerExtras.mm:
359         * Misc/WebNSPasteboardExtras.mm:
360         * Misc/WebNSURLExtras.mm:
361         * Plugins/Hosted/HostedNetscapePluginStream.mm:
362         * Plugins/Hosted/NetscapePluginHostManager.mm:
363         * Plugins/Hosted/NetscapePluginHostProxy.mm:
364         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
365         * Plugins/Hosted/WebHostedNetscapePluginView.h:
366         * Plugins/Hosted/WebTextInputWindowController.m:
367         * Plugins/WebBaseNetscapePluginView.mm:
368         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
369         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
370         * Plugins/WebNetscapePluginStream.mm:
371         * Plugins/WebNetscapePluginView.mm:
372         * Plugins/WebPluginDatabase.mm:
373         * WebCoreSupport/PopupMenuMac.mm:
374         * WebCoreSupport/WebChromeClient.mm:
375         * WebCoreSupport/WebFrameLoaderClient.mm:
376         * WebCoreSupport/WebInspectorClient.mm:
377         * WebCoreSupport/WebPlatformStrategies.mm:
378         * WebCoreSupport/WebSystemInterface.mm:
379         * WebView/WebDynamicScrollBarsView.mm:
380         * WebView/WebFrame.mm:
381         * WebView/WebFrameView.mm:
382         * WebView/WebFullScreenController.mm:
383         * WebView/WebHTMLView.mm:
384         * WebView/WebPreferences.mm:
385         * WebView/WebView.mm:
386
387 2017-09-29  Alexey Proskuryakov  <ap@apple.com>
388
389         Follow-up to https://trac.webkit.org/r222239 to fix crashes.
390         rdar://problem/34705779
391
392         Addressing review comments that I somehow landed without.
393
394         * WebView/WebHTMLView.mm: Undo adding #if guards around -_web_uniqueWebDataURL
395
396 2017-09-29  Chris Dumez  <cdumez@apple.com>
397
398         Split some logic out of VisitedLinkStore and make it reusable
399         https://bugs.webkit.org/show_bug.cgi?id=177575
400
401         Reviewed by Alex Christensen.
402
403         * WebCoreSupport/WebVisitedLinkStore.h:
404         * WebCoreSupport/WebVisitedLinkStore.mm:
405         (WebVisitedLinkStore::addVisitedLink):
406         (WebVisitedLinkStore::removeVisitedLink):
407         (WebVisitedLinkStore::isLinkVisited):
408         (WebVisitedLinkStore::addVisitedLinkHash):
409
410 2017-09-28  Jonathan Bedard  <jbedard@apple.com>
411
412         Build fix for High Sierra 32 bit Mac
413         https://bugs.webkit.org/show_bug.cgi?id=177551
414         <rdar://problem/34690283>
415
416         Reviewed by Alexey Proskuryakov.
417
418         Some assertions have been removed from the SDK. Replace these assertions with equivalent
419         WTF assert code.  Since the files in this patch are using tabs, some style changes were
420         also made.
421
422         * Carbon/CarbonWindowAdapter.mm:
423         (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
424         (-[CarbonWindowAdapter initWithContentRect:styleMask:backing:defer:]):
425         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
426         (-[CarbonWindowAdapter setViewsNeedDisplay:]):
427         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:]):
428         (-[CarbonWindowAdapter dealloc]):
429         (-[CarbonWindowAdapter windowRef]):
430         (-[CarbonWindowAdapter _hasWindowRef]):
431         (-[CarbonWindowAdapter _managesWindowRef]):
432         (-[CarbonWindowAdapter _removeWindowRef]):
433         (-[CarbonWindowAdapter _carbonWindowClass]):
434         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
435         (-[CarbonWindowAdapter sendSuperEvent:]):
436         (-[CarbonWindowAdapter relinquishFocus]):
437         (-[CarbonWindowAdapter _cancelKey:]):
438         (-[CarbonWindowAdapter _commonAwake]):
439         (-[CarbonWindowAdapter _destroyRealWindow:]):
440         (-[CarbonWindowAdapter _oldPlaceWindow:]):
441         (-[CarbonWindowAdapter _termWindowIfOwner]):
442         (-[CarbonWindowAdapter _windowMovedToRect:]):
443         (-[CarbonWindowAdapter constrainFrameRect:toScreen:]):
444         (-[CarbonWindowAdapter selectKeyViewFollowingView:]):
445         (-[CarbonWindowAdapter selectKeyViewPrecedingView:]):
446         (-[CarbonWindowAdapter canBecomeKeyWindow]):
447         (-[CarbonWindowAdapter canBecomeMainWindow]):
448         (-[CarbonWindowAdapter encodeWithCoder:]):
449         (-[CarbonWindowAdapter initWithCoder:]):
450         (-[CarbonWindowAdapter setContentView:]):
451         (-[CarbonWindowAdapter worksWhenModal]):
452         (-[CarbonWindowAdapter _setModalWindowLevel]):
453         (-[CarbonWindowAdapter _clearModalWindowLevel]):
454         (-[CarbonWindowAdapter carbonHICommandIDFromActionSelector:]):
455         (-[CarbonWindowAdapter sendCarbonProcessHICommandEvent:]):
456         (-[CarbonWindowAdapter sendCarbonUpdateHICommandStatusEvent:withMenuRef:andMenuItemIndex:]):
457         (-[CarbonWindowAdapter _handleRootBoundsChanged]):
458         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
459         (-[CarbonWindowAdapter _handleCarbonEvent:callRef:]):
460         (NSCarbonWindowHandleEvent):
461         (-[CarbonWindowAdapter _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]):
462         (-[CarbonWindowAdapter _growBoxRect]):
463         * Carbon/HIWebView.mm:
464         (HIWebViewGetWebView):
465         (HIWebViewConstructor):
466         (HIWebViewDestructor):
467         (HIWebViewRegisterClass):
468         (GetBehaviors):
469         (Draw):
470         (HitTest):
471         (GetRegion):
472         (GetWindowRef):
473         (CreateNSEventAdoptingCGEvent):
474         (CopyEventCGEvent):
475         (CreateNSEventWithCarbonClickEvent):
476         (Click):
477         (CreateNSEventWithCarbonEvent):
478         (MouseUp):
479         (CreateNSEventWithCarbonMouseMoveEvent):
480         (MouseMoved):
481         (MouseDragged):
482         (MouseWheelMoved):
483         (ContextMenuClick):
484         (GetKind):
485         (BoundsChanged):
486         (OwningWindowChanged):
487         (WindowHandler):
488         (SyncFrame):
489         (SetFocusPart):
490         (AdvanceFocus):
491         (RelinquishFocus):
492         (ActiveStateChanged):
493         (ProcessCommand):
494         (UpdateCommandStatus):
495         (_NSSelectorForHICommand):
496         (HIWebViewEventHandler):
497         (StartUpdateObserver):
498         (StopUpdateObserver):
499         (UpdateObserver):
500
501 2017-09-27  Wenson Hsieh  <wenson_hsieh@apple.com>
502
503         Drag event DataTransfer has unexpected types "dyn.ah62d4..."
504         https://bugs.webkit.org/show_bug.cgi?id=172526
505         <rdar://problem/32396081>
506
507         Reviewed by Ryosuke Niwa.
508
509         Adjust for changes in WebCore. See WebCore ChangeLog for more details.
510
511         * WebCoreSupport/WebPlatformStrategies.h:
512         * WebCoreSupport/WebPlatformStrategies.mm:
513         (WebPlatformStrategies::webExposedTypes):
514         (WebPlatformStrategies::writeCustomData):
515
516 2017-09-27  Matt Lewis  <jlewis3@apple.com>
517
518         Unreviewed, rolling out r222567.
519
520         This broke and internal build.
521
522         Reverted changeset:
523
524         "Build fix for High Sierra 32 bit Mac"
525         https://bugs.webkit.org/show_bug.cgi?id=177551
526         http://trac.webkit.org/changeset/222567
527
528 2017-09-27  Jonathan Bedard  <jbedard@apple.com>
529
530         Build fix for High Sierra 32 bit Mac
531         https://bugs.webkit.org/show_bug.cgi?id=177551
532         <rdar://problem/34690283>
533
534         Reviewed by Alexey Proskuryakov.
535
536         Some assertions have been removed from the SDK. Replace these assertions with equivalent
537         WTF assert code.  Since the files in this patch are using tabs, some style changes were
538         also made.
539
540         * Carbon/CarbonWindowAdapter.mm:
541         (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
542         (-[CarbonWindowAdapter initWithContentRect:styleMask:backing:defer:]):
543         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
544         (-[CarbonWindowAdapter setViewsNeedDisplay:]):
545         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:]):
546         (-[CarbonWindowAdapter dealloc]):
547         (-[CarbonWindowAdapter windowRef]):
548         (-[CarbonWindowAdapter _hasWindowRef]):
549         (-[CarbonWindowAdapter _managesWindowRef]):
550         (-[CarbonWindowAdapter _removeWindowRef]):
551         (-[CarbonWindowAdapter _carbonWindowClass]):
552         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
553         (-[CarbonWindowAdapter sendSuperEvent:]):
554         (-[CarbonWindowAdapter relinquishFocus]):
555         (-[CarbonWindowAdapter _cancelKey:]):
556         (-[CarbonWindowAdapter _commonAwake]):
557         (-[CarbonWindowAdapter _destroyRealWindow:]):
558         (-[CarbonWindowAdapter _oldPlaceWindow:]):
559         (-[CarbonWindowAdapter _termWindowIfOwner]):
560         (-[CarbonWindowAdapter _windowMovedToRect:]):
561         (-[CarbonWindowAdapter constrainFrameRect:toScreen:]):
562         (-[CarbonWindowAdapter selectKeyViewFollowingView:]):
563         (-[CarbonWindowAdapter selectKeyViewPrecedingView:]):
564         (-[CarbonWindowAdapter canBecomeKeyWindow]):
565         (-[CarbonWindowAdapter canBecomeMainWindow]):
566         (-[CarbonWindowAdapter encodeWithCoder:]):
567         (-[CarbonWindowAdapter initWithCoder:]):
568         (-[CarbonWindowAdapter setContentView:]):
569         (-[CarbonWindowAdapter worksWhenModal]):
570         (-[CarbonWindowAdapter _setModalWindowLevel]):
571         (-[CarbonWindowAdapter _clearModalWindowLevel]):
572         (-[CarbonWindowAdapter carbonHICommandIDFromActionSelector:]):
573         (-[CarbonWindowAdapter sendCarbonProcessHICommandEvent:]):
574         (-[CarbonWindowAdapter sendCarbonUpdateHICommandStatusEvent:withMenuRef:andMenuItemIndex:]):
575         (-[CarbonWindowAdapter _handleRootBoundsChanged]):
576         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
577         (-[CarbonWindowAdapter _handleCarbonEvent:callRef:]):
578         (NSCarbonWindowHandleEvent):
579         (-[CarbonWindowAdapter _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]):
580         (-[CarbonWindowAdapter _growBoxRect]):
581         * Carbon/HIWebView.mm:
582         (HIWebViewGetWebView):
583         (HIWebViewConstructor):
584         (HIWebViewDestructor):
585         (HIWebViewRegisterClass):
586         (GetBehaviors):
587         (Draw):
588         (HitTest):
589         (GetRegion):
590         (GetWindowRef):
591         (CreateNSEventAdoptingCGEvent):
592         (CopyEventCGEvent):
593         (CreateNSEventWithCarbonClickEvent):
594         (Click):
595         (CreateNSEventWithCarbonEvent):
596         (MouseUp):
597         (CreateNSEventWithCarbonMouseMoveEvent):
598         (MouseMoved):
599         (MouseDragged):
600         (MouseWheelMoved):
601         (ContextMenuClick):
602         (GetKind):
603         (BoundsChanged):
604         (OwningWindowChanged):
605         (WindowHandler):
606         (SyncFrame):
607         (SetFocusPart):
608         (AdvanceFocus):
609         (RelinquishFocus):
610         (ActiveStateChanged):
611         (ProcessCommand):
612         (UpdateCommandStatus):
613         (_NSSelectorForHICommand):
614         (HIWebViewEventHandler):
615         (StartUpdateObserver):
616         (StopUpdateObserver):
617         (UpdateObserver):
618
619 2017-09-25  Alex Christensen  <achristensen@webkit.org>
620
621         Make PolicyAction an encodable enum class
622         https://bugs.webkit.org/show_bug.cgi?id=177480
623
624         Reviewed by Antti Koivisto.
625
626         * Plugins/WebPluginContainerCheck.mm:
627         (-[WebPluginContainerCheck _continueWithPolicy:]):
628         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
629         * WebCoreSupport/WebFrameLoaderClient.mm:
630         (-[WebFramePolicyListener invalidate]):
631         (-[WebFramePolicyListener ignore]):
632         (-[WebFramePolicyListener download]):
633         (-[WebFramePolicyListener use]):
634         (-[WebFramePolicyListener continue]):
635         * WebView/WebPolicyDelegate.mm:
636         (-[WebPolicyDecisionListener use]):
637         (-[WebPolicyDecisionListener ignore]):
638         (-[WebPolicyDecisionListener download]):
639
640 2017-09-25  Frederik Riedel  <riedel@apple.com>
641
642         Expose way to set values of classified form controls as {Legacy WebKit, WebKit} SPI
643         https://bugs.webkit.org/show_bug.cgi?id=174394
644         <rdar://problem/33183504>
645
646         Reviewed by Ryosuke Niwa.
647
648         * DOM/DOMHTMLInputElement.h:
649         * DOM/DOMHTMLInputElement.mm:
650         (-[DOMHTMLInputElement acceptsAutofilledLoginCredentials]):
651         Determines if this HTMLInputElement is part of a login screen.
652         (-[DOMHTMLInputElement representingPageUrl]):
653         Returns the webpage's URL that is currently displayed in the Web View.
654         (-[DOMHTMLInputElement insertTextSuggestion:]):
655         Inserts login credentials into the Web View.
656
657 2017-09-25  Sam Weinig  <sam@webkit.org>
658
659         Remove unused EditorClient functions
660         https://bugs.webkit.org/show_bug.cgi?id=177463
661
662         Reviewed by Alex Christensen.
663
664         Remove unused EditorClient functions.
665
666         * WebCoreSupport/WebEditorClient.h:
667         * WebCoreSupport/WebEditorClient.mm:
668         (WebEditorClient::canonicalizeURL): Deleted.
669         (WebEditorClient::canonicalizeURLString): Deleted.
670         (WebEditorClient::writeDataToPasteboard): Deleted.
671         (WebEditorClient::supportedPasteboardTypesForCurrentSelection): Deleted.
672         (WebEditorClient::readDataFromPasteboard): Deleted.
673         (WebEditorClient::pasteboardChangeCount): Deleted.
674
675 2017-09-25  Alex Christensen  <achristensen@webkit.org>
676
677         Stop using PolicyCallback
678         https://bugs.webkit.org/show_bug.cgi?id=176088
679
680         Reviewed by Andy Estes.
681
682         * WebCoreSupport/WebFrameLoaderClient.mm:
683         (-[WebFramePolicyListener invalidate]):
684         (-[WebFramePolicyListener receivedPolicyDecision:]):
685
686 2017-09-25  Sam Weinig  <sam@webkit.org>
687
688         Remove unnecessary userVisibleString EditorClient function
689         https://bugs.webkit.org/show_bug.cgi?id=177456
690
691         Reviewed by Dan Bernstein.
692
693         * WebCoreSupport/WebEditorClient.h:
694         * WebCoreSupport/WebEditorClient.mm:
695         (WebEditorClient::userVisibleString): Deleted.
696
697             Remove userVisibleString client function.
698
699 2017-09-25  Alex Christensen  <achristensen@webkit.org>
700
701         Separate form submission from PolicyChecker infrastructure
702         https://bugs.webkit.org/show_bug.cgi?id=177396
703
704         Reviewed by Geoffrey Garen.
705
706         * WebCoreSupport/WebFrameLoaderClient.h:
707         * WebCoreSupport/WebFrameLoaderClient.mm:
708         (WebFrameLoaderClient::dispatchWillSubmitForm):
709
710 2017-09-22  Zalan Bujtas  <zalan@apple.com>
711
712         WeakPtrFactory should populate m_ref lazily.
713         https://bugs.webkit.org/show_bug.cgi?id=177375
714
715         Reviewed by Geoffrey Garen.
716
717         * WebCoreSupport/WebEditorClient.mm:
718         (WebEditorClient::WebEditorClient):
719         (WebEditorClient::requestCandidatesForSelection):
720
721 2017-09-22  Chris Dumez  <cdumez@apple.com>
722
723         Use high resolution timestamp for event time
724         https://bugs.webkit.org/show_bug.cgi?id=154246
725         <rdar://problem/34333304>
726
727         Reviewed by Ryosuke Niwa.
728
729         Use WallTime / MonotonicTime instead of double type for clarity.
730
731         * DOM/DOMEvent.mm:
732         (-[DOMEvent timeStamp]):
733         * WebView/WebFrame.mm:
734         (-[WebFrame _dragSourceEndedAt:operation:]):
735         * WebView/WebPDFView.mm:
736         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
737
738 2017-09-21  Ryosuke Niwa  <rniwa@webkit.org>
739
740         Enable dataTransfer.items on macOS and iOS
741         https://bugs.webkit.org/show_bug.cgi?id=177335
742
743         Reviewed by Sam Weinig.
744
745         * WebView/WebPreferences.mm:
746         (+[WebPreferences initialize]):
747
748 2017-09-20  Joseph Pecoraro  <pecoraro@apple.com>
749
750         Web Inspector: WebView indication highlights sticks around for WebKitLegacy views
751         https://bugs.webkit.org/show_bug.cgi?id=177101
752         <rdar://problem/34500648>
753
754         Reviewed by Brian Burg.
755
756         * WebInspector/WebNodeHighlight.mm:
757         Ensure we close the window that we have just removed.
758
759 2017-09-20  Antti Koivisto  <antti@apple.com>
760
761         Remove DOM and styling support for CSS Regions
762         https://bugs.webkit.org/show_bug.cgi?id=177221
763
764         Reviewed by Andreas Kling.
765
766         * Configurations/FeatureDefines.xcconfig:
767         * DOM/DOMCSS.mm:
768         (kitClass):
769         * DOM/DOMElement.mm:
770         (-[DOMElement webkitRegionOverset]): Deleted.
771
772 2017-09-19  Alexey Proskuryakov  <ap@apple.com>
773
774         Layering violation in Editor::createFragment
775         https://bugs.webkit.org/show_bug.cgi?id=176123
776
777         Reviewed by Darin Adler.
778
779         * Misc/WebNSURLExtras.h:
780         * Misc/WebNSURLExtras.mm:
781         * WebView/WebFrame.mm:
782         * WebView/WebHTMLView.mm:
783         Removed multiple copies of webkit-fake-url creation code, switching to URL::fakeURLWithRelativePart().
784
785         * WebCoreSupport/WebEditorClient.mm:
786         (_WebCreateFragment): Added a stub implementation for older OSes. This is needed
787         because WebKitLegacy.exp is not passed through preprocessor, so there is no sane
788         way to avoid exporting the symbol just on newer OSes.
789
790 2017-09-19  Ryosuke Niwa  <rniwa@webkit.org>
791
792         On iOS, getData can't get text set by setData during copy event
793         https://bugs.webkit.org/show_bug.cgi?id=176980
794         <rdar://problem/34453915>
795
796         Reviewed by Darin Adler.
797
798         * WebCoreSupport/WebPlatformStrategies.h:
799         * WebCoreSupport/WebPlatformStrategies.mm:
800         (WebPlatformStrategies::copy): Deleted.
801
802 2017-09-18  Andy Estes  <aestes@apple.com>
803
804         [Mac] Upstream miscellaneous WebKitSystemInterface functions
805         https://bugs.webkit.org/show_bug.cgi?id=177029
806
807         Reviewed by Alex Christensen.
808
809         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
810         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
811         * Plugins/Hosted/NetscapePluginHostProxy.mm:
812         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
813         * WebCoreSupport/PopupMenuMac.mm:
814         (PopupMenuMac::show):
815         * WebCoreSupport/WebSystemInterface.mm:
816         (InitWebCoreSystemInterface):
817         * WebView/WebHTMLView.mm:
818         (-[WebHTMLView setDataSource:]):
819         (-[WebHTMLView attachRootLayer:]):
820         * WebView/WebView.mm:
821         (-[WebView _needsAdobeFrameReloadingQuirk]):
822         (-[WebView _needsLinkElementTextCSSQuirk]):
823         (-[WebView _needsIsLoadingInAPISenseQuirk]):
824         (-[WebView _needsFrameLoadDelegateRetainQuirk]):
825         (-[WebView _preferencesChanged:]):
826
827 2017-09-15  Andy Estes  <aestes@apple.com>
828
829         [Cocoa] Upstream MediaRemote and VideoToolbox WebKitSystemInterface functions
830         https://bugs.webkit.org/show_bug.cgi?id=176953
831
832         Reviewed by Eric Carlson.
833
834         * WebCoreSupport/WebSystemInterface.mm:
835         (InitWebCoreSystemInterface):
836
837 2017-09-14  Andy Estes  <aestes@apple.com>
838
839         [Mac] Upstream SpeechSynthesis-related WebKitSystemInterface functions
840         https://bugs.webkit.org/show_bug.cgi?id=176931
841
842         Reviewed by Joseph Pecoraro.
843
844         * WebCoreSupport/WebSystemInterface.mm:
845         (InitWebCoreSystemInterface):
846
847 2017-09-14  Yusuke Suzuki  <utatane.tea@gmail.com>
848
849         [JSC] Add PrivateSymbolMode::{Include,Exclude} for PropertyNameArray
850         https://bugs.webkit.org/show_bug.cgi?id=176867
851
852         Reviewed by Sam Weinig.
853
854         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
855         (WebKit::NetscapePluginInstanceProxy::enumerate):
856
857 2017-09-13  Andy Estes  <aestes@apple.com>
858
859         [CF] Upstream CFNetwork-related WebKitSystemInterface functions
860         https://bugs.webkit.org/show_bug.cgi?id=176729
861
862         Reviewed by Alex Christensen.
863
864         * WebCoreSupport/WebSystemInterface.mm:
865         (InitWebCoreSystemInterface):
866         * WebView/WebView.mm:
867         (+[WebView _setCacheModel:]):
868
869 2017-09-13  Ryosuke Niwa  <rniwa@webkit.org>
870
871         Refactor WebContentReader out of EditorMac and EditorIOS
872         https://bugs.webkit.org/show_bug.cgi?id=176770
873
874         Reviewed by Sam Weinig.
875
876         * WebCoreSupport/WebEditorClient.mm:
877
878 2017-09-12  Ryosuke Niwa  <rniwa@webkit.org>
879
880         Dragging & dropping a file creates an attachment element even when it's disabled
881         https://bugs.webkit.org/show_bug.cgi?id=176769
882
883         Reviewed by Tim Horton.
884
885         * WebView/WebView.mm:
886         (-[WebView _preferencesChanged:]):
887
888 2017-09-11  Wenson Hsieh  <wenson_hsieh@apple.com>
889
890         [iOS DnD] Support DataTransfer.setDragImage when starting a drag on iOS
891         https://bugs.webkit.org/show_bug.cgi?id=176721
892         <rdar://problem/34373660>
893
894         Reviewed by Tim Horton.
895
896         Rename elementBounds => dragPreviewFrameInRootViewCoordinates. (Note: Unfortunately, _draggedElementBounds in
897         WebViewPrivate.h can't be renamed yet, due to binary and SDK compatibility with UIKit).
898
899         * WebView/WebView.mm:
900         (-[WebView _startDrag:]):
901         (-[WebView _draggedElementBounds]):
902         (-[WebView _endedDataInteraction:global:]):
903         * WebView/WebViewData.h:
904
905 2017-09-11  Andy Estes  <aestes@apple.com>
906
907         [Mac] Upstream QTKit-related WebKitSystemInterface functions
908         https://bugs.webkit.org/show_bug.cgi?id=176472
909
910         Reviewed by Eric Carlson.
911
912         * WebCoreSupport/WebSystemInterface.mm:
913         (InitWebCoreSystemInterface):
914
915 2017-09-09  Mark Lam  <mark.lam@apple.com>
916
917         Avoid duplicate computations of ExecState::vm().
918         https://bugs.webkit.org/show_bug.cgi?id=176647
919
920         Reviewed by Saam Barati.
921
922         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
923         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
924         (WebKit::NetscapePluginInstanceProxy::construct):
925         (WebKit::NetscapePluginInstanceProxy::setProperty):
926         (WebKit::NetscapePluginInstanceProxy::removeProperty):
927         (WebKit::NetscapePluginInstanceProxy::enumerate):
928         * Plugins/Hosted/ProxyInstance.mm:
929         (WebKit::ProxyRuntimeMethod::create):
930
931 2017-09-08  Commit Queue  <commit-queue@webkit.org>
932
933         Unreviewed, rolling out r221773.
934         https://bugs.webkit.org/show_bug.cgi?id=176614
935
936         This caused build failures. (Requested by mlewis13 on
937         #webkit).
938
939         Reverted changeset:
940
941         "[Mac] Upstream QTKit-related WebKitSystemInterface functions"
942         https://bugs.webkit.org/show_bug.cgi?id=176472
943         http://trac.webkit.org/changeset/221773
944
945 2017-09-07  Andy Estes  <aestes@apple.com>
946
947         [Mac] Upstream QTKit-related WebKitSystemInterface functions
948         https://bugs.webkit.org/show_bug.cgi?id=176472
949
950         Reviewed by Eric Carlson.
951
952         * WebCoreSupport/WebSystemInterface.mm:
953         (InitWebCoreSystemInterface):
954
955 2017-09-07  Myles C. Maxfield  <mmaxfield@apple.com>
956
957         [PAL] Unify PlatformUserPreferredLanguages.h with Language.h
958         https://bugs.webkit.org/show_bug.cgi?id=176561
959
960         Reviewed by Brent Fulgham.
961
962         * Misc/WebNSUserDefaultsExtras.mm:
963
964 2017-09-07  Alex Christensen  <achristensen@webkit.org>
965
966         Modernize Geolocation code
967         https://bugs.webkit.org/show_bug.cgi?id=176496
968
969         Reviewed by Andy Estes.
970
971         * WebCoreSupport/WebGeolocationClient.h:
972         * WebCoreSupport/WebGeolocationClient.mm:
973         (WebGeolocationClient::requestPermission):
974         (-[WebGeolocationPolicyListener initWithGeolocation:]):
975         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
976         (-[WebGeolocationProviderInitializationListener initWithGeolocation:]):
977         * WebView/WebView.mm:
978         (-[WebView _commonInitializationWithFrameName:groupName:]):
979         (-[WebView _geolocationDidFailWithMessage:]):
980
981 2017-09-05  Tim Horton  <timothy_horton@apple.com>
982
983         Remove some unused bits of code and resources
984         https://bugs.webkit.org/show_bug.cgi?id=176275
985
986         Reviewed by Dan Bernstein.
987
988         * Misc/WebNSFileManagerExtras.mm:
989         Include FileSystem instead of FileSystemIOS.
990
991 2017-09-03  Darin Adler  <darin@apple.com>
992
993         [Cocoa] Tidy a few things in legacy WebHTMLView
994         https://bugs.webkit.org/show_bug.cgi?id=176280
995
996         Reviewed by Dan Bernstein.
997
998         * WebCoreSupport/WebChromeClient.mm:
999         (WebChromeClient::attachRootGraphicsLayer): Made this function Mac-only, because the
1000         methods it calls on WebHTMLView were doing nothing on iOS.
1001
1002         * WebView/WebFrame.mm:
1003         (-[WebFrame _paintBehaviorForDestinationContext:]): Changed iOS code so that it no longer
1004         depends on -[WebHTMLView _web_isDrawingIntoLayer], which always returned YES on iOS.
1005
1006         * WebView/WebHTMLView.mm: Define WebEvent on both iOS and Mac so more event handling
1007         code can be shared without #if below. Use #if PLATFORM(MAC) instead of #if !PLATFORM(IOS)
1008         in a lot more places. Move many of the SPI declarations up to the top in alphabetical
1009         order. Removed all sorts of unused things. Made more code and fields Mac-only where
1010         what was compiled was doing nothing on iOS and it makes the resulting code simpler.
1011         Use RetainPtr instead of writing retain/release wherever possible.
1012         (+[WebMenuTarget sharedMenuTarget]): Moved global inside this method and used C++
1013         initialization for it. Removed various unused methods and declarations of methods.
1014         (promisedDataClient): Use NeverDestroyed instead of just doing a "new" on the heap.
1015         (-[WebHTMLView _imageExistsAtPaths:]): Deleted.
1016         (-[WebHTMLView _documentFragmentWithPaths:]): Use RetainPtr and modern for loop.
1017         (+[WebHTMLView _excludedElementsForAttributedStringConversion]): Use C++ initialization,
1018         and remove CFRetain no longer needed since we don't support garbage collection any more.
1019         (uniqueURLWithRelativePart): Simplified using [NSUUID UUID].
1020         (-[WebHTMLView _plainTextFromPasteboard:]): Simplified with RetainPtr.
1021         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Ditto.
1022         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Ditto.
1023         (-[WebHTMLView _removeWindowObservers]): Removed code dealing with empty
1024         methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
1025         (-[WebHTMLView _shouldDeleteRange:]): Deleted. Was unused.
1026         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1027         Simplified with stringByReplacingOccurrencesOfString and modern string literal syntax.
1028         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
1029         (-[WebHTMLView _web_setPrintingModeRecursive:adjustViewSize:]): Added. Helper method so
1030         the next three methhods can be super-simple. Used RetainPtr and a modern for loop to make
1031         this method simpler than the functions it replaced. Also got rid of the enumeratingSubviews
1032         debug flag; we haven't used it for years and it's not clearly helpful.
1033         (-[WebHTMLView _web_setPrintingModeRecursive]): Turned into a one-liner with the above.
1034         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
1035         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
1036         (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]): Moved from the
1037         WebInternal category to the WebHTMLViewFileInternal category so it can be called by
1038         two additional methods in the WebPrivate category and still be called by the two
1039         methods in the WebInternal category that were already using it.
1040         (-[WebHTMLView didAddSubview:]): Deleted.
1041         (-[WebHTMLView _insideAnotherHTMLView]): Deleted.
1042         (-[WebHTMLView _clearLastHitViewIfSelf]): Deleted. Inlined the implementation in the one
1043         place this was called, the close method.
1044         (-[WebHTMLView _setToolTip:]): Simplified with RetainPtr.
1045         (-[WebHTMLView pasteboard:provideDataForType:]): Ditto.
1046         (-[WebHTMLView _autoscroll]): Simplified by making this Mac-only.
1047         (-[WebHTMLView _hasHTMLDocument]): Deleted. The one caller was removed a long time ago.
1048         (-[WebHTMLView _web_documentFragmentFromPasteboard:pasteboardType:imageMIMEType:]):
1049         Added helper method to make the one below simpler.
1050         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1051         Compared pasteboard type strings using isEqualToString: rather than using == since
1052         we want to actually compare the string contents. Also updated to use modern for loop,
1053         renamed a local variable from "s" to "localSubresources", and factored out the handling
1054         of three image types to use the helper method above.
1055         (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Rewrite using the
1056         _web_makePluginSubviewsPerformSelector:withObject: method.
1057         (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
1058         (-[NSView _web_addDescendentWebHTMLViewsToArray:]): Fixed spelling to use the adjective
1059         "descendent" rather than the noun "descendant". Also removed Mac-only optimization to
1060         not call the -[NSView subviews] method to make this identical on both platforms and used
1061         a modern for loop.
1062         (-[NSMutableDictionary _web_setObjectIfNotNil:forKey:]): Deleted.
1063         (-[WebHTMLView acceptsFirstResponder]): Reduced amount of platform-specific code by
1064         defining WebEventMouseDown as a synonym for NSEventTypeLeftMouseDown on Mac.
1065         (-[WebHTMLView addWindowObservers]): Removed code dealing with empty
1066         methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
1067         (-[WebHTMLView willRemoveSubview:]): Removed the enumeratingSubviews check.
1068         (-[WebHTMLView drawSingleRect:]): Rearranged this method to make it clearer that most
1069         of it is Mac-only.
1070         (-[WebHTMLView windowWillOrderOnScreen:]): Deleted. All the current version of this
1071         method did was call itself on the main thread, and do nothing if called on main thread.
1072         (-[WebHTMLView windowWillOrderOffScreen:]): Deleted. Ditto.
1073         (-[WebHTMLView _isSelectionEvent:]): Merged macOS and iOS versions.
1074         (-[WebHTMLView resignFirstResponder]): Removed iOS-specific code in the macOS-specific
1075         half of this method.
1076         (-[WebHTMLView setDataSource:]): Simplified using RetainPtr.
1077         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
1078         Simplified using a modern for loop and RetainPtr.
1079         (-[WebHTMLView knowsPageRange:]): Simplified using RetainPtr.
1080         (-[WebHTMLView keyDown:]): Ditto.
1081         (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Ditto.
1082         (-[WebHTMLView performKeyEquivalent:]): Ditto.
1083         (-[WebHTMLView _styleForAttributeChange:]): Ditto.
1084         (-[WebHTMLView complete:]): Ditto.
1085         (-[WebHTMLView _windowChangedKeyState]): Removed iOS-specific code since this method is
1086         now macOS-only.
1087         (-[WebHTMLView _selectionChanged]): Removed call to _updateSelectionForInputManager on
1088         iOS since that is now macOS-only.
1089         (-[WebHTMLView promisedDragTIFFDataSource]): Deleted.
1090         (-[WebHTMLView _startAutoscrollTimer:]): Moved this into an internal category instead of
1091         a private one because it is not used or needed outside WebKit. Also made it macOS-only
1092         and reorganized to use early return.
1093         (-[WebHTMLView _stopAutoscrollTimer]): Moved into internal category. It remains a no-op
1094         on iOS, but kept there so we don't have to do #if at every call site.
1095         (-[WebHTMLView _pluginController]): Moved into internal category.
1096         (-[WebHTMLView validAttributesForMarkedText]): Simplified by removing CFRetain that was
1097         there only for GC, using C++ initialization, removing obsolete comment.
1098         (-[WebHTMLView _updateSelectionForInputManager]): Made this macOS-only and removed
1099         peculiar iOS-only comment.
1100         (+[NSURL _web_uniqueWebDataURL]): Simplified using [NSUUID UUID].
1101
1102         * WebView/WebHTMLViewInternal.h: Removed unused promisedDragTIFFDataSource method.
1103         Made attachRootLayer:, detachRootLayer, _web_isDrawingIntoLayer,
1104         _web_isDrawingIntoAcceleratedLayer all macOS-only. Moved _startAutoscrollTimer:,
1105         _stopAutoscrollTimer, and _pluginController here from SPI header since they aren't
1106         needed or used as SPI. And made _startAutoscrollTimer macOS-only.
1107
1108         * WebView/WebHTMLViewPrivate.h: Removed unneeded and unused SPI: _insideAnotherHTMLView,
1109         _clearLastHitViewIfSelf, _pluginController, _startAutoscrollTimer:, and _stopAutoscrollTimer.
1110         Made _transparentBackground and _setTransparentBackground: macOS-only. These probably
1111         are not needed on macOS either, but I wasn't able to make absolutely sure I could remove
1112         them at this time.
1113
1114 2017-09-03  Sam Weinig  <sam@webkit.org>
1115
1116         Remove CanvasProxy
1117         https://bugs.webkit.org/show_bug.cgi?id=176288
1118
1119         Reviewed by Yusuke Suzuki.
1120
1121         CanvasProxy does not appear to be in any current HTML spec
1122         and was disabled and unimplemented in our tree. Time to 
1123         get rid of it.
1124
1125         * Configurations/FeatureDefines.xcconfig:
1126
1127 2017-09-02  Andy Estes  <aestes@apple.com>
1128
1129         [CA] Upstream QuartzCore-related WebKitSystemInterface functions
1130         https://bugs.webkit.org/show_bug.cgi?id=176270
1131
1132         Reviewed by Tim Horton.
1133
1134         * Plugins/Hosted/NetscapePluginHostManager.mm:
1135         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1136         * Plugins/Hosted/WebHostedNetscapePluginView.h:
1137         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1138         (WebKit::SoftwareCARenderer::SoftwareCARenderer):
1139         (WebKit::SoftwareCARenderer::~SoftwareCARenderer):
1140         (WebKit::SoftwareCARenderer::context const):
1141         (WebKit::SoftwareCARenderer::renderContext const):
1142         (WebKit::SoftwareCARenderer::render):
1143         (-[WebHostedNetscapePluginView createPlugin]):
1144         (-[WebHostedNetscapePluginView createPluginLayer]):
1145         (-[WebHostedNetscapePluginView destroyPlugin]):
1146         (-[WebHostedNetscapePluginView drawRect:]):
1147         * WebCoreSupport/WebSystemInterface.mm:
1148         (InitWebCoreSystemInterface):
1149
1150 2017-09-01  Andy Estes  <aestes@apple.com>
1151
1152         [CG] Upstream CoreGraphics-related WebKitSystemInterface functions
1153         https://bugs.webkit.org/show_bug.cgi?id=176200
1154
1155         Reviewed by Tim Horton.
1156
1157         * Carbon/HIWebView.mm:
1158         (-[NSWindowGraphicsContext _web_setGraphicsPort:]):
1159         (overrideCGContext):
1160         (restoreCGContext):
1161         (Draw):
1162         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1163         (+[WebHostedNetscapePluginView initialize]):
1164         * Plugins/WebBaseNetscapePluginView.h:
1165         * Plugins/WebBaseNetscapePluginView.mm:
1166         (WebKit::sendUserChangeNotifications):
1167         * Plugins/WebNetscapePluginView.mm:
1168         (+[WebNetscapePluginView initialize]):
1169         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1170         * WebCoreSupport/WebSystemInterface.mm:
1171         (InitWebCoreSystemInterface):
1172         * WebView/WebFrame.mm:
1173         (-[WebFrame _paintBehaviorForDestinationContext:]):
1174         * WebView/WebFullScreenController.mm:
1175         (setClipRectForWindow):
1176         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
1177         (-[WebFullScreenController finishedExitFullScreenAnimation:]):
1178         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
1179         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
1180
1181 2017-08-31  Andy Estes  <aestes@apple.com>
1182
1183         [Mac] Upstream AppKit-related WebKitSystemInterface functions
1184         https://bugs.webkit.org/show_bug.cgi?id=176175
1185
1186         Reviewed by Brady Eidson.
1187
1188         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1189         (WebKit::NetscapePluginInstanceProxy::keyEvent):
1190         * Plugins/Hosted/WebTextInputWindowController.m:
1191         (-[WebTextInputPanel init]):
1192         * WebCoreSupport/WebSystemInterface.mm:
1193         (InitWebCoreSystemInterface):
1194         * WebView/WebDynamicScrollBarsView.mm:
1195         (-[WebDynamicScrollBarsView scrollWheel:]):
1196         * WebView/WebHTMLView.mm:
1197         (-[WebHTMLView _removeWindowObservers]):
1198         (-[WebHTMLView addWindowObservers]):
1199         * WebView/WebView.mm:
1200         (-[WebView addWindowObserversForWindow:]):
1201         (-[WebView removeWindowObservers]):
1202         (-[WebView viewWillMoveToWindow:]):
1203
1204 2017-08-31  Alex Christensen  <achristensen@webkit.org>
1205
1206         Add ObjC SPI corresponding to WKPageLoaderClient's webGLLoadPolicy and resolveWebGLLoadPolicy
1207         https://bugs.webkit.org/show_bug.cgi?id=175779
1208         <rdar://problem/22367975>
1209
1210         Reviewed by Tim Horton.
1211
1212         * WebCoreSupport/WebFrameLoaderClient.h:
1213         * WebCoreSupport/WebFrameLoaderClient.mm:
1214         (WebFrameLoaderClient::webGLPolicyForURL const):
1215         (WebFrameLoaderClient::resolveWebGLPolicyForURL const):
1216
1217 2017-08-30  Andy Estes  <aestes@apple.com>
1218
1219         [Mac] Upstream Accessibility-related WebKitSystemInterface functions
1220         https://bugs.webkit.org/show_bug.cgi?id=176093
1221
1222         Reviewed by Eric Carlson.
1223
1224         * WebCoreSupport/WebSystemInterface.mm:
1225         (InitWebCoreSystemInterface):
1226
1227 2017-08-30  Andy Estes  <aestes@apple.com>
1228
1229         [Mac] Upstream Carbon-related WebKitSystemInterface functions
1230         https://bugs.webkit.org/show_bug.cgi?id=176087
1231
1232         Reviewed by Alex Christensen.
1233
1234         * Carbon/CarbonUtils.m:
1235         (getNSAutoreleasePoolCount):
1236         (WebInitForCarbon):
1237         (PoolCleaner):
1238         * Carbon/CarbonWindowAdapter.mm:
1239         (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
1240         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1241         (-[CarbonWindowAdapter _oldPlaceWindow:]):
1242         (-[CarbonWindowAdapter _windowMovedToRect:]):
1243         * Carbon/HIViewAdapter.m:
1244         * Carbon/HIWebView.mm:
1245         (Draw):
1246         (CreateNSEventAdoptingCGEvent):
1247         (CopyEventCGEvent):
1248         (CreateNSEventWithCarbonClickEvent):
1249         (Click):
1250         (CreateNSEventWithCarbonEvent):
1251         (MouseUp):
1252         (CreateNSEventWithCarbonMouseMoveEvent):
1253         (MouseMoved):
1254         (MouseDragged):
1255         (MouseWheelMoved):
1256         (WindowHandler):
1257         (HIWebViewEventHandler):
1258         * Misc/QuickDrawCompatibility.h: Removed.
1259         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1260         (getCarbonEvent):
1261         (WebNetscapePluginEventHandlerCarbon::keyDown):
1262         (WebNetscapePluginEventHandlerCarbon::keyUp):
1263         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1264         (WebNetscapePluginEventHandlerCocoa::keyDown):
1265         * Plugins/WebNetscapePluginView.mm:
1266         (-[WebNetscapePluginView tellQuickTimeToChill]):
1267
1268 2017-08-29  Andy Estes  <aestes@apple.com>
1269
1270         [Mac] Upstream WKSetMetadataURL() from WebKitSystemInterface
1271         https://bugs.webkit.org/show_bug.cgi?id=176046
1272
1273         Reviewed by Alex Christensen.
1274
1275         Removed the pthread logic from -_webkit_setMetadataURL:referrer:atPath: and replaced with
1276         WebCore::setMetadataURL(), which uses dispatch_async() for the same purpose as the pthread.
1277
1278         * Misc/WebNSFileManagerExtras.mm:
1279         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
1280         (setMetaData): Deleted.
1281         * WebCoreSupport/WebSystemInterface.mm:
1282         (InitWebCoreSystemInterface):
1283
1284 2017-08-28  Andy Estes  <aestes@apple.com>
1285
1286         [Cocoa] Upstream WKGetWebDefaultCFStringEncoding()
1287         https://bugs.webkit.org/show_bug.cgi?id=176039
1288
1289         Reviewed by Alex Christensen.
1290
1291         * WebCoreSupport/WebSystemInterface.mm:
1292         (InitWebCoreSystemInterface):
1293         * WebView/WebPreferences.mm:
1294         (+[WebPreferences _systemCFStringEncoding]):
1295
1296 2017-08-28  Andy Estes  <aestes@apple.com>
1297
1298         [Cocoa] Upstream CFNetwork-related WebKitSystemInterface functions
1299         https://bugs.webkit.org/show_bug.cgi?id=176032
1300
1301         Reviewed by Alex Christensen.
1302
1303         * WebCoreSupport/WebSystemInterface.mm:
1304         (InitWebCoreSystemInterface):
1305         * WebView/WebView.mm:
1306         (-[WebView _cachedResponseForURL:]):
1307
1308 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
1309
1310         Disable access to secure cookies if an HTTPS site loads mixed content (Part 2: Header Requests)
1311         https://bugs.webkit.org/show_bug.cgi?id=175992
1312         <rdar://problem/34086613>
1313
1314         Reviewed by Daniel Bates.
1315
1316         * WebCoreSupport/WebPlatformStrategies.h:
1317         * WebCoreSupport/WebPlatformStrategies.mm:
1318         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Modify to accept a flag indicating if secure
1319         cookies should be included, and return a pair containing the resulting cookie string and a boolean
1320         indicating if secure cookies were accessed.
1321
1322 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1323
1324         Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.
1325         https://bugs.webkit.org/show_bug.cgi?id=170955
1326         <rdar://problem/31697653>
1327
1328         Reviewed by Ryosuke Niwa.
1329
1330         Tweak -insertText: to pass TextEventInputAutocompletion to Editor::insertText when inserting text, if existing
1331         text is being replaced.
1332
1333         * WebView/WebHTMLView.mm:
1334         (-[WebHTMLView insertText:]):
1335
1336 2017-08-24  Chris Dumez  <cdumez@apple.com>
1337
1338         [Directory Upload] Add basic support for input.webkitdirectory
1339         https://bugs.webkit.org/show_bug.cgi?id=175950
1340         <rdar://problem/33951915>
1341
1342         Reviewed by Geoffrey Garen.
1343
1344         Add private API to toggle Directory Upload support on Mac WebKit1.
1345
1346         * WebView/WebPreferenceKeysPrivate.h:
1347         * WebView/WebPreferences.mm:
1348         (+[WebPreferences initialize]):
1349         (-[WebPreferences setDirectoryUploadEnabled:]):
1350         (-[WebPreferences directoryUploadEnabled]):
1351         * WebView/WebPreferencesPrivate.h:
1352         * WebView/WebView.mm:
1353         (-[WebView _preferencesChanged:]):
1354
1355 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
1356
1357         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
1358         https://bugs.webkit.org/show_bug.cgi?id=175370
1359         <rdar://problem/33799806>
1360
1361         Reviewed by Ryosuke Niwa.
1362
1363         Adjust WebEditorClient for interface changes.
1364
1365         * WebCoreSupport/WebEditorClient.h:
1366
1367 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1368
1369         Remove ChromeClient::scrollbarsModeDidChange
1370         https://bugs.webkit.org/show_bug.cgi?id=175805
1371
1372         Reviewed by Daniel Bates.
1373
1374         * WebCoreSupport/WebChromeClient.h:
1375
1376 2017-08-22  Alex Christensen  <achristensen@webkit.org>
1377
1378         Remove ChromeClient::hasOpenedPopup
1379         https://bugs.webkit.org/show_bug.cgi?id=175804
1380
1381         Reviewed by Sam Weinig.
1382
1383         * WebCoreSupport/WebChromeClient.h:
1384         * WebCoreSupport/WebChromeClient.mm:
1385         (WebChromeClient::hasOpenedPopup const): Deleted.
1386
1387 2017-08-22  Brent Fulgham  <bfulgham@apple.com> and Pranjal Jumde  <pjumde@apple.com>
1388
1389         Disable access to secure cookies if an HTTPS site loads mixed content
1390         https://bugs.webkit.org/show_bug.cgi?id=157053
1391         <rdar://problem/11290808>
1392
1393         Reviewed by Dan Bates.
1394
1395         * WebCoreSupport/WebPlatformStrategies.h:
1396         * WebCoreSupport/WebPlatformStrategies.mm:
1397         (WebPlatformStrategies::cookiesForDOM): Check and return whether secure cookies were accessed. Accept a new argument
1398         indicating whether secure cookies should be included in the response.
1399
1400 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
1401
1402         [PAL] Move spi/mac directory into PAL
1403         https://bugs.webkit.org/show_bug.cgi?id=175649
1404
1405         Reviewed by Myles C. Maxfield.
1406
1407         * Misc/WebSharingServicePickerController.h:
1408         * WebCoreSupport/WebContextMenuClient.mm:
1409         * WebCoreSupport/WebEditorClient.mm:
1410         * WebCoreSupport/WebSelectionServiceController.mm:
1411         * WebView/WebHTMLView.mm:
1412         * WebView/WebImmediateActionController.h:
1413         * WebView/WebImmediateActionController.mm:
1414         * WebView/WebView.mm:
1415
1416 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
1417
1418         [PAL] Relocate SessionID to root
1419         https://bugs.webkit.org/show_bug.cgi?id=175684
1420
1421         Reviewed by Alex Christensen.
1422
1423         * WebCoreSupport/WebFrameNetworkingContext.mm:
1424
1425 2017-08-17  Andreas Kling  <akling@apple.com>
1426
1427         Disable CSS regions at compile time
1428         https://bugs.webkit.org/show_bug.cgi?id=175630
1429
1430         Reviewed by Antti Koivisto.
1431
1432         * Configurations/FeatureDefines.xcconfig:
1433
1434 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
1435
1436         [PAL] Move SessionID into PAL
1437         https://bugs.webkit.org/show_bug.cgi?id=174192
1438
1439         Reviewed by Antti Koivisto.
1440
1441         * Misc/WebCache.mm:
1442         (+[WebCache imageForURL:]):
1443         * WebCoreSupport/WebFrameLoaderClient.h:
1444         * WebCoreSupport/WebFrameLoaderClient.mm:
1445         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1446         * WebCoreSupport/WebFrameNetworkingContext.mm:
1447         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1448         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
1449         (WebFrameNetworkingContext::storageSession const):
1450         * WebCoreSupport/WebPlatformStrategies.h:
1451         * WebCoreSupport/WebPlatformStrategies.mm:
1452         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1453         * WebKitPrefix.h:
1454
1455 2017-08-16  Andy Estes  <aestes@apple.com>
1456
1457         [Apple Pay] Rename PaymentRequest to ApplePaySessionPaymentRequest
1458         https://bugs.webkit.org/show_bug.cgi?id=175648
1459
1460         Reviewed by Tim Horton.
1461
1462         * WebCoreSupport/WebPaymentCoordinatorClient.h:
1463         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
1464         (WebPaymentCoordinatorClient::showPaymentUI):
1465
1466 2017-08-16  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
1467
1468         [PAL] Move spi/ios and spi/win directories into PAL
1469         https://bugs.webkit.org/show_bug.cgi?id=175171
1470
1471         Reviewed by Antti Koivisto.
1472
1473         * WebCoreSupport/WebFrameLoaderClient.mm:
1474         * WebView/WebView.mm:
1475
1476 2017-08-16  Andy Estes  <aestes@apple.com>
1477
1478         [Payment Request] Add an ENABLE flag and an experimental feature preference
1479         https://bugs.webkit.org/show_bug.cgi?id=175622
1480
1481         Reviewed by Tim Horton.
1482
1483         * Configurations/FeatureDefines.xcconfig:
1484
1485 2017-08-15  Don Olmstead  <don.olmstead@sony.com>
1486
1487         [PAL] Move Sleep classes into PAL
1488         https://bugs.webkit.org/show_bug.cgi?id=175456
1489
1490         Reviewed by Ryosuke Niwa.
1491
1492         * WebView/WebFullScreenController.h:
1493
1494 2017-08-15  Youenn Fablet  <youenn@apple.com>
1495
1496         [Cache API] Adding generic support for CacheStorage and Cache methods
1497         https://bugs.webkit.org/show_bug.cgi?id=175455
1498
1499         Reviewed by Chris Dumez.
1500
1501         * WebView/WebView.mm:
1502         (-[WebView _commonInitializationWithFrameName:groupName:]):
1503
1504 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
1505
1506         Remove Proximity Events and related code
1507         https://bugs.webkit.org/show_bug.cgi?id=175545
1508
1509         Reviewed by Daniel Bates.
1510
1511         No platform enables Proximity Events, so remove code inside ENABLE(PROXIMITY_EVENTS)
1512         and other related code.
1513
1514         * Configurations/FeatureDefines.xcconfig:
1515
1516 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
1517
1518         Remove ENABLE(REQUEST_AUTOCOMPLETE) code, which was disabled everywhere
1519         https://bugs.webkit.org/show_bug.cgi?id=175504
1520
1521         Reviewed by Sam Weinig.
1522
1523         * Configurations/FeatureDefines.xcconfig:
1524         * DOM/DOMHTMLFormElement.mm:
1525         (-[DOMHTMLFormElement requestAutocomplete]): Deleted.
1526         * WebCoreSupport/WebFrameLoaderClient.h:
1527
1528 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
1529
1530         Remove ENABLE_VIEW_MODE_CSS_MEDIA and related code
1531         https://bugs.webkit.org/show_bug.cgi?id=175557
1532
1533         Reviewed by Jon Lee.
1534
1535         No port cares about the ENABLE(VIEW_MODE_CSS_MEDIA) feature, so remove it.
1536
1537         * Configurations/FeatureDefines.xcconfig:
1538
1539 2017-08-13  Manuel Rego Casasnovas  <rego@igalia.com>
1540
1541         Composition underline color is always black
1542         https://bugs.webkit.org/show_bug.cgi?id=174675
1543
1544         Reviewed by Ryosuke Niwa.
1545
1546         * WebView/WebHTMLView.mm:
1547         (extractUnderlines): If NSUnderlineColorAttributeName
1548         is not present use text color for composition underline.
1549         (-[WebHTMLView setMarkedText:selectedRange:]): Use text color
1550         for composition underline in the plain text case.
1551
1552 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
1553
1554         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
1555         https://bugs.webkit.org/show_bug.cgi?id=175474
1556         <rdar://problem/33844628>
1557
1558         Reviewed by Wenson Hsieh.
1559
1560         Replaced the build flag by a runtime flag and disabled the feature by default.
1561
1562         * Configurations/FeatureDefines.xcconfig:
1563         * WebView/WebPreferenceKeysPrivate.h:
1564         * WebView/WebPreferences.mm:
1565         (+[WebPreferences initialize]): Disables dataTransfer.items by default.
1566         (-[WebPreferences dataTransferItemsEnabled]): Added.
1567         (-[WebPreferences setDataTransferItemsEnabled:]): Added.
1568         * WebView/WebPreferencesPrivate.h:
1569         * WebView/WebView.mm:
1570         (-[WebView _preferencesChanged:]):
1571
1572 2017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
1573
1574         Remove ENABLE_GAMEPAD_DEPRECATED
1575         https://bugs.webkit.org/show_bug.cgi?id=175361
1576
1577         Reviewed by Carlos Garcia Campos.
1578
1579         * Configurations/FeatureDefines.xcconfig:
1580
1581 2017-08-09  Chris Dumez  <cdumez@apple.com>
1582
1583         Disable Beacon API on WK1 DRT and WK2 when not using NETWORK_SESSION
1584         https://bugs.webkit.org/show_bug.cgi?id=175401
1585
1586         Reviewed by Brady Eidson.
1587
1588         * WebView/WebPreferenceKeysPrivate.h:
1589         * WebView/WebPreferences.mm:
1590         (+[WebPreferences initialize]):
1591         (-[WebPreferences beaconAPIEnabled]): Deleted.
1592         (-[WebPreferences setBeaconAPIEnabled:]): Deleted.
1593         * WebView/WebPreferencesPrivate.h:
1594         * WebView/WebView.mm:
1595         (-[WebView _preferencesChanged:]):
1596
1597 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
1598
1599         [PAL] Move spi/cocoa and spi/cg directories into PAL
1600         https://bugs.webkit.org/show_bug.cgi?id=175175
1601
1602         Reviewed by Myles C. Maxfield.
1603
1604         * History/WebHistory.mm:
1605         * Misc/WebDownload.mm:
1606         * Misc/WebKitNSStringExtras.mm:
1607         * Plugins/Hosted/NetscapePluginHostManager.mm:
1608         * Plugins/WebPluginDatabase.mm:
1609         * WebCoreSupport/WebFrameLoaderClient.mm:
1610         * WebInspector/WebNodeHighlight.mm:
1611         * WebView/WebHTMLView.mm:
1612         * WebView/WebIndicateLayer.mm:
1613         * WebView/WebView.mm:
1614         * WebView/WebViewData.h:
1615
1616 2017-08-09  Wenson Hsieh  <wenson_hsieh@apple.com>
1617
1618         [iOS DnD] ENABLE_DRAG_SUPPORT should be turned off for iOS 10 and enabled by default
1619         https://bugs.webkit.org/show_bug.cgi?id=175392
1620         <rdar://problem/33783207>
1621
1622         Reviewed by Tim Horton and Megan Gardner.
1623
1624         Tweak FeatureDefines to enable drag and drop by default, and disable only on unsupported platforms (i.e. iOS 10).
1625
1626         * Configurations/FeatureDefines.xcconfig:
1627
1628 2017-08-09  Daniel Bates  <dabates@apple.com>
1629
1630         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
1631         https://bugs.webkit.org/show_bug.cgi?id=175247
1632         <rdar://problem/33679804>
1633
1634         Reviewed by Brady Eidson.
1635
1636         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
1637         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
1638         clients that need to make use of this information at this time. If such a needs comes up
1639         then we can expose API/SPI similar to what we do for WebKit.
1640
1641         * WebCoreSupport/WebFrameLoaderClient.h:
1642         * WebCoreSupport/WebFrameLoaderClient.mm:
1643         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1644
1645 2017-08-08  Brady Eidson  <beidson@apple.com>
1646
1647         Don't enable default icon loading in WK1 for apps linked against old SDKs.
1648         <rdar://problem/33724060> and https://bugs.webkit.org/show_bug.cgi?id=175342
1649
1650         Reviewed by Andy Estes.
1651
1652         * Misc/WebKitVersionChecks.h:
1653         * WebCoreSupport/WebFrameLoaderClient.mm:
1654         (WebFrameLoaderClient::getLoadDecisionForIcons): Don't do any icon loading unless
1655           the app is linked against new WebKit with the new behavior.
1656
1657 2017-08-07  Devin Rousso  <drousso@apple.com>
1658
1659         Web Inspector: Preview Canvas path when viewing a recording
1660         https://bugs.webkit.org/show_bug.cgi?id=174967
1661
1662         Reviewed by Brian Burg.
1663
1664         * WebView/WebPreferenceKeysPrivate.h:
1665         * WebView/WebPreferences.mm:
1666         (+[WebPreferences initialize]):
1667         (-[WebPreferences inspectorAdditionsEnabled]):
1668         (-[WebPreferences setInspectorAdditionsEnabled:]):
1669         * WebView/WebPreferencesPrivate.h:
1670         * WebView/WebView.mm:
1671         (-[WebView _preferencesChanged:]):
1672         Add plumbing for new InspectorAdditions runtime flag.
1673
1674 2017-08-07  Brian Burg  <bburg@apple.com>
1675
1676         Remove CANVAS_PATH compilation guard
1677         https://bugs.webkit.org/show_bug.cgi?id=175207
1678
1679         Reviewed by Sam Weinig.
1680
1681         * Configurations/FeatureDefines.xcconfig:
1682
1683 2017-08-04  Youenn Fablet  <youenn@apple.com>
1684
1685         [Cache API] Add Cache and CacheStorage IDL definitions
1686         https://bugs.webkit.org/show_bug.cgi?id=175201
1687
1688         Reviewed by Brady Eidson.
1689
1690         * WebView/WebPreferenceKeysPrivate.h:
1691         * WebView/WebPreferences.mm:
1692         (+[WebPreferences initialize]):
1693         (-[WebPreferences cacheAPIEnabled]):
1694         (-[WebPreferences setCacheAPIEnabled:]):
1695         * WebView/WebPreferencesPrivate.h:
1696         * WebView/WebView.mm:
1697         (-[WebView _preferencesChanged:]):
1698
1699 2017-08-04  Matt Lewis  <jlewis3@apple.com>
1700
1701         Unreviewed, rolling out r220271.
1702
1703         Rolling out due to Layout Test failing on iOS Simulator.
1704
1705         Reverted changeset:
1706
1707         "Remove STREAMS_API compilation guard"
1708         https://bugs.webkit.org/show_bug.cgi?id=175165
1709         http://trac.webkit.org/changeset/220271
1710
1711 2017-08-04  Youenn Fablet  <youenn@apple.com>
1712
1713         Remove STREAMS_API compilation guard
1714         https://bugs.webkit.org/show_bug.cgi?id=175165
1715
1716         Reviewed by Darin Adler.
1717
1718         * Configurations/FeatureDefines.xcconfig:
1719         * WebView/WebPreferences.mm:
1720         (+[WebPreferences initialize]):
1721         * WebView/WebView.mm:
1722         (-[WebView _preferencesChanged:]):
1723
1724 2017-08-03  Brian Burg  <bburg@apple.com>
1725
1726         Remove ENABLE(WEB_SOCKET) guards
1727         https://bugs.webkit.org/show_bug.cgi?id=167044
1728
1729         Reviewed by Joseph Pecoraro.
1730
1731         * Configurations/FeatureDefines.xcconfig:
1732         * WebView/WebPreferencesPrivate.h:
1733
1734 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
1735
1736         [PAL] Move spi/cf directory into PAL
1737         https://bugs.webkit.org/show_bug.cgi?id=175057
1738
1739         Reviewed by Antti Koivisto.
1740
1741         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1742         * Plugins/WebNetscapePluginStream.mm:
1743         * WebCoreSupport/WebFrameNetworkingContext.mm:
1744         * WebView/WebPreferences.mm:
1745         * WebView/WebView.mm:
1746
1747 2017-08-03  Youenn Fablet  <youenn@apple.com>
1748
1749         Remove FETCH_API compilation guard
1750         https://bugs.webkit.org/show_bug.cgi?id=175154
1751
1752         Reviewed by Chris Dumez.
1753
1754         * Configurations/FeatureDefines.xcconfig:
1755         * WebView/WebPreferences.mm:
1756         (+[WebPreferences initialize]):
1757         * WebView/WebView.mm:
1758         (-[WebView _preferencesChanged:]):
1759
1760 2017-08-03  Brady Eidson  <beidson@apple.com>
1761
1762         Add SW IDLs and stub out basic functionality.
1763         https://bugs.webkit.org/show_bug.cgi?id=175115
1764
1765         Reviewed by Chris Dumez.
1766
1767         * Configurations/FeatureDefines.xcconfig:
1768
1769 2017-08-02  Sam Weinig  <sam@webkit.org>
1770
1771         [WebIDL] Convert MutationCallback to be a normal generated callback
1772         https://bugs.webkit.org/show_bug.cgi?id=174140
1773
1774         Reviewed by Darin Adler.
1775
1776         * DOM/DOMDocument.mm:
1777         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
1778         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
1779         Pass, now necessary, Document to NativeNodeFilter constructor.
1780
1781 2017-08-01  Chris Dumez  <cdumez@apple.com>
1782
1783         Add initial support for navigator.sendBeacon
1784         https://bugs.webkit.org/show_bug.cgi?id=175007
1785         <rdar://problem/33547728>
1786
1787         Reviewed by Sam Weinig.
1788
1789         Add setting to toggle support for the Beacon API (it is disabled by default).
1790
1791         * WebView/WebPreferenceKeysPrivate.h:
1792         * WebView/WebPreferences.mm:
1793         (+[WebPreferences initialize]):
1794         (-[WebPreferences beaconAPIEnabled]):
1795         (-[WebPreferences setBeaconAPIEnabled:]):
1796         * WebView/WebPreferencesPrivate.h:
1797         * WebView/WebView.mm:
1798         (-[WebView _preferencesChanged:]):
1799
1800 2017-07-28  Jeremy Jones  <jeremyj@apple.com>
1801
1802         Remove Web prefix from WebVideoFullscreen and WebPlaybackSession classes.
1803         https://bugs.webkit.org/show_bug.cgi?id=174437
1804
1805         Reviewed by Darin Adler.
1806
1807         Remove redundant Web- prefix from classes in WebKit namespace.
1808
1809         * WebView/WebView.mm:
1810         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1811         * WebView/WebViewData.h:
1812         * WebView/WebViewData.mm:
1813
1814 2017-07-26  Brian Burg  <bburg@apple.com>
1815
1816         Remove WEB_TIMING feature flag
1817         https://bugs.webkit.org/show_bug.cgi?id=174795
1818
1819         Reviewed by Alex Christensen.
1820
1821         * Configurations/FeatureDefines.xcconfig:
1822
1823 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
1824
1825         Async image decoding for large images should be disabled after the first time a tile is painted
1826         https://bugs.webkit.org/show_bug.cgi?id=174451
1827         <rdar://problem/31246421>
1828
1829         Reviewed by Simon Fraser.
1830
1831         * WebView/WebFrame.mm:
1832         (-[WebFrame _paintBehaviorForDestinationContext:]):
1833         (-[WebFrame _drawRect:contentsOnly:]):
1834         * WebView/WebHTMLView.mm:
1835         (imageFromRect):
1836
1837 2017-07-23  Darin Adler  <darin@apple.com>
1838
1839         More NeverDestroyed and related cleanup
1840         https://bugs.webkit.org/show_bug.cgi?id=174745
1841
1842         Reviewed by Alex Christensen.
1843
1844         * DOM/DOMUIKitExtensions.mm: Removed a lot of unneeded "using"
1845         for names that aren't even used in this file.
1846         (-[DOMNode boundingBoxes]): Use @[] syntax instead of
1847         -[NSArray arrayWithObject:].
1848         (-[DOMNode absoluteQuads]): Ditto.
1849         (-[DOMNode findExplodedTextNodeAtPoint:]): Use auto* instead
1850         of writing out various types.
1851         (-[DOMHTMLAreaElement boundingBoxesWithOwner:]): Use @[]
1852         syntax instea of -[NSArray arrayWithObject:].
1853         (-[DOMHTMLAreaElement absoluteQuadsWithOwner:]): Ditto.
1854         (-[DOMHTMLImageElement dataRepresentation:]): Use auto* instead
1855         of writing out various types.
1856         (-[DOMHTMLImageElement mimeType]): Ditto.
1857
1858 2017-07-24  Chris Dumez  <cdumez@apple.com>
1859
1860         ExceptionCode enumeration should use modern exception names
1861         https://bugs.webkit.org/show_bug.cgi?id=174794
1862
1863         Reviewed by Geoffrey Garen.
1864
1865         * DOM/ExceptionHandlers.mm:
1866         (raiseNotSupportedErrorException):
1867
1868 2017-07-23  Chris Dumez  <cdumez@apple.com>
1869
1870         Drop ExceptionCodeDescription class
1871         https://bugs.webkit.org/show_bug.cgi?id=174757
1872
1873         Reviewed by Darin Adler.
1874
1875         Stop using ExceptionCodeDescription.
1876
1877         * DOM/ExceptionHandlers.mm:
1878         (raiseDOMErrorException):
1879
1880 2017-07-21  Andreas Kling  <akling@apple.com>
1881
1882         Use more references in event dispatch code
1883         https://bugs.webkit.org/show_bug.cgi?id=174681
1884
1885         Reviewed by Geoffrey Garen.
1886
1887         * DOM/ObjCEventListener.h:
1888         * DOM/ObjCEventListener.mm:
1889         (WebCore::ObjCEventListener::handleEvent):
1890         * WebCoreSupport/WebFrameLoaderClient.mm:
1891         (NetscapePluginWidget::handleEvent):
1892
1893 2017-07-21  Brady Eidson  <beidson@apple.com>
1894
1895         Get rid of WebCore IconDatabase code.
1896         https://bugs.webkit.org/show_bug.cgi?id=174700
1897
1898         Reviewed by Tim Horton.
1899
1900         * Misc/WebCoreStatistics.mm:
1901         (+[WebCoreStatistics iconPageURLMappingCount]):
1902         (+[WebCoreStatistics iconRetainedPageURLCount]):
1903         (+[WebCoreStatistics iconRecordCount]):
1904         (+[WebCoreStatistics iconsWithDataCount]):
1905         * WebCoreSupport/WebFrameLoaderClient.h:
1906         * WebCoreSupport/WebFrameLoaderClient.mm:
1907         * WebCoreSupport/WebIconDatabaseClient.h: Removed.
1908         * WebCoreSupport/WebIconDatabaseClient.mm: Removed.
1909         * WebView/WebView.mm:
1910         (-[WebView mainFrameIconURL]):
1911
1912 2017-07-20  Chris Dumez  <cdumez@apple.com>
1913
1914         Drop legacy XPathException type
1915         https://bugs.webkit.org/show_bug.cgi?id=174679
1916
1917         Reviewed by Sam Weinig.
1918
1919         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
1920         no longer expose XPathException.
1921
1922         * DOM/ExceptionHandlers.mm:
1923         (raiseDOMErrorException):
1924
1925 2017-07-20  Chris Dumez  <cdumez@apple.com>
1926
1927         Unreviewed, rolling out r219706.
1928
1929         Broke iOS build
1930
1931         Reverted changeset:
1932
1933         "Drop legacy XPathException type"
1934         https://bugs.webkit.org/show_bug.cgi?id=174679
1935         http://trac.webkit.org/changeset/219706
1936
1937 2017-07-20  Chris Dumez  <cdumez@apple.com>
1938
1939         Drop legacy XPathException type
1940         https://bugs.webkit.org/show_bug.cgi?id=174679
1941
1942         Reviewed by Sam Weinig.
1943
1944         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
1945         no longer expose XPathException.
1946
1947         * DOM/ExceptionHandlers.mm:
1948         (raiseDOMErrorException):
1949         * WebKit.exp:
1950
1951 2017-07-20  Chris Dumez  <cdumez@apple.com>
1952
1953         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable
1954         https://bugs.webkit.org/show_bug.cgi?id=174660
1955
1956         Reviewed by Geoffrey Garen.
1957
1958         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable.
1959         This essentially replaces a branch to figure out if the new size is less or greater than the
1960         current size by an assertion.
1961
1962         * Plugins/WebNetscapePluginView.mm:
1963         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1964
1965 2017-07-20  Brady Eidson  <beidson@apple.com>
1966
1967         Deprecate WebIconDatabase in WebKitLegacy/mac.
1968         https://bugs.webkit.org/show_bug.cgi?id=174607
1969
1970         Reviewed by Alex Christensen.
1971
1972         This patch:
1973         1 - Formally deprecates WebIconDatabase (which was never API anyways)
1974         2 - Guts the class to where it can only return the default icon at the small size
1975         3 - Reworks other parts of WebKitLegacy that used it for anything to either
1976             use something else or to not do anything.
1977         
1978         This patch *could* go much farther. A future patch is what will remove WebCore/IconDatabase
1979         and that patch will remove all of the last remnants of WebIconDatabase.
1980         
1981         * History/WebHistoryItem.mm:
1982         (-[WebHistoryItem icon]):
1983
1984         * Misc/WebIconDatabase.h:
1985         * Misc/WebIconDatabase.mm:
1986         (-[WebIconDatabase init]):
1987         (-[WebIconDatabase iconForURL:withSize:cache:]):
1988         (-[WebIconDatabase iconForURL:withSize:]):
1989         (-[WebIconDatabase defaultIconWithSize:]):
1990         (-[WebIconDatabase defaultIconForURL:withSize:]):
1991         (-[WebIconDatabase iconURLForURL:]):
1992         (-[WebIconDatabase retainIconForURL:]):
1993         (-[WebIconDatabase releaseIconForURL:]):
1994         (+[WebIconDatabase delayDatabaseCleanup]):
1995         (+[WebIconDatabase allowDatabaseCleanup]):
1996         (-[WebIconDatabase setDelegate:]):
1997         (-[WebIconDatabase delegate]):
1998         (+[WebIconDatabase initialize]): Deleted.
1999         (-[WebIconDatabase isEnabled]): Deleted.
2000         (-[WebIconDatabase setEnabled:]): Deleted.
2001         (-[WebIconDatabase removeAllIcons]): Deleted.
2002         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Deleted.
2003         (-[WebIconDatabase _sendNotificationForURL:]): Deleted.
2004         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]): Deleted.
2005         (-[WebIconDatabase _startUpIconDatabase]): Deleted.
2006         (-[WebIconDatabase _shutDownIconDatabase]): Deleted.
2007         (-[WebIconDatabase _applicationWillTerminate:]): Deleted.
2008         (-[WebIconDatabase _iconForFileURL:withSize:]): Deleted.
2009         (-[WebIconDatabase _resetCachedWebPreferences:]): Deleted.
2010         (-[WebIconDatabase _largestIconFromDictionary:]): Deleted.
2011         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]): Deleted.
2012         (-[WebIconDatabase _iconFromDictionary:forSize:cache:]): Deleted.
2013         (-[WebIconDatabase _scaleIcon:toSize:]): Deleted.
2014         (-[WebIconDatabase _databaseDirectory]): Deleted.
2015         (webGetNSImage): Deleted.
2016
2017         * Misc/WebIconDatabaseDelegate.h: Removed.
2018         * Misc/WebIconDatabaseInternal.h: Removed.
2019         * Misc/WebIconDatabasePrivate.h: Removed.
2020
2021         * WebCoreSupport/WebFrameLoaderClient.mm:
2022         (webGetNSImage):
2023
2024         * WebCoreSupport/WebIconDatabaseClient.mm:
2025         (WebIconDatabaseClient::didRemoveAllIcons):
2026         (WebIconDatabaseClient::didImportIconURLForPageURL):
2027
2028         * WebView/WebView.mm:
2029         (-[WebView setFrameLoadDelegate:]):
2030         (-[WebView mainFrameIcon]):
2031
2032 2017-07-18  Andy Estes  <aestes@apple.com>
2033
2034         [Xcode] Enable CLANG_WARN_RANGE_LOOP_ANALYSIS
2035         https://bugs.webkit.org/show_bug.cgi?id=174631
2036
2037         Reviewed by Tim Horton.
2038
2039         * Configurations/Base.xcconfig:
2040
2041 2017-07-18  Andy Estes  <aestes@apple.com>
2042
2043         [Xcode] Enable CLANG_WARN_OBJC_LITERAL_CONVERSION
2044         https://bugs.webkit.org/show_bug.cgi?id=174631
2045
2046         Reviewed by Sam Weinig.
2047
2048         * Configurations/Base.xcconfig:
2049
2050 2017-07-18  Andy Estes  <aestes@apple.com>
2051
2052         [Xcode] Enable CLANG_WARN_NON_LITERAL_NULL_CONVERSION
2053         https://bugs.webkit.org/show_bug.cgi?id=174631
2054
2055         Reviewed by Dan Bernstein.
2056
2057         * Configurations/Base.xcconfig:
2058
2059 2017-07-18  Wenson Hsieh  <wenson_hsieh@apple.com>
2060
2061         [iOS DnD] [WK1] Add missing calls to WebThreadLock() in some WebView drag-and-drop SPIs
2062         https://bugs.webkit.org/show_bug.cgi?id=174640
2063         <rdar://problem/33297400>
2064
2065         Reviewed by Tim Horton.
2066
2067         Adds a missing call to WebThreadLock() in -_requestStartDataInteraction:globalPosition:. Previously, this was
2068         invoked at the call site in UIKit, but was removed after some refactoring in UIKit. Instead, we should lock the
2069         web thread here, to match the other WebView drag and drop SPI methods.
2070
2071         This patch also adds a WebThreadLock() call in -_dataInteractionCaretRect. While this is fine today, since all
2072         existing callers of _dataInteractionCaretRect already invoke other methods that WebThreadLock() beforehand, we
2073         should make this robust against future UIKit changes that could make this no longer the case.
2074
2075         * WebView/WebView.mm:
2076         (-[WebView _requestStartDataInteraction:globalPosition:]):
2077         (-[WebView _dataInteractionCaretRect]):
2078
2079 2017-07-18  Andy Estes  <aestes@apple.com>
2080
2081         [Xcode] Enable CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
2082         https://bugs.webkit.org/show_bug.cgi?id=174631
2083
2084         Reviewed by Darin Adler.
2085
2086         * Configurations/Base.xcconfig:
2087
2088 2017-07-17  Sam Weinig  <sam@webkit.org>
2089
2090         [WebIDL] Remove custom bindings that require non-caching JS strings
2091         https://bugs.webkit.org/show_bug.cgi?id=174552
2092
2093         Reviewed by Darin Adler.
2094
2095         * DOM/DOMHTMLCanvasElement.mm:
2096         (-[DOMHTMLCanvasElement toDataURL:]):
2097         Update to account for implementation now returning an UncachedString.
2098
2099 2017-07-17  Darin Adler  <darin@apple.com>
2100
2101         Improve use of NeverDestroyed
2102         https://bugs.webkit.org/show_bug.cgi?id=174348
2103
2104         Reviewed by Sam Weinig.
2105
2106         * Misc/WebStringTruncator.mm:
2107         (+[WebStringTruncator centerTruncateString:toWidth:]): Replace
2108         NeverDestroyed<RetainPtr> with just an NSFont * global.
2109
2110         * Plugins/Hosted/NetscapePluginHostManager.h: Removed unneeded include of
2111         NeverDestroyed.h.
2112         * Storage/WebDatabaseManager.mm: Ditto.
2113         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
2114         * WebCoreSupport/WebPlatformStrategies.mm: Ditto.
2115
2116         * WebView/WebView.mm: Removed unneeded include of NetworkStateNotifier.h.
2117         (aeDescFromJSValue): Removed double hashing by using the return value from
2118         add rather than calling contains before calling add.
2119
2120 2017-07-14  Jer Noble  <jer.noble@apple.com>
2121
2122         Allow clients to override their own hardware media requirements where no fallback media exists.
2123         https://bugs.webkit.org/show_bug.cgi?id=174426
2124         <rdar://problem/32537704>
2125
2126         Reviewed by Eric Carlson.
2127
2128         Add a new WebPreferences property to control WebCore's new
2129         allowMediaContentTypesRequiringHardwareSupportAsFallback setting.
2130
2131         * WebView/WebPreferenceKeysPrivate.h:
2132         * WebView/WebPreferences.mm:
2133         (+[WebPreferences initialize]):
2134         (-[WebPreferences allowMediaContentTypesRequiringHardwareSupportAsFallback]):
2135         (-[WebPreferences setAllowMediaContentTypesRequiringHardwareSupportAsFallback:]):
2136         * WebView/WebPreferencesPrivate.h:
2137         * WebView/WebView.mm:
2138         (-[WebView _preferencesChanged:]):
2139
2140 2017-07-12  Said Abou-Hallawa  <sabouhallawa@apple.com>
2141
2142         Async image decoding for large images should be disabled by default
2143         https://bugs.webkit.org/show_bug.cgi?id=174432
2144
2145         Reviewed by Simon Fraser.
2146
2147         -- Remove setting the bit PaintBehaviorSnapshotting in any new PaintBehavoir.
2148         -- Return PaintBehaviorAllowAsyncImageDecoding when the return value was 0.
2149         -- Propagate PaintBehaviorAllowAsyncImageDecoding from a parent view to 
2150            a child view instead of propagating PaintBehaviorSnapshotting.
2151         -- Replace setting the bit PaintBehaviorSnapshotting in an existing PaintBehavoir
2152            by resetting the bit PaintBehaviorAllowAsyncImageDecoding.
2153
2154         * WebView/WebFrame.mm:
2155         (-[WebFrame _paintBehaviorForDestinationContext:]):
2156         (-[WebFrame _drawRect:contentsOnly:]):
2157         * WebView/WebHTMLView.mm:
2158         (imageFromRect):
2159
2160 2017-07-12  Daniel Bates  <dabates@apple.com>
2161
2162         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
2163         https://bugs.webkit.org/show_bug.cgi?id=174427
2164
2165         Rubber-stamped by Brady Eidson.
2166
2167         * WebView/WebPDFView.mm:
2168         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2169
2170 2017-07-12  Matt Lewis  <jlewis3@apple.com>
2171
2172         Unreviewed, rolling out r219401.
2173
2174         This revision rolled out the previous patch, but after talking
2175         with reviewer, a rebaseline is what was needed.Rolling back in
2176         before rebaseline.
2177
2178         Reverted changeset:
2179
2180         "Unreviewed, rolling out r219379."
2181         https://bugs.webkit.org/show_bug.cgi?id=174400
2182         http://trac.webkit.org/changeset/219401
2183
2184 2017-07-12  Matt Lewis  <jlewis3@apple.com>
2185
2186         Unreviewed, rolling out r219379.
2187
2188         This revision caused a consistent failure in the test
2189         fast/dom/Window/property-access-on-cached-window-after-frame-
2190         removed.html.
2191
2192         Reverted changeset:
2193
2194         "Remove NAVIGATOR_HWCONCURRENCY"
2195         https://bugs.webkit.org/show_bug.cgi?id=174400
2196         http://trac.webkit.org/changeset/219379
2197
2198 2017-07-11  Dean Jackson  <dino@apple.com>
2199
2200         Remove NAVIGATOR_HWCONCURRENCY
2201         https://bugs.webkit.org/show_bug.cgi?id=174400
2202
2203         * Configurations/FeatureDefines.xcconfig:
2204
2205 2017-07-11  Dean Jackson  <dino@apple.com>
2206
2207         Rolling out r219372.
2208
2209         * Configurations/FeatureDefines.xcconfig:
2210
2211 2017-07-11  Dean Jackson  <dino@apple.com>
2212
2213         Remove NAVIGATOR_HWCONCURRENCY
2214         https://bugs.webkit.org/show_bug.cgi?id=174400
2215
2216         * Configurations/FeatureDefines.xcconfig:
2217
2218 2017-07-03  Brian Burg  <bburg@apple.com>
2219
2220         Web Replay: remove some unused code
2221         https://bugs.webkit.org/show_bug.cgi?id=173903
2222
2223         Rubber-stamped by Joseph Pecoraro.
2224
2225         * Configurations/FeatureDefines.xcconfig:
2226
2227 2017-07-09  Brady Eidson  <beidson@apple.com>
2228
2229         Remove some obsolete WebKitVersionChecks.
2230         https://bugs.webkit.org/show_bug.cgi?id=174294
2231
2232         Reviewed by Dan Bernstein.
2233
2234         * Misc/WebKitVersionChecks.h:
2235
2236         * WebView/WebHTMLView.mm:
2237         (-[WebHTMLView hitTest:]):
2238
2239         * WebView/WebView.mm:
2240         (shouldRespectPriorityInCSSAttributeSetters):
2241         (-[WebView _commonInitializationWithFrameName:groupName:]):
2242         (-[WebView _preferencesChanged:]):
2243         (shouldTransformsAffectOverflow): Deleted.
2244         (shouldDispatchJavaScriptWindowOnErrorEvents): Deleted.
2245
2246 2017-07-08  Brady Eidson  <beidson@apple.com>
2247
2248         Remove some obsolete RuntimeApplicationChecks.
2249         https://bugs.webkit.org/show_bug.cgi?id=174293
2250
2251         Reviewed by Dan Bernstein.
2252
2253         * Misc/WebKitVersionChecks.h:
2254         * WebView/WebView.mm:
2255         (+[WebView enableWebThread]):
2256         (-[WebView _needsPreHTML5ParserQuirks]):
2257
2258 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
2259
2260         Drop NOSNIFF compile flag
2261         https://bugs.webkit.org/show_bug.cgi?id=174289
2262
2263         Reviewed by Michael Catanzaro.
2264
2265         * Configurations/FeatureDefines.xcconfig:
2266
2267 2017-07-06  Yusuke Suzuki  <utatane.tea@gmail.com>
2268
2269         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
2270         https://bugs.webkit.org/show_bug.cgi?id=174150
2271
2272         Reviewed by Mark Lam.
2273
2274         * DOM/DOM.mm:
2275         (lookupElementClass):
2276
2277 2017-07-06  Brady Eidson  <beidson@apple.com>
2278
2279         Add logging to first attempt to use the WebIconDatabase class.
2280         https://bugs.webkit.org/show_bug.cgi?id=174190
2281
2282         Reviewed by Andy Estes.
2283
2284         * Misc/WebIconDatabase.mm:
2285         (+[WebIconDatabase sharedIconDatabase]): On first call, log a warning of the bleak future of this non-API.
2286         * Misc/WebKitVersionChecks.h:
2287
2288 2017-07-06  Matt Lewis  <jlewis3@apple.com>
2289
2290         Unreviewed, rolling out r219178.
2291
2292         This caused a consistent failure with the API test
2293         StringBuilderTest.ToAtomicStringOnEmpty on all Debug testers.
2294
2295         Reverted changeset:
2296
2297         "[WTF] Clean up StringStatics.cpp by using
2298         LazyNeverDestroyed<> for Atoms"
2299         https://bugs.webkit.org/show_bug.cgi?id=174150
2300         http://trac.webkit.org/changeset/219178
2301
2302 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
2303
2304         [WTF] Move SoftLinking.h into WTF
2305         https://bugs.webkit.org/show_bug.cgi?id=174000
2306
2307         Reviewed by Alex Christensen.
2308
2309         * Plugins/WebNetscapePluginView.mm:
2310         * Plugins/WebPluginController.mm:
2311         * WebCoreSupport/WebInspectorClient.mm:
2312         * WebView/WebFullScreenController.mm:
2313         * WebView/WebImmediateActionController.mm:
2314         * WebView/WebView.mm:
2315
2316 2017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
2317
2318         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
2319         https://bugs.webkit.org/show_bug.cgi?id=174150
2320
2321         Reviewed by Mark Lam.
2322
2323         * DOM/DOM.mm:
2324         (lookupElementClass):
2325
2326 2017-07-05  Brady Eidson  <beidson@apple.com>
2327
2328         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
2329         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
2330
2331         Reviewed by Alex Christensen.
2332
2333         Adopt to the new constructor for FrameLoadRequest.
2334
2335         * WebView/WebPDFView.mm:
2336         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2337
2338 2017-07-05  Ryosuke Niwa  <rniwa@webkit.org>
2339
2340         Make WebKit's public headers on Mac and iOS C++ module safe
2341         https://bugs.webkit.org/show_bug.cgi?id=174175
2342
2343         Reviewed by Alex Christensen.
2344
2345         Fixed the header files.
2346
2347         * Misc/WebDownload.h:
2348         * Misc/WebKitErrors.h:
2349         * Plugins/WebPluginContainer.h:
2350         * WebView/WebResourceLoadDelegate.h:
2351
2352 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
2353
2354         Remove copy of ICU headers from WebKit
2355         https://bugs.webkit.org/show_bug.cgi?id=116407
2356
2357         Reviewed by Alex Christensen.
2358
2359         Use WTF's copy of ICU headers.
2360
2361         * Configurations/WebKitLegacy.xcconfig:
2362         * icu/unicode/localpointer.h: Removed.
2363         * icu/unicode/parseerr.h: Removed.
2364         * icu/unicode/platform.h: Removed.
2365         * icu/unicode/ptypes.h: Removed.
2366         * icu/unicode/putil.h: Removed.
2367         * icu/unicode/uchar.h: Removed.
2368         * icu/unicode/uconfig.h: Removed.
2369         * icu/unicode/ucurr.h: Removed.
2370         * icu/unicode/uidna.h: Removed.
2371         * icu/unicode/uiter.h: Removed.
2372         * icu/unicode/umachine.h: Removed.
2373         * icu/unicode/unorm.h: Removed.
2374         * icu/unicode/unorm2.h: Removed.
2375         * icu/unicode/urename.h: Removed.
2376         * icu/unicode/uscript.h: Removed.
2377         * icu/unicode/ustring.h: Removed.
2378         * icu/unicode/utf.h: Removed.
2379         * icu/unicode/utf16.h: Removed.
2380         * icu/unicode/utf8.h: Removed.
2381         * icu/unicode/utf_old.h: Removed.
2382         * icu/unicode/utypes.h: Removed.
2383         * icu/unicode/uvernum.h: Removed.
2384         * icu/unicode/uversion.h: Removed.
2385
2386 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
2387
2388         Add WebKitPrivateFrameworkStubs for iOS 11
2389         https://bugs.webkit.org/show_bug.cgi?id=173988
2390
2391         Reviewed by David Kilzer.
2392
2393         * Configurations/WebKitLegacy.xcconfig: iphoneos and iphonesimulator should
2394         use the same directory for private framework stubs.
2395
2396 2017-07-03  Matt Lewis  <jlewis3@apple.com>
2397
2398         Unreviewed, rolling out r219103.
2399
2400         Caused multiple build failures.
2401
2402         Reverted changeset:
2403
2404         "Remove copy of ICU headers from WebKit"
2405         https://bugs.webkit.org/show_bug.cgi?id=116407
2406         http://trac.webkit.org/changeset/219103
2407
2408 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
2409
2410         Remove copy of ICU headers from WebKit
2411         https://bugs.webkit.org/show_bug.cgi?id=116407
2412
2413         Reviewed by Alex Christensen.
2414
2415         Use WTF's copy of ICU headers.
2416
2417         * Configurations/WebKitLegacy.xcconfig:
2418         * icu/unicode/localpointer.h: Removed.
2419         * icu/unicode/parseerr.h: Removed.
2420         * icu/unicode/platform.h: Removed.
2421         * icu/unicode/ptypes.h: Removed.
2422         * icu/unicode/putil.h: Removed.
2423         * icu/unicode/uchar.h: Removed.
2424         * icu/unicode/uconfig.h: Removed.
2425         * icu/unicode/ucurr.h: Removed.
2426         * icu/unicode/uidna.h: Removed.
2427         * icu/unicode/uiter.h: Removed.
2428         * icu/unicode/umachine.h: Removed.
2429         * icu/unicode/unorm.h: Removed.
2430         * icu/unicode/unorm2.h: Removed.
2431         * icu/unicode/urename.h: Removed.
2432         * icu/unicode/uscript.h: Removed.
2433         * icu/unicode/ustring.h: Removed.
2434         * icu/unicode/utf.h: Removed.
2435         * icu/unicode/utf16.h: Removed.
2436         * icu/unicode/utf8.h: Removed.
2437         * icu/unicode/utf_old.h: Removed.
2438         * icu/unicode/utypes.h: Removed.
2439         * icu/unicode/uvernum.h: Removed.
2440         * icu/unicode/uversion.h: Removed.
2441
2442 2017-07-03  Brady Eidson  <beidson@apple.com>
2443
2444         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
2445         https://bugs.webkit.org/show_bug.cgi?id=174073
2446
2447         Reviewed by Andy Estes.
2448
2449         WebView now keeps a direct copy of its main frame icon as a member variable.
2450         It populates that variable by finding exactly one Favicon LinkIcon from WebCore and loading it.
2451         
2452         This change causes a progression in KVO observation of the mainFrameIcon property as we now
2453         have both the old icon and new icon at the time it changes.
2454
2455         * WebCoreSupport/WebFrameLoaderClient.h:
2456         * WebCoreSupport/WebFrameLoaderClient.mm:
2457         (WebFrameLoaderClient::prepareForDataSourceReplacement):
2458         (WebFrameLoaderClient::getLoadDecisionForIcons):
2459         (WebFrameLoaderClient::finishedLoadingIcon):
2460         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
2461         (WebFrameLoaderClient::registerForIconNotification): Deleted.
2462
2463         * WebView/WebView.mm:
2464         (+[WebView _setIconLoadingEnabled:]):
2465         (+[WebView _isIconLoadingEnabled]):
2466         (-[WebView mainFrameIcon]):
2467         (-[WebView _setMainFrameIcon:]):
2468         (-[WebView _receivedIconChangedNotification:]): Deleted.
2469         (-[WebView _registerForIconNotification:]): Deleted.
2470         (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Deleted.
2471         * WebView/WebViewData.h:
2472         * WebView/WebViewInternal.h:
2473         * WebView/WebViewPrivate.h:
2474
2475 2017-07-03  Sam Weinig  <sam@webkit.org>
2476
2477         [WebIDL] Remove more unnecessary uses of the preprocessor in idl files
2478         https://bugs.webkit.org/show_bug.cgi?id=174083
2479
2480         Reviewed by Alex Christensen.
2481
2482         * Configurations/FeatureDefines.xcconfig:
2483         Add ENABLE_NAVIGATOR_STANDALONE.
2484
2485 2017-07-03  Tim Horton  <timothy_horton@apple.com>
2486
2487         Expose unobscuredSafeAreaInsets on WebView
2488         https://bugs.webkit.org/show_bug.cgi?id=174075
2489         <rdar://problem/33096997>
2490
2491         Reviewed by Beth Dakin.
2492
2493         * WebView/WebView.mm:
2494         (-[WebView _setUnobscuredSafeAreaInsets:]):
2495         (-[WebView _unobscuredSafeAreaInsets]):
2496         * WebView/WebViewPrivate.h:
2497         Expose unobscuredSafeAreaInsets as a new private property on WebView,
2498         similar to how it is exposed in WebKit2.
2499
2500 2017-07-03  Andy Estes  <aestes@apple.com>
2501
2502         [Xcode] Add an experimental setting to build with ccache
2503         https://bugs.webkit.org/show_bug.cgi?id=173875
2504
2505         Reviewed by Tim Horton.
2506
2507         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
2508
2509 2017-07-03  Tim Horton  <timothy_horton@apple.com>
2510
2511         Expose WebPreferences for viewport-fit and constant() properties
2512         https://bugs.webkit.org/show_bug.cgi?id=174072
2513         <rdar://problem/33096639>
2514
2515         Reviewed by Ryosuke Niwa.
2516
2517         * WebView/WebPreferenceKeysPrivate.h:
2518         * WebView/WebPreferences.mm:
2519         (-[WebPreferences viewportFitEnabled]):
2520         (-[WebPreferences setViewportFitEnabled:]):
2521         (-[WebPreferences constantPropertiesEnabled]):
2522         (-[WebPreferences setConstantPropertiesEnabled:]):
2523         * WebView/WebPreferencesPrivate.h:
2524         * WebView/WebView.mm:
2525         (-[WebView _preferencesChanged:]):
2526
2527 2017-07-01  Tim Horton  <timothy_horton@apple.com>
2528
2529         Expose viewport-fit value to UIKit via viewport arguments dictionary
2530         https://bugs.webkit.org/show_bug.cgi?id=174071
2531         <rdar://problem/33096620>
2532
2533         Reviewed by Wenson Hsieh.
2534
2535         * History/WebHistoryItem.mm:
2536         * History/WebHistoryItemPrivate.h:
2537         Add another dictionary key and three values.
2538
2539 2017-07-01  Dan Bernstein  <mitz@apple.com>
2540
2541         [iOS] Remove code only needed when building for iOS 9.x
2542         https://bugs.webkit.org/show_bug.cgi?id=174068
2543
2544         Reviewed by Tim Horton.
2545
2546         * Configurations/FeatureDefines.xcconfig:
2547
2548 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
2549
2550         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
2551         https://bugs.webkit.org/show_bug.cgi?id=174004
2552
2553         Reviewed by Simon Fraser.
2554
2555         * WebCoreSupport/WebPluginInfoProvider.mm:
2556
2557 2017-07-01  Dan Bernstein  <mitz@apple.com>
2558
2559         [macOS] Remove code only needed when building for OS X Yosemite
2560         https://bugs.webkit.org/show_bug.cgi?id=174067
2561
2562         Reviewed by Tim Horton.
2563
2564         * Configurations/Base.xcconfig:
2565         * Configurations/DebugRelease.xcconfig:
2566         * Configurations/FeatureDefines.xcconfig:
2567         * Configurations/Version.xcconfig:
2568         * Plugins/WebBasePluginPackage.mm:
2569         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2570         * WebCoreSupport/PopupMenuMac.mm:
2571         (PopupMenuMac::show):
2572         * WebCoreSupport/WebInspectorClient.mm:
2573         (WebInspectorFrontendClient::startWindowDrag):
2574         (-[WebInspectorWindowController window]):
2575         * WebView/WebView.mm:
2576         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2577
2578 2017-06-30  Daniel Bates  <dabates@apple.com>
2579
2580         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
2581         https://bugs.webkit.org/show_bug.cgi?id=165160
2582         <rdar://problem/29451999>
2583
2584         Reviewed by Brady Eidson.
2585
2586         Pass the document that is requesting the load to the loader.
2587
2588         * WebView/WebPDFView.mm:
2589         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2590
2591 2017-06-29  Jer Noble  <jer.noble@apple.com>
2592
2593         Make Legacy EME API controlled by RuntimeEnabled setting.
2594         https://bugs.webkit.org/show_bug.cgi?id=173994
2595
2596         Reviewed by Sam Weinig.
2597
2598         Add a new preference used to control WebCore's new RuntimeEnabledFeature setting.
2599
2600         * Configurations/FeatureDefines.xcconfig:
2601         * WebView/WebPreferenceKeysPrivate.h:
2602         * WebView/WebPreferences.mm:
2603         (+[WebPreferences initialize]):
2604         (-[WebPreferences legacyEncryptedMediaAPIEnabled]):
2605         (-[WebPreferences setLegacyEncryptedMediaAPIEnabled:]):
2606         * WebView/WebPreferencesPrivate.h:
2607         * WebView/WebView.mm:
2608         (-[WebView _preferencesChanged:]):
2609
2610 2017-06-30  Chris Dumez  <cdumez@apple.com>
2611
2612         ResourceLoadObserver does not need a ResourceLoadStatisticsStore
2613         https://bugs.webkit.org/show_bug.cgi?id=174013
2614
2615         Reviewed by Brent Fulgham.
2616
2617         ResourceLoadObserver does not need a ResourceLoadStatisticsStore. ResourceLoadStatisticsStore is too complicated for its needs.
2618         ResourceLoadStatisticsStore can then be moved to WebKit2/UIProcess in a follow-up.
2619
2620         * WebView/WebView.mm:
2621         (-[WebView _commonInitializationWithFrameName:groupName:]):
2622
2623 2017-06-30  Wenson Hsieh  <wenson_hsieh@apple.com>
2624
2625         [iOS DnD] Drag caret rect is incorrectly computed when dropping in editable content in iframes
2626         https://bugs.webkit.org/show_bug.cgi?id=174017
2627         <rdar://problem/32959782>
2628
2629         Reviewed by Simon Fraser.
2630
2631         Use root view coordinates when computing the drag caret rect.
2632
2633         * WebView/WebView.mm:
2634         (-[WebView _dataInteractionCaretRect]):
2635
2636 2017-06-28  Simon Fraser  <simon.fraser@apple.com>
2637
2638         Mark the GraphicsContext as accelerated when the WebHTMLView's layer is drawing asynchronously
2639         https://bugs.webkit.org/show_bug.cgi?id=173899
2640         rdar://problem/32994474
2641
2642         Reviewed by Tim Horton.
2643
2644         When the WebHTMLView is layer-backed, and -drawsAsynchronously on its layer is YES,
2645         then mark the GraphicsContext that WebCore is using for drawing as accelerated, so
2646         that ImageBuffer::createCompatibleBuffer() creates appropriately matched buffers.
2647
2648         Also clean up WebFrame a little, sharing code that checks whether the WebFrame's
2649         documentView is a WebHTMLView.
2650
2651         * WebView/WebFrame.mm:
2652         (-[WebFrame _webHTMLDocumentView]):
2653         (-[WebFrame _paintBehaviorForDestinationContext:]):
2654         (-[WebFrame _drawRect:contentsOnly:]):
2655         (-[WebFrame setTimeoutsPaused:]):
2656         (-[WebFrame prepareForPause]):
2657         (-[WebFrame resumeFromPause]):
2658         (-[WebFrame resetTextAutosizingBeforeLayout]):
2659         * WebView/WebHTMLView.mm:
2660         (-[WebHTMLView drawLayer:inContext:]):
2661         (-[WebHTMLView _web_isDrawingIntoAcceleratedLayer]):
2662         * WebView/WebHTMLViewInternal.h:
2663
2664 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2665
2666         [iOS DnD] Support dragging out of contenteditable areas without a prior selection
2667         https://bugs.webkit.org/show_bug.cgi?id=173854
2668         <rdar://problem/32236827>
2669
2670         Reviewed by Ryosuke Niwa and Tim Horton.
2671
2672         Vends some information from the DragItem passed into -[WebView _startDrag:] through the WebView as SPI for
2673         WebKit1 clients. No behavior change with these changes alone -- see <rdar://problem/32991062> for more detail.
2674
2675         * WebView/WebView.mm:
2676         (-[WebView _startDrag:]):
2677         (-[WebView _dragSourceAction]):
2678         (-[WebView _draggedLinkTitle]):
2679         (-[WebView _draggedLinkURL]):
2680         (-[WebView _draggedElementBounds]):
2681         (-[WebView _endedDataInteraction:global:]):
2682         * WebView/WebViewData.h:
2683         * WebView/WebViewPrivate.h:
2684
2685 2017-06-26  Wenson Hsieh  <wenson_hsieh@apple.com>
2686
2687         Refactor drag start codepaths to plumb a DragItem to client layers
2688         https://bugs.webkit.org/show_bug.cgi?id=173832
2689         Work towards <rdar://problem/32236827>
2690
2691         Reviewed by Ryosuke Niwa and Tim Horton.
2692
2693         Refactor code used to start a drag in WebKit1 to plumb a single DragItem from DragController to the client layer
2694         in WebDragClient that contains all the information needed to begin a drag. Also renames _setDataInteractionData:
2695         to _startDrag: to match logic used to start a drag on other platforms.
2696
2697         No behavior change -- the same information should be propagated to AppKit and UIKit when beginning a drag, only
2698         through the DragItem struct.
2699
2700         * WebCoreSupport/WebDragClient.h:
2701         * WebCoreSupport/WebDragClient.mm:
2702         (WebDragClient::startDrag):
2703         (WebDragClient::dragSourceActionMaskForPoint):
2704         (WebDragClient::willPerformDragSourceAction):
2705         (WebDragClient::beginDrag):
2706         * WebView/WebView.mm:
2707         (-[WebView _startDrag:]):
2708         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]): Deleted.
2709         * WebView/WebViewInternal.h:
2710
2711 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
2712
2713         Remove excessive headers from JavaScriptCore
2714         https://bugs.webkit.org/show_bug.cgi?id=173812
2715
2716         Reviewed by Darin Adler.
2717
2718         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2719         * WebView/WebView.mm:
2720
2721 2017-06-23  Tim Horton  <timothy_horton@apple.com>
2722
2723         Remove an unused typedef from WebFrameLoaderClient
2724         https://bugs.webkit.org/show_bug.cgi?id=173795
2725
2726         Reviewed by Simon Fraser.
2727
2728         * WebCoreSupport/WebFrameLoaderClient.h:
2729         This unused typedef in the global namespace conflicts with one in a macOS system header.
2730         Also... it's unused.
2731         Remove it.
2732
2733 2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
2734
2735         Remove excessive headers from WebCore/{bindings,css,dom}
2736         https://bugs.webkit.org/show_bug.cgi?id=173766
2737
2738         Reviewed by Simon Fraser.
2739
2740         * DOM/DOMInternal.mm:
2741
2742 2017-06-22  Daniel Bates  <dabates@apple.com>
2743
2744         Make FrameLoadRequest a move-only type
2745         https://bugs.webkit.org/show_bug.cgi?id=173682
2746
2747         Reviewed by Alex Christensen and Darin Adler.
2748
2749         A FrameLoadRequest groups together the information to perform a load into a single object
2750         that is more manageable to pass around than its constituent parts. Code that receives a
2751         FrameLoadRequest is expected to extract out the information it needs to complete its task.
2752         And it does not make sense to re-use the same FrameLoadRequest object for more than one
2753         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
2754
2755         * Plugins/WebPluginController.mm:
2756         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2757         * WebView/WebPDFView.mm:
2758         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2759
2760 2017-06-21  Antoine Quint  <graouts@apple.com>
2761
2762         Ensure DRT always logs rAF suspension debugging code
2763         https://bugs.webkit.org/show_bug.cgi?id=173681
2764
2765         Reviewed by Tim "Mr. T" Horton.
2766
2767         * WebView/WebPreferenceKeysPrivate.h:
2768         * WebView/WebPreferences.mm:
2769         (+[WebPreferences initialize]):
2770         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]): Deleted.
2771         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]): Deleted.
2772         * WebView/WebPreferencesPrivate.h:
2773         * WebView/WebView.mm:
2774         (-[WebView _preferencesChanged:]):
2775
2776 2017-06-21  Daniel Bates  <dabates@apple.com>
2777
2778         Cleanup FrameLoadRequest
2779         https://bugs.webkit.org/show_bug.cgi?id=173564
2780         <rdar://problem/32903570>
2781
2782         Reviewed by Brent Fulgham.
2783
2784         * WebView/WebPDFView.mm:
2785         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Move FrameLoadRequest instantiation
2786         into a local variable and use C++11 brace initialization syntax to make it easier to identify
2787         the arguments passed to FrameLoader::loadFrameRequest().
2788
2789 2017-06-21  Antoine Quint  <graouts@apple.com>
2790
2791         Add logging to identify when the Page suspends scripted animations
2792         https://bugs.webkit.org/show_bug.cgi?id=173626
2793
2794         Reviewed by Tim Horton.
2795
2796         Add a new preference to control the new shouldLogScriptedAnimationControllerSuspensionChange settings
2797         through WebKit. This is specific to WK1 since the issue we're trying to pinpoint only occurs on WK1 bots.
2798
2799         * WebView/WebPreferenceKeysPrivate.h:
2800         * WebView/WebPreferences.mm:
2801         (+[WebPreferences initialize]):
2802         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]):
2803         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]):
2804         * WebView/WebPreferencesPrivate.h:
2805         * WebView/WebView.mm:
2806         (-[WebView _preferencesChanged:]):
2807
2808 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
2809
2810         Disable font variations on macOS Sierra and iOS 10
2811         https://bugs.webkit.org/show_bug.cgi?id=173618
2812         <rdar://problem/32879164>
2813
2814         Reviewed by Jon Lee.
2815
2816         * Configurations/FeatureDefines.xcconfig:
2817
2818 2017-06-20  Daniel Bates  <dabates@apple.com>
2819
2820         Have FrameLoadRequest takes a Frame& instead of a Frame*
2821         https://bugs.webkit.org/show_bug.cgi?id=173614
2822         <rdar://problem/32884890>
2823
2824         Reviewed by Brent Fulgham.
2825
2826         * Plugins/WebPluginController.mm:
2827         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
2828         * WebView/WebFrame.mm:
2829         (-[WebFrame loadRequest:]):
2830         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2831
2832 2017-06-19  Frederic Wang  <fwang@igalia.com>
2833
2834         [Mac] Add an experimental feature setting for async frame scrolling
2835         https://bugs.webkit.org/show_bug.cgi?id=173359
2836
2837         Reviewed by Simon Fraser.
2838
2839         * WebView/WebPreferenceKeysPrivate.h: Declare key for async frame scrolling preference.
2840         * WebView/WebPreferences.mm:
2841         (+[WebPreferences initialize]): Initialize async frame scrolling preference to false.
2842         (-[WebPreferences asyncFrameScrollingEnabled]): Define getter for async frame scrolling.
2843         (-[WebPreferences setAsyncFrameScrollingEnabled:]): Define setter for async frame scrolling.
2844         * WebView/WebPreferencesPrivate.h: Declare setter and getter.
2845         * WebView/WebView.mm:
2846         (-[WebView _preferencesChanged:]): Take into account preference update for async frame
2847         scrolling.
2848
2849 2017-06-19  Chris Dumez  <cdumez@apple.com>
2850
2851         Use WTF::Function instead of std::function in more places in WebCore/
2852         https://bugs.webkit.org/show_bug.cgi?id=173535
2853
2854         Reviewed by Antti Koivisto.
2855
2856         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
2857
2858         * WebCoreSupport/WebFrameLoaderClient.h:
2859         * WebCoreSupport/WebFrameLoaderClient.mm:
2860         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2861         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2862         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2863         (WebFrameLoaderClient::dispatchWillSubmitForm):
2864         (WebFrameLoaderClient::setUpPolicyListener):
2865         (-[WebFramePolicyListener initWithFrame:policyFunction:]):
2866         (-[WebFramePolicyListener initWithFrame:policyFunction:appLinkURL:]):
2867
2868 2017-05-14 Frederic Wang  <fwang@igalia.com>
2869
2870         Add heuristic to avoid flattening "fullscreen" iframes
2871         https://bugs.webkit.org/show_bug.cgi?id=171914
2872
2873         Reviewed by Simon Fraser.
2874
2875         This commit adjusts the mac/ios preference interface to treat frame flattening as an enum.
2876
2877         * WebView/WebPreferenceKeysPrivate.h: Rename the key.
2878         * WebView/WebPreferences.mm:
2879         (+[WebPreferences initialize]): Handle frame flattening as an enum.
2880         (-[WebPreferences isFrameFlatteningEnabled]): Ditto.
2881         (-[WebPreferences setFrameFlatteningEnabled:]): Ditto.
2882         (-[WebPreferences frameFlattening]): New function to get frame flattening as an enum.
2883         (-[WebPreferences setFrameFlattening:]): New function to set frame flattening as an enum.
2884         * WebView/WebPreferencesPrivate.h: Ditto.
2885         * WebView/WebView.mm:
2886         (-[WebView _preferencesChanged:]): Ditto.
2887         * WebView/WebPreferencesPrivate.h: Add new enum definition.
2888
2889 2017-06-17  Chris Dumez  <cdumez@apple.com>
2890
2891         Use WTF::Function instead of std::function in WebKit2/
2892         https://bugs.webkit.org/show_bug.cgi?id=173504
2893
2894         Reviewed by Darin Adler.
2895
2896         Use WTF::Function instead of std::function in WebKit2/ to avoid
2897         unnecessary copying.
2898
2899         * Plugins/Hosted/HostedNetscapePluginStream.h:
2900         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2901         (WebKit::HostedNetscapePluginStream::willSendRequest):
2902         * Plugins/WebNetscapePluginStream.h:
2903         * Plugins/WebNetscapePluginStream.mm:
2904         (WebNetscapePluginStream::willSendRequest):
2905         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2906         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2907         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
2908         (WebPaymentCoordinatorClient::openPaymentSetup):
2909
2910 2017-06-16  Sam Weinig  <sam@webkit.org>
2911
2912         [WebIDL] Remove custom bindings for HTMLDocument
2913         https://bugs.webkit.org/show_bug.cgi?id=173444
2914
2915         Reviewed by Darin Adler.
2916
2917         * DOM/DOMHTMLDocument.mm:
2918         (-[DOMHTMLDocument linkColor]):
2919         (-[DOMHTMLDocument setLinkColor:]):
2920         (-[DOMHTMLDocument write:]):
2921         (-[DOMHTMLDocument writeln:]):
2922         Update for new signature of write/writeln and rename of linkColor to linkColorForBindings.
2923
2924 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
2925
2926         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
2927         https://bugs.webkit.org/show_bug.cgi?id=173366
2928         <rdar://problem/32767014>
2929
2930         Reviewed by Tim Horton.
2931
2932         Move pieces of iOS WebKit1 drag and drop implementation into OpenSource. No change in behavior.
2933
2934         * Configurations/FeatureDefines.xcconfig:
2935         * WebCoreSupport/WebDragClient.mm:
2936         (WebDragClient::useLegacyDragClient):
2937         (WebDragClient::willPerformDragDestinationAction):
2938         (WebDragClient::dragSourceActionMaskForPoint):
2939         (WebDragClient::willPerformDragSourceAction):
2940         (WebDragClient::startDrag):
2941         (WebDragClient::beginDrag):
2942         (WebDragClient::declareAndWriteDragImage):
2943         (WebDragClient::declareAndWriteAttachment):
2944         (WebDragClient::didConcludeEditDrag):
2945         * WebView/WebView.mm:
2946         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
2947         (-[WebView _getDataInteractionData]):
2948         (-[WebView dragDataForSession:client:global:operation:]):
2949         (-[WebView _enteredDataInteraction:client:global:operation:]):
2950         (-[WebView _updatedDataInteraction:client:global:operation:]):
2951         (-[WebView _exitedDataInteraction:client:global:operation:]):
2952         (-[WebView _performDataInteraction:client:global:operation:]):
2953         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
2954         (-[WebView _endedDataInteraction:global:]):
2955         (-[WebView _didConcludeEditDataInteraction]):
2956         (floatRectsForCGRectArray): Deleted.
2957         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]): Deleted.
2958         * WebView/WebViewData.h:
2959         * WebView/WebViewData.mm:
2960         (-[WebViewPrivate dealloc]):
2961         * WebView/WebViewPrivate.h:
2962
2963 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2964
2965         [iOS DnD] [WK1] Dropping links onto UIWebViews should not trigger navigation by default
2966         https://bugs.webkit.org/show_bug.cgi?id=173454
2967         <rdar://problem/31720671>
2968
2969         Reviewed by Tim Horton.
2970
2971         Adds -webView:dragDestinationActionMaskForSession: as SPI to WebUIDelegate.
2972         If unimplemented, the default UI delegate allows all actions except for URL loading.
2973
2974         * DefaultDelegates/WebDefaultUIDelegate.mm:
2975         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForSession:]):
2976         * WebView/WebUIDelegatePrivate.h:
2977         * WebView/WebView.mm:
2978         (-[WebView dragDestinationActionMaskForSession:]):
2979
2980 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2981
2982         Using -[WebItemProviderPasteboard setItemProviders:] to swap out item providers before a drop breaks item provider loading
2983         https://bugs.webkit.org/show_bug.cgi?id=173338
2984         <rdar://problem/32777720>
2985
2986         Reviewed by Tim Horton.
2987
2988         Rename updatePreferredTypeIdentifiers to updateSupportedTypeIdentifiers.
2989
2990         * WebCoreSupport/WebPlatformStrategies.h:
2991         * WebCoreSupport/WebPlatformStrategies.mm:
2992         (WebPlatformStrategies::updateSupportedTypeIdentifiers):
2993         (WebPlatformStrategies::updatePreferredTypeIdentifiers): Deleted.
2994
2995 2017-06-13  Daniel Bates  <dabates@apple.com>
2996
2997         Implement W3C Secure Contexts Draft Specification
2998         https://bugs.webkit.org/show_bug.cgi?id=158121
2999         <rdar://problem/26012994>
3000
3001         Reviewed by Brent Fulgham.
3002
3003         Part 4
3004
3005         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
3006
3007         * WebView/WebPreferenceKeysPrivate.h:
3008         * WebView/WebPreferences.mm:
3009         (+[WebPreferences initialize]):
3010         (-[WebPreferences isSecureContextAttributeEnabled]):
3011         (-[WebPreferences setIsSecureContextAttributeEnabled:]):
3012         * WebView/WebPreferencesPrivate.h:
3013         * WebView/WebView.mm:
3014         (-[WebView _preferencesChanged:]):
3015
3016 2017-06-13  Sam Weinig  <sam@webkit.org>
3017
3018         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
3019         https://bugs.webkit.org/show_bug.cgi?id=80733
3020
3021         Reviewed by Chris Dumez.
3022
3023         * DOM/DOMUtility.mm:
3024         (createDOMWrapper):
3025         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3026         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3027         * WebView/WebFrame.mm:
3028         (-[WebFrame _attachScriptDebugger]):
3029         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
3030
3031 2017-06-12  Jiewen Tan  <jiewen_tan@apple.com>
3032
3033         [WebCrypto] Remove experimental feature flag of SubtleCrypto
3034         https://bugs.webkit.org/show_bug.cgi?id=173197
3035         <rdar://problem/32688148>
3036
3037         Reviewed by Brent Fulgham.
3038
3039         * WebView/WebPreferences.mm:
3040         (+[WebPreferences initialize]):
3041         (-[WebPreferences subtleCryptoEnabled]): Deleted.
3042         (-[WebPreferences setSubtleCryptoEnabled:]): Deleted.
3043         * WebView/WebPreferencesPrivate.h:
3044         * WebView/WebView.mm:
3045         (-[WebView _preferencesChanged:]):
3046
3047 2017-06-10  Dan Bernstein  <mitz@apple.com>
3048
3049         Reverted r218056 because it made the IDE reindex constantly.
3050
3051         * Configurations/DebugRelease.xcconfig:
3052
3053 2017-06-10  Dan Bernstein  <mitz@apple.com>
3054
3055         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
3056         https://bugs.webkit.org/show_bug.cgi?id=173223
3057
3058         Reviewed by Sam Weinig.
3059
3060         The rebuilds were happening due to a difference in the compiler options that the IDE and
3061         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
3062         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
3063         specify an appropriate path in CLANG_INDEX_STORE_PATH.
3064
3065         * Configurations/DebugRelease.xcconfig:
3066
3067 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
3068
3069         [iOS DnD] Add a hook to perform two-step drops in editable content
3070         https://bugs.webkit.org/show_bug.cgi?id=172992
3071         <rdar://problem/32590174>
3072
3073         Reviewed by Tim Horton.
3074
3075         Adds a new SPI to WebUIKitDelegate to allow WK1 clients to override default drop behavior. Returning YES from
3076         -performTwoStepDrop:atDestination:isMove: will prevent content from being inserted on drop in WebKit; otherwise,
3077         returning NO will continue with default WebKit behavior.
3078
3079         * WebCoreSupport/WebEditorClient.h:
3080         * WebCoreSupport/WebEditorClient.mm:
3081         (WebEditorClient::performTwoStepDrop):
3082
3083 2017-06-08  Jer Noble  <jer.noble@apple.com>
3084
3085         Clients of the WK2 C-API don't have their mediaContentTypesRequiringHardwareSupport setting initialized correctly.
3086         https://bugs.webkit.org/show_bug.cgi?id=173091
3087
3088         Reviewed by Eric Carlson.
3089
3090         * WebView/WebPreferences.mm:
3091         (+[WebPreferences initialize]):
3092
3093 2017-06-07  Jer Noble  <jer.noble@apple.com>
3094
3095         Clean-up: RenderElement.h includes headers it doesn't use
3096         https://bugs.webkit.org/show_bug.cgi?id=173046
3097
3098         Reviewed by Andy Estes.
3099
3100         * WebView/WebImmediateActionController.mm:
3101
3102 2017-06-07  Zalan Bujtas  <zalan@apple.com>
3103
3104         [iOS WK1 WebThread] Do not call out to the main thread for device orientation.
3105         https://bugs.webkit.org/show_bug.cgi?id=173044
3106         <rdar://problem/32449338>
3107
3108         Reviewed by Tim Horton.
3109
3110         Cache the current device orientation so that we don't have to lift the WebThread lock
3111         to collect it.
3112
3113         * WebView/WebFrame.mm:
3114         (-[WebFrame deviceOrientationChanged]):
3115         * WebView/WebView.mm:
3116         (-[WebView _commonInitializationWithFrameName:groupName:]):
3117         (-[WebView _setDeviceOrientation:]):
3118         (-[WebView _deviceOrientation]):
3119         * WebView/WebViewData.h:
3120         * WebView/WebViewInternal.h:
3121
3122 2017-06-06  Jer Noble  <jer.noble@apple.com>
3123
3124         [Cocoa] Set defaults for mediaContentTypesRequiringHardwareSupport setting
3125         https://bugs.webkit.org/show_bug.cgi?id=173008
3126
3127         Reviewed by Eric Carlson.
3128
3129         Add a private preference (with default) for the mediaContentTypesRequiringHardwareSupport WebCore setting.
3130
3131         * WebView/WebPreferenceKeysPrivate.h:
3132         * WebView/WebPreferences.mm:
3133         (+[WebPreferences initialize]):
3134         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
3135         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
3136         * WebView/WebPreferencesPrivate.h:
3137         * WebView/WebView.mm:
3138         (-[WebView _preferencesChanged:]):
3139
3140 2017-06-06  Youenn Fablet  <youenn@apple.com>
3141
3142         Add an option to disable getUserMedia prompt in case of mock capture sources
3143         https://bugs.webkit.org/show_bug.cgi?id=172981
3144         <rdar://problem/32580325>
3145
3146         Reviewed by Eric Carlson.
3147
3148         Defining the option, getter and setter.
3149
3150         * WebView/WebPreferences.mm:
3151         (+[WebPreferences initialize]):
3152         (-[WebPreferences mockCaptureDevicesPromptEnabled]):
3153         (-[WebPreferences setMockCaptureDevicesPromptEnabled:]):
3154         * WebView/WebPreferencesPrivate.h:
3155
3156 2017-06-05  Dan Bernstein  <mitz@apple.com>
3157
3158         Tried to fix the build when targrting macOS 10.12 using the macOS 10.13 developer beta SDK.
3159
3160         * WebView/WebView.mm:
3161         (-[WebView updateMediaTouchBar]):
3162         * WebView/WebViewData.h:
3163
3164 2017-06-03  Darin Adler  <darin@apple.com>
3165
3166         Streamline handling of attributes, using references as much as possible
3167         https://bugs.webkit.org/show_bug.cgi?id=172899
3168
3169         Reviewed by Chris Dumez.
3170
3171         * WebView/WebHTMLRepresentation.mm:
3172         (matchLabelsAgainstElement): Added handling of nullptr since nothing guarantees the
3173         passed in element can't be null. Removed unnecessary conversion from NSString to String
3174         and then back to NSString.
3175
3176 2017-06-01  Andy Estes  <aestes@apple.com>
3177
3178         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
3179         https://bugs.webkit.org/show_bug.cgi?id=172828
3180
3181         Reviewed by Beth Dakin.
3182
3183         * Configurations/FeatureDefines.xcconfig:
3184
3185 2017-05-31  Andy Estes  <aestes@apple.com>
3186
3187         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
3188         https://bugs.webkit.org/show_bug.cgi?id=172366
3189
3190         Reviewed by Daniel Bates.
3191
3192         * Configurations/FeatureDefines.xcconfig:
3193
3194 2017-05-30  Ryosuke Niwa  <rniwa@webkit.org>
3195
3196         Only include DataDetectorsUI headers in iOS
3197         https://bugs.webkit.org/show_bug.cgi?id=172633
3198
3199         Reviewed by David Kilzer.
3200
3201         Enable data detectors only on iOS and not other variants of iOS.
3202
3203         * WebCoreSupport/WebFrameLoaderClient.mm:
3204
3205 2017-05-30  Alex Christensen  <achristensen@webkit.org>
3206
3207         Update libwebrtc configuration
3208         https://bugs.webkit.org/show_bug.cgi?id=172727
3209
3210         Reviewed by Geoffrey Garen.
3211
3212         * Configurations/FeatureDefines.xcconfig:
3213
3214 2017-05-28  Dan Bernstein  <mitz@apple.com>
3215
3216         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
3217         https://bugs.webkit.org/show_bug.cgi?id=172691
3218
3219         Reviewed by Tim Horton.
3220
3221         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
3222
3223 2017-05-26  Brent Fulgham  <bfulgham@apple.com>
3224
3225         [WK2] Address thread safety issues with ResourceLoadStatistics
3226         https://bugs.webkit.org/show_bug.cgi?id=172519
3227         <rdar://problem/31707642>
3228
3229         Reviewed by Chris Dumez.
3230
3231         Create a new WorkQueue for the ResourceLoadStatistics store to use for processing data.
3232
3233         * WebView/WebView.mm:
3234         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Pass WorkQueue to the observer.
3235
3236 2017-05-25  Myles C. Maxfield  <mmaxfield@apple.com>
3237
3238         [WK1] iframes in layer-backed NSViews are not cleared between successive draws
3239         https://bugs.webkit.org/show_bug.cgi?id=172554
3240         <rdar://problem/31247133>
3241
3242         Reviewed by Simon Fraser.
3243
3244         Update an overridden internal AppKit function to the new signature.
3245
3246         * WebView/WebHTMLView.mm:
3247         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]):
3248         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3249         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
3250         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
3251
3252 2017-05-24  Jer Noble  <jer.noble@apple.com>
3253
3254         Rename DisplaySleepDisabler -> SleepDisabler
3255         https://bugs.webkit.org/show_bug.cgi?id=172478
3256
3257         Reviewed by Sam Weinig.
3258
3259         * WebView/WebFullScreenController.h:
3260
3261 2017-05-23  Simon Fraser  <simon.fraser@apple.com>
3262
3263         Stop consulting -viewsNeedDisplay when doing layer flushing in WebKit1
3264         https://bugs.webkit.org/show_bug.cgi?id=172522
3265         rdar://problem/31071812
3266
3267         Reviewed by Tim Horton.
3268
3269         There's no need to consult -[NSWindow viewsNeedDisplay] on newer OSes. It was
3270         added in r58623, and modified in r61204 for Carbon apps, but with more recent AppKit
3271         versions this synchronization is no longer required.
3272
3273         * WebView/WebView.mm:
3274         (LayerFlushController::flushLayers):
3275
3276 2017-05-22  Simon Fraser  <simon.fraser@apple.com>
3277
3278         Snapshotting via -renderInContext: should do synchronous image decodes
3279         https://bugs.webkit.org/show_bug.cgi?id=172485
3280         rdar://problem/32276146
3281
3282         Reviewed by Tim Horton.
3283
3284         Remove the _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap: SPI that no longer
3285         has any callers.
3286
3287         * Plugins/WebBaseNetscapePluginView.h:
3288         * Plugins/WebBaseNetscapePluginView.mm:
3289         (-[WebBaseNetscapePluginView inFlatteningPaint]): Deleted.
3290         * WebView/WebFrame.mm:
3291         (-[WebFrame _paintBehaviorForDestinationContext:]):
3292         (-[WebFrame _drawRect:contentsOnly:]):
3293         (-[WebFrame _shouldFlattenCompositingLayers:]): Deleted.
3294         * WebView/WebHTMLView.mm:
3295         (imageFromRect):
3296         * WebView/WebView.mm:
3297         (-[WebView _commonInitializationWithFrameName:groupName:]):
3298         (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]): Deleted.
3299         (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]): Deleted.
3300         * WebView/WebViewData.h:
3301         * WebView/WebViewPrivate.h:
3302
3303 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
3304
3305         Remove dead ENABLE(FONT_LOAD_EVENTS) code
3306         https://bugs.webkit.org/show_bug.cgi?id=172517
3307
3308         Rubber-stamped by Simon Fraser.
3309
3310         * Configurations/FeatureDefines.xcconfig:
3311
3312 2017-05-23  Emilio Cobos Álvarez  <ecobos@igalia.com>
3313
3314         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
3315         https://bugs.webkit.org/show_bug.cgi?id=171984
3316
3317         Reviewed by Antti Koivisto.
3318
3319         * WebView/WebPreferenceKeysPrivate.h:
3320         * WebView/WebPreferences.mm:
3321         (+[WebPreferences initialize]):
3322         (-[WebPreferences displayContentsEnabled]):
3323         (-[WebPreferences setDisplayContentsEnabled:]):
3324         * WebView/WebPreferencesPrivate.h:
3325         * WebView/WebView.mm:
3326         (-[WebView _preferencesChanged:]):
3327
3328 2017-05-22  Youenn Fablet  <youenn@apple.com>
3329
3330         Remove AVAudioCaptureSource
3331         https://bugs.webkit.org/show_bug.cgi?id=172360
3332
3333         Reviewed by Sam Weinig.
3334
3335         Removing the handling of AVAudio/CoreAudio capture source dynamic switch.
3336
3337         * WebView/WebPreferenceKeysPrivate.h:
3338         * WebView/WebPreferences.mm:
3339         (+[WebPreferences initialize]):
3340         (-[WebPreferences useAVFoundationAudioCapture]): Deleted.
3341         (-[WebPreferences setUseAVFoundationAudioCapture:]): Deleted.
3342         * WebView/WebPreferencesPrivate.h:
3343         * WebView/WebView.mm:
3344         (-[WebView _preferencesChanged:]):
3345
3346 2017-05-22  Sam Weinig  <sam@webkit.org>
3347
3348         [WebIDL] Support callbacks with arbitrary return types
3349         https://bugs.webkit.org/show_bug.cgi?id=172407
3350
3351         Reviewed by Chris Dumez.
3352
3353         * DOM/DOM.mm:
3354         (-[DOMNodeFilter acceptNode:]):
3355         Update for CallbackResult adoption in the base class.
3356
3357         * DOM/DOMNodeIterator.mm:
3358         * DOM/DOMTreeWalker.mm:
3359         Update to account for new WebCore implementation return types. We return nil
3360         if there was an exception, since retains the existing behavior if a javascript
3361         NodeFilter had been used (an exception would cause all nodes to be rejected,
3362         thus returning nullptr).
3363
3364         * DOM/ObjCNodeFilterCondition.h:
3365         * DOM/ObjCNodeFilterCondition.mm:
3366         Update to match new interface of NodeFilterCondition.
3367
3368 2017-05-18  Sam Weinig  <sam@webkit.org>
3369
3370         [WebIDL] Remove the need for the generator to know about native type mapping
3371         https://bugs.webkit.org/show_bug.cgi?id=172310
3372
3373         Reviewed by Darin Adler.
3374
3375         * DOM/DOM.mm:
3376         (-[DOMNodeFilter acceptNode:]):
3377         Update to pass Node by reference.
3378
3379 2017-05-19  Yusuke Suzuki  <utatane.tea@gmail.com>
3380
3381         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
3382         https://bugs.webkit.org/show_bug.cgi?id=172098
3383
3384         Reviewed by Saam Barati.
3385
3386         * Plugins/Hosted/ProxyInstance.mm:
3387         * Plugins/Hosted/ProxyRuntimeObject.mm:
3388
3389 2017-05-18  Andy Estes  <aestes@apple.com>
3390
3391         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
3392         https://bugs.webkit.org/show_bug.cgi?id=172305
3393
3394         Reviewed by Anders Carlsson.
3395
3396         * Configurations/FeatureDefines.xcconfig:
3397
3398 2017-05-18  Commit Queue  <commit-queue@webkit.org>
3399
3400         Unreviewed, rolling out r217031, r217032, and r217037.
3401         https://bugs.webkit.org/show_bug.cgi?id=172293
3402
3403         cause linking errors in Windows (Requested by yusukesuzuki on
3404         #webkit).
3405
3406         Reverted changesets:
3407
3408         "[JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass"
3409         https://bugs.webkit.org/show_bug.cgi?id=172098
3410         http://trac.webkit.org/changeset/217031
3411
3412         "Unreviewed, rebaseline for newly added ClassInfo"
3413         https://bugs.webkit.org/show_bug.cgi?id=172098
3414         http://trac.webkit.org/changeset/217032
3415
3416         "Unreviewed, fix debug and non-JIT build"
3417         https://bugs.webkit.org/show_bug.cgi?id=172098
3418         http://trac.webkit.org/changeset/217037
3419
3420 2017-05-16  Yusuke Suzuki  <utatane.tea@gmail.com>
3421
3422         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
3423         https://bugs.webkit.org/show_bug.cgi?id=172098
3424
3425         Reviewed by Saam Barati.
3426
3427         * Plugins/Hosted/ProxyInstance.mm:
3428         * Plugins/Hosted/ProxyRuntimeObject.mm:
3429
3430 2017-05-17  Matt Lewis  <jlewis3@apple.com>
3431
3432         Unreviewed, rolling out r216974.
3433
3434         Revision caused consistent timeouts on all platforms.
3435
3436         Reverted changeset:
3437
3438         "Add a RuntimeEnabledFeature for display: contents, defaulted
3439         to false."
3440         https://bugs.webkit.org/show_bug.cgi?id=171984
3441         http://trac.webkit.org/changeset/216974
3442
3443 2017-05-17  Emilio Cobos Álvarez  <ecobos@igalia.com>
3444
3445         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
3446         https://bugs.webkit.org/show_bug.cgi?id=171984
3447
3448         Reviewed by Antti Koivisto.
3449
3450         * WebView/WebPreferenceKeysPrivate.h:
3451         * WebView/WebPreferences.mm:
3452         (+[WebPreferences initialize]):
3453         (-[WebPreferences displayContentsEnabled]):
3454         (-[WebPreferences setDisplayContentsEnabled:]):
3455         * WebView/WebPreferencesPrivate.h:
3456         * WebView/WebView.mm:
3457         (-[WebView _preferencesChanged:]):
3458
3459 2017-05-16  Sam Weinig  <sam@webkit.org>
3460
3461         Bring Notification.idl up to spec
3462         https://bugs.webkit.org/show_bug.cgi?id=172156
3463
3464         Reviewed by Chris Dumez.
3465
3466         * WebCoreSupport/WebNotificationClient.h:
3467         * WebCoreSupport/WebNotificationClient.mm:
3468         (generateNotificationID):
3469         (WebNotificationClient::show):
3470         (WebNotificationClient::cancel):
3471         (WebNotificationClient::clearNotifications):
3472         (WebNotificationClient::notificationObjectDestroyed):
3473         (WebNotificationClient::requestPermission):
3474         (WebNotificationClient::hasPendingPermissionRequests):
3475         (WebNotificationClient::checkPermission):
3476         (-[WebNotificationPolicyListener allow]):
3477         (-[WebNotificationPolicyListener deny]):
3478         * WebView/WebNotification.mm:
3479         (-[WebNotification iconURL]):
3480         (-[WebNotification dir]):
3481         Simplify #ifdefs and update for enum vs String usage.
3482
3483 2017-05-15  Said Abou-Hallawa  <sabouhallawa@apple.com>
3484
3485         Do not delete asynchronously decoded frames for large images if their clients are in the viewport
3486         https://bugs.webkit.org/show_bug.cgi?id=170640
3487
3488         Reviewed by Simon Fraser.
3489
3490         Enable the async decoding for large images.
3491
3492         * WebView/WebView.mm:
3493         (-[WebView _preferencesChanged:]):