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