REGRESSION (r219013): OAuth flows are broken when redirecting back to application...
[WebKit.git] / Source / WebKitLegacy / win / ChangeLog
1 2017-08-09  Daniel Bates  <dabates@apple.com>
2
3         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
4         https://bugs.webkit.org/show_bug.cgi?id=175247
5         <rdar://problem/33679804>
6
7         Reviewed by Brady Eidson.
8
9         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
10         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
11         clients that need to make use of this information at this time. If such a needs comes up
12         then we can expose API/SPI similar to what we do for WebKit.
13
14         * WebCoreSupport/WebFrameLoaderClient.cpp:
15         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
16         * WebCoreSupport/WebFrameLoaderClient.h:
17
18 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
19
20         Async image decoding for large images should be disabled after the first time a tile is painted
21         https://bugs.webkit.org/show_bug.cgi?id=174451
22         <rdar://problem/31246421>
23
24         Reviewed by Simon Fraser.
25
26         * FullscreenVideoController.cpp:
27         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
28         * WebCoreSupport/AcceleratedCompositingContext.cpp:
29         (AcceleratedCompositingContext::paintContents):
30         * WebCoreSupport/AcceleratedCompositingContext.h:
31
32 2017-07-23  Darin Adler  <darin@apple.com>
33
34         More NeverDestroyed and related cleanup
35         https://bugs.webkit.org/show_bug.cgi?id=174745
36
37         Reviewed by Alex Christensen.
38
39         * Plugins/PluginDatabase.cpp:
40         (WebCore::persistentPluginMetadataCachePath): Use NeverDestroyed
41         instead of DEPRECATED_DEFINE_STATIC_LOCAL.
42         * Plugins/PluginMainThreadScheduler.cpp:
43         (WebCore::PluginMainThreadScheduler::scheduler): Ditto.
44         * Plugins/PluginMainThreadScheduler.h: Ditto.
45         * WebCoreSupport/WebPlatformStrategies.cpp:
46         (WebPlatformStrategies::initialize): Ditto.
47         * WebCoreSupport/WebPlatformStrategies.h: Ditto.
48         * WebHistory.cpp:
49         (sharedHistoryStorage): Ditto.
50         * WebLocalizableStrings.cpp:
51         (mainBundleLocStrings): Ditto.
52         (frameworkLocStringsMutex): Ditto.
53         (frameworkLocStrings): Ditto.
54         * WebView.cpp:
55         (WebView::standardUserAgentWithApplicationName): Ditto.
56         Also changed to keep one global string with the prefix of the user agent string
57         instead of keeping two globals with pieces of that prefix.
58
59 2017-07-24  Chris Dumez  <cdumez@apple.com>
60
61         Make ExceptionCode a proper enumeration
62         https://bugs.webkit.org/show_bug.cgi?id=174771
63
64         Reviewed by Sam Weinig.
65
66         Make ExceptionCode a proper enumeration instead of a typedef to uint8_t.
67
68         * DOMCoreClasses.cpp:
69         (DOMDocument::createEvent):
70         * WebView.cpp:
71         (WebView::prepareCandidateWindow):
72
73 2017-07-21  Andreas Kling  <akling@apple.com>
74
75         Use more references in event dispatch code
76         https://bugs.webkit.org/show_bug.cgi?id=174681
77
78         Reviewed by Geoffrey Garen.
79
80         * DOMEventsClasses.cpp:
81         (WebEventListener::handleEvent):
82         * DOMEventsClasses.h:
83         * Plugins/PluginView.cpp:
84         (WebCore::PluginView::handleEvent):
85         * Plugins/PluginView.h:
86
87 2017-07-20  Brady Eidson  <beidson@apple.com>
88
89         Remove WebIconDatabase from WebKitLegacy/win.
90         https://bugs.webkit.org/show_bug.cgi?id=174608
91
92         Reviewed by Alex Christensen.
93
94         It is unused.
95         
96         * ForEachCoClass.h:
97
98         * Interfaces/IWebIconDatabase.idl: Removed.
99
100         * Interfaces/WebKit.idl:
101
102         * WebCoreStatistics.cpp:
103         (WebCoreStatistics::iconPageURLMappingCount):
104         (WebCoreStatistics::iconRetainedPageURLCount):
105         (WebCoreStatistics::iconRecordCount):
106         (WebCoreStatistics::iconsWithDataCount):
107
108         * WebIconDatabase.cpp: Removed.
109         * WebIconDatabase.h: Removed.
110         * WebKitClassFactory.cpp:
111
112         * WebKitDLL.cpp:
113         (shutDownWebKit):
114
115         * WebKitLogging.h:
116
117         * WebView.cpp:
118         (WebView::close):
119         (WebView::notifyDidAddIcon):
120         (WebView::registerForIconNotification):
121         (WebView::dispatchDidReceiveIconFromWebFrame):
122         (WebView::onNotify):
123
124 2017-07-18  Matt Lewis  <jlewis3@apple.com>
125
126         Unreviewed, rolling out r219610.
127
128         This caused an api failure on all platforms for the test
129         SnapshotImageLargeAsyncDecoding
130
131         Reverted changeset:
132
133         "Async image decoding for large images should be disabled
134         after the first time a tile is painted"
135         https://bugs.webkit.org/show_bug.cgi?id=174451
136         http://trac.webkit.org/changeset/219610
137
138 2017-07-18  Said Abou-Hallawa  <sabouhallawa@apple.com>
139
140         Async image decoding for large images should be disabled after the first time a tile is painted
141         https://bugs.webkit.org/show_bug.cgi?id=174451
142
143         Reviewed by Simon Fraser.
144
145         * FullscreenVideoController.cpp:
146         (FullscreenVideoController::LayerClient::platformCALayerPaintContents):
147         * WebCoreSupport/AcceleratedCompositingContext.cpp:
148         (AcceleratedCompositingContext::paintContents):
149         * WebCoreSupport/AcceleratedCompositingContext.h:
150
151 2017-07-14  Basuke Suzuki  <Basuke.Suzuki@sony.com>
152
153         [Curl] Don't start downloading more than once for same request
154         https://bugs.webkit.org/show_bug.cgi?id=174172
155
156         Reviewed by Alex Christensen.
157
158         * WebDownloadCurl.cpp:
159         (WebDownload::init):
160
161 2017-07-12  Daniel Bates  <dabates@apple.com>
162
163         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
164         https://bugs.webkit.org/show_bug.cgi?id=174427
165
166         Rubber-stamped by Brady Eidson.
167
168         * Plugins/PluginView.cpp:
169         (WebCore::PluginView::start):
170         (WebCore::PluginView::getURLNotify):
171         (WebCore::PluginView::getURL):
172         (WebCore::PluginView::handlePost):
173
174 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
175
176         [WTF] Move SoftLinking.h into WTF
177         https://bugs.webkit.org/show_bug.cgi?id=174000
178
179         Reviewed by Alex Christensen.
180
181         * WebKitClassFactory.cpp:
182         * WebView.cpp:
183
184 2017-07-05  Brady Eidson  <beidson@apple.com>
185
186         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
187         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
188
189         Reviewed by Alex Christensen.
190
191         Adopt to the new constructor for FrameLoadRequest.
192
193         * Plugins/PluginView.cpp:
194         (WebCore::PluginView::start):
195         (WebCore::PluginView::getURLNotify):
196         (WebCore::PluginView::getURL):
197         (WebCore::PluginView::handlePost):
198
199 2017-07-03  Brady Eidson  <beidson@apple.com>
200
201         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
202         https://bugs.webkit.org/show_bug.cgi?id=174073
203
204         Reviewed by Andy Estes.
205
206         * WebCoreSupport/WebFrameLoaderClient.cpp:
207         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
208         (WebFrameLoaderClient::registerForIconNotification): Deleted.
209         * WebCoreSupport/WebFrameLoaderClient.h:
210
211 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
212
213         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
214         https://bugs.webkit.org/show_bug.cgi?id=174004
215
216         Reviewed by Simon Fraser.
217
218         * WebCoreSupport/WebFrameLoaderClient.cpp:
219         (WebFrameLoaderClient::transitionToCommittedForNewPage):
220
221 2017-06-30  Daniel Bates  <dabates@apple.com>
222
223         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
224         https://bugs.webkit.org/show_bug.cgi?id=165160
225         <rdar://problem/29451999>
226
227         Reviewed by Brady Eidson.
228
229         Pass the document that is requesting the load to the loader.
230
231         * Plugins/PluginView.cpp:
232         (WebCore::PluginView::start):
233         (WebCore::PluginView::getURLNotify):
234         (WebCore::PluginView::getURL):
235         (WebCore::PluginView::handlePost):
236
237 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
238
239         Refactor drag start codepaths to plumb a DragItem to client layers
240         https://bugs.webkit.org/show_bug.cgi?id=173832
241         Work towards <rdar://problem/32236827>
242
243         Reviewed by Ryosuke Niwa and Tim Horton.
244
245         Adjust for changes to WebDragClient::startDrag by pulling information out of DragItem.
246
247         * WebCoreSupport/WebDragClient.cpp:
248         (WebDragClient::startDrag):
249         * WebCoreSupport/WebDragClient.h:
250
251 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
252
253         Remove excessive headers from JavaScriptCore
254         https://bugs.webkit.org/show_bug.cgi?id=173812
255
256         Reviewed by Darin Adler.
257
258         * Plugins/PluginPackage.cpp:
259
260 2017-06-22  Daniel Bates  <dabates@apple.com>
261
262         Make FrameLoadRequest a move-only type
263         https://bugs.webkit.org/show_bug.cgi?id=173682
264
265         Reviewed by Alex Christensen and Darin Adler.
266
267         A FrameLoadRequest groups together the information to perform a load into a single object
268         that is more manageable to pass around than its constituent parts. Code that receives a
269         FrameLoadRequest is expected to extract out the information it needs to complete its task.
270         And it does not make sense to re-use the same FrameLoadRequest object for more than one
271         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
272
273         * Plugins/PluginView.cpp:
274         (WebCore::PluginView::start):
275         (WebCore::PluginView::performRequest):
276         (WebCore::PluginView::load):
277         (WebCore::PluginView::getURLNotify):
278         (WebCore::PluginView::getURL):
279         (WebCore::PluginView::handlePost):
280         * Plugins/PluginView.h:
281         (WebCore::PluginRequest::PluginRequest):
282
283 2017-06-22  Daniel Bates  <dabates@apple.com>
284
285         [Win] Cleanup: Remove unnecessary include of header FrameLoadRequest.h
286         https://bugs.webkit.org/show_bug.cgi?id=173683
287
288         Reviewed by Alex Christensen.
289
290         Neither file PluginViewWin.cpp nor WebContextMenuClient.cpp need to include
291         header FrameLoadRequest.h. The former includes FrameLoadRequest.h indirectly
292         by including PluginView.h. The latter does not make use of the functionality
293         provided by FrameLoadRequest.h.
294
295         * Plugins/PluginViewWin.cpp:
296         * WebCoreSupport/WebContextMenuClient.cpp:
297
298 2017-06-21  Daniel Bates  <dabates@apple.com>
299
300         Cleanup FrameLoadRequest
301         https://bugs.webkit.org/show_bug.cgi?id=173564
302         <rdar://problem/32903570>
303
304         Reviewed by Brent Fulgham.
305
306         * Plugins/PluginView.cpp:
307         (WebCore::PluginView::start): Explicitly pass an empty ResourceRequest (we populate it after
308         we instantiate the FrameLoadRequest) and pass the null-string for the target frame name as
309         we do not have one. Use C++11 brace initialization syntax.
310         (WebCore::PluginView::getURLNotify): Explicitly pass the null-string for the target frame
311         name as we do not have one. Use C++11 brace initialization syntax.
312         (WebCore::PluginView::getURL): Ditto.
313         (WebCore::PluginView::handlePost): Move instantiation of FrameLoadRequest from the top of the
314         function to closer to where it is actually used. Explicitly pass the null-string for the target
315         frame name as we do not have one. Use C++11 brace initialization syntax.
316
317 2017-06-20  Daniel Bates  <dabates@apple.com>
318
319         Have FrameLoadRequest takes a Frame& instead of a Frame*
320         https://bugs.webkit.org/show_bug.cgi?id=173614
321         <rdar://problem/32884890>
322
323         Reviewed by Brent Fulgham.
324
325         * Plugins/PluginView.cpp:
326         (WebCore::PluginView::performRequest):
327         * WebFrame.cpp:
328         (WebFrame::loadRequest):
329
330 2017-06-19  Chris Dumez  <cdumez@apple.com>
331
332         Use WTF::Function instead of std::function in more places in WebCore/
333         https://bugs.webkit.org/show_bug.cgi?id=173535
334
335         Reviewed by Antti Koivisto.
336
337         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
338
339         * WebCoreSupport/WebFrameLoaderClient.cpp:
340         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
341         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
342         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
343         (WebFrameLoaderClient::dispatchWillSubmitForm):
344         (WebFrameLoaderClient::setUpPolicyListener):
345         (WebFrameLoaderClient::receivedPolicyDecision):
346         * WebCoreSupport/WebFrameLoaderClient.h:
347
348 2017-05-14 Frederic Wang  <fwang@igalia.com>
349
350         Add heuristic to avoid flattening "fullscreen" iframes
351         https://bugs.webkit.org/show_bug.cgi?id=171914
352
353         Reviewed by Simon Fraser.
354
355         This commit ajusts the window port to internally use the new preference type for frame flattening.
356         However, the "partial frame flattening" value is not exposed yet.
357
358         * WebView.cpp:
359         (WebView::notifyPreferencesChanged): Use the new type for frame flattening.
360
361 2017-06-17  Chris Dumez  <cdumez@apple.com>
362
363         Use WTF::Function instead of std::function in WebKit2/
364         https://bugs.webkit.org/show_bug.cgi?id=173504
365
366         Reviewed by Darin Adler.
367
368         Use WTF::Function instead of std::function in WebKit2/ to avoid
369         unnecessary copying.
370
371         * Plugins/PluginStream.cpp:
372         (WebCore::PluginStream::willSendRequest):
373         * Plugins/PluginStream.h:
374
375 2017-06-16  Sam Weinig  <sam@webkit.org>
376
377         [WebIDL] Remove custom bindings for HTMLDocument
378         https://bugs.webkit.org/show_bug.cgi?id=173444
379
380         Reviewed by Darin Adler.
381
382         * DOMHTMLClasses.cpp:
383         (DOMHTMLDocument::write):
384         (DOMHTMLDocument::writeln):
385         Update for new signature of write/writeln.
386
387 2017-06-16  Daniel Bates  <dabates@apple.com>
388
389         Cleanup: WebContextMenuClient::searchWithGoogle() should parse URL using URL { URL { }, ... }
390         instead of URL { ParsedURLString, ... }
391         https://bugs.webkit.org/show_bug.cgi?id=173495
392         <rdar://problem/32827445>
393
394         Reviewed by Alex Christensen.
395
396         URL(ParsedURLString, ...) should only be used with a string that was the result of URL::string().
397         Otherwise, it will cause an assertion failure if the canonicalized URL differs from the string.
398         Although it is unlikely that the hardcoded string in WebContextMenuClient::searchWithGoogle()
399         would differ from the canonicalized URL it is best practice to use URL(URL(), ...) to
400         parse an arbitrary string that looks like a URL.
401
402         Also modernize the code using C++14 idioms.
403
404         * WebCoreSupport/WebContextMenuClient.cpp:
405         (WebContextMenuClient::searchWithGoogle):
406
407 2017-06-15  Fujii Hironori  <Hironori.Fujii@sony.com>
408
409         [Win] WebKit shouldn't include the forwarding header of WebKit itself
410         https://bugs.webkit.org/show_bug.cgi?id=173352
411
412         Reviewed by Alex Christensen.
413
414         * WebKitPrefix.h: Include WebKit.h of DerivedSources/WebKit instead of DerivedSources/ForwardingHeaders.
415
416 2017-06-14  Per Arne Vollan  <pvollan@apple.com>
417
418         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
419         https://bugs.webkit.org/show_bug.cgi?id=173318
420
421         Reviewed by Darin Adler.
422
423         The logical frame size is currently calculated by scaling the frame size in pixels,
424         and rounding the coordinates to the nearest integers. The computed logical frame
425         size will in some cases be smaller than the scaled frame size in pixels, since it is
426         represented as an IntSize. In these cases, the bottom line will not be painted.
427         Instead of calculating the logical frame size by rounding the scaled frame in
428         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
429
430         * WebCoreSupport/WebFrameLoaderClient.cpp:
431         (WebFrameLoaderClient::transitionToCommittedForNewPage):
432
433 2017-06-13  Daniel Bates  <dabates@apple.com>
434
435         Implement W3C Secure Contexts Draft Specification
436         https://bugs.webkit.org/show_bug.cgi?id=158121
437         <rdar://problem/26012994>
438
439         Reviewed by Brent Fulgham.
440
441         Part 4
442
443         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
444
445         * Interfaces/IWebPreferencesPrivate.idl: Bump the version.
446         * WebPreferenceKeysPrivate.h:
447         * WebPreferences.cpp:
448         (WebPreferences::initializeDefaultSettings):
449         (WebPreferences::QueryInterface):
450         (WebPreferences::setIsSecureContextAttributeEnabled):
451         (WebPreferences::isSecureContextAttributeEnabled):
452         * WebPreferences.h:
453         * WebView.cpp:
454         (WebView::notifyPreferencesChanged):
455
456 2017-06-13  Per Arne Vollan  <pvollan@apple.com>
457
458         [Win] WebKit fails to paint the bottom lines of the window at 125% scale.
459         https://bugs.webkit.org/show_bug.cgi?id=173318
460
461         Reviewed by Alex Christensen.
462
463         The logical frame size is currently calculated by scaling the frame size in pixels,
464         and rounding the coordinates to the nearest integers. The computed logical frame
465         size will in some cases be smaller than the scaled frame size in pixels, since it is
466         represented as an IntSize. In these cases, the bottom line will not be painted.
467         Instead of calculating the logical frame size by rounding the scaled frame in
468         pixels, find the enclosing rectangle of the scaled frame rectangle in pixels.
469  
470         * WebView.cpp:
471         (WebView::sizeChanged):
472
473 2017-06-13  Sam Weinig  <sam@webkit.org>
474
475         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
476         https://bugs.webkit.org/show_bug.cgi?id=80733
477
478         Reviewed by Chris Dumez.
479
480         * WebFrame.cpp:
481         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
482
483 2017-06-12  Daewoong Jang  <daewoong.jang@navercorp.com>
484
485         Remove WebCore::unloadModule and related data types
486         https://bugs.webkit.org/show_bug.cgi?id=173231
487
488         Reviewed by Darin Adler.
489
490         * Plugins/PlatformModule.h: Added.
491         (WebCore::PlatformModuleVersion::PlatformModuleVersion):
492         * Plugins/PluginPackage.cpp:
493         (WebCore::PluginPackage::freeLibraryTimerFired):
494         * Plugins/PluginPackage.h:
495
496 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
497
498         [iOS DnD] Add a hook to perform two-step drops in editable content
499         https://bugs.webkit.org/show_bug.cgi?id=172992
500         <rdar://problem/32590174>
501
502         Reviewed by Tim Horton.
503
504         Add a stub implementation for performTwoStepDrop on Windows.
505
506         * WebCoreSupport/WebEditorClient.h:
507
508 2017-06-04  Konstantin Tokarev  <annulen@yandex.ru>
509
510         Fix build of Windows-specific code with ICU 59.1
511         https://bugs.webkit.org/show_bug.cgi?id=172729
512
513         Reviewed by Darin Adler.
514
515         Fix conversions from WTF::String to wchar_t* and vice versa.
516
517         * Plugins/PluginDatabaseWin.cpp:
518         (WebCore::addPluginPathsFromRegistry):
519         (WebCore::PluginDatabase::getPluginPathsInDirectories):
520         (WebCore::addMozillaPluginDirectories):
521         (WebCore::addWindowsMediaPlayerPluginDirectory):
522         (WebCore::addAdobeAcrobatPluginDirectory):
523         (WebCore::addJavaPluginDirectory):
524         (WebCore::safariPluginsDirectory):
525         (WebCore::addMacromediaPluginDirectories):
526         * Plugins/PluginPackageWin.cpp:
527         (WebCore::getVersionInfo):
528         (WebCore::PluginPackage::fetchInfo):
529         (WebCore::PluginPackage::load):
530         * Plugins/PluginViewWin.cpp:
531         (WebCore::PluginView::handlePostReadFile):
532
533 2017-05-30  Per Arne Vollan  <pvollan@apple.com>
534
535         [Win] fast/shadow-dom/fullscreen-in-slot-fullscreenElement.html is flaky.
536         https://bugs.webkit.org/show_bug.cgi?id=172709
537
538         Reviewed by Brent Fulgham.
539
540         Add method to exit fullscreen mode.
541
542         * Interfaces/IWebViewPrivate.idl:
543         * WebView.cpp:
544         (WebView::exitFullscreenIfNeeded):
545         * WebView.h:
546
547 2017-05-24  Per Arne Vollan  <pvollan@apple.com>
548
549         [Win] Create unique network storage session for each DRT.
550         https://bugs.webkit.org/show_bug.cgi?id=172540
551
552         Reviewed by Brent Fulgham.
553
554         During layout testing, each DRT instance should have its own network storage session.
555
556         * Interfaces/IWebPreferencesPrivate.idl:
557         * WebPreferences.cpp:
558         (WebPreferences::switchNetworkLoaderToNewTestingSession):
559         * WebPreferences.h:
560
561 2017-05-24  Fujii Hironori  <Hironori.Fujii@sony.com>
562
563         [WinCairo] AcceleratedCompositingContext.h: error C3668: 'AcceleratedCompositingContext::paintContents': method with override specifier 'override' did not override any base class methods
564         https://bugs.webkit.org/show_bug.cgi?id=172535
565
566         Reviewed by Konstantin Tokarev.
567
568         * WebCoreSupport/AcceleratedCompositingContext.cpp:
569         (AcceleratedCompositingContext::paintContents): Append the fifth argument.
570         * WebCoreSupport/AcceleratedCompositingContext.h: Ditto.
571
572 2017-05-14  Per Arne Vollan  <pvollan@apple.com>
573
574         [Win] fast/cookies/local-file-can-set-cookies.html is flaky.
575         https://bugs.webkit.org/show_bug.cgi?id=172071
576
577         Reviewed by Alexey Proskuryakov.
578
579         We need to delete all cookies after each test.
580
581         * Interfaces/IWebPreferencesPrivate.idl:
582         * WebPreferences.cpp:
583         (WebPreferences::linkPreloadEnabled):
584         (WebPreferences::clearNetworkLoaderSession):
585         * WebPreferences.h:
586
587 2017-05-13  Chris Dumez  <cdumez@apple.com>
588
589         Stop using RefPtr::release()
590         https://bugs.webkit.org/show_bug.cgi?id=172074
591
592         Reviewed by Geoffrey Garen.
593
594         * WebFrame.cpp:
595         (WebFrame::loadPlainTextString):
596         (WebFrame::loadHTMLString):
597         * WebFramePolicyListener.cpp:
598         (WebFramePolicyListener::receivedPolicyDecision):
599
600 2017-05-13  Chris Dumez  <cdumez@apple.com>
601
602         Drop uses of PassRefPtr in WebKit/win
603         https://bugs.webkit.org/show_bug.cgi?id=172067
604
605         Reviewed by Yusuke Suzuki.
606
607         * DOMEventsClasses.cpp:
608         (DOMEvent::DOMEvent):
609         (DOMEvent::createInstance):
610         * DOMEventsClasses.h:
611         (DOMUIEvent::DOMUIEvent):
612         (DOMKeyboardEvent::DOMKeyboardEvent):
613         (DOMMouseEvent::DOMMouseEvent):
614         (DOMMutationEvent::DOMMutationEvent):
615         (DOMOverflowEvent::DOMOverflowEvent):
616         (DOMWheelEvent::DOMWheelEvent):
617         * MemoryStream.cpp:
618         (MemoryStream::MemoryStream):
619         (MemoryStream::createInstance):
620         * MemoryStream.h:
621         * Plugins/PluginDatabase.cpp:
622         (WebCore::PluginDatabase::refresh):
623         (WebCore::PluginDatabase::add):
624         (WebCore::PluginDatabase::loadPersistentMetadataCache):
625         * Plugins/PluginDatabase.h:
626         * Plugins/PluginPackage.cpp:
627         (WebCore::PluginPackage::createPackage):
628         (WebCore::PluginPackage::createPackageFromCache):
629         * Plugins/PluginPackage.h:
630         * Plugins/PluginStream.h:
631         (WebCore::PluginStream::create):
632         * WebActionPropertyBag.cpp:
633         (WebActionPropertyBag::WebActionPropertyBag):
634         (WebActionPropertyBag::createInstance):
635         * WebActionPropertyBag.h:
636         * WebArchive.cpp:
637         (WebArchive::createInstance):
638         (WebArchive::WebArchive):
639         * WebArchive.h:
640         * WebBackForwardList.cpp:
641         (WebBackForwardList::WebBackForwardList):
642         (WebBackForwardList::createInstance):
643         * WebBackForwardList.h:
644         * WebCoreSupport/EmbeddedWidget.cpp:
645         (EmbeddedWidget::create):
646         * WebCoreSupport/EmbeddedWidget.h:
647         * WebCoreSupport/WebChromeClient.h:
648         * WebFrame.cpp:
649         (WebFrame::loadData):
650         (WebFrame::createSubframeWithOwnerElement):
651         * WebFrame.h:
652         * WebFramePolicyListener.cpp:
653         (WebFramePolicyListener::WebFramePolicyListener):
654         (WebFramePolicyListener::createInstance):
655         * WebFramePolicyListener.h:
656         * WebGeolocationPolicyListener.cpp:
657         (WebGeolocationPolicyListener::createInstance):
658         (WebGeolocationPolicyListener::WebGeolocationPolicyListener):
659         * WebGeolocationPolicyListener.h:
660         * WebHistoryItem.cpp:
661         (WebHistoryItem::WebHistoryItem):
662         (WebHistoryItem::createInstance):
663         * WebHistoryItem.h:
664         * WebMutableURLRequest.cpp:
665         (WebMutableURLRequest::setFormData):
666         (WebMutableURLRequest::formData):
667         * WebMutableURLRequest.h:
668         * WebResource.cpp:
669         (WebResource::createInstance):
670         * WebResource.h:
671         * WebScriptWorld.cpp:
672         (WebScriptWorld::WebScriptWorld):
673         (WebScriptWorld::createInstance):
674         * WebScriptWorld.h:
675         * WebURLAuthenticationChallengeSender.cpp:
676         (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
677         (WebURLAuthenticationChallengeSender::createInstance):
678         * WebURLAuthenticationChallengeSender.h:
679         * WebView.cpp:
680         (WebView::setFullScreenElement):
681         * WebView.h:
682
683 2017-05-11  Chris Dumez  <cdumez@apple.com>
684
685         Drop remaining uses of PassRefPtr in WebCore
686         https://bugs.webkit.org/show_bug.cgi?id=172013
687
688         Reviewed by Yusuke Suzuki.
689
690         * Plugins/PluginView.cpp:
691         (WebCore::PluginView::bindingInstance):
692
693 2017-05-11  Chris Dumez  <cdumez@apple.com>
694
695         Stop using PassRefPtr in platform/graphics
696         https://bugs.webkit.org/show_bug.cgi?id=171977
697
698         Reviewed by Alex Christensen.
699
700         Build fix.
701
702         * FullscreenVideoController.cpp:
703         (FullscreenVideoController::enterFullscreen):
704         * WebKitDLL.cpp:
705         (loadResourceIntoBuffer):
706
707 2017-05-09  Sam Weinig  <sam@webkit.org>
708
709         Remove support for legacy Notifications
710         https://bugs.webkit.org/show_bug.cgi?id=171487
711
712         Reviewed by Jon Lee.
713
714         * WebCoreSupport/WebChromeClient.cpp:
715         (WebChromeClient::WebChromeClient):
716         * WebCoreSupport/WebChromeClient.h:
717         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
718         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
719         Remove legacy notification specific code.
720
721 2017-05-09  Dean Jackson  <dino@apple.com>
722
723         Fix Windows build.
724
725         * Plugins/PluginView.h:
726         * Plugins/PluginViewWin.cpp:
727         (WebCore::PluginView::paint):
728
729 2017-05-06  Alexey Proskuryakov  <ap@apple.com>
730
731         REGRESSION (r216294): The new test fails on WebKit1
732         https://bugs.webkit.org/show_bug.cgi?id=171780
733
734         Rolling back https://trac.webkit.org/r216294, https://trac.webkit.org/r216296,
735         https://trac.webkit.org/216299, https://trac.webkit.org/216330
736
737         * Plugins/PluginView.h:
738         * Plugins/PluginViewWin.cpp:
739         (WebCore::PluginView::paint):
740
741 2017-05-06  Simon Fraser  <simon.fraser@apple.com>
742
743         Fix Windows build after r216294.
744
745         * Plugins/PluginView.h:
746         * Plugins/PluginViewWin.cpp:
747         (WebCore::PluginView::paint):
748
749 2017-05-04  Commit Queue  <commit-queue@webkit.org>
750
751         Unreviewed, rolling out r216206.
752         https://bugs.webkit.org/show_bug.cgi?id=171714
753
754         Multiple LayoutTests crashing in Document::page() (Requested
755         by ap on #webkit).
756
757         Reverted changeset:
758
759         "Remove support for legacy Notifications"
760         https://bugs.webkit.org/show_bug.cgi?id=171487
761         http://trac.webkit.org/changeset/216206
762
763 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
764
765         [Win] Remove redundant macros that are set in the CMake config
766         https://bugs.webkit.org/show_bug.cgi?id=171571
767
768         Reviewed by Brent Fulgham.
769
770         * COMEnumVariant.h:
771         * COMPropertyBag.h:
772         * WebKitPrefix.h:
773
774 2017-05-04  Sam Weinig  <sam@webkit.org>
775
776         Remove support for legacy Notifications
777         https://bugs.webkit.org/show_bug.cgi?id=171487
778
779         Reviewed by Jon Lee.
780
781         * WebCoreSupport/WebChromeClient.cpp:
782         (WebChromeClient::WebChromeClient):
783         * WebCoreSupport/WebChromeClient.h:
784         * WebCoreSupport/WebDesktopNotificationsDelegate.cpp:
785         * WebCoreSupport/WebDesktopNotificationsDelegate.h:
786         Remove legacy notification specific code.
787
788 2017-04-27  Alex Christensen  <achristensen@webkit.org>
789
790         Modernize Frame.h
791         https://bugs.webkit.org/show_bug.cgi?id=171357
792
793         Reviewed by Andy Estes.
794
795         * WebCoreSupport/WebEditorClient.cpp:
796         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
797         * WebCoreSupport/WebEditorClient.h:
798
799 2017-04-20  Fujii Hironori  <Hironori.Fujii@sony.com>
800
801         [WinCairo] Fix build break after updating ANGLE
802         https://bugs.webkit.org/show_bug.cgi?id=170980
803
804         Reviewed by Brent Fulgham.
805
806         * WebCoreSupport/AcceleratedCompositingContext.cpp: Define GL_GLEXT_PROTOTYPES.
807
808 2017-04-19  Brent Fulgham  <bfulgham@apple.com>
809
810         [Win] REGRESSION(r215486): Windows Release build is broken
811         https://bugs.webkit.org/show_bug.cgi?id=171024
812         <rdar://problem/31722618>
813
814         Reviewed by Mark Lam.
815
816         Windows WebKit refers to a handful of JSC methods that are always
817         inline. We need to include 'HeapInlines.h' to get the implementation
818         of these methods.
819
820         * Plugins/PluginPackage.cpp:
821         * WebFrame.cpp:
822         * WebView.cpp:
823
824 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
825
826         Unreviewed, fix the Windows build after r215385
827
828         r215385 introduced a new virtual method on ChromeClient that needs to be implemented in WebChromeClient for
829         Windows in WebKit1.
830
831         * WebCoreSupport/WebChromeClient.cpp:
832         (WebChromeClient::createIconForFiles):
833         * WebCoreSupport/WebChromeClient.h:
834
835 2017-04-10  Chris Dumez  <cdumez@apple.com>
836
837         Drop Timer::startOneShot() overload taking a double
838         https://bugs.webkit.org/show_bug.cgi?id=170659
839
840         Reviewed by Yusuke Suzuki.
841
842         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
843
844         * Plugins/PluginMessageThrottlerWin.cpp:
845         (WebCore::PluginMessageThrottlerWin::appendMessage):
846         (WebCore::PluginMessageThrottlerWin::messageThrottleTimerFired):
847         * Plugins/PluginViewWin.cpp:
848         (WebCore::PluginView::invalidateRect):
849         * WebCoreSupport/AcceleratedCompositingContext.cpp:
850         (AcceleratedCompositingContext::scheduleLayerFlush):
851
852 2017-04-09  Chris Dumez  <cdumez@apple.com>
853
854         Drop Timer::startRepeating() overload taking a double
855         https://bugs.webkit.org/show_bug.cgi?id=170656
856
857         Reviewed by Yusuke Suzuki.
858
859         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
860
861         * FullscreenVideoController.cpp:
862
863 2017-04-09  Chris Dumez  <cdumez@apple.com>
864
865         Start dropping Timer API dealing with double
866         https://bugs.webkit.org/show_bug.cgi?id=170649
867
868         Reviewed by Yusuke Suzuki.
869
870         Start dropping Timer API dealing with double as people should use Seconds now.
871
872         * Plugins/PluginPackage.cpp:
873         (WebCore::PluginPackage::freeLibrarySoon):
874         * Plugins/PluginStream.cpp:
875         (WebCore::PluginStream::deliverData):
876         * Plugins/PluginView.cpp:
877         (WebCore::PluginView::requestTimerFired):
878         (WebCore::PluginView::scheduleRequest):
879         (WebCore::PluginView::setJavaScriptPaused):
880         (WebCore::PluginView::keepAlive):
881         * Plugins/PluginViewWin.cpp:
882         (WebCore::PluginView::wndProc):
883         * WebView.cpp:
884         (WebView::closeWindowSoon):
885
886 2017-04-08  Chris Dumez  <cdumez@apple.com>
887
888         Drop std::chrono support from Timer class
889         https://bugs.webkit.org/show_bug.cgi?id=170645
890
891         Reviewed by Sam Weinig.
892
893         Drop std::chrono support from Timer class now that we prefer using Seconds type.
894
895         * WebView.cpp:
896         (WebView::setCacheModel):
897
898 2017-03-31  Fujii Hironori  <Hironori.Fujii@sony.com>
899
900         [WinCairo] WebCore::PlatformDisplay::terminateEGLDisplay causes a crash in libGLESv2.dll while processing atexit
901         https://bugs.webkit.org/show_bug.cgi?id=170331
902
903         Reviewed by Michael Catanzaro.
904
905         * WebKitDLL.cpp:
906         (shutDownWebKit): Call PlatformDisplay::shutDownEglDisplays in shutDownWebKit.
907
908 2017-03-30  James Craig  <jcraig@apple.com>
909
910         AX: Expose a new AXSubrole for explicit ARIA "group" role
911         https://bugs.webkit.org/show_bug.cgi?id=169810
912         <rdar://problem/31039693>
913
914         Reviewed by Chris Fleizach.
915
916         Account for Windows platform role mapping.
917
918         * AccessibleBase.cpp:
919         (MSAARole):
920
921 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
922
923         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
924         https://bugs.webkit.org/show_bug.cgi?id=169168
925         <rdar://problem/30688374>
926
927         Reviewed by Tim Horton.
928
929         Minor tweak to adjust for a changed interface. See WebKit and WebCore ChangeLogs for more information.
930
931         * WebCoreSupport/WebDragClient.cpp:
932         (WebDragClient::actionMaskForDrag):
933         * WebCoreSupport/WebDragClient.h:
934
935 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
936
937         [Win] Compile fix.
938         https://bugs.webkit.org/show_bug.cgi?id=169545
939
940         Reviewed by Brent Fulgham.
941
942         Fix inconsistent dll linkage warnings.
943  
944         * WebKitDLL.cpp:
945         * WebKitDLL.h:
946
947 2017-03-13  Per Arne Vollan  <pvollan@apple.com>
948
949         Unreviewed Win build fix.
950         
951         WebCore::CookiesStrategy::addCookie has been removed, we should also remove the override.
952
953         * WebCoreSupport/WebPlatformStrategies.cpp:
954         (WebPlatformStrategies::addCookie): Deleted.
955         (WebPlatformStrategies::addCookie): Deleted.
956         * WebCoreSupport/WebPlatformStrategies.h:
957
958 2017-03-10  Brent Fulgham  <bfulgham@apple.com>
959
960         [Win] Re-export a few symbols for backwards compatibility
961         https://bugs.webkit.org/show_bug.cgi?id=169490
962         <rdar://problem/30983623>
963
964         Reviewed by Dean Jackson.
965
966         Re-introduce a workaround that re-exports a few JavaScriptCore functions
967         that had been erroneously exported by WebKit in older builds. This
968         is needed so that we do not break certain old software still being used.
969
970         * WebKitDLL.cpp:
971         (DllMain): Bind functions at startup.
972         (bindJavaScriptTrampoline): Find JavaScriptCore library functions and
973         re-export them from WebKit.dll.
974         * WebKitDLL.h: Only advertise these functions when building WebKt itself.
975
976 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
977
978         Expand font-weight and font-stretch to take any number
979         https://bugs.webkit.org/show_bug.cgi?id=168889
980
981         Reviewed by Simon Fraser.
982
983         Migrate off old enum types.
984
985         * WebKitGraphics.cpp:
986         (makeFont):
987
988 2017-03-02  Sam Weinig  <sam@webkit.org>
989
990         Rename htmlediting.h/cpp to Editing.h/cpp
991         https://bugs.webkit.org/show_bug.cgi?id=169103
992
993         Reviewed by Alex Christensen.
994
995         * AccessibleTextImpl.cpp:
996
997 2017-03-01  Alex Christensen  <achristensen@webkit.org>
998
999         Actually fix Windows build.
1000
1001         * WebFrame.cpp:
1002         (WebFrame::invalidate):
1003         r213266 changed Style::Force to ResolveStyleType::Rebuild, so I did so here.
1004
1005 2017-03-01  Alex Christensen  <achristensen@webkit.org>
1006
1007         Fix Windows build after r213266
1008         https://bugs.webkit.org/show_bug.cgi?id=169049
1009
1010         * WebFrame.cpp:
1011         (WebFrame::invalidate):
1012
1013 2017-02-27  Per Arne Vollan  <pvollan@apple.com>
1014
1015         [Win] Http preload tests are failing.
1016         https://bugs.webkit.org/show_bug.cgi?id=168910
1017
1018         Reviewed by Alex Christensen.
1019
1020         The feature is not enabled.
1021
1022         * WebView.cpp:
1023         (WebView::notifyPreferencesChanged):
1024
1025 2017-02-22  Carlos Garcia Campos  <cgarcia@igalia.com>
1026
1027         Better handle Thread and RunLoop initialization
1028         https://bugs.webkit.org/show_bug.cgi?id=167828
1029
1030         Reviewed by Yusuke Suzuki.
1031
1032         Remove unnecessary call to WTF::initializeMainThread().
1033
1034         * WebView.cpp:
1035         (WebView::WebView):
1036
1037 2017-02-20  Per Arne Vollan  <pvollan@apple.com>
1038
1039         [Win] Custom scale factor is not applied in all cases.
1040         https://bugs.webkit.org/show_bug.cgi?id=168117
1041
1042         Reviewed by Brent Fulgham.
1043
1044         We should not call the function deviceScaleFactorForWindow directly, since this
1045         will return the system scale factor, and ignore the custom scale factor.
1046
1047         * WebView.cpp:
1048         (WebView::handleContextMenuEvent):
1049         (WebView::handleMouseEvent):
1050         (WebView::setAcceleratedCompositing):
1051
1052 2017-02-16  Daniel Bates  <dabates@apple.com>
1053
1054         Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr)
1055         https://bugs.webkit.org/show_bug.cgi?id=168417
1056         <rdar://problem/30541748>
1057
1058         Reviewed by Brent Fulgham.
1059
1060         Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a
1061         Widget* as it is always called with a valid Widget.
1062
1063         * WebCoreSupport/WebFrameLoaderClient.cpp:
1064         (WebFrameLoaderClient::redirectDataToPlugin):
1065         * WebCoreSupport/WebFrameLoaderClient.h:
1066
1067 2017-02-15  Anders Carlsson  <andersca@apple.com>
1068
1069         Another attempt at fixing the Windows build.
1070
1071         * WebCoreSupport/WebDragClient.cpp:
1072         (WebDragClient::startDrag):
1073
1074 2017-02-15  Anders Carlsson  <andersca@apple.com>
1075
1076         Try to fix the Windows build.
1077
1078         * WebCoreSupport/WebDragClient.h:
1079
1080 2017-02-15  Anders Carlsson  <andersca@apple.com>
1081
1082         Modernize DragClient::startDrag somewhat
1083         https://bugs.webkit.org/show_bug.cgi?id=168379
1084
1085         Reviewed by Tim Horton.
1086
1087         Update for WebCore changes.
1088
1089         * WebCoreSupport/WebDragClient.cpp:
1090         (WebDragClient::startDrag):
1091
1092 2017-02-10  Daniel Bates  <dabates@apple.com>
1093
1094         Attempt to fix the WinCairo 64-Bit Release build following <https://trac.webkit.org/changeset/212173>
1095         (https://bugs.webkit.org/show_bug.cgi?id=166774)
1096
1097         Touch WebKit.idl in the hopes that it will cause CMake to regenerate the COM interface files.
1098
1099         * Interfaces/WebKit.idl:
1100
1101 2017-02-10  Daniel Bates  <dabates@apple.com>
1102
1103         Detach frame from document when entering page cache
1104         https://bugs.webkit.org/show_bug.cgi?id=166774
1105         <rdar://problem/29904368>
1106
1107         Reviewed by Chris Dumez.
1108
1109         * Interfaces/IWebPreferencesPrivate.idl:
1110         * WebPreferenceKeysPrivate.h:
1111         * WebPreferences.cpp:
1112         (WebPreferences::initializeDefaultSettings):
1113         (WebPreferences::setAllowsPageCacheWithWindowOpener): Deleted.
1114         (WebPreferences::allowsPageCacheWithWindowOpener): Deleted.
1115         * WebPreferences.h:
1116         * WebView.cpp:
1117         (WebView::notifyPreferencesChanged):
1118
1119 2017-02-10  Joseph Pecoraro  <pecoraro@apple.com>
1120
1121         [Resource Timing] Enable Resource Timing by default in Tests
1122         https://bugs.webkit.org/show_bug.cgi?id=168145
1123
1124         Reviewed by Ryosuke Niwa.
1125
1126         * Interfaces/IWebPreferencesPrivate.idl:
1127         * WebPreferenceKeysPrivate.h:
1128         * WebPreferences.cpp:
1129         (WebPreferences::initializeDefaultSettings):
1130         (WebPreferences::setResourceTimingEnabled):
1131         (WebPreferences::resourceTimingEnabled):
1132         * WebPreferences.h:
1133         * WebView.cpp:
1134         (WebView::notifyPreferencesChanged):
1135
1136 2017-02-06  Alex Christensen  <achristensen@webkit.org>
1137
1138         More build fixes after r211751
1139         https://bugs.webkit.org/show_bug.cgi?id=166998
1140
1141         * WebDownloadCFNet.cpp:
1142         (WebDownload::didReceiveAuthenticationChallenge):
1143
1144 2017-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
1145
1146         Rename AnimationController to CSSAnimationController
1147         https://bugs.webkit.org/show_bug.cgi?id=167829
1148
1149         Reviewed by Simon Fraser.
1150
1151         * WebFrame.cpp:
1152
1153 2017-02-02  Wenson Hsieh  <wenson_hsieh@apple.com>
1154
1155         Drag images should be anchored to the mouse location
1156         https://bugs.webkit.org/show_bug.cgi?id=167690
1157         <rdar://problem/30295261>
1158
1159         Reviewed by Enrica Casucci.
1160
1161         Adds some plumbing for the anchor point in the WK1 client layer.
1162
1163         * WebCoreSupport/WebDragClient.cpp:
1164         (WebDragClient::startDrag):
1165         * WebCoreSupport/WebDragClient.h:
1166
1167 2017-02-02  Per Arne Vollan  <pvollan@apple.com>
1168
1169         [Win][HiDPI] Scale factor is applied twice in accelerated compositing mode.
1170         https://bugs.webkit.org/show_bug.cgi?id=167732
1171
1172         Reviewed by Brent Fulgham.
1173
1174         Backing layer should not be scaled when CACFLayerSetContentsScale is used for scaling.
1175
1176         * WebView.cpp:
1177         (WebView::setAcceleratedCompositing):
1178
1179 2017-02-02  Chris Dumez  <cdumez@apple.com>
1180
1181         [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage()
1182         https://bugs.webkit.org/show_bug.cgi?id=167738
1183         <rdar://problem/30229990>
1184
1185         Reviewed by Andreas Kling.
1186
1187         The BackForwardClient no longer needs to worry about removing HistoryItems
1188         from the PageCache now that WebCore takes care of it.
1189
1190         * BackForwardList.cpp:
1191         (BackForwardList::close):
1192
1193 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
1194
1195         Add Link Preload as an off-by-default experimental feature menu item.
1196         https://bugs.webkit.org/show_bug.cgi?id=167201
1197
1198         Reviewed by Ryosuke Niwa.
1199
1200         * WebPreferenceKeysPrivate.h:
1201         * WebPreferences.cpp:
1202         (WebPreferences::initializeDefaultSettings):
1203         (WebPreferences::valueForKey):
1204         (WebPreferences::setLinkPreloadEnabled):
1205         (WebPreferences::linkPreloadEnabled):
1206         * WebPreferences.h:
1207         * Interfaces/IWebPreferencesPrivate.idl:
1208
1209 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
1210
1211         Add User Timing Experimental Feature
1212         https://bugs.webkit.org/show_bug.cgi?id=167542
1213         <rdar://problem/22746307>
1214
1215         Reviewed by Ryosuke Niwa.
1216
1217         * Interfaces/IWebPreferencesPrivate.idl:
1218         * WebPreferenceKeysPrivate.h:
1219         * WebPreferences.cpp:
1220         (WebPreferences::initializeDefaultSettings):
1221         (WebPreferences::setUserTimingEnabled):
1222         (WebPreferences::userTimingEnabled):
1223         * WebPreferences.h:
1224         * WebView.cpp:
1225         (WebView::notifyPreferencesChanged):
1226         Add setting for User Timing runtime enabled feature.
1227
1228 2017-01-26  Chris Dumez  <cdumez@apple.com>
1229
1230         Crash when navigating back to a page in PacheCache when one of its frames has been removed
1231         https://bugs.webkit.org/show_bug.cgi?id=167421
1232         <rdar://problem/30188490>
1233
1234         Reviewed by Darin Adler.
1235
1236         Add a new setting allowing layout tests to enable PageCache in a window
1237         that has an opener, for convenience.
1238
1239         * WebPreferenceKeysPrivate.h:
1240         * WebPreferences.cpp:
1241         (WebPreferences::initializeDefaultSettings):
1242         * WebPreferences.h:
1243
1244 2017-01-26  Keith Miller  <keith_miller@apple.com>
1245
1246         classInfo should take a VM so it is not materialized from the object on each call
1247         https://bugs.webkit.org/show_bug.cgi?id=167424
1248
1249         Rubber Stamped by Michael Saboff.
1250
1251         Previously, classInfo() would get the VM from the target's
1252         MarkedBlock.  Most callers already have a VM on hand, so it is
1253         wasteful to compute the VM from the marked block every time. This
1254         patch refactors some of the most common callers of classInfo(),
1255         jsDynamicCast and inherits to take a VM as well.
1256
1257         * WebFrame.cpp:
1258         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
1259         * WebView.cpp:
1260         (WebView::elementFromJS):
1261
1262 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
1263
1264         Crash when setting custom scale factor.
1265         https://bugs.webkit.org/show_bug.cgi?id=167369
1266
1267         Reviewed by Sam Weinig.
1268
1269         Add null pointer check.
1270
1271         * WebView.cpp:
1272         (WebView::setCustomBackingScaleFactor):
1273
1274 2017-01-24  Youenn Fablet  <youennf@gmail.com>
1275
1276         [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations
1277         https://bugs.webkit.org/show_bug.cgi?id=167294
1278
1279         Reviewed by Alex Christensen.
1280
1281         * WebView.cpp:
1282         (WebView::initWithFrame):
1283
1284 2017-01-23  Chris Dumez  <cdumez@apple.com>
1285
1286         REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr<WebCore::Element>::operator* const + 70
1287         https://bugs.webkit.org/show_bug.cgi?id=167308
1288         <rdar://problem/30144964>
1289
1290         Unreviewed, do a partial revert of r211033 to fix assertion.
1291
1292         * WebCoreSupport/WebChromeClient.cpp:
1293         (WebChromeClient::exitFullScreenForElement):
1294
1295 2017-01-20  Darin Adler  <darin@apple.com>
1296
1297         Remove PassRefPtr from "page" directory of WebCore, also deploy references
1298         https://bugs.webkit.org/show_bug.cgi?id=167224
1299
1300         Reviewed by Chris Dumez.
1301
1302         * Plugins/PluginView.cpp:
1303         (WebCore::PluginView::status): Pass reference.
1304         (WebCore::PluginView::focusPluginElement): Ditto.
1305
1306         * WebCoreSupport/WebChromeClient.cpp:
1307         (WebChromeClient::createWindow): Updated for change to ChromeClient.
1308         (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto.
1309         (WebChromeClient::runJavaScriptAlert): Ditto.
1310         (WebChromeClient::runJavaScriptConfirm): Ditto.
1311         (WebChromeClient::runJavaScriptPrompt): Ditto.
1312         (WebChromeClient::contentsSizeChanged): Ditto.
1313         (WebChromeClient::unavailablePluginButtonClicked): Ditto.
1314         (WebChromeClient::print): Ditto.
1315         (WebChromeClient::exceededDatabaseQuota): Ditto.
1316         (WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
1317         (WebChromeClient::attachRootGraphicsLayer): Ditto.
1318         (WebChromeClient::attachViewOverlayGraphicsLayer): Ditto.
1319         (WebChromeClient::enterVideoFullscreenForVideoElement): Ditto.
1320         (WebChromeClient::createPopupMenu): Ditto.
1321         (WebChromeClient::createSearchPopupMenu): Ditto.
1322         (WebChromeClient::supportsFullScreenForElement): Ditto.
1323         (WebChromeClient::enterFullScreenForElement): Ditto.
1324         (WebChromeClient::exitFullScreenForElement): Ditto.
1325         (WebChromeClient::shouldUseTiledBackingForFrameView): Ditto.
1326         * WebCoreSupport/WebChromeClient.h: Ditto.
1327
1328 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1329
1330         Remove never changing IndexedDB RuntimeEnabledFeature
1331         https://bugs.webkit.org/show_bug.cgi?id=167278
1332
1333         Reviewed by Darin Adler.
1334
1335         * WebView.cpp:
1336         (WebView::notifyPreferencesChanged):
1337
1338 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1339
1340         Cleanup RuntimeEnabledFeatures
1341         https://bugs.webkit.org/show_bug.cgi?id=167228
1342
1343         Reviewed by Simon Fraser.
1344
1345         * WebView.cpp:
1346         (WebView::notifyPreferencesChanged):
1347
1348 2017-01-20  Alex Christensen  <achristensen@webkit.org>
1349
1350         Build Fix for Windows DumpRenderTree after r210976
1351         https://bugs.webkit.org/show_bug.cgi?id=167115
1352
1353         * WebPreferences.h:
1354         Remove extra space.
1355         * IWebPreferencesPrivate.idl:
1356         Add new interface functions.
1357         * WebView.cpp:
1358         We use new functions that are only in IWebPreferencesPrivate4,
1359         so instantiate that COM object instead of version 3.
1360
1361 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1362
1363         Build Fix for Windows DumpRenderTree after r210976
1364
1365         * WebPreferenceKeysPrivate.h:
1366         * WebPreferences.cpp:
1367         (WebPreferences::initializeDefaultSettings):
1368         (WebPreferences::setWebAnimationsEnabled):
1369         (WebPreferences::webAnimationsEnabled):
1370         * WebPreferences.h:
1371         * WebView.cpp:
1372         Add toggle APIs for WebAnimations.
1373
1374 2017-01-19  Chris Dumez  <cdumez@apple.com>
1375
1376         iterable<> should be enabled on WK1
1377         https://bugs.webkit.org/show_bug.cgi?id=167221
1378         <rdar://problem/30108531>
1379
1380         Reviewed by Youenn Fablet.
1381
1382         * Interfaces/IWebPreferencesPrivate.idl:
1383         * WebPreferenceKeysPrivate.h:
1384         * WebPreferences.cpp:
1385         (WebPreferences::setDOMIteratorEnabled): Deleted.
1386         (WebPreferences::domIteratorEnabled): Deleted.
1387         * WebPreferences.h:
1388         * WebView.cpp:
1389         (WebView::notifyPreferencesChanged):
1390
1391 2017-01-18  Alex Christensen  <achristensen@webkit.org>
1392
1393         Fix WinCairo build after r210845.
1394         https://bugs.webkit.org/show_bug.cgi?id=167055
1395
1396         * WebCoreSupport/WebFrameLoaderClient.cpp:
1397         * WebCoreSupport/WebFrameLoaderClient.h:
1398         shouldCacheResponse isn't used when loading with libcurl.
1399         It was dead code before Darin added "override".
1400         WebCore/FrameLoaderClient.h has this inside of USE(CFURLCONNECTION) macros, now we have them here, too.
1401
1402 2017-01-18  Andreas Kling  <akling@apple.com>
1403
1404         Document::securityOrigin() should return a reference.
1405         <https://webkit.org/b/167124>
1406
1407         Reviewed by Sam Weinig.
1408
1409         * Plugins/PluginView.cpp:
1410         (WebCore::PluginView::load):
1411         * WebCoreSupport/WebChromeClient.cpp:
1412         (WebChromeClient::exceededDatabaseQuota):
1413         * WebCoreSupport/WebFrameLoaderClient.cpp:
1414         (WebFrameLoaderClient::didRunInsecureContent):
1415         * WebCoreSupport/WebFrameLoaderClient.h:
1416         * WebCoreSupport/WebGeolocationClient.cpp:
1417         (WebGeolocationClient::requestPermission):
1418         * WebFrame.cpp:
1419         (WebFrame::allowsFollowingLink):
1420
1421 2017-01-15  Darin Adler  <darin@apple.com>
1422
1423         Remove PassRefPtr from "loader" directory of WebCore
1424         https://bugs.webkit.org/show_bug.cgi?id=167055
1425
1426         Reviewed by Alex Christensen.
1427
1428         * Plugins/PluginView.cpp:
1429         (WebCore::PluginView::mediaCanStart): Fix call to dispatchDidFailToStartPlugin
1430         by calling it directly on WebFrameLoaderClient. If my theory is correct, the old
1431         call has been broken and doing nothing since r177941, two years ago, which made
1432         the argument types different between FrameLoaderClient and WebFrameLoaderClient,
1433         leaving WebFrameLoaderClient::dispatchDidFailToStartPlugin as dead code.
1434
1435         * WebCoreSupport/WebChromeClient.cpp:
1436         (WebChromeClient::runOpenPanel): Updated for change to ChromeClient.
1437         * WebCoreSupport/WebChromeClient.h: Ditto.
1438
1439         * WebCoreSupport/WebEditorClient.cpp:
1440         (WebEditorUndoCommand::WebEditorUndoCommand): Take a reference instead of
1441         a PassRefPtr. Also use Ref instead of RefPtr.
1442         (WebEditorClient::shouldChangeTypingStyle): Deleted. Empty function that was
1443         never called.
1444         (WebEditorClient::webViewDidChangeTypingStyle): Ditto.
1445         (WebEditorClient::webViewDidChangeSelection): Ditto.
1446         (WebEditorClient::registerUndoStep):  Take reference instead of PassRefPtr.
1447         (WebEditorClient::registerRedoStep): Ditto.
1448         * WebCoreSupport/WebEditorClient.h: Updated for the above. Also marked the
1449         class and member functions final and made them all private, which will
1450         help us catch if there are any that don't correctly match WebCore.
1451
1452         * WebCoreSupport/WebFrameLoaderClient.cpp:
1453         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Updated
1454         for change to ChromeClient.
1455         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
1456         (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Ditto.
1457         (WebFrameLoaderClient::dispatchWillSubmitForm): Ditto.
1458         (WebFrameLoaderClient::createFrame): Ditto. Also merged two functions into
1459         one because one was private and only called by the other.
1460         (WebFrameLoaderClient::createPlugin): Ditto.
1461         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
1462         (WebFrameLoaderClient::createNetworkingContext): Ditto.
1463         * WebCoreSupport/WebFrameLoaderClient.h: Ditto.
1464
1465         * WebCoreSupport/WebFrameNetworkingContext.h:
1466         (WebFrameNetworkingContext::create): Return a Ref instead of a PassRefPtr.
1467
1468 2017-01-12  Joseph Pecoraro  <pecoraro@apple.com>
1469
1470         Remove unnecessary includes of Page.h
1471         https://bugs.webkit.org/show_bug.cgi?id=166996
1472
1473         Reviewed by Yusuke Suzuki.
1474
1475         * AccessibleTextImpl.cpp:
1476         * BackForwardList.cpp:
1477
1478 2017-01-06  Darin Adler  <darin@apple.com>
1479
1480         Remove PassRefPtr use from "inspector", "platform/sql", and "platform/text"
1481         https://bugs.webkit.org/show_bug.cgi?id=166797
1482
1483         Reviewed by Alex Christensen.
1484
1485         * WebCoreSupport/WebEditorClient.h: Update argument to take a reference
1486         instead of a PassRefPtr.
1487
1488 2017-01-05  Andreas Kling  <akling@apple.com>
1489
1490         Remove ChromeClient::needTouchEvents().
1491         <https://webkit.org/b/166723>
1492
1493         Rubber-stamped by Antti Koivisto.
1494
1495         * WebCoreSupport/WebChromeClient.h:
1496
1497 2017-01-04  Darin Adler  <darin@apple.com>
1498
1499         Remove PassRefPtr use from the "html" directory, other improvements
1500         https://bugs.webkit.org/show_bug.cgi?id=166635
1501
1502         Reviewed by Alex Christensen.
1503
1504         * WebCoreSupport/WebChromeClient.cpp:
1505         (WebChromeClient::loadIconForFiles): Take a reference instead of a pointer.
1506         * WebCoreSupport/WebChromeClient.h: Updated for the above.
1507
1508 2016-12-30  Darin Adler  <darin@apple.com>
1509
1510         Remove PassRefPtr use from the "dom" directory, related cleanup
1511         https://bugs.webkit.org/show_bug.cgi?id=166569
1512
1513         Reviewed by Alex Christensen.
1514
1515         * WebCoreSupport/WebFrameLoaderClient.cpp:
1516         (WebFrameLoaderClient::dispatchDidReceiveTitle): Updated since StringWithDirection::title
1517         is now a data member, not a function member.
1518         (WebFrameLoaderClient::updateGlobalHistory): Ditto.
1519         (WebFrameLoaderClient::setTitle): Ditto.
1520         * WebDataSource.cpp:
1521         (WebDataSource::pageTitle): Ditto.
1522
1523 2016-12-25  Yusuke Suzuki  <utatane.tea@gmail.com>
1524
1525         Propagate the source origin as much as possible
1526         https://bugs.webkit.org/show_bug.cgi?id=166348
1527
1528         Reviewed by Darin Adler.
1529
1530         * Plugins/PluginPackage.cpp:
1531         (WebCore::NPN_Evaluate):
1532         (WebCore::makeSource): Deleted.
1533
1534 2016-12-22  Andy Estes  <aestes@apple.com>
1535
1536         Make WebCore::EditorInsertAction an enum class
1537         https://bugs.webkit.org/show_bug.cgi?id=166424
1538
1539         Reviewed by Brent Fulgham.
1540
1541         * WebCoreSupport/WebEditorClient.cpp:
1542         (kit):
1543         (WebEditorClient::shouldInsertNode):
1544         (WebEditorClient::shouldInsertText):
1545
1546 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
1547
1548         [ES6] Enable ES6 Modules
1549         https://bugs.webkit.org/show_bug.cgi?id=165849
1550
1551         Reviewed by Geoffrey Garen.
1552
1553         * Interfaces/IWebPreferencesPrivate.idl:
1554         * WebPreferenceKeysPrivate.h:
1555         * WebPreferences.cpp:
1556         (WebPreferences::setES6ModulesEnabled): Deleted.
1557         (WebPreferences::es6ModulesEnabled): Deleted.
1558         * WebPreferences.h:
1559         * WebView.cpp:
1560         (WebView::notifyPreferencesChanged):
1561
1562 2016-12-10  Filip Pizlo  <fpizlo@apple.com>
1563
1564         The DOM should have an advancing wavefront opaque root barrier
1565         https://bugs.webkit.org/show_bug.cgi?id=165712
1566
1567         Reviewed by Yusuke Suzuki.
1568         
1569         Propagate the JSDOMWindowBase::commonVM() -> commonVM() change.
1570
1571         * Plugins/PluginView.cpp:
1572         (WebCore::PluginView::start):
1573         (WebCore::PluginView::stop):
1574         (WebCore::PluginView::performRequest):
1575         (WebCore::PluginView::npObject):
1576         (WebCore::PluginView::privateBrowsingStateChanged):
1577         * Plugins/PluginViewWin.cpp:
1578         (WebCore::PluginView::dispatchNPEvent):
1579         (WebCore::PluginView::handleKeyboardEvent):
1580         (WebCore::PluginView::handleMouseEvent):
1581         (WebCore::PluginView::setNPWindowRect):
1582         * WebCoreStatistics.cpp:
1583         (WebCoreStatistics::javaScriptObjectsCount):
1584         (WebCoreStatistics::javaScriptGlobalObjectsCount):
1585         (WebCoreStatistics::javaScriptProtectedObjectsCount):
1586         (WebCoreStatistics::javaScriptProtectedGlobalObjectsCount):
1587         (WebCoreStatistics::javaScriptProtectedObjectTypeCounts):
1588         (WebCoreStatistics::javaScriptObjectTypeCounts):
1589         (WebCoreStatistics::shouldPrintExceptions):
1590         (WebCoreStatistics::setShouldPrintExceptions):
1591         (WebCoreStatistics::memoryStatistics):
1592         * WebJavaScriptCollector.cpp:
1593         (WebJavaScriptCollector::objectCount):
1594
1595 2016-12-09  Geoffrey Garen  <ggaren@apple.com>
1596
1597         TextPosition and OrdinalNumber should be more like idiomatic numbers
1598         https://bugs.webkit.org/show_bug.cgi?id=165678
1599
1600         Reviewed by Filip Pizlo.
1601
1602         Adopt default constructor.
1603
1604         * Plugins/PluginPackage.cpp:
1605         (WebCore::makeSource):
1606
1607 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
1608
1609         Enable SharedArrayBuffer, remove the flag
1610         https://bugs.webkit.org/show_bug.cgi?id=165614
1611
1612         Rubber stamped by Geoffrey Garen.
1613
1614         * Interfaces/IWebPreferencesPrivate.idl:
1615
1616 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1617
1618         [WTF] Import std::optional reference implementation as WTF::Optional
1619         https://bugs.webkit.org/show_bug.cgi?id=164199
1620
1621         Reviewed by Saam Barati and Sam Weinig.
1622
1623         Use WTF::Optional::value_or.
1624
1625         * Plugins/PluginView.cpp:
1626         (WebCore::PluginView::performRequest):
1627         * WebCoreSupport/WebFrameLoaderClient.cpp:
1628         (WebFrameLoaderClient::dispatchDidCommitLoad):
1629         * WebCoreSupport/WebFrameLoaderClient.h:
1630         * WebSecurityOrigin.cpp:
1631         (WebSecurityOrigin::port):
1632
1633 2016-11-19  Simon Fraser  <simon.fraser@apple.com>
1634
1635         [iOS WK2] When zoomed in and panning on pages with fixed bars, parts of the bars are sometimes missing
1636         https://bugs.webkit.org/show_bug.cgi?id=164855
1637
1638         Reviewed by Sam Weinig.
1639         
1640         Remove the "inStableState" parameter from flushCompositingState() etc.
1641
1642         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1643         (AcceleratedCompositingContext::flushPendingLayerChanges):
1644         * WebView.cpp:
1645         (WebView::flushPendingGraphicsLayerChanges):
1646
1647 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
1648
1649         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
1650         https://bugs.webkit.org/show_bug.cgi?id=164827
1651
1652         Reviewed by Ryosuke Niwa.
1653
1654         * Interfaces/IWebPreferencesPrivate.idl:
1655         * WebPreferenceKeysPrivate.h:
1656         * WebPreferences.cpp:
1657         (WebPreferences::setES6ModulesEnabled):
1658         (WebPreferences::es6ModulesEnabled):
1659         * WebPreferences.h:
1660         * WebView.cpp:
1661         (WebView::notifyPreferencesChanged):
1662
1663 2016-11-14  Alex Christensen  <achristensen@webkit.org>
1664
1665         Move SecurityOrigin::createFromDatabaseIdentifier to SecurityOriginData
1666         https://bugs.webkit.org/show_bug.cgi?id=164720
1667
1668         Reviewed by Brady Eidson.
1669
1670         * WebDatabaseManager.cpp:
1671         (DidModifyOriginData::dispatchToMainThread):
1672         (DidModifyOriginData::DidModifyOriginData):
1673         (WebDatabaseManager::dispatchDidModifyOrigin):
1674         (WebDatabaseManager::dispatchDidModifyDatabase):
1675         * WebDatabaseManager.h:
1676         * WebSecurityOrigin.cpp:
1677         (WebSecurityOrigin::usage):
1678         (WebSecurityOrigin::quota):
1679         (WebSecurityOrigin::setQuota):
1680
1681 2016-11-13  Darin Adler  <darin@apple.com>
1682
1683         Fix exception handling in SQL database code, streamline and update code
1684         https://bugs.webkit.org/show_bug.cgi?id=164685
1685
1686         Reviewed by Sam Weinig.
1687
1688         * WebDatabaseManager.cpp:
1689         (WebDatabaseManager::origins): Use DatabaseTracker.
1690         (WebDatabaseManager::databasesWithOrigin): Ditto.
1691         (WebDatabaseManager::detailsForDatabase): Use reference.
1692         (WebDatabaseManager::deleteAllDatabases): Use DatabaseTracker.
1693         (WebDatabaseManager::deleteOrigin): Ditto.
1694         (WebDatabaseManager::deleteDatabase): Ditto.
1695         (WebDatabaseManager::dispatchDidModifyOrigin): Use reference
1696         and DatabaseTracker.
1697         (WebDatabaseManager::setQuota): Ditto.
1698         (WebDatabaseManager::dispatchDidModifyDatabase): Ditto.
1699         * WebDatabaseManager.h: Updated client functions to take a reference.
1700
1701         * WebSecurityOrigin.cpp:
1702         (WebSecurityOrigin::usage): Update to use DatabaseTracker.
1703         (WebSecurityOrigin::quota): Ditto.
1704         (WebSecurityOrigin::setQuota): Ditto.
1705
1706 2016-11-11  Eric Carlson  <eric.carlson@apple.com>
1707
1708         [MediaStream] defer resolution of getUserMedia promise made in a background tab
1709         https://bugs.webkit.org/show_bug.cgi?id=164643
1710         <rdar://problem/29048317>
1711
1712         Unreviewed build fix after r208606.
1713
1714         * Plugins/PluginView.cpp:
1715         (WebCore::PluginView::mediaCanStart):
1716         * Plugins/PluginView.h:
1717
1718 2016-11-11  Darin Adler  <darin@apple.com>
1719
1720         Move Node from ExceptionCode to ExceptionOr
1721         https://bugs.webkit.org/show_bug.cgi?id=164515
1722
1723         Reviewed by Sam Weinig.
1724
1725         * DOMCoreClasses.cpp:
1726         (DOMNode::insertBefore): Update exception handling.
1727         (DOMNode::removeChild): Ditto.
1728
1729 2016-10-14  Carlos Garcia Campos  <cgarcia@igalia.com>
1730
1731         MemoryPressureHandler shouldn't know how to release WebCore memory
1732         https://bugs.webkit.org/show_bug.cgi?id=160497
1733
1734         Reviewed by Michael Catanzaro.
1735
1736         Set the low memory handler before installing the memory pressure handler.
1737
1738         * WebView.cpp:
1739         (WebView::initWithFrame):
1740
1741 2016-11-09  Alex Christensen  <achristensen@webkit.org>
1742
1743         Fix Windows build after r208499
1744         https://bugs.webkit.org/show_bug.cgi?id=164562
1745
1746         * WebKitDLL.cpp:
1747         (shutDownWebKit):
1748
1749 2016-11-09  Darin Adler  <darin@apple.com>
1750
1751         Move Range from ExceptionCode to ExceptionOr
1752         https://bugs.webkit.org/show_bug.cgi?id=164457
1753
1754         Reviewed by Alex Christensen.
1755
1756         * WebView.cpp:
1757         (WebView::onIMERequestCharPosition): Updated for new exception handling.
1758
1759 2016-11-09  Darin Adler  <darin@apple.com>
1760
1761         Move EventTarget from ExceptionCode to ExceptionOr
1762         https://bugs.webkit.org/show_bug.cgi?id=164465
1763
1764         Reviewed by Youenn Fablet.
1765
1766         * DOMCoreClasses.cpp:
1767         (DOMNode::dispatchEvent): Updated exception handling.
1768         (DOMWindow::dispatchEvent): Ditto.
1769
1770 2016-11-04  Wenson Hsieh  <wenson_hsieh@apple.com>
1771
1772         Safari does not emit composition end if blurred for dead key / Japanese IME
1773         https://bugs.webkit.org/show_bug.cgi?id=164369
1774         <rdar://problem/29050439>
1775
1776         Reviewed by Ryosuke Niwa.
1777
1778         Add a stub implementation of canceledComposition.
1779
1780         * WebCoreSupport/WebEditorClient.cpp:
1781         (WebEditorClient::canceledComposition):
1782         * WebCoreSupport/WebEditorClient.h:
1783
1784 2016-11-04  Per Arne Vollan  <pvollan@apple.com>
1785
1786         [Win] Page visibility tests are timing out.
1787         https://bugs.webkit.org/show_bug.cgi?id=164363
1788
1789         Reviewed by Brent Fulgham.
1790
1791         Add method to set page visibility.
1792
1793         * Interfaces/IWebViewPrivate.idl:
1794         * WebView.cpp:
1795         (WebView::QueryInterface):
1796         (WebView::findString):
1797         (WebView::setVisibilityState):
1798         * WebView.h:
1799
1800 2016-11-01  Ryosuke Niwa  <rniwa@webkit.org>
1801
1802         Remove CUSTOM_ELEMENTS build flag
1803         https://bugs.webkit.org/show_bug.cgi?id=164267
1804
1805         Reviewed by Antti Koivisto.
1806
1807         Removed the build flag.
1808
1809         * WebView.cpp:
1810         (WebView::notifyPreferencesChanged):
1811
1812 2016-10-29  Filip Pizlo  <fpizlo@apple.com>
1813
1814         JSC should support SharedArrayBuffer
1815         https://bugs.webkit.org/show_bug.cgi?id=163986
1816
1817         Reviewed by Keith Miller.
1818
1819         Support the RuntimeFlag.
1820
1821         * Interfaces/IWebPreferencesPrivate.idl:
1822
1823 2016-10-31  Joseph Pecoraro  <pecoraro@apple.com>
1824
1825         Use #pragma once in WebCore
1826         https://bugs.webkit.org/show_bug.cgi?id=164194
1827
1828         Rubber-stamped by Sam Weinig.
1829
1830         * WebCoreSupport/WebContextMenuClient.cpp:
1831         (WebContextMenuClient::isSpeaking):
1832         (WebContextMenuClient::shareMenuItem): Deleted.
1833         * WebCoreSupport/WebContextMenuClient.h:
1834         Remove this dead code since r192333.
1835
1836 2016-10-31  Darin Adler  <darin@apple.com>
1837
1838         Convert Document from ExceptionCode to Exception
1839         https://bugs.webkit.org/show_bug.cgi?id=164212
1840
1841         Reviewed by Alex Christensen.
1842
1843         * DOMCoreClasses.cpp:
1844         (DOMDocument::createElement): Updated exception handling.
1845         (DOMDocument::createEvent): Ditto.
1846
1847 2016-10-30  Darin Adler  <darin@apple.com>
1848
1849         Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception
1850         https://bugs.webkit.org/show_bug.cgi?id=164206
1851
1852         Reviewed by Chris Dumez.
1853
1854         * DOMCoreClasses.cpp:
1855         (DOMElement::setAttribute): Updated exception handling.
1856         * DOMHTMLClasses.cpp:
1857         (DOMHTMLElement::setInnerHTML): Ditto.
1858
1859 2016-10-30  Brent Fulgham  <bfulgham@apple.com>
1860
1861         Unreviewed build fix (Direct2D)
1862
1863         * WebView.cpp:
1864         (WebView::paintWithDirect2D): Update for revised GraphicsContext
1865         begin/end draw behavior.
1866
1867 2016-10-28  Darin Adler  <darin@apple.com>
1868
1869         Move all classes in the HTML directory from ExceptionCode to Exception
1870         https://bugs.webkit.org/show_bug.cgi?id=163876
1871
1872         Reviewed by Sam Weinig.
1873
1874         * DOMHTMLClasses.cpp:
1875         (DOMHTMLElement::setInnerText): Update exception handling.
1876         * FullscreenVideoController.cpp:
1877         (FullscreenVideoController::setVolume): Ditto.
1878
1879 2016-10-27  Brent Fulgham  <bfulgham@apple.com>
1880
1881         Unreviewed build fix.
1882
1883         * WebView.cpp:
1884         (WebView::paintWithDirect2D): Correct merge error.
1885
1886 2016-10-25  Brent Fulgham  <bfulgham@apple.com>
1887
1888         [Win][Direct2D] Create a RAII Helper Class for the Render Target
1889         https://bugs.webkit.org/show_bug.cgi?id=164005
1890
1891         Reviewed by Alex Christensen.
1892
1893         * WebView.cpp:
1894         (WebView::sizeChanged): Construct RenderTarget with higher-resolution display timer.
1895         (WebView::paintWithDirect2D): Revise to use new RenderTargetHelper class.
1896
1897 2016-10-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1898
1899         Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec
1900         https://bugs.webkit.org/show_bug.cgi?id=163948
1901         <rdar://problem/28921433>
1902
1903         Reviewed by Darin Adler.
1904
1905         Add support for new drag and drop-related EditAction enum values.
1906
1907         * WebCoreSupport/WebEditorClient.cpp:
1908         (undoNameForEditAction):
1909
1910 2016-10-26  Brian Burg  <bburg@apple.com>
1911
1912         Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend
1913         https://bugs.webkit.org/show_bug.cgi?id=164046
1914
1915         Reviewed by Joseph Pecoraro.
1916
1917         * WebCoreSupport/WebInspectorClient.h:
1918
1919 2016-10-19  Alex Christensen  <achristensen@webkit.org>
1920
1921         Revert r207151
1922         https://bugs.webkit.org/show_bug.cgi?id=163675
1923
1924         Reviewed by Brent Fulgham.
1925
1926         * DefaultDownloadDelegate.h:
1927         * WebCoreSupport/WebFrameLoaderClient.cpp:
1928         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
1929         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1930         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1931         * WebCoreSupport/WebFrameNetworkingContext.h:
1932         * WebCoreSupport/WebPlatformStrategies.cpp:
1933         * WebDownload.h:
1934         * WebError.cpp:
1935         (WebError::localizedDescription):
1936         (WebError::sslPeerCertificate):
1937         * WebError.h:
1938         * WebMutableURLRequest.cpp:
1939         (WebMutableURLRequest::mutableCopy):
1940         * WebURLAuthenticationChallenge.cpp:
1941         (WebURLAuthenticationChallenge::initWithProtectionSpace):
1942         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
1943         * WebURLResponse.cpp:
1944         (WebURLResponse::sslPeerCertificate):
1945         * WebURLResponse.h:
1946         * WebView.cpp:
1947         (WebView::setCacheModel):
1948         (WebView::canHandleRequest):
1949         (WebView::notifyPreferencesChanged):
1950         (updateSharedSettingsFromPreferencesIfNeeded):
1951
1952 2016-10-18  Darin Adler  <darin@apple.com>
1953
1954         Move many miscellaneous classes from ExceptionCode to Exception
1955         https://bugs.webkit.org/show_bug.cgi?id=163645
1956
1957         Reviewed by Ryosuke Niwa.
1958
1959         * DOMCoreClasses.cpp:
1960         (DOMDocument::getComputedStyle): Use ptr instead of get since the return
1961         value is now Ref instead of RefPtr.
1962
1963 2016-10-18  Anders Carlsson  <andersca@apple.com>
1964
1965         Try to fix the Windows build.
1966
1967         * WebHistoryItem.cpp:
1968         (WebHistoryItem::redirectURLs):
1969
1970 2016-10-18  Anders Carlsson  <andersca@apple.com>
1971
1972         Move some history specific HistoryItem code to WebHistoryItem
1973         https://bugs.webkit.org/show_bug.cgi?id=163567
1974
1975         Reviewed by Tim Horton.
1976
1977         Remove these, they aren't used.
1978
1979         * WebCoreSupport/WebFrameLoaderClient.cpp:
1980         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
1981         * WebHistory.cpp:
1982         (WebHistory::visitedURL):
1983         * WebHistoryItem.cpp:
1984         (WebHistoryItem::initFromDictionaryRepresentation):
1985         (WebHistoryItem::dictionaryRepresentation):
1986
1987 2016-10-16  Darin Adler  <darin@apple.com>
1988
1989         Move CSS classes from ExceptionCode to Exception
1990         https://bugs.webkit.org/show_bug.cgi?id=163494
1991
1992         Reviewed by Sam Weinig.
1993
1994         * DOMCSSClasses.cpp:
1995         (DOMCSSStyleDeclaration::setCssText): Remove ExceptionCode handling.
1996         (DOMCSSStyleDeclaration::setProperty): Ditto.
1997
1998 2016-10-12  Anders Carlsson  <andersca@apple.com>
1999
2000         Copy BackForwardList from WebCore to WebKit/win
2001         https://bugs.webkit.org/show_bug.cgi?id=163360
2002
2003         Reviewed by Alex Christensen.
2004
2005         Use our local BackForwardList class instead of WebCore::BackForwardList.
2006
2007         * BackForwardList.cpp: Added.
2008         * BackForwardList.h: Added.
2009         * WebBackForwardList.h:
2010         * WebView.cpp:
2011         (WebView::initWithFrame):
2012         (WebView::backForwardList):
2013
2014 2016-10-13  Anders Carlsson  <andersca@apple.com>
2015
2016         Get rid of the HistoryItemVector typedef
2017         https://bugs.webkit.org/show_bug.cgi?id=163398
2018
2019         Reviewed by Beth Dakin.
2020
2021         Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
2022
2023         * WebBackForwardList.cpp:
2024         (WebBackForwardList::backListWithLimit):
2025         (WebBackForwardList::forwardListWithLimit):
2026         * WebHistoryItem.cpp:
2027         (WebHistoryItem::children):
2028
2029 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
2030
2031         [Win] Unreviewed build fix after r207218.
2032
2033         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
2034         It should be using USE(CFURLCONNECTION).
2035
2036         * WebCache.cpp: Missed one!
2037
2038 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
2039
2040         [Win] Unreviewed build fix after r207218.
2041
2042         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
2043         It should be using USE(CFURLCONNECTION).
2044
2045         * WebCache.cpp:
2046         (WebCache::cacheFolder):
2047         (WebCache::setCacheFolder):
2048
2049 2016-10-12  Per Arne Vollan  <pvollan@apple.com>
2050
2051         [Win] Parallel DRTs are sharing preferences and cache.
2052         https://bugs.webkit.org/show_bug.cgi?id=163013
2053
2054         Reviewed by Brent Fulgham.
2055
2056         Make it possible for a WebKit client to use separate preferences and cache.
2057
2058         * Interfaces/IWebPreferencesPrivate.idl:
2059         * WebApplicationCache.cpp:
2060         (applicationCachePath):
2061         * WebCache.cpp:
2062         (WebCache::cacheFolder):
2063         (WebCache::setCacheFolder):
2064         * WebDatabaseManager.cpp:
2065         (databasesDirectory):
2066         * WebPreferences.cpp:
2067         (WebPreferences::applicationId):
2068         (WebPreferences::valueForKey):
2069         (WebPreferences::setValueForKey):
2070         (WebPreferences::save):
2071         (WebPreferences::QueryInterface):
2072         (WebPreferences::modernMediaControlsEnabled):
2073         (WebPreferences::setApplicationId):
2074         * WebPreferences.h:
2075         * WebView.cpp:
2076         (WebView::setCacheModel):
2077
2078 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2079
2080         Remove dead networking code
2081         https://bugs.webkit.org/show_bug.cgi?id=163263
2082
2083         Reviewed by Daniel Bates.
2084
2085         * DefaultDownloadDelegate.h:
2086         * WebCoreSupport/WebFrameLoaderClient.cpp:
2087         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
2088         * WebCoreSupport/WebFrameNetworkingContext.cpp:
2089         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2090         * WebCoreSupport/WebFrameNetworkingContext.h:
2091         * WebCoreSupport/WebPlatformStrategies.cpp:
2092         * WebDownload.h:
2093         * WebError.cpp:
2094         (WebError::localizedDescription):
2095         (WebError::sslPeerCertificate):
2096         * WebError.h:
2097         * WebMutableURLRequest.cpp:
2098         (WebMutableURLRequest::mutableCopy):
2099         * WebURLAuthenticationChallenge.cpp:
2100         (WebURLAuthenticationChallenge::initWithProtectionSpace):
2101         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
2102         * WebURLResponse.cpp:
2103         (WebURLResponse::sslPeerCertificate):
2104         * WebURLResponse.h:
2105         * WebView.cpp:
2106         (WebView::setCacheModel):
2107         (WebView::canHandleRequest):
2108         (WebView::notifyPreferencesChanged):
2109         (updateSharedSettingsFromPreferencesIfNeeded):
2110
2111 2016-10-11  Ryan Haddad  <ryanhaddad@apple.com>
2112
2113         Unreviewed, rolling out r207067.
2114
2115         This change caused webkitpy test failures.
2116
2117         Reverted changeset:
2118
2119         "[Win] Parallel DRTs are sharing preferences and cache."
2120         https://bugs.webkit.org/show_bug.cgi?id=163013
2121         http://trac.webkit.org/changeset/207067
2122
2123 2016-10-11  Per Arne Vollan  <pvollan@apple.com>
2124
2125         [Win] Parallel DRTs are sharing preferences and cache.
2126         https://bugs.webkit.org/show_bug.cgi?id=163013
2127
2128         Reviewed by Brent Fulgham.
2129
2130         Make it possible for a WebKit client to use separate preferences and cache.
2131
2132         * Interfaces/IWebPreferencesPrivate.idl:
2133         * WebApplicationCache.cpp:
2134         (applicationCachePath):
2135         * WebCache.cpp:
2136         (WebCache::cacheFolder):
2137         (WebCache::setCacheFolder):
2138         * WebDatabaseManager.cpp:
2139         (databasesDirectory):
2140         * WebPreferences.cpp:
2141         (WebPreferences::applicationId):
2142         (WebPreferences::valueForKey):
2143         (WebPreferences::setValueForKey):
2144         (WebPreferences::save):
2145         (WebPreferences::QueryInterface):
2146         (WebPreferences::modernMediaControlsEnabled):
2147         (WebPreferences::setApplicationId):
2148         * WebPreferences.h:
2149         * WebView.cpp:
2150         (WebView::setCacheModel):
2151
2152 2016-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
2153
2154         Support InputEvent.inputType for the new InputEvent spec
2155         https://bugs.webkit.org/show_bug.cgi?id=163025
2156         <rdar://problem/28658092>
2157
2158         Reviewed by Darin Adler.
2159
2160         * WebCoreSupport/WebEditorClient.cpp:
2161         (undoNameForEditAction):
2162
2163 2016-10-04  Brent Fulgham  <bfulgham@apple.com>
2164
2165         [Win][Direct2D] Connect WebCore/WebKit Drawing
2166         https://bugs.webkit.org/show_bug.cgi?id=162924
2167
2168         Reviewed by Alex Christensen.
2169
2170         Update the Windows WebKit layer to optionally use the Direct2D
2171         backend.
2172
2173         * FullscreenVideoController.cpp: Disable some CoreAnimation-based
2174         accelerated compositing logic.
2175         * FullscreenVideoController.h:
2176         * WebFrame.cpp:
2177         (WebFrame::spoolPages): Disable in Direct2D.
2178         * WebView.cpp:
2179         (WebView::ensureBackingStore): Add Direct2D logic.
2180         (WebView::scrollBackingStore): Ditto.
2181         (WebView::sizeChanged): Ditto.
2182         (WebView::paintWithDirect2D): Added.
2183         (WebView::WebViewWndProc): Call Direct2D paint routine.
2184         * WebView.h:
2185
2186 2016-10-02  Darin Adler  <darin@apple.com>
2187
2188         Rename ExceptionCode-based exception handling to "legacy"
2189         https://bugs.webkit.org/show_bug.cgi?id=162859
2190
2191         Reviewed by Chris Dumez.
2192
2193         * Interfaces/DOMEvents.idl: Let the script rename here (in a comment).
2194
2195 2016-09-29  Konstantin Tokarev  <annulen@yandex.ru>
2196
2197         Fixed compilation of PluginView when NETSCAPE_PLUGIN_API is disabled
2198         https://bugs.webkit.org/show_bug.cgi?id=162725
2199
2200         Reviewed by Alex Christensen.
2201
2202         Fix for r206460, streamDidFinishLoading() does not override anything
2203         when NETSCAPE_PLUGIN_API is disabled because PlugivView does not
2204         inherit PluginStreamClient in this case.
2205
2206         * Plugins/PluginView.h:
2207
2208 2016-09-27  Konstantin Tokarev  <annulen@yandex.ru>
2209
2210         Use override specifiers in PluginView
2211         https://bugs.webkit.org/show_bug.cgi?id=162628
2212
2213         Reviewed by Alex Christensen.
2214
2215         * Plugins/PluginView.h:
2216
2217 2016-09-23  Antoine Quint  <graouts@apple.com>
2218
2219         Add a new runtime flag for work on modern media controls (off by default)
2220         https://bugs.webkit.org/show_bug.cgi?id=162420
2221         <rdar://problem/27989489>
2222
2223         Reviewed by Eric Carlson.
2224
2225         * Interfaces/IWebPreferencesPrivate.idl:
2226         * WebPreferenceKeysPrivate.h:
2227         * WebPreferences.cpp:
2228         (WebPreferences::setModernMediaControlsEnabled):
2229         (WebPreferences::modernMediaControlsEnabled):
2230         (WebPreferences::setCustomElementsEnabled): Deleted.
2231         * WebPreferences.h:
2232         * WebView.cpp:
2233         (WebView::notifyPreferencesChanged):
2234
2235 2016-09-15  Brady Eidson  <beidson@apple.com>
2236
2237         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
2238         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
2239
2240         Reviewed by Brent Fulgham. 
2241
2242         * WebCoreSupport/WebFrameLoaderClient.cpp:
2243         (WebFrameLoaderClient::dispatchDidCommitLoad):
2244         * WebCoreSupport/WebFrameLoaderClient.h:
2245
2246 2016-09-07  Mark Lam  <mark.lam@apple.com>
2247
2248         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
2249         https://bugs.webkit.org/show_bug.cgi?id=161498
2250
2251         Reviewed by Geoffrey Garen.
2252
2253         * Plugins/PluginPackage.cpp:
2254         (WebCore::NPN_Evaluate):
2255         (WebCore::NPN_Invoke):
2256
2257 2016-09-06  Per Arne Vollan  <pvollan@apple.com>
2258
2259         [Win] Null pointer crash under WebView::scrollOffset.
2260         https://bugs.webkit.org/show_bug.cgi?id=161620
2261
2262         Reviewed by Darin Adler.
2263
2264         Added null pointer checks.
2265
2266         * WebView.cpp:
2267         (WebView::scrollOffset):
2268         (WebView::scrollBy):
2269         (WebView::visibleContentRect):
2270
2271 2016-09-03  Darin Adler  <darin@apple.com>
2272
2273         Streamline DOMImplementation, and move it to our new DOM exception system
2274         https://bugs.webkit.org/show_bug.cgi?id=161295
2275
2276         Reviewed by Ryosuke Niwa.
2277
2278         * WebFrame.cpp:
2279         (WebFrame::canProvideDocumentSource): Updated to use isXMLMIMEType in its new
2280         location in MIMETypeRegistry instead of in DOMImplementation.
2281
2282 2016-09-02  Ryosuke Niwa  <rniwa@webkit.org>
2283
2284         Build fix attempt after r205381.
2285
2286         * WebCoreSupport/WebEditorClient.h:
2287
2288 2016-08-31  Keith Rollin  <krollin@apple.com>
2289
2290         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
2291         https://bugs.webkit.org/show_bug.cgi?id=160969
2292         <rdar://problem/26068734>
2293
2294         Reviewed by Simon Fraser.
2295
2296         Enable subsystem- and channel-related data and functions when using
2297         RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
2298         and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
2299
2300         * WebKitLogging.cpp:
2301         * WebKitLogging.h:
2302         * WebView.cpp:
2303         (WebView::initWithFrame):
2304
2305 2016-08-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2306
2307         [GTK] Accelerated compositing does not work in Wayland
2308         https://bugs.webkit.org/show_bug.cgi?id=115803
2309
2310         Reviewed by Michael Catanzaro.
2311
2312         Update to the new GLContext API.
2313
2314         * WebCoreSupport/AcceleratedCompositingContext.cpp:
2315         (AcceleratedCompositingContext::initialize):
2316         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
2317
2318 2016-08-21  Alex Christensen  <achristensen@webkit.org>
2319
2320         Use Document& instead of Document* when getting cookies
2321         https://bugs.webkit.org/show_bug.cgi?id=161011
2322
2323         Reviewed by Darin Adler.
2324
2325         * Plugins/PluginView.cpp:
2326         (WebCore::PluginView::getValueForURL):
2327
2328 2016-08-16  Simon Fraser  <simon.fraser@apple.com>
2329
2330         Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
2331         https://bugs.webkit.org/show_bug.cgi?id=160923
2332
2333         Reviewed by Tim Horton.
2334
2335         didLayout(LayoutMilestones) -> didReachLayoutMilestone(LayoutMilestones)
2336         dispatchDidLayout(LayoutMilestones) -> dispatchDidReachLayoutMilestone(LayoutMilestones)
2337
2338         * WebCoreSupport/WebFrameLoaderClient.cpp:
2339         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
2340         (WebFrameLoaderClient::dispatchDidLayout): Deleted.
2341         * WebCoreSupport/WebFrameLoaderClient.h:
2342
2343 2016-08-18  Anders Carlsson  <andersca@apple.com>
2344
2345         Move an NPAPI-only function from WebCore to WebKit
2346         https://bugs.webkit.org/show_bug.cgi?id=160967
2347
2348         Reviewed by Sam Weinig.
2349
2350         * Plugins/PluginView.cpp:
2351         (WebCore::PluginView::~PluginView):
2352         (WebCore::PluginView::PluginView):
2353         (WebCore::PluginView::getValue):
2354         * Plugins/PluginView.h:
2355
2356 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
2357
2358         Remove unused includes of wtf headers
2359         https://bugs.webkit.org/show_bug.cgi?id=160839
2360
2361         Reviewed by Alex Christensen.
2362
2363         * WebFrame.h:
2364
2365 2016-08-09  Alex Christensen  <achristensen@webkit.org>
2366
2367         Move NetworkStorageSession management to WebCore
2368         https://bugs.webkit.org/show_bug.cgi?id=160173
2369
2370         Reviewed by Brady Eidson.
2371
2372         * WebCoreSupport/WebFrameNetworkingContext.cpp:
2373         (identifierBase):
2374         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
2375         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2376         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2377         (WebFrameNetworkingContext::blockedError):
2378         (WebFrameNetworkingContext::storageSession):
2379         (privateSession): Deleted.
2380         * WebCoreSupport/WebPlatformStrategies.cpp:
2381         (WebPlatformStrategies::createPasteboardStrategy):
2382         (WebPlatformStrategies::createBlobRegistry):
2383
2384 2016-08-09  Anders Carlsson  <andersca@apple.com>
2385
2386         Instantiate WebKit plug-ins at layout time, instead of at style resolution time
2387         https://bugs.webkit.org/show_bug.cgi?id=160715
2388
2389         Reviewed by Tim Horton.
2390
2391         * WebCoreSupport/WebFrameLoaderClient.cpp:
2392         (WebFrameLoaderClient::objectContentType):
2393
2394 2016-08-09  Per Arne Vollan  <pvollan@apple.com>
2395
2396         [Win] Crash in MiniBrowser.
2397         https://bugs.webkit.org/show_bug.cgi?id=160686
2398
2399         Reviewed by Sam Weinig.
2400
2401         We need to specify a plugin info provider object in the page configuration.
2402
2403         * WebView.cpp:
2404         (WebView::initWithFrame):
2405
2406 2016-08-09  Anders Carlsson  <andersca@apple.com>
2407
2408         Fix build.
2409
2410         * WebCoreSupport/WebPlatformStrategies.h:
2411
2412 2016-08-09  Anders Carlsson  <andersca@apple.com>
2413
2414         Get rid of PluginStrategy
2415         https://bugs.webkit.org/show_bug.cgi?id=160696
2416
2417         Reviewed by Dan Bernstein.
2418
2419         * WebCoreSupport/WebPlatformStrategies.cpp:
2420         (WebPlatformStrategies::createPluginStrategy): Deleted.
2421
2422 2016-08-09  Anders Carlsson  <andersca@apple.com>
2423
2424         Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
2425         https://bugs.webkit.org/show_bug.cgi?id=160694
2426
2427         Reviewed by Dan Bernstein.
2428
2429         * WebCoreSupport/WebPlatformStrategies.cpp:
2430         (WebPlatformStrategies::createPluginStrategy):
2431         (WebPlatformStrategies::refreshPlugins): Deleted.
2432         (WebPlatformStrategies::getPluginInfo): Deleted.
2433         (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
2434         * WebCoreSupport/WebPlatformStrategies.h:
2435         * WebCoreSupport/WebPluginInfoProvider.cpp:
2436         (WebPluginInfoProvider::refreshPlugins):
2437         (WebPluginInfoProvider::getPluginInfo):
2438         (WebPluginInfoProvider::getWebVisiblePluginInfo):
2439
2440 2016-08-08  Anders Carlsson  <andersca@apple.com>
2441
2442         Add a new PluginInfoProvider class, to replace PluginStrategy
2443         https://bugs.webkit.org/show_bug.cgi?id=160670
2444
2445         Reviewed by Sam Weinig.
2446
2447         Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
2448
2449         * WebCoreSupport/WebPluginInfoProvider.cpp: Added.
2450         (WebPluginInfoProvider::singleton):
2451         (WebPluginInfoProvider::WebPluginInfoProvider):
2452         (WebPluginInfoProvider::~WebPluginInfoProvider):
2453         (WebPluginInfoProvider::refreshPlugins):
2454         (WebPluginInfoProvider::getPluginInfo):
2455         (WebPluginInfoProvider::getWebVisiblePluginInfo):
2456         * WebCoreSupport/WebPluginInfoProvider.h: Added.
2457
2458 2016-07-29  Csaba Osztrogon√°c  <ossy@webkit.org>
2459
2460         Remove PassRef.h after r177259
2461         https://bugs.webkit.org/show_bug.cgi?id=160348
2462
2463         Reviewed by Andreas Kling.
2464
2465         * WebCoreSupport/WebVisitedLinkStore.h:
2466
2467 2016-07-27  Alex Christensen  <achristensen@webkit.org>
2468
2469         Fix Win debug build after r203749.
2470
2471         * WebView.cpp:
2472
2473 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
2474
2475         Allow LOG macros to be used outside the namespace, and other logging cleanup
2476         https://bugs.webkit.org/show_bug.cgi?id=160216
2477
2478         Reviewed by Anders Carlsson.
2479
2480         Fix some issues with the LOG macros.
2481         
2482         First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
2483         its log channels outside of the namespace (they are protected by a unique prefix anyway).
2484         
2485         Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
2486         into LogMacros.h, which is exported from WebCore as a private header.
2487         
2488         Third, split the Logging.h header into two. Logging.h remains for framework-internal
2489         log channels and log macros. Add LogInitialization.h which is external, and used to
2490         initialize the channels.
2491         
2492         Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
2493
2494         * WebKitLogging.cpp:
2495         * WebKitLogging.h:
2496         * WebView.cpp:
2497         (WebView::initWithFrame):
2498
2499 2016-07-23  Chris Dumez  <cdumez@apple.com>
2500
2501         Unreviewed, fix Windows build after r203623.
2502
2503         * DOMCoreClasses.cpp:
2504         (DOMDocument::getComputedStyle):
2505
2506 2016-07-22  Per Arne Vollan  <pvollan@apple.com>
2507
2508         IWebView::mainFrame crashes if called after IWebView::close
2509         https://bugs.webkit.org/show_bug.cgi?id=32868
2510
2511         Reviewed by Brent Fulgham.
2512
2513         After deleting the page in WebView::close the mainframe object may be deleted. 
2514          
2515         Test: Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp (CloseThenGetMainFrame).
2516
2517         * WebView.cpp:
2518         (WebView::close): set mainframe pointer member to null. 
2519
2520 2016-07-19  Per Arne Vollan  <pvollan@apple.com>
2521
2522         [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out.
2523         https://bugs.webkit.org/show_bug.cgi?id=159342
2524
2525         Reviewed by Darin Adler.
2526
2527         * WebFrame.h: Link fix. 
2528
2529 2016-07-17  Sam Weinig  <sam@webkit.org>
2530
2531         [WebKit API] Add SPI to track multiple navigations caused by a single user gesture
2532         <rdar://problem/26554137>
2533         https://bugs.webkit.org/show_bug.cgi?id=159856
2534
2535         Reviewed by Dan Bernstein.
2536
2537         * Plugins/PluginView.cpp:
2538         (WebCore::PluginView::performRequest):
2539         * WebCoreSupport/WebContextMenuClient.cpp:
2540         (WebContextMenuClient::searchWithGoogle):
2541         Update for new UserGestureIndicator interface.
2542
2543 2016-07-16  Ryosuke Niwa  <rniwa@webkit.org>
2544
2545         Rename fastGetAttribute to attributeWithoutSynchronization
2546         https://bugs.webkit.org/show_bug.cgi?id=159852
2547
2548         Reviewed by Darin Adler.
2549
2550         * DOMHTMLClasses.cpp:
2551         (DOMHTMLElement::idName):
2552
2553 2016-07-15  Chris Dumez  <cdumez@apple.com>
2554
2555         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible
2556         https://bugs.webkit.org/show_bug.cgi?id=159793
2557
2558         Reviewed by Ryosuke Niwa.
2559
2560         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance.
2561
2562         * DOMHTMLClasses.cpp:
2563         (DOMHTMLElement::idName):
2564
2565 2016-07-14  Chris Dumez  <cdumez@apple.com>
2566
2567         Use emptyString() instead of "" when possible
2568         https://bugs.webkit.org/show_bug.cgi?id=159789
2569
2570         Reviewed by Alex Christensen.
2571
2572         Use emptyString() instead of "" when possible to reduce String allocations.
2573
2574         * Plugins/PluginView.cpp:
2575         (WebCore::parseRFC822HeaderFields):
2576
2577 2016-07-14  Alex Christensen  <achristensen@webkit.org>
2578
2579         Use SocketProvider to create SocketStreamHandles
2580         https://bugs.webkit.org/show_bug.cgi?id=159774
2581
2582         Reviewed by Brady Eidson.
2583
2584         * WebSocketProvider.cpp: Removed.
2585         * WebSocketProvider.h: Removed.
2586         * WebView.cpp: Replaced WebSocketProvider with SocketProvider as we did in WebCore.
2587
2588 2016-07-14  Csaba Osztrogon√°c  <ossy@webkit.org>
2589
2590         Fix the !ENABLE(WEB_SOCKETS) build after r202930
2591         https://bugs.webkit.org/show_bug.cgi?id=159768
2592
2593         Reviewed by Alex Christensen.
2594
2595         * WebSocketProvider.h:
2596
2597 2016-07-11  Enrica Casucci  <enrica@apple.com>
2598
2599         Build fix.
2600
2601         Unreviewed.
2602
2603         * WebDropSource.cpp:
2604         (generateMouseEvent):
2605
2606 2016-07-11  Enrica Casucci  <enrica@apple.com>
2607
2608         Add synthetic click origin to WKNavigationAction.
2609         https://bugs.webkit.org/show_bug.cgi?id=159584
2610         rdar://problem/25610422
2611
2612         Reviewed by Tim Horton.
2613
2614         * WebDropSource.cpp:
2615         (generateMouseEvent):
2616
2617 2016-07-07  Alex Christensen  <achristensen@webkit.org>
2618
2619         Fix Windows build after r202930.
2620         https://bugs.webkit.org/show_bug.cgi?id=158776
2621
2622         * WebView.cpp:
2623         (WebView::initWithFrame):
2624
2625 2016-07-07  Alex Christensen  <achristensen@webkit.org>
2626
2627         Use SocketProvider to create WebSocketChannels
2628         https://bugs.webkit.org/show_bug.cgi?id=158776
2629
2630         Reviewed by Brent Fulgham.
2631
2632         * WebSocketProvider.cpp: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp.
2633         (WebSocketProvider::createWebSocketChannel):
2634         (WebCore::ThreadableWebSocketChannel::create): Deleted.
2635         * WebSocketProvider.h:
2636
2637 2016-07-06  Per Arne Vollan  <pvollan@apple.com>
2638
2639         [Win] Add null pointer check in gesture handling.
2640         https://bugs.webkit.org/show_bug.cgi?id=159454
2641
2642         Reviewed by Brent Fulgham.
2643
2644         * WebView.cpp:
2645         (WebView::gesture):
2646
2647 2016-07-01  Per Arne Vollan  <pvollan@apple.com>
2648
2649         ASSERTION FAILED: info.bmBitsPixel == 32
2650         https://bugs.webkit.org/show_bug.cgi?id=17737
2651
2652         Reviewed by Brent Fulgham.
2653
2654         The ::SelectObject call will fail if m_backingStoreBitmap is already selected into a device context.
2655         This happens when this method is called indirectly from WebView::updateBackingStore during normal
2656         painting. There is no point continuing, since we would just be scrolling a 1x1 bitmap which is
2657         selected into the device context by default. We can just scroll by repainting the scroll rectangle.
2658
2659         * WebView.cpp:
2660         (WebView::scrollBackingStore): Invalidate the scroll rectangle if the ::SelectObject call fails.
2661
2662 2016-07-01  Youenn Fablet  <youennf@gmail.com>
2663
2664         Add a runtime flag for DOM iterators
2665         https://bugs.webkit.org/show_bug.cgi?id=159300
2666
2667         Reviewed by Alex Christensen.
2668
2669         * WebPreferenceKeysPrivate.h:
2670         * WebPreferences.cpp:
2671         (WebPreferences::domIteratorEnabled):
2672         (WebPreferences::setDOMIteratorEnabled):
2673         (WebView::notifyPreferencesChanged):
2674         * WebPreferencesreferences.h:
2675         * WebView.cpp:
2676         (WebView::notifyPreferencesChanged):
2677
2678 2016-06-28  Per Arne Vollan  <pvollan@apple.com>
2679
2680         [Win] Custom elements tests are failing.
2681         https://bugs.webkit.org/show_bug.cgi?id=159139
2682
2683         Reviewed by Alex Christensen.
2684
2685         Add preference for enabling custom element API.
2686
2687         * Interfaces/IWebPreferencesPrivate.idl:
2688         * WebPreferenceKeysPrivate.h:
2689         * WebPreferences.cpp:
2690         (WebPreferences::initializeDefaultSettings):
2691         (WebPreferences::customElementsEnabled):
2692         (WebPreferences::setCustomElementsEnabled):
2693         * WebPreferences.h:
2694         * WebView.cpp:
2695         (WebView::notifyPreferencesChanged):
2696
2697 2016-06-23  Per Arne Vollan  <pvollan@apple.com>
2698
2699         [Win] The test accessibility/aria-labelledby-overrides-label.html is failing.
2700         https://bugs.webkit.org/show_bug.cgi?id=159057
2701
2702         Reviewed by Brent Fulgham.
2703
2704         The test expects the label to have a static text role, but currently it has a
2705         group role.
2706  
2707         * AccessibleBase.cpp:
2708         (MSAARole): Change the role of labels to static text.
2709
2710 2016-06-23  Alex Christensen  <achristensen@webkit.org>
2711
2712         Remove unused didCancelAuthenticationChallenge
2713         https://bugs.webkit.org/show_bug.cgi?id=158819
2714
2715         Reviewed by David Kilzer.
2716
2717         * WebCoreSupport/WebFrameLoaderClient.cpp:
2718         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted.
2719         * WebCoreSupport/WebFrameLoaderClient.h:
2720
2721 2016-06-22  Per Arne Vollan  <pvollan@apple.com>
2722
2723         [Win] The test storage/indexeddb/modern/handle-user-delete.html is timing out.
2724         https://bugs.webkit.org/show_bug.cgi?id=158934
2725
2726         Reviewed by Brent Fulgham.
2727
2728         Add a method to delete all indexed databases.
2729
2730         * Interfaces/IWebDatabaseManager.idl:
2731         * WebDatabaseManager.cpp:
2732         (WebDatabaseManager::QueryInterface):
2733         (WebDatabaseManager::deleteAllIndexedDatabases):
2734         * WebDatabaseManager.h:
2735
2736 2016-06-17  Per Arne Vollan  <pvollan@apple.com>
2737
2738         [Win] Rendering is not scaled correctly if process is DPI aware.
2739         https://bugs.webkit.org/show_bug.cgi?id=158781
2740
2741         Reviewed by Brent Fulgham.
2742
2743         Scale the root graphics layer with the device scale factor.
2744
2745         * WebView.cpp:
2746         (WebView::setAcceleratedCompositing):
2747
2748 2016-06-15  Chris Dumez  <cdumez@apple.com>
2749
2750         Drop some unnecessary header includes
2751         https://bugs.webkit.org/show_bug.cgi?id=158788
2752
2753         Reviewed by Alexey Proskuryakov.
2754
2755         Drop some unnecessary header includes in headers to speed up build time.
2756
2757         * Plugins/PluginView.cpp:
2758
2759 2016-06-15  Romain Bellessort  <romain.bellessort@crf.canon.fr>
2760
2761         Enabling Shadow DOM for all platforms
2762         https://bugs.webkit.org/show_bug.cgi?id=158738
2763
2764         Reviewed by Ryosuke Niwa.
2765
2766         Removed Shadow DOM from options (enabled by default)
2767         (comprises removal of corresponding preprocessor directives)
2768
2769         * WebView.cpp:
2770
2771 2016-06-13  Alex Christensen  <achristensen@webkit.org>
2772
2773         Add WebSocketProvider stub
2774         https://bugs.webkit.org/show_bug.cgi?id=158702
2775
2776         Reviewed by Brady Eidson.
2777
2778         * WebSocketProvider.h: Added.
2779         * WebView.cpp:
2780         (WebView::initWithFrame):
2781
2782 2016-06-10  Alex Christensen  <achristensen@webkit.org>
2783
2784         Introduce WTF::UniqueRef
2785         https://bugs.webkit.org/show_bug.cgi?id=158596
2786
2787         Reviewed by Brady Eidson.
2788
2789         * WebView.cpp:
2790         (WebView::initWithFrame):
2791
2792 2016-06-09  Alex Christensen  <achristensen@webkit.org>
2793
2794         Fix Windows build.
2795
2796         * WebKit.resources/resource.h: Removed.
2797         * resource.h: Copied from WebKit.resources/resource.h.
2798
2799 2016-06-09  Alex Christensen  <achristensen@webkit.org>
2800
2801         Actually fix Windows build after r201894
2802         https://bugs.webkit.org/show_bug.cgi?id=158588
2803
2804         * WebView.cpp:
2805         (WebView::initWithFrame):
2806
2807 2016-06-09  Alex Christensen  <achristensen@webkit.org>
2808
2809         Clean up WebKit.vcxproj directory after switching to CMake.
2810
2811         * WebKit.resources/resource.h: Copied from WebKit.vcxproj/WebKit/resource.h.
2812
2813 2016-06-09  Alex Christensen  <achristensen@webkit.org>
2814
2815         Unreviewed build fix after r201894
2816         https://bugs.webkit.org/show_bug.cgi?id=158588
2817
2818         * WebCoreSupport/WebEditorClient.cpp:
2819         (WebEditorClient::~WebEditorClient):
2820         (WebEditorClient::isContinuousSpellCheckingEnabled):
2821         (WebEditorClient::pageDestroyed): Deleted.
2822         * WebCoreSupport/WebEditorClient.h:
2823         * WebView.cpp:
2824         (WebView::initWithFrame):
2825
2826 2016-06-08  Per Arne Vollan  <pvollan@apple.com>
2827
2828         [Win] Shadow DOM tests are failing.
2829         https://bugs.webkit.org/show_bug.cgi?id=158524
2830
2831         Reviewed by Brent Fulgham.
2832
2833         Add preference for enabling Shadow DOM.
2834
2835         * Interfaces/IWebPreferencesPrivate.idl:
2836         * WebPreferenceKeysPrivate.h:
2837         * WebPreferences.cpp:
2838         (WebPreferences::initializeDefaultSettings):
2839         (WebPreferences::shadowDOMEnabled):
2840         (WebPreferences::setShadowDOMEnabled):
2841         * WebPreferences.h:
2842         * WebView.cpp:
2843         (WebView::notifyPreferencesChanged):
2844
2845 2016-06-07  Per Arne Vollan  <pvollan@apple.com>
2846
2847         [Win][IndexedDB] Crash when running worker test.
2848         https://bugs.webkit.org/show_bug.cgi?id=158434
2849
2850         Reviewed by Alex Christensen.
2851
2852         Initialize main runloop, otherwise RunLoop::main() will return nullptr.
2853
2854         * WebView.cpp:
2855         (WebView::WebView):
2856
2857 2016-06-03  Chris Dumez  <cdumez@apple.com>
2858
2859         Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
2860         <rdar://problem/26521101>
2861
2862         * WebCoreSupport/WebVisitedLinkStore.cpp:
2863         (WebVisitedLinkStore::removeAllVisitedLinks):
2864         (WebVisitedLinkStore::addVisitedLinkHash):
2865
2866 2016-06-03  Per Arne Vollan  <pvollan@apple.com>
2867
2868         [Win] Implement WebView::removeAllUserContentFromGroup
2869         https://bugs.webkit.org/show_bug.cgi?id=158343
2870
2871         Reviewed by Brent Fulgham.
2872
2873         * WebView.cpp:
2874         (WebView::removeAllUserContentFromGroup):
2875
2876 2016-06-02  Per Arne Vollan  <pvollan@apple.com>
2877
2878         [Win] Fetch API tests are failing.
2879         https://bugs.webkit.org/show_bug.cgi?id=158296
2880
2881         Reviewed by Alex Christensen.
2882
2883         Add preference for enabling Fetch API.
2884
2885         * Interfaces/IWebPreferencesPrivate.idl:
2886         * WebPreferenceKeysPrivate.h:
2887         * WebPreferences.cpp:
2888         (WebPreferences::initializeDefaultSettings):
2889         (WebPreferences::fetchAPIEnabled):
2890         (WebPreferences::setFetchAPIEnabled):
2891         * WebPreferences.h:
2892         * WebView.cpp:
2893         (WebView::notifyPreferencesChanged):
2894
2895 2016-06-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2896
2897         Use more references in ResourceLoader related code
2898         https://bugs.webkit.org/show_bug.cgi?id=158222
2899
2900         Reviewed by Darin Adler.
2901
2902         * Plugins/PluginStream.cpp:
2903         (WebCore::PluginStream::start):
2904
2905 2016-06-01  Per Arne Vollan  <pvollan@apple.com>
2906
2907         [Win] Potential null pointer crash when setting cursor.
2908         https://bugs.webkit.org/show_bug.cgi?id=158225
2909
2910         Reviewed by Alex Christensen.
2911
2912         Check return value of Cursor::platformCursor().
2913
2914         * WebCoreSupport/WebChromeClient.cpp:
2915         (WebChromeClient::setCursor):
2916
2917 2016-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
2918
2919         Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
2920         https://bugs.webkit.org/show_bug.cgi?id=158249
2921
2922         * Interfaces/IWebPreferencesPrivate.idl:
2923
2924 2016-05-27  Caitlin Potter  <caitp@igalia.com>
2925
2926         [JSC] implement async functions proposal
2927         https://bugs.webkit.org/show_bug.cgi?id=156147
2928
2929         Reviewed by Yusuke Suzuki.
2930
2931         * Interfaces/IWebPreferencesPrivate.idl:
2932
2933 2016-05-23  Chris Dumez  <cdumez@apple.com>
2934
2935         Generate bindings code for EventTarget.addEventListener() / removeEventListener()
2936         https://bugs.webkit.org/show_bug.cgi?id=157882
2937
2938         Reviewed by Darin Adler.
2939
2940         Generate bindings code for EventTarget.addEventListener() / removeEventListener()
2941         instead of hardcoding them in the bindings generator.
2942
2943         * DOMEventsClasses.cpp:
2944         (WebEventListener::operator==):
2945         * DOMEventsClasses.h:
2946
2947 2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
2948
2949         Remove LegacyProfiler
2950         https://bugs.webkit.org/show_bug.cgi?id=153565
2951
2952         Reviewed by Saam Barati.
2953
2954         * Interfaces/IWebInspector.idl:
2955         * WebCoreStatistics.cpp:
2956         * WebInspector.cpp:
2957         (WebInspector::isJavaScriptProfilingEnabled): Deleted.
2958         (WebInspector::setJavaScriptProfilingEnabled): Deleted.
2959         * WebInspector.h:
2960         * WebView.cpp:
2961
2962 2016-05-16  Joseph Pecoraro  <pecoraro@apple.com>
2963
2964         Unreviewed rollout r200924. Caused js/regress/string-replace-generic.html to fail.
2965
2966         * Interfaces/IWebInspector.idl:
2967         * WebCoreStatistics.cpp:
2968         * WebInspector.cpp:
2969         (WebInspector::isJavaScriptProfilingEnabled):
2970         (WebInspector::setJavaScriptProfilingEnabled):
2971         * WebInspector.h:
2972         * WebView.cpp:
2973
2974 2016-05-14  Joseph Pecoraro  <pecoraro@apple.com>
2975
2976         Remove LegacyProfiler
2977         https://bugs.webkit.org/show_bug.cgi?id=153565
2978
2979         Reviewed by Mark Lam.
2980
2981         * Interfaces/IWebInspector.idl:
2982         * WebView.cpp:
2983         * WebInspector.cpp:
2984         (WebInspector::isJavaScriptProfilingEnabled): Deleted.
2985         (WebInspector::setJavaScriptProfilingEnabled): Deleted.
2986         * WebInspector.h:
2987
2988 2016-05-12  Konstantin Tokarev  <annulen@yandex.ru>
2989
2990         Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem.
2991         https://bugs.webkit.org/show_bug.cgi?id=157624
2992
2993         Reviewed by Darin Adler.
2994
2995         * WebCoreSupport/WebFrameLoaderClient.cpp:
2996         (WebFrameLoaderClient::saveViewStateToItem):
2997         * WebCoreSupport/WebFrameLoaderClient.h:
2998
2999 2016-05-11  Chris Dumez  <cdumez@apple.com>
3000
3001         Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers
3002         https://bugs.webkit.org/show_bug.cgi?id=157556
3003
3004         Reviewed by Darin Adler.
3005
3006         * DOMCoreClasses.cpp:
3007         (DOMNode::insertBefore):
3008         (DOMNode::removeChild):
3009
3010 2016-05-11  Joanmarie Diggs  <jdiggs@igalia.com>
3011
3012         [GTK] accessibility/aria-readonly.html is failing
3013         https://bugs.webkit.org/show_bug.cgi?id=98357
3014
3015         Reviewed by Chris Fleizach.
3016
3017         Call AccessibilityNode::canSetValueAttribute() to determine if STATE_SYSTEM_READONLY
3018         should be added and if editable text should be supported.
3019
3020         * AccessibleBase.cpp:
3021         (AccessibleBase::state):
3022         * AccessibleTextImpl.cpp:
3023         (AccessibleText::deleteText):
3024         (AccessibleText::insertText):
3025         (AccessibleText::cutText):
3026         (AccessibleText::pasteText):
3027         (AccessibleText::replaceText):
3028
3029 2016-05-09  Fujii Hironori  <Hironori.Fujii@sony.com>
3030
3031         [wincairo] web inspector failed to launch in MiniBrowser
3032         https://bugs.webkit.org/show_bug.cgi?id=156184
3033         <rdar://problem/25539297>
3034
3035         Reviewed by Alex Christensen.
3036
3037         * WebCoreSupport/WebInspectorClient.cpp:
3038         (WebInspectorClient::openLocalFrontend): Enable
3039         AllowFileAccessFromFileURLs and AllowUniversalAccessFromFileURLs
3040         of WebPreferences for Web Inspector.
3041
3042 2016-05-06  Joseph Pecoraro  <pecoraro@apple.com>
3043
3044         Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent
3045         https://bugs.webkit.org/show_bug.cgi?id=157447
3046
3047         Reviewed by Ryosuke Niwa.
3048
3049         * WebView.cpp:
3050         (WebView::gestureNotify):
3051
3052 2016-05-04  Joanmarie Diggs  <jdiggs@igalia.com>
3053
3054         AX: ARIA 'region' role is now a landmark; HTML 'section' element should be a landmark only if named
3055         https://bugs.webkit.org/show_bug.cgi?id=157331
3056
3057         Reviewed by Chris Fleizach.
3058
3059         As part of this change, the WebCore DocumentRegionRole AccessibilityRole has
3060         been renamed to LandmarkRegionRole. Update MSAARole() to use the new name.
3061
3062         * AccessibleBase.cpp:
3063         (MSAARole):
3064
3065 2016-04-25  Per Arne Vollan  <peavo@outlook.com>
3066
3067         [Win][IndexedDB] Fix build errors.
3068         https://bugs.webkit.org/show_bug.cgi?id=156713
3069
3070         Reviewed by Alex Christensen.
3071
3072         Fix compile and link errors when building with IndexedDB enabled.
3073
3074         * WebView.cpp:
3075         (WebView::notifyPreferencesChanged):
3076         * storage: Added.
3077         * storage/WebDatabaseProvider.cpp: Added.
3078         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
3079
3080 2016-04-22  Brent Fulgham  <bfulgham@apple.com>
3081
3082         Unreviewed build fix after 4199841.
3083
3084         * WebApplicationCache.cpp:
3085         (WebApplicationCache::WebApplicationCache): Provide missing preference key definition.
3086
3087 2016-04-21  Anders Carlsson  <andersca@apple.com>
3088
3089         Add a missing space, as noticed by Darin.
3090
3091         * WebApplicationCache.cpp:
3092         (applicationCachePath):
3093
3094 2016-04-21  Anders Carlsson  <andersca@apple.com>
3095
3096         Stop using ApplicationCacheStorage::singleton() on Windows
3097         https://bugs.webkit.org/show_bug.cgi?id=156861
3098
3099         Reviewed by Darin Adler.
3100
3101         * WebApplicationCache.cpp:
3102         (applicationCachePath):
3103         (WebApplicationCache::storage):
3104         * WebApplicationCache.h:
3105         * WebCache.cpp:
3106         (WebCache::empty):
3107         * WebView.cpp:
3108         (WebView::initWithFrame):
3109         (WebKitSetApplicationCachePathIfNecessary): Deleted.
3110
3111 2016-04-15  Brent Fulgham  <bfulgham@apple.com>
3112
3113         CSP: Make dynamically-added favicons (via link rel="icon") obey Content-Security-Policy
3114         https://bugs.webkit.org/show_bug.cgi?id=153151
3115         <rdar://problem/24383176>
3116
3117         Reviewed by Darin Adler.
3118
3119         Remove the unused dynamic favicon code and tests.
3120
3121         * WebCoreSupport/WebFrameLoaderClient.cpp:
3122         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
3123         * WebCoreSupport/WebFrameLoaderClient.h:
3124
3125 2016-04-15  Darin Adler  <darin@apple.com>
3126
3127         Reduce use of Deprecated::ScriptXXX classes
3128         https://bugs.webkit.org/show_bug.cgi?id=156632
3129
3130         Reviewed by Alex Christensen.
3131
3132         * Plugins/PluginView.cpp:
3133         (WebCore::PluginView::performRequest): Use JSValue.
3134         * WebFrame.cpp:
3135         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld): Ditto.
3136         * WebView.cpp:
3137         (WebView::stringByEvaluatingJavaScriptFromString): Ditto.
3138
3139 2016-04-11  Darin Adler  <darin@apple.com>
3140
3141         Remove UsePointersEvenForNonNullableObjectArguments from HTMLSelectElement
3142         https://bugs.webkit.org/show_bug.cgi?id=156458
3143
3144         Reviewed by Chris Dumez.
3145
3146         * DOMCoreClasses.cpp: Added now-needed include.
3147
3148 2016-04-11  Gavin Barraclough  <barraclough@apple.com>
3149
3150         WebKit should adopt journal_mode=wal for all SQLite databases.
3151         https://bugs.webkit.org/show_bug.cgi?id=133496
3152
3153         Reviewed by Darin Adler.
3154
3155         * WebDatabaseManager.cpp:
3156         (WebDatabaseManager::deleteAllDatabases):
3157             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
3158
3159 2016-04-08  Joanmarie Diggs  <jdiggs@igalia.com>
3160
3161         AX: "AXLandmarkApplication" is an inappropriate subrole for ARIA "application" since it's no longer a landmark
3162         https://bugs.webkit.org/show_bug.cgi?id=155403
3163
3164         Reviewed by Chris Fleizach.
3165
3166         The new subrole is AXWebApplication and the new role description is "web application".
3167         As part of the fix, the WebCore AccessibilityRole for ARIA's "application" role was
3168         renamed from LandmarkApplicationRole to WebApplicationRole.
3169
3170         The roles-exposed.html and aria-grouping-roles.html test expectations were also updated.
3171
3172         * AccessibleBase.cpp: Update the rolename
3173         (MSAARole):
3174
3175 2016-04-07  Brian Burg  <bburg@apple.com>
3176
3177         CookieJar should support adding synthetic cookies for developer tools
3178         https://bugs.webkit.org/show_bug.cgi?id=156091
3179         <rdar://problem/25581340>
3180
3181         Reviewed by Timothy Hatcher.
3182
3183         * WebCoreSupport/WebPlatformStrategies.h:
3184         * WebCoreSupport/WebPlatformStrategies.cpp:
3185         Add new method override.
3186
3187 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
3188
3189         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
3190         https://bugs.webkit.org/show_bug.cgi?id=155412
3191
3192         Reviewed by Darin Adler.
3193
3194         * Plugins/PluginView.h:
3195         * Plugins/PluginViewWin.cpp:
3196         (WebCore::PluginView::snapshot):
3197         Replace PassRefPtr with RefPtr.
3198
3199 2016-03-22  Per Arne Vollan  <peavo@outlook.com>
3200
3201         [Win] [64-bit] Remove MSVC 2013 FMA3 Bug Workaround
3202         https://bugs.webkit.org/show_bug.cgi?id=141499
3203
3204         Reviewed by Brent Fulgham.
3205
3206         As we have moved on to VS2015, this workaround is no longer needed.
3207
3208         * WebKitDLL.cpp:
3209         (DllMain):
3210
3211 2016-03-21  Hyungwook Lee  <hyungwook.lee@navercorp.com> 
3212
3213         [Win] Connect layoutTestController.findString() to support testing 
3214         https://bugs.webkit.org/show_bug.cgi?id=50234
3215
3216         Reviewed by Alex Christensen.
3217
3218         Implement WebView::findString to support testing efforts.
3219
3220         * Interfaces/IWebViewPrivate.idl: Add API declaration.
3221         * WebView.cpp:
3222         * WebView.h:
3223
3224 2016-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
3225
3226         Unreviewed, rolling out r196951 and r197031.
3227
3228         Revert also WinCairo follow ups after r196803
3229
3230         Reverted changesets:
3231
3232         "[WinCairo] Compile fix."
3233         https://bugs.webkit.org/show_bug.cgi?id=154545
3234         http://trac.webkit.org/changeset/196951
3235
3236         "[WinCairo] Mark layer as non composited."
3237         https://bugs.webkit.org/show_bug.cgi?id=154640
3238         http://trac.webkit.org/changeset/197031
3239
3240 2016-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
3241
3242         Unreviewed, rolling out r197693.
3243
3244         197031
3245
3246         Reverted changeset:
3247
3248         "[WinCairo][AcceleratedCompositing] Rendering issues on
3249         www.bbc.com."
3250         https://bugs.webkit.org/show_bug.cgi?id=154912
3251         http://trac.webkit.org/changeset/197693
3252
3253 2016-03-15  Brent Fulgham  <bfulgham@apple.com>
3254
3255         [Win] Correct double-release of CFURLConnectionRef
3256         https://bugs.webkit.org/show_bug.cgi?id=155515
3257         <rdar://problem/25159143>
3258
3259         Reviewed by Tim Horton.
3260
3261         Tested by http/tests/download suite.
3262
3263         * WebDownloadCFNet.cpp: Remove extra CFRelease.
3264
3265 2016-03-14  Per Arne Vollan  <peavo@outlook.com>
3266
3267         [WinCairo] Compile fix.
3268         https://bugs.webkit.org/show_bug.cgi?id=155463
3269
3270         Reviewed by Alex Christensen.
3271
3272         Get the NetworkStorageSession object from the document in the same way as other platforms do.
3273
3274         * WebCoreSupport/WebFrameNetworkingContext.cpp:
3275         (WebFrameNetworkingContext::storageSession):
3276         * WebCoreSupport/WebFrameNetworkingContext.h:
3277         (WebFrameNetworkingContext::storageSession):
3278
3279 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
3280
3281         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
3282         https://bugs.webkit.org/show_bug.cgi?id=150497
3283
3284         Reviewed by Darin Adler.
3285
3286         * WebArchive.cpp:
3287         (WebArchive::initWithNode):
3288
3289 2016-03-12  Sam Weinig  <sam@webkit.org>
3290
3291         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
3292         <rdar://problem/25129946>
3293         https://bugs.webkit.org/show_bug.cgi?id=155401
3294
3295         Reviewed by Alex Christensen.
3296
3297         * WebCoreSupport/WebFrameNetworkingContext.cpp:
3298         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3299         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
3300
3301 2016-03-10  Jer Noble  <jer.noble@apple.com>
3302
3303         Unreviewed build fix after r197953; correct the settings added in r197953.
3304
3305         * WebView.cpp:
3306         (WebView::notifyPreferencesChanged):
3307
3308 2016-03-10  Jer Noble  <jer.noble@apple.com>
3309
3310         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
3311         https://bugs.webkit.org/show_bug.cgi?id=155141
3312
3313         Reviewed by Beth Dakin.
3314
3315         * WebView.cpp:
3316         (WebView::notifyPreferencesChanged):
3317
3318 2016-03-07  Per Arne Vollan  <peavo@outlook.com>
3319
3320         [WinCairo][AcceleratedCompositing] Rendering issues on www.bbc.com.
3321         https://bugs.webkit.org/show_bug.cgi?id=154912
3322
3323         Reviewed by Michael Catanzaro.
3324
3325         If we have a scroll layer, we should not include the scroll position in the visible rectangle,
3326         since the scroll position is already reflected in the position of the scroll layer.
3327
3328         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3329         (AcceleratedCompositingContext::flushPendingLayerChanges):
3330
3331 2016-03-06  Gavin Barraclough  <barraclough@apple.com>
3332
3333         Convert DOMTimer to std::chrono::milliseconds
3334         https://bugs.webkit.org/show_bug.cgi?id=155085
3335
3336         Reviewed by Andreas Kling.
3337
3338         DOMTimer currently uses a mix of millisecond (was int, now std::chrono) and second (as double)
3339         time values. Constant conversion back and forth is a complete mess. Stop that.
3340
3341         * WebView.cpp:
3342         (WebView::setMinimumTimerInterval):
3343             - Convert double argument into std::chrono::milliseconds.
3344
3345 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
3346
3347         [ES6] Support Reflect.construct
3348         https://bugs.webkit.org/show_bug.cgi?id=147330
3349
3350         Reviewed by Saam Barati.
3351
3352         * Plugins/PluginPackage.cpp:
3353         (WebCore::NPN_Invoke):
3354
3355 2016-02-24  Per Arne Vollan  <peavo@outlook.com>
3356
3357         [WinCairo] Mark layer as non composited.
3358         https://bugs.webkit.org/show_bug.cgi?id=154640
3359
3360         Reviewed by Alex Christensen.
3361
3362         We need to mark the non composited layer as being non composited.
3363
3364         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3365         (AcceleratedCompositingContext::initialize):
3366         (AcceleratedCompositingContext::flushPendingLayerChanges):
3367
3368 2016-02-22  Per Arne Vollan  <peavo@outlook.com>
3369
3370         [WinCairo] Compile fix.
3371         https://bugs.webkit.org/show_bug.cgi?id=154545
3372
3373         Reviewed by Alex Christensen.
3374
3375         Add missing parameter to GraphicsLayerTextureMapper::updateBackingStoreIncludingSubLayers().
3376
3377         * WebCoreSupport/AcceleratedCompositingContext.cpp:
3378         (AcceleratedCompositingContext::flushPendingLayerChanges):
3379
3380 2016-02-21  Darin Adler  <darin@apple.com>
3381
3382         Refactor LazyEventListener creation to separate Element and Document cases
3383         https://bugs.webkit.org/show_bug.cgi?id=154231
3384
3385         Reviewed by Andreas Kling.
3386
3387         * WebView.h: Forward declare KeyboardEvent.
3388
3389 2016-02-16  Andreas Kling  <akling@apple.com>
3390
3391         Drop StyleResolver and SelectorQueryCache when entering PageCache.
3392         <https://webkit.org/b/154238>
3393
3394         Reviewed by Antti Koivisto.
3395
3396         * WebCoreSupport/WebVisitedLinkStore.cpp:
3397         (WebVisitedLinkStore::removeAllVisitedLinks): Deleted.
3398         (WebVisitedLinkStore::addVisitedLinkHash): Deleted.
3399
3400 2016-02-14  Chris Dumez  <cdumez@apple.com>
3401
3402         Unreviewed Window build fix.
3403
3404         * WebCoreStatistics.cpp:
3405         * WebJavaScriptCollector.cpp:
3406
3407 2016-02-12  Jiewen Tan  <jiewen_tan@apple.com>
3408
3409         WebKit should expose the DOM 4 Event.isTrusted property
3410         https://bugs.webkit.org/show_bug.cgi?id=76121
3411         <rdar://problem/22558494>
3412
3413         Reviewed by Darin Adler.
3414
3415         * DOMCoreClasses.cpp:
3416         (DOMNode::dispatchEvent):
3417         (DOMWindow::dispatchEvent):
3418
3419 2016-02-11  Antti Koivisto  <antti@apple.com>
3420
3421         Try to fix windows build.
3422
3423         * DOMCoreClasses.cpp:
3424         (DOMElement::style):
3425         (DOMElement::offsetLeft):
3426
3427 2016-02-06  Darin Adler  <darin@apple.com>
3428
3429         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
3430         https://bugs.webkit.org/show_bug.cgi?id=153905
3431
3432         Reviewed by Sam Weinig.
3433
3434         * Plugins/PluginDatabase.cpp:
3435         (WebCore::PluginDatabase::pluginForMIMEType): Use ASCII case-insensitive map rather
3436         than lowercasing the MIME type.
3437         (WebCore::PluginDatabase::setPreferredPluginForMIMEType): Ditto.
3438
3439         * Plugins/PluginDatabase.h: Make m_preferredPlugins use an ASCII case-insensitive hash.
3440
3441         * Plugins/PluginPackage.h: Use ASCII case-insensitive hash for maps keyed by MIME type.
3442
3443         * Plugins/PluginPackageWin.cpp:
3444         (WebCore::PluginPackage::fetchInfo): Use convertToASCIILowercase to lowercase a MIME type.
3445
3446 2016-02-04  Joseph Pecoraro  <pecoraro@apple.com>
3447
3448         Web Inspector: InspectorTimelineAgent doesn't need to recompile functions because it now uses the sampling profiler
3449         https://bugs.webkit.org/show_bug.cgi?id=153500
3450         <rdar://problem/24352458>
3451
3452         Reviewed by Timothy Hatcher.
3453
3454         * WebInspector.cpp:
3455         (WebInspector::isJavaScriptProfilingEnabled):
3456         (WebInspector::setJavaScriptProfilingEnabled):
3457         Switch to the new API names.
3458
3459 2016-01-31  Darin Adler  <darin@apple.com>
3460
3461         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
3462         https://bugs.webkit.org/show_bug.cgi?id=153639
3463
3464         Reviewed by Filip Pizlo.
3465
3466         * WebCoreStatistics.cpp:
3467         (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
3468         These names are all ASCII.
3469
3470         * WebURLResponse.cpp:
3471         (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
3472         field names. These names are all ASCII.
3473
3474 2016-01-30  Commit Queue  <commit-queue@webkit.org>
3475
3476         Unreviewed, rolling out r195911.
3477         https://bugs.webkit.org/show_bug.cgi?id=153723
3478
3479         Caused frequent assertion failures on bots (Requested by ap on
3480         #webkit).
3481
3482         Reverted changeset:
3483
3484         "Replace CaseFoldingHash with ASCIICaseInsensitiveHash"
3485         https://bugs.webkit.org/show_bug.cgi?id=153639
3486         http://trac.webkit.org/changeset/195911
3487
3488 2016-01-30  Commit Queue  <commit-queue@webkit.org>
3489
3490         Unreviewed, rolling out r195799 and r195828.
3491         https://bugs.webkit.org/show_bug.cgi?id=153722
3492
3493         Caused assertion failures, severely affecting EWS (Requested
3494         by ap on #webkit).
3495
3496         Reverted changesets:
3497
3498         "Web Inspector: InspectorTimelineAgent doesn't need to
3499         recompile functions because it now uses the sampling profiler"
3500         https://bugs.webkit.org/show_bug.cgi?id=153500
3501         http://trac.webkit.org/changeset/195799
3502
3503         "Attempt to fix the Windows build after r195799"
3504         http://trac.webkit.org/changeset/195828
3505
3506 2016-01-30  Darin Adler  <darin@apple.com>
3507
3508         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
3509         https://bugs.webkit.org/show_bug.cgi?id=153639
3510
3511         Reviewed by Filip Pizlo.
3512
3513         * WebCoreStatistics.cpp:
3514         (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
3515         These names are all ASCII.
3516
3517         * WebURLResponse.cpp:
3518         (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
3519         field names. These names are all ASCII.
3520
3521 2016-01-29  Ryan Haddad  <ryanhaddad@apple.com>
3522
3523         Attempt to fix the Windows build after r195799
3524
3525         Unreviewed build fix.
3526
3527         * WebInspector.cpp:
3528         (WebInspector::isJavaScriptProfilingEnabled):
3529         (WebInspector::setJavaScriptProfilingEnabled):
3530
3531 2016-01-28  Darin Adler  <darin@apple.com>
3532
3533         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
3534         https://bugs.webkit.org/show_bug.cgi?id=153411
3535
3536         Reviewed by Ryosuke Niwa.
3537
3538         * Plugins/PluginDatabase.cpp:
3539         (WebCore::PluginDatabase::MIMETypeForExtension): Use equalIgnoringASCIICase to compare
3540         file extensions.
3541         * Plugins/PluginDatabaseWin.cpp:
3542         (WebCore::PluginDatabase::getPluginPathsInDirectories): Use equalLettersIgnoringASCIICase
3543         to compare filenames.
3544         * Plugins/PluginPackageWin.cpp:
3545         (WebCore::PluginPackage::isPluginBlacklisted): Use equalLettersIgnoringASCIICase to
3546         compare DLL filenames.
3547         * Plugins/PluginStream.cpp:
3548         (WebCore::PluginStream::destroyStream): Use equalLettersIgnoringASCIICase to check HTTP method.
3549         * Plugins/PluginView.cpp:
3550         (WebCore::PluginView::setParameters): Use equalLettersIgnoringASCIICase to check
3551         plug-in parameter name.
3552         * WebView.cpp:
3553         (WebView::canHandleRequest): Use URL::protocolIs instead of equalIgnoringCase.
3554
3555 2016-01-22  Ryosuke Niwa  <rniwa@webkit.org>
3556
3557         document.createElement should be able to create a custom element
3558         https://bugs.webkit.org/show_bug.cgi?id=153173
3559
3560         Reviewed by Darin Adler.
3561
3562         Use createElementForBindings here since this is a C++ binding for Windows.
3563
3564         * DOMCoreClasses.cpp:
3565         (DOMDocument::createElement):
3566
3567 2016-01-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3568
3569         Reduce PassRefPtr uses in dom - 4
3570         https://bugs.webkit.org/show_bug.cgi?id=153270
3571
3572         Reviewed by Darin Adler.
3573
3574         As a step to remove PassRefPtr uses, this patch reduces the uses in WebCore/dom.
3575
3576         * Plugins/PluginView.cpp:
3577         (WebCore::PluginView::focusPluginElement):
3578
3579 2016-01-17  Ada Chan  <adachan@apple.com>
3580
3581         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
3582         https://bugs.webkit.org/show_bug.cgi?id=153220
3583
3584         Reviewed by Eric Carlson.
3585
3586         * WebCoreSupport/WebChromeClient.cpp:
3587         (WebChromeClient::supportsVideoFullscreen):
3588         * WebCoreSupport/WebChromeClient.h:
3589
3590 2016-01-22  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3591
3592         Remove PassRefPtr from ResourceRequest and FormData
3593         https://bugs.webkit.org/show_bug.cgi?id=153229
3594
3595         Reviewed by Chris Dumez.
3596
3597         * WebMutableURLRequest.cpp:
3598         (WebMutableURLRequest::setHTTPBody):
3599
3600 2016-01-15  Simon Fraser  <simon.fraser@apple.com>
3601
3602         Remove GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon()
3603         https://bugs.webkit.org/show_bug.cgi?id=153174
3604
3605         Reviewed by Zalan Bujtas.
3606
3607         GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon() were
3608         poorly named (non-convex polygons are allowed), and just syntactic sugar over
3609         clipPath() and drawPath().
3610         
3611         Remove them, but add a convenience function to create a Path from a Vector of 
3612         points. For CG, we can use the more efficient CGPathAddLines().
3613
3614         * FullscreenVideoController.cpp:
3615         (HUDSlider::draw):
3616
3617 2016-01-05  Per Arne Vollan  <peavo@outlook.com>
3618
3619         [WinCairo] Download should use header values from provided request object.
3620         https://bugs.webkit.org/show_bug.cgi?id=152694
3621
3622         Reviewed by Alex Christensen.
3623
3624         Copy header values from request object parameter.
3625
3626         * WebDownloadCurl.cpp:
3627         (WebDownload::initWithRequest):
3628
3629 2015-12-31  Andy Estes  <aestes@apple.com>
3630
3631         Replace WTF::move with WTFMove
3632         https://bugs.webkit.org/show_bug.cgi?id=152601
3633
3634         Reviewed by Brady Eidson.
3635
3636         * Plugins/PluginStream.cpp:
3637         (WebCore::PluginStream::willSendRequest):
3638         * Plugins/PluginView.cpp:
3639         (WebCore::PluginView::requestTimerFired):
3640         (WebCore::PluginView::scheduleRequest):
3641         (WebCore::PluginView::handlePost):