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