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