Add a runtime setting for media in the GPU process
[WebKit-https.git] / Source / WebKitLegacy / mac / ChangeLog
1 2019-12-03  Eric Carlson  <eric.carlson@apple.com>
2
3         Add a runtime setting for media in the GPU process
4         https://bugs.webkit.org/show_bug.cgi?id=204801
5         <rdar://problem/57596199>
6
7         Reviewed by Jer Noble.
8
9         * WebView/WebPreferenceKeysPrivate.h:
10         * WebView/WebPreferences.mm:
11         (+[WebPreferences initialize]):
12         (-[WebPreferences outOfProcessMediaEnabled]):
13         (-[WebPreferences setOutOfProcessMediaEnabled:]):
14         * WebView/WebPreferencesPrivate.h:
15         * WebView/WebView.mm:
16         (-[WebView _preferencesChanged:]):
17
18 2019-12-03  Antoine Quint  <graouts@apple.com>
19
20         [Web Animations] Add a runtime flag for Web Animations composite operations
21         https://bugs.webkit.org/show_bug.cgi?id=204718
22
23         Reviewed by Dean Jackson.
24
25         * WebView/WebPreferenceKeysPrivate.h:
26         * WebView/WebPreferences.mm:
27         (-[WebPreferences webAnimationsCompositeOperationsEnabled]):
28         (-[WebPreferences setWebAnimationsCompositeOperationsEnabled:]):
29         * WebView/WebPreferencesPrivate.h:
30         * WebView/WebView.mm:
31         (-[WebView _preferencesChanged:]):
32
33 2019-12-03  Chris Dumez  <cdumez@apple.com>
34
35         PageConfiguration::alternativeTextClient should use a smart pointer
36         https://bugs.webkit.org/show_bug.cgi?id=204777
37
38         Reviewed by Anders Carlsson.
39
40         * WebCoreSupport/WebAlternativeTextClient.h:
41         * WebCoreSupport/WebAlternativeTextClient.mm:
42         (WebAlternativeTextClient::pageDestroyed): Deleted.
43         * WebView/WebView.mm:
44         (-[WebView _commonInitializationWithFrameName:groupName:]):
45
46 2019-12-03  Carlos Garcia Campos  <cgarcia@igalia.com>
47
48         [PSON] Tooltips from previous page shown on new page
49         https://bugs.webkit.org/show_bug.cgi?id=204735
50
51         Reviewed by Chris Dumez.
52
53         Update to the new ChromeClient API.
54
55         * WebCoreSupport/WebChromeClient.h:
56         * WebCoreSupport/WebChromeClient.mm:
57         (WebChromeClient::mouseDidMoveOverElement):
58         (WebChromeClient::setToolTip):
59
60 2019-11-28  Fujii Hironori  <Hironori.Fujii@sony.com>
61
62         Remove ENABLE_KEYBOARD_CODE_ATTRIBUTE and ENABLE_KEYBOARD_KEY_ATTRIBUTE macros
63         https://bugs.webkit.org/show_bug.cgi?id=204666
64
65         Reviewed by Ross Kirsling and Don Olmstead.
66
67         * Configurations/FeatureDefines.xcconfig:
68
69 2019-11-26  Chris Dumez  <cdumez@apple.com>
70
71         Drop ActiveDOMObject::shouldPreventEnteringBackForwardCache_DEPRECATED()
72         https://bugs.webkit.org/show_bug.cgi?id=204626
73
74         Reviewed by Ryosuke Niwa.
75
76         * WebView/WebFrame.mm:
77         (-[WebFrame _cacheabilityDictionary]):
78
79 2019-11-21  Daniel Bates  <dabates@apple.com>
80
81         Remove unneeded code that annotated DOMHTMLElement as conforming to UITextInputTraits protocol
82         https://bugs.webkit.org/show_bug.cgi?id=204464
83
84         Reviewed by Wenson Hsieh.
85
86         DOMHTMLElement never really conformed to the UITextInputTraits protocol. It was annotated as doing so
87         in order to register with the runtime as part of advertising that it implemented two UITextInputTraits_Private
88         messages in r222487: -acceptsAutofilledLoginCredentials and -representingPageURL. These messages were
89         subsequently removed in r222991 (over years ago). So, we do not need to continue advertising UITextInputTraits
90         conformance.
91
92         * DOM/DOMHTMLInputElement.h:
93
94 2019-11-15  Eric Carlson  <eric.carlson@apple.com>
95
96         Don't use AVCapture on watchOS and tvOS
97         https://bugs.webkit.org/show_bug.cgi?id=204254
98         <rdar://problem/45508044>
99
100         Reviewed by Youenn Fablet.
101
102         * Configurations/FeatureDefines.xcconfig:
103
104 2019-11-15  Myles C. Maxfield  <mmaxfield@apple.com>
105
106         [Apple] Enable variation fonts on all Apple platforms
107         https://bugs.webkit.org/show_bug.cgi?id=198100
108
109         Reviewed by Simon Fraser.
110
111         * Configurations/FeatureDefines.xcconfig:
112
113 2019-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
114
115         [Mac] Fix build
116         https://bugs.webkit.org/show_bug.cgi?id=204136
117
118         Reviewed by Alex Christensen.
119
120         Remove deprecation warnings.
121
122         * Plugins/WebPluginController.mm:
123         (-[WebPluginController webPlugInContainerSelectionColor]):
124         * WebCoreSupport/WebFrameLoaderClient.mm:
125         (WebFrameLoaderClient::setCopiesOnScroll):
126         * WebView/WebHTMLView.mm:
127         (-[WebHTMLView view:stringForToolTip:point:userData:]):
128         (-[WebHTMLView pasteboardChangedOwner:]):
129         (-[WebHTMLView pasteboard:provideDataForType:]):
130         (-[WebHTMLView changeFont:]):
131         (-[WebHTMLView changeColor:]):
132         * WebView/WebPDFView.mm:
133         (-[WebPDFView _openWithFinder:]):
134
135 2019-11-08  Daniel Bates  <dabates@apple.com>
136
137         Add WebKit Legacy SPI to retrieve editable elements in rect
138         https://bugs.webkit.org/show_bug.cgi?id=204006
139         <rdar://problem/57024093>
140
141         Reviewed by Wenson Hsieh.
142
143         Add SPI to retrieve all the editable elements in a rect.
144
145         * WebView/WebView.mm:
146         (-[WebView _editableElementsInRect:]): Added.
147         * WebView/WebViewPrivate.h:
148
149 2019-11-04  Alex Christensen  <achristensen@webkit.org>
150
151         REGRESSION(r243947) Epson software updater fails to install new version
152         https://bugs.webkit.org/show_bug.cgi?id=203809
153         <rdar://problem/56002179>
154
155         Reviewed by Brady Eidson.
156
157         * Misc/WebDownload.mm:
158         (shouldCallOnNetworkThread):
159         (callOnDelegateThread):
160         (isDelegateThread):
161         (-[WebDownloadInternal downloadDidBegin:]):
162         (-[WebDownloadInternal download:willSendRequest:redirectResponse:]):
163         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]):
164         (-[WebDownloadInternal download:didReceiveResponse:]):
165         (-[WebDownloadInternal download:didReceiveDataOfLength:]):
166         (-[WebDownloadInternal download:shouldDecodeSourceDataOfMIMEType:]):
167         (-[WebDownloadInternal download:decideDestinationWithSuggestedFilename:]):
168         (-[WebDownloadInternal download:didCreateDestination:]):
169         (-[WebDownloadInternal downloadDidFinish:]):
170         (-[WebDownloadInternal download:didFailWithError:]):
171
172 2019-11-02  Devin Rousso  <drousso@apple.com>
173
174         Web Inspector: Add diagnostic logging for frontend feature usage
175         https://bugs.webkit.org/show_bug.cgi?id=203579
176         <rdar://problem/56717410>
177
178         Reviewed by Brian Burg.
179
180         Original patch by Matt Baker <mattbaker@apple.com>.
181
182         * WebCoreSupport/WebInspectorClient.h:
183         * WebCoreSupport/WebInspectorClient.mm:
184         (WebInspectorFrontendClient::supportsDiagnosticLogging): Added.
185         (WebInspectorFrontendClient::logDiagnosticEvent): Added.
186
187         * Configurations/FeatureDefines.xcconfig:
188         Add `ENABLE_INSPECTOR_TELEMETRY`, which is only enabled for macOS.
189
190 2019-10-30  Peng Liu  <peng.liu6@apple.com>
191
192         [Picture-in-Picture Web API] Enable the support for iOS
193         https://bugs.webkit.org/show_bug.cgi?id=202618
194
195         Reviewed by Jer Noble.
196
197         Enable the Picture-in-Picture API support for iOS (iPad only).
198
199         * Configurations/FeatureDefines.xcconfig:
200
201 2019-10-29  Andy Estes  <aestes@apple.com>
202
203         [Quick Look] Clean up LegacyPreviewLoaderClients
204         https://bugs.webkit.org/show_bug.cgi?id=203472
205
206         Reviewed by Brady Eidson.
207
208         * WebCoreSupport/WebFrameLoaderClient.mm:
209         (WebFrameLoaderClient::createPreviewLoaderClient):
210
211 2019-10-26  Chris Lord  <clord@igalia.com>
212
213         Put OffscreenCanvas behind a build flag
214         https://bugs.webkit.org/show_bug.cgi?id=203146
215
216         Reviewed by Ryosuke Niwa.
217
218         * Configurations/FeatureDefines.xcconfig:
219
220 2019-10-23  Andy Estes  <aestes@apple.com>
221
222         [Quick Look] Rename PreviewLoader{,Client} to LegacyPreviewLoader{,Client}
223         https://bugs.webkit.org/show_bug.cgi?id=203306
224
225         Reviewed by Tim Horton.
226
227         * WebCoreSupport/WebFrameLoaderClient.h:
228         * WebCoreSupport/WebFrameLoaderClient.mm:
229         (WebFrameLoaderClient::createPreviewLoaderClient):
230         * WebView/WebDataSource.mm:
231         (-[WebDataSource _quickLookPreviewLoaderClient]):
232         (-[WebDataSource _setQuickLookPreviewLoaderClient:]):
233         * WebView/WebDataSourceInternal.h:
234
235 2019-10-22  Alex Christensen  <achristensen@webkit.org>
236
237         Re-enable legacy TLS by default, keep runtime switch
238         https://bugs.webkit.org/show_bug.cgi?id=203253
239
240         Reviewed by Geoffrey Garen.
241
242         * WebView/WebView.mm:
243         (-[WebView _commonInitializationWithFrameName:groupName:]):
244
245 2019-10-21  Yusuke Suzuki  <ysuzuki@apple.com>
246
247         [JSC] Thread JSGlobalObject* instead of ExecState*
248         https://bugs.webkit.org/show_bug.cgi?id=202392
249
250         Reviewed by Geoffrey Garen.
251
252         * DOM/DOMInternal.mm:
253         (-[WebScriptObject _initializeScriptDOMNodeImp]):
254         * DOM/WebDOMOperations.mm:
255         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
256         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
257         (WebKit::NetscapePluginInstanceProxy::evaluate):
258         (WebKit::NetscapePluginInstanceProxy::invoke):
259         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
260         (WebKit::NetscapePluginInstanceProxy::construct):
261         (WebKit::NetscapePluginInstanceProxy::getProperty):
262         (WebKit::NetscapePluginInstanceProxy::setProperty):
263         (WebKit::NetscapePluginInstanceProxy::removeProperty):
264         (WebKit::NetscapePluginInstanceProxy::hasProperty):
265         (WebKit::NetscapePluginInstanceProxy::hasMethod):
266         (WebKit::NetscapePluginInstanceProxy::enumerate):
267         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
268         (WebKit::NetscapePluginInstanceProxy::marshalValue):
269         (WebKit::NetscapePluginInstanceProxy::marshalValues):
270         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
271         (WebKit::NetscapePluginInstanceProxy::demarshalValue):
272         (WebKit::NetscapePluginInstanceProxy::demarshalValues):
273         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
274         * Plugins/Hosted/ProxyInstance.h:
275         * Plugins/Hosted/ProxyInstance.mm:
276         (WebKit::ProxyField::valueFromInstance const):
277         (WebKit::ProxyField::setValueToInstance const):
278         (WebKit::ProxyInstance::newRuntimeObject):
279         (WebKit::ProxyInstance::invoke):
280         (WebKit::ProxyRuntimeMethod::create):
281         (WebKit::ProxyInstance::getMethod):
282         (WebKit::ProxyInstance::invokeMethod):
283         (WebKit::ProxyInstance::invokeDefaultMethod):
284         (WebKit::ProxyInstance::invokeConstruct):
285         (WebKit::ProxyInstance::defaultValue const):
286         (WebKit::ProxyInstance::stringValue const):
287         (WebKit::ProxyInstance::numberValue const):
288         (WebKit::ProxyInstance::valueOf const):
289         (WebKit::ProxyInstance::getPropertyNames):
290         (WebKit::ProxyInstance::fieldValue const):
291         (WebKit::ProxyInstance::setFieldValue const):
292         * WebView/WebFrame.mm:
293         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
294         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
295         (-[WebFrame _globalContextForScriptWorld:]):
296         (-[WebFrame jsWrapperForNode:inScriptWorld:]):
297         (-[WebFrame globalContext]):
298         * WebView/WebScriptDebugger.h:
299         * WebView/WebScriptDebugger.mm:
300         (WebScriptDebugger::sourceParsed):
301         * WebView/WebView.mm:
302         (+[WebView _reportException:inContext:]):
303         (aeDescFromJSValue):
304         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
305
306 2019-10-22  Wenson Hsieh  <wenson_hsieh@apple.com>
307
308         imported/w3c/web-platform-tests/clipboard-apis/async-navigator-clipboard-basics.https.html is flaky
309         https://bugs.webkit.org/show_bug.cgi?id=203181
310
311         Reviewed by Ryosuke Niwa.
312
313         Add a changeCount argument to informationForItemAtIndex and allPasteboardItemInfo, and also make then return
314         optional values. See WebCore ChangeLog for more details.
315
316         * WebCoreSupport/WebPlatformStrategies.h:
317         * WebCoreSupport/WebPlatformStrategies.mm:
318         (WebPlatformStrategies::changeCount):
319         (WebPlatformStrategies::addTypes):
320         (WebPlatformStrategies::setTypes):
321         (WebPlatformStrategies::setBufferForType):
322         (WebPlatformStrategies::setURL):
323         (WebPlatformStrategies::setColor):
324         (WebPlatformStrategies::setStringForType):
325         (WebPlatformStrategies::writeCustomData):
326         (WebPlatformStrategies::informationForItemAtIndex):
327         (WebPlatformStrategies::allPasteboardItemInfo):
328
329 2019-10-17  Devin Rousso  <drousso@apple.com>
330
331         Web Inspector: rework frontend agent construction to allow commands/events to be controlled by the related target's type
332         https://bugs.webkit.org/show_bug.cgi?id=200384
333         <rdar://problem/53850352>
334
335         Reviewed by Joseph Pecoraro.
336
337         * WebCoreSupport/WebInspectorClient.h:
338         (WebInspectorFrontendClient::debuggableType const): Added.
339         Split the `Web` debuggable type into `Page` (WebCore::Page) and `WebPage` (WebKit::WebPageProxy).
340
341 2019-10-16  Chris Dumez  <cdumez@apple.com>
342
343         Unreviewed, fix iOS Debug build after r251220.
344
345         * WebView/WebView.mm:
346         (-[WebView _preferencesChanged:]):
347
348 2019-10-16  Chris Dumez  <cdumez@apple.com>
349
350         Rename PageCache to BackForwardCache
351         https://bugs.webkit.org/show_bug.cgi?id=203048
352
353         Reviewed by Alex Christensen.
354
355         Rename PageCache to BackForwardCache for clarity and consistency with the UIProcess's WebBackForwardCache.
356
357         * History/BackForwardList.mm:
358         (BackForwardList::addItem):
359         (BackForwardList::setCapacity):
360         * History/WebBackForwardList.mm:
361         (-[WebBackForwardList pageCacheSize]):
362         * History/WebHistoryItem.mm:
363         * History/WebHistoryItemPrivate.h:
364         * Misc/WebCache.mm:
365         * Misc/WebCoreStatistics.mm:
366         (+[WebCoreStatistics cachedPageCount]):
367         (+[WebCoreStatistics cachedFrameCount]):
368         * WebCoreSupport/WebFrameLoaderClient.h:
369         * WebCoreSupport/WebFrameLoaderClient.mm:
370         (WebFrameLoaderClient::forceLayoutOnRestoreFromBackForwardCache):
371         (WebFrameLoaderClient::didRestoreFromBackForwardCache):
372         * WebCoreSupport/WebVisitedLinkStore.mm:
373         * WebView/WebHTMLView.mm:
374         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]):
375         (-[WebHTMLView setNeedsLayout:]):
376         (-[WebHTMLView setNeedsToApplyStyles:]):
377         * WebView/WebView.mm:
378         (-[WebView _close]):
379         (-[WebView _preferencesChanged:]):
380         (+[WebView _setCacheModel:]):
381
382 2019-10-16  Chris Dumez  <cdumez@apple.com>
383
384         [WK2] Move back/forward cache entry expiration from the WebProcess to the UIProcess
385         https://bugs.webkit.org/show_bug.cgi?id=203034
386         <rdar://problem/56332453>
387
388         Reviewed by Antti Koivisto.
389
390         * WebView/WebView.mm:
391         (-[WebView _preferencesChanged:]):
392
393 2019-10-15  Chris Dumez  <cdumez@apple.com>
394
395         [macOS] Simplify main thread initialization
396         https://bugs.webkit.org/show_bug.cgi?id=203001
397
398         Reviewed by Geoff Garen.
399
400         * History/WebBackForwardList.mm:
401         (+[WebBackForwardList initialize]):
402         * History/WebHistoryItem.mm:
403         (+[WebHistoryItem initialize]):
404         * Misc/WebCache.mm:
405         (+[WebCache initialize]):
406         * Misc/WebElementDictionary.mm:
407         (+[WebElementDictionary initialize]):
408         * Misc/WebIconDatabase.mm:
409         * Misc/WebStringTruncator.mm:
410         (+[WebStringTruncator initialize]):
411         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
412         (+[WebHostedNetscapePluginView initialize]):
413         * Plugins/WebBaseNetscapePluginView.mm:
414         * Plugins/WebBasePluginPackage.mm:
415         (+[WebBasePluginPackage initialize]):
416         * Plugins/WebNetscapePluginView.mm:
417         (+[WebNetscapePluginView initialize]):
418         * WebCoreSupport/WebEditorClient.mm:
419         (+[WebUndoStep initialize]):
420         * WebCoreSupport/WebFrameLoaderClient.mm:
421         (+[WebFramePolicyListener initialize]):
422         * WebView/WebArchive.mm:
423         (+[WebArchivePrivate initialize]):
424         * WebView/WebDataSource.mm:
425         (+[WebDataSource initialize]):
426         * WebView/WebHTMLView.mm:
427         (+[WebHTMLViewPrivate initialize]):
428         (+[WebHTMLView initialize]):
429         * WebView/WebPreferences.mm:
430         (+[WebPreferences initialize]):
431         * WebView/WebResource.mm:
432         (+[WebResourcePrivate initialize]):
433         * WebView/WebTextIterator.mm:
434         (+[WebTextIteratorPrivate initialize]):
435         * WebView/WebView.mm:
436         (+[WebView initialize]):
437         * WebView/WebViewData.mm:
438         (+[WebViewPrivate initialize]):
439
440 2019-10-15  Peng Liu  <peng.liu6@apple.com>
441
442         [Picture-in-Picture Web API] Implement HTMLVideoElement.requestPictureInPicture() / Document.exitPictureInPicture()
443         https://bugs.webkit.org/show_bug.cgi?id=201024
444
445         Reviewed by Eric Carlson.
446
447         Add configurations for Picture-in-Picture API and also a preference option for it.
448
449         * Configurations/FeatureDefines.xcconfig:
450         * WebView/WebPreferenceKeysPrivate.h:
451         * WebView/WebPreferences.mm:
452         (+[WebPreferences initialize]):
453         (-[WebPreferences pictureInPictureAPIEnabled]):
454         (-[WebPreferences setPictureInPictureAPIEnabled:]):
455         * WebView/WebPreferencesPrivate.h:
456         * WebView/WebView.mm:
457         (-[WebView _preferencesChanged:]):
458
459 2019-10-14  Chris Dumez  <cdumez@apple.com>
460
461         [WK2] Have WebBackForwardCache class coordinate page caching in all WebProcesses
462         https://bugs.webkit.org/show_bug.cgi?id=202929
463         <rdar://problem/56250421>
464
465         Reviewed by Alex Christensen.
466
467         * WebCoreSupport/WebFrameLoaderClient.h:
468         * WebCoreSupport/WebFrameLoaderClient.mm:
469
470 2019-10-14  Wenson Hsieh  <wenson_hsieh@apple.com>
471
472         [Clipboard API] Refactor custom pasteboard writing codepaths to handle multiple items
473         https://bugs.webkit.org/show_bug.cgi?id=202916
474
475         Reviewed by Tim Horton.
476
477         Adjust some method signatures.
478
479         * WebCoreSupport/WebPlatformStrategies.h:
480         * WebCoreSupport/WebPlatformStrategies.mm:
481         (WebPlatformStrategies::writeCustomData):
482
483 2019-10-14  David Quesada  <david_quesada@apple.com>
484
485         Remove WebCore::IOSApplication::isWebApp()
486         https://bugs.webkit.org/show_bug.cgi?id=181259
487
488         Reviewed by Alex Christensen.
489
490         * WebCoreSupport/WebApplicationCache.mm:
491         (applicationCacheBundleIdentifier):
492
493 2019-10-14  Wenson Hsieh  <wenson_hsieh@apple.com>
494
495         [Clipboard API] Support writing multiple PasteboardCustomData with SharedBuffers to the pasteboard
496         https://bugs.webkit.org/show_bug.cgi?id=202851
497
498         Reviewed by Darin Adler.
499
500         See WebCore ChangeLog for more details.
501
502         * WebCoreSupport/WebPlatformStrategies.h:
503
504 2019-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
505
506         [Clipboard API] Refactor Pasteboard item reading functions to work on both iOS and macOS
507         https://bugs.webkit.org/show_bug.cgi?id=202647
508
509         Reviewed by Tim Horton.
510
511         Refactor iOS-specific pasteboard functions to be platform-agnostic. See WebCore ChangeLog for more details.
512
513         * WebCoreSupport/WebPlatformStrategies.h:
514         * WebCoreSupport/WebPlatformStrategies.mm:
515         (WebPlatformStrategies::informationForItemAtIndex):
516         (WebPlatformStrategies::allPasteboardItemInfo):
517         (WebPlatformStrategies::getPasteboardItemsCount):
518         (WebPlatformStrategies::readBufferFromPasteboard):
519         (WebPlatformStrategies::readURLFromPasteboard):
520         (WebPlatformStrategies::readStringFromPasteboard):
521         (WebPlatformStrategies::writeToPasteboard):
522         (WebPlatformStrategies::updateSupportedTypeIdentifiers):
523
524 2019-10-08  Antti Koivisto  <antti@apple.com>
525
526         [CSS Shadow Parts] Enable by default
527         https://bugs.webkit.org/show_bug.cgi?id=202644
528
529         Reviewed by Ryosuke Niwa.
530
531         * WebView/WebPreferences.mm:
532         (+[WebPreferences initialize]):
533
534 2019-10-07  Ryosuke Niwa  <rniwa@webkit.org>
535
536         Add IDL for requestIdleCallback
537         https://bugs.webkit.org/show_bug.cgi?id=202653
538
539         Reviewed by Geoffrey Garen.
540
541         * WebView/WebPreferenceKeysPrivate.h:
542         * WebView/WebPreferences.mm:
543         (+[WebPreferences initialize]):
544         * WebView/WebPreferencesPrivate.h:
545         * WebView/WebView.mm:
546         (-[WebView _preferencesChanged:]):
547
548 2019-10-07  Yusuke Suzuki  <ysuzuki@apple.com>
549
550         [JSC] Change signature of HostFunction to (JSGlobalObject*, CallFrame*)
551         https://bugs.webkit.org/show_bug.cgi?id=202569
552
553         Reviewed by Saam Barati.
554
555         * WebView/WebScriptDebugger.h:
556
557 2019-10-04  Alex Christensen  <achristensen@webkit.org>
558
559         Rename SchemeRegistry to LegacySchemeRegistry
560         https://bugs.webkit.org/show_bug.cgi?id=202586
561
562         Reviewed by Tim Horton.
563
564         * WebView/WebView.mm:
565         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
566         (+[WebView _registerURLSchemeAsSecure:]):
567         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
568         (+[WebView registerURLSchemeAsLocal:]):
569
570 2019-10-04  Alex Christensen  <achristensen@webkit.org>
571
572         Simplify sandbox enabling macros
573         https://bugs.webkit.org/show_bug.cgi?id=202536
574
575         Reviewed by Brent Fulgham.
576
577         * Configurations/FeatureDefines.xcconfig:
578
579 2019-10-02  Tim Horton  <timothy_horton@apple.com>
580
581         Provide TAPI the full target triple instead of just the arch
582         https://bugs.webkit.org/show_bug.cgi?id=202486
583
584         Reviewed by Simon Fraser.
585
586         * MigrateHeaders.make:
587         For accuracy and consistency's sake, pass the whole target identifier
588         instead of just one piece.
589
590 2019-10-01  Tim Horton  <timothy_horton@apple.com>
591
592         Clean up some includes to make the build a bit faster
593         https://bugs.webkit.org/show_bug.cgi?id=202444
594
595         Reviewed by Geoff Garen.
596
597         * WebView/WebFrame.mm:
598         * WebView/WebView.mm:
599
600 2019-10-01  Antti Koivisto  <antti@apple.com>
601
602         [CSS Shadow Parts] Parse 'part' attribute
603         https://bugs.webkit.org/show_bug.cgi?id=202409
604
605         Reviewed by Ryosuke Niwa.
606
607         * WebView/WebPreferenceKeysPrivate.h:
608         * WebView/WebPreferences.mm:
609         (+[WebPreferences initialize]):
610         (-[WebPreferences cssShadowPartsEnabled]):
611         (-[WebPreferences setCSSShadowPartsEnabled:]):
612         * WebView/WebPreferencesPrivate.h:
613         * WebView/WebView.mm:
614         (-[WebView _preferencesChanged:]):
615
616 2019-10-01  Alex Christensen  <achristensen@webkit.org>
617
618         Progress towards successful CMake build on Mac
619         https://bugs.webkit.org/show_bug.cgi?id=202426
620
621         Rubber-stamped by Tim Horton.
622
623         * WebView/WebDataSource.mm:
624
625 2019-10-01  Alex Christensen  <achristensen@webkit.org>
626
627         Unify more WebKitLegacy sources
628         https://bugs.webkit.org/show_bug.cgi?id=202410
629
630         Reviewed by Tim Horton.
631
632         * DOM/DOMHTML.mm:
633         (-[DOMHTMLElement scrollXOffset]):
634         (-[DOMHTMLElement scrollYOffset]):
635         (-[DOMHTMLElement setScrollXOffset:scrollYOffset:adjustForIOSCaret:]):
636         (-[DOMHTMLElement absolutePosition::::]):
637         (-[DOMHTMLInputElement setValueWithChangeEvent:]):
638         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]):
639         * DOM/DOMHTMLTextAreaElement.mm:
640         (unwrap):
641         (core):
642         (kit):
643         (-[DOMHTMLTextAreaElement autofocus]):
644         (-[DOMHTMLTextAreaElement setAutofocus:]):
645         (-[DOMHTMLTextAreaElement dirName]):
646         (-[DOMHTMLTextAreaElement setDirName:]):
647         (-[DOMHTMLTextAreaElement disabled]):
648         (-[DOMHTMLTextAreaElement setDisabled:]):
649         (-[DOMHTMLTextAreaElement form]):
650         (-[DOMHTMLTextAreaElement maxLength]):
651         (-[DOMHTMLTextAreaElement setMaxLength:]):
652         (-[DOMHTMLTextAreaElement name]):
653         (-[DOMHTMLTextAreaElement setName:]):
654         (-[DOMHTMLTextAreaElement placeholder]):
655         (-[DOMHTMLTextAreaElement setPlaceholder:]):
656         (-[DOMHTMLTextAreaElement readOnly]):
657         (-[DOMHTMLTextAreaElement setReadOnly:]):
658         (-[DOMHTMLTextAreaElement required]):
659         (-[DOMHTMLTextAreaElement setRequired:]):
660         (-[DOMHTMLTextAreaElement rows]):
661         (-[DOMHTMLTextAreaElement setRows:]):
662         (-[DOMHTMLTextAreaElement cols]):
663         (-[DOMHTMLTextAreaElement setCols:]):
664         (-[DOMHTMLTextAreaElement wrap]):
665         (-[DOMHTMLTextAreaElement setWrap:]):
666         (-[DOMHTMLTextAreaElement type]):
667         (-[DOMHTMLTextAreaElement defaultValue]):
668         (-[DOMHTMLTextAreaElement setDefaultValue:]):
669         (-[DOMHTMLTextAreaElement value]):
670         (-[DOMHTMLTextAreaElement setValue:]):
671         (-[DOMHTMLTextAreaElement textLength]):
672         (-[DOMHTMLTextAreaElement willValidate]):
673         (-[DOMHTMLTextAreaElement labels]):
674         (-[DOMHTMLTextAreaElement selectionStart]):
675         (-[DOMHTMLTextAreaElement setSelectionStart:]):
676         (-[DOMHTMLTextAreaElement selectionEnd]):
677         (-[DOMHTMLTextAreaElement setSelectionEnd:]):
678         (-[DOMHTMLTextAreaElement selectionDirection]):
679         (-[DOMHTMLTextAreaElement setSelectionDirection:]):
680         (-[DOMHTMLTextAreaElement accessKey]):
681         (-[DOMHTMLTextAreaElement setAccessKey:]):
682         (-[DOMHTMLTextAreaElement autocomplete]):
683         (-[DOMHTMLTextAreaElement setAutocomplete:]):
684         (-[DOMHTMLTextAreaElement select]):
685         (-[DOMHTMLTextAreaElement setRangeText:]):
686         (-[DOMHTMLTextAreaElement setRangeText:start:end:selectionMode:]):
687         (-[DOMHTMLTextAreaElement setSelectionRange:end:]):
688         * DOM/DOMUIKitExtensions.mm:
689         (-[DOMRange move:inDirection:]):
690         (-[DOMRange extend:inDirection:]):
691         (-[DOMNode borderRadii]):
692         (-[DOMNode isSelectableBlock]):
693         (-[DOMNode findExplodedTextNodeAtPoint:]):
694         (-[DOMHTMLElement structuralComplexityContribution]):
695         * WebCoreSupport/WebFrameLoaderClient.h:
696         * WebCoreSupport/WebFrameLoaderClient.mm:
697         (dataSource):
698         * WebView/WebDataSource.mm:
699         (addTypesFromClass):
700
701 2019-10-01  Alex Christensen  <achristensen@webkit.org>
702
703         Fix internal build after r250549
704         https://bugs.webkit.org/show_bug.cgi?id=202390
705
706         Remove some more "using namespace WebCore"
707
708         * History/WebBackForwardList.mm:
709         (-[WebBackForwardList dictionaryRepresentation]):
710         (vectorToNSArray):
711         (-[WebBackForwardList backListWithLimit:]):
712         (-[WebBackForwardList forwardListWithLimit:]):
713         (-[WebBackForwardList description]):
714         (-[WebBackForwardList pageCacheSize]):
715         * Misc/WebSharingServicePickerController.mm:
716         (WebSharingServicePickerClient::pageForSharingServicePicker):
717         (WebSharingServicePickerClient::screenRectForCurrentSharingServicePickerItem):
718         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
719         (-[WebSharingServicePickerController sharingService:didShareItems:]):
720         * Plugins/WebBasePluginPackage.mm:
721         (-[WebBasePluginPackage getPluginInfoFromPLists]):
722         (-[WebBasePluginPackage pluginInfo]):
723         * Plugins/WebPluginContainerCheck.mm:
724         (-[WebPluginContainerCheck _continueWithPolicy:]):
725         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
726         * Plugins/WebPluginController.mm:
727         (initializeAudioSession):
728         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
729         (-[WebPluginController superlayerForPluginView:]):
730         (-[WebPluginController stopOnePlugin:]):
731         (-[WebPluginController stopOnePluginForPageCache:]):
732         (-[WebPluginController destroyOnePlugin:]):
733         (-[WebPluginController startAllPlugins]):
734         (-[WebPluginController addPlugin:]):
735         (-[WebPluginController destroyPlugin:]):
736         (-[WebPluginController destroyAllPlugins]):
737         (-[WebPluginController processingUserGesture]):
738         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
739         (-[WebPluginController webPlugInContainerSelectionColor]):
740         * Plugins/WebPluginDatabase.mm:
741         (-[WebPluginDatabase refresh]):
742         (-[WebPluginDatabase _removePlugin:]):
743         * WebCoreSupport/WebApplicationCache.mm:
744         (+[WebApplicationCache initializeWithBundleIdentifier:]):
745         (webApplicationCacheStorage):
746         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
747
748 2019-09-30  Alex Christensen  <achristensen@webkit.org>
749
750         Resurrect Mac CMake build
751         https://bugs.webkit.org/show_bug.cgi?id=202384
752
753         Rubber-stamped by Tim Horton.
754
755         * DefaultDelegates/WebDefaultPolicyDelegate.m:
756         (-[WebDefaultPolicyDelegate webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
757
758 2019-09-30  Alex Christensen  <achristensen@webkit.org>
759
760         Unify more WebKitLegacy sources
761         https://bugs.webkit.org/show_bug.cgi?id=202390
762
763         Reviewed by Tim Horton.
764
765         * WebCoreSupport/WebFrameLoaderClient.mm:
766         (dataSource):
767         (WebFrameLoaderClient::pageID const):
768         (WebFrameLoaderClient::frameID const):
769         (WebFrameLoaderClient::makeRepresentation):
770         (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
771         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
772         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
773         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
774         (WebFrameLoaderClient::dispatchWillSendRequest):
775         (WebFrameLoaderClient::shouldUseCredentialStorage):
776         (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
777         (WebFrameLoaderClient::canAuthenticateAgainstProtectionSpace):
778         (WebFrameLoaderClient::connectionProperties):
779         (WebFrameLoaderClient::dispatchDidReceiveResponse):
780         (WebFrameLoaderClient::willCacheResponse const):
781         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
782         (WebFrameLoaderClient::dispatchDidFinishLoading):
783         (WebFrameLoaderClient::dispatchDidFailLoading):
784         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
785         (WebFrameLoaderClient::dispatchDidReceiveTitle):
786         (WebFrameLoaderClient::dispatchDidCommitLoad):
787         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
788         (WebFrameLoaderClient::dispatchDidFailLoad):
789         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
790         (WebFrameLoaderClient::dispatchCreatePage):
791         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
792         (shouldTryAppLink):
793         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
794         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
795         (WebFrameLoaderClient::dispatchUnableToImplementPolicy):
796         (makeFormFieldValuesDictionary):
797         (WebFrameLoaderClient::dispatchWillSubmitForm):
798         (WebFrameLoaderClient::revertToProvisionalState):
799         (WebFrameLoaderClient::setMainDocumentError):
800         (WebFrameLoaderClient::startDownload):
801         (WebFrameLoaderClient::willChangeTitle):
802         (WebFrameLoaderClient::didChangeTitle):
803         (WebFrameLoaderClient::didReplaceMultipartContent):
804         (WebFrameLoaderClient::committedLoad):
805         (WebFrameLoaderClient::finishedLoading):
806         (WebFrameLoaderClient::updateGlobalHistory):
807         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
808         (WebFrameLoaderClient::shouldGoToHistoryItem const):
809         (WebFrameLoaderClient::didDisplayInsecureContent):
810         (WebFrameLoaderClient::didRunInsecureContent):
811         (WebFrameLoaderClient::cancelledError):
812         (WebFrameLoaderClient::blockedError):
813         (WebFrameLoaderClient::blockedByContentBlockerError):
814         (WebFrameLoaderClient::cannotShowURLError):
815         (WebFrameLoaderClient::interruptedForPolicyChangeError):
816         (WebFrameLoaderClient::blockedByContentFilterError):
817         (WebFrameLoaderClient::cannotShowMIMETypeError):
818         (WebFrameLoaderClient::fileDoesNotExistError):
819         (WebFrameLoaderClient::pluginWillHandleLoadError):
820         (WebFrameLoaderClient::shouldFallBack):
821         (WebFrameLoaderClient::canHandleRequest const):
822         (WebFrameLoaderClient::saveViewStateToItem):
823         (WebFrameLoaderClient::restoreViewState):
824         (WebFrameLoaderClient::createDocumentLoader):
825         (WebFrameLoaderClient::setTitle):
826         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
827         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
828         (WebFrameLoaderClient::transitionToCommittedForNewPage):
829         (WebFrameLoaderClient::setUpPolicyListener):
830         (WebFrameLoaderClient::actionDictionary const):
831         (WebFrameLoaderClient::canCachePage const):
832         (WebFrameLoaderClient::createFrame):
833         (WebFrameLoaderClient::objectContentType):
834         (PluginWidget::PluginWidget):
835         (PluginWidget::invalidateRect):
836         (NetscapePluginWidget::handleEvent):
837         (NetscapePluginWidget::notifyWidget):
838         (shouldBlockPlugin):
839         (WebFrameLoaderClient::createPlugin):
840         (WebFrameLoaderClient::redirectDataToPlugin):
841         (WebFrameLoaderClient::createJavaAppletWidget):
842         (shouldBlockWebGL):
843         (WebFrameLoaderClient::webGLPolicyForURL const):
844         (WebFrameLoaderClient::resolveWebGLPolicyForURL const):
845         (WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
846         (WebFrameLoaderClient::createNetworkingContext):
847         (WebFrameLoaderClient::createPreviewLoaderClient):
848         (WebFrameLoaderClient::getLoadDecisionForIcons):
849         (webGetNSImage):
850         (WebFrameLoaderClient::finishedLoadingIcon):
851         (-[WebFramePolicyListener initWithFrame:identifier:policyFunction:defaultPolicy:]):
852         (-[WebFramePolicyListener initWithFrame:identifier:policyFunction:defaultPolicy:appLinkURL:]):
853         (-[WebFramePolicyListener invalidate]):
854         (-[WebFramePolicyListener receivedPolicyDecision:]):
855         (-[WebFramePolicyListener ignore]):
856         (-[WebFramePolicyListener download]):
857         (-[WebFramePolicyListener use]):
858         (-[WebFramePolicyListener continue]):
859         * WebInspector/WebInspector.mm:
860         (-[WebInspector showWindow]):
861         (-[WebInspector evaluateInFrontend:script:]):
862         * WebView/WebClipView.mm:
863         (-[WebClipView visibleRect]):
864         (-[WebClipView _immediateScrollToPoint:]):
865         * WebView/WebDataSource.mm:
866         (-[WebDataSource _documentFragmentWithArchive:]):
867         (-[WebDataSource _documentLoader]):
868         (-[WebDataSource initWithRequest:]):
869         (-[WebDataSource dealloc]):
870         (-[WebDataSource data]):
871         (-[WebDataSource webFrame]):
872         (-[WebDataSource initialRequest]):
873         (-[WebDataSource request]):
874         (-[WebDataSource webArchive]):
875         * WebView/WebFrame.mm:
876         (core):
877         (kit):
878         (getWebView):
879         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
880         (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
881         (+[WebFrame _createSubframeWithOwnerElement:frameName:frameView:]):
882         (+[WebFrame _createMainFrameWithSimpleHTMLDocumentWithPage:frameView:style:]):
883         (-[WebFrame _attachScriptDebugger]):
884         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
885         (-[WebFrame _unmarkAllBadGrammar]):
886         (-[WebFrame _unmarkAllMisspellings]):
887         (-[WebFrame _hasSelection]):
888         (-[WebFrame _atMostOneFrameHasSelection]):
889         (-[WebFrame _findFrameWithSelection]):
890         (-[WebFrame _nodesFromList:]):
891         (-[WebFrame _stringForRange:]):
892         (-[WebFrame _paintBehaviorForDestinationContext:]):
893         (-[WebFrame _drawRect:contentsOnly:]):
894         (-[WebFrame _getVisibleRect:]):
895         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
896         (-[WebFrame _caretRectAtPosition:affinity:]):
897         (-[WebFrame _scrollDOMRangeToVisible:]):
898         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
899         (-[WebFrame _rangeByAlteringCurrentSelection:direction:granularity:]):
900         (-[WebFrame _selectionGranularity]):
901         (-[WebFrame _convertToNSRange:]):
902         (-[WebFrame _convertToDOMRange:]):
903         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
904         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
905         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
906         (-[WebFrame _visiblePositionForPoint:]):
907         (-[WebFrame _characterRangeAtPoint:]):
908         (-[WebFrame _typingStyle]):
909         (-[WebFrame _setTypingStyle:withUndoAction:]):
910         (-[WebFrame _dragSourceEndedAt:operation:]):
911         (-[WebFrame _canProvideDocumentSource]):
912         (-[WebFrame _commitData:]):
913         (-[WebFrame _isDescendantOfFrame:]):
914         (-[WebFrame _bodyBackgroundColor]):
915         (-[WebFrame _isFrameSet]):
916         (-[WebFrame _isVisuallyNonEmpty]):
917         (toWebFrameLoadType):
918         (-[WebFrame _rectsForRange:]):
919         (-[WebFrame _selectionRangeForFirstPoint:secondPoint:]):
920         (-[WebFrame _selectionRangeForPoint:]):
921         (-[WebFrame _selectNSRange:]):
922         (-[WebFrame _isDisplayingStandaloneImage]):
923         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
924         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
925         (-[WebFrame setTimeoutsPaused:]):
926         (-[WebFrame prepareForPause]):
927         (-[WebFrame resumeFromPause]):
928         (-[WebFrame selectWithoutClosingTypingNSRange:]):
929         (-[WebFrame _saveViewState]):
930         (-[WebFrame deviceOrientationChanged]):
931         (-[WebFrame renderedSizeOfNode:constrainedToWidth:]):
932         (-[WebFrame deepestNodeAtViewportLocation:]):
933         (-[WebFrame scrollableNodeAtViewportLocation:]):
934         (-[WebFrame approximateNodeAtViewportLocation:]):
935         (-[WebFrame revealSelectionAtExtent:]):
936         (-[WebFrame setCaretColor:]):
937         (-[WebFrame isTelephoneNumberParsingAllowed]):
938         (-[WebFrame isTelephoneNumberParsingEnabled]):
939         (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]):
940         (-[WebFrame selectNSRange:onElement:]):
941         (-[WebFrame setMarkedText:selectedRange:]):
942         (-[WebFrame setMarkedText:forCandidates:]):
943         (-[WebFrame getDictationResultRanges:andMetadatas:]):
944         (-[WebFrame dictationResultMetadataForRange:]):
945         (+[WebFrame stringWithData:textEncodingName:]):
946         (-[WebFrame fontForSelection:]):
947         (-[WebFrame _userScrolled]):
948         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:matchStyle:]):
949         (-[WebFrame resetTextAutosizingBeforeLayout]):
950         (-[WebFrame _setTextAutosizingWidth:]):
951         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
952         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
953         (-[WebFrame _smartInsertForString:replacingRange:beforeString:afterString:]):
954         (-[WebFrame _cacheabilityDictionary]):
955         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
956         (-[WebFrame _globalContextForScriptWorld:]):
957         (-[WebFrame setAccessibleName:]):
958         (-[WebFrame enhancedAccessibilityEnabled]):
959         (-[WebFrame setEnhancedAccessibility:]):
960         (-[WebFrame _layerTreeAsText]):
961         (-[WebFrame accessibilityRoot]):
962         (-[WebFrame _clearOpener]):
963         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
964         (-[WebFrame focusedNodeHasContent]):
965         (-[WebFrame _dispatchDidReceiveTitle:]):
966         (-[WebFrame jsWrapperForNode:inScriptWorld:]):
967         (-[WebFrame elementAtPoint:]):
968         (-[WebFrame name]):
969         (needsMicrosoftMessengerDOMDocumentWorkaround):
970         (-[WebFrame DOMDocument]):
971         (-[WebFrame frameElement]):
972         (-[WebFrame provisionalDataSource]):
973         (-[WebFrame dataSource]):
974         (-[WebFrame loadRequest:]):
975         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
976         (-[WebFrame findFrameNamed:]):
977         (-[WebFrame parentFrame]):
978         (-[WebFrame childFrames]):
979         (-[WebFrame windowObject]):
980         (-[WebFrame globalContext]):
981         (-[WebFrame javaScriptContext]):
982         (dataSource): Deleted.
983         * WebView/WebFrameView.mm:
984         (-[WebFrameView _web_frame]):
985         (-[WebFrameView _setDocumentView:]):
986         (-[WebFrameView _verticalPageScrollDistance]):
987         (-[WebFrameView _install]):
988         (-[WebFrameView _frameSizeChanged]):
989         (-[WebFrameView initWithFrame:]):
990         (-[WebFrameView drawRect:]):
991         (-[WebFrameView _scrollOverflowInDirection:granularity:]):
992         (-[WebFrameView _isVerticalDocument]):
993         (-[WebFrameView _isFlippedDocument]):
994         (-[WebFrameView _scrollToBeginningOfDocument]):
995         (-[WebFrameView _scrollToEndOfDocument]):
996         (-[WebFrameView _horizontalPageScrollDistance]):
997         (-[WebFrameView _pageVertically:]):
998         (-[WebFrameView _pageHorizontally:]):
999         (-[WebFrameView _scrollLineVertically:]):
1000         (-[WebFrameView _scrollLineHorizontally:]):
1001         (-[WebFrameView keyDown:keyDown:]):
1002         (addTypesFromClass): Deleted.
1003         * WebView/WebFullScreenController.mm:
1004         (screenRectOfContents):
1005         (-[WebFullScreenController element]):
1006         (-[WebFullScreenController setElement:]):
1007         (-[WebFullScreenController _document]):
1008         (-[WebFullScreenController _manager]):
1009         * WebView/WebHTMLView.mm:
1010         (toAction):
1011         (toTag):
1012         (-[NSView _web_setNeedsDisplayInRect:]):
1013         (promisedDataClient):
1014         (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
1015         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
1016         (-[WebHTMLView _plainTextFromPasteboard:]):
1017         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
1018         (-[WebHTMLView readSelectionFromPasteboard:]):
1019         (-[WebHTMLView _selectedRange]):
1020         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1021         (-[WebHTMLView _frameOrBoundsChanged]):
1022         (-[WebHTMLView _updateMouseoverWithEvent:]):
1023         (+[WebHTMLView _insertablePasteboardTypes]):
1024         (+[WebHTMLView _selectionPasteboardTypes]):
1025         (-[WebHTMLView pasteboard:provideDataForType:]):
1026         (-[WebHTMLView setScale:]):
1027         (-[WebHTMLView _canEdit]):
1028         (-[WebHTMLView _canEditRichly]):
1029         (-[WebHTMLView _hasSelection]):
1030         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
1031         (-[WebHTMLView _hasInsertionPoint]):
1032         (-[WebHTMLView _isEditable]):
1033         (-[WebHTMLView _selectionDraggingImage]):
1034         (-[WebHTMLView _insertOrderedList]):
1035         (-[WebHTMLView _insertUnorderedList]):
1036         (-[WebHTMLView _canIncreaseSelectionListLevel]):
1037         (-[WebHTMLView _canDecreaseSelectionListLevel]):
1038         (-[WebHTMLView _increaseSelectionListLevel]):
1039         (-[WebHTMLView _increaseSelectionListLevelOrdered]):
1040         (-[WebHTMLView _increaseSelectionListLevelUnordered]):
1041         (-[WebHTMLView _decreaseSelectionListLevel]):
1042         (-[WebHTMLView _writeSelectionToPasteboard:]):
1043         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1044         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]):
1045         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
1046         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
1047         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
1048         (-[WebHTMLView coreCommandBySelector:]):
1049         (-[WebHTMLView coreCommandByName:]):
1050         (-[WebHTMLView validRequestorForSendType:returnType:]):
1051         (-[WebHTMLView jumpToSelection:]):
1052         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
1053         (-[WebHTMLView maintainsInactiveSelection]):
1054         (-[WebHTMLView reapplyStyles]):
1055         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]):
1056         (-[WebHTMLView rightMouseUp:]):
1057         (fixMenusReceivedFromOldClients):
1058         (createShareMenuItem):
1059         (createMenuItem):
1060         (createMenuItems):
1061         (customMenuFromDefaultItems):
1062         (-[WebHTMLView menuForEvent:]):
1063         (-[WebHTMLView clearFocus]):
1064         (-[WebHTMLView setLayer:]):
1065         (-[WebHTMLView setNeedsLayout:]):
1066         (-[WebHTMLView setNeedsToApplyStyles:]):
1067         (-[WebHTMLView _invalidateGStatesForTree]):
1068         (-[WebHTMLView scrollWheel:]):
1069         (-[WebHTMLView acceptsFirstMouse:]):
1070         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
1071         (-[WebHTMLView mouseDown:]):
1072         (-[WebHTMLView touch:]):
1073         (-[WebHTMLView mouseDragged:]):
1074         (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
1075         (-[WebHTMLView draggedImage:endedAt:operation:]):
1076         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
1077         (-[WebHTMLView draggingSession:sourceOperationMaskForDraggingContext:]):
1078         (-[WebHTMLView draggingSession:endedAtPoint:operation:]):
1079         (-[WebHTMLView mouseUp:]):
1080         (-[WebHTMLView pressureChangeWithEvent:]):
1081         (isTextInput):
1082         (isInPasswordField):
1083         (currentKeyboardEvent):
1084         (-[WebHTMLView becomeFirstResponder]):
1085         (-[WebHTMLView resignFirstResponder]):
1086         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
1087         (-[WebHTMLView _scaleFactorForPrintOperation:]):
1088         (-[WebHTMLView keyDown:]):
1089         (-[WebHTMLView keyUp:]):
1090         (-[WebHTMLView flagsChanged:]):
1091         (-[WebHTMLView centerSelectionInVisibleArea:]):
1092         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
1093         (-[WebHTMLView _fontAttributesFromFontPasteboard]):
1094         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
1095         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
1096         (-[WebHTMLView performKeyEquivalent:]):
1097         (-[WebHTMLView copyFont:]):
1098         (-[WebHTMLView pasteFont:]):
1099         (-[WebHTMLView changeFont:]):
1100         (-[WebHTMLView changeAttributes:]):
1101         (-[WebHTMLView _undoActionFromColorPanelWithSelector:]):
1102         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1103         (-[WebHTMLView changeColor:]):
1104         (-[WebHTMLView checkSpelling:]):
1105         (-[WebHTMLView showGuessPanel:]):
1106         (-[WebHTMLView toggleBaseWritingDirection:]):
1107         (-[WebHTMLView changeBaseWritingDirection:]):
1108         (-[WebHTMLView _changeBaseWritingDirectionTo:]):
1109         (-[WebHTMLView _updateControlTints]):
1110         (-[WebHTMLView _selectionChanged]):
1111         (-[WebHTMLView _updateFontPanel]):
1112         (-[WebHTMLView _canSmartCopyOrDelete]):
1113         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1114         (-[WebHTMLView quickLookWithEvent:]):
1115         (-[WebHTMLView _executeSavedKeypressCommands]):
1116         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
1117         (-[WebHTMLView _handleEditingKeyEvent:]):
1118         (-[WebHTMLView _web_updateLayoutAndStyleIfNeededRecursive]):
1119         (-[WebHTMLView ALLOW_DEPRECATED_IMPLEMENTATIONS_END]):
1120         (-[WebHTMLView attributedSubstringFromRange:]):
1121         (-[WebHTMLView hasMarkedText]):
1122         (extractUnderlines):
1123         (-[WebHTMLView setMarkedText:selectedRange:]):
1124         (-[WebHTMLView doCommandBySelector:]):
1125         (-[WebHTMLView insertText:]):
1126         (-[WebHTMLView _updateSecureInputState]):
1127         (-[WebHTMLView _updateSelectionForInputManager]):
1128         (-[WebHTMLView selectionTextRects]):
1129         (imageFromRect):
1130         (selectionImage):
1131         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
1132         (-[WebHTMLView selectAll]):
1133         (-[WebHTMLView deselectAll]):
1134         (-[WebHTMLView _legacyAttributedStringFrom:offset:to:offset:]):
1135         (-[WebHTMLView attributedString]):
1136         (-[WebHTMLView selectedAttributedString]):
1137         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
1138         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
1139         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
1140         (-[WebHTMLView markedTextMatchesAreHighlighted]):
1141         (-[WebHTMLView unmarkAllTextMatches]):
1142         (-[WebHTMLView rectsForTextMatches]):
1143         (-[WebHTMLView _findString:options:]):
1144         * WebView/WebImmediateActionController.mm:
1145         (-[WebImmediateActionController webView:didHandleScrollWheel:]):
1146         (-[WebImmediateActionController _cancelImmediateAction]):
1147         (-[WebImmediateActionController performHitTestAtPoint:]):
1148         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
1149         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
1150         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
1151         (-[WebImmediateActionController _defaultAnimationController]):
1152         (-[WebImmediateActionController _updateImmediateActionItem]):
1153         (-[WebImmediateActionController menuItemDidClose:]):
1154         (elementBoundingBoxInWindowCoordinatesFromNode):
1155         (-[WebImmediateActionController menuItem:itemFrameForPoint:]):
1156         (-[WebImmediateActionController menuItem:maxSizeForPoint:]):
1157         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1158         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1159         (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
1160         (-[WebImmediateActionController _animationControllerForText]):
1161         * WebView/WebPDFView.mm:
1162         (isFrameInRange):
1163         (-[WebPDFView pasteboardTypesForSelection]):
1164         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
1165         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1166         * WebView/WebScriptDebugDelegate.mm:
1167         (-[WebScriptCallFrame _convertValueToObjcValue:]):
1168         * WebView/WebScriptDebugger.mm:
1169         (toNSString):
1170         (toWebFrame):
1171         (WebScriptDebugger::WebScriptDebugger):
1172         (WebScriptDebugger::sourceParsed):
1173         (WebScriptDebugger::handlePause):
1174         * WebView/WebScriptWorld.mm:
1175         (-[WebScriptWorld initWithWorld:]):
1176         (-[WebScriptWorld init]):
1177         (+[WebScriptWorld standardWorld]):
1178         (+[WebScriptWorld scriptWorldForGlobalContext:]):
1179         (core):
1180         (+[WebScriptWorld findOrCreateWorld:]):
1181         * WebView/WebView.mm:
1182         (coreOptions):
1183         (coreLayoutMilestones):
1184         (kitLayoutMilestones):
1185         (kit):
1186         (WebKit::DeferredPageDestructor::createDeferredPageDestructor):
1187         (WebKit::DeferredPageDestructor::DeferredPageDestructor):
1188         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
1189         (+[WebView _standardUserAgentWithApplicationName:]):
1190         (+[WebView _reportException:inContext:]):
1191         (shouldEnableLoadDeferring):
1192         (shouldRestrictWindowFocus):
1193         (needsOutlookQuirksScript):
1194         (-[WebView _injectOutlookQuirksScript]):
1195         (shouldUseLegacyBackgroundSizeShorthandBehavior):
1196         (shouldAllowWindowOpenWithoutUserGesture):
1197         (WebKitInitializeGamepadProviderIfNecessary):
1198         (-[WebView _commonInitializationWithFrameName:groupName:]):
1199         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1200         (-[WebView _replaceCurrentHistoryItem:]):
1201         (-[WebView updateLayoutIgnorePendingStyleSheets]):
1202         (-[WebView _requestStartDataInteraction:globalPosition:]):
1203         (-[WebView _startDrag:]):
1204         (-[WebView dragDataForSession:client:global:operation:]):
1205         (-[WebView _didConcludeEditDrag]):
1206         (+[WebView _setAlwaysUsesComplexTextCodePath:]):
1207         (+[WebView canCloseAllWebViews]):
1208         (+[WebView closeAllWebViews]):
1209         (-[WebView _dispatchUnloadEvent]):
1210         (-[WebView styleAtSelectionStart]):
1211         (-[WebView _didFinishScrollingOrZooming]):
1212         (-[WebView _close]):
1213         (-[WebView _isProcessingUserGesture]):
1214         (+[WebView _enableRemoteInspector]):
1215         (+[WebView _disableRemoteInspector]):
1216         (+[WebView _disableAutoStartRemoteInspector]):
1217         (+[WebView _isRemoteInspectorEnabled]):
1218         (+[WebView _hasRemoteInspectorSession]):
1219         (-[WebView _setHostApplicationProcessIdentifier:auditToken:]):
1220         (-[WebView _loadBackForwardListFromOtherView:]):
1221         (-[WebView _needsKeyboardEventDisambiguationQuirks]):
1222         (needsSelfRetainWhileLoadingQuirk):
1223         (-[WebView _needsPreHTML5ParserQuirks]):
1224         (-[WebView _preferencesChanged:]):
1225         (-[WebView _cacheFrameLoadDelegateImplementations]):
1226         (+[WebView _unregisterViewClassAndRepresentationClassForMIMEType:]):
1227         (+[WebView _registerViewClass:representationClass:forURLScheme:]):
1228         (+[WebView _decodeData:]):
1229         (-[WebView _didStartProvisionalLoadForFrame:]):
1230         (-[WebView _checkDidPerformFirstNavigation]):
1231         (-[WebView _cachedResponseForURL:]):
1232         (+[WebView _setShouldUseFontSmoothing:]):
1233         (+[WebView _shouldUseFontSmoothing]):
1234         (+[WebView _setUsesTestModeFocusRingColor:]):
1235         (+[WebView _usesTestModeFocusRingColor]):
1236         (-[WebView setAlwaysShowVerticalScroller:]):
1237         (-[WebView alwaysShowVerticalScroller]):
1238         (-[WebView setAlwaysShowHorizontalScroller:]):
1239         (-[WebView setProhibitsMainFrameScrolling:]):
1240         (-[WebView alwaysShowHorizontalScroller]):
1241         (-[WebView _setMediaLayer:forPluginView:]):
1242         (-[WebView _attachScriptDebuggerToAllFrames]):
1243         (-[WebView _detachScriptDebuggerFromAllFrames]):
1244         (+[WebView _productivityDocumentMIMETypes]):
1245         (-[WebView _setFixedLayoutSize:]):
1246         (-[WebView _synchronizeCustomFixedPositionLayoutRect]):
1247         (-[WebView _viewGeometryDidChange]):
1248         (-[WebView _overflowScrollPositionChangedTo:forNode:isUserScroll:]):
1249         (+[WebView _doNotStartObservingNetworkReachability]):
1250         (-[WebView _touchEventRegions]):
1251         (-[WebView textIteratorForRect:]):
1252         (-[WebView _executeCoreCommandByName:value:]):
1253         (-[WebView _isUsingAcceleratedCompositing]):
1254         (-[WebView _isSoftwareRenderable]):
1255         (-[WebView setTracksRepaints:]):
1256         (-[WebView isTrackingRepaints]):
1257         (-[WebView resetTrackedRepaints]):
1258         (-[WebView trackedRepaintRects]):
1259         (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
1260         (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
1261         (+[WebView _resetOriginAccessWhitelists]):
1262         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
1263         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
1264         (-[WebView allowsNewCSSAnimationsWhileSuspended]):
1265         (-[WebView setAllowsNewCSSAnimationsWhileSuspended:]):
1266         (-[WebView cssAnimationsSuspended]):
1267         (-[WebView setCSSAnimationsSuspended:]):
1268         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
1269         (+[WebView _registerURLSchemeAsSecure:]):
1270         (+[WebView _registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing:]):
1271         (-[WebView _scaleWebView:atOrigin:]):
1272         (-[WebView _setUseFixedLayout:]):
1273         (-[WebView _useFixedLayout]):
1274         (-[WebView _fixedLayoutSize]):
1275         (-[WebView _setPaginationMode:]):
1276         (-[WebView _paginationMode]):
1277         (-[WebView _listenForLayoutMilestones:]):
1278         (-[WebView _layoutMilestones]):
1279         (-[WebView _setPaginationBehavesLikeColumns:]):
1280         (-[WebView _paginationBehavesLikeColumns]):
1281         (-[WebView _setPageLength:]):
1282         (-[WebView _pageLength]):
1283         (-[WebView _setGapBetweenPages:]):
1284         (-[WebView _gapBetweenPages]):
1285         (-[WebView _setPaginationLineGridEnabled:]):
1286         (-[WebView _paginationLineGridEnabled]):
1287         (-[WebView _pageCount]):
1288         (+[WebView _HTTPPipeliningEnabled]):
1289         (+[WebView _setHTTPPipeliningEnabled:]):
1290         (-[WebView shouldRequestCandidates]):
1291         (-[WebView removePluginInstanceViewsFor:]):
1292         (+[WebView registerURLSchemeAsLocal:]):
1293         (-[WebView doWindowDidChangeScreen]):
1294         (-[WebView _updateScreenScaleFromWindow]):
1295         (-[WebView goToBackForwardItem:]):
1296         (-[WebView _setZoomMultiplier:isTextOnly:]):
1297         (-[WebView setCustomTextEncodingName:]):
1298         (-[WebView windowScriptObject]):
1299         (-[WebView setHostWindow:]):
1300         (-[WebView applicationFlags:]):
1301         (-[WebView actionMaskForDraggingInfo:]):
1302         (-[WebView draggingEntered:]):
1303         (-[WebView draggingUpdated:]):
1304         (-[WebView draggingExited:]):
1305         (-[WebView performDragOperation:]):
1306         (incrementFrame):
1307         (+[WebView registerViewClass:representationClass:forMIMEType:]):
1308         (-[WebView moveDragCaretToPoint:]):
1309         (-[WebView removeDragCaret]):
1310         (-[WebView mainFrameIconURL]):
1311         (coreTextCheckingType):
1312         (textCheckingResultFromNSTextCheckingResult):
1313         (-[WebView candidateListTouchBarItem:endSelectingCandidateAtIndex:]):
1314         (-[WebView candidateListTouchBarItem:changedCandidateListVisibility:]):
1315         (-[WebView shouldClose]):
1316         (aeDescFromJSValue):
1317         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
1318         (-[WebView editableDOMRangeForPoint:]):
1319         (-[WebView setSelectedDOMRange:affinity:]):
1320         (-[WebView selectedDOMRange]):
1321         (-[WebView selectionAffinity]):
1322         (-[WebView setEditable:]):
1323         (-[WebView setTypingStyle:]):
1324         (-[WebView deleteSelection]):
1325         (-[WebView applyStyle:]):
1326         (-[WebView insertDictationPhrases:metadata:]):
1327         (-[WebView _selectionIsCaret]):
1328         (-[WebView _selectionIsAll]):
1329         (-[WebView _simplifyMarkup:endNode:]):
1330         (+[WebView _setCacheModel:]):
1331         (-[WebView _searchWithGoogleFromMenu:]):
1332         (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1333         (-[WebView _keyboardUIMode]):
1334         (-[WebView _mainCoreFrame]):
1335         (-[WebView _clearCredentials]):
1336         (-[WebView _flushCompositingChanges]):
1337         (-[WebView _scheduleLayerFlushForPendingTileCacheRepaint]):
1338         (-[WebView _hasActiveVideoForControlsInterface]):
1339         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1340         (-[WebView handleAcceptedAlternativeText:]):
1341         (-[WebView _getWebCoreDictationAlternatives:fromTextAlternatives:]):
1342         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1343         (-[WebView _setTextIndicator:]):
1344         (-[WebView _setTextIndicator:withLifetime:]):
1345         (-[WebView _clearTextIndicatorWithAnimation:]):
1346         (-[WebView _showDictionaryLookupPopup:]):
1347         (-[WebView _dictionaryLookupPopoverWillClose:]):
1348         (-[WebView showFormValidationMessage:withAnchorRect:]):
1349         (-[WebView textTouchBar]):
1350         (nsTextAlignmentFromRenderStyle):
1351         (-[WebView updateTextTouchBar]):
1352         (-[WebView updateTouchBar]):
1353         (-[WebView candidateList]):
1354         (-[WebView _geolocationDidFailWithMessage:]):
1355         (-[WebView _resetAllGeolocationPermission]):
1356         (-[WebView _notificationIDForTesting:]):
1357
1358 2019-09-25  Megan Gardner  <megan_gardner@apple.com>
1359
1360         Update selections after scrolling for iframes and hide selections while iframes and overflow scrolls are scrolling.
1361         https://bugs.webkit.org/show_bug.cgi?id=202125
1362
1363         Reviewed by Tim Horton.
1364
1365         Filling out unused functions needed for new fix.
1366
1367         * WebCoreSupport/WebEditorClient.h:
1368
1369 2019-09-24  Alex Christensen  <achristensen@webkit.org>
1370
1371         Remove SchemeRegistry's list of URL schemes allowing local storage in private browsing, which is unused
1372         https://bugs.webkit.org/show_bug.cgi?id=202181
1373
1374         Reviewed by Geoffrey Garen.
1375
1376         * WebView/WebView.mm:
1377         (+[WebView _registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing:]):
1378
1379 2019-09-21  Chris Dumez  <cdumez@apple.com>
1380
1381         Reduce use of SessionID::defaultSessionID() in WebKit
1382         https://bugs.webkit.org/show_bug.cgi?id=202080
1383
1384         Reviewed by Alex Christensen.
1385
1386         * WebCoreSupport/WebFrameLoaderClient.h:
1387         * WebCoreSupport/WebFrameLoaderClient.mm:
1388         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1389
1390 2019-09-20  Keith Rollin  <krollin@apple.com>
1391
1392         Remove some support for < iOS 13
1393         https://bugs.webkit.org/show_bug.cgi?id=202032
1394         <rdar://problem/55548468>
1395
1396         Reviewed by Alex Christensen.
1397
1398         Remove some support for iOS versions less than 13.0.
1399
1400         Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
1401         and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
1402         values >= 130000. This means that expressions like
1403         "__IPHONE_OS_VERSION_MIN_REQUIRED < 101300" are always False and
1404         "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101300" are always True.
1405
1406         This removal is part of a series of patches effecting the removal of
1407         dead code for old versions of iOS. This particular pass involves
1408         changes in which Dan Bates was involved. These changes are isolated
1409         from other similar changes in order to facilitate the reviewing
1410         process.
1411
1412         * WebView/WebHTMLView.mm:
1413         (-[WebHTMLView _handleEditingKeyEvent:]):
1414
1415 2019-09-18  Jer Noble  <jer.noble@apple.com>
1416
1417         Add -suspend and -resumeAllMediaPlayback to WebView
1418         https://bugs.webkit.org/show_bug.cgi?id=201951
1419
1420         Reviewed by Eric Carlson.
1421
1422         * WebView/WebView.mm:
1423         (-[WebView suspendAllMediaPlayback]):
1424         (-[WebView resumeAllMediaPlayback]):
1425         * WebView/WebViewPrivate.h:
1426
1427 2019-09-18  Chris Dumez  <cdumez@apple.com>
1428
1429         BlobRegistry no longer needs SessionIDs
1430         https://bugs.webkit.org/show_bug.cgi?id=201936
1431
1432         Reviewed by Geoffrey Garen.
1433
1434         BlobRegistry no longer needs SessionIDs, now that we have a single session per WebProcess.
1435
1436         * WebCoreSupport/WebPlatformStrategies.mm:
1437
1438 2019-09-18  Chris Dumez  <cdumez@apple.com>
1439
1440         CacheStorageProvider::createCacheStorageConnection() does not need to take in a SessionID
1441         https://bugs.webkit.org/show_bug.cgi?id=201920
1442
1443         Reviewed by Geoffrey Garen.
1444
1445         CacheStorageProvider::createCacheStorageConnection() does not need to take in a SessionID.
1446         This sessionID is no longer used now that we have a session per WebProcess.
1447
1448         * WebCoreSupport/WebPlatformStrategies.mm:
1449
1450 2019-09-18  Chris Dumez  <cdumez@apple.com>
1451
1452         Drop FrameLoaderClient::sessionID()
1453         https://bugs.webkit.org/show_bug.cgi?id=201916
1454
1455         Reviewed by Geoffrey Garen.
1456
1457         Drop FrameLoaderClient::sessionID(). The Frame can get the sessionID from its page (Which is
1458         what the FrameLoaderClient::sessionID() ended up doing) and other call sites at WebKit2 layer
1459         can get the sessionID from the WebProcess singleton.
1460
1461         * WebCoreSupport/WebFrameLoaderClient.h:
1462         * WebCoreSupport/WebFrameLoaderClient.mm:
1463
1464 2019-09-17  Chris Dumez  <cdumez@apple.com>
1465
1466         Stop calling Page::setSessionID() from WebKit2
1467         https://bugs.webkit.org/show_bug.cgi?id=201888
1468
1469         Reviewed by Alex Christensen.
1470
1471         Stop calling Page::setSessionID() from WebKit2 since Page's sessionID can never change when
1472         using WebKit2 (We process-swap and create a new Page in a new process when changing data
1473         store). Instead, we now pass the sessionID ID when constructing the Page, as part of the
1474         PageConfiguration structure.
1475
1476         * WebView/WebView.mm:
1477         (-[WebView _commonInitializationWithFrameName:groupName:]):
1478
1479 2019-09-09  Alex Christensen  <achristensen@webkit.org>
1480
1481         Disable TLS 1.0 and 1.1 in WebSockets
1482         https://bugs.webkit.org/show_bug.cgi?id=201573
1483
1484         Reviewed by Youenn Fablet.
1485
1486         * WebView/WebView.mm:
1487         (-[WebView _commonInitializationWithFrameName:groupName:]):
1488
1489 2019-09-06  Alex Christensen  <achristensen@webkit.org>
1490
1491         When disabling legacy private browsing for testing, change the SessionID back to what it was, not the defaultSessionID
1492         https://bugs.webkit.org/show_bug.cgi?id=201480
1493
1494         Reviewed by Youenn Fablet.
1495
1496         * WebView/WebView.mm:
1497         (-[WebView _preferencesChanged:]):
1498
1499 2019-09-06  Rob Buis  <rbuis@igalia.com>
1500
1501         Add runtime flag for lazy image loading
1502         https://bugs.webkit.org/show_bug.cgi?id=199794
1503
1504         Reviewed by Frédéric Wang.
1505
1506         Remove parts of r248409 that were meant for WK1 since
1507         lazy image loading is WK2 only.
1508
1509         * WebView/WebPreferenceKeysPrivate.h:
1510         * WebView/WebPreferences.mm:
1511         (+[WebPreferences initialize]):
1512         (-[WebPreferences lazyImageLoadingEnabled]): Deleted.
1513         (-[WebPreferences setLazyImageLoadingEnabled:]): Deleted.
1514         * WebView/WebPreferencesPrivate.h:
1515         * WebView/WebView.mm:
1516         (-[WebView _preferencesChanged:]):
1517
1518 2019-09-04  Alex Christensen  <achristensen@webkit.org>
1519
1520         Remove unused SPI that accesses MemoryCache directly
1521         https://bugs.webkit.org/show_bug.cgi?id=201468
1522
1523         Reviewed by Tim Horton.
1524
1525         * Misc/WebCache.h:
1526         * Misc/WebCache.mm:
1527         (+[WebCache addImageToCache:forURL:]): Deleted.
1528         (+[WebCache addImageToCache:forURL:forFrame:]): Deleted.
1529         (+[WebCache removeImageFromCacheForURL:]): Deleted.
1530         (+[WebCache removeImageFromCacheForURL:forFrame:]): Deleted.
1531
1532 2019-08-30  Keith Rollin  <krollin@apple.com>
1533
1534         Remove AppKitCompatibilityDeclarations.h
1535         https://bugs.webkit.org/show_bug.cgi?id=201283
1536         <rdar://problem/54822042>
1537
1538         Reviewed by Alexey Proskuryakov.
1539
1540         The two copies of these files -- on in WTF, one in MiniBrowser -- are
1541         empty and can be removed.
1542
1543         * Misc/WebNSEventExtras.m:
1544         * Misc/WebNSViewExtras.m:
1545         * WebKitPrefix.h:
1546
1547 2019-08-30  Keith Rollin  <krollin@apple.com>
1548
1549         Remove extra braces
1550         https://bugs.webkit.org/show_bug.cgi?id=201285
1551
1552         Reviewed by Alexey Proskuryakov.
1553
1554         Some code evolved such that there was only a single statement under an
1555         'if' statement. The braces surrounding the single-line block can now
1556         be removed.
1557
1558         * WebView/WebView.mm:
1559         (-[WebView updateMediaTouchBar]):
1560
1561 2019-08-29  Keith Rollin  <krollin@apple.com>
1562
1563         Update .xcconfig symbols to reflect the current set of past and future product versions.
1564         https://bugs.webkit.org/show_bug.cgi?id=200720
1565         <rdar://problem/54305032>
1566
1567         Reviewed by Alex Christensen.
1568
1569         Remove version symbols related to old OS's we no longer support,
1570         ensure that version symbols are defined for OS's we do support.
1571
1572         * Configurations/Base.xcconfig:
1573         * Configurations/DebugRelease.xcconfig:
1574         * Configurations/Version.xcconfig:
1575
1576 2019-08-29  Keith Rollin  <krollin@apple.com>
1577
1578         Remove support for macOS < 10.13 (part 3)
1579         https://bugs.webkit.org/show_bug.cgi?id=201224
1580         <rdar://problem/54795934>
1581
1582         Reviewed by Darin Adler.
1583
1584         Remove symbols in WebKitTargetConditionals.xcconfig related to macOS
1585         10.13, including WK_MACOS_1013 and WK_MACOS_BEFORE_1013, and suffixes
1586         like _MACOS_SINCE_1013.
1587
1588         * Configurations/WebKitTargetConditionals.xcconfig:
1589
1590 2019-08-29  Dean Jackson  <dino@apple.com>
1591
1592         GenerateTAPI WebKitLegacy.tbd fails on internal iOS Simulator builds
1593         https://bugs.webkit.org/show_bug.cgi?id=201200
1594
1595         Reverting r249211 after Dan Bernstein pointed out it will cause
1596         an error with the public iOS 13 SDK.
1597
1598         * Misc/WebDownload.h:
1599
1600 2019-08-28  Dean Jackson  <dino@apple.com>
1601
1602         GenerateTAPI WebKitLegacy.tbd fails on internal iOS Simulator builds
1603         https://bugs.webkit.org/show_bug.cgi?id=201200
1604
1605         Reviewed by Simon Fraser.
1606
1607         We want to include Foundation/NSURLDownload.h if we're on
1608         a newer iOS.
1609
1610         * Misc/WebDownload.h:
1611
1612 2019-08-28  Keith Rollin  <krollin@apple.com>
1613
1614         Remove support for macOS < 10.13 (part 2)
1615         https://bugs.webkit.org/show_bug.cgi?id=201197
1616         <rdar://problem/54759985>
1617
1618         Reviewed by Darin Adler.
1619
1620         Update conditionals that reference WK_MACOS_1013 and suffixes like
1621         _MACOS_SINCE_1013, assuming that we're always building on 10.13 or
1622         later and that these conditionals are always True or False.
1623
1624         See Bug 200694 for earlier changes in this area.
1625
1626         * Configurations/FeatureDefines.xcconfig:
1627
1628 2019-08-27  Mark Lam  <mark.lam@apple.com>
1629
1630         Refactor to use VM& instead of VM* at as many places as possible.
1631         https://bugs.webkit.org/show_bug.cgi?id=201172
1632
1633         Reviewed by Yusuke Suzuki.
1634
1635         * DOM/DOM.mm:
1636         (+[DOMNode _nodeFromJSWrapper:]):
1637         * DOM/DOMUtility.mm:
1638         (createDOMWrapper):
1639         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1640         (identifierFromIdentifierRep):
1641         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1642         (WebKit::NetscapePluginInstanceProxy::enumerate):
1643         (WebKit::getObjectID):
1644         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
1645         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
1646         (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
1647         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
1648         * Plugins/Hosted/ProxyInstance.mm:
1649         (WebKit::ProxyInstance::stringValue const):
1650         (WebKit::ProxyInstance::getPropertyNames):
1651         * WebView/WebFrame.mm:
1652         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1653
1654 2019-08-23  Chris Dumez  <cdumez@apple.com>
1655
1656         [geolocation] Rename interfaces and remove [NoInterfaceObject]
1657         https://bugs.webkit.org/show_bug.cgi?id=200885
1658
1659         Reviewed by Alex Christensen.
1660
1661         * WebCoreSupport/WebGeolocationClient.h:
1662         * WebCoreSupport/WebGeolocationClient.mm:
1663         (WebGeolocationClient::lastPosition):
1664         * WebView/WebGeolocationPosition.mm:
1665         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
1666         (core):
1667         (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
1668         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1669         * WebView/WebGeolocationPositionInternal.h:
1670
1671 2019-08-22  Andy Estes  <aestes@apple.com>
1672
1673         [watchOS] Disable Content Filtering in the simulator build
1674         https://bugs.webkit.org/show_bug.cgi?id=201047
1675
1676         Reviewed by Tim Horton.
1677
1678         * Configurations/FeatureDefines.xcconfig:
1679
1680 2019-08-21  Tim Horton  <timothy_horton@apple.com>
1681
1682         [Mail] Tapping top of message scrolls back to copied text instead of top of the message
1683         https://bugs.webkit.org/show_bug.cgi?id=200999
1684         <rdar://problem/54564878>
1685
1686         Reviewed by Wenson Hsieh.
1687
1688         * WebCoreSupport/WebEditorClient.h:
1689         * WebCoreSupport/WebEditorClient.mm:
1690         (WebEditorClient::shouldAllowSingleClickToChangeSelection const):
1691         Copy the existing behavior from EventHandler.
1692         We do not fix the bug in WebKitLegacy for a multitude of reasons, primarily
1693         because we do not know of any user impact.
1694
1695 2019-08-21  Ryosuke Niwa  <rniwa@webkit.org>
1696
1697         Put keygen element behind a runtime flag and disable it by default
1698         https://bugs.webkit.org/show_bug.cgi?id=200850
1699
1700         Reviewed by Antti Koivisto.
1701
1702         * WebView/WebPreferenceKeysPrivate.h:
1703         * WebView/WebPreferences.mm:
1704         (-[WebPreferences keygenElementEnabled]):
1705         (-[WebPreferences setKeygenElementEnabled:]):
1706         * WebView/WebPreferencesPrivate.h:
1707         * WebView/WebView.mm:
1708         (-[WebView _preferencesChanged:]):
1709
1710 2019-08-19  Sihui Liu  <sihui_liu@apple.com>
1711
1712         Remove IDB-specific quota
1713         https://bugs.webkit.org/show_bug.cgi?id=196545
1714         <rdar://problem/54201783>
1715
1716         Reviewed by Youenn Fablet.
1717
1718         * Storage/WebDatabaseManager.mm:
1719         (-[WebDatabaseManager setIDBPerOriginQuota:]): Deleted.
1720         * Storage/WebDatabaseManagerPrivate.h:
1721
1722 2019-08-18  Yusuke Suzuki  <ysuzuki@apple.com>
1723
1724         [WTF] Add makeUnique<T>, which ensures T is fast-allocated, makeUnique / makeUniqueWithoutFastMallocCheck part
1725         https://bugs.webkit.org/show_bug.cgi?id=200620
1726
1727         Reviewed by Geoffrey Garen.
1728
1729         * History/WebHistory.mm:
1730         (-[WebHistoryPrivate init]):
1731         * History/WebHistoryItem.mm:
1732         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1733         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1734         (WKPCGetScriptableNPObjectReply):
1735         (WKPCBooleanReply):
1736         (WKPCBooleanAndDataReply):
1737         (WKPCInstantiatePluginReply):
1738         * Plugins/Hosted/ProxyInstance.mm:
1739         (WebKit::ProxyInstance::methodNamed):
1740         (WebKit::ProxyInstance::fieldNamed):
1741         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1742         (-[WebHostedNetscapePluginView createPlugin]):
1743         * Plugins/WebNetscapePluginEventHandler.mm:
1744         (WebNetscapePluginEventHandler::create):
1745         * Plugins/WebNetscapePluginView.mm:
1746         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1747         * Storage/WebDatabaseManagerClient.mm:
1748         (DidModifyOriginData::dispatchToMainThread):
1749         * WebCoreSupport/WebFrameLoaderClient.mm:
1750         (addRedirectURL):
1751         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
1752         * WebCoreSupport/WebInspectorClient.mm:
1753         (WebInspectorClient::openLocalFrontend):
1754         * WebView/WebDeviceOrientationProviderMock.mm:
1755         * WebView/WebFrame.mm:
1756         (-[WebFrame _attachScriptDebugger]):
1757         * WebView/WebMediaPlaybackTargetPicker.mm:
1758         (WebMediaPlaybackTargetPicker::create):
1759         * WebView/WebTextIterator.mm:
1760         (-[WebTextIterator initWithRange:]):
1761         * WebView/WebView.mm:
1762         (-[WebView _injectOutlookQuirksScript]):
1763         (-[WebView _commonInitializationWithFrameName:groupName:]):
1764         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
1765         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
1766         (-[WebView _selectionServiceController]):
1767         (-[WebView _setTextIndicator:withLifetime:]):
1768         * WebView/WebViewData.mm:
1769         (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
1770         (-[WebViewPrivate init]):
1771
1772 2019-08-17  Darin Adler  <darin@apple.com>
1773
1774         Tidy up checks to see if a character is in the Latin-1 range by using isLatin1 consistently
1775         https://bugs.webkit.org/show_bug.cgi?id=200861
1776
1777         Reviewed by Ross Kirsling.
1778
1779         * Misc/WebKitNSStringExtras.mm:
1780         (canUseFastRenderer): Use isLatin1.
1781
1782 2019-08-16  Chris Dumez  <cdumez@apple.com>
1783
1784         LocalStorageDatabaseTracker does not need to subclass ThreadSafeRefCounted
1785         https://bugs.webkit.org/show_bug.cgi?id=200825
1786
1787         Reviewed by Alex Christensen.
1788
1789         * Misc/WebKitVersionChecks.h:
1790         * Storage/WebStorageManager.mm:
1791         (WebKitInitializeStorageIfNecessary):
1792
1793 2019-08-16  Ryosuke Niwa  <rniwa@webkit.org>
1794
1795         Split tabIndex computation for DOM and the rest of WebCore
1796         https://bugs.webkit.org/show_bug.cgi?id=200806
1797
1798         Reviewed by Chris Dumez.
1799
1800         * DOM/DOMHTMLElement.mm:
1801         (-[DOMHTMLElement tabIndex]):
1802         (-[DOMHTMLElement setTabIndex:]):
1803
1804 2019-08-15  Yusuke Suzuki  <ysuzuki@apple.com>
1805
1806         [WTF] Add makeUnique<T>, which ensures T is fast-allocated, WTF_MAKE_FAST_ALLOCATED annotation part
1807         https://bugs.webkit.org/show_bug.cgi?id=200620
1808
1809         Reviewed by Geoffrey Garen.
1810
1811         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1812         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1813         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
1814         * Storage/WebDatabaseManagerClient.mm:
1815         * WebCoreSupport/WebAlternativeTextClient.h:
1816         * WebCoreSupport/WebCachedFramePlatformData.h:
1817         * WebCoreSupport/WebChromeClient.h:
1818         * WebCoreSupport/WebContextMenuClient.h:
1819         * WebCoreSupport/WebDragClient.h:
1820         * WebCoreSupport/WebEditorClient.h:
1821         * WebCoreSupport/WebGeolocationClient.h:
1822         * WebCoreSupport/WebInspectorClient.h:
1823         * WebCoreSupport/WebNotificationClient.h:
1824         * WebCoreSupport/WebSelectionServiceController.h:
1825         * WebView/WebMediaPlaybackTargetPicker.h:
1826
1827 2019-08-15  Tim Horton  <timothy_horton@apple.com>
1828
1829         Yellow Lookup highlight gets stuck over Mail messages
1830         https://bugs.webkit.org/show_bug.cgi?id=200778
1831         <rdar://problem/53868514>
1832
1833         Reviewed by Wenson Hsieh.
1834
1835         * WebView/WebView.mm:
1836         (-[WebView _showDictionaryLookupPopup:]):
1837         Add a dismissal callback so that when Reveal hides the panel, it also
1838         dismisses the yellow indicator. This matches the behavior in modern WebKit.
1839
1840 2019-08-15  Sihui Liu  <sihui_liu@apple.com>
1841
1842         Some improvements on web storage
1843         https://bugs.webkit.org/show_bug.cgi?id=200373
1844
1845         Reviewed by Geoffrey Garen.
1846
1847         * WebView/WebView.mm:
1848         (-[WebView _preferencesChanged:]): notify storageNamespaceProvider about session change.
1849
1850 2019-08-15  Youenn Fablet  <youenn@apple.com>
1851
1852         Always create a Document with a valid SessionID
1853         https://bugs.webkit.org/show_bug.cgi?id=200727
1854
1855         Reviewed by Alex Christensen.
1856
1857         Implement WebKit1 sessionID getter like done for WebKit2.
1858         Either the loader client has a page in which case the page session ID is used
1859         or the client has no page, in which case the default session ID is used.
1860         This is the same behavior as CachedResourceLoader.
1861
1862         * WebCoreSupport/WebFrameLoaderClient.mm:
1863         (WebFrameLoaderClient::sessionID const):
1864
1865 2019-08-15  Simon Fraser  <simon.fraser@apple.com>
1866
1867         Use ObjectIdentifier<FrameIdentifierType> for frameIDs
1868         https://bugs.webkit.org/show_bug.cgi?id=199986
1869
1870         Reviewed by Ryosuke Niwa.
1871
1872         Use the strongly-typed FrameIdentifier instead of uint64_t as frame identifiers everywhere.
1873
1874         * WebCoreSupport/WebFrameLoaderClient.h:
1875         * WebCoreSupport/WebFrameLoaderClient.mm:
1876         (WebFrameLoaderClient::frameID const):
1877
1878 2019-08-14  Ryan Haddad  <ryanhaddad@apple.com>
1879
1880         Unreviewed, rolling out r248526.
1881
1882         Caused two IndexedDB perf tests to fail
1883
1884         Reverted changeset:
1885
1886         "Remove IDB-specific quota"
1887         https://bugs.webkit.org/show_bug.cgi?id=196545
1888         https://trac.webkit.org/changeset/248526
1889
1890 2019-08-14  Keith Rollin  <krollin@apple.com>
1891
1892         Remove support for macOS < 10.13
1893         https://bugs.webkit.org/show_bug.cgi?id=200694
1894         <rdar://problem/54278851>
1895
1896         Reviewed by Youenn Fablet.
1897
1898         Update conditionals that reference __MAC_OS_X_VERSION_MIN_REQUIRED and
1899         __MAC_OS_X_VERSION_MAX_ALLOWED, assuming that they both have values >=
1900         101300. This means that expressions like
1901         "__MAC_OS_X_VERSION_MIN_REQUIRED < 101300" are always False and
1902         "__MAC_OS_X_VERSION_MIN_REQUIRED >= 101300" are always True.
1903
1904         * WebCoreSupport/WebEditorClient.mm:
1905         * WebView/PDFViewSPI.h:
1906         * WebView/WebHTMLView.mm:
1907         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:]):
1908         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:shouldChangeFontReferenceColor:]):
1909         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
1910         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
1911         * WebView/WebPreferences.mm:
1912         (+[WebPreferences initialize]):
1913         * WebView/WebView.mm:
1914         (-[WebView performDragOperation:]):
1915         (LayerFlushController::flushLayers):
1916         (-[WebView updateMediaTouchBar]):
1917         * WebView/WebViewData.h:
1918
1919 2019-08-14  Youenn Fablet  <youenn@apple.com>
1920
1921         ThreadableBlobRegistry::blobSize should take a SessionID as parameter
1922         https://bugs.webkit.org/show_bug.cgi?id=200671
1923
1924         Reviewed by ALex Christensen.
1925
1926         * WebCoreSupport/WebPlatformStrategies.mm:
1927
1928 2019-08-13  Youenn Fablet  <youenn@apple.com>
1929
1930         Blob registries should be keyed by session IDs
1931         https://bugs.webkit.org/show_bug.cgi?id=200567
1932
1933         Reviewed by Alex Christensen.
1934
1935         * WebCoreSupport/WebPlatformStrategies.mm:
1936         (WebPlatformStrategies::createBlobRegistry):
1937         Ignore sessionID parameter for WK1.
1938
1939 2019-08-12  Chris Dumez  <cdumez@apple.com>
1940
1941         Add threading assertions to RefCounted
1942         https://bugs.webkit.org/show_bug.cgi?id=200507
1943
1944         Reviewed by Ryosuke Niwa.
1945
1946         * WebView/WebView.mm:
1947         (+[WebView initialize]):
1948         Enable new RefCounted threading assertions for WebKitLegacy.
1949
1950 2019-08-12  Chris Dumez  <cdumez@apple.com>
1951
1952         Unreviewed, rolling out r248525.
1953
1954         Revert new threading assertions while I work on fixing the
1955         issues they exposed
1956
1957         Reverted changeset:
1958
1959         "Add threading assertions to RefCounted"
1960         https://bugs.webkit.org/show_bug.cgi?id=200507
1961         https://trac.webkit.org/changeset/248525
1962
1963 2019-08-12  Youenn Fablet  <youenn@apple.com>
1964
1965         Remove IDB-specific quota
1966         https://bugs.webkit.org/show_bug.cgi?id=196545
1967
1968         Reviewed by Alex Christensen.
1969
1970         * Storage/WebDatabaseManager.mm:
1971         (-[WebDatabaseManager setIDBPerOriginQuota:]): Deleted.
1972         * Storage/WebDatabaseManagerPrivate.h:
1973
1974 2019-08-11  Chris Dumez  <cdumez@apple.com>
1975
1976         Add threading assertions to RefCounted
1977         https://bugs.webkit.org/show_bug.cgi?id=200507
1978
1979         Reviewed by Ryosuke Niwa.
1980
1981         * WebView/WebView.mm:
1982         (+[WebView initialize]):
1983         Enable new RefCounted threading assertions for WebKitLegacy.
1984
1985 2019-08-10  Tim Horton  <timothy_horton@apple.com>
1986
1987         Remove some more unused 32-bit code
1988         https://bugs.webkit.org/show_bug.cgi?id=200607
1989
1990         Reviewed by Alexey Proskuryakov.
1991
1992         * Configurations/WebKitLegacy.xcconfig:
1993         * Misc/WebSharingServicePickerController.mm:
1994         (-[WebSharingServicePickerController initWithItems:includeEditorServices:client:style:]):
1995         (-[WebSharingServicePickerController initWithSharingServicePicker:client:]):
1996         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1997         * Plugins/WebNetscapePluginEventHandler.mm:
1998         * Plugins/WebNetscapePluginEventHandlerCarbon.h: Removed.
1999         * Plugins/WebNetscapePluginEventHandlerCarbon.mm: Removed.
2000         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
2001         (WebNetscapePluginEventHandlerCocoa::installKeyEventHandler): Deleted.
2002         (WebNetscapePluginEventHandlerCocoa::removeKeyEventHandler): Deleted.
2003         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
2004         (WebNetscapePluginEventHandlerCocoa::WebNetscapePluginEventHandlerCocoa):
2005         (WebNetscapePluginEventHandlerCocoa::keyDown):
2006         (WebNetscapePluginEventHandlerCocoa::focusChanged):
2007         (WebNetscapePluginEventHandlerCocoa::installKeyEventHandler): Deleted.
2008         (WebNetscapePluginEventHandlerCocoa::removeKeyEventHandler): Deleted.
2009         (WebNetscapePluginEventHandlerCocoa::TSMEventHandler): Deleted.
2010         (WebNetscapePluginEventHandlerCocoa::handleTSMEvent): Deleted.
2011         * WebCoreSupport/WebContextMenuClient.mm:
2012         (WebContextMenuClient::contextMenuForEvent):
2013         * WebView/WebHTMLView.mm:
2014         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
2015         (-[WebHTMLView pressureChangeWithEvent:]):
2016         * WebView/WebView.mm:
2017         (LayerFlushController::flushLayers):
2018
2019 2019-08-08  Rob Buis  <rbuis@igalia.com>
2020
2021         Add runtime flag for lazy image loading
2022         https://bugs.webkit.org/show_bug.cgi?id=199794
2023
2024         Reviewed by Darin Adler.
2025
2026         Set lazyImageLoading runtime flag if preference is set.
2027
2028         * WebView/WebPreferenceKeysPrivate.h:
2029         * WebView/WebPreferences.mm:
2030         (+[WebPreferences initialize]):
2031         (-[WebPreferences lazyImageLoadingEnabled]):
2032         (-[WebPreferences setLazyImageLoadingEnabled:]):
2033         * WebView/WebPreferencesPrivate.h:
2034         * WebView/WebView.mm:
2035         (-[WebView _preferencesChanged:]):
2036
2037 2019-08-07  Priyanka Agarwal  <pagarwal999@apple.com>
2038
2039         Allow clients to toggle a text input field between being viewable and having characters hidden while maintaining 
2040         a yellow auto-filled appearance
2041         https://bugs.webkit.org/show_bug.cgi?id=200037
2042         rdar://problem/51900961
2043
2044         Reviewed by Daniel Bates.
2045
2046         * DOM/WebDOMOperations.mm:
2047         (-[DOMHTMLInputElement _isAutoFilledAndViewable]):
2048         (-[DOMHTMLInputElement _setAutoFilledAndViewable:]):
2049         * DOM/WebDOMOperationsPrivate.h:
2050
2051 2019-08-02  Keith Rollin  <krollin@apple.com>
2052
2053         Consistently use Obj-C boolean literals
2054         https://bugs.webkit.org/show_bug.cgi?id=200405
2055         <rdar://problem/53880043>
2056
2057         Reviewed by Simon Fraser, Joseph Pecoraro.
2058
2059         There are places where we use equivalent but different expressions for
2060         Obj-C boolean objects. For example, we use both [NSNumber
2061         numberWithBool:YES] and @YES. There are places where both are used in
2062         the same function, such as -[WebPreferences initialize]. The boolean
2063         literal is in greater use and is more succinct, so standardize on
2064         that. Also, change @(YES/NO) to @YES/NO.
2065
2066         * History/WebHistoryItem.mm:
2067         * WebView/WebFrame.mm:
2068         (-[WebFrame _cacheabilityDictionary]):
2069         * WebView/WebPreferences.mm:
2070         (+[WebPreferences initialize]):
2071
2072 2019-08-01  Alex Christensen  <achristensen@webkit.org>
2073
2074         Move FormData zip file generation to NetworkProcess and enable it for all WebKit clients for uploading directories
2075         https://bugs.webkit.org/show_bug.cgi?id=200102
2076         <rdar://problem/53275114>
2077
2078         Reviewed by Darin Adler.
2079
2080         * DefaultDelegates/WebDefaultUIDelegate.mm:
2081         (-[WebDefaultUIDelegate webView:shouldReplaceUploadFile:usingGeneratedFilename:]): Deleted.
2082         (-[WebDefaultUIDelegate webView:generateReplacementFile:]): Deleted.
2083         * WebCoreSupport/WebChromeClient.h:
2084         * WebCoreSupport/WebChromeClient.mm:
2085         (WebChromeClient::shouldReplaceWithGeneratedFileForUpload): Deleted.
2086         (WebChromeClient::generateReplacementFile): Deleted.
2087         * WebView/WebUIDelegatePrivate.h:
2088
2089 2019-07-25  Dean Jackson  <dino@apple.com>
2090
2091         Add helper for ignoring deprecated implementation warnings
2092         https://bugs.webkit.org/show_bug.cgi?id=200135
2093
2094         Reviewed by Wenson Hsieh.
2095
2096         Add ALLOW_DEPRECATED_IMPLEMENTATIONS_BEGIN/END macro which
2097         is IGNORE_WARNINGS_BEGIN("deprecated-implementations")
2098
2099         * Misc/WebDownload.mm:
2100         (-[WebDownload initWithRequest:delegate:]):
2101         * Misc/WebIconDatabase.mm:
2102         * Plugins/WebBaseNetscapePluginView.mm:
2103         (-[WebBaseNetscapePluginView ALLOW_DEPRECATED_IMPLEMENTATIONS_END]):
2104         (-[WebBaseNetscapePluginView IGNORE_WARNINGS_END]): Deleted.
2105         * WebView/WebDynamicScrollBarsView.mm:
2106         (-[WebDynamicScrollBarsView ALLOW_DEPRECATED_IMPLEMENTATIONS_END]):
2107         (-[WebDynamicScrollBarsView IGNORE_WARNINGS_END]): Deleted.
2108         * WebView/WebHTMLView.mm:
2109         (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
2110         (-[WebHTMLView draggedImage:endedAt:operation:]):
2111         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
2112         (-[WebHTMLView accessibilityAttributeValue:]):
2113         (-[WebHTMLView ALLOW_DEPRECATED_IMPLEMENTATIONS_END]):
2114         (-[WebHTMLView characterIndexForPoint:]):
2115         (-[WebHTMLView firstRectForCharacterRange:]):
2116         (-[WebHTMLView attributedSubstringFromRange:]):
2117         (-[WebHTMLView setMarkedText:selectedRange:]):
2118         (-[WebHTMLView doCommandBySelector:]):
2119         (-[WebHTMLView insertText:]):
2120         (-[WebHTMLView IGNORE_WARNINGS_END]): Deleted.
2121
2122 2019-07-23  Wenson Hsieh  <wenson_hsieh@apple.com>
2123
2124         [macOS 10.15] Web process crashes when attempting to show the font panel via Font > Show Fonts
2125         https://bugs.webkit.org/show_bug.cgi?id=200021
2126         <rdar://problem/53301325>
2127
2128         Reviewed by Ryosuke Niwa.
2129
2130         Implement a new editing client hook. In WebKit1, this always returns true on macOS and false on iOS.
2131
2132         * WebCoreSupport/WebEditorClient.h:
2133
2134 2019-07-22  Simon Fraser  <simon.fraser@apple.com>
2135
2136         Fix WebView iframe rendering in macOS Catalina
2137         https://bugs.webkit.org/show_bug.cgi?id=200022
2138         rdar://problem/49102040
2139
2140         Reviewed by Darin Adler.
2141
2142         Adapt to internal NSView method renames in Catalina.
2143
2144         * WebView/WebHTMLView.mm:
2145         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]):
2146         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:_recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
2147
2148 2019-07-22  Simon Fraser  <simon.fraser@apple.com>
2149
2150         Enable CSSOMViewScrollingAPIEnabled in WebKit1
2151         https://bugs.webkit.org/show_bug.cgi?id=200008
2152         rdar://problem/53409062
2153
2154         Reviewed by Tim Horton.
2155
2156         Default WebKitCSSOMViewScrollingAPIEnabledPreferenceKey to YES, so that 
2157         CSSOMViewScrollingAPIEnabled is on for both WebKit1 and WebKit2.
2158
2159         DumpRenderTree already turns this preference on, so this change is not
2160         detected by tests.
2161
2162         * WebView/WebPreferences.mm:
2163         (+[WebPreferences initialize]):
2164
2165 2019-07-22  Youenn Fablet  <youenn@apple.com>
2166
2167         Disable MediaRecorder for legacy WebKit
2168         https://bugs.webkit.org/show_bug.cgi?id=200001
2169         <rdar://problem/53400030>
2170
2171         Reviewed by Eric Carlson.
2172
2173         Disable MediaRecorder by default in legacy WebKit.
2174         Add SPI to set/get this preference.
2175
2176         * WebView/WebPreferences.mm:
2177         (+[WebPreferences initialize]):
2178         (-[WebPreferences _mediaRecorderEnabled]):
2179         (-[WebPreferences _setMediaRecorderEnabled:]):
2180         * WebView/WebPreferencesPrivate.h:
2181
2182 2019-07-18  Alex Christensen  <achristensen@webkit.org>
2183
2184         Unify builds in WebKitLegacy/mac/DOM
2185         https://bugs.webkit.org/show_bug.cgi?id=199771
2186
2187         Reviewed by Geoffrey Garen.
2188
2189         * DOM/DOMAbstractView.mm:
2190         * DOM/DOMAttr.mm:
2191         * DOM/DOMBlob.mm:
2192         * DOM/DOMCDATASection.mm:
2193         * DOM/DOMCSSFontFaceRule.mm:
2194         * DOM/DOMCSSImportRule.mm:
2195         * DOM/DOMCSSMediaRule.mm:
2196         * DOM/DOMCSSPageRule.mm:
2197         * DOM/DOMCSSPrimitiveValue.mm:
2198         * DOM/DOMCSSRule.mm:
2199         * DOM/DOMCSSRuleList.mm:
2200         * DOM/DOMCSSStyleDeclaration.mm:
2201         * DOM/DOMCSSStyleRule.mm:
2202         * DOM/DOMCSSStyleSheet.mm:
2203         * DOM/DOMCSSUnknownRule.mm:
2204         * DOM/DOMCSSValue.mm:
2205         * DOM/DOMCSSValueList.mm:
2206         * DOM/DOMCharacterData.mm:
2207         * DOM/DOMComment.mm:
2208         * DOM/DOMCounter.mm:
2209         * DOM/DOMDocument.mm:
2210         * DOM/DOMDocumentFragment.mm:
2211         * DOM/DOMDocumentType.mm:
2212         * DOM/DOMEvent.mm:
2213         * DOM/DOMFile.mm:
2214         * DOM/DOMFileList.mm:
2215         * DOM/DOMHTMLAnchorElement.mm:
2216         * DOM/DOMHTMLAppletElement.mm:
2217         * DOM/DOMHTMLAreaElement.mm:
2218         * DOM/DOMHTMLBRElement.mm:
2219         * DOM/DOMHTMLBaseElement.mm:
2220         * DOM/DOMHTMLBaseFontElement.mm:
2221         * DOM/DOMHTMLBodyElement.mm:
2222         * DOM/DOMHTMLButtonElement.mm:
2223         * DOM/DOMHTMLCanvasElement.mm:
2224         * DOM/DOMHTMLCollection.mm:
2225         * DOM/DOMHTMLDListElement.mm:
2226         * DOM/DOMHTMLDirectoryElement.mm:
2227         * DOM/DOMHTMLDivElement.mm:
2228         * DOM/DOMHTMLDocument.mm:
2229         * DOM/DOMHTMLElement.mm:
2230         * DOM/DOMHTMLEmbedElement.mm:
2231         * DOM/DOMHTMLFieldSetElement.mm:
2232         * DOM/DOMHTMLFontElement.mm:
2233         * DOM/DOMHTMLFormElement.mm:
2234         * DOM/DOMHTMLFrameElement.mm:
2235         * DOM/DOMHTMLFrameSetElement.mm:
2236         * DOM/DOMHTMLHRElement.mm:
2237         * DOM/DOMHTMLHeadElement.mm:
2238         * DOM/DOMHTMLHeadingElement.mm:
2239         * DOM/DOMHTMLHtmlElement.mm:
2240         * DOM/DOMHTMLIFrameElement.mm:
2241         * DOM/DOMHTMLImageElement.mm:
2242         * DOM/DOMHTMLInputElement.mm:
2243         * DOM/DOMHTMLLIElement.mm:
2244         * DOM/DOMHTMLLabelElement.mm:
2245         * DOM/DOMHTMLLegendElement.mm:
2246         * DOM/DOMHTMLLinkElement.mm:
2247         * DOM/DOMHTMLMapElement.mm:
2248         * DOM/DOMHTMLMarqueeElement.mm:
2249         * DOM/DOMHTMLMediaElement.mm:
2250         * DOM/DOMHTMLMenuElement.mm:
2251         * DOM/DOMHTMLMetaElement.mm:
2252         * DOM/DOMHTMLModElement.mm:
2253         * DOM/DOMHTMLOListElement.mm:
2254         * DOM/DOMHTMLObjectElement.mm:
2255         * DOM/DOMHTMLOptGroupElement.mm:
2256         * DOM/DOMHTMLOptionElement.mm:
2257         * DOM/DOMHTMLOptionsCollection.mm:
2258         * DOM/DOMHTMLParagraphElement.mm:
2259         * DOM/DOMHTMLParamElement.mm:
2260         * DOM/DOMHTMLPreElement.mm:
2261         * DOM/DOMHTMLQuoteElement.mm:
2262         * DOM/DOMHTMLScriptElement.mm:
2263         * DOM/DOMHTMLSelectElement.mm:
2264         * DOM/DOMHTMLStyleElement.mm:
2265         * DOM/DOMHTMLTableCaptionElement.mm:
2266         * DOM/DOMHTMLTableCellElement.mm:
2267         * DOM/DOMHTMLTableColElement.mm:
2268         * DOM/DOMHTMLTableElement.mm:
2269         * DOM/DOMHTMLTableRowElement.mm:
2270         * DOM/DOMHTMLTableSectionElement.mm:
2271         * DOM/DOMHTMLTitleElement.mm:
2272         * DOM/DOMHTMLUListElement.mm:
2273         * DOM/DOMHTMLVideoElement.mm:
2274         * DOM/DOMKeyboardEvent.mm:
2275         * DOM/DOMMediaError.mm:
2276         * DOM/DOMMediaList.mm:
2277         * DOM/DOMMouseEvent.mm:
2278         * DOM/DOMMutationEvent.mm:
2279         * DOM/DOMNamedNodeMap.mm:
2280         * DOM/DOMNodeIterator.mm:
2281         * DOM/DOMNodeList.mm:
2282         * DOM/DOMOverflowEvent.mm:
2283         * DOM/DOMProcessingInstruction.mm:
2284         * DOM/DOMProgressEvent.mm:
2285         * DOM/DOMRGBColor.mm:
2286         * DOM/DOMRange.mm:
2287         * DOM/DOMRect.mm:
2288         * DOM/DOMStyleSheet.mm:
2289         * DOM/DOMStyleSheetList.mm:
2290         * DOM/DOMText.mm:
2291         * DOM/DOMTextEvent.mm:
2292         * DOM/DOMTimeRanges.mm:
2293         * DOM/DOMTokenList.mm:
2294         * DOM/DOMTreeWalker.mm:
2295         * DOM/DOMUIEvent.mm:
2296         * DOM/DOMWheelEvent.mm:
2297         * DOM/DOMXPath.mm:
2298         * DOM/DOMXPathExpression.mm:
2299         * DOM/DOMXPathResult.mm:
2300
2301 2019-07-17  Antoine Quint  <graouts@apple.com>
2302
2303         Disable Pointer Events prior to watchOS 6
2304         https://bugs.webkit.org/show_bug.cgi?id=199890
2305         <rdar://problem/53206113>
2306
2307         Reviewed by Dean Jackson.
2308
2309         * Configurations/FeatureDefines.xcconfig:
2310
2311 2019-07-17  Zalan Bujtas  <zalan@apple.com>
2312
2313         Unable to tap buttons at top of Wells Fargo app’s Payees screen
2314         https://bugs.webkit.org/show_bug.cgi?id=199846
2315         <rdar://problem/48112220>
2316
2317         Reviewed by Simon Fraser.
2318
2319         * WebView/WebFrame.mm:
2320         (-[WebFrame approximateNodeAtViewportLocation:]):
2321
2322 2019-07-17  Alex Christensen  <achristensen@webkit.org>
2323
2324         Add a runtime-disabled dialog element skeleton
2325         https://bugs.webkit.org/show_bug.cgi?id=199839
2326
2327         Reviewed by Ryosuke Niwa.
2328
2329         * WebView/WebPreferenceKeysPrivate.h:
2330         * WebView/WebPreferences.mm:
2331         (+[WebPreferences initialize]):
2332         (-[WebPreferences dialogElementEnabled]):
2333         (-[WebPreferences setDialogElementEnabled:]):
2334         * WebView/WebPreferencesPrivate.h:
2335         * WebView/WebView.mm:
2336         (-[WebView _preferencesChanged:]):
2337         Add SPI to enable the dialog element for tests.
2338
2339 2019-07-15  Dean Jackson  <dino@apple.com>
2340
2341         [WebGL] Remove software rendering and simplify context creation on macOS
2342         https://bugs.webkit.org/show_bug.cgi?id=199789
2343
2344         Reviewed by Sam Weinig.
2345
2346         Remove force software WebGL setting.
2347
2348         * WebView/WebPreferenceKeysPrivate.h:
2349         * WebView/WebPreferences.mm:
2350         (+[WebPreferences initialize]):
2351         (-[WebPreferences forceSoftwareWebGLRendering]): Deleted.
2352         (-[WebPreferences setForceSoftwareWebGLRendering:]): Deleted.
2353         * WebView/WebPreferencesPrivate.h:
2354         * WebView/WebView.mm:
2355         (-[WebView _preferencesChanged:]):
2356
2357 2019-07-13  Zalan Bujtas  <zalan@apple.com>
2358
2359         Cannot bring up custom media controls at all on v.youku.com
2360         https://bugs.webkit.org/show_bug.cgi?id=199699
2361         <rdar://problem/51835327>
2362
2363         Reviewed by Simon Fraser.
2364
2365         * WebCoreSupport/WebFrameLoaderClient.mm:
2366         (WebFrameLoaderClient::actionDictionary const):
2367         * WebView/WebFrame.mm:
2368         (-[WebFrame elementAtPoint:]):
2369         * WebView/WebHTMLView.mm:
2370         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
2371         * WebView/WebImmediateActionController.mm:
2372         (-[WebImmediateActionController performHitTestAtPoint:]):
2373
2374 2019-07-12  Alex Christensen  <achristensen@webkit.org>
2375
2376         Begin unifying WebKitLegacy sources
2377         https://bugs.webkit.org/show_bug.cgi?id=199730
2378
2379         Reviewed by Keith Miller.
2380
2381         * Configurations/WebKitLegacy.xcconfig:
2382
2383 2019-07-11  Pablo Saavedra  <psaavedra@igalia.com>
2384
2385         [WPE][GTK] Build failure with ENABLE_ACCESSIBILITY=OFF
2386         https://bugs.webkit.org/show_bug.cgi?id=199625
2387
2388         Added ENABLE(ACCESSIBILITY) and replaced HAVE(ACCESSIBILITY)
2389         with ENABLE(ACCESSIBILITY) in the code.
2390
2391         Additionally, the TestRunner code generator now honors the
2392         Conditional IDL format.
2393
2394         Reviewed by Konstantin Tokarev.
2395
2396         * WebView/WebFrame.mm:
2397         (-[WebFrame setAccessibleName:]):
2398         (-[WebFrame enhancedAccessibilityEnabled]):
2399         (-[WebFrame setEnhancedAccessibility:]):
2400         (-[WebFrame accessibilityRoot]):
2401
2402 2019-07-08  Antoine Quint  <graouts@apple.com>
2403
2404         [Pointer Events] Enable only on the most recent version of the supported iOS family
2405         https://bugs.webkit.org/show_bug.cgi?id=199562
2406         <rdar://problem/52766511>
2407
2408         Reviewed by Dean Jackson.
2409
2410         * Configurations/FeatureDefines.xcconfig:
2411
2412 2019-07-03  Sam Weinig  <weinig@apple.com>
2413
2414         Adopt simple structured bindings in more places
2415         https://bugs.webkit.org/show_bug.cgi?id=199247
2416
2417         Reviewed by Alex Christensen.
2418
2419         Replaces simple uses of std::tie() with structured bindings. Does not touch
2420         uses of std::tie() that are not initial declarations, use std::ignore or in
2421         case where the binding is captured by a lambda, as structured bindings don't
2422         work for those cases yet.
2423
2424         * WebView/WebImmediateActionController.mm:
2425         (-[WebImmediateActionController _animationControllerForText]):
2426
2427 2019-07-02  Devin Rousso  <drousso@apple.com>
2428
2429         Web Inspector: Debug: "Reset Web Inspector" should also clear the saved window size and attachment side
2430         https://bugs.webkit.org/show_bug.cgi?id=198956
2431
2432         Reviewed by Matt Baker.
2433
2434         * WebCoreSupport/WebInspectorClient.h:
2435         * WebCoreSupport/WebInspectorClient.mm:
2436         (WebInspectorFrontendClient::resetWindowState): Added.
2437
2438 2019-06-28  Timothy Hatcher  <timothy@apple.com>
2439
2440         Rename effectiveAppearanceIsInactive and useInactiveAppearance to better match UIUserInterfaceLevel.
2441         https://bugs.webkit.org/show_bug.cgi?id=199336
2442         rdar://problem/52348938
2443
2444         Reviewed by Tim Horton.
2445
2446         * WebView/WebView.mm:
2447         (-[WebView _commonInitializationWithFrameName:groupName:]):
2448         (-[WebView _setUseDarkAppearance:]):
2449         (-[WebView _useElevatedUserInterfaceLevel]):
2450         (-[WebView _setUseElevatedUserInterfaceLevel:]):
2451         (-[WebView _setUseDarkAppearance:useInactiveAppearance:]):
2452         (-[WebView _setUseDarkAppearance:useElevatedUserInterfaceLevel:]):
2453         (-[WebView _effectiveUserInterfaceLevelIsElevated]):
2454         (-[WebView viewDidChangeEffectiveAppearance]):
2455         (-[WebView _useInactiveAppearance]): Deleted.
2456         (-[WebView _setUseInactiveAppearance:]): Deleted.
2457         (-[WebView _effectiveAppearanceIsInactive]): Deleted.
2458         * WebView/WebViewPrivate.h:
2459
2460 2019-06-28  Konstantin Tokarev  <annulen@yandex.ru>
2461
2462         Remove traces of ENABLE_ICONDATABASE remaining after its removal in 219733
2463         https://bugs.webkit.org/show_bug.cgi?id=199317
2464
2465         Reviewed by Michael Catanzaro.
2466
2467         While IconDatabase and all code using it was removed,
2468         ENABLE_ICONDATABASE still exists as build option and C++ macro.
2469
2470         * Configurations/FeatureDefines.xcconfig:
2471         * WebView/WebView.mm:
2472         (-[WebView _cacheFrameLoadDelegateImplementations]): Use PLATFORM(MAC)
2473         guard instead of ENABLE_ICONDATABASE, because ENABLE_ICONDATABASE was
2474         enabled for macOS only.
2475
2476 2019-06-27  Timothy Hatcher  <timothy@apple.com>
2477
2478         Move WebKitLegacy off of a couple AppKit ivars.
2479         https://bugs.webkit.org/show_bug.cgi?id=199279
2480         rdar://problem/34983438
2481
2482         Reviewed by Tim Horton.
2483
2484         * WebView/WebHTMLView.mm:
2485         (-[NSView _setSubviewsIvar:]): Added. Implement on older systems.
2486         (-[NSView _subviewsIvar]): Added. Ditto.
2487         (needsCursorRectsSupportAtPoint): Use _borderView property.
2488         (-[WebHTMLView _setAsideSubviews]): Use _subviewsIvar property.
2489         (-[NSWindow _web_borderView]): Deleted.
2490
2491 2019-06-27  Beth Dakin  <bdakin@apple.com>
2492
2493         Upstream use of MACCATALYST
2494         https://bugs.webkit.org/show_bug.cgi?id=199245
2495         rdar://problem/51687723
2496
2497         Reviewed by Tim Horton.
2498
2499         * Configurations/Base.xcconfig:
2500         * Configurations/FeatureDefines.xcconfig:
2501         * Configurations/SDKVariant.xcconfig:
2502
2503 2019-06-27  Saam Barati  <sbarati@apple.com>
2504
2505         Make WEBGPU enabled only on Mojave and later.
2506
2507         Rubber-stamped by Myles C. Maxfield.
2508
2509         * Configurations/FeatureDefines.xcconfig:
2510
2511 2019-06-16  Darin Adler  <darin@apple.com>
2512
2513         Rename AtomicString to AtomString
2514         https://bugs.webkit.org/show_bug.cgi?id=195276
2515
2516         Reviewed by Michael Catanzaro.
2517
2518         * many files: Let do-webcore-rename do the renaming.
2519
2520 2019-06-14  Megan Gardner  <megan_gardner@apple.com>
2521
2522         Move Synthetic Editing Commands to behind an experimental feature flag
2523         https://bugs.webkit.org/show_bug.cgi?id=198842
2524         <rdar://problem/50594700>
2525
2526         Reviewed by Simon Fraser.
2527
2528         Add plumbing for synthetic editing command feature flag.
2529
2530         * WebView/WebPreferenceKeysPrivate.h:
2531         * WebView/WebPreferences.mm:
2532         (+[WebPreferences initialize]):
2533         (-[WebPreferences syntheticEditingCommandsEnabled]):
2534         (-[WebPreferences setSyntheticEditingCommandsEnabled:]):
2535         * WebView/WebPreferencesPrivate.h:
2536         * WebView/WebView.mm:
2537         (-[WebView _preferencesChanged:]):
2538
2539 2019-06-13  Antoine Quint  <graouts@apple.com>
2540
2541         REGRESSION (r246103) [ Mojave+ WK1 ] Layout Test scrollbars/scrollbar-iframe-click-does-not-blur-content.html is timing out
2542         https://bugs.webkit.org/show_bug.cgi?id=198800
2543         <rdar://problem/51679634>
2544
2545         Reviewed by Tim Horton.
2546
2547         Expose a private method that we need to use from DumpRenderTree.
2548
2549         * WebView/WebHTMLView.mm:
2550         (-[WebHTMLView _hitViewForEvent:]):
2551         * WebView/WebHTMLViewPrivate.h:
2552
2553 2019-06-10  Sam Weinig  <weinig@apple.com>
2554
2555         Remove Dashboard support
2556         https://bugs.webkit.org/show_bug.cgi?id=198615
2557
2558         Reviewed by Ryosuke Niwa.
2559
2560         Removes implementation, but keeps privatly exported interfaces and enums
2561         around until we can confirm there are no more users of them. 
2562
2563         * Configurations/FeatureDefines.xcconfig:
2564         * Plugins/WebBaseNetscapePluginView.mm:
2565         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
2566         * WebCoreSupport/WebChromeClient.h:
2567         * WebCoreSupport/WebChromeClient.mm:
2568         (WebChromeClient::annotatedRegionsChanged): Deleted.
2569         * WebView/WebClipView.mm:
2570         (-[WebClipView _focusRingVisibleRect]):
2571         (-[WebClipView scrollWheel:]):
2572         * WebView/WebDashboardRegion.h:
2573         * WebView/WebDashboardRegion.mm:
2574         * WebView/WebHTMLView.mm:
2575         (-[WebHTMLView _updateMouseoverWithEvent:]):
2576         (-[WebHTMLView acceptsFirstMouse:]):
2577         (-[WebHTMLView setDataSource:]):
2578         * WebView/WebPreferences.mm:
2579         (cacheModelForMainBundle):
2580         * WebView/WebUIDelegatePrivate.h:
2581         * WebView/WebView.mm:
2582         (-[WebView _needsPreHTML5ParserQuirks]):
2583         (-[WebView _preferencesChanged:]):
2584         (-[WebView _addScrollerDashboardRegions:]):
2585         (-[WebView _dashboardRegions]):
2586         (-[WebView _setDashboardBehavior:to:]):
2587         (-[WebView _dashboardBehavior:]):
2588         (-[WebView _addControlRect:clip:fromView:toDashboardRegions:]): Deleted.
2589         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]): Deleted.
2590         (-[WebView _addScrollerDashboardRegions:from:]): Deleted.
2591         * WebView/WebViewData.h:
2592         * WebView/WebViewData.mm:
2593         (-[WebViewPrivate init]):
2594         * WebView/WebViewPrivate.h:
2595
2596 2019-06-10  Timothy Hatcher  <timothy@apple.com>
2597
2598         Integrate dark mode support for iOS.
2599         https://bugs.webkit.org/show_bug.cgi?id=198687
2600         rdar://problem/51545643
2601
2602         Reviewed by Tim Horton.
2603
2604         * Configurations/FeatureDefines.xcconfig:
2605
2606 2019-06-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
2607
2608         REGRESSION (r244182) [WK1]: Page updates should always scheduleCompositingLayerFlush() immediately
2609         https://bugs.webkit.org/show_bug.cgi?id=198664
2610
2611         Reviewed by Simon Fraser.
2612
2613         WK1 has to skip using DisplayRefreshMonitor when layers need to be updated.
2614
2615         * WebCoreSupport/WebChromeClient.h:
2616         (WebChromeClient::needsImmediateScheduleCompositingLayerFlush):
2617
2618 == Rolled over to ChangeLog-2019-06-05 ==