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