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