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