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