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