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