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