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