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