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