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