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