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