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