[iOS] Support pasting item-provider-backed data on the pasteboard as attachment elements
[WebKit-https.git] / Source / WebKitLegacy / win / ChangeLog
1 2019-02-18  Wenson Hsieh  <wenson_hsieh@apple.com>
2
3         [iOS] Support pasting item-provider-backed data on the pasteboard as attachment elements
4         https://bugs.webkit.org/show_bug.cgi?id=194670
5         <rdar://problem/39066529>
6
7         Reviewed by Tim Horton.
8
9         * WebCoreSupport/WebEditorClient.cpp:
10         (WebEditorClient::replacementURLForResource): Deleted.
11         * WebCoreSupport/WebEditorClient.h:
12
13 2019-02-10  Darin Adler  <darin@apple.com>
14
15         Replace more uses of String::format with StringConcatenate (mostly non-Apple platform-specific cases)
16         https://bugs.webkit.org/show_bug.cgi?id=194487
17
18         Reviewed by Daniel Bates.
19
20         * WebView.cpp:
21         (webKitVersionString): Use makeString instead of String::format.
22
23 2019-02-12  Wenson Hsieh  <wenson_hsieh@apple.com>
24
25         Allow pages to trigger programmatic paste from script on iOS
26         https://bugs.webkit.org/show_bug.cgi?id=194271
27         <rdar://problem/47808810>
28
29         Reviewed by Ryosuke Niwa.
30
31         * WebCoreSupport/WebEditorClient.h:
32
33 2019-02-06  Daniel Bates  <dabates@apple.com>
34
35         Standardize on ControlKey instead of CtrlKey
36         https://bugs.webkit.org/show_bug.cgi?id=194317
37
38         Reviewed by Tim Horton.
39
40         * AccessibleBase.cpp:
41         (AccessibleBase::get_accKeyboardShortcut):
42         * WebView.cpp:
43         (WebView::keyDown):
44
45 2019-02-04  Simon Fraser  <simon.fraser@apple.com>
46
47         PageOverlayController's layers should be created lazily
48         https://bugs.webkit.org/show_bug.cgi?id=194199
49         rdar://problem/46571593
50
51         Reviewed by Tim Horton.
52
53         Expose PageOverlayController::hasDocumentOverlays() and hasViewOverlays()
54         and use them to only parent the overlay-hosting layers when necessary.
55
56         For document overlays, RenderLayerCompositor::appendDocumentOverlayLayers() can
57         simply do nothing if there are none. Updates are triggered via Page::installedPageOverlaysChanged(),
58         which calls FrameView::setNeedsCompositingConfigurationUpdate() to trigger the root layer
59         compositing updates that parents the layerWithDocumentOverlays().
60
61         View overlays are added to the layer tree via the DrawingArea. When we go between having
62         none and some view overlays, Page::installedPageOverlaysChanged() calls attachViewOverlayGraphicsLayer()
63         on the ChromeClient, and the DrawingArea responds by calling updateRootLayers() and scheduling a
64         compositing flush (this has to be done manually because view overlay layers are outside the
65         subtree managed by RenderLayerCompositor).
66         
67         Now that GraphicsLayers are ref-counted, we can let the DrawingArea simply retain its m_viewOverlayRootLayer;
68         there is no need for RenderLayerCompositor::attachRootLayer()/detachRootLayer() to do anything with view
69         overlay layers. This implies that a page can navigate (new FrameView) and view overlays will persist, without
70         having to be manually removed and re-added. We can also remove the Frame argument to attachViewOverlayGraphicsLayer().
71
72         * WebCoreSupport/WebChromeClient.cpp:
73         (WebChromeClient::attachViewOverlayGraphicsLayer):
74         * WebCoreSupport/WebChromeClient.h:
75
76 2019-02-03  Ryosuke Niwa  <rniwa@webkit.org>
77
78         Validate navigation policy decisions to avoid crashes in continueLoadAfterNavigationPolicy
79         https://bugs.webkit.org/show_bug.cgi?id=194189
80
81         Reviewed by Geoffrey Garen.
82
83         Pass the policy check identifier around functions and store it in WebFramePolicyListener
84         so that we can send it back to WebCore with the navigation policy decision.
85
86         * WebCoreSupport/WebFrameLoaderClient.cpp:
87         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
88         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
89         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
90         (WebFrameLoaderClient::dispatchWillSubmitForm):
91         (WebFrameLoaderClient::setUpPolicyListener):
92         * WebCoreSupport/WebFrameLoaderClient.h:
93
94 2019-01-31  Alex Christensen  <achristensen@webkit.org>
95
96         Revert r238819 which is unneeded and caused a performance regression.
97         https://bugs.webkit.org/show_bug.cgi?id=192272
98         <rdar://problem/46664625>
99
100         * WebCoreSupport/WebFrameLoaderClient.cpp:
101         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
102         * WebCoreSupport/WebFrameLoaderClient.h:
103
104 2019-01-31  Takashi Komori  <Takashi.Komori@sony.com>
105
106         [Curl] Fix DRT crash related to private browsing.
107         https://bugs.webkit.org/show_bug.cgi?id=193816
108
109         Reviewed by Alex Christensen.
110
111         * WebCoreSupport/WebFrameNetworkingContext.cpp:
112         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
113
114 2019-01-28  Ross Kirsling  <ross.kirsling@sony.com>
115
116         Remove unnecessary `using namespace WTF`s (or at least restrict their scope).
117         https://bugs.webkit.org/show_bug.cgi?id=193941
118
119         Reviewed by Alex Christensen.
120
121         * Plugins/PluginMessageThrottlerWin.cpp:
122         * Plugins/PluginView.cpp:
123         * Plugins/PluginViewWin.cpp:
124
125 2019-01-24  Ross Kirsling  <ross.kirsling@sony.com>
126
127         Move FileSystem to WTF
128         https://bugs.webkit.org/show_bug.cgi?id=193602
129
130         Reviewed by Yusuke Suzuki.
131
132         * Plugins/PluginDatabase.cpp:
133         * Plugins/PluginPackage.h:
134         * Plugins/PluginStream.h:
135         * WebApplicationCache.cpp:
136         * WebDatabaseManager.cpp:
137         * WebDownloadCurl.cpp:
138         * WebPreferences.cpp:
139         * WebView.cpp:
140
141 2019-01-22  Alex Christensen  <achristensen@webkit.org>
142
143         Move NetworkStorageSession ownership to NetworkProcess
144         https://bugs.webkit.org/show_bug.cgi?id=193580
145
146         Reviewed by Geoff Garen.
147
148         * WebCoreSupport/WebFrameNetworkingContext.cpp:
149         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
150         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
151         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
152         (WebFrameNetworkingContext::storageSession const):
153         * WebDownloadCFNet.cpp:
154         (WebDownload::didReceiveAuthenticationChallenge):
155         * WebPreferences.cpp:
156         (WebPreferences::clearNetworkLoaderSession):
157         (WebPreferences::switchNetworkLoaderToNewTestingSession):
158
159 2019-01-15  Darin Adler  <darin@apple.com>
160
161         Use references rather than pointers for register/unregister functions, and more
162         https://bugs.webkit.org/show_bug.cgi?id=175028
163
164         Reviewed by Daniel Bates.
165
166         * Plugins/PluginView.cpp:
167         (WebCore::PluginView::startOrAddToUnstartedList): Pass a reference.
168         (WebCore::PluginView::~PluginView): Ditto.
169         * WebView.cpp:
170         (WebView::fullScreenClientWillEnterFullScreen): Ditto.
171         (WebView::fullScreenClientDidEnterFullScreen): Ditto.
172         (WebView::fullScreenClientDidExitFullScreen): Ditto.
173
174 2019-01-17  Per Arne Vollan  <pvollan@apple.com>
175
176         [Win][HighDPI] Repaint glitches when scrolling.
177         https://bugs.webkit.org/show_bug.cgi?id=173152
178         <rdar://problem/45269953>
179
180         Reviewed by Brent Fulgham.
181
182         Non-integral device scale factors are causing repaint glitches, because the computation of the scroll
183         delta in pixel coordinates from the scroll delta in logical coordinates will not always be correct.
184         Instead of blitting the scroll rectangle, repaint the entire region affected by scrolling.
185
186         * WebView.cpp:
187         (WebView::scrollBackingStore):
188
189 2019-01-17  Alex Christensen  <achristensen@webkit.org>
190
191         Stop using NetworkStorageSession::storageSession in WebCore
192         https://bugs.webkit.org/show_bug.cgi?id=193529
193
194         Reviewed by Tim Horton.
195
196         * WebView.cpp:
197         (WebView::initWithFrame):
198
199 2019-01-15  Alex Christensen  <achristensen@webkit.org>
200
201         Reduce use of NetworkStorageSession::defaultStorageSession in WebCore
202         https://bugs.webkit.org/show_bug.cgi?id=193368
203
204         Reviewed by Geoff Garen.
205
206         * WebDownloadCFNet.cpp:
207         (WebDownload::didReceiveAuthenticationChallenge):
208
209 2019-01-15  Alex Christensen  <achristensen@webkit.org>
210
211         Fix Windows build after r240014
212         https://bugs.webkit.org/show_bug.cgi?id=161106
213
214         * WebView.cpp:
215
216 2019-01-15  Alex Christensen  <achristensen@webkit.org>
217
218         Stop using CookiesStrategy
219         https://bugs.webkit.org/show_bug.cgi?id=161106
220
221         Reviewed by Don Olmstead and Antti Koivisto.
222
223         * Plugins/PluginView.cpp:
224         (WebCore::PluginView::getValueForURL):
225         (WebCore::PluginView::setValueForURL):
226         * WebCoreSupport/WebPlatformStrategies.cpp:
227         (WebPlatformStrategies::createBlobRegistry):
228         (WebPlatformStrategies::createCookiesStrategy): Deleted.
229         (WebPlatformStrategies::cookiesForDOM): Deleted.
230         (WebPlatformStrategies::setCookiesFromDOM): Deleted.
231         (WebPlatformStrategies::cookiesEnabled): Deleted.
232         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Deleted.
233         (WebPlatformStrategies::getRawCookies): Deleted.
234         (WebPlatformStrategies::deleteCookie): Deleted.
235         * WebCoreSupport/WebPlatformStrategies.h:
236         * WebView.cpp:
237         (WebView::initWithFrame):
238
239 2019-01-08  Alex Christensen  <achristensen@webkit.org>
240
241         Stop using NetworkStorageSession in WebProcess
242         https://bugs.webkit.org/show_bug.cgi?id=193236
243
244         Reviewed by Don Olmstead.
245
246         * WebCoreSupport/WebFrameNetworkingContext.cpp:
247         (WebFrameNetworkingContext::storageSession const):
248         * WebCoreSupport/WebFrameNetworkingContext.h:
249         * WebCoreSupport/WebPlatformStrategies.cpp:
250         (WebPlatformStrategies::cookiesForDOM):
251         (WebPlatformStrategies::setCookiesFromDOM):
252         (WebPlatformStrategies::cookiesEnabled):
253         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
254         (WebPlatformStrategies::getRawCookies):
255         (WebPlatformStrategies::deleteCookie):
256         * WebCoreSupport/WebPlatformStrategies.h:
257
258 2019-01-08  Alex Christensen  <achristensen@webkit.org>
259
260         Unreviewed, rolling out r239727.
261
262         Broke API tests
263
264         Reverted changeset:
265
266         "Stop using NetworkStorageSession in WebProcess"
267         https://bugs.webkit.org/show_bug.cgi?id=193236
268         https://trac.webkit.org/changeset/239727
269
270 2018-12-24  Fujii Hironori  <Hironori.Fujii@sony.com>
271
272         Remove "using namespace std;"
273         https://bugs.webkit.org/show_bug.cgi?id=192973
274
275         Reviewed by Alex Christensen.
276
277         * FullscreenVideoController.cpp:
278         * WebFrame.cpp:
279         (WebFrame::drawFooter):
280         * WebHistory.cpp:
281         * WebKitQuartzCoreAdditions/CAD3DRenderer.cpp:
282         * WebKitQuartzCoreAdditions/CAView.cpp:
283         * WebView.cpp:
284         (PreferencesChangedOrRemovedObserver::notifyPreferencesChanged):
285         (PreferencesChangedOrRemovedObserver::notifyPreferencesRemoved):
286         (WebView::setCacheModel):
287         (WebView::maxCacheModelInAnyInstance):
288
289 2018-12-20  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
290
291         Use Ref<> as much as possible
292         https://bugs.webkit.org/show_bug.cgi?id=192808
293
294         Reviewed by Alex Christensen.
295
296         * Plugins/PluginDatabase.cpp:
297         (WebCore::PluginDatabase::refresh):
298         * Plugins/PluginView.cpp:
299         (WebCore::PluginView::mediaCanStart):
300         (WebCore::PluginView::performRequest):
301         (WebCore::PluginView::bindingInstance):
302         * Plugins/PluginView.h:
303         * WebCoreSupport/WebFrameLoaderClient.cpp:
304         (WebFrameLoaderClient::dispatchDidFailToStartPlugin const):
305         (WebFrameLoaderClient::createPlugin):
306         (WebFrameLoaderClient::createJavaAppletWidget):
307         * WebCoreSupport/WebFrameLoaderClient.h:
308         * WebFrame.cpp:
309         (WebFrame::loadData):
310         (WebFrame::loadPlainTextString):
311         (WebFrame::loadHTMLString):
312         * WebFrame.h:
313         * WebKitQuartzCoreAdditions/CAView.cpp:
314         (WKQCA::CAView::create):
315         * WebKitQuartzCoreAdditions/CAView.h:
316         * WebKitQuartzCoreAdditions/CVDisplayLink.cpp:
317         (WKQCA::CVDisplayLink::create):
318         * WebKitQuartzCoreAdditions/CVDisplayLink.h:
319         * WebKitQuartzCoreAdditions/ImageConversion.cpp:
320         (WKQCA::getImageCopy):
321         * WebView.cpp:
322         (WebView::addUserScriptToGroup):
323         (WebView::addUserStyleSheetToGroup):
324
325 2018-12-20  Chris Dumez  <cdumez@apple.com>
326
327         Use Optional::valueOr() instead of Optional::value_or()
328         https://bugs.webkit.org/show_bug.cgi?id=192933
329
330         Reviewed by Geoffrey Garen.
331
332         * WebSecurityOrigin.cpp:
333         (WebSecurityOrigin::port):
334
335 2018-12-19  Chris Dumez  <cdumez@apple.com>
336
337         wtf/Optional.h: move-constructor and move-assignment operator should disengage the value being moved from
338         https://bugs.webkit.org/show_bug.cgi?id=192728
339         <rdar://problem/46746779>
340
341         Reviewed by Geoff Garen.
342
343         * Plugins/*:
344         * WebCoreSupport/*:
345
346 2018-12-12  Fujii Hironori  <Hironori.Fujii@sony.com>
347
348         [Win][Clang][WebKitLegacy] warning: expected a qualified name after 'typename' of COMEnumVariant and COMPropertyBag
349         https://bugs.webkit.org/show_bug.cgi?id=192617
350
351         Reviewed by Alex Christensen.
352
353         * COMEnumVariant.h:
354         (COMEnumVariant<ContainerType>::adopt): Removed 'typename' from non dependent names.
355         (COMEnumVariant<ContainerType>::createInstance): Ditto.
356         (COMEnumVariant<ContainerType>::Next): Prepend 'typename' for dependent names.
357         * COMPropertyBag.h:
358         (HashType>::createInstance): Removed 'typename' from non dependent names.
359         (HashType>::adopt): Ditto.
360         (HashType>::Read): Replaced dependent name 'HashMapType::const_iterator' with 'auto'.
361         (HashType>::GetPropertyInfo): Ditto.
362
363 2018-12-12  Fujii Hironori  <Hironori.Fujii@sony.com>
364
365         [Win][Clang][WebKitLegacy] WebFrame.cpp: warning: delete called on non-final 'WebFrame' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
366         https://bugs.webkit.org/show_bug.cgi?id=192618
367
368         Reviewed by Alex Christensen.
369
370         Classes which implement COM interface usually doesn't need the
371         virtual destructor because it has Release() virtual method to
372         destruct itself.
373
374         Marked 'final' such classes to suppress clang-cl's compilation
375         warnings.
376
377         * COMEnumVariant.h:
378         * COMPropertyBag.h:
379         * DefaultDownloadDelegate.h:
380         * DefaultPolicyDelegate.h:
381         * MemoryStream.h:
382         * WebActionPropertyBag.h:
383         * WebApplicationCache.h:
384         * WebArchive.h:
385         * WebBackForwardList.h:
386         * WebCache.h:
387         * WebCoreStatistics.h:
388         * WebCoreSupport/WebEditorClient.cpp:
389         * WebCoreSupport/WebInspectorDelegate.h:
390         * WebDataSource.h:
391         * WebDatabaseManager.cpp:
392         * WebDatabaseManager.h:
393         * WebDownload.h:
394         * WebDropSource.h:
395         * WebElementPropertyBag.h:
396         * WebError.h:
397         * WebFrame.cpp:
398         * WebFrame.h:
399         * WebFramePolicyListener.h:
400         * WebGeolocationPolicyListener.h:
401         * WebGeolocationPosition.h:
402         * WebHTMLRepresentation.h:
403         * WebHistory.h:
404         * WebHistoryItem.h:
405         * WebInspector.h:
406         * WebJavaScriptCollector.h:
407         * WebKitClassFactory.h:
408         * WebKitMessageLoop.h:
409         * WebKitStatistics.h:
410         * WebMutableURLRequest.h:
411         * WebNavigationData.h:
412         * WebNotification.h:
413         * WebNotificationCenter.h:
414         * WebPreferences.h:
415         * WebResource.h:
416         * WebScriptWorld.h:
417         * WebSecurityOrigin.h:
418         * WebSerializedJSValue.h:
419         * WebTextRenderer.h:
420         * WebURLAuthenticationChallenge.h:
421         * WebURLAuthenticationChallengeSender.h:
422         * WebURLCredential.h:
423         * WebURLProtectionSpace.h:
424         * WebURLResponse.h:
425         * WebUserContentURLPattern.h:
426         * WebView.cpp:
427         * WebView.h:
428         * WebWorkersPrivate.h:
429
430 2018-12-11  Fujii Hironori  <Hironori.Fujii@sony.com>
431
432         [Win][Clang] Fix warning -Wmissing-field-initializers
433         https://bugs.webkit.org/show_bug.cgi?id=192584
434
435         Reviewed by Yusuke Suzuki.
436
437         Initialize a struct with '{ }' instead of '= {0}'.
438
439         * WebKitMessageLoop.cpp:
440         (WebKitMessageLoop::run):
441         * WebView.cpp:
442         (WebView::onMenuCommand):
443         (WebView::gesture):
444         (WebView::setShouldInvertColors):
445         (WebView::initializeToolTipWindow):
446         (WebView::setToolTip):
447         (WebView::fullScreenClientForceRepaint):
448
449 2018-12-05  Wenson Hsieh  <wenson_hsieh@apple.com>
450
451         Turn WritingDirection into an enum class
452         https://bugs.webkit.org/show_bug.cgi?id=192401
453         Work towards <rdar://problem/42075638>
454
455         Reviewed by Dan Bernstein.
456
457         Change WritingDirection from an enum to an enum class. No change in behavior.
458
459         * WebFrame.cpp:
460         (WebFrame::setTextDirection):
461
462 2018-12-03  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
463
464         Use WallTime for file time
465         https://bugs.webkit.org/show_bug.cgi?id=192287
466
467         Reviewed by Darin Adler.
468
469         * Plugins/PluginDatabase.cpp:
470         (WebCore::PluginDatabase::refresh):
471
472 2018-11-30  Alex Christensen  <achristensen@webkit.org>
473
474         Fix Windows build.
475
476         * WebView.cpp:
477
478 2018-11-30  Alex Christensen  <achristensen@webkit.org>
479
480         Fix Windows build.
481
482         * WebCoreSupport/WebFrameLoaderClient.h:
483
484 2018-11-30  Alex Christensen  <achristensen@webkit.org>
485
486         Fix Windows build.
487
488         * WebCoreSupport/WebFrameLoaderClient.h:
489
490 2018-11-30  Alex Christensen  <achristensen@webkit.org>
491
492         Move URL from WebCore to WTF
493         https://bugs.webkit.org/show_bug.cgi?id=190234
494
495         Reviewed by Keith Miller.
496
497         * MarshallingHelpers.cpp:
498         * MarshallingHelpers.h:
499         * Plugins/PluginDatabase.cpp:
500         * Plugins/PluginDatabase.h:
501         * Plugins/PluginDatabaseWin.cpp:
502         * Plugins/PluginStream.h:
503         * Plugins/PluginView.h:
504         * WebCoreSupport/WebContextMenuClient.h:
505         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
506         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
507         * WebCoreSupport/WebFrameLoaderClient.h:
508         * WebCoreSupport/WebPlatformStrategies.h:
509         * WebCoreSupport/WebPluginInfoProvider.cpp:
510         (WebPluginInfoProvider::webVisiblePluginInfo):
511         * WebCoreSupport/WebPluginInfoProvider.h:
512         * WebCoreSupport/WebVisitedLinkStore.h:
513         * WebDataSource.cpp:
514         * WebDownload.h:
515         * WebElementPropertyBag.cpp:
516         * WebFrame.h:
517         * WebHistory.cpp:
518         * WebHistory.h:
519         * WebHistoryItem.cpp:
520         * WebResource.cpp:
521         (WebResource::WebResource):
522         * WebResource.h:
523         * WebSecurityOrigin.cpp:
524         * WebURLResponse.cpp:
525         (WebURLResponse::createInstance):
526         * WebUserContentURLPattern.cpp:
527         * WebView.h:
528
529 2018-11-28  Alex Christensen  <achristensen@webkit.org>
530
531         Remove dead code from an earlier attempt at implementing safe browsing
532         https://bugs.webkit.org/show_bug.cgi?id=192067
533
534         Reviewed by Chris Dumez.
535
536         * WebCoreSupport/WebFrameLoaderClient.cpp:
537         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
538         * WebCoreSupport/WebFrameLoaderClient.h:
539
540 2018-11-26  Fujii Hironori  <Hironori.Fujii@sony.com>
541
542         [Clang][WebKitLegacy][Win] MarshallingHelpers.h(65,47): warning: extra qualification on member 'windowsEpochAbsoluteTime' [-Wmicrosoft-extra-qualification]
543         https://bugs.webkit.org/show_bug.cgi?id=191959
544
545         Reviewed by Alex Christensen.
546
547         * MarshallingHelpers.h: Removed extra "MarshallingHelpers::" of windowsEpochAbsoluteTime declaration.
548
549 2018-11-26  Brent Fulgham  <bfulgham@apple.com>
550
551         [Win] Reduce the use of WKSI library calls: CoreAnimation
552         https://bugs.webkit.org/show_bug.cgi?id=191777
553         <rdar://problem/46140542>
554
555         Reviewed by Zalan Bujtas.
556
557         Update the Windows build of WebKit to refer to the SPI headers, rather than WebKitSystemInterface.
558         Move a small amount of glue code from WKSI to WebCore, and remove any includes or link
559         directives for WebKitSystemInterface.lib.
560
561         * FullscreenVideoController.cpp:
562         * WebKitGraphics.cpp:
563         * WebPreferences.cpp:
564
565 2018-11-22  Wenson Hsieh  <wenson_hsieh@apple.com>
566
567         Address post-review feedback after r238438
568         https://bugs.webkit.org/show_bug.cgi?id=191913
569
570         Reviewed by Ryosuke Niwa.
571
572         * AccessibleTextImpl.cpp:
573         (AccessibleText::replaceText):
574
575 2018-11-19  Joseph Pecoraro  <pecoraro@apple.com>
576
577         Web Inspector: "Reload Web Inspector" button no longer partially works
578         https://bugs.webkit.org/show_bug.cgi?id=191773
579         <rdar://problem/46139932>
580
581         Reviewed by Devin Rousso.
582
583         * WebCoreSupport/WebInspectorClient.cpp:
584         (WebInspectorFrontendClient::reopen):
585         * WebCoreSupport/WebInspectorClient.h:
586
587 2018-11-17  Devin Rousso  <drousso@apple.com>
588
589         Web Inspector: Network: add button to show system certificate dialog
590         https://bugs.webkit.org/show_bug.cgi?id=191458
591         <rdar://problem/45977019>
592
593         Reviewed by Joseph Pecoraro.
594
595         * WebCoreSupport/WebInspectorClient.h:
596         * WebCoreSupport/WebInspectorClient.cpp:
597         (WebInspectorFrontendClient::showCertificate): Added.
598
599 2018-11-16  Brent Fulgham  <bfulgham@apple.com>
600
601         [Win] Reduce the use of WKSI library calls: CFNetwork
602         https://bugs.webkit.org/show_bug.cgi?id=191718
603         <rdar://problem/46108732>
604
605         Reviewed by Alex Christensen.
606
607         Remove custom WKSI CFNetwork calls, since the SPI is already documented in PAL. Just
608         make the same calls on Windows, like we did for iOS and macOS back in 2017.
609
610         * WebCache.cpp:
611         (WebCache::cacheFolder):
612         * WebCoreSupport/WebFrameNetworkingContext.cpp:
613         * WebCoreSupport/WebPlatformStrategies.cpp:
614         * WebError.cpp:
615         (WebError::localizedDescription):
616         (WebError::sslPeerCertificate):
617         * WebURLResponse.cpp:
618         (WebURLResponse::sslPeerCertificate):
619         (WebURLResponse::certificateDictionary const):
620         * WebView.cpp:
621         (WebView::setCacheModel):
622
623 2018-11-15  Brent Fulgham  <bfulgham@apple.com>
624
625         [Win] Reduce the use of WKSI library calls: Font Handling
626         https://bugs.webkit.org/show_bug.cgi?id=191701
627         <rdar://problem/46104809>
628
629         Reviewed by Myles C. Maxfield.
630
631         Update to use the old font handling routines moved from WKSI to FontCascade.
632
633         * WebPreferences.cpp:
634         (WebPreferences::setFontSmoothing):
635         (WebPreferences::setFontSmoothingContrast):
636         * WebView.cpp:
637         (systemParameterChanged):
638
639 2018-11-14  Timothy Hatcher  <timothy@apple.com>
640
641         Default the view background color and text color to different values when in dark mode.
642         https://bugs.webkit.org/show_bug.cgi?id=191607
643         rdar://problem/46045854
644
645         Reviewed by Dean Jackson.
646
647         * WebFrame.cpp:
648         (WebFrame::updateBackground): Drop backgroundColor.
649         * WebCoreSupport/WebFrameLoaderClient.cpp:
650         (WebFrameLoaderClient::transitionToCommittedForNewPage): Drop backgroundColor.
651
652 2018-11-14  Joseph Pecoraro  <pecoraro@apple.com>
653
654         Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods
655         https://bugs.webkit.org/show_bug.cgi?id=191612
656
657         Reviewed by Matt Baker.
658
659         * WebCoreSupport/WebInspectorClient.cpp:
660         (WebInspectorFrontendClient::destroyInspectorView):
661
662 2018-11-12  Don Olmstead  <don.olmstead@sony.com>
663
664         Shipped PNGs include bad profiles: iCCP: known incorrect sRGB profile
665         https://bugs.webkit.org/show_bug.cgi?id=189230
666         <rdar://problem/44050379>
667
668         Reviewed by Joseph Pecoraro.
669
670         Runs all png images through zopflipng. This results in a smaller file
671         size and takes care of this issue as a byproduct.
672
673         * WebKit.resources/deleteButton.png:
674         * WebKit.resources/deleteButtonPressed.png:
675         * WebKit.resources/fsVideoAudioVolumeHigh.png:
676         * WebKit.resources/fsVideoAudioVolumeLow.png:
677         * WebKit.resources/fsVideoExitFullscreen.png:
678         * WebKit.resources/fsVideoPause.png:
679         * WebKit.resources/fsVideoPlay.png:
680         * WebKit.resources/missingImage.png:
681         * WebKit.resources/nullplugin.png:
682         * WebKit.resources/panEastCursor.png:
683         * WebKit.resources/panIcon.png:
684         * WebKit.resources/panNorthCursor.png:
685         * WebKit.resources/panNorthEastCursor.png:
686         * WebKit.resources/panNorthWestCursor.png:
687         * WebKit.resources/panSouthCursor.png:
688         * WebKit.resources/panSouthEastCursor.png:
689         * WebKit.resources/panSouthWestCursor.png:
690         * WebKit.resources/panWestCursor.png:
691         * WebKit.resources/searchCancel.png:
692         * WebKit.resources/searchCancelPressed.png:
693         * WebKit.resources/searchMagnifier.png:
694         * WebKit.resources/searchMagnifierResults.png:
695         * WebKit.resources/textAreaResizeCorner.png:
696         * WebKit.resources/verticalTextCursor.png:
697         * WebKit.resources/zoomInCursor.png:
698         * WebKit.resources/zoomOutCursor.png:
699
700 2018-11-09  Ross Kirsling  <ross.kirsling@sony.com>
701
702         Unreviewed Windows build fix for r238049.
703
704         * WebView.cpp:
705         (WebView::initWithFrame):
706
707 2018-11-09  Ross Kirsling  <ross.kirsling@sony.com>
708
709         Unreviewed MSVC build fix after r238039 (and r238046).
710
711         * WebDocumentLoader.h:
712         * WebView.cpp:
713         (WebView::setShouldApplyMacFontAscentHack):
714
715 2018-11-09  Antti Koivisto  <antti@apple.com>
716
717         Use OptionSet for layout milestones
718         https://bugs.webkit.org/show_bug.cgi?id=191470
719
720         Reviewed by Dean Jackson.
721
722         * WebCoreSupport/WebFrameLoaderClient.cpp:
723         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
724         * WebCoreSupport/WebFrameLoaderClient.h:
725
726 2018-11-09  Fujii Hironori  <Hironori.Fujii@sony.com>
727
728         WebHistory.h: warning: 'QueryInterface' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
729         https://bugs.webkit.org/show_bug.cgi?id=191455
730
731         Reviewed by Brent Fulgham.
732
733         * WebHistory.h: Marked with 'override' and removed 'virtual'.
734
735 2018-11-01  Sihui Liu  <sihui_liu@apple.com>
736
737         Add a storage limit for IndexedDB
738         https://bugs.webkit.org/show_bug.cgi?id=190598
739         <rdar://problem/44654715>
740
741         Reviewed by Chris Dumez.
742
743         * Interfaces/IWebDatabaseManager.idl:
744         * WebDatabaseManager.cpp:
745         (WebDatabaseManager::setIDBPerOriginQuota):
746         * WebDatabaseManager.h:
747
748 2018-10-31  Fujii Hironori  <Hironori.Fujii@sony.com>
749
750         [Win][WKL] DOMHTMLDocument::setNodeValue does infinite recursion
751         https://bugs.webkit.org/show_bug.cgi?id=191105
752
753         Reviewed by Brent Fulgham.
754
755         * DOMHTMLClasses.h:
756         (DOMHTMLDocument::setNodeValue): Call DOMDocument::setNodeValue
757         instead of own setNodeValue.
758
759 2018-10-25  Antoine Quint  <graouts@apple.com>
760
761         [Web Animations] Turn Web Animations CSS Integration off by default
762         https://bugs.webkit.org/show_bug.cgi?id=190901
763
764         Reviewed by Dean Jackson.
765
766         * WebPreferences.cpp:
767         (WebPreferences::initializeDefaultSettings):
768
769 2018-10-21  Fujii Hironori  <Hironori.Fujii@sony.com>
770
771         [Win][Clang] WebView.h: warning: 'QueryInterface' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
772         https://bugs.webkit.org/show_bug.cgi?id=190744
773
774         Reviewed by Alex Christensen.
775
776         clang-cl reports compilation warnings for inconsistent 'override'
777         keyword usage.
778
779         WebView::flushPendingGraphicsLayerChanges is used only if USE(CA).
780         This can't be marked 'override' if !USE(CA).
781
782         * WebView.cpp:
783         (WebView::flushPendingGraphicsLayerChanges): Define flushPendingGraphicsLayerChanges only if USE(CA).
784         * WebView.h: Marked all overriding member function declarations of WebView 'override'.
785         Declare flushPendingGraphicsLayerChanges only if USE(CA).
786
787 2018-10-18  Alex Christensen  <achristensen@webkit.org>
788
789         Clean up FrameLoader two-state enums
790         https://bugs.webkit.org/show_bug.cgi?id=190731
791
792         Reviewed by Chris Dumez.
793
794         * WebCoreSupport/WebFrameLoaderClient.cpp:
795         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
796         * WebCoreSupport/WebFrameLoaderClient.h:
797
798 2018-10-17  Alex Christensen  <achristensen@webkit.org>
799
800         BackForwardClient needs to be able to support UIProcess-only back/forward lists
801         https://bugs.webkit.org/show_bug.cgi?id=190675
802
803         Reviewed by Chris Dumez.
804
805         * BackForwardList.cpp:
806         (BackForwardList::backItem):
807         (BackForwardList::currentItem):
808         (BackForwardList::forwardItem):
809         (BackForwardList::backListCount const):
810         (BackForwardList::forwardListCount const):
811         (BackForwardList::itemAtIndex):
812         * BackForwardList.h:
813
814 2018-10-16  Ryan Haddad  <ryanhaddad@apple.com>
815
816         Unreviewed attempt to fix the Windows build after r237112.
817
818         * Plugins/PluginView.cpp:
819         (WebCore::PluginView::performRequest):
820
821 2018-10-16  Alex Christensen  <achristensen@webkit.org>
822
823         Replace HistoryItem* with HistoryItem& where possible
824         https://bugs.webkit.org/show_bug.cgi?id=190617
825
826         Reviewed by Chris Dumez.
827
828         * BackForwardList.cpp:
829         (BackForwardList::goToItem):
830         * BackForwardList.h:
831         * WebBackForwardList.cpp:
832         (WebBackForwardList::goToItem):
833
834 2018-10-15  Alex Christensen  <achristensen@webkit.org>
835
836         Fix Windows build.
837
838         * WebView.cpp:
839         (WebView::loadBackForwardListFromOtherView):
840
841 2018-10-15  Alex Christensen  <achristensen@webkit.org>
842
843         Fix WinCairo build.
844
845         * WebView.cpp:
846         (WebView::backForwardList):
847
848 2018-10-15  Alex Christensen  <achristensen@webkit.org>
849
850         Modernize BackForwardClient.h
851         https://bugs.webkit.org/show_bug.cgi?id=190610
852
853         Reviewed by Chris Dumez.
854
855         * BackForwardList.cpp:
856         (BackForwardList::backListCount const):
857         (BackForwardList::forwardListCount const):
858         (BackForwardList::backListCount): Deleted.
859         (BackForwardList::forwardListCount): Deleted.
860         * BackForwardList.h:
861         * WebView.cpp:
862         (WebView::initWithFrame):
863         (WebView::backForwardList):
864
865 2018-10-15  Alex Christensen  <achristensen@webkit.org>
866
867         Remove unused WebView._globalHistoryItem
868         https://bugs.webkit.org/show_bug.cgi?id=190601
869
870         Reviewed by Chris Dumez.
871
872         * WebCoreSupport/WebFrameLoaderClient.cpp:
873         (WebFrameLoaderClient::updateGlobalHistoryItemForPage): Deleted.
874         * WebCoreSupport/WebFrameLoaderClient.h:
875         * WebView.cpp:
876         (WebView::globalHistoryItem):
877         (WebView::setGlobalHistoryItem): Deleted.
878         * WebView.h:
879
880 2018-10-15  Alex Christensen  <achristensen@webkit.org>
881
882         Remove unused parameters from FrameLoaderClient::createFrame
883         https://bugs.webkit.org/show_bug.cgi?id=190587
884
885         Reviewed by Chris Dumez.
886
887         * WebCoreSupport/WebFrameLoaderClient.cpp:
888         (WebFrameLoaderClient::createFrame):
889         * WebCoreSupport/WebFrameLoaderClient.h:
890
891 2018-10-15  Chris Dumez  <cdumez@apple.com>
892
893         Unreviewed Windows build fix after r237112.
894
895         * Plugins/PluginView.cpp:
896         (WebCore::PluginView::performRequest):
897         (WebCore::PluginView::load):
898
899 2018-10-15  Alex Christensen  <achristensen@webkit.org>
900
901         Remove InjectedBundle processing of back/forward lists
902         https://bugs.webkit.org/show_bug.cgi?id=190459
903
904         Reviewed by Chris Dumez.
905
906         * WebCoreSupport/WebFrameLoaderClient.cpp:
907         (WebFrameLoaderClient::shouldGoToHistoryItem const):
908         * WebCoreSupport/WebFrameLoaderClient.h:
909
910 2018-10-02  Alex Christensen  <achristensen@webkit.org>
911
912         Remove ParsedURLString
913         https://bugs.webkit.org/show_bug.cgi?id=190154
914
915         Reviewed by Chris Dumez.
916
917         * WebDownloadCurl.cpp:
918         (WebDownload::initWithRequest):
919         * WebURLResponse.cpp:
920         (WebURLResponse::createInstance):
921
922 2018-09-28  Chris Dumez  <cdumez@apple.com>
923
924         Drop support for cross-origin-window-policy header
925         https://bugs.webkit.org/show_bug.cgi?id=190081
926
927         Reviewed by Ryosuke Niwa.
928
929         * WebPreferenceKeysPrivate.h:
930         * WebPreferences.cpp:
931         (WebPreferences::initializeDefaultSettings):
932         (WebPreferences::crossOriginWindowPolicySupportEnabled):
933         (WebPreferences::setCrossOriginWindowPolicySupportEnabled):
934         * WebView.cpp:
935         (WebView::notifyPreferencesChanged):
936
937 2018-09-27  Antoine Quint  <graouts@apple.com>
938
939         [Web Animations] Turn Web Animations with CSS integration on
940         https://bugs.webkit.org/show_bug.cgi?id=184819
941         <rdar://problem/39597337>
942
943         Reviewed by Dean Jackson.
944
945         * WebPreferences.cpp:
946         (WebPreferences::initializeDefaultSettings):
947
948 2018-09-21  Alex Christensen  <achristensen@webkit.org>
949
950         Use a Variant for FormDataElement
951         https://bugs.webkit.org/show_bug.cgi?id=189777
952
953         Reviewed by Chris Dumez.
954
955         * WebMutableURLRequest.cpp:
956         (WebMutableURLRequest::setHTTPBody):
957
958 2018-09-17  Fujii Hironori  <Hironori.Fujii@sony.com>
959
960         [Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through variadic function
961         https://bugs.webkit.org/show_bug.cgi?id=189612
962
963         Reviewed by Alex Christensen.
964
965         Non-trivial types can't be used as aruguments of LOG_ERROR and
966         ASSERT_WITH_MESSAGE.
967
968         * DefaultPolicyDelegate.cpp:
969         (DefaultPolicyDelegate::unableToImplementPolicyWithError): Apply
970         static_cast<BSTR> to convert BString.
971         * WebLocalizableStrings.cpp:
972         (copyLocalizedStringFromBundle): Convert 'key' from WTF::String to
973         char* by using 'key.utf8().data()'.
974
975 2018-09-13  Ryan Haddad  <ryanhaddad@apple.com>
976
977         Unreviewed, rolling out r235953.
978
979         Caused layout test crashes under GuardMalloc.
980
981         Reverted changeset:
982
983         "Make GraphicsLayers ref-counted, so their tree can persist
984         when disconnected from RenderLayerBackings"
985         https://bugs.webkit.org/show_bug.cgi?id=189521
986         https://trac.webkit.org/changeset/235953
987
988 2018-09-12  Fujii Hironori  <Hironori.Fujii@sony.com>
989
990         [Win][Clang][WebKitLegacy] Fix compilation errors and warnings of WebPreferences.cpp
991         https://bugs.webkit.org/show_bug.cgi?id=189538
992
993         Reviewed by Per Arne Vollan.
994
995         * WebPreferences.cpp:
996         Changed the type of CFNumberTraits::Type from unsigned int to CFNumberType.
997         (WebPreferences::migrateWebKitPreferencesToCFPreferences):
998         Apply static_cast to the result of OR-ed CFPropertyListFormat.
999         (WebPreferences::screenFontSubstitutionEnabled):
1000         Assign false to the content of the out variable 'enabled', not assigning 0 to the variable.
1001
1002 2018-09-12  Fujii Hironori  <Hironori.Fujii@sony.com>
1003
1004         [Win][Clang][WebKitLegacy] error: 'static' is invalid in friend declarations
1005         https://bugs.webkit.org/show_bug.cgi?id=189539
1006
1007         Reviewed by Alex Christensen.
1008
1009         * WebCoreSupport/WebInspectorClient.h: Removed 'static' of WebInspectorWndProc friend declaration.
1010         * WebCoreSupport/WebInspectorClient.cpp:
1011         (WebInspectorWndProc): Ditto.
1012         * WebNodeHighlight.cpp: Added OverlayWndProc declaration to be called before the definition.
1013         * WebNodeHighlight.h: Removed 'static` of OverlayWndProc friend declaration.
1014
1015 2018-09-06  Wenson Hsieh  <wenson_hsieh@apple.com>
1016
1017         Refactor WebCore::EditAction to be an 8-bit enum class
1018         https://bugs.webkit.org/show_bug.cgi?id=189383
1019
1020         Reviewed by Dan Bernstein.
1021
1022         * WebCoreSupport/WebEditorClient.cpp:
1023         (undoNameForEditAction):
1024
1025 2018-09-04  Frederic Wang  <fwang@igalia.com>
1026
1027         Add basic support for ScrollIntoViewOptions
1028         https://bugs.webkit.org/show_bug.cgi?id=189258
1029
1030         Reviewed by Simon Fraser.
1031
1032         * DOMCoreClasses.cpp: Add ScrollIntoViewOptions header so that this file
1033         can build despite the new scrollIntoView function.
1034
1035 2018-08-31  Chris Dumez  <cdumez@apple.com>
1036
1037         Unreviewed Windows build fix after r235562.
1038
1039         * WebCoreSupport/WebFrameLoaderClient.cpp:
1040         (WebFrameLoaderClient::dispatchWillSubmitForm):
1041
1042 2018-08-31  Chris Dumez  <cdumez@apple.com>
1043
1044         Assertion hit in ~CompletionHandler() from ~WebFrame()
1045         https://bugs.webkit.org/show_bug.cgi?id=189199
1046         <rdar://problem/42657233>
1047
1048         Reviewed by Youenn Fablet.
1049
1050         * WebCoreSupport/WebFrameLoaderClient.cpp:
1051         (WebFrameLoaderClient::dispatchWillSubmitForm):
1052         * WebCoreSupport/WebFrameLoaderClient.h:
1053
1054 2018-08-31  Frederic Wang  <fwang@igalia.com>
1055
1056         Bug 182053 - [CSSOM View] Implement standard behavior for scrollingElement
1057         https://bugs.webkit.org/show_bug.cgi?id=182053
1058
1059         Reviewed by Simon Fraser.
1060
1061         Add developer flag to use standard behavior for scrolling* attributes.
1062
1063         * Interfaces/IWebPreferencesPrivate.idl:
1064         * WebPreferenceKeysPrivate.h:
1065         * WebPreferences.cpp:
1066         (WebPreferences::initializeDefaultSettings):
1067         (WebPreferences::CSSOMViewScrollingAPIEnabled):
1068         (WebPreferences::setCSSOMViewScrollingAPIEnabled):
1069         * WebPreferences.h:
1070         * WebView.cpp:
1071         (WebView::notifyPreferencesChanged):
1072
1073 2018-08-30  Don Olmstead  <don.olmstead@sony.com>
1074
1075         [CMake] Replace AVFoundationSupport.py using CMake
1076         https://bugs.webkit.org/show_bug.cgi?id=182891
1077
1078         Reviewed by Per Arne Vollan.
1079
1080         Remove references to the config.h contained in WebCore as it should
1081         not be accessible from outside of WebCore.
1082
1083         * WebKitPrefix.h:
1084
1085 2018-08-21  Wenson Hsieh  <wenson_hsieh@apple.com>
1086
1087         [Attachment Support] Augment _WKAttachment SPI to handle NSFileWrappers in addition to NSData
1088         https://bugs.webkit.org/show_bug.cgi?id=188496
1089         <rdar://problem/43216836>
1090
1091         Reviewed by Tim Horton.
1092
1093         Adjust for changing PromisedAttachmentInfo.h to forward declare WebCore::SharedBuffer rather than include the
1094         header directly.
1095
1096         * WebCoreSupport/WebDragClient.cpp:
1097
1098 2018-08-17  Alex Christensen  <achristensen@webkit.org>
1099
1100         Add some plumbing for safe browsing
1101         https://bugs.webkit.org/show_bug.cgi?id=188709
1102
1103         Reviewed by Tim Horton.
1104
1105         * WebCoreSupport/WebFrameLoaderClient.cpp:
1106         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1107         * WebCoreSupport/WebFrameLoaderClient.h:
1108
1109 2018-08-02  David Fenton  <david_fenton@apple.com>
1110
1111         Unreviewed, rolling out r234489.
1112
1113         Caused 50+ crashes and 60+ API failures on iOS
1114
1115         Reverted changeset:
1116
1117         "[WTF] Rename String::format to String::deprecatedFormat"
1118         https://bugs.webkit.org/show_bug.cgi?id=188191
1119         https://trac.webkit.org/changeset/234489
1120
1121 2018-08-01  Tomas Popela  <tpopela@redhat.com>
1122
1123         [WTF] Rename String::format to String::deprecatedFormat
1124         https://bugs.webkit.org/show_bug.cgi?id=188191
1125
1126         Reviewed by Darin Adler.
1127
1128         It should be replaced with string concatenation.
1129
1130         * FullscreenVideoController.cpp:
1131         (timeToString):
1132         * WebView.cpp:
1133         (webKitVersionString):
1134
1135 2018-07-30  Rob Buis  <rbuis@igalia.com>
1136
1137         https://bugs.webkit.org/show_bug.cgi?id=188137
1138         Merge PlatformCookieJar functions into NetworkStorageSession
1139
1140         Adapt callsites to use NetworkStorageSession instead of CookieJar functions.
1141
1142         Reviewed by Alex Christensen.
1143
1144         * WebCoreSupport/WebPlatformStrategies.cpp:
1145         (WebPlatformStrategies::cookiesForDOM):
1146         (WebPlatformStrategies::setCookiesFromDOM):
1147         (WebPlatformStrategies::cookiesEnabled):
1148         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1149         (WebPlatformStrategies::getRawCookies):
1150         (WebPlatformStrategies::deleteCookie):
1151         * WebPreferences.cpp:
1152         (WebPreferences::clearNetworkLoaderSession):
1153
1154 2018-07-26  Ross Kirsling  <ross.kirsling@sony.com>
1155
1156         String(View) should have a splitAllowingEmptyEntries function instead of a flag parameter
1157         https://bugs.webkit.org/show_bug.cgi?id=187963
1158
1159         Reviewed by Alex Christensen.
1160
1161         * Plugins/PluginPackageWin.cpp:
1162         (WebCore::PluginPackage::fetchInfo):
1163         Update split/splitAllowingEmptyEntries usage.
1164
1165 2018-07-18  Antoine Quint  <graouts@apple.com>
1166
1167         [Web Animations] Interpolation between font-styles with a keyword value should be discrete
1168         https://bugs.webkit.org/show_bug.cgi?id=187722
1169
1170         Reviewed by Myles Maxfield.
1171
1172         Use isItalic() since that function knows how to handle an std::optional<FontSelectionValue>.
1173
1174         * DOMCoreClasses.cpp:
1175         (DOMElement::font):
1176
1177 2018-07-10  Ryosuke Niwa  <rniwa@webkit.org>
1178
1179         Disable cross-origin-window-policy by default
1180         https://bugs.webkit.org/show_bug.cgi?id=187509
1181
1182         Reviewed by Chris Dumez.
1183
1184         * WebPreferences.cpp:
1185         (WebPreferences::initializeDefaultSettings):
1186
1187 2018-06-23  Yusuke Suzuki  <utatane.tea@gmail.com>
1188
1189         [WTF] Add user-defined literal for ASCIILiteral
1190         https://bugs.webkit.org/show_bug.cgi?id=186839
1191
1192         Reviewed by Darin Adler.
1193
1194         * Plugins/PluginStream.cpp:
1195         (WebCore::PluginStream::startStream):
1196         * WebCoreSupport/WebContextMenuClient.cpp:
1197         (WebContextMenuClient::searchWithGoogle):
1198
1199 2018-06-14  Basuke Suzuki  <Basuke.Suzuki@sony.com>
1200
1201         [Win] Fix build break after r232815 (SupportedPluginIdentifier)
1202         https://bugs.webkit.org/show_bug.cgi?id=186623
1203
1204         Reviewed by Youenn Fablet.
1205
1206         * WebCoreSupport/WebPluginInfoProvider.cpp:
1207         (WebPluginInfoProvider::pluginInfo):
1208         (WebPluginInfoProvider::webVisiblePluginInfo):
1209         * WebCoreSupport/WebPluginInfoProvider.h:
1210
1211 2018-06-13  Chris Dumez  <cdumez@apple.com>
1212
1213         PSON: http/tests/resourceLoadStatistics/classify-as-prevalent-based-on-top-frame-redirect-collusion.html ASSERTS with process swap enabled
1214         https://bugs.webkit.org/show_bug.cgi?id=186545
1215
1216         Reviewed by Brady Eidson.
1217
1218         Update client delegate now that parameter type has changed.
1219
1220         * WebCoreSupport/WebFrameLoaderClient.cpp:
1221         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1222         * WebCoreSupport/WebFrameLoaderClient.h:
1223
1224 2018-06-11  Chris Dumez  <cdumez@apple.com>
1225
1226         http/tests/security/cors-post-redirect-307.html fails with PSON enabled
1227         https://bugs.webkit.org/show_bug.cgi?id=186441
1228
1229         Reviewed by Brady Eidson.
1230
1231         Rename existing flag to something a bit more generic, now that it is used for
1232         more things than bypassing the navigation policy check.
1233
1234         * WebView.cpp:
1235         (WebView::goToBackForwardItem):
1236         (WebView::loadBackForwardListFromOtherView):
1237
1238 2018-06-04  Chris Dumez  <cdumez@apple.com>
1239
1240         Rename "Cross-Origin-Options" HTTP header to "Cross-Origin-Window-Policy"
1241         https://bugs.webkit.org/show_bug.cgi?id=186287
1242         <rdar://problem/40783352>
1243
1244         Reviewed by Youenn Fablet.
1245
1246         * Interfaces/IWebPreferencesPrivate.idl:
1247         * WebPreferenceKeysPrivate.h:
1248         * WebPreferences.cpp:
1249         (WebPreferences::initializeDefaultSettings):
1250         (WebPreferences::crossOriginWindowPolicySupportEnabled):
1251         (WebPreferences::setCrossOriginWindowPolicySupportEnabled):
1252         * WebPreferences.h:
1253         * WebView.cpp:
1254         (WebView::notifyPreferencesChanged):
1255
1256 2018-05-30  Yusuke Suzuki  <utatane.tea@gmail.com>
1257
1258         [JSC] Pass VM& parameter as much as possible
1259         https://bugs.webkit.org/show_bug.cgi?id=186085
1260
1261         Reviewed by Saam Barati.
1262
1263         * Plugins/PluginPackage.cpp:
1264         (WebCore::NPN_Invoke):
1265
1266 2018-05-30  Fujii Hironori  <Hironori.Fujii@sony.com>
1267
1268         REGRESSION(r232316) [Win] error C2039: 'event': is not a member of 'WebCore::NavigationAction'
1269         https://bugs.webkit.org/show_bug.cgi?id=186125
1270
1271         Unreviewed build fix
1272
1273         * WebActionPropertyBag.cpp:
1274         (WebActionPropertyBag::Read):
1275         (findMouseEvent): Deleted.
1276
1277 2018-05-27  Fujii Hironori  <Hironori.Fujii@sony.com>
1278
1279         REGRESSION(r232198) [WinCairo] cannot convert from 'WTF::StringView' to 'const WTF::String'
1280         https://bugs.webkit.org/show_bug.cgi?id=186027
1281
1282         Unreviewed build fix
1283
1284         * WebMutableURLRequest.cpp:
1285         (WebMutableURLRequest::setAllowsAnyHTTPSCertificate):
1286         (WebMutableURLRequest::setClientCertificate):
1287
1288 2018-05-25  Chris Dumez  <cdumez@apple.com>
1289
1290         Minor ApplicationCacheStorage clean up
1291         https://bugs.webkit.org/show_bug.cgi?id=185984
1292
1293         Reviewed by Youenn Fablet.
1294
1295         * WebApplicationCache.cpp:
1296         (WebApplicationCache::originsWithCache):
1297
1298 2018-05-24  Chris Dumez  <cdumez@apple.com>
1299
1300         Reduce copying of FontCascadeDescription objects by moving them around
1301         https://bugs.webkit.org/show_bug.cgi?id=185963
1302
1303         Reviewed by Simon Fraser.
1304
1305         Reduce copying of FontCascadeDescription objects by moving them around when possible.
1306
1307         * FullscreenVideoController.cpp:
1308         (FullscreenVideoController::draw):
1309
1310 2018-05-15  Antoine Quint  <graouts@apple.com>
1311
1312         [Web Animations] Expose Web Animations CSS integration as an experimental feature
1313         https://bugs.webkit.org/show_bug.cgi?id=185647
1314
1315         Reviewed by Dean Jackson.
1316
1317         Rename the Web Animations CSS integration flag.
1318
1319         * Interfaces/IWebPreferencesPrivate.idl:
1320         * WebPreferenceKeysPrivate.h:
1321         * WebPreferences.cpp:
1322         (WebPreferences::initializeDefaultSettings):
1323         (WebPreferences::webAnimationsCSSIntegrationEnabled):
1324         (WebPreferences::setWebAnimationsCSSIntegrationEnabled):
1325         (WebPreferences::cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled): Deleted.
1326         (WebPreferences::setCSSAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled): Deleted.
1327         * WebPreferences.h:
1328         * WebView.cpp:
1329         (WebView::notifyPreferencesChanged):
1330
1331 2018-05-10  Fujii Hironori  <Hironori.Fujii@sony.com>
1332
1333         REGRESSION(r231622) [Win] Crashes for null dereference of prefsPrivate in WebView::notifyPreferencesChanged
1334         https://bugs.webkit.org/show_bug.cgi?id=185505
1335
1336         Unreviewed serious crash fix
1337
1338         Windows port crashes soon since Bug 184996.
1339
1340         * WebPreferences.cpp:
1341         (WebPreferences::QueryInterface): Added IID_IWebPreferencesPrivate7.
1342         * WebPreferences.h: Inherit IWebPreferencesPrivate7 instead of IWebPreferencesPrivate6.
1343
1344 2018-05-07  Daniel Bates  <dabates@apple.com>
1345
1346         Substitute CrossOriginPreflightResultCache::clear() for CrossOriginPreflightResultCache::empty()
1347         https://bugs.webkit.org/show_bug.cgi?id=185170
1348
1349         Reviewed by Per Arne Vollan.
1350
1351         * WebCache.cpp:
1352         (WebCache::empty):
1353
1354 2018-04-27  Chris Dumez  <cdumez@apple.com>
1355
1356         Use WindowProxy instead of DOMWindow in our IDL
1357         https://bugs.webkit.org/show_bug.cgi?id=185022
1358
1359         Reviewed by Sam Weinig.
1360
1361         * DOMCoreClasses.cpp:
1362         (DOMDocument::getComputedStyle):
1363
1364 2018-04-23  Daniel Bates  <dabates@apple.com>
1365
1366         Implement Same-Site cookies
1367         https://bugs.webkit.org/show_bug.cgi?id=159464
1368         <rdar://problem/27196358>
1369
1370         Reviewed by Brent Fulgham.
1371
1372         Pass the Same-Site info through the strategy.
1373
1374         * WebCoreSupport/WebPlatformStrategies.cpp:
1375         (WebPlatformStrategies::cookiesForDOM):
1376         (WebPlatformStrategies::setCookiesFromDOM):
1377         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1378         (WebPlatformStrategies::getRawCookies):
1379         * WebCoreSupport/WebPlatformStrategies.h:
1380
1381 2018-04-23  Daniel Bates  <dabates@apple.com>
1382
1383         Implement Same-Site cookies
1384         https://bugs.webkit.org/show_bug.cgi?id=159464
1385         <rdar://problem/27196358>
1386
1387         Reviewed by Brent Fulgham.
1388
1389         Pass the Same-Site info through the strategy.
1390
1391         * WebCoreSupport/WebPlatformStrategies.cpp:
1392         (WebPlatformStrategies::cookiesForDOM):
1393         (WebPlatformStrategies::setCookiesFromDOM):
1394         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
1395         (WebPlatformStrategies::getRawCookies):
1396         * WebCoreSupport/WebPlatformStrategies.h:
1397
1398 2018-04-20  Youenn Fablet  <youenn@apple.com>
1399
1400         Make PluginData cache its web visible plugins
1401         https://bugs.webkit.org/show_bug.cgi?id=184421
1402
1403         Reviewed by Chris Dumez.
1404
1405         * WebCoreSupport/WebPluginInfoProvider.cpp:
1406         (WebPluginInfoProvider::pluginInfo):
1407         (WebPluginInfoProvider::webVisiblePluginInfo):
1408         * WebCoreSupport/WebPluginInfoProvider.h:
1409
1410 2018-04-19  Chris Dumez  <cdumez@apple.com>
1411
1412         Rename JSDOMWindowProxy to JSWindowProxy
1413         https://bugs.webkit.org/show_bug.cgi?id=184797
1414
1415         Reviewed by Sam Weinig.
1416
1417         Rename JSDOMWindowProxy to JSWindowProxy for consistency with WindowProxy.
1418
1419         * WebFrame.cpp:
1420         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
1421
1422 2018-04-17  Jonathan Bedard  <jbedard@apple.com>
1423
1424         Unreviewed rollout of r230632. Regression in memory usage.
1425
1426         That bug tracked in https://bugs.webkit.org/show_bug.cgi?id=184569.
1427
1428         * WebPreferences.cpp:
1429         (WebPreferences::initializeDefaultSettings):
1430
1431 2018-04-17  Chris Dumez  <cdumez@apple.com>
1432
1433         Unreviewed attempt to fix the Windows build after r230721
1434
1435         * WebCoreSupport/WebFrameLoaderClient.cpp:
1436         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1437
1438 2018-04-17  Chris Dumez  <cdumez@apple.com>
1439
1440         REGRESSION (r229831): CMD-clicking an iCloud web app link unexpectedly opens that link in a new tab and the current tab
1441         https://bugs.webkit.org/show_bug.cgi?id=184678
1442         <rdar://problem/39422122>
1443
1444         Reviewed by Alex Christensen.
1445
1446         Add new parameter to dispatchDecidePolicyForNavigationAction.
1447
1448         * WebCoreSupport/WebFrameLoaderClient.cpp:
1449         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1450         * WebCoreSupport/WebFrameLoaderClient.h:
1451
1452 2018-04-12  Antoine Quint  <graouts@apple.com>
1453
1454         [Web Animations] Turn CSS Animations and CSS Transitions as Web Animations on by default
1455         https://bugs.webkit.org/show_bug.cgi?id=184569
1456         <rdar://problem/38671301>
1457
1458         Reviewed by Jon Lee.
1459
1460         Make sure Web Animations and CSS Animations and CSS Transitions are enabled by default on Windows.
1461
1462         * WebPreferences.cpp:
1463
1464 2018-04-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1465
1466         [WTF] Remove StaticLock
1467         https://bugs.webkit.org/show_bug.cgi?id=184332
1468
1469         Reviewed by Mark Lam.
1470
1471         * WebKitQuartzCoreAdditions/CAView.cpp:
1472         (WKQCA::CAView::releaseAllD3DResources):
1473         * WebLocalizableStrings.cpp:
1474
1475 2018-04-03  Chris Dumez  <cdumez@apple.com>
1476
1477         Drop MainFrame class
1478         https://bugs.webkit.org/show_bug.cgi?id=184191
1479
1480         Reviewed by Darin Adler.
1481
1482         Drop MainFrame class and move contents into Page / Frame since there is a 1:1
1483         relationship between the Page and the MainFrame.
1484
1485         This is ground work for introducing LocalFrame / RemoteFrame concepts.
1486
1487         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1488         * WebCoreSupport/WebContextMenuClient.cpp:
1489         * WebCoreSupport/WebDragClient.cpp:
1490         * WebDropSource.cpp:
1491         * WebFrame.cpp:
1492         * WebView.cpp:
1493
1494 2018-03-26  Chris Dumez  <cdumez@apple.com>
1495
1496         Use SecurityOriginData more consistently in Service Worker code
1497         https://bugs.webkit.org/show_bug.cgi?id=183969
1498
1499         Reviewed by Darin Adler.
1500
1501         Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
1502
1503         * WebDatabaseManager.cpp:
1504         (WebDatabaseManager::databasesWithOrigin):
1505         (WebDatabaseManager::deleteOrigin):
1506         (WebDatabaseManager::deleteDatabase):
1507         (WebDatabaseManager::setQuota):
1508         * WebSecurityOrigin.cpp:
1509         (WebSecurityOrigin::usage):
1510         (WebSecurityOrigin::quota):
1511         (WebSecurityOrigin::setQuota):
1512
1513 2018-03-26  Brent Fulgham  <bfulgham@apple.com>
1514
1515         Warn against cookie access in the WebContent process using ProcessPrivilege assertions
1516         https://bugs.webkit.org/show_bug.cgi?id=183911
1517         <rdar://problem/38762306>
1518
1519         Reviewed by Youenn Fablet.
1520
1521         Initialize the ProcessPrivilege and Cookie API access levels for single-process use.
1522
1523         * WebView.cpp:
1524         (WebView::WebView):
1525
1526 2018-03-25  Commit Queue  <commit-queue@webkit.org>
1527
1528         Unreviewed, rolling out r229954.
1529         https://bugs.webkit.org/show_bug.cgi?id=184000
1530
1531         Caused many layout tests to crash on Apple High Sierra,
1532         Sierra, iOS Simulator and GTK Linux Debug test bots (Requested
1533         by dydz on #webkit).
1534
1535         Reverted changeset:
1536
1537         "Use SecurityOriginData more consistently in Service Worker
1538         code"
1539         https://bugs.webkit.org/show_bug.cgi?id=183969
1540         https://trac.webkit.org/changeset/229954
1541
1542 2018-03-24  Chris Dumez  <cdumez@apple.com>
1543
1544         Use SecurityOriginData more consistently in Service Worker code
1545         https://bugs.webkit.org/show_bug.cgi?id=183969
1546
1547         Reviewed by Darin Adler.
1548
1549         Use SecurityOrigin::data() instead of SecurityOriginData::fromSecurityOrigin().
1550
1551         * WebDatabaseManager.cpp:
1552         (WebDatabaseManager::databasesWithOrigin):
1553         (WebDatabaseManager::deleteOrigin):
1554         (WebDatabaseManager::deleteDatabase):
1555         (WebDatabaseManager::setQuota):
1556         * WebSecurityOrigin.cpp:
1557         (WebSecurityOrigin::usage):
1558         (WebSecurityOrigin::quota):
1559         (WebSecurityOrigin::setQuota):
1560
1561 2018-03-23  Chris Dumez  <cdumez@apple.com>
1562
1563         Unreviewed attempt to fix Windows build after r229926.
1564
1565         * WebView.cpp:
1566
1567 2018-03-23  Brady Eidson  <beidson@apple.com>
1568
1569         Go to back/forward list items after a process-swapped navigation.
1570         <rdar://problem/38690544> and https://bugs.webkit.org/show_bug.cgi?id=183920
1571
1572         Reviewed by Andy Estes.
1573
1574         * WebView.cpp:
1575         (WebView::goToBackForwardItem):
1576         (WebView::loadBackForwardListFromOtherView):
1577
1578 2018-03-23  Miguel Gomez  <magomez@igalia.com>
1579
1580         [GTK][WPE] Avoid software color conversion inside BitmapTextureGL
1581         https://bugs.webkit.org/show_bug.cgi?id=183892
1582
1583         Remove the UpdateContentsFlag parameter as it's not used anymore.
1584
1585         Reviewed by Žan Doberšek.
1586
1587         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1588         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
1589
1590 2018-03-15  Yousuke Kimoto  <yousuke.kimoto@sony.com>
1591
1592         [WinCairo] Fix build errors when ENABLE_NETSCAPE_PLUGIN_API is turned off
1593         https://bugs.webkit.org/show_bug.cgi?id=183335
1594
1595         Reviewed by Alex Christensen.
1596
1597         * Plugins/PluginDatabaseWin.cpp:
1598         * Plugins/PluginMessageThrottlerWin.cpp:
1599         (WebCore::PluginMessageThrottlerWin::processQueuedMessage):
1600         * Plugins/PluginPackageWin.cpp:
1601         (WebCore::PluginPackage::load):
1602         * Plugins/PluginView.h:
1603         * Plugins/PluginViewWin.cpp:
1604         * Plugins/npapi.cpp:
1605         * WebCoreSupport/WebFrameLoaderClient.cpp:
1606         (WebFrameLoaderClient::createPlugin):
1607         (WebFrameLoaderClient::createJavaAppletWidget):
1608         * WebView.cpp:
1609         (WebView::WebViewWndProc):
1610
1611 2018-03-13  Ross Kirsling  <ross.kirsling@sony.com>
1612
1613         [Win] Layout Test fast/html/menuitem-element.html is failing.
1614         https://bugs.webkit.org/show_bug.cgi?id=179299
1615
1616         Reviewed by Per Arne Vollan.
1617
1618         * Interfaces/IWebPreferencesPrivate.idl:
1619         * WebPreferenceKeysPrivate.h:
1620         * WebPreferences.cpp:
1621         (WebPreferences::menuItemElementEnabled):
1622         (WebPreferences::setMenuItemElementEnabled):
1623         * WebPreferences.h:
1624         * WebView.cpp:
1625         (WebView::notifyPreferencesChanged):
1626         Add private web preference "menuItemElementEnabled".
1627
1628 2018-03-12  Antoine Quint  <graouts@apple.com>
1629
1630         [Web Animations] Implement CSS Animations and CSS Transitions as Web Animations
1631         https://bugs.webkit.org/show_bug.cgi?id=183504
1632         <rdar://problem/38372965>
1633
1634         Reviewed by Dean Jackson and Jon Lee.
1635
1636         Add the missing WebKitLegacy support the cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled flag
1637         which is required for the matching <!-- webkit-test-runner --> flag to work in DumpRenderTree.
1638
1639         * Interfaces/IWebPreferencesPrivate.idl:
1640         * WebPreferences.cpp:
1641         (WebPreferences::cssAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled):
1642         (WebPreferences::setCSSAnimationsAndCSSTransitionsBackedByWebAnimationsEnabled):
1643         * WebPreferenceKeysPrivate.h
1644         * WebPreferences.h:
1645         * WebView.cpp:
1646         (WebView::notifyPreferencesChanged):
1647
1648 2018-03-08  Yusuke Suzuki  <utatane.tea@gmail.com>
1649
1650         [JSC] Add inherits<T>(VM&) leveraging JSCast fast path
1651         https://bugs.webkit.org/show_bug.cgi?id=183429
1652
1653         Reviewed by Mark Lam.
1654
1655         * WebFrame.cpp:
1656         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
1657
1658 2018-03-08  Tim Horton  <timothy_horton@apple.com>
1659
1660         Stop linking ApplicationServices directly
1661         https://bugs.webkit.org/show_bug.cgi?id=182867
1662         <rdar://problem/38252142>
1663
1664         Reviewed by Alex Christensen.
1665
1666         The frameworks that we use that live inside ApplicationServices
1667         have mostly moved out, so import them directly.
1668
1669         * FullscreenVideoController.cpp:
1670
1671 2018-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1672
1673         Fix std::make_unique / new[] using system malloc
1674         https://bugs.webkit.org/show_bug.cgi?id=182975
1675
1676         Reviewed by JF Bastien.
1677
1678         Use Vector instead.
1679
1680         * MarshallingHelpers.cpp:
1681         (MarshallingHelpers::safeArrayToStringArray):
1682         (MarshallingHelpers::safeArrayToIntArray):
1683         * Plugins/PluginPackageWin.cpp:
1684         (WebCore::PluginPackage::fetchInfo):
1685         * WebPreferences.cpp:
1686         (WebPreferences::copyWebKitPreferencesToCFPreferences):
1687         * WebView.cpp:
1688         (WebView::onMenuCommand):
1689
1690 2018-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
1691
1692         [WTF] Move currentCPUTime and sleep(Seconds) to CPUTime.h and Seconds.h respectively
1693         https://bugs.webkit.org/show_bug.cgi?id=183312
1694
1695         Reviewed by Mark Lam.
1696
1697         Remove wtf/CurrentTime.h include pragma.
1698
1699         * WebDownload.cpp:
1700         * WebDownloadCFNet.cpp:
1701         * WebDropSource.cpp:
1702
1703 2018-03-01  Yusuke Suzuki  <utatane.tea@gmail.com>
1704
1705         Remove monotonicallyIncreasingTime
1706         https://bugs.webkit.org/show_bug.cgi?id=182911
1707
1708         Reviewed by Michael Catanzaro.
1709
1710         * FullscreenVideoController.cpp:
1711         (FullscreenVideoController::LayerClient::platformCALayerAnimationStarted):
1712         * Plugins/PluginMessageThrottlerWin.cpp:
1713         (WebCore::PluginMessageThrottlerWin::PluginMessageThrottlerWin):
1714         (WebCore::PluginMessageThrottlerWin::appendMessage):
1715         * Plugins/PluginMessageThrottlerWin.h:
1716         * WebView.cpp:
1717         (WebView::notifyAnimationStarted):
1718         * WebView.h:
1719
1720 2018-03-01  Ross Kirsling  <ross.kirsling@sony.com>
1721
1722         [Win][DRT] Implement setSpatialNavigationEnabled.
1723         https://bugs.webkit.org/show_bug.cgi?id=183166
1724
1725         Reviewed by Per Arne Vollan.
1726
1727         Create a non-dummy implementation of the private preference in Win WKL to support layout tests.
1728
1729         * Interfaces/IWebPreferencesPrivate.idl:
1730         * WebPreferenceKeysPrivate.h:
1731         * WebPreferences.cpp:
1732         (WebPreferences::initializeDefaultSettings):
1733         (WebPreferences::spatialNavigationEnabled):
1734         (WebPreferences::setSpatialNavigationEnabled):
1735         * WebPreferences.h:
1736         * WebView.cpp:
1737         (WebView::notifyPreferencesChanged):
1738
1739 2018-02-28  Alex Christensen  <achristensen@webkit.org>
1740
1741         Reduce use of NetworkingContext in WebKit
1742         https://bugs.webkit.org/show_bug.cgi?id=183213
1743
1744         Reviewed by Brady Eidson.
1745
1746         * Plugins/PluginView.cpp:
1747         (WebCore::PluginView::getValueForURL):
1748
1749 2018-02-26  Don Olmstead  <don.olmstead@sony.com>
1750
1751         Fix WebCore includes within WebKitLegacy
1752         https://bugs.webkit.org/show_bug.cgi?id=183147
1753
1754         Reviewed by Tim Horton.
1755
1756         * Plugins/PluginDatabase.cpp:
1757         * Plugins/PluginDatabaseWin.cpp:
1758         * Plugins/PluginDebug.cpp:
1759         * Plugins/PluginDebug.h:
1760         * Plugins/PluginMainThreadScheduler.cpp:
1761         * Plugins/PluginMessageThrottlerWin.cpp:
1762         * Plugins/PluginMessageThrottlerWin.h:
1763         * Plugins/PluginPackage.cpp:
1764         * Plugins/PluginPackage.h:
1765         * Plugins/PluginPackageWin.cpp:
1766         * Plugins/PluginStream.cpp:
1767         * Plugins/PluginStream.h:
1768         * Plugins/PluginView.cpp:
1769         * Plugins/PluginView.h:
1770         * Plugins/PluginViewWin.cpp:
1771         * Plugins/npapi.cpp:
1772         * WebCoreSupport/WebChromeClient.cpp:
1773         * WebCoreSupport/WebContextMenuClient.cpp:
1774         * WebCoreSupport/WebFrameLoaderClient.cpp:
1775         * WebCoreSupport/WebInspectorClient.cpp:
1776         * WebCoreSupport/WebPlatformStrategies.cpp:
1777         * WebFrame.cpp:
1778         * WebKitMessageLoop.cpp:
1779         * WebView.cpp:
1780         * storage/WebDatabaseProvider.cpp:
1781
1782 2018-02-22  Yusuke Suzuki  <utatane.tea@gmail.com>
1783
1784         Remove currentTime() / currentTimeMS()
1785         https://bugs.webkit.org/show_bug.cgi?id=183052
1786
1787         Reviewed by Mark Lam.
1788
1789         * WebCoreSupport/WebFrameLoaderClient.cpp:
1790         (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
1791         * WebCoreSupport/WebFrameLoaderClient.h:
1792         * WebDownload.h:
1793         * WebDownloadCFNet.cpp:
1794         (WebDownload::didStart):
1795         (WebDownload::didReceiveData):
1796         (WebDownload::didFinish):
1797
1798 2018-02-21  Don Olmstead  <don.olmstead@sony.com>
1799
1800         [CMake][Win] Use cmakeconfig.h rather than config.h and Platform.h
1801         https://bugs.webkit.org/show_bug.cgi?id=182883
1802
1803         Reviewed by Per Arne Vollan.
1804
1805         * WebKitPrefix.h:
1806
1807 2018-02-16  Dean Jackson  <dino@apple.com>
1808
1809         Use OPENGL macros to be more clear about which OpenGL/ES WebGL uses on Cocoa
1810         https://bugs.webkit.org/show_bug.cgi?id=182894
1811
1812         Reviewed by Tim Horton.
1813
1814         Rename OPENGL_ES_2 to OPENGL_ES.
1815
1816         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1817
1818 2018-02-16  Youenn Fablet  <youenn@apple.com>
1819
1820         Allow specifying which plug-ins are supported
1821         https://bugs.webkit.org/show_bug.cgi?id=182748
1822
1823         Reviewed by Chris Dumez.
1824
1825         * WebCoreSupport/WebPluginInfoProvider.cpp:
1826         (WebPluginInfoProvider::getPluginInfo):
1827         * WebCoreSupport/WebPluginInfoProvider.h:
1828
1829 2018-02-15  Don Olmstead  <don.olmstead@sony.com>
1830
1831         WebCore headers should not be included relatively within dependent projects
1832         https://bugs.webkit.org/show_bug.cgi?id=182805
1833
1834         Reviewed by Chris Dumez.
1835
1836         * FullscreenVideoController.h:
1837
1838 2018-02-13  Commit Queue  <commit-queue@webkit.org>
1839
1840         Unreviewed, rolling out r228431.
1841         https://bugs.webkit.org/show_bug.cgi?id=182766
1842
1843         Regressed CMake build stability (Requested by dolmstead on
1844         #webkit).
1845
1846         Reverted changeset:
1847
1848         "[CMake] Make WebCore headers copies"
1849         https://bugs.webkit.org/show_bug.cgi?id=182512
1850         https://trac.webkit.org/changeset/228431
1851
1852 2018-02-13  Don Olmstead  <don.olmstead@sony.com>
1853
1854         [CMake] Make WebCore headers copies
1855         https://bugs.webkit.org/show_bug.cgi?id=182512
1856
1857         Reviewed by Keith Miller.
1858
1859         * FullscreenVideoController.h:
1860         * Plugins/PluginDatabase.cpp:
1861         * Plugins/PluginDatabaseWin.cpp:
1862         * Plugins/PluginDebug.cpp:
1863         * Plugins/PluginMainThreadScheduler.cpp:
1864         * Plugins/PluginMessageThrottlerWin.cpp:
1865         * Plugins/PluginPackage.cpp:
1866         * Plugins/PluginPackageWin.cpp:
1867         * Plugins/PluginStream.cpp:
1868         * Plugins/PluginView.cpp:
1869         * Plugins/PluginViewWin.cpp:
1870         * Plugins/npapi.cpp:
1871         * WebKitMessageLoop.cpp:
1872         * WebKitPrefix.h:
1873         * storage/WebDatabaseProvider.cpp:
1874
1875 2018-01-13  Darin Adler  <darin@apple.com>
1876
1877         Event improvements
1878         https://bugs.webkit.org/show_bug.cgi?id=179591
1879
1880         Reviewed by Chris Dumez.
1881
1882         * Plugins/PluginView.cpp: Removed include of ScriptValue.h.
1883         * WebFrame.cpp: Ditto.
1884
1885         * WebScriptWorld.cpp:
1886         (WebScriptWorld::scriptWorldForGlobalContext): Pass reference to currentWorld.
1887
1888         * WebView.cpp: Removed include of ScriptValue.h.
1889         (WebView::handleEditingKeyboardEvent): Updated for name change from
1890         keyEvent to underlyingPlatformEvent.
1891
1892 2018-02-06  Don Olmstead  <don.olmstead@sony.com>
1893
1894         Remove WebCore/ForwardingHeaders directory
1895         https://bugs.webkit.org/show_bug.cgi?id=182347
1896
1897         Reviewed by Keith Miller.
1898
1899         * Plugins/PluginView.cpp:
1900         * Plugins/PluginViewWin.cpp:
1901         * WebCoreSupport/WebInspectorClient.cpp:
1902         * WebCoreSupport/WebInspectorClient.h:
1903         * WebFrame.cpp:
1904         * WebJavaScriptCollector.cpp:
1905         * WebView.cpp:
1906
1907 2018-01-24  Wenson Hsieh  <wenson_hsieh@apple.com>
1908
1909         Unreviewed, another attempt to fix the Windows build after r227479.
1910
1911         * WebFrame.cpp:
1912         (WebFrame::elementWithName):
1913
1914 2018-01-24  Wenson Hsieh  <wenson_hsieh@apple.com>
1915
1916         Unreviewed, try to fix the Windows build after r227479.
1917
1918         Tweak some Windows WebKitLegacy code to use updated HTMLFormElement methods.
1919
1920         * WebFrame.cpp:
1921         (WebFrame::elementWithName):
1922         (WebFrame::controlsInForm):
1923
1924 2018-01-19  Per Arne Vollan  <pvollan@apple.com>
1925
1926         [Win] Compile error: 'WebKitQuartzCoreAdditionsBase.h' not found.
1927         https://bugs.webkit.org/show_bug.cgi?id=181859
1928         <rdar://problem/36659886>
1929
1930         Reviewed by Alex Christensen.
1931         
1932         Use local include patch.
1933
1934         * WebKitQuartzCoreAdditions/API/WKCACFImage.h:
1935         * WebKitQuartzCoreAdditions/API/WKCACFView.h:
1936         * WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h:
1937
1938 2018-01-17  Youenn Fablet  <youenn@apple.com>
1939
1940         Put fetch Request.keepalive behind a runtime flag
1941         https://bugs.webkit.org/show_bug.cgi?id=181592
1942
1943         Reviewed by Chris Dumez.
1944
1945         * WebPreferences.cpp:
1946         (WebPreferences::fetchAPIKeepAliveEnabled):
1947         (WebPreferences::setFetchAPIKeepAliveEnabled):
1948         * WebPreferences.h:
1949         * WebView.cpp:
1950         (WebView::notifyPreferencesChanged):
1951
1952 2018-01-17  Wenson Hsieh  <wenson_hsieh@apple.com>
1953
1954         Add injected bundle SPI to replace subresource URLs when dropping or pasting rich content
1955         https://bugs.webkit.org/show_bug.cgi?id=181637
1956         <rdar://problem/36508471>
1957
1958         Reviewed by Tim Horton.
1959
1960         Add a stub implementation of replacementURLForResource. See WebCore and WebKit ChangeLogs for more detail.
1961
1962         * WebCoreSupport/WebEditorClient.cpp:
1963         (WebEditorClient::replacementURLForResource):
1964         * WebCoreSupport/WebEditorClient.h:
1965
1966 2017-12-28  Yusuke Suzuki  <utatane.tea@gmail.com>
1967
1968         Remove std::chrono completely
1969         https://bugs.webkit.org/show_bug.cgi?id=181186
1970
1971         Reviewed by Alex Christensen.
1972
1973         * Plugins/PluginStream.cpp:
1974         (WebCore::lastModifiedDateMS):
1975
1976 2018-01-02  Fujii Hironori  <Hironori.Fujii@sony.com>
1977
1978         [Win] Web Inspector: Wrongly placed inspector highlight in HiDPI
1979         https://bugs.webkit.org/show_bug.cgi?id=181173
1980
1981         Reviewed by Alex Christensen.
1982
1983         * WebNodeHighlight.cpp:
1984         (WebNodeHighlight::update): Scale the GraphicsContext.
1985
1986 2017-12-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
1987
1988         REGRESSION(r225769): Build error with constexpr std::max // std::min in libdstdc++4
1989         https://bugs.webkit.org/show_bug.cgi?id=181160
1990
1991         Reviewed by Myles C. Maxfield.
1992
1993         * Plugins/PluginView.cpp:
1994         (WebCore::PluginView::handlePost): Disambiguate usage of min (Use the version from stdlib).
1995
1996 2017-12-21  Jeremy Jones  <jeremyj@apple.com>
1997
1998         Enable picture-in-picture from inline element on suspend.
1999         https://bugs.webkit.org/show_bug.cgi?id=180942
2000         rdar://problem/34745234
2001
2002         Reviewed by Jer Noble.
2003
2004         Update signature of enterVideoFullscreenForVideoElement.
2005
2006         * WebCoreSupport/WebChromeClient.cpp:
2007         (WebChromeClient::enterVideoFullscreenForVideoElement):
2008         * WebCoreSupport/WebChromeClient.h:
2009
2010 2017-12-18  Fujii Hironori  <Hironori.Fujii@sony.com>
2011
2012         [Win] SHOULD NEVER BE REACHED in WebFrameLoaderClient::pageID
2013         https://bugs.webkit.org/show_bug.cgi?id=180926
2014
2015         Reviewed by Tim Horton.
2016
2017         Apply the same change of mac/WebCoreSupport/WebFrameLoaderClient.mm
2018         of r225934 to win/WebCoreSupport/WebFrameLoaderClient.cpp.
2019
2020         * WebCoreSupport/WebFrameLoaderClient.cpp:
2021         (WebFrameLoaderClient::frameID const): Removed RELEASE_ASSERT_NOT_REACHED.
2022         (WebFrameLoaderClient::pageID const): Ditto.
2023
2024 2017-12-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2025
2026         Remove unnecessary boolean result of start() functions
2027         https://bugs.webkit.org/show_bug.cgi?id=180856
2028
2029         Reviewed by Darin Adler.
2030
2031         It always returns true.
2032
2033         * WebDownloadCurl.cpp:
2034         (WebDownload::start):
2035
2036 2017-12-14  John Wilander  <wilander@apple.com>
2037
2038         Storage Access API: Implement frame-specific access in the document.cookie layer
2039         https://bugs.webkit.org/show_bug.cgi?id=180682
2040         <rdar://problem/35982257>
2041
2042         Reviewed by Alex Christensen.
2043
2044         CookiesStrategy::cookiesForDOM(), CookiesStrategy::setCookiesFromDOM(),
2045         CookiesStrategy::cookieRequestHeaderFieldValue(), and
2046         CookiesStrategy::getRawCookies() now take optional parameters for
2047         frameID and pageID to allow frame-specific scoping of cookies.
2048
2049         This change makes the return values of FrameLoaderClient::frameID()
2050         and FrameLoaderClient::pageID() std::optional<uint64_t> so that
2051         WebCore can call those getters and get the right return values in
2052         WebKit and std:nullopt in WebKitLegacy.
2053
2054         * WebCoreSupport/WebFrameLoaderClient.cpp:
2055         (WebFrameLoaderClient::pageID const):
2056         (WebFrameLoaderClient::frameID const):
2057             Now return an optional.
2058         * WebCoreSupport/WebFrameLoaderClient.h:
2059         * WebCoreSupport/WebPlatformStrategies.cpp:
2060         (WebPlatformStrategies::cookiesForDOM):
2061         (WebPlatformStrategies::setCookiesFromDOM):
2062         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
2063         (WebPlatformStrategies::getRawCookies):
2064         * WebCoreSupport/WebPlatformStrategies.h:
2065
2066 2017-12-12  Yusuke Suzuki  <utatane.tea@gmail.com>
2067
2068         [WTF] Thread::create should have Thread::tryCreate
2069         https://bugs.webkit.org/show_bug.cgi?id=180333
2070
2071         Reviewed by Darin Adler.
2072
2073         * WebKitQuartzCoreAdditions/CVDisplayLink.cpp:
2074         (WKQCA::CVDisplayLink::start):
2075
2076 2017-12-08  Yusuke Suzuki  <utatane.tea@gmail.com>
2077
2078         Use StaticLock and Lock instead of Mutex in Windows WebKitLegacy
2079         https://bugs.webkit.org/show_bug.cgi?id=180572
2080
2081         Reviewed by Mark Lam.
2082
2083         Use StaticLock and drop DEPRECATED_DEFINE_STATIC_LOCAL.
2084         Also we use Lock instead of Mutex.
2085
2086         * WebKitQuartzCoreAdditions/CAD3DRenderer.cpp:
2087         (WKQCA::CAD3DRenderer::swapChain):
2088         (WKQCA::CAD3DRenderer::renderAndPresent):
2089         (WKQCA::CAD3DRenderer::renderToImage):
2090         (WKQCA::CAD3DRenderer::setDeviceIsLost):
2091         (WKQCA::CAD3DRenderer::renderInternal):
2092         * WebKitQuartzCoreAdditions/CAD3DRenderer.h:
2093         * WebKitQuartzCoreAdditions/CAView.cpp:
2094         (WKQCA::CAView::Handle::create):
2095         Return Ref<Handle> instead of RefPtr<>.
2096
2097         (WKQCA::CAView::Handle::lock):
2098         (WKQCA::CAView::Handle::view const):
2099         (WKQCA::CAView::Handle::clear):
2100         (WKQCA::views):
2101         (WKQCA::viewsNeedingUpdate):
2102         (WKQCA::CAView::releaseAllD3DResources):
2103         (WKQCA::CAView::CAView):
2104         (WKQCA::CAView::~CAView):
2105         (WKQCA::CAView::setLayer):
2106         (WKQCA::CAView::update):
2107         (WKQCA::CAView::drawToWindow):
2108         (WKQCA::CAView::drawToWindowInternal):
2109         (WKQCA::CAView::drawToImage):
2110         (WKQCA::CAView::willDraw):
2111         (WKQCA::CAView::drawIntoDC):
2112         (WKQCA::CAView::setShouldInvertColors):
2113         (WKQCA::CAView::scheduleNextDraw):
2114         (WKQCA::CAView::displayLinkReachedCAMediaTime):
2115         (WKQCA::CAView::contextDidChange):
2116         (WKQCA::CAView::updateSoon):
2117         (WKQCA::CAView::updateViewsNow):
2118         (WKQCA::CAView::d3dDevice9):
2119         (WKQCA::CAView::Handle::mutex): Deleted.
2120         (WKQCA::globalStateMutex): Deleted.
2121         (): Deleted.
2122         * WebKitQuartzCoreAdditions/CAView.h:
2123
2124 2017-12-07  Yusuke Suzuki  <utatane.tea@gmail.com>
2125
2126         Use StaticLock instead of NeverDestroyed<Lock>
2127         https://bugs.webkit.org/show_bug.cgi?id=180507
2128
2129         Reviewed by Saam Barati.
2130
2131         * WebLocalizableStrings.cpp:
2132         (findCachedString):
2133         (cacheString):
2134         (mainBundleLocStrings): Deleted.
2135         (frameworkLocStringsMutex): Deleted.
2136
2137 2017-12-05  Per Arne Vollan  <pvollan@apple.com>
2138
2139         [Win] Scrollbars are sometimes not rendered in accelerated compositing mode.
2140         https://bugs.webkit.org/show_bug.cgi?id=180431
2141         <rdar://problem/34531264>
2142
2143         Reviewed by Simon Fraser.
2144
2145         Fix the signatures of GraphicsLayerClient that should have been overridden, and use
2146         'override' to make sure this doesn't break in the future.
2147
2148         * WebView.cpp:
2149         (WebView::notifyAnimationStarted):
2150         (WebView::paintContents):
2151         * WebView.h:
2152
2153 2017-11-23  Darin Adler  <darin@apple.com>
2154
2155         Fix dictionary leak in lookup, convert FindOptions to OptionSet, tweak code style nearby
2156         https://bugs.webkit.org/show_bug.cgi?id=179981
2157
2158         Reviewed by Sam Weinig.
2159
2160         * WebView.cpp:
2161         (WebView::searchFor): Use |= instead of | to build FindOptions.
2162         (WebView::markAllMatchesForText): Create FindOptions with |= instead of |.
2163         (WebView::findString): Create FindOptions with |=; the old code just passed a
2164         WebKit FindOptions through without converting to WebCore::FindOptions.
2165
2166 2017-11-23  Darin Adler  <darin@apple.com>
2167
2168         Reduce WTF::String operations that do unnecessary Unicode operations instead of ASCII
2169         https://bugs.webkit.org/show_bug.cgi?id=179907
2170
2171         Reviewed by Sam Weinig.
2172
2173         * Plugins/PluginDatabaseWin.cpp:
2174         (WebCore::PluginDatabase::getPluginPathsInDirectories const): Use
2175         startsWithLettersIgnoringASCIICase and endsWithIgnoringASCIICase.
2176         * WebDownloadCFNet.cpp:
2177         (WebDownload::initToResumeWithBundle): Use endsWithIgnoringASCIICase.
2178
2179         * WebView.cpp:
2180         (WebView::markAllMatchesForText): Fix old code that was passing TextCaseSensitivity
2181         to a function that actually takes FindOptions. By luck, TextCaseSensitive happens to
2182         be 0, which is correct FindOptions for case sensitive matching, and TextCaseInsensitive
2183         happens to be 1, which is correct FindOptions for case insensitive matching, so fixing
2184         the code does not cause any change in behavior.
2185
2186 2017-11-22  Ali Juma  <ajuma@chromium.org>
2187
2188         Implement VisualViewport API attributes
2189         https://bugs.webkit.org/show_bug.cgi?id=179385
2190
2191         Reviewed by Frédéric Wang.
2192
2193         Add a VisualViewportAPI preference.
2194
2195         * Interfaces/IWebPreferencesPrivate.idl:
2196         * WebPreferenceKeysPrivate.h:
2197         * WebPreferences.cpp:
2198         (WebPreferences::initializeDefaultSettings):
2199         (WebPreferences::visualViewportAPIEnabled):
2200         (WebPreferences::setVisualViewportAPIEnabled):
2201         * WebPreferences.h:
2202         * WebView.cpp:
2203         (WebView::notifyPreferencesChanged):
2204
2205 2017-11-22  Commit Queue  <commit-queue@webkit.org>
2206
2207         Unreviewed, rolling out r225093.
2208         https://bugs.webkit.org/show_bug.cgi?id=179938
2209
2210         Compilation failed on WinCairo 64-bit Release (Requested by
2211         fredw on #webkit).
2212
2213         Reverted changeset:
2214
2215         "Implement VisualViewport API attributes"
2216         https://bugs.webkit.org/show_bug.cgi?id=179385
2217         https://trac.webkit.org/changeset/225093
2218
2219 2017-11-21  Ali Juma  <ajuma@chromium.org>
2220
2221         Implement VisualViewport API attributes
2222         https://bugs.webkit.org/show_bug.cgi?id=179385
2223
2224         Reviewed by Frédéric Wang.
2225
2226         Add a VisualViewportAPI preference.
2227
2228         * Interfaces/IWebPreferencesPrivate.idl:
2229         * WebPreferenceKeysPrivate.h:
2230         * WebPreferences.cpp:
2231         (WebPreferences::initializeDefaultSettings):
2232         (WebPreferences::visualViewportAPIEnabled):
2233         (WebPreferences::setVisualViewportAPIEnabled):
2234         * WebPreferences.h:
2235         * WebView.cpp:
2236         (WebView::notifyPreferencesChanged):
2237
2238 2017-11-14  Alex Christensen  <achristensen@webkit.org>
2239
2240         Clean up old URL parser remnants
2241         https://bugs.webkit.org/show_bug.cgi?id=179573
2242
2243         Reviewed by Darin Adler.
2244
2245         * WebCoreSupport/WebContextMenuClient.cpp:
2246         (WebContextMenuClient::searchWithGoogle):
2247         Use https if we do end up searching with google.
2248
2249 2017-11-12  Darin Adler  <darin@apple.com>
2250
2251         More is<> and downcast<>, less static_cast<>
2252         https://bugs.webkit.org/show_bug.cgi?id=179600
2253
2254         Reviewed by Chris Dumez.
2255
2256         * WebView.cpp:
2257         (WebView::handleEditingKeyboardEvent): Use downcast.
2258
2259 2017-11-09  Christopher Reid  <chris.reid@sony.com>
2260
2261         Use enum classes within FileSystem
2262         https://bugs.webkit.org/show_bug.cgi?id=175172
2263
2264         Reviewed by Darin Adler.
2265
2266         * Plugins/PluginDatabase.cpp:
2267
2268 2017-11-06  Per Arne Vollan  <pvollan@apple.com>
2269
2270         [Win] Add WebKitQuartzCoreAdditions library.
2271         https://bugs.webkit.org/show_bug.cgi?id=179331
2272
2273         Reviewed by Alex Christensen.
2274
2275         * WebKitQuartzCoreAdditions: Added.
2276         * WebKitQuartzCoreAdditions/API: Added.
2277         * WebKitQuartzCoreAdditions/API/WKCACFImage.cpp: Added.
2278         (toImage):
2279         (WKCACFImageGetWidth):
2280         (WKCACFImageGetHeight):
2281         (WKCACFImageCopyFileMapping):
2282         (WKCACFImageCreateWithImage):
2283         (WKCACFImageFinalize):
2284         (WKCACFImageCopyFormattingDescription):
2285         (WKCACFImageCopyDebugDescription):
2286         (WKCACFImageGetTypeID):
2287         * WebKitQuartzCoreAdditions/API/WKCACFImage.h: Added.
2288         * WebKitQuartzCoreAdditions/API/WKCACFImageInternal.h: Added.
2289         * WebKitQuartzCoreAdditions/API/WKCACFView.cpp: Added.
2290         (toView):
2291         (toImpl):
2292         (WKCACFViewCreate):
2293         (WKCACFViewSetLayer):
2294         (WKCACFViewUpdate):
2295         (WKCACFViewFlushContext):
2296         (WKCACFViewInvalidateRects):
2297         (WKCACFViewCanDraw):
2298         (WKCACFViewDraw):
2299         (WKCACFViewCopyDrawnImage):
2300         (WKCACFViewDrawIntoDC):
2301         (contextDidChangeCallback):
2302         (WKCACFViewSetContextDidChangeCallback):
2303         (WKCACFViewGetLastCommitTime):
2304         (WKCACFViewSetContextUserData):
2305         (WKCACFViewGetContext):
2306         (WKCACFViewFinalize):
2307         (WKCACFViewCopyFormattingDescription):
2308         (WKCACFViewCopyDebugDescription):
2309         (WKCACFViewGetTypeID):
2310         (WKCACFViewSetShouldInvertColors):
2311         (WKCACFViewGetD3DDevice9):
2312         * WebKitQuartzCoreAdditions/API/WKCACFView.h: Added.
2313         * WebKitQuartzCoreAdditions/API/WKCACFViewPrivate.h: Added.
2314         * WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditions.cpp: Added.
2315         (WKQCA::dllInstance):
2316         (DllMain):
2317         (WKCACFShutDown):
2318         * WebKitQuartzCoreAdditions/API/WebKitQuartzCoreAdditionsBase.h: Added.
2319         * WebKitQuartzCoreAdditions/CAD3DRenderer.cpp: Added.
2320         (WKQCA::D3DPostProcessingContext::D3DPostProcessingContext):
2321         (WKQCA::d3d):
2322         (WKQCA::initialPresentationParameters):
2323         (WKQCA::CAD3DRenderer::shared):
2324         (WKQCA::CAD3DRenderer::CAD3DRenderer):
2325         (WKQCA::CAD3DRenderer::swapChain):
2326         (WKQCA::CAD3DRenderer::createD3DPostProcessingContext):
2327         (WKQCA::hardwareCapabilitiesIndicateCoreAnimationSupport):
2328         (WKQCA::CAD3DRenderer::initialize):
2329         (WKQCA::D3DMatrixOrthoOffCenterRH):
2330         (WKQCA::prepareDevice):
2331         (WKQCA::updateBounds):
2332         (WKQCA::CAD3DRenderer::renderAndPresent):
2333         (WKQCA::CAD3DRenderer::renderToImage):
2334         (WKQCA::CAD3DRenderer::setDeviceIsLost):
2335         (WKQCA::CAD3DRenderer::renderInternal):
2336         (WKQCA::CAD3DRenderer::postProcess):
2337         (WKQCA::CAD3DRenderer::resetD3DDevice):
2338         (WKQCA::CAD3DRenderer::createShaderIfNeeded):
2339         (WKQCA::CAD3DRenderer::release):
2340         * WebKitQuartzCoreAdditions/CAD3DRenderer.h: Added.
2341         (WKQCA::D3DPostProcessingContext::sceneTexture const):
2342         (WKQCA::D3DPostProcessingContext::overlayQuad const):
2343         (WKQCA::CAD3DRenderer::d3dDevice9 const):
2344         * WebKitQuartzCoreAdditions/CAView.cpp: Added.
2345         (WKQCA::CAView::Handle::create):
2346         (WKQCA::CAView::Handle::~Handle):
2347         (WKQCA::CAView::Handle::mutex):
2348         (WKQCA::CAView::Handle::view const):
2349         (WKQCA::CAView::Handle::clear):
2350         (WKQCA::CAView::Handle::Handle):
2351         (WKQCA::globalStateMutex):
2352         (WKQCA::registerMessageWindowClass):
2353         (WKQCA::createMessageWindow):
2354         (WKQCA::CAView::releaseAllD3DResources):
2355         (WKQCA::CAView::CAView):
2356         (WKQCA::CAView::~CAView):
2357         (WKQCA::CAView::create):
2358         (WKQCA::CAView::setContextDidChangeCallback):
2359         (WKQCA::CAView::setLayer):
2360         (WKQCA::CAView::update):
2361         (WKQCA::CAView::invalidateRects):
2362         (WKQCA::CAView::drawToWindow):
2363         (WKQCA::CAView::drawToWindowInternal):
2364         (WKQCA::CAView::drawToImage):
2365         (WKQCA::CAView::willDraw):
2366         (WKQCA::CAView::didDraw):
2367         (WKQCA::CAView::drawIntoDC):
2368         (WKQCA::CAView::setShouldInvertColors):
2369         (WKQCA::CAView::scheduleNextDraw):
2370         (WKQCA::CAView::displayLinkReachedCAMediaTime):
2371         (WKQCA::CAView::contextDidChangeCallback):
2372         (WKQCA::CAView::contextDidChange):
2373         (WKQCA::CAView::updateSoon):
2374         (WKQCA::CAView::updateViewsNow):
2375         (WKQCA::CAView::d3dDevice9):
2376         * WebKitQuartzCoreAdditions/CAView.h: Added.
2377         (WKQCA::CAView::context const):
2378         (WKQCA::CAView::canDraw const):
2379         (WKQCA::CAView::ContextDidChangeCallback::ContextDidChangeCallback):
2380         * WebKitQuartzCoreAdditions/CMakeLists.txt: Added.
2381         * WebKitQuartzCoreAdditions/CVDisplayLink.cpp: Added.
2382         (WKQCA::CVDisplayLink::CVDisplayLink):
2383         (WKQCA::CVDisplayLink::~CVDisplayLink):
2384         (WKQCA::CVDisplayLink::create):
2385         (WKQCA::CVDisplayLink::start):
2386         (WKQCA::CVDisplayLink::stop):
2387         (WKQCA::CVDisplayLink::setPaused):
2388         (WKQCA::CVDisplayLink::runIOThread):
2389         * WebKitQuartzCoreAdditions/CVDisplayLink.h: Added.
2390         * WebKitQuartzCoreAdditions/CVDisplayLinkClient.h: Added.
2391         (WKQCA::CVDisplayLinkClient::~CVDisplayLinkClient):
2392         * WebKitQuartzCoreAdditions/Image.cpp: Added.
2393         (WKQCA::numBytesForSize):
2394         (WKQCA::Image::create):
2395         (WKQCA::Image::Image):
2396         (WKQCA::Image::~Image):
2397         (WKQCA::bitmapInfo):
2398         (WKQCA::Image::createDIB const):
2399         (WKQCA::Image::copyFileMapping):
2400         * WebKitQuartzCoreAdditions/Image.h: Added.
2401         (WKQCA::Image::size const):
2402         * WebKitQuartzCoreAdditions/ImageConversion.cpp: Added.
2403         (WKQCA::getBackBufferRectAsRenderTarget):
2404         (WKQCA::getSystemMemoryCopy):
2405         (WKQCA::copyRectToBitmap):
2406         (WKQCA::getImageCopy):
2407         (WKQCA::getBackBufferRectAsImage):
2408         * WebKitQuartzCoreAdditions/ImageConversion.h: Added.
2409         * WebKitQuartzCoreAdditions/InvertColorPS.hlsl: Added.
2410         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsInternal.h: Added.
2411         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.cpp: Added.
2412         * WebKitQuartzCoreAdditions/WebKitQuartzCoreAdditionsPrefix.h: Added.
2413
2414 2017-11-06  Christopher Reid  <chris.reid@sony.com>
2415
2416         Use enum classes within FileSystem
2417         https://bugs.webkit.org/show_bug.cgi?id=175172
2418
2419         Reviewed by Myles C. Maxfield.
2420
2421         * Plugins/PluginDatabase.cpp:
2422
2423 2017-11-02  Maciej Stachowiak  <mjs@apple.com>
2424
2425         Don't try to guess plugin MIME type from a file extension in a URL (no observable effect)
2426         https://bugs.webkit.org/show_bug.cgi?id=178333
2427
2428         Reviewed by Darin Adler.
2429
2430         * WebCoreSupport/WebFrameLoaderClient.cpp:
2431         (WebFrameLoaderClient::objectContentType): Remove unnecessary call to mimeTypeFromURL
2432
2433 2017-11-02  Alex Christensen  <achristensen@webkit.org>
2434
2435         Use CompletionHandlers for redirects
2436         https://bugs.webkit.org/show_bug.cgi?id=179163
2437
2438         Reviewed by Tim Horton.
2439
2440         * Plugins/PluginStream.cpp:
2441         (WebCore::PluginStream::willSendRequest):
2442         * Plugins/PluginStream.h:
2443         (WebCore::PluginStreamClient::~PluginStreamClient):
2444         (WebCore::PluginStreamClient::streamDidFinishLoading):
2445         (WebCore::PluginStream::create):
2446         (WebCore::PluginStream::setLoadManually):
2447
2448 2017-11-02  Christopher Reid  <chris.reid@sony.com>
2449
2450         Add a FileSystem namespace to FileSystem.cpp
2451         https://bugs.webkit.org/show_bug.cgi?id=179063
2452
2453         Reviewed by Darin Adler.
2454
2455         * Plugins/PluginDatabase.cpp:
2456         * Plugins/PluginPackage.cpp:
2457         * Plugins/PluginStream.cpp:
2458         * Plugins/PluginStream.h:
2459         * WebApplicationCache.cpp:
2460         * WebDatabaseManager.cpp:
2461         * WebDownloadCurl.cpp:
2462         * WebPreferences.cpp:
2463         * WebView.cpp:
2464
2465 2017-10-31  Alex Christensen  <achristensen@webkit.org>
2466
2467         Fix Windows build after r224260
2468
2469         * WebView.cpp:
2470         (WebView::gesture):
2471
2472 2017-10-28  Zalan Bujtas  <zalan@apple.com>
2473
2474         [FrameView::layout cleanup] Move core layout logic to a separate class.
2475         https://bugs.webkit.org/show_bug.cgi?id=178771
2476         <rdar://problem/35166542>
2477
2478         Reviewed by Simon Fraser.
2479
2480         Move layout code out from FrameView to LayoutContext.
2481
2482         * WebFrame.cpp:
2483         (WebFrame::layout):
2484
2485 2017-10-26  Alex Christensen  <achristensen@webkit.org>
2486
2487         Fix Windows build
2488         https://bugs.webkit.org/show_bug.cgi?id=178892
2489
2490         * AccessibleBase.cpp:
2491         (MSAARole):
2492
2493 2017-10-26  Alex Christensen  <achristensen@webkit.org>
2494
2495         Fix Windows build
2496         https://bugs.webkit.org/show_bug.cgi?id=178892
2497
2498         * AccessibleBase.cpp:
2499         (AccessibleBase::state const):
2500         (MSAARole):
2501
2502 2017-10-25  Youenn Fablet  <youenn@apple.com>
2503
2504         Enable ServiceWorker to fetch resources
2505         https://bugs.webkit.org/show_bug.cgi?id=178673
2506
2507         Reviewed by Brady Eidson.
2508
2509         Added implementation to the new getters.
2510         They are noop in the context of WK1.
2511
2512         * WebCoreSupport/WebFrameLoaderClient.cpp:
2513         (WebFrameLoaderClient::pageID const):
2514         (WebFrameLoaderClient::frameID const):
2515         (WebFrameLoaderClient::sessionID const):
2516         * WebCoreSupport/WebFrameLoaderClient.h:
2517
2518 2017-10-20  Antoine Quint  <graouts@apple.com>
2519
2520         [Web Animations] Provide basic timeline and animation interfaces
2521         https://bugs.webkit.org/show_bug.cgi?id=178526
2522
2523         Reviewed by Dean Jackson.
2524
2525         Remove the WEB_ANIMATIONS compile-time flag.
2526
2527         * WebView.cpp:
2528         (WebView::notifyPreferencesChanged):
2529
2530 2017-10-20  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2531
2532         [Curl] Clean up old style code in old curl files.
2533         https://bugs.webkit.org/show_bug.cgi?id=178569
2534
2535         Reviewed by Ryosuke Niwa.
2536
2537         * WebCache.cpp:
2538         (WebCache::cacheFolder):
2539         (WebCache::setCacheFolder):
2540         * WebView.cpp:
2541         (WebView::setCacheModel):
2542
2543 2017-10-19  Sam Weinig  <sam@webkit.org>
2544
2545         [Settings] Move global settings into their own file
2546         https://bugs.webkit.org/show_bug.cgi?id=178512
2547
2548         Reviewed by Darin Adler.
2549
2550         Moves all global settigns out of SettingsBase and into the new DeprecatedGlobalSettings.
2551
2552         * WebView.cpp:
2553         (WebView::initWithFrame):
2554
2555 2017-10-17  Jiewen Tan  <jiewen_tan@apple.com>
2556
2557         Replace some stack raw pointers with RefPtrs within WebCore/html
2558         https://bugs.webkit.org/show_bug.cgi?id=178201
2559         <rdar://problem/34841692>
2560
2561         Reviewed by Ryosuke Niwa.
2562
2563         * WebView.cpp:
2564         (WebView::handleEditingKeyboardEvent):
2565         Change the type of node as toNode() is changed to return RefPtr.
2566
2567 2017-10-16  Sam Weinig  <sam@webkit.org>
2568
2569         [Settings] Remove all custom code from Settings.h/cpp
2570         https://bugs.webkit.org/show_bug.cgi?id=178330
2571
2572         Reviewed by Simon Fraser.
2573
2574         * WebView.cpp:
2575         (WebView::notifyPreferencesChanged):
2576             
2577             Update for naming changes of FrameFlattening now that it is an enum class.
2578
2579 2017-10-11  Chris Dumez  <cdumez@apple.com>
2580
2581         Modernize Geolocation code
2582         https://bugs.webkit.org/show_bug.cgi?id=178148
2583
2584         Reviewed by Ryosuke Niwa.
2585
2586         * WebCoreSupport/WebGeolocationClient.cpp:
2587         (WebGeolocationClient::lastPosition):
2588         * WebCoreSupport/WebGeolocationClient.h:
2589         * WebGeolocationPosition.cpp:
2590         (WebGeolocationPosition::initWithTimestamp):
2591         (core):
2592         * WebGeolocationPosition.h:
2593         (WebGeolocationPosition::impl const):
2594
2595 2017-10-05  Chris Dumez  <cdumez@apple.com>
2596
2597         Drop unused parameters for CookiesStrategy::cookiesEnabled()
2598         https://bugs.webkit.org/show_bug.cgi?id=177957
2599
2600         Reviewed by Alex Christensen.
2601
2602         * WebCoreSupport/WebPlatformStrategies.cpp:
2603         (WebPlatformStrategies::cookiesEnabled):
2604         * WebCoreSupport/WebPlatformStrategies.h:
2605
2606 2017-10-03  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2607
2608         [Curl] Reimplement CurlDownload with CurlRequest
2609         https://bugs.webkit.org/show_bug.cgi?id=177779
2610
2611         Reviewed by Alex Christensen.
2612
2613         * WebDownload.h:
2614         * WebDownloadCurl.cpp:
2615         (WebDownload::init):
2616         (WebDownload::didReceiveResponse):
2617
2618 2017-09-29  Chris Dumez  <cdumez@apple.com>
2619
2620         Split some logic out of VisitedLinkStore and make it reusable
2621         https://bugs.webkit.org/show_bug.cgi?id=177575
2622
2623         Reviewed by Alex Christensen.
2624
2625         * WebCoreSupport/WebVisitedLinkStore.cpp:
2626         (WebVisitedLinkStore::addVisitedLink):
2627         (WebVisitedLinkStore::isLinkVisited):
2628         (WebVisitedLinkStore::addVisitedLinkHash):
2629         * WebCoreSupport/WebVisitedLinkStore.h:
2630
2631 2017-09-25  Alex Christensen  <achristensen@webkit.org>
2632
2633         Make PolicyAction an encodable enum class
2634         https://bugs.webkit.org/show_bug.cgi?id=177480
2635
2636         Reviewed by Antti Koivisto.
2637
2638         * WebCoreSupport/WebFrameLoaderClient.cpp:
2639         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2640         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2641         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2642         * WebFramePolicyListener.cpp:
2643         (WebFramePolicyListener::use):
2644         (WebFramePolicyListener::download):
2645         (WebFramePolicyListener::ignore):
2646         (WebFramePolicyListener::continueSubmit):
2647
2648 2017-09-07  Per Arne Vollan  <pvollan@apple.com>
2649
2650         [Win] fast/canvas/2d.getPath.modification.html is failing.
2651         https://bugs.webkit.org/show_bug.cgi?id=176534
2652
2653         Reviewed by Alex Christensen.
2654
2655         We need to enable Inspector additions at runtime in order to expose the getPath function.
2656
2657         * Interfaces/IWebPreferencesPrivate.idl:
2658         * WebPreferenceKeysPrivate.h:
2659         * WebPreferences.cpp:
2660         (WebPreferences::initializeDefaultSettings):
2661         (WebPreferences::setDataTransferItemsEnabled):
2662         (WebPreferences::inspectorAdditionsEnabled):
2663         (WebPreferences::setInspectorAdditionsEnabled):
2664         * WebPreferences.h:
2665         * WebView.cpp:
2666         (WebView::notifyPreferencesChanged):
2667
2668 2017-09-07  Alex Christensen  <achristensen@webkit.org>
2669
2670         Modernize Geolocation code
2671         https://bugs.webkit.org/show_bug.cgi?id=176496
2672
2673         Reviewed by Andy Estes.
2674
2675         * WebCoreSupport/WebGeolocationClient.cpp:
2676         (WebGeolocationClient::requestPermission):
2677         * WebCoreSupport/WebGeolocationClient.h:
2678         (WebGeolocationClient::setEnableHighAccuracy): Deleted.
2679         (WebGeolocationClient::cancelPermissionRequest): Deleted.
2680         * WebGeolocationPolicyListener.h:
2681         * WebView.cpp:
2682         (WebView::initWithFrame):
2683         (WebView::geolocationDidFailWithError):
2684
2685 2017-09-07  Per Arne Vollan  <pvollan@apple.com>
2686
2687         [Win] Enable DatatransferItems in DRT.
2688         https://bugs.webkit.org/show_bug.cgi?id=176424
2689
2690         Reviewed by Brent Fulgham.
2691
2692         * Interfaces/IWebPreferencesPrivate.idl:
2693         * WebPreferenceKeysPrivate.h:
2694         * WebPreferences.cpp:
2695         (WebPreferences::initializeDefaultSettings):
2696         (WebPreferences::QueryInterface):
2697         (WebPreferences::isSecureContextAttributeEnabled):
2698         (WebPreferences::dataTransferItemsEnabled):
2699         (WebPreferences::setDataTransferItemsEnabled):
2700         * WebPreferences.h:
2701         * WebView.cpp:
2702         (WebView::notifyPreferencesChanged):
2703
2704 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
2705
2706         Unreviewed build fix #2 after r221275.
2707
2708         * WebCoreSupport/WebPlatformStrategies.cpp:
2709         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Correct return type and arguments
2710         to match new API.
2711         * WebCoreSupport/WebPlatformStrategies.h: Update signatures.
2712
2713 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
2714
2715         Unreviewed build fix after r221275.
2716
2717         * WebCoreSupport/WebPlatformStrategies.cpp:
2718         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Correct return type and arguments
2719         to match new API.
2720
2721 2017-08-28  Per Arne Vollan  <pvollan@apple.com>
2722
2723         [Win] The test http/tests/misc/policy-delegate-called-twice.html is crashing.
2724         https://bugs.webkit.org/show_bug.cgi?id=176031
2725
2726         Reviewed by Brent Fulgham.
2727
2728         When the function in the FramePolicyFunction parameter is called, it has already been moved
2729         to an internal member by the setUpPolicyListener method, and is no longer valid. Invoke the
2730         function by using the stored member instead.
2731
2732         * WebCoreSupport/WebFrameLoaderClient.cpp:
2733         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2734         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2735         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2736
2737 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
2738
2739         Unreviewed, try to fix the Windows build after r221064
2740
2741         didEndUserTriggeredSelectionChanges is virtual, and needs to be overridden in WebEditorClient.
2742
2743         * WebCoreSupport/WebEditorClient.h:
2744
2745 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
2746
2747         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
2748         https://bugs.webkit.org/show_bug.cgi?id=175370
2749         <rdar://problem/33799806>
2750
2751         Reviewed by Ryosuke Niwa.
2752
2753         Adjust WebEditorClient for interface changes.
2754
2755         * WebCoreSupport/WebEditorClient.h:
2756
2757 2017-08-22  Brent Fulgham  <bfulgham@apple.com>
2758
2759         Unreviewed build fix after r221017.
2760
2761         Correct copy/paste error.
2762
2763         * WebCoreSupport/WebPlatformStrategies.cpp:
2764         (WebPlatformStrategies::cookiesForDOM):
2765
2766 2017-08-22  Brent Fulgham  <bfulgham@apple.com>
2767
2768         Unreviewed build fix after r221017.
2769
2770         * WebCoreSupport/WebPlatformStrategies.cpp:
2771         (WebPlatformStrategies::cookiesForDOM): Update for new signature.
2772         * WebCoreSupport/WebPlatformStrategies.h:
2773
2774 2017-08-22  Alex Christensen  <achristensen@webkit.org>
2775
2776         Remove ChromeClient::scrollbarsModeDidChange
2777         https://bugs.webkit.org/show_bug.cgi?id=175805
2778
2779         Reviewed by Daniel Bates.
2780
2781         * WebCoreSupport/WebChromeClient.h:
2782
2783 2017-08-22  Alex Christensen  <achristensen@webkit.org>
2784
2785         Remove ChromeClient::hasOpenedPopup
2786         https://bugs.webkit.org/show_bug.cgi?id=175804
2787
2788         Reviewed by Sam Weinig.
2789
2790         * WebCoreSupport/WebChromeClient.cpp:
2791         (WebChromeClient::hasOpenedPopup const): Deleted.
2792         * WebCoreSupport/WebChromeClient.h:
2793
2794 2017-08-18  Per Arne Vollan  <pvollan@apple.com>
2795
2796         [Win] accessibility/heading-crash-after-hidden.html is a flaky crash.
2797         https://bugs.webkit.org/show_bug.cgi?id=173536
2798
2799         Reviewed by Brent Fulgham.
2800
2801         If the tree state is dirty, accessible objects are deleted while iterating over children
2802         under AccessibilityNodeObject::textUnderElement when the style is updated. Make sure the
2803         style is updated before this method is called.
2804
2805         * AccessibleBase.cpp:
2806         (AccessibleBase::getAccessibilityObjectForChild):
2807
2808 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
2809
2810         [PAL] Move SessionID into PAL
2811         https://bugs.webkit.org/show_bug.cgi?id=174192
2812
2813         Reviewed by Antti Koivisto.
2814
2815         * WebCoreSupport/WebFrameLoaderClient.cpp:
2816         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
2817         * WebCoreSupport/WebFrameLoaderClient.h:
2818         * WebCoreSupport/WebFrameNetworkingContext.cpp:
2819         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
2820         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2821         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2822         (WebFrameNetworkingContext::storageSession const):
2823         * WebCoreSupport/WebPlatformStrategies.cpp:
2824         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
2825         * WebCoreSupport/WebPlatformStrategies.h:
2826
2827 2017-08-15  Youenn Fablet  <youenn@apple.com>
2828
2829         [Cache API] Adding generic support for CacheStorage and Cache methods
2830         https://bugs.webkit.org/show_bug.cgi?id=175455
2831
2832         Reviewed by Chris Dumez.
2833
2834         * WebView.cpp:
2835         (WebView::initWithFrame):
2836
2837 2017-08-13  Manuel Rego Casasnovas  <rego@igalia.com>
2838
2839         Composition underline color is always black
2840         https://bugs.webkit.org/show_bug.cgi?id=174675
2841
2842         Reviewed by Ryosuke Niwa.
2843
2844         * WebView.cpp:
2845         (WebView::setCompositionForTesting): Use text color for
2846         composition underline.
2847
2848 2017-08-09  Daniel Bates  <dabates@apple.com>
2849
2850         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
2851         https://bugs.webkit.org/show_bug.cgi?id=175247
2852         <rdar://problem/33679804>
2853
2854         Reviewed by Brady Eidson.
2855
2856         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
2857         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
2858         clients that need to make use of this information at this time. If such a needs comes up
2859         then we can expose API/SPI similar to what we do for WebKit.
2860
2861         * WebCoreSupport/WebFrameLoaderClient.cpp:
2862         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2863         * WebCoreSupport/WebFrameLoaderClient.h:
2864
2865 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
2866
2867         Async image decoding for large images should be disabled after the first time a tile is painted
2868         https://bugs.webkit.org/show_bug.cgi?id=174451
2869         <rdar://problem/31246421>
2870
2871         Reviewed by Simon Fraser.
2872
2873         * FullscreenVideoController.cpp:
2874         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
2875         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2876         (AcceleratedCompositingContext::paintContents):
2877         * WebCoreSupport/AcceleratedCompositingContext.h:
2878
2879 2017-07-23  Darin Adler  <darin@apple.com>
2880
2881         More NeverDestroyed and related cleanup
2882         https://bugs.webkit.org/show_bug.cgi?id=174745
2883
2884         Reviewed by Alex Christensen.
2885
2886         * Plugins/PluginDatabase.cpp:
2887         (WebCore::persistentPluginMetadataCachePath): Use NeverDestroyed
2888         instead of DEPRECATED_DEFINE_STATIC_LOCAL.
2889         * Plugins/PluginMainThreadScheduler.cpp:
2890         (WebCore::PluginMainThreadScheduler::scheduler): Ditto.
2891         * Plugins/PluginMainThreadScheduler.h: Ditto.
2892         * WebCoreSupport/WebPlatformStrategies.cpp:
2893         (WebPlatformStrategies::initialize): Ditto.
2894         * WebCoreSupport/WebPlatformStrategies.h: Ditto.
2895         * WebHistory.cpp:
2896         (sharedHistoryStorage): Ditto.
2897         * WebLocalizableStrings.cpp:
2898         (mainBundleLocStrings): Ditto.
2899         (frameworkLocStringsMutex): Ditto.
2900         (frameworkLocStrings): Ditto.
2901         * WebView.cpp:
2902         (WebView::standardUserAgentWithApplicationName): Ditto.
2903         Also changed to keep one global string with the prefix of the user agent string
2904         instead of keeping two globals with pieces of that prefix.
2905
2906 2017-07-24  Chris Dumez  <cdumez@apple.com>
2907
2908         Make ExceptionCode a proper enumeration
2909         https://bugs.webkit.org/show_bug.cgi?id=174771
2910
2911         Reviewed by Sam Weinig.
2912
2913         Make ExceptionCode a proper enumeration instead of a typedef to uint8_t.
2914
2915         * DOMCoreClasses.cpp:
2916         (DOMDocument::createEvent):
2917         * WebView.cpp:
2918         (WebView::prepareCandidateWindow):
2919
2920 2017-07-21  Andreas Kling  <akling@apple.com>
2921
2922         Use more references in event dispatch code
2923         https://bugs.webkit.org/show_bug.cgi?id=174681
2924
2925         Reviewed by Geoffrey Garen.
2926
2927         * DOMEventsClasses.cpp:
2928         (WebEventListener::handleEvent):
2929         * DOMEventsClasses.h:
2930         * Plugins/PluginView.cpp:
2931         (WebCore::PluginView::handleEvent):
2932         * Plugins/PluginView.h:
2933
2934 2017-07-20  Brady Eidson  <beidson@apple.com>
2935
2936         Remove WebIconDatabase from WebKitLegacy/win.
2937         https://bugs.webkit.org/show_bug.cgi?id=174608
2938
2939         Reviewed by Alex Christensen.
2940
2941         It is unused.
2942         
2943         * ForEachCoClass.h:
2944
2945         * Interfaces/IWebIconDatabase.idl: Removed.
2946
2947         * Interfaces/WebKit.idl:
2948
2949         * WebCoreStatistics.cpp:
2950         (WebCoreStatistics::iconPageURLMappingCount):
2951         (WebCoreStatistics::iconRetainedPageURLCount):
2952         (WebCoreStatistics::iconRecordCount):
2953         (WebCoreStatistics::iconsWithDataCount):
2954
2955         * WebIconDatabase.cpp: Removed.
2956         * WebIconDatabase.h: Removed.
2957         * WebKitClassFactory.cpp:
2958
2959         * WebKitDLL.cpp:
2960         (shutDownWebKit):
2961
2962         * WebKitLogging.h:
2963
2964         * WebView.cpp:
2965         (WebView::close):
2966         (WebView::notifyDidAddIcon):
2967         (WebView::registerForIconNotification):
2968         (WebView::dispatchDidReceiveIconFromWebFrame):
2969         (WebView::onNotify):
2970
2971 2017-07-18  Matt Lewis  <jlewis3@apple.com>
2972
2973         Unreviewed, rolling out r219610.
2974
2975         This caused an api failure on all platforms for the test
2976         SnapshotImageLargeAsyncDecoding
2977
2978         Reverted changeset:
2979
2980         "Async image decoding for large images should be disabled
2981         after the first time a tile is painted"
2982         https://bugs.webkit.org/show_bug.cgi?id=174451
2983         http://trac.webkit.org/changeset/219610
2984
2985 2017-07-18  Said Abou-Hallawa  <sabouhallawa@apple.com>
2986
2987         Async image decoding for large images should be disabled after the first time a tile is painted
2988         https://bugs.webkit.org/show_bug.cgi?id=174451
2989
2990         Reviewed by Simon Fraser.
2991
2992         * FullscreenVideoController.cpp:
2993         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
2994         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2995         (AcceleratedCompositingContext::paintContents):
2996         * WebCoreSupport/AcceleratedCompositingContext.h:
2997
2998 2017-07-14  Basuke Suzuki  <Basuke.Suzuki@sony.com>
2999
3000         [Curl] Don't start downloading more than once for same request
3001         https://bugs.webkit.org/show_bug.cgi?id=174172
3002
3003         Reviewed by Alex Christensen.
3004
3005         * WebDownloadCurl.cpp:
3006         (WebDownload::init):
3007
3008 2017-07-12  Daniel Bates  <dabates@apple.com>
3009
3010         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
3011         https://bugs.webkit.org/show_bug.cgi?id=174427
3012
3013         Rubber-stamped by Brady Eidson.
3014
3015         * Plugins/PluginView.cpp:
3016         (WebCore::PluginView::start):
3017         (WebCore::PluginView::getURLNotify):
3018         (WebCore::PluginView::getURL):
3019         (WebCore::PluginView::handlePost):
3020
3021 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
3022
3023         [WTF] Move SoftLinking.h into WTF
3024         https://bugs.webkit.org/show_bug.cgi?id=174000
3025
3026         Reviewed by Alex Christensen.
3027
3028         * WebKitClassFactory.cpp:
3029         * WebView.cpp:
3030
3031 2017-07-05  Brady Eidson  <beidson@apple.com>
3032
3033         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
3034         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
3035
3036         Reviewed by Alex Christensen.
3037
3038         Adopt to the new constructor for FrameLoadRequest.
3039
3040         * Plugins/PluginView.cpp:
3041         (WebCore::PluginView::start):
3042         (WebCore::PluginView::getURLNotify):
3043         (WebCore::PluginView::getURL):
3044         (WebCore::PluginView::handlePost):
3045
3046 2017-07-03  Brady Eidson  <beidson@apple.com>
3047
3048         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
3049         https://bugs.webkit.org/show_bug.cgi?id=174073
3050
3051         Reviewed by Andy Estes.
3052
3053         * WebCoreSupport/WebFrameLoaderClient.cpp:
3054         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
3055         (WebFrameLoaderClient::registerForIconNotification): Deleted.
3056         * WebCoreSupport/WebFrameLoaderClient.h:
3057
3058 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
3059
3060         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
3061         https://bugs.webkit.org/show_bug.cgi?id=174004
3062
3063         Reviewed by Simon Fraser.
3064
3065         * WebCoreSupport/WebFrameLoaderClient.cpp:
3066         (WebFrameLoaderClient::transitionToCommittedForNewPage):
3067
3068 2017-06-30  Daniel Bates  <dabates@apple.com>
3069
3070         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
3071         https://bugs.webkit.org/show_bug.cgi?id=165160
3072         <rdar://problem/29451999>
3073
3074         Reviewed by Brady Eidson.
3075
3076         Pass the document that is requesting the load to the loader.
3077
3078         * Plugins/PluginView.cpp:
3079         (WebCore::PluginView::start):
3080         (WebCore::PluginView::getURLNotify):
3081         (WebCore::PluginView::getURL):
3082         (WebCore::PluginView::handlePost):
3083
3084 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
3085
3086         Refactor drag start codepaths to plumb a DragItem to client layers
3087         https://bugs.webkit.org/show_bug.cgi?id=173832
3088         Work towards <rdar://problem/32236827>
3089
3090         Reviewed by Ryosuke Niwa and Tim Horton.
3091
3092         Adjust for changes to WebDragClient::startDrag by pulling information out of DragItem.
3093
3094         * WebCoreSupport/WebDragClient.cpp:
3095         (WebDragClient::startDrag):
3096         * WebCoreSupport/WebDragClient.h:
3097
3098 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
3099
3100         Remove excessive headers from JavaScriptCore
3101         https://bugs.webkit.org/show_bug.cgi?id=173812
3102
3103         Reviewed by Darin Adler.
3104
3105         * Plugins/PluginPackage.cpp:
3106
3107 2017-06-22  Daniel Bates  <dabates@apple.com>
3108
3109         Make FrameLoadRequest a move-only type
3110         https://bugs.webkit.org/show_bug.cgi?id=173682
3111
3112         Reviewed by Alex Christensen and Darin Adler.
3113
3114         A FrameLoadRequest groups together the information to perform a load into a single object
3115         that is more manageable to pass around than its constituent parts. Code that receives a
3116         FrameLoadRequest is expected to extract out the information it needs to complete its task.
3117         And it does not make sense to re-use the same FrameLoadRequest object for more than one
3118         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
3119
3120         * Plugins/PluginView.cpp:
3121         (WebCore::PluginView::start):
3122         (WebCore::PluginView::performRequest):
3123         (WebCore::PluginView::load):
3124         (WebCore::PluginView::getURLNotify):
3125         (WebCore::PluginView::getURL):
3126         (WebCore::PluginView::handlePost):
3127         * Plugins/PluginView.h:
3128         (WebCore::PluginRequest::PluginRequest):
3129
3130 2017-06-22  Daniel Bates  <dabates@apple.com>
3131
3132         [Win] Cleanup: Remove unnecessary include of header FrameLoadRequest.h
3133         https://bugs.webkit.org/show_bug.cgi?id=173683
3134
3135         Reviewed by Alex Christensen.
3136
3137         Neither file PluginViewWin.cpp nor WebContextMenuClient.cpp need to include
3138         header FrameLoadRequest.h. The former includes FrameLoadRequest.h indirectly
3139         by including PluginView.h. The latter does not make use of the functionality
3140         provided by FrameLoadRequest.h.
3141
3142         * Plugins/PluginViewWin.cpp:
3143         * WebCoreSupport/WebContextMenuClient.cpp:
3144
3145 2017-06-21  Daniel Bates  <dabates@apple.com>
3146
3147         Cleanup FrameLoadRequest
3148         https://bugs.webkit.org/show_bug.cgi?id=173564
3149         <rdar://problem/32903570>
3150
3151         Reviewed by Brent Fulgham.
3152
3153         * Plugins/PluginView.cpp:
3154         (WebCore::PluginView::start): Explicitly pass an empty ResourceRequest (we populate it after
3155         we instantiate the FrameLoadRequest) and pass the null-string for the target frame name as
3156         we do not have one. Use C++11 brace initialization syntax.
3157         (WebCore::PluginView::getURLNotify): Explicitly pass the null-string for the target frame
3158         name as we do not have one. Use C++11 brace initialization syntax.
3159         (WebCore::PluginView::getURL): Ditto.
3160         (WebCore::PluginView::handlePost): Move instantiation of FrameLoadRequest from the top of the
3161         function to closer to where it is actually used. Explicitly pass the null-string for the target
3162         frame name as we do not have one. Use C++11 brace initialization syntax.
3163
3164 2017-06-20  Daniel Bates  <dabates@apple.com>
3165
3166         Have FrameLoadRequest takes a Frame& instead of a Frame*
3167         https://bugs.webkit.org/show_bug.cgi?id=173614
3168         <rdar://problem/32884890>
3169
3170         Reviewed by Brent Fulgham.
3171
3172         * Plugins/PluginView.cpp:
3173         (WebCore::PluginView::performRequest):
3174         * WebFrame.cpp:
3175         (WebFrame::loadRequest):
3176
3177 2017-06-19  Chris Dumez  <cdumez@apple.com>
3178
3179         Use WTF::Function instead of std::function in more places in WebCore/
3180         https://bugs.webkit.org/show_bug.cgi?id=173535
3181
3182         Reviewed by Antti Koivisto.
3183
3184         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
3185
3186         * WebCoreSupport/WebFrameLoaderClient.cpp:
3187         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3188         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3189         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3190         (WebFrameLoaderClient::dispatchWillSubmitForm):
3191         (WebFrameLoaderClient::setUpPolicyListener):
3192         (WebFrameLoaderClient::receivedPolicyDecision):
3193         * WebCoreSupport/WebFrameLoaderClient.h:
3194
3195 2017-05-14 Frederic Wang  <fwang@igalia.com>
3196
3197         Add heuristic to avoid flattening "fullscreen" iframes
3198         https://bugs.webkit.org/show_bug.cgi?id=171914
3199
3200         Reviewed by Simon Fraser.
3201
3202         This commit ajusts the window port to internally use the new preference type for frame flattening.
3203         However, the "partial frame flattening" value is not exposed yet.
3204
3205         * WebView.cpp:
3206         (WebView::notifyPreferencesChanged): Use the new type for frame flattening.
3207
3208 2017-06-17  Chris Dumez  <cdumez@apple.com>
3209
3210         Use WTF::Function instead of std::function in WebKit2/
3211         https://bugs.webkit.org/show_bug.cgi?id=173504
3212
3213         Reviewed by Darin Adler.
3214
3215         Use WTF::Function instead of std::function in WebKit2/ to avoid
3216         unnecessary copying.
3217
3218         * Plugins/PluginStream.cpp:
3219         (WebCore::PluginStream::willSendRequest):
3220         * Plugins/PluginStream.h:
3221
3222 2017-06-16  Sam Weinig  <sam@webkit.org>
3223
3224         [WebIDL] Remove custom bindings for HTMLDocument
3225         https://bugs.webkit.org/show_bug.cgi?id=173444
3226
3227         Reviewed by Darin Adler.
3228
3229         * DOMHTMLClasses.cpp:
3230         (DOMHTMLDocument::write):
3231         (DOMHTMLDocument::writeln):
3232         Update for new signature of write/writeln.
3233
3234 2017-06-16  Daniel Bates  <dabates@apple.com>
3235
3236         Cleanup: WebContextMenuClient::searchWithGoogle() should parse URL using URL { URL { }, ... }
3237         instead of URL { ParsedURLString, ... }
3238         https://bugs.webkit.org/show_bug.cgi?id=173495
3239         <rdar://problem/32827445>
3240
3241         Reviewed by Alex Christensen.
3242
3243         URL(ParsedURLString, ...) should only be used with a string that was the result of URL::string().
3244         Otherwise, it will cause an assertion failure if the canonicalized URL differs from the string.
3245         Although it is unlikely that the hardcoded string in WebContextMenuClient::searchWithGoogle()
3246         would differ from the canonicalized URL it is best practice to use URL(URL(), ...) to
3247         parse an arbitrary string that looks like a URL.
3248
3249         Also modernize the code using C++14 idioms.
3250
3251         * WebCoreSupport/WebContextMenuClient.cpp:
3252         (WebContextMenuClient::searchWithGoogle):
3253
3254 2017-06-15  Fujii Hironori  <Hironori.Fujii@sony.com>
3255
3256         [Win] WebKit shouldn't include the forwarding header of WebKit itself
3257         https://bugs.webkit.org/show_bug.cgi?id=173352
3258
3259         Reviewed by Alex Christensen.
3260
3261         * WebKitPrefix.h: Include WebKit.h of DerivedSources/WebKit instead of DerivedSources/ForwardingHeaders.
3262
3263 2017-06-14  Per Arne Vollan  <pvollan@apple.com>
3264
3265         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
3266         https://bugs.webkit.org/show_bug.cgi?id=173318
3267
3268         Reviewed by Darin Adler.
3269
3270         The logical frame size is currently calculated by scaling the frame size in pixels,
3271         and rounding the coordinates to the nearest integers. The computed logical frame
3272         size will in some cases be smaller than the scaled frame size in pixels, since it is
3273         represented as an IntSize. In these cases, the bottom line will not be painted.
3274         Instead of calculating the logical frame size by rounding the scaled frame in
3275         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
3276
3277         * WebCoreSupport/WebFrameLoaderClient.cpp:
3278         (WebFrameLoaderClient::transitionToCommittedForNewPage):
3279
3280 2017-06-13  Daniel Bates  <dabates@apple.com>
3281
3282         Implement W3C Secure Contexts Draft Specification
3283         https://bugs.webkit.org/show_bug.cgi?id=158121
3284         <rdar://problem/26012994>
3285
3286         Reviewed by Brent Fulgham.
3287
3288         Part 4
3289
3290         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
3291
3292         * Interfaces/IWebPreferencesPrivate.idl: Bump the version.
3293         * WebPreferenceKeysPrivate.h:
3294         * WebPreferences.cpp:
3295         (WebPreferences::initializeDefaultSettings):
3296         (WebPreferences::QueryInterface):
3297         (WebPreferences::setIsSecureContextAttributeEnabled):
3298         (WebPreferences::isSecureContextAttributeEnabled):
3299         * WebPreferences.h:
3300         * WebView.cpp:
3301         (WebView::notifyPreferencesChanged):
3302
3303 2017-06-13  Per Arne Vollan  <pvollan@apple.com>
3304
3305         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
3306         https://bugs.webkit.org/show_bug.cgi?id=173318
3307
3308         Reviewed by Alex Christensen.
3309
3310         The logical frame size is currently calculated by scaling the frame size in pixels,
3311         and rounding the coordinates to the nearest integers. The computed logical frame
3312         size will in some cases be smaller than the scaled frame size in pixels, since it is
3313         represented as an IntSize. In these cases, the bottom line will not be painted.
3314         Instead of calculating the logical frame size by rounding the scaled frame in
3315         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
3316  
3317         * WebView.cpp:
3318         (WebView::sizeChanged):
3319
3320 2017-06-13  Sam Weinig  <sam@webkit.org>
3321
3322         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
3323         https://bugs.webkit.org/show_bug.cgi?id=80733
3324
3325         Reviewed by Chris Dumez.
3326
3327         * WebFrame.cpp:
3328         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
3329
3330 2017-06-12  Daewoong Jang  <daewoong.jang@navercorp.com>
3331
3332         Remove WebCore::unloadModule and related data types
3333         https://bugs.webkit.org/show_bug.cgi?id=173231
3334
3335         Reviewed by Darin Adler.
3336
3337         * Plugins/PlatformModule.h: Added.
3338         (WebCore::PlatformModuleVersion::PlatformModuleVersion):
3339         * Plugins/PluginPackage.cpp:
3340         (WebCore::PluginPackage::freeLibraryTimerFired):
3341         * Plugins/PluginPackage.h:
3342
3343 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
3344
3345         [iOS DnD] Add a hook to perform two-step drops in editable content
3346         https://bugs.webkit.org/show_bug.cgi?id=172992
3347         <rdar://problem/32590174>
3348
3349         Reviewed by Tim Horton.
3350
3351         Add a stub implementation for performTwoStepDrop on Windows.
3352
3353         * WebCoreSupport/WebEditorClient.h:
3354
3355 2017-06-04  Konstantin Tokarev  <annulen@yandex.ru>
3356
3357         Fix build of Windows-specific code with ICU 59.1
3358         https://bugs.webkit.org/show_bug.cgi?id=172729
3359
3360         Reviewed by Darin Adler.
3361
3362         Fix conversions from WTF::String to wchar_t* and vice versa.
3363
3364         * Plugins/PluginDatabaseWin.cpp:
3365         (WebCore::addPluginPathsFromRegistry):
3366         (WebCore::PluginDatabase::getPluginPathsInDirectories):
3367         (WebCore::addMozillaPluginDirectories):
3368         (WebCore::addWindowsMediaPlayerPluginDirectory):
3369         (WebCore::addAdobeAcrobatPluginDirectory):
3370         (WebCore::addJavaPluginDirectory):
3371         (WebCore::safariPluginsDirectory):
3372         (WebCore::addMacromediaPluginDirectories):
3373         * Plugins/PluginPackageWin.cpp:
3374         (WebCore::getVersionInfo):
3375         (WebCore::PluginPackage::fetchInfo):
3376         (WebCore::PluginPackage::load):
3377         * Plugins/PluginViewWin.cpp:
3378         (WebCore::PluginView::handlePostReadFile):
3379
3380 2017-05-30  Per Arne Vollan  <pvollan@apple.com>
3381
3382         [Win] fast/shadow-dom/fullscreen-in-slot-fullscreenElement.html is flaky.
3383         https://bugs.webkit.org/show_bug.cgi?id=172709
3384
3385         Reviewed by Brent Fulgham.
3386
3387         Add method to exit fullscreen mode.
3388
3389         * Interfaces/IWebViewPrivate.idl:
3390         * WebView.cpp:
3391         (WebView::exitFullscreenIfNeeded):
3392         * WebView.h:
3393
3394 2017-05-24  Per Arne Vollan  <pvollan@apple.com>
3395
3396         [Win] Create unique network storage session for each DRT.
3397         https://bugs.webkit.org/show_bug.cgi?id=172540
3398
3399         Reviewed by Brent Fulgham.
3400
3401         During layout testing, each DRT instance should have its own network storage session.
3402
3403         * Interfaces/IWebPreferencesPrivate.idl:
3404         * WebPreferences.cpp:
3405         (WebPreferences::switchNetworkLoaderToNewTestingSession):
3406         * WebPreferences.h:
3407
3408 2017-05-24  Fujii Hironori  <Hironori.Fujii@sony.com>
3409
3410         [WinCairo] AcceleratedCompositingContext.h: error C3668: 'AcceleratedCompositingContext::paintContents': method with override specifier 'override' did not override any base class methods
3411         https://bugs.webkit.org/show_bug.cgi?id=172535
3412
3413         Reviewed by Konstantin Tokarev.
3414
3415         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3416         (AcceleratedCompositingContext::paintContents): Append the fifth argument.
3417         * WebCoreSupport/AcceleratedCompositingContext.h: Ditto.
3418
3419 2017-05-14  Per Arne Vollan  <pvollan@apple.com>
3420
3421         [Win] fast/cookies/local-file-can-set-cookies.html is flaky.
3422         https://bugs.webkit.org/show_bug.cgi?id=172071
3423
3424         Reviewed by Alexey Proskuryakov.
3425
3426         We need to delete all cookies after each test.
3427
3428         * Interfaces/IWebPreferencesPrivate.idl:
3429         * WebPreferences.cpp:
3430         (WebPreferences::linkPreloadEnabled):
3431         (WebPreferences::clearNetworkLoaderSession):
3432         * WebPreferences.h:
3433
3434 2017-05-13  Chris Dumez  <cdumez@apple.com>
3435
3436         Stop using RefPtr::release()
3437         https://bugs.webkit.org/show_bug.cgi?id=172074
3438
3439         Reviewed by Geoffrey Garen.
3440
3441         * WebFrame.cpp:
3442         (WebFrame::loadPlainTextString):
3443         (WebFrame::loadHTMLString):
3444         * WebFramePolicyListener.cpp:
3445         (WebFramePolicyListener::receivedPolicyDecision):
3446
3447 2017-05-13  Chris Dumez  <cdumez@apple.com>
3448
3449         Drop uses of PassRefPtr in WebKit/win
3450         https://bugs.webkit.org/show_bug.cgi?id=172067
3451
3452         Reviewed by Yusuke Suzuki.
3453
3454         * DOMEventsClasses.cpp:
3455         (DOMEvent::DOMEvent):
3456         (DOMEvent::createInstance):
3457         * DOMEventsClasses.h:
3458         (DOMUIEvent::DOMUIEvent):
3459         (DOMKeyboardEvent::DOMKeyboardEvent):
3460         (DOMMouseEvent::DOMMouseEvent):
3461         (DOMMutationEvent::DOMMutationEvent):
3462         (DOMOverflowEvent::DOMOverflowEvent):
3463         (DOMWheelEvent::DOMWheelEvent):
3464         * MemoryStream.cpp:
3465         (MemoryStream::MemoryStream):
3466         (MemoryStream::createInstance):
3467         * MemoryStream.h:
3468         * Plugins/PluginDatabase.cpp:
3469         (WebCore::PluginDatabase::refresh):
3470         (WebCore::PluginDatabase::add):
3471         (WebCore::PluginDatabase::loadPersistentMetadataCache):
3472         * Plugins/PluginDatabase.h:
3473         * Plugins/PluginPackage.cpp:
3474         (WebCore::PluginPackage::createPackage):
3475         (WebCore::PluginPackage::createPackageFromCache):
3476         * Plugins/PluginPackage.h:
3477         * Plugins/PluginStream.h:
3478         (WebCore::PluginStream::create):
3479         * WebActionPropertyBag.cpp:
3480         (WebActionPropertyBag::WebActionPropertyBag):
3481         (WebActionPropertyBag::createInstance):
3482         * WebActionPropertyBag.h:
3483         * WebArchive.cpp:
3484         (WebArchive::createInstance):
3485         (WebArchive::WebArchive):
3486         * WebArchive.h:
3487         * WebBackForwardList.cpp:
3488         (WebBackForwardList::WebBackForwardList):
3489         (WebBackForwardList::createInstance):
3490         * WebBackForwardList.h:
3491         * WebCoreSupport/EmbeddedWidget.cpp:
3492         (EmbeddedWidget::create):
3493         * WebCoreSupport/EmbeddedWidget.h:
3494         * WebCoreSupport/WebChromeClient.h:
3495         * WebFrame.cpp:
3496         (WebFrame::loadData):
3497         (WebFrame::createSubframeWithOwnerElement):
3498         * WebFrame.h:
3499         * WebFramePolicyListener.cpp:
3500         (WebFramePolicyListener::WebFramePolicyListener):
3501         (WebFramePolicyListener::createInstance):
3502         * WebFramePolicyListener.h:
3503         * WebGeolocationPolicyListener.cpp:
3504         (WebGeolocationPolicyListener::createInstance):
3505         (WebGeolocationPolicyListener::WebGeolocationPolicyListener):
3506         * WebGeolocationPolicyListener.h:
3507         * WebHistoryItem.cpp:
3508         (WebHistoryItem::WebHistoryItem):
3509         (WebHistoryItem::createInstance):
3510         * WebHistoryItem.h:
3511         * WebMutableURLRequest.cpp:
3512         (WebMutableURLRequest::setFormData):
3513         (WebMutableURLRequest::formData):
3514         * WebMutableURLRequest.h:
3515         * WebResource.cpp:
3516         (WebResource::createInstance):
3517         * WebResource.h:
3518         * WebScriptWorld.cpp:
3519         (WebScriptWorld::WebScriptWorld):
3520         (WebScriptWorld::createInstance):
3521         * WebScriptWorld.h:
3522         * WebURLAuthenticationChallengeSender.cpp:
3523         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
3524         (WebURLAuthenticationChallengeSender::createInstance):
3525         * WebURLAuthenticationChallengeSender.h:
3526         * WebView.cpp:
3527         (WebView::setFullScreenElement):
3528         * WebView.h:
3529
3530 2017-05-11  Chris Dumez  <cdumez@apple.com>
3531
3532         Drop remaining uses of PassRefPtr in WebCore
3533         https://bugs.webkit.org/show_bug.cgi?id=172013
3534
3535         Reviewed by Yusuke Suzuki.
3536
3537         * Plugins/PluginView.cpp:
3538         (WebCore::PluginView::bindingInstance):
3539
3540 2017-05-11  Chris Dumez  <cdumez@apple.com>
3541
3542         Stop using PassRefPtr in platform/graphics
3543         https://bugs.webkit.org/show_bug.cgi?id=171977
3544
3545         Reviewed by Alex Christensen.
3546
3547         Build fix.
3548
3549         * FullscreenVideoController.cpp:
3550         (FullscreenVideoController::enterFullscreen):
3551         * WebKitDLL.cpp:
3552         (loadResourceIntoBuffer):
3553
3554 2017-05-09  Sam Weinig  <sam@webkit.org>
3555
3556         Remove support for legacy Notifications
3557         https://bugs.webkit.org/show_bug.cgi?id=171487
3558
3559         Reviewed by Jon Lee.
3560
3561         * WebCoreSupport/WebChromeClient.cpp:
3562         (WebChromeClient::WebChromeClient):
3563         * WebCoreSupport/WebChromeClient.h:
3564         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3565         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3566         Remove legacy notification specific code.
3567
3568 2017-05-09  Dean Jackson  <dino@apple.com>
3569
3570         Fix Windows build.
3571
3572         * Plugins/PluginView.h:
3573         * Plugins/PluginViewWin.cpp:
3574         (WebCore::PluginView::paint):
3575
3576 2017-05-06  Alexey Proskuryakov  <ap@apple.com>
3577
3578         REGRESSION (r216294): The new test fails on WebKit1
3579         https://bugs.webkit.org/show_bug.cgi?id=171780
3580
3581         Rolling back https://trac.webkit.org/r216294, https://trac.webkit.org/r216296,
3582         https://trac.webkit.org/216299, https://trac.webkit.org/216330
3583
3584         * Plugins/PluginView.h:
3585         * Plugins/PluginViewWin.cpp:
3586         (WebCore::PluginView::paint):
3587
3588 2017-05-06  Simon Fraser  <simon.fraser@apple.com>
3589
3590         Fix Windows build after r216294.
3591
3592         * Plugins/PluginView.h:
3593         * Plugins/PluginViewWin.cpp:
3594         (WebCore::PluginView::paint):
3595
3596 2017-05-04  Commit Queue  <commit-queue@webkit.org>
3597
3598         Unreviewed, rolling out r216206.
3599         https://bugs.webkit.org/show_bug.cgi?id=171714
3600
3601         Multiple LayoutTests crashing in Document::page() (Requested
3602         by ap on #webkit).
3603
3604         Reverted changeset:
3605
3606         "Remove support for legacy Notifications"
3607         https://bugs.webkit.org/show_bug.cgi?id=171487
3608         http://trac.webkit.org/changeset/216206
3609
3610 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
3611
3612         [Win] Remove redundant macros that are set in the CMake config
3613         https://bugs.webkit.org/show_bug.cgi?id=171571
3614
3615         Reviewed by Brent Fulgham.
3616
3617         * COMEnumVariant.h:
3618         * COMPropertyBag.h:
3619         * WebKitPrefix.h:
3620
3621 2017-05-04  Sam Weinig  <sam@webkit.org>
3622
3623         Remove support for legacy Notifications
3624         https://bugs.webkit.org/show_bug.cgi?id=171487
3625
3626         Reviewed by Jon Lee.
3627
3628         * WebCoreSupport/WebChromeClient.cpp:
3629         (WebChromeClient::WebChromeClient):
3630         * WebCoreSupport/WebChromeClient.h:
3631         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
3632         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
3633         Remove legacy notification specific code.
3634
3635 2017-04-27  Alex Christensen  <achristensen@webkit.org>
3636
3637         Modernize Frame.h
3638         https://bugs.webkit.org/show_bug.cgi?id=171357
3639
3640         Reviewed by Andy Estes.
3641
3642         * WebCoreSupport/WebEditorClient.cpp:
3643         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
3644         * WebCoreSupport/WebEditorClient.h:
3645
3646 2017-04-20  Fujii Hironori  <Hironori.Fujii@sony.com>
3647
3648         [WinCairo] Fix build break after updating ANGLE
3649         https://bugs.webkit.org/show_bug.cgi?id=170980
3650
3651         Reviewed by Brent Fulgham.
3652
3653         * WebCoreSupport/AcceleratedCompositingContext.cpp: Define GL_GLEXT_PROTOTYPES.
3654
3655 2017-04-19  Brent Fulgham  <bfulgham@apple.com>
3656
3657         [Win] REGRESSION(r215486): Windows Release build is broken
3658         https://bugs.webkit.org/show_bug.cgi?id=171024
3659         <rdar://problem/31722618>
3660
3661         Reviewed by Mark Lam.
3662
3663         Windows WebKit refers to a handful of JSC methods that are always
3664         inline. We need to include 'HeapInlines.h' to get the implementation
3665         of these methods.
3666
3667         * Plugins/PluginPackage.cpp:
3668         * WebFrame.cpp:
3669         * WebView.cpp:
3670
3671 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
3672
3673         Unreviewed, fix the Windows build after r215385
3674
3675         r215385 introduced a new virtual method on ChromeClient that needs to be implemented in WebChromeClient for
3676         Windows in WebKit1.
3677
3678         * WebCoreSupport/WebChromeClient.cpp:
3679         (WebChromeClient::createIconForFiles):
3680         * WebCoreSupport/WebChromeClient.h:
3681
3682 2017-04-10  Chris Dumez  <cdumez@apple.com>
3683
3684         Drop Timer::startOneShot() overload taking a double
3685         https://bugs.webkit.org/show_bug.cgi?id=170659
3686
3687         Reviewed by Yusuke Suzuki.
3688
3689         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
3690
3691         * Plugins/PluginMessageThrottlerWin.cpp:
3692         (WebCore::PluginMessageThrottlerWin::appendMessage):
3693         (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
3694         * Plugins/PluginViewWin.cpp:
3695         (WebCore::PluginView::invalidateRect):
3696         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3697         (AcceleratedCompositingContext::scheduleLayerFlush):
3698
3699 2017-04-09  Chris Dumez  <cdumez@apple.com>
3700
3701         Drop Timer::startRepeating() overload taking a double
3702         https://bugs.webkit.org/show_bug.cgi?id=170656
3703
3704         Reviewed by Yusuke Suzuki.
3705
3706         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
3707
3708         * FullscreenVideoController.cpp:
3709
3710 2017-04-09  Chris Dumez  <cdumez@apple.com>
3711
3712         Start dropping Timer API dealing with double
3713         https://bugs.webkit.org/show_bug.cgi?id=170649
3714
3715         Reviewed by Yusuke Suzuki.
3716
3717         Start dropping Timer API dealing with double as people should use Seconds now.
3718
3719         * Plugins/PluginPackage.cpp:
3720         (WebCore::PluginPackage::freeLibrarySoon):
3721         * Plugins/PluginStream.cpp:
3722         (WebCore::PluginStream::deliverData):
3723         * Plugins/PluginView.cpp:
3724         (WebCore::PluginView::requestTimerFired):
3725         (WebCore::PluginView::scheduleRequest):
3726         (WebCore::PluginView::setJavaScriptPaused):
3727         (WebCore::PluginView::keepAlive):
3728         * Plugins/PluginViewWin.cpp:
3729         (WebCore::PluginView::wndProc):
3730         * WebView.cpp:
3731         (WebView::closeWindowSoon):
3732
3733 2017-04-08  Chris Dumez  <cdumez@apple.com>
3734
3735         Drop std::chrono support from Timer class
3736         https://bugs.webkit.org/show_bug.cgi?id=170645
3737
3738         Reviewed by Sam Weinig.
3739
3740         Drop std::chrono support from Timer class now that we prefer using Seconds type.
3741
3742         * WebView.cpp:
3743         (WebView::setCacheModel):
3744
3745 2017-03-31  Fujii Hironori  <Hironori.Fujii@sony.com>
3746
3747         [WinCairo] WebCore::PlatformDisplay::terminateEGLDisplay causes a crash in libGLESv2.dll while processing atexit
3748         https://bugs.webkit.org/show_bug.cgi?id=170331
3749
3750         Reviewed by Michael Catanzaro.
3751
3752         * WebKitDLL.cpp:
3753         (shutDownWebKit): Call PlatformDisplay::shutDownEglDisplays in shutDownWebKit.
3754
3755 2017-03-30  James Craig  <jcraig@apple.com>
3756
3757         AX: Expose a new AXSubrole for explicit ARIA "group" role
3758         https://bugs.webkit.org/show_bug.cgi?id=169810
3759         <rdar://problem/31039693>
3760
3761         Reviewed by Chris Fleizach.
3762
3763         Account for Windows platform role mapping.
3764
3765         * AccessibleBase.cpp:
3766         (MSAARole):
3767
3768 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
3769
3770         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
3771         https://bugs.webkit.org/show_bug.cgi?id=169168
3772         <rdar://problem/30688374>
3773
3774         Reviewed by Tim Horton.
3775
3776         Minor tweak to adjust for a changed interface. See WebKit and WebCore ChangeLogs for more information.
3777
3778         * WebCoreSupport/WebDragClient.cpp:
3779         (WebDragClient::actionMaskForDrag):
3780         * WebCoreSupport/WebDragClient.h:
3781
3782 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
3783
3784         [Win] Compile fix.
3785         https://bugs.webkit.org/show_bug.cgi?id=169545
3786
3787         Reviewed by Brent Fulgham.
3788
3789         Fix inconsistent dll linkage warnings.
3790  
3791         * WebKitDLL.cpp:
3792         * WebKitDLL.h:
3793
3794 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
3795
3796         Unreviewed Win build fix.
3797         
3798         WebCore::CookiesStrategy::addCookie has been removed, we should also remove the override.
3799
3800         * WebCoreSupport/WebPlatformStrategies.cpp:
3801         (WebPlatformStrategies::addCookie): Deleted.
3802         (WebPlatformStrategies::addCookie): Deleted.
3803         * WebCoreSupport/WebPlatformStrategies.h:
3804
3805 2017-03-10  Brent Fulgham  <bfulgham@apple.com>
3806
3807         [Win] Re-export a few symbols for backwards compatibility
3808         https://bugs.webkit.org/show_bug.cgi?id=169490
3809         <rdar://problem/30983623>
3810
3811         Reviewed by Dean Jackson.
3812
3813         Re-introduce a workaround that re-exports a few JavaScriptCore functions
3814         that had been erroneously exported by WebKit in older builds. This
3815         is needed so that we do not break certain old software still being used.
3816
3817         * WebKitDLL.cpp:
3818         (DllMain): Bind functions at startup.
3819         (bindJavaScriptTrampoline): Find JavaScriptCore library functions and
3820         re-export them from WebKit.dll.
3821         * WebKitDLL.h: Only advertise these functions when building WebKt itself.
3822
3823 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
3824
3825         Expand font-weight and font-stretch to take any number
3826         https://bugs.webkit.org/show_bug.cgi?id=168889
3827
3828         Reviewed by Simon Fraser.
3829
3830         Migrate off old enum types.
3831
3832         * WebKitGraphics.cpp:
3833         (makeFont):
3834
3835 2017-03-02  Sam Weinig  <sam@webkit.org>
3836
3837         Rename htmlediting.h/cpp to Editing.h/cpp
3838         https://bugs.webkit.org/show_bug.cgi?id=169103
3839
3840         Reviewed by Alex Christensen.
3841
3842         * AccessibleTextImpl.cpp:
3843
3844 2017-03-01  Alex Christensen  <achristensen@webkit.org>
3845
3846         Actually fix Windows build.
3847
3848         * WebFrame.cpp:
3849         (WebFrame::invalidate):
3850         r213266 changed Style::Force to ResolveStyleType::Rebuild, so I did so here.
3851
3852 2017-03-01  Alex Christensen  <achristensen@webkit.org>
3853
3854         Fix Windows build after r213266
3855         https://bugs.webkit.org/show_bug.cgi?id=169049
3856
3857         * WebFrame.cpp:
3858         (WebFrame::invalidate):
3859
3860 2017-02-27  Per Arne Vollan  <pvollan@apple.com>
3861
3862         [Win] Http preload tests are failing.
3863         https://bugs.webkit.org/show_bug.cgi?id=168910
3864
3865         Reviewed by Alex Christensen.
3866
3867         The feature is not enabled.
3868
3869         * WebView.cpp:
3870         (WebView::notifyPreferencesChanged):
3871
3872 2017-02-22  Carlos Garcia Campos  <cgarcia@igalia.com>
3873
3874         Better handle Thread and RunLoop initialization
3875         https://bugs.webkit.org/show_bug.cgi?id=167828
3876
3877         Reviewed by Yusuke Suzuki.
3878
3879         Remove unnecessary call to WTF::initializeMainThread().
3880
3881         * WebView.cpp:
3882         (WebView::WebView):
3883
3884 2017-02-20  Per Arne Vollan  <pvollan@apple.com>
3885
3886         [Win] Custom scale factor is not applied in all cases.
3887         https://bugs.webkit.org/show_bug.cgi?id=168117
3888
3889         Reviewed by Brent Fulgham.
3890
3891         We should not call the function deviceScaleFactorForWindow directly, since this
3892         will return the system scale factor, and ignore the custom scale factor.
3893
3894         * WebView.cpp:
3895         (WebView::handleContextMenuEvent):
3896         (WebView::handleMouseEvent):
3897         (WebView::setAcceleratedCompositing):
3898
3899 2017-02-16  Daniel Bates  <dabates@apple.com>
3900
3901         Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr)
3902         https://bugs.webkit.org/show_bug.cgi?id=168417
3903         <rdar://problem/30541748>
3904
3905         Reviewed by Brent Fulgham.
3906
3907         Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a
3908         Widget* as it is always called with a valid Widget.
3909
3910         * WebCoreSupport/WebFrameLoaderClient.cpp:
3911         (WebFrameLoaderClient::redirectDataToPlugin):
3912         * WebCoreSupport/WebFrameLoaderClient.h:
3913
3914 2017-02-15  Anders Carlsson  <andersca@apple.com>
3915
3916         Another attempt at fixing the Windows build.
3917
3918         * WebCoreSupport/WebDragClient.cpp:
3919         (WebDragClient::startDrag):
3920
3921 2017-02-15  Anders Carlsson  <andersca@apple.com>
3922
3923         Try to fix the Windows build.
3924
3925         * WebCoreSupport/WebDragClient.h:
3926
3927 2017-02-15  Anders Carlsson  <andersca@apple.com>
3928
3929         Modernize DragClient::startDrag somewhat
3930         https://bugs.webkit.org/show_bug.cgi?id=168379
3931
3932         Reviewed by Tim Horton.
3933
3934         Update for WebCore changes.
3935
3936         * WebCoreSupport/WebDragClient.cpp:
3937         (WebDragClient::startDrag):
3938
3939 2017-02-10  Daniel Bates  <dabates@apple.com>
3940
3941         Attempt to fix the WinCairo 64-Bit Release build following <https://trac.webkit.org/changeset/212173>
3942         (https://bugs.webkit.org/show_bug.cgi?id=166774)
3943
3944         Touch WebKit.idl in the hopes that it will cause CMake to regenerate the COM interface files.
3945
3946         * Interfaces/WebKit.idl:
3947
3948 2017-02-10  Daniel Bates  <dabates@apple.com>
3949
3950         Detach frame from document when entering page cache
3951         https://bugs.webkit.org/show_bug.cgi?id=166774
3952         <rdar://problem/29904368>
3953
3954         Reviewed by Chris Dumez.
3955
3956         * Interfaces/IWebPreferencesPrivate.idl:
3957         * WebPreferenceKeysPrivate.h:
3958         * WebPreferences.cpp:
3959         (WebPreferences::initializeDefaultSettings):
3960         (WebPreferences::setAllowsPageCacheWithWindowOpener): Deleted.
3961         (WebPreferences::allowsPageCacheWithWindowOpener): Deleted.
3962         * WebPreferences.h:
3963         * WebView.cpp:
3964         (WebView::notifyPreferencesChanged):
3965
3966 2017-02-10  Joseph Pecoraro  <pecoraro@apple.com>
3967
3968         [Resource Timing] Enable Resource Timing by default in Tests
3969         https://bugs.webkit.org/show_bug.cgi?id=168145
3970
3971         Reviewed by Ryosuke Niwa.
3972
3973         * Interfaces/IWebPreferencesPrivate.idl:
3974         * WebPreferenceKeysPrivate.h:
3975         * WebPreferences.cpp:
3976         (WebPreferences::initializeDefaultSettings):
3977         (WebPreferences::setResourceTimingEnabled):
3978         (WebPreferences::resourceTimingEnabled):
3979         * WebPreferences.h:
3980         * WebView.cpp:
3981         (WebView::notifyPreferencesChanged):
3982
3983 2017-02-06  Alex Christensen  <achristensen@webkit.org>
3984
3985         More build fixes after r211751
3986         https://bugs.webkit.org/show_bug.cgi?id=166998
3987
3988         * WebDownloadCFNet.cpp:
3989         (WebDownload::didReceiveAuthenticationChallenge):
3990
3991 2017-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
3992
3993         Rename AnimationController to CSSAnimationController
3994         https://bugs.webkit.org/show_bug.cgi?id=167829
3995
3996         Reviewed by Simon Fraser.
3997
3998         * WebFrame.cpp:
3999
4000 2017-02-02  Wenson Hsieh  <wenson_hsieh@apple.com>
4001
4002         Drag images should be anchored to the mouse location
4003         https://bugs.webkit.org/show_bug.cgi?id=167690
4004         <rdar://problem/30295261>
4005
4006         Reviewed by Enrica Casucci.
4007
4008         Adds some plumbing for the anchor point in the WK1 client layer.
4009
4010         * WebCoreSupport/WebDragClient.cpp:
4011         (WebDragClient::startDrag):
4012         * WebCoreSupport/WebDragClient.h:
4013
4014 2017-02-02  Per Arne Vollan  <pvollan@apple.com>
4015
4016         [Win][HiDPI] Scale factor is applied twice in accelerated compositing mode.
4017         https://bugs.webkit.org/show_bug.cgi?id=167732
4018
4019         Reviewed by Brent Fulgham.
4020
4021         Backing layer should not be scaled when CACFLayerSetContentsScale is used for scaling.
4022
4023         * WebView.cpp:
4024         (WebView::setAcceleratedCompositing):
4025
4026 2017-02-02  Chris Dumez  <cdumez@apple.com>
4027
4028         [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage()
4029         https://bugs.webkit.org/show_bug.cgi?id=167738
4030         <rdar://problem/30229990>
4031
4032         Reviewed by Andreas Kling.
4033
4034         The BackForwardClient no longer needs to worry about removing HistoryItems
4035         from the PageCache now that WebCore takes care of it.
4036
4037         * BackForwardList.cpp:
4038         (BackForwardList::close):
4039
4040 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
4041
4042         Add Link Preload as an off-by-default experimental feature menu item.
4043         https://bugs.webkit.org/show_bug.cgi?id=167201
4044
4045         Reviewed by Ryosuke Niwa.
4046
4047         * WebPreferenceKeysPrivate.h:
4048         * WebPreferences.cpp:
4049         (WebPreferences::initializeDefaultSettings):
4050         (WebPreferences::valueForKey):
4051         (WebPreferences::setLinkPreloadEnabled):
4052         (WebPreferences::linkPreloadEnabled):
4053         * WebPreferences.h:
4054         * Interfaces/IWebPreferencesPrivate.idl:
4055
4056 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
4057
4058         Add User Timing Experimental Feature
4059         https://bugs.webkit.org/show_bug.cgi?id=167542
4060         <rdar://problem/22746307>
4061
4062         Reviewed by Ryosuke Niwa.
4063
4064         * Interfaces/IWebPreferencesPrivate.idl:
4065         * WebPreferenceKeysPrivate.h:
4066         * WebPreferences.cpp:
4067         (WebPreferences::initializeDefaultSettings):
4068         (WebPreferences::setUserTimingEnabled):
4069         (WebPreferences::userTimingEnabled):
4070         * WebPreferences.h:
4071         * WebView.cpp:
4072         (WebView::notifyPreferencesChanged):
4073         Add setting for User Timing runtime enabled feature.
4074
4075 2017-01-26  Chris Dumez  <cdumez@apple.com>
4076
4077         Crash when navigating back to a page in PacheCache when one of its frames has been removed
4078         https://bugs.webkit.org/show_bug.cgi?id=167421
4079         <rdar://problem/30188490>
4080
4081         Reviewed by Darin Adler.
4082
4083         Add a new setting allowing layout tests to enable PageCache in a window
4084         that has an opener, for convenience.
4085
4086         * WebPreferenceKeysPrivate.h:
4087         * WebPreferences.cpp:
4088         (WebPreferences::initializeDefaultSettings):
4089         * WebPreferences.h:
4090
4091 2017-01-26  Keith Miller  <keith_miller@apple.com>
4092
4093         classInfo should take a VM so it is not materialized from the object on each call
4094         https://bugs.webkit.org/show_bug.cgi?id=167424
4095
4096         Rubber Stamped by Michael Saboff.
4097
4098         Previously, classInfo() would get the VM from the target's
4099         MarkedBlock.  Most callers already have a VM on hand, so it is
4100         wasteful to compute the VM from the marked block every time. This
4101         patch refactors some of the most common callers of classInfo(),
4102         jsDynamicCast and inherits to take a VM as well.
4103
4104         * WebFrame.cpp:
4105         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
4106         * WebView.cpp:
4107         (WebView::elementFromJS):
4108
4109 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
4110
4111         Crash when setting custom scale factor.
4112         https://bugs.webkit.org/show_bug.cgi?id=167369
4113
4114         Reviewed by Sam Weinig.
4115
4116         Add null pointer check.
4117
4118         * WebView.cpp:
4119         (WebView::setCustomBackingScaleFactor):
4120
4121 2017-01-24  Youenn Fablet  <youennf@gmail.com>
4122
4123         [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations
4124         https://bugs.webkit.org/show_bug.cgi?id=167294
4125
4126         Reviewed by Alex Christensen.
4127
4128         * WebView.cpp:
4129         (WebView::initWithFrame):
4130
4131 2017-01-23  Chris Dumez  <cdumez@apple.com>
4132
4133         REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr<WebCore::Element>::operator* const + 70
4134         https://bugs.webkit.org/show_bug.cgi?id=167308
4135         <rdar://problem/30144964>
4136
4137         Unreviewed, do a partial revert of r211033 to fix assertion.
4138
4139         * WebCoreSupport/WebChromeClient.cpp:
4140         (WebChromeClient::exitFullScreenForElement):
4141
4142 2017-01-20  Darin Adler  <darin@apple.com>
4143
4144         Remove PassRefPtr from "page" directory of WebCore, also deploy references
4145         https://bugs.webkit.org/show_bug.cgi?id=167224
4146
4147         Reviewed by Chris Dumez.
4148
4149         * Plugins/PluginView.cpp:
4150         (WebCore::PluginView::status): Pass reference.
4151         (WebCore::PluginView::focusPluginElement): Ditto.
4152
4153         * WebCoreSupport/WebChromeClient.cpp:
4154         (WebChromeClient::createWindow): Updated for change to ChromeClient.
4155         (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto.
4156         (WebChromeClient::runJavaScriptAlert): Ditto.
4157         (WebChromeClient::runJavaScriptConfirm): Ditto.
4158         (WebChromeClient::runJavaScriptPrompt): Ditto.
4159         (WebChromeClient::contentsSizeChanged): Ditto.