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