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