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