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