8a668246ab0a57b2e62f9f4df9126de3a43907fb
[WebKit.git] / Source / WebKitLegacy / mac / ChangeLog
1 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
2
3         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
4         https://bugs.webkit.org/show_bug.cgi?id=175474
5         <rdar://problem/33844628>
6
7         Reviewed by Wenson Hsieh.
8
9         Replaced the build flag by a runtime flag and disabled the feature by default.
10
11         * Configurations/FeatureDefines.xcconfig:
12         * WebView/WebPreferenceKeysPrivate.h:
13         * WebView/WebPreferences.mm:
14         (+[WebPreferences initialize]): Disables dataTransfer.items by default.
15         (-[WebPreferences dataTransferItemsEnabled]): Added.
16         (-[WebPreferences setDataTransferItemsEnabled:]): Added.
17         * WebView/WebPreferencesPrivate.h:
18         * WebView/WebView.mm:
19         (-[WebView _preferencesChanged:]):
20
21 2017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
22
23         Remove ENABLE_GAMEPAD_DEPRECATED
24         https://bugs.webkit.org/show_bug.cgi?id=175361
25
26         Reviewed by Carlos Garcia Campos.
27
28         * Configurations/FeatureDefines.xcconfig:
29
30 2017-08-09  Chris Dumez  <cdumez@apple.com>
31
32         Disable Beacon API on WK1 DRT and WK2 when not using NETWORK_SESSION
33         https://bugs.webkit.org/show_bug.cgi?id=175401
34
35         Reviewed by Brady Eidson.
36
37         * WebView/WebPreferenceKeysPrivate.h:
38         * WebView/WebPreferences.mm:
39         (+[WebPreferences initialize]):
40         (-[WebPreferences beaconAPIEnabled]): Deleted.
41         (-[WebPreferences setBeaconAPIEnabled:]): Deleted.
42         * WebView/WebPreferencesPrivate.h:
43         * WebView/WebView.mm:
44         (-[WebView _preferencesChanged:]):
45
46 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
47
48         [PAL] Move spi/cocoa and spi/cg directories into PAL
49         https://bugs.webkit.org/show_bug.cgi?id=175175
50
51         Reviewed by Myles C. Maxfield.
52
53         * History/WebHistory.mm:
54         * Misc/WebDownload.mm:
55         * Misc/WebKitNSStringExtras.mm:
56         * Plugins/Hosted/NetscapePluginHostManager.mm:
57         * Plugins/WebPluginDatabase.mm:
58         * WebCoreSupport/WebFrameLoaderClient.mm:
59         * WebInspector/WebNodeHighlight.mm:
60         * WebView/WebHTMLView.mm:
61         * WebView/WebIndicateLayer.mm:
62         * WebView/WebView.mm:
63         * WebView/WebViewData.h:
64
65 2017-08-09  Wenson Hsieh  <wenson_hsieh@apple.com>
66
67         [iOS DnD] ENABLE_DRAG_SUPPORT should be turned off for iOS 10 and enabled by default
68         https://bugs.webkit.org/show_bug.cgi?id=175392
69         <rdar://problem/33783207>
70
71         Reviewed by Tim Horton and Megan Gardner.
72
73         Tweak FeatureDefines to enable drag and drop by default, and disable only on unsupported platforms (i.e. iOS 10).
74
75         * Configurations/FeatureDefines.xcconfig:
76
77 2017-08-09  Daniel Bates  <dabates@apple.com>
78
79         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
80         https://bugs.webkit.org/show_bug.cgi?id=175247
81         <rdar://problem/33679804>
82
83         Reviewed by Brady Eidson.
84
85         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
86         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
87         clients that need to make use of this information at this time. If such a needs comes up
88         then we can expose API/SPI similar to what we do for WebKit.
89
90         * WebCoreSupport/WebFrameLoaderClient.h:
91         * WebCoreSupport/WebFrameLoaderClient.mm:
92         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
93
94 2017-08-08  Brady Eidson  <beidson@apple.com>
95
96         Don't enable default icon loading in WK1 for apps linked against old SDKs.
97         <rdar://problem/33724060> and https://bugs.webkit.org/show_bug.cgi?id=175342
98
99         Reviewed by Andy Estes.
100
101         * Misc/WebKitVersionChecks.h:
102         * WebCoreSupport/WebFrameLoaderClient.mm:
103         (WebFrameLoaderClient::getLoadDecisionForIcons): Don't do any icon loading unless
104           the app is linked against new WebKit with the new behavior.
105
106 2017-08-07  Devin Rousso  <drousso@apple.com>
107
108         Web Inspector: Preview Canvas path when viewing a recording
109         https://bugs.webkit.org/show_bug.cgi?id=174967
110
111         Reviewed by Brian Burg.
112
113         * WebView/WebPreferenceKeysPrivate.h:
114         * WebView/WebPreferences.mm:
115         (+[WebPreferences initialize]):
116         (-[WebPreferences inspectorAdditionsEnabled]):
117         (-[WebPreferences setInspectorAdditionsEnabled:]):
118         * WebView/WebPreferencesPrivate.h:
119         * WebView/WebView.mm:
120         (-[WebView _preferencesChanged:]):
121         Add plumbing for new InspectorAdditions runtime flag.
122
123 2017-08-07  Brian Burg  <bburg@apple.com>
124
125         Remove CANVAS_PATH compilation guard
126         https://bugs.webkit.org/show_bug.cgi?id=175207
127
128         Reviewed by Sam Weinig.
129
130         * Configurations/FeatureDefines.xcconfig:
131
132 2017-08-04  Youenn Fablet  <youenn@apple.com>
133
134         [Cache API] Add Cache and CacheStorage IDL definitions
135         https://bugs.webkit.org/show_bug.cgi?id=175201
136
137         Reviewed by Brady Eidson.
138
139         * WebView/WebPreferenceKeysPrivate.h:
140         * WebView/WebPreferences.mm:
141         (+[WebPreferences initialize]):
142         (-[WebPreferences cacheAPIEnabled]):
143         (-[WebPreferences setCacheAPIEnabled:]):
144         * WebView/WebPreferencesPrivate.h:
145         * WebView/WebView.mm:
146         (-[WebView _preferencesChanged:]):
147
148 2017-08-04  Matt Lewis  <jlewis3@apple.com>
149
150         Unreviewed, rolling out r220271.
151
152         Rolling out due to Layout Test failing on iOS Simulator.
153
154         Reverted changeset:
155
156         "Remove STREAMS_API compilation guard"
157         https://bugs.webkit.org/show_bug.cgi?id=175165
158         http://trac.webkit.org/changeset/220271
159
160 2017-08-04  Youenn Fablet  <youenn@apple.com>
161
162         Remove STREAMS_API compilation guard
163         https://bugs.webkit.org/show_bug.cgi?id=175165
164
165         Reviewed by Darin Adler.
166
167         * Configurations/FeatureDefines.xcconfig:
168         * WebView/WebPreferences.mm:
169         (+[WebPreferences initialize]):
170         * WebView/WebView.mm:
171         (-[WebView _preferencesChanged:]):
172
173 2017-08-03  Brian Burg  <bburg@apple.com>
174
175         Remove ENABLE(WEB_SOCKET) guards
176         https://bugs.webkit.org/show_bug.cgi?id=167044
177
178         Reviewed by Joseph Pecoraro.
179
180         * Configurations/FeatureDefines.xcconfig:
181         * WebView/WebPreferencesPrivate.h:
182
183 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
184
185         [PAL] Move spi/cf directory into PAL
186         https://bugs.webkit.org/show_bug.cgi?id=175057
187
188         Reviewed by Antti Koivisto.
189
190         * Plugins/Hosted/HostedNetscapePluginStream.mm:
191         * Plugins/WebNetscapePluginStream.mm:
192         * WebCoreSupport/WebFrameNetworkingContext.mm:
193         * WebView/WebPreferences.mm:
194         * WebView/WebView.mm:
195
196 2017-08-03  Youenn Fablet  <youenn@apple.com>
197
198         Remove FETCH_API compilation guard
199         https://bugs.webkit.org/show_bug.cgi?id=175154
200
201         Reviewed by Chris Dumez.
202
203         * Configurations/FeatureDefines.xcconfig:
204         * WebView/WebPreferences.mm:
205         (+[WebPreferences initialize]):
206         * WebView/WebView.mm:
207         (-[WebView _preferencesChanged:]):
208
209 2017-08-03  Brady Eidson  <beidson@apple.com>
210
211         Add SW IDLs and stub out basic functionality.
212         https://bugs.webkit.org/show_bug.cgi?id=175115
213
214         Reviewed by Chris Dumez.
215
216         * Configurations/FeatureDefines.xcconfig:
217
218 2017-08-02  Sam Weinig  <sam@webkit.org>
219
220         [WebIDL] Convert MutationCallback to be a normal generated callback
221         https://bugs.webkit.org/show_bug.cgi?id=174140
222
223         Reviewed by Darin Adler.
224
225         * DOM/DOMDocument.mm:
226         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
227         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
228         Pass, now necessary, Document to NativeNodeFilter constructor.
229
230 2017-08-01  Chris Dumez  <cdumez@apple.com>
231
232         Add initial support for navigator.sendBeacon
233         https://bugs.webkit.org/show_bug.cgi?id=175007
234         <rdar://problem/33547728>
235
236         Reviewed by Sam Weinig.
237
238         Add setting to toggle support for the Beacon API (it is disabled by default).
239
240         * WebView/WebPreferenceKeysPrivate.h:
241         * WebView/WebPreferences.mm:
242         (+[WebPreferences initialize]):
243         (-[WebPreferences beaconAPIEnabled]):
244         (-[WebPreferences setBeaconAPIEnabled:]):
245         * WebView/WebPreferencesPrivate.h:
246         * WebView/WebView.mm:
247         (-[WebView _preferencesChanged:]):
248
249 2017-07-28  Jeremy Jones  <jeremyj@apple.com>
250
251         Remove Web prefix from WebVideoFullscreen and WebPlaybackSession classes.
252         https://bugs.webkit.org/show_bug.cgi?id=174437
253
254         Reviewed by Darin Adler.
255
256         Remove redundant Web- prefix from classes in WebKit namespace.
257
258         * WebView/WebView.mm:
259         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
260         * WebView/WebViewData.h:
261         * WebView/WebViewData.mm:
262
263 2017-07-26  Brian Burg  <bburg@apple.com>
264
265         Remove WEB_TIMING feature flag
266         https://bugs.webkit.org/show_bug.cgi?id=174795
267
268         Reviewed by Alex Christensen.
269
270         * Configurations/FeatureDefines.xcconfig:
271
272 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
273
274         Async image decoding for large images should be disabled after the first time a tile is painted
275         https://bugs.webkit.org/show_bug.cgi?id=174451
276         <rdar://problem/31246421>
277
278         Reviewed by Simon Fraser.
279
280         * WebView/WebFrame.mm:
281         (-[WebFrame _paintBehaviorForDestinationContext:]):
282         (-[WebFrame _drawRect:contentsOnly:]):
283         * WebView/WebHTMLView.mm:
284         (imageFromRect):
285
286 2017-07-23  Darin Adler  <darin@apple.com>
287
288         More NeverDestroyed and related cleanup
289         https://bugs.webkit.org/show_bug.cgi?id=174745
290
291         Reviewed by Alex Christensen.
292
293         * DOM/DOMUIKitExtensions.mm: Removed a lot of unneeded "using"
294         for names that aren't even used in this file.
295         (-[DOMNode boundingBoxes]): Use @[] syntax instead of
296         -[NSArray arrayWithObject:].
297         (-[DOMNode absoluteQuads]): Ditto.
298         (-[DOMNode findExplodedTextNodeAtPoint:]): Use auto* instead
299         of writing out various types.
300         (-[DOMHTMLAreaElement boundingBoxesWithOwner:]): Use @[]
301         syntax instea of -[NSArray arrayWithObject:].
302         (-[DOMHTMLAreaElement absoluteQuadsWithOwner:]): Ditto.
303         (-[DOMHTMLImageElement dataRepresentation:]): Use auto* instead
304         of writing out various types.
305         (-[DOMHTMLImageElement mimeType]): Ditto.
306
307 2017-07-24  Chris Dumez  <cdumez@apple.com>
308
309         ExceptionCode enumeration should use modern exception names
310         https://bugs.webkit.org/show_bug.cgi?id=174794
311
312         Reviewed by Geoffrey Garen.
313
314         * DOM/ExceptionHandlers.mm:
315         (raiseNotSupportedErrorException):
316
317 2017-07-23  Chris Dumez  <cdumez@apple.com>
318
319         Drop ExceptionCodeDescription class
320         https://bugs.webkit.org/show_bug.cgi?id=174757
321
322         Reviewed by Darin Adler.
323
324         Stop using ExceptionCodeDescription.
325
326         * DOM/ExceptionHandlers.mm:
327         (raiseDOMErrorException):
328
329 2017-07-21  Andreas Kling  <akling@apple.com>
330
331         Use more references in event dispatch code
332         https://bugs.webkit.org/show_bug.cgi?id=174681
333
334         Reviewed by Geoffrey Garen.
335
336         * DOM/ObjCEventListener.h:
337         * DOM/ObjCEventListener.mm:
338         (WebCore::ObjCEventListener::handleEvent):
339         * WebCoreSupport/WebFrameLoaderClient.mm:
340         (NetscapePluginWidget::handleEvent):
341
342 2017-07-21  Brady Eidson  <beidson@apple.com>
343
344         Get rid of WebCore IconDatabase code.
345         https://bugs.webkit.org/show_bug.cgi?id=174700
346
347         Reviewed by Tim Horton.
348
349         * Misc/WebCoreStatistics.mm:
350         (+[WebCoreStatistics iconPageURLMappingCount]):
351         (+[WebCoreStatistics iconRetainedPageURLCount]):
352         (+[WebCoreStatistics iconRecordCount]):
353         (+[WebCoreStatistics iconsWithDataCount]):
354         * WebCoreSupport/WebFrameLoaderClient.h:
355         * WebCoreSupport/WebFrameLoaderClient.mm:
356         * WebCoreSupport/WebIconDatabaseClient.h: Removed.
357         * WebCoreSupport/WebIconDatabaseClient.mm: Removed.
358         * WebView/WebView.mm:
359         (-[WebView mainFrameIconURL]):
360
361 2017-07-20  Chris Dumez  <cdumez@apple.com>
362
363         Drop legacy XPathException type
364         https://bugs.webkit.org/show_bug.cgi?id=174679
365
366         Reviewed by Sam Weinig.
367
368         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
369         no longer expose XPathException.
370
371         * DOM/ExceptionHandlers.mm:
372         (raiseDOMErrorException):
373
374 2017-07-20  Chris Dumez  <cdumez@apple.com>
375
376         Unreviewed, rolling out r219706.
377
378         Broke iOS build
379
380         Reverted changeset:
381
382         "Drop legacy XPathException type"
383         https://bugs.webkit.org/show_bug.cgi?id=174679
384         http://trac.webkit.org/changeset/219706
385
386 2017-07-20  Chris Dumez  <cdumez@apple.com>
387
388         Drop legacy XPathException type
389         https://bugs.webkit.org/show_bug.cgi?id=174679
390
391         Reviewed by Sam Weinig.
392
393         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
394         no longer expose XPathException.
395
396         * DOM/ExceptionHandlers.mm:
397         (raiseDOMErrorException):
398         * WebKit.exp:
399
400 2017-07-20  Chris Dumez  <cdumez@apple.com>
401
402         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable
403         https://bugs.webkit.org/show_bug.cgi?id=174660
404
405         Reviewed by Geoffrey Garen.
406
407         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable.
408         This essentially replaces a branch to figure out if the new size is less or greater than the
409         current size by an assertion.
410
411         * Plugins/WebNetscapePluginView.mm:
412         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
413
414 2017-07-20  Brady Eidson  <beidson@apple.com>
415
416         Deprecate WebIconDatabase in WebKitLegacy/mac.
417         https://bugs.webkit.org/show_bug.cgi?id=174607
418
419         Reviewed by Alex Christensen.
420
421         This patch:
422         1 - Formally deprecates WebIconDatabase (which was never API anyways)
423         2 - Guts the class to where it can only return the default icon at the small size
424         3 - Reworks other parts of WebKitLegacy that used it for anything to either
425             use something else or to not do anything.
426         
427         This patch *could* go much farther. A future patch is what will remove WebCore/IconDatabase
428         and that patch will remove all of the last remnants of WebIconDatabase.
429         
430         * History/WebHistoryItem.mm:
431         (-[WebHistoryItem icon]):
432
433         * Misc/WebIconDatabase.h:
434         * Misc/WebIconDatabase.mm:
435         (-[WebIconDatabase init]):
436         (-[WebIconDatabase iconForURL:withSize:cache:]):
437         (-[WebIconDatabase iconForURL:withSize:]):
438         (-[WebIconDatabase defaultIconWithSize:]):
439         (-[WebIconDatabase defaultIconForURL:withSize:]):
440         (-[WebIconDatabase iconURLForURL:]):
441         (-[WebIconDatabase retainIconForURL:]):
442         (-[WebIconDatabase releaseIconForURL:]):
443         (+[WebIconDatabase delayDatabaseCleanup]):
444         (+[WebIconDatabase allowDatabaseCleanup]):
445         (-[WebIconDatabase setDelegate:]):
446         (-[WebIconDatabase delegate]):
447         (+[WebIconDatabase initialize]): Deleted.
448         (-[WebIconDatabase isEnabled]): Deleted.
449         (-[WebIconDatabase setEnabled:]): Deleted.
450         (-[WebIconDatabase removeAllIcons]): Deleted.
451         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Deleted.
452         (-[WebIconDatabase _sendNotificationForURL:]): Deleted.
453         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]): Deleted.
454         (-[WebIconDatabase _startUpIconDatabase]): Deleted.
455         (-[WebIconDatabase _shutDownIconDatabase]): Deleted.
456         (-[WebIconDatabase _applicationWillTerminate:]): Deleted.
457         (-[WebIconDatabase _iconForFileURL:withSize:]): Deleted.
458         (-[WebIconDatabase _resetCachedWebPreferences:]): Deleted.
459         (-[WebIconDatabase _largestIconFromDictionary:]): Deleted.
460         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]): Deleted.
461         (-[WebIconDatabase _iconFromDictionary:forSize:cache:]): Deleted.
462         (-[WebIconDatabase _scaleIcon:toSize:]): Deleted.
463         (-[WebIconDatabase _databaseDirectory]): Deleted.
464         (webGetNSImage): Deleted.
465
466         * Misc/WebIconDatabaseDelegate.h: Removed.
467         * Misc/WebIconDatabaseInternal.h: Removed.
468         * Misc/WebIconDatabasePrivate.h: Removed.
469
470         * WebCoreSupport/WebFrameLoaderClient.mm:
471         (webGetNSImage):
472
473         * WebCoreSupport/WebIconDatabaseClient.mm:
474         (WebIconDatabaseClient::didRemoveAllIcons):
475         (WebIconDatabaseClient::didImportIconURLForPageURL):
476
477         * WebView/WebView.mm:
478         (-[WebView setFrameLoadDelegate:]):
479         (-[WebView mainFrameIcon]):
480
481 2017-07-18  Andy Estes  <aestes@apple.com>
482
483         [Xcode] Enable CLANG_WARN_RANGE_LOOP_ANALYSIS
484         https://bugs.webkit.org/show_bug.cgi?id=174631
485
486         Reviewed by Tim Horton.
487
488         * Configurations/Base.xcconfig:
489
490 2017-07-18  Andy Estes  <aestes@apple.com>
491
492         [Xcode] Enable CLANG_WARN_OBJC_LITERAL_CONVERSION
493         https://bugs.webkit.org/show_bug.cgi?id=174631
494
495         Reviewed by Sam Weinig.
496
497         * Configurations/Base.xcconfig:
498
499 2017-07-18  Andy Estes  <aestes@apple.com>
500
501         [Xcode] Enable CLANG_WARN_NON_LITERAL_NULL_CONVERSION
502         https://bugs.webkit.org/show_bug.cgi?id=174631
503
504         Reviewed by Dan Bernstein.
505
506         * Configurations/Base.xcconfig:
507
508 2017-07-18  Wenson Hsieh  <wenson_hsieh@apple.com>
509
510         [iOS DnD] [WK1] Add missing calls to WebThreadLock() in some WebView drag-and-drop SPIs
511         https://bugs.webkit.org/show_bug.cgi?id=174640
512         <rdar://problem/33297400>
513
514         Reviewed by Tim Horton.
515
516         Adds a missing call to WebThreadLock() in -_requestStartDataInteraction:globalPosition:. Previously, this was
517         invoked at the call site in UIKit, but was removed after some refactoring in UIKit. Instead, we should lock the
518         web thread here, to match the other WebView drag and drop SPI methods.
519
520         This patch also adds a WebThreadLock() call in -_dataInteractionCaretRect. While this is fine today, since all
521         existing callers of _dataInteractionCaretRect already invoke other methods that WebThreadLock() beforehand, we
522         should make this robust against future UIKit changes that could make this no longer the case.
523
524         * WebView/WebView.mm:
525         (-[WebView _requestStartDataInteraction:globalPosition:]):
526         (-[WebView _dataInteractionCaretRect]):
527
528 2017-07-18  Andy Estes  <aestes@apple.com>
529
530         [Xcode] Enable CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
531         https://bugs.webkit.org/show_bug.cgi?id=174631
532
533         Reviewed by Darin Adler.
534
535         * Configurations/Base.xcconfig:
536
537 2017-07-17  Sam Weinig  <sam@webkit.org>
538
539         [WebIDL] Remove custom bindings that require non-caching JS strings
540         https://bugs.webkit.org/show_bug.cgi?id=174552
541
542         Reviewed by Darin Adler.
543
544         * DOM/DOMHTMLCanvasElement.mm:
545         (-[DOMHTMLCanvasElement toDataURL:]):
546         Update to account for implementation now returning an UncachedString.
547
548 2017-07-17  Darin Adler  <darin@apple.com>
549
550         Improve use of NeverDestroyed
551         https://bugs.webkit.org/show_bug.cgi?id=174348
552
553         Reviewed by Sam Weinig.
554
555         * Misc/WebStringTruncator.mm:
556         (+[WebStringTruncator centerTruncateString:toWidth:]): Replace
557         NeverDestroyed<RetainPtr> with just an NSFont * global.
558
559         * Plugins/Hosted/NetscapePluginHostManager.h: Removed unneeded include of
560         NeverDestroyed.h.
561         * Storage/WebDatabaseManager.mm: Ditto.
562         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
563         * WebCoreSupport/WebPlatformStrategies.mm: Ditto.
564
565         * WebView/WebView.mm: Removed unneeded include of NetworkStateNotifier.h.
566         (aeDescFromJSValue): Removed double hashing by using the return value from
567         add rather than calling contains before calling add.
568
569 2017-07-14  Jer Noble  <jer.noble@apple.com>
570
571         Allow clients to override their own hardware media requirements where no fallback media exists.
572         https://bugs.webkit.org/show_bug.cgi?id=174426
573         <rdar://problem/32537704>
574
575         Reviewed by Eric Carlson.
576
577         Add a new WebPreferences property to control WebCore's new
578         allowMediaContentTypesRequiringHardwareSupportAsFallback setting.
579
580         * WebView/WebPreferenceKeysPrivate.h:
581         * WebView/WebPreferences.mm:
582         (+[WebPreferences initialize]):
583         (-[WebPreferences allowMediaContentTypesRequiringHardwareSupportAsFallback]):
584         (-[WebPreferences setAllowMediaContentTypesRequiringHardwareSupportAsFallback:]):
585         * WebView/WebPreferencesPrivate.h:
586         * WebView/WebView.mm:
587         (-[WebView _preferencesChanged:]):
588
589 2017-07-12  Said Abou-Hallawa  <sabouhallawa@apple.com>
590
591         Async image decoding for large images should be disabled by default
592         https://bugs.webkit.org/show_bug.cgi?id=174432
593
594         Reviewed by Simon Fraser.
595
596         -- Remove setting the bit PaintBehaviorSnapshotting in any new PaintBehavoir.
597         -- Return PaintBehaviorAllowAsyncImageDecoding when the return value was 0.
598         -- Propagate PaintBehaviorAllowAsyncImageDecoding from a parent view to 
599            a child view instead of propagating PaintBehaviorSnapshotting.
600         -- Replace setting the bit PaintBehaviorSnapshotting in an existing PaintBehavoir
601            by resetting the bit PaintBehaviorAllowAsyncImageDecoding.
602
603         * WebView/WebFrame.mm:
604         (-[WebFrame _paintBehaviorForDestinationContext:]):
605         (-[WebFrame _drawRect:contentsOnly:]):
606         * WebView/WebHTMLView.mm:
607         (imageFromRect):
608
609 2017-07-12  Daniel Bates  <dabates@apple.com>
610
611         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
612         https://bugs.webkit.org/show_bug.cgi?id=174427
613
614         Rubber-stamped by Brady Eidson.
615
616         * WebView/WebPDFView.mm:
617         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
618
619 2017-07-12  Matt Lewis  <jlewis3@apple.com>
620
621         Unreviewed, rolling out r219401.
622
623         This revision rolled out the previous patch, but after talking
624         with reviewer, a rebaseline is what was needed.Rolling back in
625         before rebaseline.
626
627         Reverted changeset:
628
629         "Unreviewed, rolling out r219379."
630         https://bugs.webkit.org/show_bug.cgi?id=174400
631         http://trac.webkit.org/changeset/219401
632
633 2017-07-12  Matt Lewis  <jlewis3@apple.com>
634
635         Unreviewed, rolling out r219379.
636
637         This revision caused a consistent failure in the test
638         fast/dom/Window/property-access-on-cached-window-after-frame-
639         removed.html.
640
641         Reverted changeset:
642
643         "Remove NAVIGATOR_HWCONCURRENCY"
644         https://bugs.webkit.org/show_bug.cgi?id=174400
645         http://trac.webkit.org/changeset/219379
646
647 2017-07-11  Dean Jackson  <dino@apple.com>
648
649         Remove NAVIGATOR_HWCONCURRENCY
650         https://bugs.webkit.org/show_bug.cgi?id=174400
651
652         * Configurations/FeatureDefines.xcconfig:
653
654 2017-07-11  Dean Jackson  <dino@apple.com>
655
656         Rolling out r219372.
657
658         * Configurations/FeatureDefines.xcconfig:
659
660 2017-07-11  Dean Jackson  <dino@apple.com>
661
662         Remove NAVIGATOR_HWCONCURRENCY
663         https://bugs.webkit.org/show_bug.cgi?id=174400
664
665         * Configurations/FeatureDefines.xcconfig:
666
667 2017-07-03  Brian Burg  <bburg@apple.com>
668
669         Web Replay: remove some unused code
670         https://bugs.webkit.org/show_bug.cgi?id=173903
671
672         Rubber-stamped by Joseph Pecoraro.
673
674         * Configurations/FeatureDefines.xcconfig:
675
676 2017-07-09  Brady Eidson  <beidson@apple.com>
677
678         Remove some obsolete WebKitVersionChecks.
679         https://bugs.webkit.org/show_bug.cgi?id=174294
680
681         Reviewed by Dan Bernstein.
682
683         * Misc/WebKitVersionChecks.h:
684
685         * WebView/WebHTMLView.mm:
686         (-[WebHTMLView hitTest:]):
687
688         * WebView/WebView.mm:
689         (shouldRespectPriorityInCSSAttributeSetters):
690         (-[WebView _commonInitializationWithFrameName:groupName:]):
691         (-[WebView _preferencesChanged:]):
692         (shouldTransformsAffectOverflow): Deleted.
693         (shouldDispatchJavaScriptWindowOnErrorEvents): Deleted.
694
695 2017-07-08  Brady Eidson  <beidson@apple.com>
696
697         Remove some obsolete RuntimeApplicationChecks.
698         https://bugs.webkit.org/show_bug.cgi?id=174293
699
700         Reviewed by Dan Bernstein.
701
702         * Misc/WebKitVersionChecks.h:
703         * WebView/WebView.mm:
704         (+[WebView enableWebThread]):
705         (-[WebView _needsPreHTML5ParserQuirks]):
706
707 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
708
709         Drop NOSNIFF compile flag
710         https://bugs.webkit.org/show_bug.cgi?id=174289
711
712         Reviewed by Michael Catanzaro.
713
714         * Configurations/FeatureDefines.xcconfig:
715
716 2017-07-06  Yusuke Suzuki  <utatane.tea@gmail.com>
717
718         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
719         https://bugs.webkit.org/show_bug.cgi?id=174150
720
721         Reviewed by Mark Lam.
722
723         * DOM/DOM.mm:
724         (lookupElementClass):
725
726 2017-07-06  Brady Eidson  <beidson@apple.com>
727
728         Add logging to first attempt to use the WebIconDatabase class.
729         https://bugs.webkit.org/show_bug.cgi?id=174190
730
731         Reviewed by Andy Estes.
732
733         * Misc/WebIconDatabase.mm:
734         (+[WebIconDatabase sharedIconDatabase]): On first call, log a warning of the bleak future of this non-API.
735         * Misc/WebKitVersionChecks.h:
736
737 2017-07-06  Matt Lewis  <jlewis3@apple.com>
738
739         Unreviewed, rolling out r219178.
740
741         This caused a consistent failure with the API test
742         StringBuilderTest.ToAtomicStringOnEmpty on all Debug testers.
743
744         Reverted changeset:
745
746         "[WTF] Clean up StringStatics.cpp by using
747         LazyNeverDestroyed<> for Atoms"
748         https://bugs.webkit.org/show_bug.cgi?id=174150
749         http://trac.webkit.org/changeset/219178
750
751 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
752
753         [WTF] Move SoftLinking.h into WTF
754         https://bugs.webkit.org/show_bug.cgi?id=174000
755
756         Reviewed by Alex Christensen.
757
758         * Plugins/WebNetscapePluginView.mm:
759         * Plugins/WebPluginController.mm:
760         * WebCoreSupport/WebInspectorClient.mm:
761         * WebView/WebFullScreenController.mm:
762         * WebView/WebImmediateActionController.mm:
763         * WebView/WebView.mm:
764
765 2017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
766
767         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
768         https://bugs.webkit.org/show_bug.cgi?id=174150
769
770         Reviewed by Mark Lam.
771
772         * DOM/DOM.mm:
773         (lookupElementClass):
774
775 2017-07-05  Brady Eidson  <beidson@apple.com>
776
777         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
778         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
779
780         Reviewed by Alex Christensen.
781
782         Adopt to the new constructor for FrameLoadRequest.
783
784         * WebView/WebPDFView.mm:
785         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
786
787 2017-07-05  Ryosuke Niwa  <rniwa@webkit.org>
788
789         Make WebKit's public headers on Mac and iOS C++ module safe
790         https://bugs.webkit.org/show_bug.cgi?id=174175
791
792         Reviewed by Alex Christensen.
793
794         Fixed the header files.
795
796         * Misc/WebDownload.h:
797         * Misc/WebKitErrors.h:
798         * Plugins/WebPluginContainer.h:
799         * WebView/WebResourceLoadDelegate.h:
800
801 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
802
803         Remove copy of ICU headers from WebKit
804         https://bugs.webkit.org/show_bug.cgi?id=116407
805
806         Reviewed by Alex Christensen.
807
808         Use WTF's copy of ICU headers.
809
810         * Configurations/WebKitLegacy.xcconfig:
811         * icu/unicode/localpointer.h: Removed.
812         * icu/unicode/parseerr.h: Removed.
813         * icu/unicode/platform.h: Removed.
814         * icu/unicode/ptypes.h: Removed.
815         * icu/unicode/putil.h: Removed.
816         * icu/unicode/uchar.h: Removed.
817         * icu/unicode/uconfig.h: Removed.
818         * icu/unicode/ucurr.h: Removed.
819         * icu/unicode/uidna.h: Removed.
820         * icu/unicode/uiter.h: Removed.
821         * icu/unicode/umachine.h: Removed.
822         * icu/unicode/unorm.h: Removed.
823         * icu/unicode/unorm2.h: Removed.
824         * icu/unicode/urename.h: Removed.
825         * icu/unicode/uscript.h: Removed.
826         * icu/unicode/ustring.h: Removed.
827         * icu/unicode/utf.h: Removed.
828         * icu/unicode/utf16.h: Removed.
829         * icu/unicode/utf8.h: Removed.
830         * icu/unicode/utf_old.h: Removed.
831         * icu/unicode/utypes.h: Removed.
832         * icu/unicode/uvernum.h: Removed.
833         * icu/unicode/uversion.h: Removed.
834
835 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
836
837         Add WebKitPrivateFrameworkStubs for iOS 11
838         https://bugs.webkit.org/show_bug.cgi?id=173988
839
840         Reviewed by David Kilzer.
841
842         * Configurations/WebKitLegacy.xcconfig: iphoneos and iphonesimulator should
843         use the same directory for private framework stubs.
844
845 2017-07-03  Matt Lewis  <jlewis3@apple.com>
846
847         Unreviewed, rolling out r219103.
848
849         Caused multiple build failures.
850
851         Reverted changeset:
852
853         "Remove copy of ICU headers from WebKit"
854         https://bugs.webkit.org/show_bug.cgi?id=116407
855         http://trac.webkit.org/changeset/219103
856
857 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
858
859         Remove copy of ICU headers from WebKit
860         https://bugs.webkit.org/show_bug.cgi?id=116407
861
862         Reviewed by Alex Christensen.
863
864         Use WTF's copy of ICU headers.
865
866         * Configurations/WebKitLegacy.xcconfig:
867         * icu/unicode/localpointer.h: Removed.
868         * icu/unicode/parseerr.h: Removed.
869         * icu/unicode/platform.h: Removed.
870         * icu/unicode/ptypes.h: Removed.
871         * icu/unicode/putil.h: Removed.
872         * icu/unicode/uchar.h: Removed.
873         * icu/unicode/uconfig.h: Removed.
874         * icu/unicode/ucurr.h: Removed.
875         * icu/unicode/uidna.h: Removed.
876         * icu/unicode/uiter.h: Removed.
877         * icu/unicode/umachine.h: Removed.
878         * icu/unicode/unorm.h: Removed.
879         * icu/unicode/unorm2.h: Removed.
880         * icu/unicode/urename.h: Removed.
881         * icu/unicode/uscript.h: Removed.
882         * icu/unicode/ustring.h: Removed.
883         * icu/unicode/utf.h: Removed.
884         * icu/unicode/utf16.h: Removed.
885         * icu/unicode/utf8.h: Removed.
886         * icu/unicode/utf_old.h: Removed.
887         * icu/unicode/utypes.h: Removed.
888         * icu/unicode/uvernum.h: Removed.
889         * icu/unicode/uversion.h: Removed.
890
891 2017-07-03  Brady Eidson  <beidson@apple.com>
892
893         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
894         https://bugs.webkit.org/show_bug.cgi?id=174073
895
896         Reviewed by Andy Estes.
897
898         WebView now keeps a direct copy of its main frame icon as a member variable.
899         It populates that variable by finding exactly one Favicon LinkIcon from WebCore and loading it.
900         
901         This change causes a progression in KVO observation of the mainFrameIcon property as we now
902         have both the old icon and new icon at the time it changes.
903
904         * WebCoreSupport/WebFrameLoaderClient.h:
905         * WebCoreSupport/WebFrameLoaderClient.mm:
906         (WebFrameLoaderClient::prepareForDataSourceReplacement):
907         (WebFrameLoaderClient::getLoadDecisionForIcons):
908         (WebFrameLoaderClient::finishedLoadingIcon):
909         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
910         (WebFrameLoaderClient::registerForIconNotification): Deleted.
911
912         * WebView/WebView.mm:
913         (+[WebView _setIconLoadingEnabled:]):
914         (+[WebView _isIconLoadingEnabled]):
915         (-[WebView mainFrameIcon]):
916         (-[WebView _setMainFrameIcon:]):
917         (-[WebView _receivedIconChangedNotification:]): Deleted.
918         (-[WebView _registerForIconNotification:]): Deleted.
919         (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Deleted.
920         * WebView/WebViewData.h:
921         * WebView/WebViewInternal.h:
922         * WebView/WebViewPrivate.h:
923
924 2017-07-03  Sam Weinig  <sam@webkit.org>
925
926         [WebIDL] Remove more unnecessary uses of the preprocessor in idl files
927         https://bugs.webkit.org/show_bug.cgi?id=174083
928
929         Reviewed by Alex Christensen.
930
931         * Configurations/FeatureDefines.xcconfig:
932         Add ENABLE_NAVIGATOR_STANDALONE.
933
934 2017-07-03  Tim Horton  <timothy_horton@apple.com>
935
936         Expose unobscuredSafeAreaInsets on WebView
937         https://bugs.webkit.org/show_bug.cgi?id=174075
938         <rdar://problem/33096997>
939
940         Reviewed by Beth Dakin.
941
942         * WebView/WebView.mm:
943         (-[WebView _setUnobscuredSafeAreaInsets:]):
944         (-[WebView _unobscuredSafeAreaInsets]):
945         * WebView/WebViewPrivate.h:
946         Expose unobscuredSafeAreaInsets as a new private property on WebView,
947         similar to how it is exposed in WebKit2.
948
949 2017-07-03  Andy Estes  <aestes@apple.com>
950
951         [Xcode] Add an experimental setting to build with ccache
952         https://bugs.webkit.org/show_bug.cgi?id=173875
953
954         Reviewed by Tim Horton.
955
956         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
957
958 2017-07-03  Tim Horton  <timothy_horton@apple.com>
959
960         Expose WebPreferences for viewport-fit and constant() properties
961         https://bugs.webkit.org/show_bug.cgi?id=174072
962         <rdar://problem/33096639>
963
964         Reviewed by Ryosuke Niwa.
965
966         * WebView/WebPreferenceKeysPrivate.h:
967         * WebView/WebPreferences.mm:
968         (-[WebPreferences viewportFitEnabled]):
969         (-[WebPreferences setViewportFitEnabled:]):
970         (-[WebPreferences constantPropertiesEnabled]):
971         (-[WebPreferences setConstantPropertiesEnabled:]):
972         * WebView/WebPreferencesPrivate.h:
973         * WebView/WebView.mm:
974         (-[WebView _preferencesChanged:]):
975
976 2017-07-01  Tim Horton  <timothy_horton@apple.com>
977
978         Expose viewport-fit value to UIKit via viewport arguments dictionary
979         https://bugs.webkit.org/show_bug.cgi?id=174071
980         <rdar://problem/33096620>
981
982         Reviewed by Wenson Hsieh.
983
984         * History/WebHistoryItem.mm:
985         * History/WebHistoryItemPrivate.h:
986         Add another dictionary key and three values.
987
988 2017-07-01  Dan Bernstein  <mitz@apple.com>
989
990         [iOS] Remove code only needed when building for iOS 9.x
991         https://bugs.webkit.org/show_bug.cgi?id=174068
992
993         Reviewed by Tim Horton.
994
995         * Configurations/FeatureDefines.xcconfig:
996
997 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
998
999         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
1000         https://bugs.webkit.org/show_bug.cgi?id=174004
1001
1002         Reviewed by Simon Fraser.
1003
1004         * WebCoreSupport/WebPluginInfoProvider.mm:
1005
1006 2017-07-01  Dan Bernstein  <mitz@apple.com>
1007
1008         [macOS] Remove code only needed when building for OS X Yosemite
1009         https://bugs.webkit.org/show_bug.cgi?id=174067
1010
1011         Reviewed by Tim Horton.
1012
1013         * Configurations/Base.xcconfig:
1014         * Configurations/DebugRelease.xcconfig:
1015         * Configurations/FeatureDefines.xcconfig:
1016         * Configurations/Version.xcconfig:
1017         * Plugins/WebBasePluginPackage.mm:
1018         (-[WebBasePluginPackage getPluginInfoFromPLists]):
1019         * WebCoreSupport/PopupMenuMac.mm:
1020         (PopupMenuMac::show):
1021         * WebCoreSupport/WebInspectorClient.mm:
1022         (WebInspectorFrontendClient::startWindowDrag):
1023         (-[WebInspectorWindowController window]):
1024         * WebView/WebView.mm:
1025         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1026
1027 2017-06-30  Daniel Bates  <dabates@apple.com>
1028
1029         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
1030         https://bugs.webkit.org/show_bug.cgi?id=165160
1031         <rdar://problem/29451999>
1032
1033         Reviewed by Brady Eidson.
1034
1035         Pass the document that is requesting the load to the loader.
1036
1037         * WebView/WebPDFView.mm:
1038         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1039
1040 2017-06-29  Jer Noble  <jer.noble@apple.com>
1041
1042         Make Legacy EME API controlled by RuntimeEnabled setting.
1043         https://bugs.webkit.org/show_bug.cgi?id=173994
1044
1045         Reviewed by Sam Weinig.
1046
1047         Add a new preference used to control WebCore's new RuntimeEnabledFeature setting.
1048
1049         * Configurations/FeatureDefines.xcconfig:
1050         * WebView/WebPreferenceKeysPrivate.h:
1051         * WebView/WebPreferences.mm:
1052         (+[WebPreferences initialize]):
1053         (-[WebPreferences legacyEncryptedMediaAPIEnabled]):
1054         (-[WebPreferences setLegacyEncryptedMediaAPIEnabled:]):
1055         * WebView/WebPreferencesPrivate.h:
1056         * WebView/WebView.mm:
1057         (-[WebView _preferencesChanged:]):
1058
1059 2017-06-30  Chris Dumez  <cdumez@apple.com>
1060
1061         ResourceLoadObserver does not need a ResourceLoadStatisticsStore
1062         https://bugs.webkit.org/show_bug.cgi?id=174013
1063
1064         Reviewed by Brent Fulgham.
1065
1066         ResourceLoadObserver does not need a ResourceLoadStatisticsStore. ResourceLoadStatisticsStore is too complicated for its needs.
1067         ResourceLoadStatisticsStore can then be moved to WebKit2/UIProcess in a follow-up.
1068
1069         * WebView/WebView.mm:
1070         (-[WebView _commonInitializationWithFrameName:groupName:]):
1071
1072 2017-06-30  Wenson Hsieh  <wenson_hsieh@apple.com>
1073
1074         [iOS DnD] Drag caret rect is incorrectly computed when dropping in editable content in iframes
1075         https://bugs.webkit.org/show_bug.cgi?id=174017
1076         <rdar://problem/32959782>
1077
1078         Reviewed by Simon Fraser.
1079
1080         Use root view coordinates when computing the drag caret rect.
1081
1082         * WebView/WebView.mm:
1083         (-[WebView _dataInteractionCaretRect]):
1084
1085 2017-06-28  Simon Fraser  <simon.fraser@apple.com>
1086
1087         Mark the GraphicsContext as accelerated when the WebHTMLView's layer is drawing asynchronously
1088         https://bugs.webkit.org/show_bug.cgi?id=173899
1089         rdar://problem/32994474
1090
1091         Reviewed by Tim Horton.
1092
1093         When the WebHTMLView is layer-backed, and -drawsAsynchronously on its layer is YES,
1094         then mark the GraphicsContext that WebCore is using for drawing as accelerated, so
1095         that ImageBuffer::createCompatibleBuffer() creates appropriately matched buffers.
1096
1097         Also clean up WebFrame a little, sharing code that checks whether the WebFrame's
1098         documentView is a WebHTMLView.
1099
1100         * WebView/WebFrame.mm:
1101         (-[WebFrame _webHTMLDocumentView]):
1102         (-[WebFrame _paintBehaviorForDestinationContext:]):
1103         (-[WebFrame _drawRect:contentsOnly:]):
1104         (-[WebFrame setTimeoutsPaused:]):
1105         (-[WebFrame prepareForPause]):
1106         (-[WebFrame resumeFromPause]):
1107         (-[WebFrame resetTextAutosizingBeforeLayout]):
1108         * WebView/WebHTMLView.mm:
1109         (-[WebHTMLView drawLayer:inContext:]):
1110         (-[WebHTMLView _web_isDrawingIntoAcceleratedLayer]):
1111         * WebView/WebHTMLViewInternal.h:
1112
1113 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1114
1115         [iOS DnD] Support dragging out of contenteditable areas without a prior selection
1116         https://bugs.webkit.org/show_bug.cgi?id=173854
1117         <rdar://problem/32236827>
1118
1119         Reviewed by Ryosuke Niwa and Tim Horton.
1120
1121         Vends some information from the DragItem passed into -[WebView _startDrag:] through the WebView as SPI for
1122         WebKit1 clients. No behavior change with these changes alone -- see <rdar://problem/32991062> for more detail.
1123
1124         * WebView/WebView.mm:
1125         (-[WebView _startDrag:]):
1126         (-[WebView _dragSourceAction]):
1127         (-[WebView _draggedLinkTitle]):
1128         (-[WebView _draggedLinkURL]):
1129         (-[WebView _draggedElementBounds]):
1130         (-[WebView _endedDataInteraction:global:]):
1131         * WebView/WebViewData.h:
1132         * WebView/WebViewPrivate.h:
1133
1134 2017-06-26  Wenson Hsieh  <wenson_hsieh@apple.com>
1135
1136         Refactor drag start codepaths to plumb a DragItem to client layers
1137         https://bugs.webkit.org/show_bug.cgi?id=173832
1138         Work towards <rdar://problem/32236827>
1139
1140         Reviewed by Ryosuke Niwa and Tim Horton.
1141
1142         Refactor code used to start a drag in WebKit1 to plumb a single DragItem from DragController to the client layer
1143         in WebDragClient that contains all the information needed to begin a drag. Also renames _setDataInteractionData:
1144         to _startDrag: to match logic used to start a drag on other platforms.
1145
1146         No behavior change -- the same information should be propagated to AppKit and UIKit when beginning a drag, only
1147         through the DragItem struct.
1148
1149         * WebCoreSupport/WebDragClient.h:
1150         * WebCoreSupport/WebDragClient.mm:
1151         (WebDragClient::startDrag):
1152         (WebDragClient::dragSourceActionMaskForPoint):
1153         (WebDragClient::willPerformDragSourceAction):
1154         (WebDragClient::beginDrag):
1155         * WebView/WebView.mm:
1156         (-[WebView _startDrag:]):
1157         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]): Deleted.
1158         * WebView/WebViewInternal.h:
1159
1160 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
1161
1162         Remove excessive headers from JavaScriptCore
1163         https://bugs.webkit.org/show_bug.cgi?id=173812
1164
1165         Reviewed by Darin Adler.
1166
1167         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1168         * WebView/WebView.mm:
1169
1170 2017-06-23  Tim Horton  <timothy_horton@apple.com>
1171
1172         Remove an unused typedef from WebFrameLoaderClient
1173         https://bugs.webkit.org/show_bug.cgi?id=173795
1174
1175         Reviewed by Simon Fraser.
1176
1177         * WebCoreSupport/WebFrameLoaderClient.h:
1178         This unused typedef in the global namespace conflicts with one in a macOS system header.
1179         Also... it's unused.
1180         Remove it.
1181
1182 2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
1183
1184         Remove excessive headers from WebCore/{bindings,css,dom}
1185         https://bugs.webkit.org/show_bug.cgi?id=173766
1186
1187         Reviewed by Simon Fraser.
1188
1189         * DOM/DOMInternal.mm:
1190
1191 2017-06-22  Daniel Bates  <dabates@apple.com>
1192
1193         Make FrameLoadRequest a move-only type
1194         https://bugs.webkit.org/show_bug.cgi?id=173682
1195
1196         Reviewed by Alex Christensen and Darin Adler.
1197
1198         A FrameLoadRequest groups together the information to perform a load into a single object
1199         that is more manageable to pass around than its constituent parts. Code that receives a
1200         FrameLoadRequest is expected to extract out the information it needs to complete its task.
1201         And it does not make sense to re-use the same FrameLoadRequest object for more than one
1202         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
1203
1204         * Plugins/WebPluginController.mm:
1205         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1206         * WebView/WebPDFView.mm:
1207         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1208
1209 2017-06-21  Antoine Quint  <graouts@apple.com>
1210
1211         Ensure DRT always logs rAF suspension debugging code
1212         https://bugs.webkit.org/show_bug.cgi?id=173681
1213
1214         Reviewed by Tim "Mr. T" Horton.
1215
1216         * WebView/WebPreferenceKeysPrivate.h:
1217         * WebView/WebPreferences.mm:
1218         (+[WebPreferences initialize]):
1219         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]): Deleted.
1220         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]): Deleted.
1221         * WebView/WebPreferencesPrivate.h:
1222         * WebView/WebView.mm:
1223         (-[WebView _preferencesChanged:]):
1224
1225 2017-06-21  Daniel Bates  <dabates@apple.com>
1226
1227         Cleanup FrameLoadRequest
1228         https://bugs.webkit.org/show_bug.cgi?id=173564
1229         <rdar://problem/32903570>
1230
1231         Reviewed by Brent Fulgham.
1232
1233         * WebView/WebPDFView.mm:
1234         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Move FrameLoadRequest instantiation
1235         into a local variable and use C++11 brace initialization syntax to make it easier to identify
1236         the arguments passed to FrameLoader::loadFrameRequest().
1237
1238 2017-06-21  Antoine Quint  <graouts@apple.com>
1239
1240         Add logging to identify when the Page suspends scripted animations
1241         https://bugs.webkit.org/show_bug.cgi?id=173626
1242
1243         Reviewed by Tim Horton.
1244
1245         Add a new preference to control the new shouldLogScriptedAnimationControllerSuspensionChange settings
1246         through WebKit. This is specific to WK1 since the issue we're trying to pinpoint only occurs on WK1 bots.
1247
1248         * WebView/WebPreferenceKeysPrivate.h:
1249         * WebView/WebPreferences.mm:
1250         (+[WebPreferences initialize]):
1251         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]):
1252         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]):
1253         * WebView/WebPreferencesPrivate.h:
1254         * WebView/WebView.mm:
1255         (-[WebView _preferencesChanged:]):
1256
1257 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
1258
1259         Disable font variations on macOS Sierra and iOS 10
1260         https://bugs.webkit.org/show_bug.cgi?id=173618
1261         <rdar://problem/32879164>
1262
1263         Reviewed by Jon Lee.
1264
1265         * Configurations/FeatureDefines.xcconfig:
1266
1267 2017-06-20  Daniel Bates  <dabates@apple.com>
1268
1269         Have FrameLoadRequest takes a Frame& instead of a Frame*
1270         https://bugs.webkit.org/show_bug.cgi?id=173614
1271         <rdar://problem/32884890>
1272
1273         Reviewed by Brent Fulgham.
1274
1275         * Plugins/WebPluginController.mm:
1276         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1277         * WebView/WebFrame.mm:
1278         (-[WebFrame loadRequest:]):
1279         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1280
1281 2017-06-19  Frederic Wang  <fwang@igalia.com>
1282
1283         [Mac] Add an experimental feature setting for async frame scrolling
1284         https://bugs.webkit.org/show_bug.cgi?id=173359
1285
1286         Reviewed by Simon Fraser.
1287
1288         * WebView/WebPreferenceKeysPrivate.h: Declare key for async frame scrolling preference.
1289         * WebView/WebPreferences.mm:
1290         (+[WebPreferences initialize]): Initialize async frame scrolling preference to false.
1291         (-[WebPreferences asyncFrameScrollingEnabled]): Define getter for async frame scrolling.
1292         (-[WebPreferences setAsyncFrameScrollingEnabled:]): Define setter for async frame scrolling.
1293         * WebView/WebPreferencesPrivate.h: Declare setter and getter.
1294         * WebView/WebView.mm:
1295         (-[WebView _preferencesChanged:]): Take into account preference update for async frame
1296         scrolling.
1297
1298 2017-06-19  Chris Dumez  <cdumez@apple.com>
1299
1300         Use WTF::Function instead of std::function in more places in WebCore/
1301         https://bugs.webkit.org/show_bug.cgi?id=173535
1302
1303         Reviewed by Antti Koivisto.
1304
1305         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
1306
1307         * WebCoreSupport/WebFrameLoaderClient.h:
1308         * WebCoreSupport/WebFrameLoaderClient.mm:
1309         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1310         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1311         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1312         (WebFrameLoaderClient::dispatchWillSubmitForm):
1313         (WebFrameLoaderClient::setUpPolicyListener):
1314         (-[WebFramePolicyListener initWithFrame:policyFunction:]):
1315         (-[WebFramePolicyListener initWithFrame:policyFunction:appLinkURL:]):
1316
1317 2017-05-14 Frederic Wang  <fwang@igalia.com>
1318
1319         Add heuristic to avoid flattening "fullscreen" iframes
1320         https://bugs.webkit.org/show_bug.cgi?id=171914
1321
1322         Reviewed by Simon Fraser.
1323
1324         This commit adjusts the mac/ios preference interface to treat frame flattening as an enum.
1325
1326         * WebView/WebPreferenceKeysPrivate.h: Rename the key.
1327         * WebView/WebPreferences.mm:
1328         (+[WebPreferences initialize]): Handle frame flattening as an enum.
1329         (-[WebPreferences isFrameFlatteningEnabled]): Ditto.
1330         (-[WebPreferences setFrameFlatteningEnabled:]): Ditto.
1331         (-[WebPreferences frameFlattening]): New function to get frame flattening as an enum.
1332         (-[WebPreferences setFrameFlattening:]): New function to set frame flattening as an enum.
1333         * WebView/WebPreferencesPrivate.h: Ditto.
1334         * WebView/WebView.mm:
1335         (-[WebView _preferencesChanged:]): Ditto.
1336         * WebView/WebPreferencesPrivate.h: Add new enum definition.
1337
1338 2017-06-17  Chris Dumez  <cdumez@apple.com>
1339
1340         Use WTF::Function instead of std::function in WebKit2/
1341         https://bugs.webkit.org/show_bug.cgi?id=173504
1342
1343         Reviewed by Darin Adler.
1344
1345         Use WTF::Function instead of std::function in WebKit2/ to avoid
1346         unnecessary copying.
1347
1348         * Plugins/Hosted/HostedNetscapePluginStream.h:
1349         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1350         (WebKit::HostedNetscapePluginStream::willSendRequest):
1351         * Plugins/WebNetscapePluginStream.h:
1352         * Plugins/WebNetscapePluginStream.mm:
1353         (WebNetscapePluginStream::willSendRequest):
1354         * WebCoreSupport/WebPaymentCoordinatorClient.h:
1355         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
1356         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
1357         (WebPaymentCoordinatorClient::openPaymentSetup):
1358
1359 2017-06-16  Sam Weinig  <sam@webkit.org>
1360
1361         [WebIDL] Remove custom bindings for HTMLDocument
1362         https://bugs.webkit.org/show_bug.cgi?id=173444
1363
1364         Reviewed by Darin Adler.
1365
1366         * DOM/DOMHTMLDocument.mm:
1367         (-[DOMHTMLDocument linkColor]):
1368         (-[DOMHTMLDocument setLinkColor:]):
1369         (-[DOMHTMLDocument write:]):
1370         (-[DOMHTMLDocument writeln:]):
1371         Update for new signature of write/writeln and rename of linkColor to linkColorForBindings.
1372
1373 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
1374
1375         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
1376         https://bugs.webkit.org/show_bug.cgi?id=173366
1377         <rdar://problem/32767014>
1378
1379         Reviewed by Tim Horton.
1380
1381         Move pieces of iOS WebKit1 drag and drop implementation into OpenSource. No change in behavior.
1382
1383         * Configurations/FeatureDefines.xcconfig:
1384         * WebCoreSupport/WebDragClient.mm:
1385         (WebDragClient::useLegacyDragClient):
1386         (WebDragClient::willPerformDragDestinationAction):
1387         (WebDragClient::dragSourceActionMaskForPoint):
1388         (WebDragClient::willPerformDragSourceAction):
1389         (WebDragClient::startDrag):
1390         (WebDragClient::beginDrag):
1391         (WebDragClient::declareAndWriteDragImage):
1392         (WebDragClient::declareAndWriteAttachment):
1393         (WebDragClient::didConcludeEditDrag):
1394         * WebView/WebView.mm:
1395         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
1396         (-[WebView _getDataInteractionData]):
1397         (-[WebView dragDataForSession:client:global:operation:]):
1398         (-[WebView _enteredDataInteraction:client:global:operation:]):
1399         (-[WebView _updatedDataInteraction:client:global:operation:]):
1400         (-[WebView _exitedDataInteraction:client:global:operation:]):
1401         (-[WebView _performDataInteraction:client:global:operation:]):
1402         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
1403         (-[WebView _endedDataInteraction:global:]):
1404         (-[WebView _didConcludeEditDataInteraction]):
1405         (floatRectsForCGRectArray): Deleted.
1406         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]): Deleted.
1407         * WebView/WebViewData.h:
1408         * WebView/WebViewData.mm:
1409         (-[WebViewPrivate dealloc]):
1410         * WebView/WebViewPrivate.h:
1411
1412 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
1413
1414         [iOS DnD] [WK1] Dropping links onto UIWebViews should not trigger navigation by default
1415         https://bugs.webkit.org/show_bug.cgi?id=173454
1416         <rdar://problem/31720671>
1417
1418         Reviewed by Tim Horton.
1419
1420         Adds -webView:dragDestinationActionMaskForSession: as SPI to WebUIDelegate.
1421         If unimplemented, the default UI delegate allows all actions except for URL loading.
1422
1423         * DefaultDelegates/WebDefaultUIDelegate.mm:
1424         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForSession:]):
1425         * WebView/WebUIDelegatePrivate.h:
1426         * WebView/WebView.mm:
1427         (-[WebView dragDestinationActionMaskForSession:]):
1428
1429 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
1430
1431         Using -[WebItemProviderPasteboard setItemProviders:] to swap out item providers before a drop breaks item provider loading
1432         https://bugs.webkit.org/show_bug.cgi?id=173338
1433         <rdar://problem/32777720>
1434
1435         Reviewed by Tim Horton.
1436
1437         Rename updatePreferredTypeIdentifiers to updateSupportedTypeIdentifiers.
1438
1439         * WebCoreSupport/WebPlatformStrategies.h:
1440         * WebCoreSupport/WebPlatformStrategies.mm:
1441         (WebPlatformStrategies::updateSupportedTypeIdentifiers):
1442         (WebPlatformStrategies::updatePreferredTypeIdentifiers): Deleted.
1443
1444 2017-06-13  Daniel Bates  <dabates@apple.com>
1445
1446         Implement W3C Secure Contexts Draft Specification
1447         https://bugs.webkit.org/show_bug.cgi?id=158121
1448         <rdar://problem/26012994>
1449
1450         Reviewed by Brent Fulgham.
1451
1452         Part 4
1453
1454         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
1455
1456         * WebView/WebPreferenceKeysPrivate.h:
1457         * WebView/WebPreferences.mm:
1458         (+[WebPreferences initialize]):
1459         (-[WebPreferences isSecureContextAttributeEnabled]):
1460         (-[WebPreferences setIsSecureContextAttributeEnabled:]):
1461         * WebView/WebPreferencesPrivate.h:
1462         * WebView/WebView.mm:
1463         (-[WebView _preferencesChanged:]):
1464
1465 2017-06-13  Sam Weinig  <sam@webkit.org>
1466
1467         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
1468         https://bugs.webkit.org/show_bug.cgi?id=80733
1469
1470         Reviewed by Chris Dumez.
1471
1472         * DOM/DOMUtility.mm:
1473         (createDOMWrapper):
1474         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1475         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
1476         * WebView/WebFrame.mm:
1477         (-[WebFrame _attachScriptDebugger]):
1478         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1479
1480 2017-06-12  Jiewen Tan  <jiewen_tan@apple.com>
1481
1482         [WebCrypto] Remove experimental feature flag of SubtleCrypto
1483         https://bugs.webkit.org/show_bug.cgi?id=173197
1484         <rdar://problem/32688148>
1485
1486         Reviewed by Brent Fulgham.
1487
1488         * WebView/WebPreferences.mm:
1489         (+[WebPreferences initialize]):
1490         (-[WebPreferences subtleCryptoEnabled]): Deleted.
1491         (-[WebPreferences setSubtleCryptoEnabled:]): Deleted.
1492         * WebView/WebPreferencesPrivate.h:
1493         * WebView/WebView.mm:
1494         (-[WebView _preferencesChanged:]):
1495
1496 2017-06-10  Dan Bernstein  <mitz@apple.com>
1497
1498         Reverted r218056 because it made the IDE reindex constantly.
1499
1500         * Configurations/DebugRelease.xcconfig:
1501
1502 2017-06-10  Dan Bernstein  <mitz@apple.com>
1503
1504         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
1505         https://bugs.webkit.org/show_bug.cgi?id=173223
1506
1507         Reviewed by Sam Weinig.
1508
1509         The rebuilds were happening due to a difference in the compiler options that the IDE and
1510         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
1511         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
1512         specify an appropriate path in CLANG_INDEX_STORE_PATH.
1513
1514         * Configurations/DebugRelease.xcconfig:
1515
1516 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
1517
1518         [iOS DnD] Add a hook to perform two-step drops in editable content
1519         https://bugs.webkit.org/show_bug.cgi?id=172992
1520         <rdar://problem/32590174>
1521
1522         Reviewed by Tim Horton.
1523
1524         Adds a new SPI to WebUIKitDelegate to allow WK1 clients to override default drop behavior. Returning YES from
1525         -performTwoStepDrop:atDestination:isMove: will prevent content from being inserted on drop in WebKit; otherwise,
1526         returning NO will continue with default WebKit behavior.
1527
1528         * WebCoreSupport/WebEditorClient.h:
1529         * WebCoreSupport/WebEditorClient.mm:
1530         (WebEditorClient::performTwoStepDrop):
1531
1532 2017-06-08  Jer Noble  <jer.noble@apple.com>
1533
1534         Clients of the WK2 C-API don't have their mediaContentTypesRequiringHardwareSupport setting initialized correctly.
1535         https://bugs.webkit.org/show_bug.cgi?id=173091
1536
1537         Reviewed by Eric Carlson.
1538
1539         * WebView/WebPreferences.mm:
1540         (+[WebPreferences initialize]):
1541
1542 2017-06-07  Jer Noble  <jer.noble@apple.com>
1543
1544         Clean-up: RenderElement.h includes headers it doesn't use
1545         https://bugs.webkit.org/show_bug.cgi?id=173046
1546
1547         Reviewed by Andy Estes.
1548
1549         * WebView/WebImmediateActionController.mm:
1550
1551 2017-06-07  Zalan Bujtas  <zalan@apple.com>
1552
1553         [iOS WK1 WebThread] Do not call out to the main thread for device orientation.
1554         https://bugs.webkit.org/show_bug.cgi?id=173044
1555         <rdar://problem/32449338>
1556
1557         Reviewed by Tim Horton.
1558
1559         Cache the current device orientation so that we don't have to lift the WebThread lock
1560         to collect it.
1561
1562         * WebView/WebFrame.mm:
1563         (-[WebFrame deviceOrientationChanged]):
1564         * WebView/WebView.mm:
1565         (-[WebView _commonInitializationWithFrameName:groupName:]):
1566         (-[WebView _setDeviceOrientation:]):
1567         (-[WebView _deviceOrientation]):
1568         * WebView/WebViewData.h:
1569         * WebView/WebViewInternal.h:
1570
1571 2017-06-06  Jer Noble  <jer.noble@apple.com>
1572
1573         [Cocoa] Set defaults for mediaContentTypesRequiringHardwareSupport setting
1574         https://bugs.webkit.org/show_bug.cgi?id=173008
1575
1576         Reviewed by Eric Carlson.
1577
1578         Add a private preference (with default) for the mediaContentTypesRequiringHardwareSupport WebCore setting.
1579
1580         * WebView/WebPreferenceKeysPrivate.h:
1581         * WebView/WebPreferences.mm:
1582         (+[WebPreferences initialize]):
1583         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
1584         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
1585         * WebView/WebPreferencesPrivate.h:
1586         * WebView/WebView.mm:
1587         (-[WebView _preferencesChanged:]):
1588
1589 2017-06-06  Youenn Fablet  <youenn@apple.com>
1590
1591         Add an option to disable getUserMedia prompt in case of mock capture sources
1592         https://bugs.webkit.org/show_bug.cgi?id=172981
1593         <rdar://problem/32580325>
1594
1595         Reviewed by Eric Carlson.
1596
1597         Defining the option, getter and setter.
1598
1599         * WebView/WebPreferences.mm:
1600         (+[WebPreferences initialize]):
1601         (-[WebPreferences mockCaptureDevicesPromptEnabled]):
1602         (-[WebPreferences setMockCaptureDevicesPromptEnabled:]):
1603         * WebView/WebPreferencesPrivate.h:
1604
1605 2017-06-05  Dan Bernstein  <mitz@apple.com>
1606
1607         Tried to fix the build when targrting macOS 10.12 using the macOS 10.13 developer beta SDK.
1608
1609         * WebView/WebView.mm:
1610         (-[WebView updateMediaTouchBar]):
1611         * WebView/WebViewData.h:
1612
1613 2017-06-03  Darin Adler  <darin@apple.com>
1614
1615         Streamline handling of attributes, using references as much as possible
1616         https://bugs.webkit.org/show_bug.cgi?id=172899
1617
1618         Reviewed by Chris Dumez.
1619
1620         * WebView/WebHTMLRepresentation.mm:
1621         (matchLabelsAgainstElement): Added handling of nullptr since nothing guarantees the
1622         passed in element can't be null. Removed unnecessary conversion from NSString to String
1623         and then back to NSString.
1624
1625 2017-06-01  Andy Estes  <aestes@apple.com>
1626
1627         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
1628         https://bugs.webkit.org/show_bug.cgi?id=172828
1629
1630         Reviewed by Beth Dakin.
1631
1632         * Configurations/FeatureDefines.xcconfig:
1633
1634 2017-05-31  Andy Estes  <aestes@apple.com>
1635
1636         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
1637         https://bugs.webkit.org/show_bug.cgi?id=172366
1638
1639         Reviewed by Daniel Bates.
1640
1641         * Configurations/FeatureDefines.xcconfig:
1642
1643 2017-05-30  Ryosuke Niwa  <rniwa@webkit.org>
1644
1645         Only include DataDetectorsUI headers in iOS
1646         https://bugs.webkit.org/show_bug.cgi?id=172633
1647
1648         Reviewed by David Kilzer.
1649
1650         Enable data detectors only on iOS and not other variants of iOS.
1651
1652         * WebCoreSupport/WebFrameLoaderClient.mm:
1653
1654 2017-05-30  Alex Christensen  <achristensen@webkit.org>
1655
1656         Update libwebrtc configuration
1657         https://bugs.webkit.org/show_bug.cgi?id=172727
1658
1659         Reviewed by Geoffrey Garen.
1660
1661         * Configurations/FeatureDefines.xcconfig:
1662
1663 2017-05-28  Dan Bernstein  <mitz@apple.com>
1664
1665         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
1666         https://bugs.webkit.org/show_bug.cgi?id=172691
1667
1668         Reviewed by Tim Horton.
1669
1670         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
1671
1672 2017-05-26  Brent Fulgham  <bfulgham@apple.com>
1673
1674         [WK2] Address thread safety issues with ResourceLoadStatistics
1675         https://bugs.webkit.org/show_bug.cgi?id=172519
1676         <rdar://problem/31707642>
1677
1678         Reviewed by Chris Dumez.
1679
1680         Create a new WorkQueue for the ResourceLoadStatistics store to use for processing data.
1681
1682         * WebView/WebView.mm:
1683         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Pass WorkQueue to the observer.
1684
1685 2017-05-25  Myles C. Maxfield  <mmaxfield@apple.com>
1686
1687         [WK1] iframes in layer-backed NSViews are not cleared between successive draws
1688         https://bugs.webkit.org/show_bug.cgi?id=172554
1689         <rdar://problem/31247133>
1690
1691         Reviewed by Simon Fraser.
1692
1693         Update an overridden internal AppKit function to the new signature.
1694
1695         * WebView/WebHTMLView.mm:
1696         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]):
1697         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
1698         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
1699         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
1700
1701 2017-05-24  Jer Noble  <jer.noble@apple.com>
1702
1703         Rename DisplaySleepDisabler -> SleepDisabler
1704         https://bugs.webkit.org/show_bug.cgi?id=172478
1705
1706         Reviewed by Sam Weinig.
1707
1708         * WebView/WebFullScreenController.h:
1709
1710 2017-05-23  Simon Fraser  <simon.fraser@apple.com>
1711
1712         Stop consulting -viewsNeedDisplay when doing layer flushing in WebKit1
1713         https://bugs.webkit.org/show_bug.cgi?id=172522
1714         rdar://problem/31071812
1715
1716         Reviewed by Tim Horton.
1717
1718         There's no need to consult -[NSWindow viewsNeedDisplay] on newer OSes. It was
1719         added in r58623, and modified in r61204 for Carbon apps, but with more recent AppKit
1720         versions this synchronization is no longer required.
1721
1722         * WebView/WebView.mm:
1723         (LayerFlushController::flushLayers):
1724
1725 2017-05-22  Simon Fraser  <simon.fraser@apple.com>
1726
1727         Snapshotting via -renderInContext: should do synchronous image decodes
1728         https://bugs.webkit.org/show_bug.cgi?id=172485
1729         rdar://problem/32276146
1730
1731         Reviewed by Tim Horton.
1732
1733         Remove the _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap: SPI that no longer
1734         has any callers.
1735
1736         * Plugins/WebBaseNetscapePluginView.h:
1737         * Plugins/WebBaseNetscapePluginView.mm:
1738         (-[WebBaseNetscapePluginView inFlatteningPaint]): Deleted.
1739         * WebView/WebFrame.mm:
1740         (-[WebFrame _paintBehaviorForDestinationContext:]):
1741         (-[WebFrame _drawRect:contentsOnly:]):
1742         (-[WebFrame _shouldFlattenCompositingLayers:]): Deleted.
1743         * WebView/WebHTMLView.mm:
1744         (imageFromRect):
1745         * WebView/WebView.mm:
1746         (-[WebView _commonInitializationWithFrameName:groupName:]):
1747         (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]): Deleted.
1748         (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]): Deleted.
1749         * WebView/WebViewData.h:
1750         * WebView/WebViewPrivate.h:
1751
1752 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
1753
1754         Remove dead ENABLE(FONT_LOAD_EVENTS) code
1755         https://bugs.webkit.org/show_bug.cgi?id=172517
1756
1757         Rubber-stamped by Simon Fraser.
1758
1759         * Configurations/FeatureDefines.xcconfig:
1760
1761 2017-05-23  Emilio Cobos Álvarez  <ecobos@igalia.com>
1762
1763         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
1764         https://bugs.webkit.org/show_bug.cgi?id=171984
1765
1766         Reviewed by Antti Koivisto.
1767
1768         * WebView/WebPreferenceKeysPrivate.h:
1769         * WebView/WebPreferences.mm:
1770         (+[WebPreferences initialize]):
1771         (-[WebPreferences displayContentsEnabled]):
1772         (-[WebPreferences setDisplayContentsEnabled:]):
1773         * WebView/WebPreferencesPrivate.h:
1774         * WebView/WebView.mm:
1775         (-[WebView _preferencesChanged:]):
1776
1777 2017-05-22  Youenn Fablet  <youenn@apple.com>
1778
1779         Remove AVAudioCaptureSource
1780         https://bugs.webkit.org/show_bug.cgi?id=172360
1781
1782         Reviewed by Sam Weinig.
1783
1784         Removing the handling of AVAudio/CoreAudio capture source dynamic switch.
1785
1786         * WebView/WebPreferenceKeysPrivate.h:
1787         * WebView/WebPreferences.mm:
1788         (+[WebPreferences initialize]):
1789         (-[WebPreferences useAVFoundationAudioCapture]): Deleted.
1790         (-[WebPreferences setUseAVFoundationAudioCapture:]): Deleted.
1791         * WebView/WebPreferencesPrivate.h:
1792         * WebView/WebView.mm:
1793         (-[WebView _preferencesChanged:]):
1794
1795 2017-05-22  Sam Weinig  <sam@webkit.org>
1796
1797         [WebIDL] Support callbacks with arbitrary return types
1798         https://bugs.webkit.org/show_bug.cgi?id=172407
1799
1800         Reviewed by Chris Dumez.
1801
1802         * DOM/DOM.mm:
1803         (-[DOMNodeFilter acceptNode:]):
1804         Update for CallbackResult adoption in the base class.
1805
1806         * DOM/DOMNodeIterator.mm:
1807         * DOM/DOMTreeWalker.mm:
1808         Update to account for new WebCore implementation return types. We return nil
1809         if there was an exception, since retains the existing behavior if a javascript
1810         NodeFilter had been used (an exception would cause all nodes to be rejected,
1811         thus returning nullptr).
1812
1813         * DOM/ObjCNodeFilterCondition.h:
1814         * DOM/ObjCNodeFilterCondition.mm:
1815         Update to match new interface of NodeFilterCondition.
1816
1817 2017-05-18  Sam Weinig  <sam@webkit.org>
1818
1819         [WebIDL] Remove the need for the generator to know about native type mapping
1820         https://bugs.webkit.org/show_bug.cgi?id=172310
1821
1822         Reviewed by Darin Adler.
1823
1824         * DOM/DOM.mm:
1825         (-[DOMNodeFilter acceptNode:]):
1826         Update to pass Node by reference.
1827
1828 2017-05-19  Yusuke Suzuki  <utatane.tea@gmail.com>
1829
1830         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
1831         https://bugs.webkit.org/show_bug.cgi?id=172098
1832
1833         Reviewed by Saam Barati.
1834
1835         * Plugins/Hosted/ProxyInstance.mm:
1836         * Plugins/Hosted/ProxyRuntimeObject.mm:
1837
1838 2017-05-18  Andy Estes  <aestes@apple.com>
1839
1840         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
1841         https://bugs.webkit.org/show_bug.cgi?id=172305
1842
1843         Reviewed by Anders Carlsson.
1844
1845         * Configurations/FeatureDefines.xcconfig:
1846
1847 2017-05-18  Commit Queue  <commit-queue@webkit.org>
1848
1849         Unreviewed, rolling out r217031, r217032, and r217037.
1850         https://bugs.webkit.org/show_bug.cgi?id=172293
1851
1852         cause linking errors in Windows (Requested by yusukesuzuki on
1853         #webkit).
1854
1855         Reverted changesets:
1856
1857         "[JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass"
1858         https://bugs.webkit.org/show_bug.cgi?id=172098
1859         http://trac.webkit.org/changeset/217031
1860
1861         "Unreviewed, rebaseline for newly added ClassInfo"
1862         https://bugs.webkit.org/show_bug.cgi?id=172098
1863         http://trac.webkit.org/changeset/217032
1864
1865         "Unreviewed, fix debug and non-JIT build"
1866         https://bugs.webkit.org/show_bug.cgi?id=172098
1867         http://trac.webkit.org/changeset/217037
1868
1869 2017-05-16  Yusuke Suzuki  <utatane.tea@gmail.com>
1870
1871         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
1872         https://bugs.webkit.org/show_bug.cgi?id=172098
1873
1874         Reviewed by Saam Barati.
1875
1876         * Plugins/Hosted/ProxyInstance.mm:
1877         * Plugins/Hosted/ProxyRuntimeObject.mm:
1878
1879 2017-05-17  Matt Lewis  <jlewis3@apple.com>
1880
1881         Unreviewed, rolling out r216974.
1882
1883         Revision caused consistent timeouts on all platforms.
1884
1885         Reverted changeset:
1886
1887         "Add a RuntimeEnabledFeature for display: contents, defaulted
1888         to false."
1889         https://bugs.webkit.org/show_bug.cgi?id=171984
1890         http://trac.webkit.org/changeset/216974
1891
1892 2017-05-17  Emilio Cobos Álvarez  <ecobos@igalia.com>
1893
1894         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
1895         https://bugs.webkit.org/show_bug.cgi?id=171984
1896
1897         Reviewed by Antti Koivisto.
1898
1899         * WebView/WebPreferenceKeysPrivate.h:
1900         * WebView/WebPreferences.mm:
1901         (+[WebPreferences initialize]):
1902         (-[WebPreferences displayContentsEnabled]):
1903         (-[WebPreferences setDisplayContentsEnabled:]):
1904         * WebView/WebPreferencesPrivate.h:
1905         * WebView/WebView.mm:
1906         (-[WebView _preferencesChanged:]):
1907
1908 2017-05-16  Sam Weinig  <sam@webkit.org>
1909
1910         Bring Notification.idl up to spec
1911         https://bugs.webkit.org/show_bug.cgi?id=172156
1912
1913         Reviewed by Chris Dumez.
1914
1915         * WebCoreSupport/WebNotificationClient.h:
1916         * WebCoreSupport/WebNotificationClient.mm:
1917         (generateNotificationID):
1918         (WebNotificationClient::show):
1919         (WebNotificationClient::cancel):
1920         (WebNotificationClient::clearNotifications):
1921         (WebNotificationClient::notificationObjectDestroyed):
1922         (WebNotificationClient::requestPermission):
1923         (WebNotificationClient::hasPendingPermissionRequests):
1924         (WebNotificationClient::checkPermission):
1925         (-[WebNotificationPolicyListener allow]):
1926         (-[WebNotificationPolicyListener deny]):
1927         * WebView/WebNotification.mm:
1928         (-[WebNotification iconURL]):
1929         (-[WebNotification dir]):
1930         Simplify #ifdefs and update for enum vs String usage.
1931
1932 2017-05-15  Said Abou-Hallawa  <sabouhallawa@apple.com>
1933
1934         Do not delete asynchronously decoded frames for large images if their clients are in the viewport
1935         https://bugs.webkit.org/show_bug.cgi?id=170640
1936
1937         Reviewed by Simon Fraser.
1938
1939         Enable the async decoding for large images.
1940
1941         * WebView/WebView.mm:
1942         (-[WebView _preferencesChanged:]):
1943
1944 2017-05-15  Jer Noble  <jer.noble@apple.com>
1945
1946         Add experimental setting to allow document gesture interaction to fulfill media playback gesture requirement
1947         https://bugs.webkit.org/show_bug.cgi?id=172131
1948
1949         Reviewed by Eric Carlson.
1950
1951         * WebView/WebPreferenceKeysPrivate.h:
1952         * WebView/WebPreferences.mm:
1953         (+[WebPreferences initialize]):
1954         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
1955         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
1956         * WebView/WebPreferencesPrivate.h:
1957
1958 2017-05-12  Chris Dumez  <cdumez@apple.com>
1959
1960         Drop uses of PassRefPtr in WebKit/mac
1961         https://bugs.webkit.org/show_bug.cgi?id=172066
1962
1963         Reviewed by Sam Weinig.
1964
1965         * History/WebBackForwardListInternal.h:
1966         * History/WebHistoryItem.mm:
1967         (kit):
1968         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
1969         * History/WebHistoryItemInternal.h:
1970         * Plugins/Hosted/HostedNetscapePluginStream.h:
1971         (WebKit::HostedNetscapePluginStream::create):
1972         * Plugins/Hosted/NetscapePluginHostManager.h:
1973         * Plugins/Hosted/NetscapePluginHostManager.mm:
1974         (WebKit::NetscapePluginHostManager::instantiatePlugin):
1975         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1976         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1977         (WebKit::NetscapePluginInstanceProxy::PluginRequest::create):
1978         (WebKit::NetscapePluginInstanceProxy::create):
1979         (WebKit::NetscapePluginInstanceProxy::setManualStream):
1980         * Plugins/Hosted/ProxyInstance.h:
1981         (WebKit::ProxyInstance::create):
1982         * Plugins/Hosted/ProxyInstance.mm:
1983         (WebKit::ProxyInstance::ProxyInstance):
1984         (WebKit::ProxyInstance::newRuntimeObject):
1985         * Plugins/Hosted/ProxyRuntimeObject.h:
1986         (WebKit::ProxyRuntimeObject::create):
1987         * Plugins/Hosted/ProxyRuntimeObject.mm:
1988         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
1989         * Plugins/Hosted/WebHostedNetscapePluginView.h:
1990         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1991         (-[WebHostedNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
1992         * Plugins/WebBaseNetscapePluginView.h:
1993         * Plugins/WebBaseNetscapePluginView.mm:
1994         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
1995         * Plugins/WebNetscapePluginStream.h:
1996         (WebNetscapePluginStream::create):
1997         * Plugins/WebNetscapePluginView.h:
1998         * Plugins/WebNetscapePluginView.mm:
1999         (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
2000         * WebCoreSupport/WebChromeClient.mm:
2001         * WebCoreSupport/WebEditorClient.mm:
2002         * WebCoreSupport/WebNotificationClient.mm:
2003         (WebNotificationClient::requestPermission):
2004         (-[WebNotificationPolicyListener initWithCallback:]):
2005         * WebCoreSupport/WebOpenPanelResultListener.mm:
2006         * WebCoreSupport/WebUserMediaClient.mm:
2007         (WebUserMediaClient::requestUserMediaAccess):
2008         (WebUserMediaClient::enumerateMediaDevices):
2009         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
2010         (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
2011         * WebView/WebArchive.mm:
2012         (-[WebArchivePrivate initWithCoreArchive:]):
2013         (-[WebArchivePrivate setCoreArchive:]):
2014         (-[WebArchive initWithData:]):
2015         (-[WebArchive subframeArchives]):
2016         (-[WebArchive _initWithCoreLegacyWebArchive:]):
2017         * WebView/WebArchiveInternal.h:
2018         * WebView/WebDataSource.mm:
2019         (WebDataSourcePrivate::WebDataSourcePrivate):
2020         (WebDataSourcePrivate::~WebDataSourcePrivate):
2021         (-[WebDataSource _initWithDocumentLoader:]):
2022         * WebView/WebDataSourceInternal.h:
2023         * WebView/WebDeviceOrientation.mm:
2024         (-[WebDeviceOrientation initWithCoreDeviceOrientation:]):
2025         * WebView/WebDeviceOrientationInternal.h:
2026         * WebView/WebFrame.mm:
2027         (-[WebFrame _convertToDOMRange:]):
2028         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2029         * WebView/WebFrameInternal.h:
2030         * WebView/WebFullScreenController.h:
2031         * WebView/WebFullScreenController.mm:
2032         (-[WebFullScreenController setElement:]):
2033         * WebView/WebGeolocationPosition.mm:
2034         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
2035         (-[WebGeolocationPosition initWithGeolocationPosition:]):
2036         * WebView/WebHTMLView.mm:
2037         (currentKeyboardEvent):
2038         * WebView/WebResource.mm:
2039         * WebView/WebScriptWorld.mm:
2040         (-[WebScriptWorld initWithWorld:]):
2041         (+[WebScriptWorld standardWorld]):
2042         (+[WebScriptWorld findOrCreateWorld:]):
2043         * WebView/WebViewData.h:
2044         (LayerFlushController::create):
2045
2046 2017-05-11  Chris Dumez  <cdumez@apple.com>
2047
2048         Drop remaining uses of PassRefPtr in WebCore
2049         https://bugs.webkit.org/show_bug.cgi?id=172013
2050
2051         Reviewed by Yusuke Suzuki.
2052
2053         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2054         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2055         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2056         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
2057         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2058         (-[WebHostedNetscapePluginView createPluginBindingsInstance:]):
2059
2060 2017-05-11  Tim Horton  <timothy_horton@apple.com>
2061
2062         Mail spins launching spell checker when typing
2063         https://bugs.webkit.org/show_bug.cgi?id=171986
2064         <rdar://problem/26305327>
2065
2066         Reviewed by Beth Dakin.
2067
2068         * WebView/WebView.mm:
2069         (-[WebView setEditable:]):
2070         Asynchronously pre-warm the spell checker when a WebView becomes editable.
2071
2072 2017-05-09  Sam Weinig  <sam@webkit.org>
2073
2074         Remove support for legacy Notifications
2075         https://bugs.webkit.org/show_bug.cgi?id=171487
2076
2077         Reviewed by Jon Lee.
2078
2079         * Configurations/FeatureDefines.xcconfig:
2080         * WebCoreSupport/WebNotificationClient.h:
2081         * WebCoreSupport/WebNotificationClient.mm:
2082         * WebView/WebNotification.mm:
2083         * WebView/WebNotificationInternal.h:
2084         * WebView/WebView.mm:
2085         (-[WebView _commonInitializationWithFrameName:groupName:]):
2086         (-[WebView _notificationIDForTesting:]):
2087         Remove legacy notification specific code.
2088
2089 2017-05-10  Chris Dumez  <cdumez@apple.com>
2090
2091         Simplify relationship between Attr and Element now that Attr is childless
2092         https://bugs.webkit.org/show_bug.cgi?id=171909
2093
2094         Reviewed by Ryosuke Niwa.
2095
2096         Build fix.
2097
2098         * DOM/DOMAttr.mm:
2099         (-[DOMAttr value]):
2100         (-[DOMAttr setValue:]):
2101
2102 2017-05-08  Chris Dumez  <cdumez@apple.com>
2103
2104         Move 'style' from Element to HTMLElement / SVGElement and make it settable
2105         https://bugs.webkit.org/show_bug.cgi?id=171795
2106
2107         Reviewed by Alex Christensen.
2108
2109         Build fix.
2110
2111         * DOM/DOMElement.mm:
2112         (-[DOMElement style]):
2113         * WebCoreSupport/WebEditorClient.mm:
2114         (WebEditorClient::shouldApplyStyle):
2115         * WebView/WebFrame.mm:
2116         (-[WebFrame _typingStyle]):
2117
2118 2017-05-06  Chris Dumez  <cdumez@apple.com>
2119
2120         Align our IDL files with the latest DOM specification
2121         https://bugs.webkit.org/show_bug.cgi?id=171777
2122
2123         Reviewed by Sam Weinig.
2124
2125         Build fix.
2126
2127         * DOM/DOMDocument.mm:
2128         (-[DOMDocument readyState]):
2129
2130 2017-05-05  Jeremy Jones  <jeremyj@apple.com>
2131
2132         REGRESSION (r215951): LayoutTest media/modern-media-controls/placard-support/placard-support-pip.html is a flaky crash
2133         https://bugs.webkit.org/show_bug.cgi?id=171610
2134         <rdar://problem/31976820>
2135
2136         Reviewed by Eric Carlson.
2137
2138         Fullscreen state gets confused because WK1 WebChromeClient doesn't implement exitVideoFullscreenToModeWithoutAnimation.
2139
2140         * WebCoreSupport/WebChromeClient.h:
2141         * WebCoreSupport/WebChromeClient.mm:
2142         (WebChromeClient::exitVideoFullscreenToModeWithoutAnimation):
2143
2144 2017-05-04  Commit Queue  <commit-queue@webkit.org>
2145
2146         Unreviewed, rolling out r216206.
2147         https://bugs.webkit.org/show_bug.cgi?id=171714
2148
2149         Multiple LayoutTests crashing in Document::page() (Requested
2150         by ap on #webkit).
2151
2152         Reverted changeset:
2153
2154         "Remove support for legacy Notifications"
2155         https://bugs.webkit.org/show_bug.cgi?id=171487
2156         http://trac.webkit.org/changeset/216206
2157
2158 2017-05-04  Jeremy Jones  <jeremyj@apple.com>
2159
2160         UIColor +whiteColor and +clearColor are ambiguous and need to be casted when soft linked.
2161         https://bugs.webkit.org/show_bug.cgi?id=171704
2162
2163         Reviewed by Jer Noble.
2164
2165         Fix build by casting result of +whiteColor to UIColor.
2166
2167         * WebView/WebView.mm:
2168         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
2169
2170 2017-05-04  Sam Weinig  <sam@webkit.org>
2171
2172         Remove support for legacy Notifications
2173         https://bugs.webkit.org/show_bug.cgi?id=171487
2174
2175         Reviewed by Jon Lee.
2176
2177         * Configurations/FeatureDefines.xcconfig:
2178         * WebCoreSupport/WebNotificationClient.h:
2179         * WebCoreSupport/WebNotificationClient.mm:
2180         * WebView/WebNotification.mm:
2181         * WebView/WebNotificationInternal.h:
2182         * WebView/WebView.mm:
2183         (-[WebView _commonInitializationWithFrameName:groupName:]):
2184         (-[WebView _notificationIDForTesting:]):
2185         Remove legacy notification specific code.
2186
2187 2017-05-03  Joseph Pecoraro  <pecoraro@apple.com>
2188
2189         [Cocoa] Stop exporting symbols for ivars that were made private
2190         https://bugs.webkit.org/show_bug.cgi?id=171631
2191
2192         Reviewed by Dan Bernstein.
2193
2194         * WebKit.exp:
2195
2196 2017-05-01  Chris Dumez  <cdumez@apple.com>
2197
2198         Remove some usage of PassRefPtr in editing code
2199         https://bugs.webkit.org/show_bug.cgi?id=171490
2200
2201         Reviewed by Darin Adler.
2202
2203         * WebView/WebFrame.mm:
2204         (-[WebFrame dictationResultMetadataForRange:]):
2205         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2206
2207 2017-05-01  Beth Dakin  <bdakin@apple.com>
2208
2209         On-screen panel for candidate bar is in the wrong place when the caret is at the 
2210         start of a paragraph
2211         https://bugs.webkit.org/show_bug.cgi?id=171453
2212         -and corresponding-
2213         rdar://problem/29779764
2214
2215         Reviewed by Tim Horton.
2216
2217         This bug only happens when the caret is at the beginning of the paragraph, and it 
2218         is because Range::absoluteTextQuads() returns no quads in this case. I think it 
2219         might be correct that absoluteTextQuads() returns no quads in this case, so this 
2220         patch fixes the bug at the call site by using absoluteCaretBounds() in this case.
2221
2222         * WebCoreSupport/WebEditorClient.mm:
2223         (WebEditorClient::handleRequestedCandidates):
2224
2225 2017-04-30  Dan Bernstein  <mitz@apple.com>
2226
2227         [Cocoa] Replaces uses of [get…() alloc] with alloc…Instance()
2228         https://bugs.webkit.org/show_bug.cgi?id=171485
2229
2230         Reviewed by Geoffrey Garen.
2231
2232         * WebView/WebView.mm:
2233         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
2234         (-[WebUITextIndicatorData initWithImage:scale:]):
2235
2236 2017-04-28  Youenn Fablet  <youenn@apple.com>
2237
2238         Adding a runtime flag specific to MediaDevices
2239         https://bugs.webkit.org/show_bug.cgi?id=171433
2240
2241         Reviewed by Geoffrey Garen.
2242
2243         Adding a preference for MediaDevices.
2244         Setting media devices runtime flag to false by default.
2245         Setting peer connection and media stream flags to true by default.
2246
2247         * WebView/WebPreferenceKeysPrivate.h:
2248         * WebView/WebPreferences.mm:
2249         (+[WebPreferences initialize]):
2250         (-[WebPreferences mediaDevicesEnabled]):
2251         (-[WebPreferences setMediaDevicesEnabled:]):
2252         * WebView/WebPreferencesPrivate.h:
2253         * WebView/WebView.mm:
2254         (-[WebView _preferencesChanged:]):
2255
2256 2017-04-27  Chris Dumez  <cdumez@apple.com>
2257
2258         Align colspan/rowspan limits with the latest HTML specification
2259         https://bugs.webkit.org/show_bug.cgi?id=171322
2260
2261         Reviewed by Darin Adler.
2262
2263         ObjC bindings build fix.
2264
2265         * DOM/DOMHTMLTableCellElement.mm:
2266         (-[DOMHTMLTableCellElement colSpan]):
2267         (-[DOMHTMLTableCellElement setColSpan:]):
2268
2269 2017-04-27  Said Abou-Hallawa  <sabouhallawa@apple.com>
2270
2271         REGRESSION(r213764): Async decoding of animated images is disabled for ImageDocument
2272         https://bugs.webkit.org/show_bug.cgi?id=170333
2273
2274         Reviewed by Simon Fraser.
2275
2276         Disbale the async decoding for large images for now.
2277
2278         * WebView/WebView.mm:
2279         (-[WebView _preferencesChanged:]):
2280
2281 2017-04-27  Alex Christensen  <achristensen@webkit.org>
2282
2283         Modernize Frame.h
2284         https://bugs.webkit.org/show_bug.cgi?id=171357
2285
2286         Reviewed by Andy Estes.
2287
2288         * WebCoreSupport/WebEditorClient.h:
2289         * WebCoreSupport/WebEditorClient.mm:
2290         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
2291
2292 2017-04-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2293
2294         [WK1] Tweak the data interaction SPI to indicate whether or not a data interaction was handled
2295         https://bugs.webkit.org/show_bug.cgi?id=171369
2296         <rdar://problem/31858853>
2297
2298         Reviewed by Dan Bernstein.
2299
2300         Introduce a new SPI hook intended to replace performDataInteraction:client:global:operation: that
2301         returns whether or not the data interaction was handled. Due to the difference only in return type
2302         and some staging constraints, this version is prefixed with "_tryTo".
2303
2304         * WebView/WebView.mm:
2305         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
2306         * WebView/WebViewPrivate.h:
2307
2308 2017-04-26  Wenson Hsieh  <wenson_hsieh@apple.com>
2309
2310         WebItemProviderPasteboard should not synchronously load provided data
2311         https://bugs.webkit.org/show_bug.cgi?id=171341
2312         <rdar://problem/31614010>
2313
2314         Reviewed by Tim Horton.
2315
2316         Adds client-layer plumbing for updatePreferredTypeIdentifiers. See WebCore ChangeLog for more details.
2317
2318         * WebCoreSupport/WebPlatformStrategies.h:
2319         * WebCoreSupport/WebPlatformStrategies.mm:
2320         (WebPlatformStrategies::updatePreferredTypeIdentifiers):
2321
2322 2017-04-26  Zalan Bujtas  <zalan@apple.com>
2323
2324         RTL: recent searches popover is displayed in incorrect location
2325         https://bugs.webkit.org/show_bug.cgi?id=171338
2326         <rdar://problem/31377807>
2327
2328         Reviewed by Dean Jackson.
2329
2330         Add RTL support for the pop-under branch.
2331
2332         * WebCoreSupport/PopupMenuMac.mm:
2333         (PopupMenuMac::show):
2334
2335 2017-04-25  Brent Fulgham  <bfulgham@apple.com>
2336
2337         Limit allowed size of document.title to avoid locking WebKit clients
2338         https://bugs.webkit.org/show_bug.cgi?id=165113
2339         <rdar://problem/28324389>
2340
2341         Reviewed by Darin Adler.
2342
2343         When a web application attempts to set an extremely long title, truncate the
2344         title to a more reasonable size.
2345
2346         We do this at at the presentation layer, rather than in the DOM, so that we do
2347         not affect script function. Instead, we merely limit display to a level that is
2348         reasonable for normal GUI widgets. Anything else needs to be truncated in the UI
2349         layer, so it is a waste of effort to send across IPC.
2350
2351         * WebCoreSupport/WebFrameLoaderClient.h:
2352         * WebCoreSupport/WebFrameLoaderClient.mm:
2353         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2354
2355 2017-04-25  Daniel Bates  <dabates@apple.com>
2356
2357         [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header
2358         https://bugs.webkit.org/show_bug.cgi?id=136452
2359         <rdar://problem/23412620>
2360
2361         Reviewed by Brent Fulgham.
2362
2363         Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms.
2364
2365         * Configurations/FeatureDefines.xcconfig:
2366
2367 2017-04-25  Wenson Hsieh  <wenson_hsieh@apple.com>
2368
2369         Support reading NSURL titles from the pasteboard when performing data interaction
2370         https://bugs.webkit.org/show_bug.cgi?id=171156
2371         <rdar://problem/31356937>
2372
2373         Reviewed by Tim Horton.
2374
2375         Add a new WK1 SPI property, -[WebFrame hasRichlyEditableDragCaret].
2376
2377         * WebCoreSupport/WebPlatformStrategies.h:
2378         * WebCoreSupport/WebPlatformStrategies.mm:
2379         (WebPlatformStrategies::readURLFromPasteboard):
2380         * WebView/WebFrame.mm:
2381         (-[WebFrame hasRichlyEditableDragCaret]):
2382         * WebView/WebFramePrivate.h:
2383
2384 2017-04-24  Andy VanWagoner  <thetalecrafter@gmail.com>
2385
2386         Clean up ICU headers
2387         https://bugs.webkit.org/show_bug.cgi?id=170997
2388
2389         Reviewed by JF Bastien.
2390
2391         Update all icu headers to 55.1
2392
2393         * icu/README: Explain ICU headers for OS X better
2394         * icu/unicode/localpointer.h:
2395         (LocalPointer::LocalPointer):
2396         (LocalPointer::adoptInsteadAndCheckErrorCode):
2397         * icu/unicode/platform.h:
2398         * icu/unicode/putil.h:
2399         * icu/unicode/uchar.h:
2400         * icu/unicode/uconfig.h:
2401         * icu/unicode/ucurr.h:
2402         * icu/unicode/uidna.h:
2403         * icu/unicode/umachine.h:
2404         * icu/unicode/urename.h:
2405         * icu/unicode/uscript.h:
2406         * icu/unicode/ustring.h:
2407         * icu/unicode/utf8.h:
2408         * icu/unicode/utypes.h:
2409         * icu/unicode/uvernum.h:
2410
2411 2017-04-24  Wenson Hsieh  <wenson_hsieh@apple.com>
2412
2413         Respect fidelity order when reading web content from item providers
2414         https://bugs.webkit.org/show_bug.cgi?id=171155
2415         <rdar://problem/31356937>
2416
2417         Reviewed by Tim Horton.
2418
2419         Adjusts for changes in WebCore (see WebCore/ChangeLog for more details).
2420
2421         * WebCoreSupport/WebPlatformStrategies.h:
2422         * WebCoreSupport/WebPlatformStrategies.mm:
2423         (WebPlatformStrategies::getTypesByFidelityForItemAtIndex):
2424
2425 2017-04-24  Alex Christensen  <achristensen@webkit.org>
2426
2427         Reduce copies and allocations in SharedBuffer::append
2428         https://bugs.webkit.org/show_bug.cgi?id=170956
2429
2430         Reviewed by Andreas Kling.
2431
2432         * WebView/WebArchive.mm:
2433         (-[WebArchive initWithData:]):
2434         * WebView/WebFrame.mm:
2435         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2436         * WebView/WebResource.mm:
2437         (-[WebResource initWithCoder:]):
2438         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
2439
2440 2017-04-24  Dan Bernstein  <mitz@apple.com>
2441
2442         [Cocoa] Some ivars are needlessly @protected
2443         https://bugs.webkit.org/show_bug.cgi?id=171208
2444
2445         Reviewed by Anders Carlsson
2446
2447         Made ivars @private where possible.
2448
2449         * Misc/WebUserContentURLPattern.h:
2450         * Plugins/WebPluginDatabase.h:
2451         * Storage/WebDatabaseQuotaManager.h:
2452         * WebCoreSupport/WebSecurityOriginPrivate.h:
2453         * WebInspector/WebInspector.h:
2454         * WebView/WebDeviceOrientation.h:
2455         * WebView/WebDeviceOrientationProviderMock.h:
2456         * WebView/WebGeolocationPosition.h:
2457         * WebView/WebHTMLRepresentation.h:
2458         * WebView/WebNotification.h:
2459
2460 2017-04-21  Wenson Hsieh  <wenson_hsieh@apple.com>
2461
2462         Support writing link titles to the pasteboard when beginning data interaction on a link
2463         https://bugs.webkit.org/show_bug.cgi?id=171154
2464         <rdar://problem/31356937>
2465
2466         Reviewed by Andy Estes.
2467
2468         Adjust for some changes in WebCore to introduce a separate codepath for writing PasteboardURLs. See WebCore
2469         and WebKit2 ChangeLogs for more details.
2470
2471         * WebCoreSupport/WebPlatformStrategies.h:
2472         * WebCoreSupport/WebPlatformStrategies.mm:
2473         (WebPlatformStrategies::writeToPasteboard):
2474
2475 2017-04-21  Michael Catanzaro  <mcatanzaro@igalia.com>
2476
2477         Unreviewed, rolling out r215608.
2478
2479         Hundreds of test failures on GTK bot
2480
2481         Reverted changeset:
2482
2483         "Reduce copies and allocations in SharedBuffer::append"
2484         https://bugs.webkit.org/show_bug.cgi?id=170956
2485         http://trac.webkit.org/changeset/215608
2486
2487 2017-04-21  Alex Christensen  <achristensen@webkit.org>
2488
2489         Reduce copies and allocations in SharedBuffer::append
2490         https://bugs.webkit.org/show_bug.cgi?id=170956
2491
2492         Reviewed by Andreas Kling.
2493
2494         * WebView/WebArchive.mm:
2495         (-[WebArchive initWithData:]):
2496         * WebView/WebFrame.mm:
2497         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2498         * WebView/WebResource.mm:
2499         (-[WebResource initWithCoder:]):
2500         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
2501
2502 2017-04-20  Dewei Zhu  <dewei_zhu@apple.com>
2503
2504         Build fix to start using C++14.
2505         https://bugs.webkit.org/show_bug.cgi?id=171038
2506
2507         Reviewed by Alex Christensen.
2508
2509         Use 'c++14' instead of 'c++11' in order to use 'auto' in lambda.
2510
2511         * Configurations/WebKitLegacy.xcconfig:
2512
2513 2017-04-19  Youenn Fablet  <youenn@apple.com>
2514
2515         [Mac] Allow customizing H264 encoder
2516         https://bugs.webkit.org/show_bug.cgi?id=170829
2517
2518         Reviewed by Alex Christensen.
2519
2520         * Configurations/FeatureDefines.xcconfig:
2521
2522 2017-04-19  Anders Carlsson  <andersca@apple.com>
2523
2524         Stop using deprecated APIs, part 3
2525         https://bugs.webkit.org/show_bug.cgi?id=171003
2526         rdar://problem/31589635
2527
2528         Reviewed by Tim Horton.
2529
2530         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2531         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2532         (WebPaymentCoordinatorClient::cancelPaymentSession):
2533         Update for WebCore changes.
2534
2535 2017-04-18  Wenson Hsieh  <wenson_hsieh@apple.com>
2536
2537         [WK2] Support DataTransfer::files() when performing a DHTML data interaction
2538         https://bugs.webkit.org/show_bug.cgi?id=170880
2539         <rdar://problem/31314689>
2540
2541         Reviewed by Tim Horton.
2542
2543         Adjust for a change in PasteboardStrategy. See WebCore ChangeLog for more details.
2544
2545         * WebCoreSupport/WebPlatformStrategies.h:
2546         * WebCoreSupport/WebPlatformStrategies.mm:
2547         (WebPlatformStrategies::getFilenamesForDataInteraction):
2548
2549 2017-04-17  Youenn Fablet  <youenn@apple.com>
2550
2551         Disable outdated WritableStream API
2552         https://bugs.webkit.org/show_bug.cgi?id=170749
2553         <rdar://problem/31446233>
2554
2555         Reviewed by Alex Christensen.
2556
2557         Replacing READABLE_STREAM_API, READABLE_BYTE_STREAM_API and WRITABLE_STREAM_API compilation flag by:
2558         - A STREAMS_API compilation flag.
2559         - A ReadableByteStreamAPI and WritableStreamAPI runtime flags, turned off except for RWT and DRT.
2560
2561         * Configurations/FeatureDefines.xcconfig:
2562         * WebView/WebPreferenceKeysPrivate.h:
2563         * WebView/WebPreferences.mm:
2564         (+[WebPreferences initialize]):
2565         (-[WebPreferences readableByteStreamAPIEnabled]):
2566         (-[WebPreferences setReadableByteStreamAPIEnabled:]):
2567         (-[WebPreferences writableStreamAPIEnabled]):
2568         (-[WebPreferences setWritableStreamAPIEnabled:]):
2569         * WebView/WebPreferencesPrivate.h:
2570         * WebView/WebView.mm:
2571         (-[WebView _preferencesChanged:]):
2572
2573 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2574
2575         [WK2] Support data interaction of files into file inputs
2576         https://bugs.webkit.org/show_bug.cgi?id=170803
2577         <rdar://problem/31286130>
2578
2579         Reviewed by Tim Horton.
2580
2581         Add boilerplate plumbing for fetching the number of files in the pasteboard.
2582
2583         * WebCoreSupport/WebPlatformStrategies.h:
2584         * WebCoreSupport/WebPlatformStrategies.mm:
2585         (WebPlatformStrategies::getNumberOfFiles):
2586
2587 2017-04-14  Mark Lam  <mark.lam@apple.com>
2588
2589         Update architectures in xcconfig files.
2590         https://bugs.webkit.org/show_bug.cgi?id=170867
2591         <rdar://problem/31628104>
2592
2593         Reviewed by Joseph Pecoraro.
2594
2595         * Configurations/FeatureDefines.xcconfig:
2596
2597 2017-04-14  Wenson Hsieh  <wenson_hsieh@apple.com>
2598
2599         [WK2] Support Icon creation from file URLs on iOS
2600         https://bugs.webkit.org/show_bug.cgi?id=170809
2601         <rdar://problem/31286130>
2602
2603         Reviewed by Tim Horton.
2604
2605         Adjust for changes in the ChromeClient in WebCore.
2606
2607         * WebCoreSupport/WebChromeClient.h:
2608         * WebCoreSupport/WebChromeClient.mm:
2609         (WebChromeClient::loadIconForFiles):
2610         (WebChromeClient::createIconForFiles):
2611
2612 2017-04-12  Dan Bernstein  <mitz@apple.com>
2613
2614         [Mac] Future-proof .xcconfig files
2615         https://bugs.webkit.org/show_bug.cgi?id=170802
2616
2617         Reviewed by Tim Horton.
2618
2619         * Configurations/Base.xcconfig:
2620         * Configurations/DebugRelease.xcconfig:
2621         * Configurations/FeatureDefines.xcconfig:
2622         * Configurations/Version.xcconfig:
2623
2624 2017-04-12  Beth Dakin  <bdakin@apple.com>
2625
2626         Build fix.
2627
2628         * WebView/WebViewData.h:
2629
2630 2017-04-12  Brian Weinstein  <bweinstein@apple.com>
2631
2632         Should always override -[WebStorageManager init].
2633         https://bugs.webkit.org/show_bug.cgi?id=170787
2634         -and corresponding-
2635         rdar://problem/31371835
2636
2637         Reviewed by Anders Carlsson.
2638
2639         * Storage/WebStorageManager.mm:
2640         (-[WebStorageManager init]):
2641
2642 2017-04-12  Beth Dakin  <bdakin@apple.com>
2643
2644         Speculative build fix. 
2645
2646         * WebView/WebViewData.h:
2647
2648 2017-04-12  Beth Dakin  <bdakin@apple.com>
2649
2650         Adopt AVKit name change from AVFunctionBar* to AVTouchBar*
2651         https://bugs.webkit.org/show_bug.cgi?id=170693
2652         -and corresponding-
2653         rdar://problem/31230018
2654
2655         Reviewed by Sam Weinig.
2656
2657         Since the new names only apply to some versions of macOS, this patch uses typedefs 
2658         for the older OS’s. SO:
2659
2660         AVFunctionBarScrubber is now AVTouchBarScrubber
2661
2662         AVFunctionBarPlaybackControlsProvider is now AVTouchBarPlaybackControlsProvider
2663
2664         AVFunctionBarMediaSelectionOption is now AVTouchBarMediaSelectionOption
2665
2666         And the protocol AVFunctionBarPlaybackControlsControlling is now 
2667         AVTouchBarPlaybackControlsControlling
2668
2669         Soft links and allocations cannot use the typedefs.
2670         * WebView/WebView.mm:
2671         (-[WebView updateMediaTouchBar]):
2672         * WebView/WebViewData.h:
2673
2674 2017-04-11  Dean Jackson  <dino@apple.com>
2675
2676         Disable outdated WritableStream API
2677         https://bugs.webkit.org/show_bug.cgi?id=170749
2678         <rdar://problem/31446233>
2679
2680         Reviewed by Tim Horton.
2681
2682         The API we implement is no longer accurate. Disable it until we
2683         are compatible with the new specification
2684
2685         * Configurations/FeatureDefines.xcconfig:
2686
2687 2017-04-11  Dan Bernstein  <mitz@apple.com>
2688
2689         [iOS] Simple HTML documents should allow non-markup JavaScript
2690         https://bugs.webkit.org/show_bug.cgi?id=170734
2691
2692         Reviewed by Sam Weinig.
2693
2694         * WebView/WebView.mm:
2695         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Enabled scripting
2696           but disabled scripting markup.
2697
2698 2017-04-10  Alex Christensen  <achristensen@webkit.org>
2699
2700         Revert r215217
2701         https://bugs.webkit.org/show_bug.cgi?id=170703
2702
2703         * Configurations/FeatureDefines.xcconfig:
2704
2705 2017-04-10  Alex Christensen  <achristensen@webkit.org>
2706
2707         Continue enabling WebRTC
2708         https://bugs.webkit.org/show_bug.cgi?id=170703
2709
2710         Reviewed by Youenn Fablet.
2711
2712         * Configurations/FeatureDefines.xcconfig:
2713
2714 2017-04-10  Anders Carlsson  <andersca@apple.com>
2715
2716         Remove call to WKShowKeyAndMain
2717         https://bugs.webkit.org/show_bug.cgi?id=170691
2718         rdar://problem/31050032
2719
2720         Reviewed by Beth Dakin.
2721
2722         * Carbon/CarbonWindowAdapter.mm:
2723         (-[CarbonWindowAdapter makeKeyWindow]):
2724
2725 2017-04-10  Jeremy Jones  <jeremyj@apple.com>
2726
2727         Add CoreAudioCaptureSource.
2728         https://bugs.webkit.org/show_bug.cgi?id=170112
2729         rdar://problem/30293338
2730
2731         Reviewed by Eric Carlson.
2732
2733         Add UseAVFoundationAudioCapture preference to switch back from the new default of CoreAudio.
2734
2735         * WebView/WebPreferenceKeysPrivate.h:
2736         * WebView/WebPreferences.mm:
2737         (+[WebPreferences initialize]):
2738         (-[WebPreferences useAVFoundationAudioCapture]):
2739         (-[WebPreferences setUseAVFoundationAudioCapture:]):
2740         * WebView/WebPreferencesPrivate.h:
2741         * WebView/WebView.mm:
2742         (-[WebView _preferencesChanged:]):
2743
2744 2017-04-10  Chris Dumez  <cdumez@apple.com>
2745
2746         Drop Timer::startOneShot() overload taking a double
2747         https://bugs.webkit.org/show_bug.cgi?id=170659
2748
2749         Reviewed by Yusuke Suzuki.
2750
2751         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
2752
2753         * Plugins/WebNetscapePluginView.mm:
2754         (PluginTimer::start):
2755         * Storage/WebStorageManager.mm:
2756         (+[WebStorageManager setStorageDatabaseIdleInterval:]):
2757
2758 2017-04-09  Chris Dumez  <cdumez@apple.com>
2759
2760         Drop Timer::startRepeating() overload taking a double
2761         https://bugs.webkit.org/show_bug.cgi?id=170656
2762
2763         Reviewed by Yusuke Suzuki.
2764
2765         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
2766
2767         * Plugins/WebNetscapePluginView.mm:
2768         (PluginTimer::start):
2769
2770 2017-04-09  Chris Dumez  <cdumez@apple.com>
2771
2772         Start dropping Timer API dealing with double
2773         https://bugs.webkit.org/show_bug.cgi?id=170649
2774
2775         Reviewed by Yusuke Suzuki.
2776
2777         Start dropping Timer API dealing with double as people should use Seconds now.
2778
2779         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2780         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
2781         (WebKit::NetscapePluginInstanceProxy::loadRequest):
2782         * Plugins/WebNetscapePluginStream.mm:
2783         (WebNetscapePluginStream::deliverData):
2784
2785 2017-04-08  Chris Dumez  <cdumez@apple.com>
2786
2787         Drop std::chrono support from Timer class
2788         https://bugs.webkit.org/show_bug.cgi?id=170645
2789
2790         Reviewed by Sam Weinig.
2791
2792         Drop std::chrono support from Timer class now that we prefer using Seconds type.
2793
2794         * WebView/WebView.mm:
2795         (+[WebView _setCacheModel:]):
2796
2797 2017-04-08  Youenn Fablet  <youenn@apple.com>
2798
2799         WebRTC tests gardening
2800         https://bugs.webkit.org/show_bug.cgi?id=170508
2801
2802         Reviewed by Eric Carlson.
2803
2804         * Configurations/FeatureDefines.xcconfig:
2805
2806 2017-04-06  Ryan Haddad  <ryanhaddad@apple.com>
2807
2808         Unreviewed, rolling out r215046.
2809
2810         This change broke internal builds.
2811
2812         Reverted changeset:
2813
2814         "WebRTC tests gardening"
2815         https://bugs.webkit.org/show_bug.cgi?id=170508
2816         http://trac.webkit.org/changeset/215046
2817
2818 2017-04-06  Tim Horton  <timothy_horton@apple.com>
2819
2820         Obj-C bindings build fails with CSS_DEVICE_ADAPTATION turned on
2821         https://bugs.webkit.org/show_bug.cgi?id=170566
2822
2823         Reviewed by Simon Fraser.
2824
2825         * DOM/DOMCSS.mm:
2826         (kitClass):
2827         Use the WebCore-side enum for this, since that's actually what we're switching over.
2828         This allows us to handle values here without adding them to the API header.
2829         All of the other kitClass() functions work the same way.
2830         Also, unindent for style purposes.
2831
2832 2017-04-06  Youenn Fablet  <youenn@apple.com>
2833
2834         WebRTC tests gardening
2835         https://bugs.webkit.org/show_bug.cgi?id=170508
2836
2837         Reviewed by Eric Carlson.
2838
2839         * Configurations/FeatureDefines.xcconfig:
2840
2841 2017-04-04  Megan Gardner  <megan_gardner@apple.com>
2842
2843         Fix leaks in WebUITextIndicatorData
2844         https://bugs.webkit.org/show_bug.cgi?id=170480
2845
2846         Reviewed by Wenson Hsieh.
2847
2848         Removes extraneous retains.
2849
2850         * WebView/WebView.mm:
2851         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
2852
2853 2017-04-04  Tim Horton  <timothy_horton@apple.com>
2854
2855         [Mac] -[WKWebView findMatchesForString:relativeToMatch:findOptions:maxResults:resultCollector:] invokes the resultCollector with didWrap = NO even when it wraps
2856         https://bugs.webkit.org/show_bug.cgi?id=165801
2857         <rdar://problem/29649535>
2858
2859         Reviewed by Wenson Hsieh.
2860
2861         * WebView/WebView.mm:
2862         (incrementFrame):
2863         Adjust to the new CanWrap enum.
2864
2865 2017-03-27  Joseph Pecoraro  <pecoraro@apple.com>
2866
2867         Web Inspector: Saving files should not suggest the top level directory
2868         https://bugs.webkit.org/show_bug.cgi?id=170085
2869         <rdar://problem/30197794>
2870
2871         Reviewed by Matt Baker.
2872
2873         * WebCoreSupport/WebInspectorClient.mm:
2874         (WebInspectorFrontendClient::save):
2875         Don't set panel.directoryURL unless we have a good suggestion.
2876
2877 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
2878
2879         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
2880         https://bugs.webkit.org/show_bug.cgi?id=169168
2881         <rdar://problem/30688374>
2882
2883         Reviewed by Tim Horton.
2884
2885         Refactors WebDragClient::actionMaskForDrag to take platform data only, rather than the entire DragData. See the
2886         WebCore ChangeLog entry for more details. Also renames WebDefaultUIDelegate.m to WebDefaultUIDelegate.mm, since
2887         we need to import a C++ header for linkedOnOrAfter().
2888
2889         The default delegate implementation of webView:dragDestinationActionMaskForDraggingInfo: now checks if the current
2890         application is linking against 10.12 or earlier, and if so, will allow any drag destination action instead of
2891         the new default value of everything but DragDestinationActionLoad.
2892
2893         * DefaultDelegates/WebDefaultUIDelegate.mm: Renamed from Source/WebKit/mac/DefaultDelegates/WebDefaultUIDelegate.m.
2894         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForDraggingInfo:]):
2895         * Misc/WebKitVersionChecks.h:
2896         * WebCoreSupport/WebDragClient.h:
2897         * WebCoreSupport/WebDragClient.mm:
2898         (WebDragClient::actionMaskForDrag): Deleted.
2899         * WebView/WebView.mm:
2900         (-[WebView draggingEntered:]):
2901         (-[WebView draggingUpdated:]):
2902
2903 2017-03-21  Wenson Hsieh  <wenson_hsieh@apple.com>
2904
2905         Add support for showing the platform data interaction caret
2906         https://bugs.webkit.org/show_bug.cgi?id=169898
2907         <rdar://problem/31146295>
2908
2909         Reviewed by Beth Dakin.
2910
2911         Plumb the dataInteractionCaretRect through WebView SPI to WebKit1 clients.
2912
2913         * WebView/WebView.mm:
2914         (-[WebView _dataInteractionCaretRect]):
2915         * WebView/WebViewPrivate.h:
2916
2917 2017-03-22  Dan Bernstein  <mitz@apple.com>
2918
2919         [iOS] downloadableBinaryFontsEnabled is set to false in -initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:
2920         https://bugs.webkit.org/show_bug.cgi?id=169967
2921         <rdar://problem/30406898>
2922
2923         Reviewed by Anders Carlsson.
2924
2925         * WebView/WebView.mm:
2926         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Removed call to
2927           Settings::downloadableBinaryFontsEnabled. The default is true.
2928
2929 2017-03-22  Andy Estes  <aestes@apple.com>
2930
2931         [QuickLook] Rename QuickLookHandle to PreviewLoader
2932         https://bugs.webkit.org/show_bug.cgi?id=169961
2933
2934         Reviewed by Andreas Kling.
2935
2936         * WebCoreSupport/WebFrameLoaderClient.h:
2937         * WebCoreSupport/WebFrameLoaderClient.mm:
2938         (WebFrameLoaderClient::createPreviewLoaderClient):
2939         (WebFrameLoaderClient::createQuickLookHandleClient): Deleted.
2940
2941 2017-03-21  Anders Carlsson  <andersca@apple.com>
2942
2943         Remove bogus availability annotations from DOM SPI headers.
2944         rdar://problem/31015675
2945
2946         Rubber-stamped by Dan Bernstein.
2947
2948         * DOM/DOMHTMLMediaElement.h:
2949         * DOM/DOMHTMLVideoElement.h:
2950         * DOM/DOMMediaError.h:
2951         * DOM/DOMTextEvent.h:
2952         * DOM/DOMTimeRanges.h:
2953         * DOM/DOMTokenList.h:
2954
2955 2017-03-19  Wenson Hsieh  <wenson_hsieh@apple.com>
2956
2957         Teach TextIndicator to estimate the background color of the given Range
2958         https://bugs.webkit.org/show_bug.cgi?id=169869
2959         <rdar://problem/31127272>
2960
2961         Reviewed by Anders Carlsson and Simon Fraser.
2962
2963         Plumb the estimated background color for WebKit1 clients through a new property in WebUITextIndicatorData.
2964
2965         * WebView/WebView.mm:
2966         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
2967         (-[WebUITextIndicatorData dealloc]):
2968         * WebView/WebViewPrivate.h:
2969
2970 2017-03-20  Dan Bernstein  <mitz@apple.com>
2971
2972         [Xcode] Incremental builds of WebKitLegacy are slow because of the Postprocess Headers phase
2973         https://bugs.webkit.org/show_bug.cgi?id=169861
2974
2975         Reviewed by Sam Weinig.
2976
2977         * MigrateHeaders.make: Touch the PrivateHeaders directory when migrating a header into it.
2978         * postprocess-headers.sh: Preserve the timestamp on the headers directories. Write out the
2979           timestamp file used by the Xcode project to determine whether to run the script.
2980
2981 2017-03-19  Alexey Proskuryakov  <ap@apple.com>
2982
2983         WebHTMLView is useless as WebResourceHandler
2984         https://bugs.webkit.org/show_bug.cgi?id=169857
2985
2986         Reviewed by Dan Bernstein.
2987
2988         * WebView/WebHTMLView.mm:
2989         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2990         WebHTMLView doesnt implement any of WebResourceHandler methods.
2991
2992 2017-03-17  Michael Saboff  <msaboff@apple.com>
2993
2994         Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK
2995         https://bugs.webkit.org/show_bug.cgi?id=169817
2996
2997         Reviewed by Filip Pizlo.
2998
2999         * Configurations/FeatureDefines.xcconfig:
3000
3001 2017-03-17  Antti Koivisto  <antti@apple.com>
3002
3003         Add a reload policy where only expired subresources are revalidated
3004         https://bugs.webkit.org/show_bug.cgi?id=169756
3005
3006         Reviewed by Andreas Kling.
3007
3008         * WebView/WebFrame.mm:
3009         (toWebFrameLoadType):
3010         (-[WebFrame reload]):
3011         (-[WebFrame reloadFromOrigin]):
3012
3013 2017-03-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3014
3015         [WK1] Support animated transitions when performing a data interaction operation
3016         https://bugs.webkit.org/show_bug.cgi?id=169805
3017         <rdar://problem/31045767>
3018
3019         Reviewed by Beth Dakin and Megan Gardner.
3020
3021         Adds WebKit1 support for animated transitions when performing a data interaction operation. See per-method changes
3022         for more details.
3023
3024         * DOM/DOMElement.h:
3025         * DOM/DOMElement.mm:
3026         (-[DOMElement boundsInRootViewSpace]):
3027
3028         Introduce -[DOMElement boundsInRootViewSpace], which returns the bounds of the element in root view coordinates.
3029
3030         * WebCoreSupport/WebDragClient.h:
3031         (): Deleted.
3032         * WebCoreSupport/WebDragClient.mm:
3033         (WebDragClient::didConcludeEditDrag):
3034
3035         Add boilerplate plumbing.
3036
3037         * WebView/WebView.mm:
3038         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
3039
3040         Add contentImageWithoutSelection and contentImageWithoutSelectionRectInRootViewCoordinates to WebUITextIndicatorData.
3041
3042         (floatRectsForCGRectArray):
3043         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
3044
3045         Introduces a SPI helper method in WebView that clients can use to generate an image of a text platter given an
3046         image of some text, as well as clipping rects to apply to the image.
3047
3048         (-[WebView _dataOperationTextIndicator]):
3049
3050         Add SPI to fetch the text indicator used to drive animations for the current data operation.
3051
3052         (-[WebView _didConcludeEditDataInteraction]):
3053         * WebView/WebViewData.h:
3054         * WebView/WebViewInternal.h:
3055         * WebView/WebViewPrivate.h:
3056
3057 2017-03-16  Simon Fraser  <simon.fraser@apple.com>
3058
3059         Improve the system tracing points
3060         https://bugs.webkit.org/show_bug.cgi?id=169790
3061
3062         Reviewed by Zalan Bujtas.
3063
3064         Use a more cohesive set of system trace points that give a good overview of what
3065         WebKit is doing. Added points for resource loading, render tree building, sync messages
3066         to the web process, async image decode, WASM and fetching cookies.
3067
3068         * WebView/WebHTMLView.mm:
3069         (-[WebHTMLView drawRect:]):
3070
3071 2017-03-16  Youenn Fablet  <youenn@apple.com>
3072
3073         Wrap legacy WebRTC API in runtime flag
3074         https://bugs.webkit.org/show_bug.cgi?id=169646
3075
3076         Reviewed by Alex Christensen.
3077
3078         * WebView/WebPreferenceKeysPrivate.h:
3079         * WebView/WebPreferences.mm:
3080         (+[WebPreferences initialize]):
3081         (-[WebPreferences webRTCLegacyAPIEnabled]):
3082         (-[WebPreferences setWebRTCLegacyAPIEnabled:]):
3083         * WebView/WebPreferencesPrivate.h:
3084         * WebView/WebView.mm:
3085         (-[WebView _preferencesChanged:]):
3086
3087 2017-03-14  Megan Gardner  <megan_gardner@apple.com>
3088
3089         Correctly export WebItemProviderPasteboard
3090         https://bugs.webkit.org/show_bug.cgi?id=169578
3091
3092         Reviewed by Tim Horton.
3093
3094         * MigrateHeaders.make:
3095
3096 2017-03-14  Wenson Hsieh  <wenson_hsieh@apple.com>
3097
3098         [WK2] Data interaction tests occasionally hit assertions in debug builds
3099         https://bugs.webkit.org/show_bug.cgi?id=169002
3100         <rdar://problem/30994806>
3101
3102         Reviewed by Tim Horton.
3103
3104         Renames setIgnoreCompositionSelectionChange to setIgnoreSelectionChanges. See WebCore ChangeLog for more details.
3105
3106         * WebView/WebHTMLView.mm:
3107         (-[WebHTMLView _updateSelectionForInputManager]):
3108         * WebView/WebView.mm:
3109         (-[WebView updateTextTouchBar]):
3110
3111 2017-03-13  Anders Carlsson  <andersca@apple.com>
3112
3113         Fix build warnings.
3114
3115         * WebCoreSupport/WebInspectorClient.mm:
3116         (WebInspectorFrontendClient::save):
3117         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
3118
3119 2017-03-11  Brady Eidson  <beidson@apple.com>
3120
3121         Cleanup "addCookie" and its sole user.
3122         https://bugs.webkit.org/show_bug.cgi?id=169486
3123
3124         Reviewed by Brian Burg.
3125
3126         * WebCoreSupport/WebPlatformStrategies.h:
3127         * WebCoreSupport/WebPlatformStrategies.mm:
3128         (WebPlatformStrategies::addCookie): Deleted.
3129
3130 2017-03-10  Alex Christensen  <achristensen@webkit.org>
3131
3132         Fix watch and tv builds after r213294
3133         https://bugs.webkit.org/show_bug.cgi?id=169508
3134
3135         Reviewed by Dan Bernstein.
3136
3137         * Configurations/FeatureDefines.xcconfig:
3138
3139 2017-03-10  Alex Christensen  <achristensen@webkit.org>
3140
3141         Fix CMake build.
3142
3143         * WebView/WebNotification.h:
3144         Don't assume we have already included something that includes NSObject.h.
3145
3146 2017-03-09  Daniel Bates  <dabates@apple.com>
3147
3148         Guard Credential Management implementation behind a runtime enabled feature flag
3149         https://bugs.webkit.org/show_bug.cgi?id=169364
3150         <rdar://problem/30957425>
3151
3152         Reviewed by Brent Fulgham.
3153
3154         Add WebKit preference for Credential Management (disabled by default).
3155
3156         * WebView/WebPreferenceKeysPrivate.h:
3157         * WebView/WebPreferences.mm:
3158         (+[WebPreferences initialize]):
3159         (-[WebPreferences credentialManagementEnabled]): Added.
3160         (-[WebPreferences setCredentialManagementEnabled:]): Added.
3161         * WebView/WebPreferencesPrivate.h:
3162         * WebView/WebView.mm:
3163         (-[WebView _preferencesChanged:]):
3164
3165 2017-03-09  Anders Carlsson  <andersca@apple.com>
3166
3167         Add delegate support to WebCore
3168         https://bugs.webkit.org/show_bug.cgi?id=169427
3169         Part of rdar://problem/28880714.
3170
3171         Reviewed by Geoffrey Garen.
3172
3173         * Configurations/FeatureDefines.xcconfig:
3174         Add feature define.
3175
3176 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
3177
3178         Fix DataInteraction guards
3179         https://bugs.webkit.org/show_bug.cgi?id=169404
3180
3181         Reviewed by Wenson Hsieh.
3182
3183         * WebCoreSupport/WebDragClient.mm:
3184
3185 2017-03-08  Wenson Hsieh  <wenson_hsieh@apple.com>
3186
3187         Add plumbing for WebCore to notify WebKit2 when an edit drag has concluded
3188         https://bugs.webkit.org/show_bug.cgi?id=169392
3189         <rdar://problem/30882974>
3190
3191         Reviewed by Tim Horton.
3192
3193         Add a stub implementation of WebDragClient::didConcludeEditDrag.
3194
3195         * WebCoreSupport/WebDragClient.h:
3196
3197 2017-03-08  Anders Carlsson  <andersca@apple.com>
3198
3199         Simplify the PaymentCoordinator interface
3200         https://bugs.webkit.org/show_bug.cgi?id=169382
3201         Part of rdar://problem/28880714.
3202
3203         Reviewed by Tim Horton.
3204
3205         Update for PaymentCoordinatorClient changes.
3206
3207         * WebCoreSupport/WebPaymentCoordinatorClient.h:
3208         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
3209         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
3210         (WebPaymentCoordinatorClient::completeShippingContactSelection):
3211         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
3212         (WebPaymentCoordinatorClient::completePaymentSession):
3213
3214 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
3215
3216         Fix for dependency fix
3217         https://bugs.webkit.org/show_bug.cgi?id=169369
3218
3219         Reviewed by Beth Dakin.
3220
3221         * WebView/WebViewPrivate.h:
3222
3223 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
3224
3225         Fix Project Dependency
3226         https://bugs.webkit.org/show_bug.cgi?id=169340
3227
3228         Unreviewed Dependency Fix.
3229
3230         * WebView/WebViewPrivate.h:
3231
3232 2017-03-07  Alexey Proskuryakov  <ap@apple.com>
3233
3234         WebKitLegacy should re-export symbols from WebCore on watchos and tvos
3235         https://bugs.webkit.org/show_bug.cgi?id=169341
3236         <rdar://problem/30913788>
3237
3238         Reviewed by Dan Bernstein.
3239
3240         * MigrateHeaders.make:
3241
3242 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
3243
3244         Have fixedPositionCreatesStackingContext be on by default everywhere
3245         https://bugs.webkit.org/show_bug.cgi?id=169334
3246
3247         Reviewed by Zalan Bujtas.
3248
3249         It makes no sense to have web-exposed CSS functionality be different based on setting,
3250         and other browser are now aligned with having position:fixed create stacking context.
3251
3252         So remove the fixedPositionCreatesStackingContext setting and have StyleResolver::adjustRenderStyle()
3253         always force stacking context for position:fixed.
3254
3255         * WebView/WebView.mm:
3256         (-[WebView _preferencesChanged:]):
3257
3258 2017-03-06  Simon Fraser  <simon.fraser@apple.com>
3259
3260         Initialize the subpixelAntialiasedLayerTextEnabled Setting in WebKit1
3261         https://bugs.webkit.org/show_bug.cgi?id=169230
3262
3263         Reviewed by Tim Horton.
3264
3265         * WebView/WebView.mm:
3266         (-[WebView _preferencesChanged:]):
3267
3268 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
3269
3270         Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
3271         https://bugs.webkit.org/show_bug.cgi?id=169329
3272
3273         Reviewed by Tim Horton.
3274
3275         If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
3276
3277         * WebView/WebPreferences.mm:
3278         (+[WebPreferences initialize]):
3279
3280 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
3281
3282         Additional DataInteraction Support
3283         https://bugs.webkit.org/show_bug.cgi?id=169316
3284         <rdar://problem/30884234>
3285
3286         Reviewed by Wenson Hsieh.
3287
3288         Add stub implementations to WebView for methods that handle data interaction
3289
3290         * WebView/WebView.mm:
3291         (-[WebView _enteredDataInteraction:client:global:operation:]):
3292         (-[WebView _updatedDataInteraction:client:global:operation:]):
3293         (-[WebView _exitedDataInteraction:client:global:operation:]):
3294         (-[WebView _performDataInteraction:client:global:operation:]):
3295         (-[WebView _endedDataInteraction:global:]):
3296         * WebView/WebViewPrivate.h:
3297
3298 2017-03-07  Dean Jackson  <dino@apple.com>
3299
3300         Some platforms won't be able to create a GPUDevice
3301         https://bugs.webkit.org/show_bug.cgi?id=169314
3302         <rdar://problems/30907521>
3303
3304         Reviewed by Jon Lee.
3305
3306         Disable WEB_GPU on the iOS Simulator.
3307
3308         * Configurations/FeatureDefines.xcconfig:
3309
3310 2017-03-07  Maureen Daum  <mdaum@apple.com>
3311
3312         Correctly check for an empty database file.
3313         <rdar://problem/30542242> Removing Website Data not working (WebSQL directories being left behind)
3314         https://bugs.webkit.org/show_bug.cgi?id=169256
3315
3316         Reviewed by Brady Eidson.
3317
3318         Check if the folder for an origin's WebSQL databases is empty after trying to delete
3319         all of its files. Currently we check if the deletedDatabaseFileCount matches the number
3320         of files that were in the folder. However, when we delete the actual database file in
3321         DatabaseTracker::deleteDatabaseFileIfEmpty(), the shm and wal files get deleted along with
3322         the database file, but deletedDatabaseFileCount only gets incremented once.
3323
3324         * Storage/WebDatabaseManager.mm:
3325         (+[WebDatabaseManager removeEmptyDatabaseFiles]):
3326         Delete the folder if it is empty.
3327
3328 2017-03-06  Michael Saboff  <msaboff@apple.com>
3329
3330         Unreviewed build fix to add
3331         -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
3332         for objective C++ files.
3333
3334         * Configurations/WebKitLegacy.xcconfig:
3335
3336 2017-03-06  Michael Saboff  <msaboff@apple.com>
3337
3338         Take advantage of fast permissions switching of JIT memory for devices that support it
3339         https://bugs.webkit.org/show_bug.cgi?id=169155
3340
3341         Reviewed by Saam Barati.
3342
3343         Updated the Xcode config files to match what is in the JavaScriptCore ones.
3344
3345         * Configurations/FeatureDefines.xcconfig:
3346
3347 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
3348
3349         Expand font-weight and font-stretch to take any number
3350         https://bugs.webkit.org/show_bug.cgi?id=168889
3351
3352         Reviewed by Simon Fraser.
3353
3354         Migrate off old enum types.
3355
3356         * WebCoreSupport/PopupMenuMac.mm:
3357         (PopupMenuMac::populate):
3358         * WebView/WebHTMLView.mm:
3359         (fontNameForDescription):
3360         * WebView/WebView.mm:
3361         (-[WebView updateTextTouchBar]):
3362
3363 2017-03-03  Dean Jackson  <dino@apple.com>
3364
3365         Add WebGPU compile flag and experimental feature flag
3366         https://bugs.webkit.org/show_bug.cgi?id=169161
3367         <rdar://problem/30846689>
3368
3369         Reviewed by Tim Horton.
3370
3371         Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature,
3372         and an InternalSetting.
3373
3374         * Configurations/FeatureDefines.xcconfig:
3375         * WebView/WebPreferenceKeysPrivate.h:
3376         * WebView/WebPreferences.mm:
3377         (+[WebPreferences initialize]):
3378         (-[WebPreferences webGPUEnabled]):
3379         (-[WebPreferences setWebGPUEnabled:]):
3380         * WebView/WebPreferencesPrivate.h:
3381         * WebView/WebView.mm:
3382         (-[WebView _preferencesChanged:]):
3383
3384 2017-03-03  Alexey Proskuryakov  <ap@apple.com>
3385
3386         Build fix
3387         rdar://problem/30825660
3388
3389         Suggested by Dan Bernstein.
3390
3391         * Configurations/WebKitLegacy.xcconfig:
3392
3393 2017-03-02  Sam Weinig  <sam@webkit.org>
3394
3395         Rename htmlediting.h/cpp to Editing.h/cpp
3396         https://bugs.webkit.org/show_bug.cgi?id=169103
3397
3398         Reviewed by Alex Christensen.
3399
3400         * DOM/DOMUIKitExtensions.mm:
3401         * WebView/WebFrame.mm:
3402         * WebView/WebView.mm:
3403
3404 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
3405
3406         Fix 32-bit
3407         https://bugs.webkit.org/show_bug.cgi?id=169114
3408
3409         Reviewed by Alex Christensen.
3410
3411         * WebView/WebView.mm:
3412
3413 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
3414
3415         More guard fixing
3416         https://bugs.webkit.org/show_bug.cgi?id=169112
3417
3418         Reviewed by Alex Christensen.
3419
3420         Fixed an internal build.
3421
3422         * WebView/WebView.mm:
3423         * WebView/WebViewPrivate.h:
3424
3425 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
3426
3427         Data Interaction build fixes
3428         https://bugs.webkit.org/show_bug.cgi?id=169096
3429
3430         Reviewed by Tim Horton.
3431
3432         Guards weren't all correct, also missed a selector name change.
3433
3434         * WebView/WebView.mm:
3435         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
3436         * WebView/WebViewData.h:
3437         * WebView/WebViewData.mm:
3438         (-[WebViewPrivate dealloc]):
3439
3440 2017-03-02  Alex Christensen  <achristensen@webkit.org>
3441
3442         Continue enabling WebRTC
3443         https://bugs.webkit.org/show_bug.cgi?id=169056
3444
3445         Reviewed by Jon Lee.
3446
3447         * Configurations/FeatureDefines.xcconfig:
3448
3449 2017-03-01  Megan Gardner  <megan_gardner@apple.com>
3450
3451         Data interaction support for WK1
3452         https://bugs.webkit.org/show_bug.cgi?id=169062
3453
3454         Reviewed by Wenson Hsieh.
3455
3456         Support for data interaction in WebKit1
3457
3458         * WebCoreSupport/WebDragClient.mm:
3459         * WebView/WebView.mm:
3460         (-[WebUITextIndicatorData initWithImage:TextIndicatorData:scale:]):
3461         (-[WebUITextIndicatorData initWithImage:scale:]):
3462         (-[WebUITextIndicatorData dealloc]):
3463         (-[WebView _requestStartDataInteraction:globalPosition:]):
3464         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
3465         (-[WebView _getDataInteractionData]):
3466         * WebView/WebViewData.h:
3467         * WebView/WebViewData.mm:
3468         (-[WebViewPrivate dealloc]):
3469         * WebView/WebViewInternal.h:
3470         * WebView/WebViewPrivate.h:
3471
3472 2017-03-02  Youenn Fablet  <youenn@apple.com>
3473
3474         [WebRTC] Activate ICE candidate privacy policy
3475         https://bugs.webkit.org/show_bug.cgi?id=168975
3476
3477         Reviewed by Alex Christensen.
3478
3479         * WebView/WebPreferenceKeysPrivate.h:
3480         * WebView/WebPreferences.mm:
3481         (-[WebPreferences enumeratingAllNetworkInterfacesEnabled]):
3482         (-[WebPreferences setEnumeratingAllNetworkInterfacesEnabled:]):
3483         (-[WebPreferences iceCandidateFilteringEnabled]):
3484         (-[WebPreferences setIceCandidateFilteringEnabled:]):
3485         * WebView/WebPreferencesPrivate.h:
3486
3487 2017-03-01  Alex Christensen  <achristensen@webkit.org>
3488
3489         Unreviewed, rolling out r213259.
3490
3491         Broke an internal build
3492
3493         Reverted changeset:
3494
3495         "Continue enabling WebRTC"
3496         https://bugs.webkit.org/show_bug.cgi?id=169056
3497         http://trac.webkit.org/changeset/213259
3498
3499 2017-03-01  Alex Christensen  <achristensen@webkit.org>
3500
3501         Continue enabling WebRTC
3502         https://bugs.webkit.org/show_bug.cgi?id=169056
3503
3504         Reviewed by Jon Lee.
3505
3506         * Configurations/FeatureDefines.xcconfig:
3507
3508 2017-02-27  Alex Christensen  <achristensen@webkit.org>
3509
3510         Begin enabling WebRTC on 64-bit
3511         https://bugs.webkit.org/show_bug.cgi?id=168915
3512
3513         Reviewed by Eric Carlson.
3514
3515         * Configurations/FeatureDefines.xcconfig:
3516
3517 2017-02-27  Aakash Jain  <aakash_jain@apple.com>
3518
3519         Enable SUPPORTS_TEXT_BASED_API in WebKitLegacy for iOS
3520         https://bugs.webkit.org/show_bug.cgi?id=168919
3521
3522         Reviewed by Tim Horton.
3523
3524         * Configurations/WebKitLegacy.xcconfig: Enable SUPPORTS_TEXT_BASED_API.
3525         * migrate-headers.sh: Run the migrate-headers script for installapi phase.
3526
3527 2017-02-27  Alex Christensen  <achristensen@webkit.org>
3528
3529         [libwebrtc] Enable WebRTC in some Production Builds
3530         https://bugs.webkit.org/show_bug.cgi?id=168858
3531
3532         * Configurations/FeatureDefines.xcconfig:
3533
3534 2017-02-26  Alexey Proskuryakov  <ap@apple.com>
3535
3536         Don't import RetainPtr in WebNotification.h
3537         https://bugs.webkit.org/show_bug.cgi?id=168876
3538
3539         Reviewed by Dan Bernstein.
3540
3541         This is an Objective-C SPI header.
3542
3543         * WebView/WebNotification.h:
3544         * WebView/WebNotification.mm:
3545         (-[WebNotification initWithCoreNotification:notificationID:]):
3546         (-[WebNotification dealloc]):
3547
3548 2017-02-26  Aakash Jain  <aakash_jain@apple.com>
3549
3550         Simplify EXPORTED_SYMBOLS_FILE variables in WebKitLegacy.xcconfig
3551         https://bugs.webkit.org/show_bug.cgi?id=168819
3552
3553         Reviewed by Dan Bernstein.
3554
3555         * Configurations/WebKitLegacy.xcconfig:
3556
3557 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
3558
3559         Export Objective-C symbols for variables in Webkit SPI
3560         https://bugs.webkit.org/show_bug.cgi?id=168758
3561
3562         Reviewed by Alexey Proskuryakov.
3563
3564         * Configurations/WebKitLegacy.xcconfig: using separate .exp file for i386.
3565         * WebKit.exp: Added various Objective-C symbols.
3566
3567 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
3568
3569         Move instance members from WKQuadObject to implementation file
3570         https://bugs.webkit.org/show_bug.cgi?id=168740
3571
3572         Reviewed by Tim Horton.
3573
3574         * DOM/DOM.mm: Moving instance member to implementation file.
3575         * DOM/DOMExtensions.h: Ditto.
3576
3577 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
3578
3579         Move iOS specific symbols to WebKit.ios.exp
3580         https://bugs.webkit.org/show_bug.cgi?id=168726
3581
3582         Reviewed by Alexey Proskuryakov.
3583
3584         * WebKit.exp:
3585
3586 2017-02-21  Youenn Fablet  <youenn@apple.com>
3587
3588         [WebRTC][Mac] Activate libwebrtc
3589         https://bugs.webkit.org/show_bug.cgi?id=167293
3590         <rdar://problem/30401864>
3591
3592         Reviewed by Alex Christensen.
3593
3594         * Configurations/FeatureDefines.xcconfig:
3595
3596 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
3597
3598         Export various NSString symbols from WebFramePrivate.h
3599         https://bugs.webkit.org/show_bug.cgi?id=168702
3600
3601         Reviewed by Alexey Proskuryakov.
3602
3603         * WebKit.exp:
3604
3605 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
3606
3607         Export various NSString symbols from WebPreferencesPrivate.h
3608         https://bugs.webkit.org/show_bug.cgi?id=168701
3609
3610         Reviewed by Alexey Proskuryakov.
3611
3612         * WebKit.exp:
3613