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