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