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