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