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