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