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