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