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