Move many miscellaneous classes from ExceptionCode to Exception
[WebKit-https.git] / Source / WebKit / win / ChangeLog
1 2016-10-18  Darin Adler  <darin@apple.com>
2
3         Move many miscellaneous classes from ExceptionCode to Exception
4         https://bugs.webkit.org/show_bug.cgi?id=163645
5
6         Reviewed by Ryosuke Niwa.
7
8         * DOMCoreClasses.cpp:
9         (DOMDocument::getComputedStyle): Use ptr instead of get since the return
10         value is now Ref instead of RefPtr.
11
12 2016-10-18  Anders Carlsson  <andersca@apple.com>
13
14         Try to fix the Windows build.
15
16         * WebHistoryItem.cpp:
17         (WebHistoryItem::redirectURLs):
18
19 2016-10-18  Anders Carlsson  <andersca@apple.com>
20
21         Move some history specific HistoryItem code to WebHistoryItem
22         https://bugs.webkit.org/show_bug.cgi?id=163567
23
24         Reviewed by Tim Horton.
25
26         Remove these, they aren't used.
27
28         * WebCoreSupport/WebFrameLoaderClient.cpp:
29         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
30         * WebHistory.cpp:
31         (WebHistory::visitedURL):
32         * WebHistoryItem.cpp:
33         (WebHistoryItem::initFromDictionaryRepresentation):
34         (WebHistoryItem::dictionaryRepresentation):
35
36 2016-10-16  Darin Adler  <darin@apple.com>
37
38         Move CSS classes from ExceptionCode to Exception
39         https://bugs.webkit.org/show_bug.cgi?id=163494
40
41         Reviewed by Sam Weinig.
42
43         * DOMCSSClasses.cpp:
44         (DOMCSSStyleDeclaration::setCssText): Remove ExceptionCode handling.
45         (DOMCSSStyleDeclaration::setProperty): Ditto.
46
47 2016-10-12  Anders Carlsson  <andersca@apple.com>
48
49         Copy BackForwardList from WebCore to WebKit/win
50         https://bugs.webkit.org/show_bug.cgi?id=163360
51
52         Reviewed by Alex Christensen.
53
54         Use our local BackForwardList class instead of WebCore::BackForwardList.
55
56         * BackForwardList.cpp: Added.
57         * BackForwardList.h: Added.
58         * WebBackForwardList.h:
59         * WebView.cpp:
60         (WebView::initWithFrame):
61         (WebView::backForwardList):
62
63 2016-10-13  Anders Carlsson  <andersca@apple.com>
64
65         Get rid of the HistoryItemVector typedef
66         https://bugs.webkit.org/show_bug.cgi?id=163398
67
68         Reviewed by Beth Dakin.
69
70         Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
71
72         * WebBackForwardList.cpp:
73         (WebBackForwardList::backListWithLimit):
74         (WebBackForwardList::forwardListWithLimit):
75         * WebHistoryItem.cpp:
76         (WebHistoryItem::children):
77
78 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
79
80         [Win] Unreviewed build fix after r207218.
81
82         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
83         It should be using USE(CFURLCONNECTION).
84
85         * WebCache.cpp: Missed one!
86
87 2016-10-12  Brent Fulgham  <bfulgham@apple.com>
88
89         [Win] Unreviewed build fix after r207218.
90
91         The CQ-landed patch used the old USE(CFNETWORK) compiler guard.
92         It should be using USE(CFURLCONNECTION).
93
94         * WebCache.cpp:
95         (WebCache::cacheFolder):
96         (WebCache::setCacheFolder):
97
98 2016-10-12  Per Arne Vollan  <pvollan@apple.com>
99
100         [Win] Parallel DRTs are sharing preferences and cache.
101         https://bugs.webkit.org/show_bug.cgi?id=163013
102
103         Reviewed by Brent Fulgham.
104
105         Make it possible for a WebKit client to use separate preferences and cache.
106
107         * Interfaces/IWebPreferencesPrivate.idl:
108         * WebApplicationCache.cpp:
109         (applicationCachePath):
110         * WebCache.cpp:
111         (WebCache::cacheFolder):
112         (WebCache::setCacheFolder):
113         * WebDatabaseManager.cpp:
114         (databasesDirectory):
115         * WebPreferences.cpp:
116         (WebPreferences::applicationId):
117         (WebPreferences::valueForKey):
118         (WebPreferences::setValueForKey):
119         (WebPreferences::save):
120         (WebPreferences::QueryInterface):
121         (WebPreferences::modernMediaControlsEnabled):
122         (WebPreferences::setApplicationId):
123         * WebPreferences.h:
124         * WebView.cpp:
125         (WebView::setCacheModel):
126
127 2016-10-11  Alex Christensen  <achristensen@webkit.org>
128
129         Remove dead networking code
130         https://bugs.webkit.org/show_bug.cgi?id=163263
131
132         Reviewed by Daniel Bates.
133
134         * DefaultDownloadDelegate.h:
135         * WebCoreSupport/WebFrameLoaderClient.cpp:
136         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
137         * WebCoreSupport/WebFrameNetworkingContext.cpp:
138         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
139         * WebCoreSupport/WebFrameNetworkingContext.h:
140         * WebCoreSupport/WebPlatformStrategies.cpp:
141         * WebDownload.h:
142         * WebError.cpp:
143         (WebError::localizedDescription):
144         (WebError::sslPeerCertificate):
145         * WebError.h:
146         * WebMutableURLRequest.cpp:
147         (WebMutableURLRequest::mutableCopy):
148         * WebURLAuthenticationChallenge.cpp:
149         (WebURLAuthenticationChallenge::initWithProtectionSpace):
150         (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
151         * WebURLResponse.cpp:
152         (WebURLResponse::sslPeerCertificate):
153         * WebURLResponse.h:
154         * WebView.cpp:
155         (WebView::setCacheModel):
156         (WebView::canHandleRequest):
157         (WebView::notifyPreferencesChanged):
158         (updateSharedSettingsFromPreferencesIfNeeded):
159
160 2016-10-11  Ryan Haddad  <ryanhaddad@apple.com>
161
162         Unreviewed, rolling out r207067.
163
164         This change caused webkitpy test failures.
165
166         Reverted changeset:
167
168         "[Win] Parallel DRTs are sharing preferences and cache."
169         https://bugs.webkit.org/show_bug.cgi?id=163013
170         http://trac.webkit.org/changeset/207067
171
172 2016-10-11  Per Arne Vollan  <pvollan@apple.com>
173
174         [Win] Parallel DRTs are sharing preferences and cache.
175         https://bugs.webkit.org/show_bug.cgi?id=163013
176
177         Reviewed by Brent Fulgham.
178
179         Make it possible for a WebKit client to use separate preferences and cache.
180
181         * Interfaces/IWebPreferencesPrivate.idl:
182         * WebApplicationCache.cpp:
183         (applicationCachePath):
184         * WebCache.cpp:
185         (WebCache::cacheFolder):
186         (WebCache::setCacheFolder):
187         * WebDatabaseManager.cpp:
188         (databasesDirectory):
189         * WebPreferences.cpp:
190         (WebPreferences::applicationId):
191         (WebPreferences::valueForKey):
192         (WebPreferences::setValueForKey):
193         (WebPreferences::save):
194         (WebPreferences::QueryInterface):
195         (WebPreferences::modernMediaControlsEnabled):
196         (WebPreferences::setApplicationId):
197         * WebPreferences.h:
198         * WebView.cpp:
199         (WebView::setCacheModel):
200
201 2016-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
202
203         Support InputEvent.inputType for the new InputEvent spec
204         https://bugs.webkit.org/show_bug.cgi?id=163025
205         <rdar://problem/28658092>
206
207         Reviewed by Darin Adler.
208
209         * WebCoreSupport/WebEditorClient.cpp:
210         (undoNameForEditAction):
211
212 2016-10-04  Brent Fulgham  <bfulgham@apple.com>
213
214         [Win][Direct2D] Connect WebCore/WebKit Drawing
215         https://bugs.webkit.org/show_bug.cgi?id=162924
216
217         Reviewed by Alex Christensen.
218
219         Update the Windows WebKit layer to optionally use the Direct2D
220         backend.
221
222         * FullscreenVideoController.cpp: Disable some CoreAnimation-based
223         accelerated compositing logic.
224         * FullscreenVideoController.h:
225         * WebFrame.cpp:
226         (WebFrame::spoolPages): Disable in Direct2D.
227         * WebView.cpp:
228         (WebView::ensureBackingStore): Add Direct2D logic.
229         (WebView::scrollBackingStore): Ditto.
230         (WebView::sizeChanged): Ditto.
231         (WebView::paintWithDirect2D): Added.
232         (WebView::WebViewWndProc): Call Direct2D paint routine.
233         * WebView.h:
234
235 2016-10-02  Darin Adler  <darin@apple.com>
236
237         Rename ExceptionCode-based exception handling to "legacy"
238         https://bugs.webkit.org/show_bug.cgi?id=162859
239
240         Reviewed by Chris Dumez.
241
242         * Interfaces/DOMEvents.idl: Let the script rename here (in a comment).
243
244 2016-09-29  Konstantin Tokarev  <annulen@yandex.ru>
245
246         Fixed compilation of PluginView when NETSCAPE_PLUGIN_API is disabled
247         https://bugs.webkit.org/show_bug.cgi?id=162725
248
249         Reviewed by Alex Christensen.
250
251         Fix for r206460, streamDidFinishLoading() does not override anything
252         when NETSCAPE_PLUGIN_API is disabled because PlugivView does not
253         inherit PluginStreamClient in this case.
254
255         * Plugins/PluginView.h:
256
257 2016-09-27  Konstantin Tokarev  <annulen@yandex.ru>
258
259         Use override specifiers in PluginView
260         https://bugs.webkit.org/show_bug.cgi?id=162628
261
262         Reviewed by Alex Christensen.
263
264         * Plugins/PluginView.h:
265
266 2016-09-23  Antoine Quint  <graouts@apple.com>
267
268         Add a new runtime flag for work on modern media controls (off by default)
269         https://bugs.webkit.org/show_bug.cgi?id=162420
270         <rdar://problem/27989489>
271
272         Reviewed by Eric Carlson.
273
274         * Interfaces/IWebPreferencesPrivate.idl:
275         * WebPreferenceKeysPrivate.h:
276         * WebPreferences.cpp:
277         (WebPreferences::setModernMediaControlsEnabled):
278         (WebPreferences::modernMediaControlsEnabled):
279         (WebPreferences::setCustomElementsEnabled): Deleted.
280         * WebPreferences.h:
281         * WebView.cpp:
282         (WebView::notifyPreferencesChanged):
283
284 2016-09-15  Brady Eidson  <beidson@apple.com>
285
286         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
287         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
288
289         Reviewed by Brent Fulgham. 
290
291         * WebCoreSupport/WebFrameLoaderClient.cpp:
292         (WebFrameLoaderClient::dispatchDidCommitLoad):
293         * WebCoreSupport/WebFrameLoaderClient.h:
294
295 2016-09-07  Mark Lam  <mark.lam@apple.com>
296
297         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
298         https://bugs.webkit.org/show_bug.cgi?id=161498
299
300         Reviewed by Geoffrey Garen.
301
302         * Plugins/PluginPackage.cpp:
303         (WebCore::NPN_Evaluate):
304         (WebCore::NPN_Invoke):
305
306 2016-09-06  Per Arne Vollan  <pvollan@apple.com>
307
308         [Win] Null pointer crash under WebView::scrollOffset.
309         https://bugs.webkit.org/show_bug.cgi?id=161620
310
311         Reviewed by Darin Adler.
312
313         Added null pointer checks.
314
315         * WebView.cpp:
316         (WebView::scrollOffset):
317         (WebView::scrollBy):
318         (WebView::visibleContentRect):
319
320 2016-09-03  Darin Adler  <darin@apple.com>
321
322         Streamline DOMImplementation, and move it to our new DOM exception system
323         https://bugs.webkit.org/show_bug.cgi?id=161295
324
325         Reviewed by Ryosuke Niwa.
326
327         * WebFrame.cpp:
328         (WebFrame::canProvideDocumentSource): Updated to use isXMLMIMEType in its new
329         location in MIMETypeRegistry instead of in DOMImplementation.
330
331 2016-09-02  Ryosuke Niwa  <rniwa@webkit.org>
332
333         Build fix attempt after r205381.
334
335         * WebCoreSupport/WebEditorClient.h:
336
337 2016-08-31  Keith Rollin  <krollin@apple.com>
338
339         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
340         https://bugs.webkit.org/show_bug.cgi?id=160969
341         <rdar://problem/26068734>
342
343         Reviewed by Simon Fraser.
344
345         Enable subsystem- and channel-related data and functions when using
346         RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
347         and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
348
349         * WebKitLogging.cpp:
350         * WebKitLogging.h:
351         * WebView.cpp:
352         (WebView::initWithFrame):
353
354 2016-08-16  Carlos Garcia Campos  <cgarcia@igalia.com>
355
356         [GTK] Accelerated compositing does not work in Wayland
357         https://bugs.webkit.org/show_bug.cgi?id=115803
358
359         Reviewed by Michael Catanzaro.
360
361         Update to the new GLContext API.
362
363         * WebCoreSupport/AcceleratedCompositingContext.cpp:
364         (AcceleratedCompositingContext::initialize):
365         (AcceleratedCompositingContext::acceleratedCompositingAvailable):
366
367 2016-08-21  Alex Christensen  <achristensen@webkit.org>
368
369         Use Document& instead of Document* when getting cookies
370         https://bugs.webkit.org/show_bug.cgi?id=161011
371
372         Reviewed by Darin Adler.
373
374         * Plugins/PluginView.cpp:
375         (WebCore::PluginView::getValueForURL):
376
377 2016-08-16  Simon Fraser  <simon.fraser@apple.com>
378
379         Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
380         https://bugs.webkit.org/show_bug.cgi?id=160923
381
382         Reviewed by Tim Horton.
383
384         didLayout(LayoutMilestones) -> didReachLayoutMilestone(LayoutMilestones)
385         dispatchDidLayout(LayoutMilestones) -> dispatchDidReachLayoutMilestone(LayoutMilestones)
386
387         * WebCoreSupport/WebFrameLoaderClient.cpp:
388         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
389         (WebFrameLoaderClient::dispatchDidLayout): Deleted.
390         * WebCoreSupport/WebFrameLoaderClient.h:
391
392 2016-08-18  Anders Carlsson  <andersca@apple.com>
393
394         Move an NPAPI-only function from WebCore to WebKit
395         https://bugs.webkit.org/show_bug.cgi?id=160967
396
397         Reviewed by Sam Weinig.
398
399         * Plugins/PluginView.cpp:
400         (WebCore::PluginView::~PluginView):
401         (WebCore::PluginView::PluginView):
402         (WebCore::PluginView::getValue):
403         * Plugins/PluginView.h:
404
405 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
406
407         Remove unused includes of wtf headers
408         https://bugs.webkit.org/show_bug.cgi?id=160839
409
410         Reviewed by Alex Christensen.
411
412         * WebFrame.h:
413
414 2016-08-09  Alex Christensen  <achristensen@webkit.org>
415
416         Move NetworkStorageSession management to WebCore
417         https://bugs.webkit.org/show_bug.cgi?id=160173
418
419         Reviewed by Brady Eidson.
420
421         * WebCoreSupport/WebFrameNetworkingContext.cpp:
422         (identifierBase):
423         (WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
424         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
425         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
426         (WebFrameNetworkingContext::blockedError):
427         (WebFrameNetworkingContext::storageSession):
428         (privateSession): Deleted.
429         * WebCoreSupport/WebPlatformStrategies.cpp:
430         (WebPlatformStrategies::createPasteboardStrategy):
431         (WebPlatformStrategies::createBlobRegistry):
432
433 2016-08-09  Anders Carlsson  <andersca@apple.com>
434
435         Instantiate WebKit plug-ins at layout time, instead of at style resolution time
436         https://bugs.webkit.org/show_bug.cgi?id=160715
437
438         Reviewed by Tim Horton.
439
440         * WebCoreSupport/WebFrameLoaderClient.cpp:
441         (WebFrameLoaderClient::objectContentType):
442
443 2016-08-09  Per Arne Vollan  <pvollan@apple.com>
444
445         [Win] Crash in MiniBrowser.
446         https://bugs.webkit.org/show_bug.cgi?id=160686
447
448         Reviewed by Sam Weinig.
449
450         We need to specify a plugin info provider object in the page configuration.
451
452         * WebView.cpp:
453         (WebView::initWithFrame):
454
455 2016-08-09  Anders Carlsson  <andersca@apple.com>
456
457         Fix build.
458
459         * WebCoreSupport/WebPlatformStrategies.h:
460
461 2016-08-09  Anders Carlsson  <andersca@apple.com>
462
463         Get rid of PluginStrategy
464         https://bugs.webkit.org/show_bug.cgi?id=160696
465
466         Reviewed by Dan Bernstein.
467
468         * WebCoreSupport/WebPlatformStrategies.cpp:
469         (WebPlatformStrategies::createPluginStrategy): Deleted.
470
471 2016-08-09  Anders Carlsson  <andersca@apple.com>
472
473         Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
474         https://bugs.webkit.org/show_bug.cgi?id=160694
475
476         Reviewed by Dan Bernstein.
477
478         * WebCoreSupport/WebPlatformStrategies.cpp:
479         (WebPlatformStrategies::createPluginStrategy):
480         (WebPlatformStrategies::refreshPlugins): Deleted.
481         (WebPlatformStrategies::getPluginInfo): Deleted.
482         (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
483         * WebCoreSupport/WebPlatformStrategies.h:
484         * WebCoreSupport/WebPluginInfoProvider.cpp:
485         (WebPluginInfoProvider::refreshPlugins):
486         (WebPluginInfoProvider::getPluginInfo):
487         (WebPluginInfoProvider::getWebVisiblePluginInfo):
488
489 2016-08-08  Anders Carlsson  <andersca@apple.com>
490
491         Add a new PluginInfoProvider class, to replace PluginStrategy
492         https://bugs.webkit.org/show_bug.cgi?id=160670
493
494         Reviewed by Sam Weinig.
495
496         Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
497
498         * WebCoreSupport/WebPluginInfoProvider.cpp: Added.
499         (WebPluginInfoProvider::singleton):
500         (WebPluginInfoProvider::WebPluginInfoProvider):
501         (WebPluginInfoProvider::~WebPluginInfoProvider):
502         (WebPluginInfoProvider::refreshPlugins):
503         (WebPluginInfoProvider::getPluginInfo):
504         (WebPluginInfoProvider::getWebVisiblePluginInfo):
505         * WebCoreSupport/WebPluginInfoProvider.h: Added.
506
507 2016-07-29  Csaba Osztrogon√°c  <ossy@webkit.org>
508
509         Remove PassRef.h after r177259
510         https://bugs.webkit.org/show_bug.cgi?id=160348
511
512         Reviewed by Andreas Kling.
513
514         * WebCoreSupport/WebVisitedLinkStore.h:
515
516 2016-07-27  Alex Christensen  <achristensen@webkit.org>
517
518         Fix Win debug build after r203749.
519
520         * WebView.cpp:
521
522 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
523
524         Allow LOG macros to be used outside the namespace, and other logging cleanup
525         https://bugs.webkit.org/show_bug.cgi?id=160216
526
527         Reviewed by Anders Carlsson.
528
529         Fix some issues with the LOG macros.
530         
531         First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
532         its log channels outside of the namespace (they are protected by a unique prefix anyway).
533         
534         Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
535         into LogMacros.h, which is exported from WebCore as a private header.
536         
537         Third, split the Logging.h header into two. Logging.h remains for framework-internal
538         log channels and log macros. Add LogInitialization.h which is external, and used to
539         initialize the channels.
540         
541         Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
542
543         * WebKitLogging.cpp:
544         * WebKitLogging.h:
545         * WebView.cpp:
546         (WebView::initWithFrame):
547
548 2016-07-23  Chris Dumez  <cdumez@apple.com>
549
550         Unreviewed, fix Windows build after r203623.
551
552         * DOMCoreClasses.cpp:
553         (DOMDocument::getComputedStyle):
554
555 2016-07-22  Per Arne Vollan  <pvollan@apple.com>
556
557         IWebView::mainFrame crashes if called after IWebView::close
558         https://bugs.webkit.org/show_bug.cgi?id=32868
559
560         Reviewed by Brent Fulgham.
561
562         After deleting the page in WebView::close the mainframe object may be deleted. 
563          
564         Test: Tools/TestWebKitAPI/Tests/WebKit/win/WebViewDestruction.cpp (CloseThenGetMainFrame).
565
566         * WebView.cpp:
567         (WebView::close): set mainframe pointer member to null. 
568
569 2016-07-19  Per Arne Vollan  <pvollan@apple.com>
570
571         [Win] The test fast/scrolling/overflow-scroll-past-max.html is timing out.
572         https://bugs.webkit.org/show_bug.cgi?id=159342
573
574         Reviewed by Darin Adler.
575
576         * WebFrame.h: Link fix. 
577
578 2016-07-17  Sam Weinig  <sam@webkit.org>
579
580         [WebKit API] Add SPI to track multiple navigations caused by a single user gesture
581         <rdar://problem/26554137>
582         https://bugs.webkit.org/show_bug.cgi?id=159856
583
584         Reviewed by Dan Bernstein.
585
586         * Plugins/PluginView.cpp:
587         (WebCore::PluginView::performRequest):
588         * WebCoreSupport/WebContextMenuClient.cpp:
589         (WebContextMenuClient::searchWithGoogle):
590         Update for new UserGestureIndicator interface.
591
592 2016-07-16  Ryosuke Niwa  <rniwa@webkit.org>
593
594         Rename fastGetAttribute to attributeWithoutSynchronization
595         https://bugs.webkit.org/show_bug.cgi?id=159852
596
597         Reviewed by Darin Adler.
598
599         * DOMHTMLClasses.cpp:
600         (DOMHTMLElement::idName):
601
602 2016-07-15  Chris Dumez  <cdumez@apple.com>
603
604         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible
605         https://bugs.webkit.org/show_bug.cgi?id=159793
606
607         Reviewed by Ryosuke Niwa.
608
609         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance.
610
611         * DOMHTMLClasses.cpp:
612         (DOMHTMLElement::idName):
613
614 2016-07-14  Chris Dumez  <cdumez@apple.com>
615
616         Use emptyString() instead of "" when possible
617         https://bugs.webkit.org/show_bug.cgi?id=159789
618
619         Reviewed by Alex Christensen.
620
621         Use emptyString() instead of "" when possible to reduce String allocations.
622
623         * Plugins/PluginView.cpp:
624         (WebCore::parseRFC822HeaderFields):
625
626 2016-07-14  Alex Christensen  <achristensen@webkit.org>
627
628         Use SocketProvider to create SocketStreamHandles
629         https://bugs.webkit.org/show_bug.cgi?id=159774
630
631         Reviewed by Brady Eidson.
632
633         * WebSocketProvider.cpp: Removed.
634         * WebSocketProvider.h: Removed.
635         * WebView.cpp: Replaced WebSocketProvider with SocketProvider as we did in WebCore.
636
637 2016-07-14  Csaba Osztrogon√°c  <ossy@webkit.org>
638
639         Fix the !ENABLE(WEB_SOCKETS) build after r202930
640         https://bugs.webkit.org/show_bug.cgi?id=159768
641
642         Reviewed by Alex Christensen.
643
644         * WebSocketProvider.h:
645
646 2016-07-11  Enrica Casucci  <enrica@apple.com>
647
648         Build fix.
649
650         Unreviewed.
651
652         * WebDropSource.cpp:
653         (generateMouseEvent):
654
655 2016-07-11  Enrica Casucci  <enrica@apple.com>
656
657         Add synthetic click origin to WKNavigationAction.
658         https://bugs.webkit.org/show_bug.cgi?id=159584
659         rdar://problem/25610422
660
661         Reviewed by Tim Horton.
662
663         * WebDropSource.cpp:
664         (generateMouseEvent):
665
666 2016-07-07  Alex Christensen  <achristensen@webkit.org>
667
668         Fix Windows build after r202930.
669         https://bugs.webkit.org/show_bug.cgi?id=158776
670
671         * WebView.cpp:
672         (WebView::initWithFrame):
673
674 2016-07-07  Alex Christensen  <achristensen@webkit.org>
675
676         Use SocketProvider to create WebSocketChannels
677         https://bugs.webkit.org/show_bug.cgi?id=158776
678
679         Reviewed by Brent Fulgham.
680
681         * WebSocketProvider.cpp: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp.
682         (WebSocketProvider::createWebSocketChannel):
683         (WebCore::ThreadableWebSocketChannel::create): Deleted.
684         * WebSocketProvider.h:
685
686 2016-07-06  Per Arne Vollan  <pvollan@apple.com>
687
688         [Win] Add null pointer check in gesture handling.
689         https://bugs.webkit.org/show_bug.cgi?id=159454
690
691         Reviewed by Brent Fulgham.
692
693         * WebView.cpp:
694         (WebView::gesture):
695
696 2016-07-01  Per Arne Vollan  <pvollan@apple.com>
697
698         ASSERTION FAILED: info.bmBitsPixel == 32
699         https://bugs.webkit.org/show_bug.cgi?id=17737
700
701         Reviewed by Brent Fulgham.
702
703         The ::SelectObject call will fail if m_backingStoreBitmap is already selected into a device context.
704         This happens when this method is called indirectly from WebView::updateBackingStore during normal
705         painting. There is no point continuing, since we would just be scrolling a 1x1 bitmap which is
706         selected into the device context by default. We can just scroll by repainting the scroll rectangle.
707
708         * WebView.cpp:
709         (WebView::scrollBackingStore): Invalidate the scroll rectangle if the ::SelectObject call fails.
710
711 2016-07-01  Youenn Fablet  <youennf@gmail.com>
712
713         Add a runtime flag for DOM iterators
714         https://bugs.webkit.org/show_bug.cgi?id=159300
715
716         Reviewed by Alex Christensen.
717
718         * WebPreferenceKeysPrivate.h:
719         * WebPreferences.cpp:
720         (WebPreferences::domIteratorEnabled):
721         (WebPreferences::setDOMIteratorEnabled):
722         (WebView::notifyPreferencesChanged):
723         * WebPreferencesreferences.h:
724         * WebView.cpp:
725         (WebView::notifyPreferencesChanged):
726
727 2016-06-28  Per Arne Vollan  <pvollan@apple.com>
728
729         [Win] Custom elements tests are failing.
730         https://bugs.webkit.org/show_bug.cgi?id=159139
731
732         Reviewed by Alex Christensen.
733
734         Add preference for enabling custom element API.
735
736         * Interfaces/IWebPreferencesPrivate.idl:
737         * WebPreferenceKeysPrivate.h:
738         * WebPreferences.cpp:
739         (WebPreferences::initializeDefaultSettings):
740         (WebPreferences::customElementsEnabled):
741         (WebPreferences::setCustomElementsEnabled):
742         * WebPreferences.h:
743         * WebView.cpp:
744         (WebView::notifyPreferencesChanged):
745
746 2016-06-23  Per Arne Vollan  <pvollan@apple.com>
747
748         [Win] The test accessibility/aria-labelledby-overrides-label.html is failing.
749         https://bugs.webkit.org/show_bug.cgi?id=159057
750
751         Reviewed by Brent Fulgham.
752
753         The test expects the label to have a static text role, but currently it has a
754         group role.
755  
756         * AccessibleBase.cpp:
757         (MSAARole): Change the role of labels to static text.
758
759 2016-06-23  Alex Christensen  <achristensen@webkit.org>
760
761         Remove unused didCancelAuthenticationChallenge
762         https://bugs.webkit.org/show_bug.cgi?id=158819
763
764         Reviewed by David Kilzer.
765
766         * WebCoreSupport/WebFrameLoaderClient.cpp:
767         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted.
768         * WebCoreSupport/WebFrameLoaderClient.h:
769
770 2016-06-22  Per Arne Vollan  <pvollan@apple.com>
771
772         [Win] The test storage/indexeddb/modern/handle-user-delete.html is timing out.
773         https://bugs.webkit.org/show_bug.cgi?id=158934
774
775         Reviewed by Brent Fulgham.
776
777         Add a method to delete all indexed databases.
778
779         * Interfaces/IWebDatabaseManager.idl:
780         * WebDatabaseManager.cpp:
781         (WebDatabaseManager::QueryInterface):
782         (WebDatabaseManager::deleteAllIndexedDatabases):
783         * WebDatabaseManager.h:
784
785 2016-06-17  Per Arne Vollan  <pvollan@apple.com>
786
787         [Win] Rendering is not scaled correctly if process is DPI aware.
788         https://bugs.webkit.org/show_bug.cgi?id=158781
789
790         Reviewed by Brent Fulgham.
791
792         Scale the root graphics layer with the device scale factor.
793
794         * WebView.cpp:
795         (WebView::setAcceleratedCompositing):
796
797 2016-06-15  Chris Dumez  <cdumez@apple.com>
798
799         Drop some unnecessary header includes
800         https://bugs.webkit.org/show_bug.cgi?id=158788
801
802         Reviewed by Alexey Proskuryakov.
803
804         Drop some unnecessary header includes in headers to speed up build time.
805
806         * Plugins/PluginView.cpp:
807
808 2016-06-15  Romain Bellessort  <romain.bellessort@crf.canon.fr>
809
810         Enabling Shadow DOM for all platforms
811         https://bugs.webkit.org/show_bug.cgi?id=158738
812
813         Reviewed by Ryosuke Niwa.
814
815         Removed Shadow DOM from options (enabled by default)
816         (comprises removal of corresponding preprocessor directives)
817
818         * WebView.cpp:
819
820 2016-06-13  Alex Christensen  <achristensen@webkit.org>
821
822         Add WebSocketProvider stub
823         https://bugs.webkit.org/show_bug.cgi?id=158702
824
825         Reviewed by Brady Eidson.
826
827         * WebSocketProvider.h: Added.
828         * WebView.cpp:
829         (WebView::initWithFrame):
830
831 2016-06-10  Alex Christensen  <achristensen@webkit.org>
832
833         Introduce WTF::UniqueRef
834         https://bugs.webkit.org/show_bug.cgi?id=158596
835
836         Reviewed by Brady Eidson.
837
838         * WebView.cpp:
839         (WebView::initWithFrame):
840
841 2016-06-09  Alex Christensen  <achristensen@webkit.org>
842
843         Fix Windows build.
844
845         * WebKit.resources/resource.h: Removed.
846         * resource.h: Copied from WebKit.resources/resource.h.
847
848 2016-06-09  Alex Christensen  <achristensen@webkit.org>
849
850         Actually fix Windows build after r201894
851         https://bugs.webkit.org/show_bug.cgi?id=158588
852
853         * WebView.cpp:
854         (WebView::initWithFrame):
855
856 2016-06-09  Alex Christensen  <achristensen@webkit.org>
857
858         Clean up WebKit.vcxproj directory after switching to CMake.
859
860         * WebKit.resources/resource.h: Copied from WebKit.vcxproj/WebKit/resource.h.
861
862 2016-06-09  Alex Christensen  <achristensen@webkit.org>
863
864         Unreviewed build fix after r201894
865         https://bugs.webkit.org/show_bug.cgi?id=158588
866
867         * WebCoreSupport/WebEditorClient.cpp:
868         (WebEditorClient::~WebEditorClient):
869         (WebEditorClient::isContinuousSpellCheckingEnabled):
870         (WebEditorClient::pageDestroyed): Deleted.
871         * WebCoreSupport/WebEditorClient.h:
872         * WebView.cpp:
873         (WebView::initWithFrame):
874
875 2016-06-08  Per Arne Vollan  <pvollan@apple.com>
876
877         [Win] Shadow DOM tests are failing.
878         https://bugs.webkit.org/show_bug.cgi?id=158524
879
880         Reviewed by Brent Fulgham.
881
882         Add preference for enabling Shadow DOM.
883
884         * Interfaces/IWebPreferencesPrivate.idl:
885         * WebPreferenceKeysPrivate.h:
886         * WebPreferences.cpp:
887         (WebPreferences::initializeDefaultSettings):
888         (WebPreferences::shadowDOMEnabled):
889         (WebPreferences::setShadowDOMEnabled):
890         * WebPreferences.h:
891         * WebView.cpp:
892         (WebView::notifyPreferencesChanged):
893
894 2016-06-07  Per Arne Vollan  <pvollan@apple.com>
895
896         [Win][IndexedDB] Crash when running worker test.
897         https://bugs.webkit.org/show_bug.cgi?id=158434
898
899         Reviewed by Alex Christensen.
900
901         Initialize main runloop, otherwise RunLoop::main() will return nullptr.
902
903         * WebView.cpp:
904         (WebView::WebView):
905
906 2016-06-03  Chris Dumez  <cdumez@apple.com>
907
908         Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
909         <rdar://problem/26521101>
910
911         * WebCoreSupport/WebVisitedLinkStore.cpp:
912         (WebVisitedLinkStore::removeAllVisitedLinks):
913         (WebVisitedLinkStore::addVisitedLinkHash):
914
915 2016-06-03  Per Arne Vollan  <pvollan@apple.com>
916
917         [Win] Implement WebView::removeAllUserContentFromGroup
918         https://bugs.webkit.org/show_bug.cgi?id=158343
919
920         Reviewed by Brent Fulgham.
921
922         * WebView.cpp:
923         (WebView::removeAllUserContentFromGroup):
924
925 2016-06-02  Per Arne Vollan  <pvollan@apple.com>
926
927         [Win] Fetch API tests are failing.
928         https://bugs.webkit.org/show_bug.cgi?id=158296
929
930         Reviewed by Alex Christensen.
931
932         Add preference for enabling Fetch API.
933
934         * Interfaces/IWebPreferencesPrivate.idl:
935         * WebPreferenceKeysPrivate.h:
936         * WebPreferences.cpp:
937         (WebPreferences::initializeDefaultSettings):
938         (WebPreferences::fetchAPIEnabled):
939         (WebPreferences::setFetchAPIEnabled):
940         * WebPreferences.h:
941         * WebView.cpp:
942         (WebView::notifyPreferencesChanged):
943
944 2016-06-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
945
946         Use more references in ResourceLoader related code
947         https://bugs.webkit.org/show_bug.cgi?id=158222
948
949         Reviewed by Darin Adler.
950
951         * Plugins/PluginStream.cpp:
952         (WebCore::PluginStream::start):
953
954 2016-06-01  Per Arne Vollan  <pvollan@apple.com>
955
956         [Win] Potential null pointer crash when setting cursor.
957         https://bugs.webkit.org/show_bug.cgi?id=158225
958
959         Reviewed by Alex Christensen.
960
961         Check return value of Cursor::platformCursor().
962
963         * WebCoreSupport/WebChromeClient.cpp:
964         (WebChromeClient::setCursor):
965
966 2016-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
967
968         Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
969         https://bugs.webkit.org/show_bug.cgi?id=158249
970
971         * Interfaces/IWebPreferencesPrivate.idl:
972
973 2016-05-27  Caitlin Potter  <caitp@igalia.com>
974
975         [JSC] implement async functions proposal
976         https://bugs.webkit.org/show_bug.cgi?id=156147
977
978         Reviewed by Yusuke Suzuki.
979
980         * Interfaces/IWebPreferencesPrivate.idl:
981
982 2016-05-23  Chris Dumez  <cdumez@apple.com>
983
984         Generate bindings code for EventTarget.addEventListener() / removeEventListener()
985         https://bugs.webkit.org/show_bug.cgi?id=157882
986
987         Reviewed by Darin Adler.
988
989         Generate bindings code for EventTarget.addEventListener() / removeEventListener()
990         instead of hardcoding them in the bindings generator.
991
992         * DOMEventsClasses.cpp:
993         (WebEventListener::operator==):
994         * DOMEventsClasses.h:
995
996 2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
997
998         Remove LegacyProfiler
999         https://bugs.webkit.org/show_bug.cgi?id=153565
1000
1001         Reviewed by Saam Barati.
1002
1003         * Interfaces/IWebInspector.idl:
1004         * WebCoreStatistics.cpp:
1005         * WebInspector.cpp:
1006         (WebInspector::isJavaScriptProfilingEnabled): Deleted.
1007         (WebInspector::setJavaScriptProfilingEnabled): Deleted.
1008         * WebInspector.h:
1009         * WebView.cpp:
1010
1011 2016-05-16  Joseph Pecoraro  <pecoraro@apple.com>
1012
1013         Unreviewed rollout r200924. Caused js/regress/string-replace-generic.html to fail.
1014
1015         * Interfaces/IWebInspector.idl:
1016         * WebCoreStatistics.cpp:
1017         * WebInspector.cpp:
1018         (WebInspector::isJavaScriptProfilingEnabled):
1019         (WebInspector::setJavaScriptProfilingEnabled):
1020         * WebInspector.h:
1021         * WebView.cpp:
1022
1023 2016-05-14  Joseph Pecoraro  <pecoraro@apple.com>
1024
1025         Remove LegacyProfiler
1026         https://bugs.webkit.org/show_bug.cgi?id=153565
1027
1028         Reviewed by Mark Lam.
1029
1030         * Interfaces/IWebInspector.idl:
1031         * WebView.cpp:
1032         * WebInspector.cpp:
1033         (WebInspector::isJavaScriptProfilingEnabled): Deleted.
1034         (WebInspector::setJavaScriptProfilingEnabled): Deleted.
1035         * WebInspector.h:
1036
1037 2016-05-12  Konstantin Tokarev  <annulen@yandex.ru>
1038
1039         Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem.
1040         https://bugs.webkit.org/show_bug.cgi?id=157624
1041
1042         Reviewed by Darin Adler.
1043
1044         * WebCoreSupport/WebFrameLoaderClient.cpp:
1045         (WebFrameLoaderClient::saveViewStateToItem):
1046         * WebCoreSupport/WebFrameLoaderClient.h:
1047
1048 2016-05-11  Chris Dumez  <cdumez@apple.com>
1049
1050         Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers
1051         https://bugs.webkit.org/show_bug.cgi?id=157556
1052
1053         Reviewed by Darin Adler.
1054
1055         * DOMCoreClasses.cpp:
1056         (DOMNode::insertBefore):
1057         (DOMNode::removeChild):
1058
1059 2016-05-11  Joanmarie Diggs  <jdiggs@igalia.com>
1060
1061         [GTK] accessibility/aria-readonly.html is failing
1062         https://bugs.webkit.org/show_bug.cgi?id=98357
1063
1064         Reviewed by Chris Fleizach.
1065
1066         Call AccessibilityNode::canSetValueAttribute() to determine if STATE_SYSTEM_READONLY
1067         should be added and if editable text should be supported.
1068
1069         * AccessibleBase.cpp:
1070         (AccessibleBase::state):
1071         * AccessibleTextImpl.cpp:
1072         (AccessibleText::deleteText):
1073         (AccessibleText::insertText):
1074         (AccessibleText::cutText):
1075         (AccessibleText::pasteText):
1076         (AccessibleText::replaceText):
1077
1078 2016-05-09  Fujii Hironori  <Hironori.Fujii@sony.com>
1079
1080         [wincairo] web inspector failed to launch in MiniBrowser
1081         https://bugs.webkit.org/show_bug.cgi?id=156184
1082         <rdar://problem/25539297>
1083
1084         Reviewed by Alex Christensen.
1085
1086         * WebCoreSupport/WebInspectorClient.cpp:
1087         (WebInspectorClient::openLocalFrontend): Enable
1088         AllowFileAccessFromFileURLs and AllowUniversalAccessFromFileURLs
1089         of WebPreferences for Web Inspector.
1090
1091 2016-05-06  Joseph Pecoraro  <pecoraro@apple.com>
1092
1093         Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent
1094         https://bugs.webkit.org/show_bug.cgi?id=157447
1095
1096         Reviewed by Ryosuke Niwa.
1097
1098         * WebView.cpp:
1099         (WebView::gestureNotify):
1100
1101 2016-05-04  Joanmarie Diggs  <jdiggs@igalia.com>
1102
1103         AX: ARIA 'region' role is now a landmark; HTML 'section' element should be a landmark only if named
1104         https://bugs.webkit.org/show_bug.cgi?id=157331
1105
1106         Reviewed by Chris Fleizach.
1107
1108         As part of this change, the WebCore DocumentRegionRole AccessibilityRole has
1109         been renamed to LandmarkRegionRole. Update MSAARole() to use the new name.
1110
1111         * AccessibleBase.cpp:
1112         (MSAARole):
1113
1114 2016-04-25  Per Arne Vollan  <peavo@outlook.com>
1115
1116         [Win][IndexedDB] Fix build errors.
1117         https://bugs.webkit.org/show_bug.cgi?id=156713
1118
1119         Reviewed by Alex Christensen.
1120
1121         Fix compile and link errors when building with IndexedDB enabled.
1122
1123         * WebView.cpp:
1124         (WebView::notifyPreferencesChanged):
1125         * storage: Added.
1126         * storage/WebDatabaseProvider.cpp: Added.
1127         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
1128
1129 2016-04-22  Brent Fulgham  <bfulgham@apple.com>
1130
1131         Unreviewed build fix after 4199841.
1132
1133         * WebApplicationCache.cpp:
1134         (WebApplicationCache::WebApplicationCache): Provide missing preference key definition.
1135
1136 2016-04-21  Anders Carlsson  <andersca@apple.com>
1137
1138         Add a missing space, as noticed by Darin.
1139
1140         * WebApplicationCache.cpp:
1141         (applicationCachePath):
1142
1143 2016-04-21  Anders Carlsson  <andersca@apple.com>
1144
1145         Stop using ApplicationCacheStorage::singleton() on Windows
1146         https://bugs.webkit.org/show_bug.cgi?id=156861
1147
1148         Reviewed by Darin Adler.
1149
1150         * WebApplicationCache.cpp:
1151         (applicationCachePath):
1152         (WebApplicationCache::storage):
1153         * WebApplicationCache.h:
1154         * WebCache.cpp:
1155         (WebCache::empty):
1156         * WebView.cpp:
1157         (WebView::initWithFrame):
1158         (WebKitSetApplicationCachePathIfNecessary): Deleted.
1159
1160 2016-04-15  Brent Fulgham  <bfulgham@apple.com>
1161
1162         CSP: Make dynamically-added favicons (via link rel="icon") obey Content-Security-Policy
1163         https://bugs.webkit.org/show_bug.cgi?id=153151
1164         <rdar://problem/24383176>
1165
1166         Reviewed by Darin Adler.
1167
1168         Remove the unused dynamic favicon code and tests.
1169
1170         * WebCoreSupport/WebFrameLoaderClient.cpp:
1171         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
1172         * WebCoreSupport/WebFrameLoaderClient.h:
1173
1174 2016-04-15  Darin Adler  <darin@apple.com>
1175
1176         Reduce use of Deprecated::ScriptXXX classes
1177         https://bugs.webkit.org/show_bug.cgi?id=156632
1178
1179         Reviewed by Alex Christensen.
1180
1181         * Plugins/PluginView.cpp:
1182         (WebCore::PluginView::performRequest): Use JSValue.
1183         * WebFrame.cpp:
1184         (WebFrame::stringByEvaluatingJavaScriptInScriptWorld): Ditto.
1185         * WebView.cpp:
1186         (WebView::stringByEvaluatingJavaScriptFromString): Ditto.
1187
1188 2016-04-11  Darin Adler  <darin@apple.com>
1189
1190         Remove UsePointersEvenForNonNullableObjectArguments from HTMLSelectElement
1191         https://bugs.webkit.org/show_bug.cgi?id=156458
1192
1193         Reviewed by Chris Dumez.
1194
1195         * DOMCoreClasses.cpp: Added now-needed include.
1196
1197 2016-04-11  Gavin Barraclough  <barraclough@apple.com>
1198
1199         WebKit should adopt journal_mode=wal for all SQLite databases.
1200         https://bugs.webkit.org/show_bug.cgi?id=133496
1201
1202         Reviewed by Darin Adler.
1203
1204         * WebDatabaseManager.cpp:
1205         (WebDatabaseManager::deleteAllDatabases):
1206             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
1207
1208 2016-04-08  Joanmarie Diggs  <jdiggs@igalia.com>
1209
1210         AX: "AXLandmarkApplication" is an inappropriate subrole for ARIA "application" since it's no longer a landmark
1211         https://bugs.webkit.org/show_bug.cgi?id=155403
1212
1213         Reviewed by Chris Fleizach.
1214
1215         The new subrole is AXWebApplication and the new role description is "web application".
1216         As part of the fix, the WebCore AccessibilityRole for ARIA's "application" role was
1217         renamed from LandmarkApplicationRole to WebApplicationRole.
1218
1219         The roles-exposed.html and aria-grouping-roles.html test expectations were also updated.
1220
1221         * AccessibleBase.cpp: Update the rolename
1222         (MSAARole):
1223
1224 2016-04-07  Brian Burg  <bburg@apple.com>
1225
1226         CookieJar should support adding synthetic cookies for developer tools
1227         https://bugs.webkit.org/show_bug.cgi?id=156091
1228         <rdar://problem/25581340>
1229
1230         Reviewed by Timothy Hatcher.
1231
1232         * WebCoreSupport/WebPlatformStrategies.h:
1233         * WebCoreSupport/WebPlatformStrategies.cpp:
1234         Add new method override.
1235
1236 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
1237
1238         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
1239         https://bugs.webkit.org/show_bug.cgi?id=155412
1240
1241         Reviewed by Darin Adler.
1242
1243         * Plugins/PluginView.h:
1244         * Plugins/PluginViewWin.cpp:
1245         (WebCore::PluginView::snapshot):
1246         Replace PassRefPtr with RefPtr.
1247
1248 2016-03-22  Per Arne Vollan  <peavo@outlook.com>
1249
1250         [Win] [64-bit] Remove MSVC 2013 FMA3 Bug Workaround
1251         https://bugs.webkit.org/show_bug.cgi?id=141499
1252
1253         Reviewed by Brent Fulgham.
1254
1255         As we have moved on to VS2015, this workaround is no longer needed.
1256
1257         * WebKitDLL.cpp:
1258         (DllMain):
1259
1260 2016-03-21  Hyungwook Lee  <hyungwook.lee@navercorp.com> 
1261
1262         [Win] Connect layoutTestController.findString() to support testing 
1263         https://bugs.webkit.org/show_bug.cgi?id=50234
1264
1265         Reviewed by Alex Christensen.
1266
1267         Implement WebView::findString to support testing efforts.
1268
1269         * Interfaces/IWebViewPrivate.idl: Add API declaration.
1270         * WebView.cpp:
1271         * WebView.h:
1272
1273 2016-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
1274
1275         Unreviewed, rolling out r196951 and r197031.
1276
1277         Revert also WinCairo follow ups after r196803
1278
1279         Reverted changesets:
1280
1281         "[WinCairo] Compile fix."
1282         https://bugs.webkit.org/show_bug.cgi?id=154545
1283         http://trac.webkit.org/changeset/196951
1284
1285         "[WinCairo] Mark layer as non composited."
1286         https://bugs.webkit.org/show_bug.cgi?id=154640
1287         http://trac.webkit.org/changeset/197031
1288
1289 2016-03-16  Carlos Garcia Campos  <cgarcia@igalia.com>
1290
1291         Unreviewed, rolling out r197693.
1292
1293         197031
1294
1295         Reverted changeset:
1296
1297         "[WinCairo][AcceleratedCompositing] Rendering issues on
1298         www.bbc.com."
1299         https://bugs.webkit.org/show_bug.cgi?id=154912
1300         http://trac.webkit.org/changeset/197693
1301
1302 2016-03-15  Brent Fulgham  <bfulgham@apple.com>
1303
1304         [Win] Correct double-release of CFURLConnectionRef
1305         https://bugs.webkit.org/show_bug.cgi?id=155515
1306         <rdar://problem/25159143>
1307
1308         Reviewed by Tim Horton.
1309
1310         Tested by http/tests/download suite.
1311
1312         * WebDownloadCFNet.cpp: Remove extra CFRelease.
1313
1314 2016-03-14  Per Arne Vollan  <peavo@outlook.com>
1315
1316         [WinCairo] Compile fix.
1317         https://bugs.webkit.org/show_bug.cgi?id=155463
1318
1319         Reviewed by Alex Christensen.
1320
1321         Get the NetworkStorageSession object from the document in the same way as other platforms do.
1322
1323         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1324         (WebFrameNetworkingContext::storageSession):
1325         * WebCoreSupport/WebFrameNetworkingContext.h:
1326         (WebFrameNetworkingContext::storageSession):
1327
1328 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
1329
1330         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
1331         https://bugs.webkit.org/show_bug.cgi?id=150497
1332
1333         Reviewed by Darin Adler.
1334
1335         * WebArchive.cpp:
1336         (WebArchive::initWithNode):
1337
1338 2016-03-12  Sam Weinig  <sam@webkit.org>
1339
1340         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
1341         <rdar://problem/25129946>
1342         https://bugs.webkit.org/show_bug.cgi?id=155401
1343
1344         Reviewed by Alex Christensen.
1345
1346         * WebCoreSupport/WebFrameNetworkingContext.cpp:
1347         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1348         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
1349
1350 2016-03-10  Jer Noble  <jer.noble@apple.com>
1351
1352         Unreviewed build fix after r197953; correct the settings added in r197953.
1353
1354         * WebView.cpp:
1355         (WebView::notifyPreferencesChanged):
1356
1357 2016-03-10  Jer Noble  <jer.noble@apple.com>
1358
1359         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
1360         https://bugs.webkit.org/show_bug.cgi?id=155141
1361
1362         Reviewed by Beth Dakin.
1363
1364         * WebView.cpp:
1365         (WebView::notifyPreferencesChanged):
1366
1367 2016-03-07  Per Arne Vollan  <peavo@outlook.com>
1368
1369         [WinCairo][AcceleratedCompositing] Rendering issues on www.bbc.com.
1370         https://bugs.webkit.org/show_bug.cgi?id=154912
1371
1372         Reviewed by Michael Catanzaro.
1373
1374         If we have a scroll layer, we should not include the scroll position in the visible rectangle,
1375         since the scroll position is already reflected in the position of the scroll layer.
1376
1377         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1378         (AcceleratedCompositingContext::flushPendingLayerChanges):
1379
1380 2016-03-06  Gavin Barraclough  <barraclough@apple.com>
1381
1382         Convert DOMTimer to std::chrono::milliseconds
1383         https://bugs.webkit.org/show_bug.cgi?id=155085
1384
1385         Reviewed by Andreas Kling.
1386
1387         DOMTimer currently uses a mix of millisecond (was int, now std::chrono) and second (as double)
1388         time values. Constant conversion back and forth is a complete mess. Stop that.
1389
1390         * WebView.cpp:
1391         (WebView::setMinimumTimerInterval):
1392             - Convert double argument into std::chrono::milliseconds.
1393
1394 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1395
1396         [ES6] Support Reflect.construct
1397         https://bugs.webkit.org/show_bug.cgi?id=147330
1398
1399         Reviewed by Saam Barati.
1400
1401         * Plugins/PluginPackage.cpp:
1402         (WebCore::NPN_Invoke):
1403
1404 2016-02-24  Per Arne Vollan  <peavo@outlook.com>
1405
1406         [WinCairo] Mark layer as non composited.
1407         https://bugs.webkit.org/show_bug.cgi?id=154640
1408
1409         Reviewed by Alex Christensen.
1410
1411         We need to mark the non composited layer as being non composited.
1412
1413         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1414         (AcceleratedCompositingContext::initialize):
1415         (AcceleratedCompositingContext::flushPendingLayerChanges):
1416
1417 2016-02-22  Per Arne Vollan  <peavo@outlook.com>
1418
1419         [WinCairo] Compile fix.
1420         https://bugs.webkit.org/show_bug.cgi?id=154545
1421
1422         Reviewed by Alex Christensen.
1423
1424         Add missing parameter to GraphicsLayerTextureMapper::updateBackingStoreIncludingSubLayers().
1425
1426         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1427         (AcceleratedCompositingContext::flushPendingLayerChanges):
1428
1429 2016-02-21  Darin Adler  <darin@apple.com>
1430
1431         Refactor LazyEventListener creation to separate Element and Document cases
1432         https://bugs.webkit.org/show_bug.cgi?id=154231
1433
1434         Reviewed by Andreas Kling.
1435
1436         * WebView.h: Forward declare KeyboardEvent.
1437
1438 2016-02-16  Andreas Kling  <akling@apple.com>
1439
1440         Drop StyleResolver and SelectorQueryCache when entering PageCache.
1441         <https://webkit.org/b/154238>
1442
1443         Reviewed by Antti Koivisto.
1444
1445         * WebCoreSupport/WebVisitedLinkStore.cpp:
1446         (WebVisitedLinkStore::removeAllVisitedLinks): Deleted.
1447         (WebVisitedLinkStore::addVisitedLinkHash): Deleted.
1448
1449 2016-02-14  Chris Dumez  <cdumez@apple.com>
1450
1451         Unreviewed Window build fix.
1452
1453         * WebCoreStatistics.cpp:
1454         * WebJavaScriptCollector.cpp:
1455
1456 2016-02-12  Jiewen Tan  <jiewen_tan@apple.com>
1457
1458         WebKit should expose the DOM 4 Event.isTrusted property
1459         https://bugs.webkit.org/show_bug.cgi?id=76121
1460         <rdar://problem/22558494>
1461
1462         Reviewed by Darin Adler.
1463
1464         * DOMCoreClasses.cpp:
1465         (DOMNode::dispatchEvent):
1466         (DOMWindow::dispatchEvent):
1467
1468 2016-02-11  Antti Koivisto  <antti@apple.com>
1469
1470         Try to fix windows build.
1471
1472         * DOMCoreClasses.cpp:
1473         (DOMElement::style):
1474         (DOMElement::offsetLeft):
1475
1476 2016-02-06  Darin Adler  <darin@apple.com>
1477
1478         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
1479         https://bugs.webkit.org/show_bug.cgi?id=153905
1480
1481         Reviewed by Sam Weinig.
1482
1483         * Plugins/PluginDatabase.cpp:
1484         (WebCore::PluginDatabase::pluginForMIMEType): Use ASCII case-insensitive map rather
1485         than lowercasing the MIME type.
1486         (WebCore::PluginDatabase::setPreferredPluginForMIMEType): Ditto.
1487
1488         * Plugins/PluginDatabase.h: Make m_preferredPlugins use an ASCII case-insensitive hash.
1489
1490         * Plugins/PluginPackage.h: Use ASCII case-insensitive hash for maps keyed by MIME type.
1491
1492         * Plugins/PluginPackageWin.cpp:
1493         (WebCore::PluginPackage::fetchInfo): Use convertToASCIILowercase to lowercase a MIME type.
1494
1495 2016-02-04  Joseph Pecoraro  <pecoraro@apple.com>
1496
1497         Web Inspector: InspectorTimelineAgent doesn't need to recompile functions because it now uses the sampling profiler
1498         https://bugs.webkit.org/show_bug.cgi?id=153500
1499         <rdar://problem/24352458>
1500
1501         Reviewed by Timothy Hatcher.
1502
1503         * WebInspector.cpp:
1504         (WebInspector::isJavaScriptProfilingEnabled):
1505         (WebInspector::setJavaScriptProfilingEnabled):
1506         Switch to the new API names.
1507
1508 2016-01-31  Darin Adler  <darin@apple.com>
1509
1510         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
1511         https://bugs.webkit.org/show_bug.cgi?id=153639
1512
1513         Reviewed by Filip Pizlo.
1514
1515         * WebCoreStatistics.cpp:
1516         (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
1517         These names are all ASCII.
1518
1519         * WebURLResponse.cpp:
1520         (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
1521         field names. These names are all ASCII.
1522
1523 2016-01-30  Commit Queue  <commit-queue@webkit.org>
1524
1525         Unreviewed, rolling out r195911.
1526         https://bugs.webkit.org/show_bug.cgi?id=153723
1527
1528         Caused frequent assertion failures on bots (Requested by ap on
1529         #webkit).
1530
1531         Reverted changeset:
1532
1533         "Replace CaseFoldingHash with ASCIICaseInsensitiveHash"
1534         https://bugs.webkit.org/show_bug.cgi?id=153639
1535         http://trac.webkit.org/changeset/195911
1536
1537 2016-01-30  Commit Queue  <commit-queue@webkit.org>
1538
1539         Unreviewed, rolling out r195799 and r195828.
1540         https://bugs.webkit.org/show_bug.cgi?id=153722
1541
1542         Caused assertion failures, severely affecting EWS (Requested
1543         by ap on #webkit).
1544
1545         Reverted changesets:
1546
1547         "Web Inspector: InspectorTimelineAgent doesn't need to
1548         recompile functions because it now uses the sampling profiler"
1549         https://bugs.webkit.org/show_bug.cgi?id=153500
1550         http://trac.webkit.org/changeset/195799
1551
1552         "Attempt to fix the Windows build after r195799"
1553         http://trac.webkit.org/changeset/195828
1554
1555 2016-01-30  Darin Adler  <darin@apple.com>
1556
1557         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
1558         https://bugs.webkit.org/show_bug.cgi?id=153639
1559
1560         Reviewed by Filip Pizlo.
1561
1562         * WebCoreStatistics.cpp:
1563         (WebCoreStatistics::memoryStatistics): Use ASCIICaseInsensitiveHash for field names.
1564         These names are all ASCII.
1565
1566         * WebURLResponse.cpp:
1567         (WebURLResponse::allHeaderFields): Use ASCIICaseInsensitiveHash for HTTP header
1568         field names. These names are all ASCII.
1569
1570 2016-01-29  Ryan Haddad  <ryanhaddad@apple.com>
1571
1572         Attempt to fix the Windows build after r195799
1573
1574         Unreviewed build fix.
1575
1576         * WebInspector.cpp:
1577         (WebInspector::isJavaScriptProfilingEnabled):
1578         (WebInspector::setJavaScriptProfilingEnabled):
1579
1580 2016-01-28  Darin Adler  <darin@apple.com>
1581
1582         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
1583         https://bugs.webkit.org/show_bug.cgi?id=153411
1584
1585         Reviewed by Ryosuke Niwa.
1586
1587         * Plugins/PluginDatabase.cpp:
1588         (WebCore::PluginDatabase::MIMETypeForExtension): Use equalIgnoringASCIICase to compare
1589         file extensions.
1590         * Plugins/PluginDatabaseWin.cpp:
1591         (WebCore::PluginDatabase::getPluginPathsInDirectories): Use equalLettersIgnoringASCIICase
1592         to compare filenames.
1593         * Plugins/PluginPackageWin.cpp:
1594         (WebCore::PluginPackage::isPluginBlacklisted): Use equalLettersIgnoringASCIICase to
1595         compare DLL filenames.
1596         * Plugins/PluginStream.cpp:
1597         (WebCore::PluginStream::destroyStream): Use equalLettersIgnoringASCIICase to check HTTP method.
1598         * Plugins/PluginView.cpp:
1599         (WebCore::PluginView::setParameters): Use equalLettersIgnoringASCIICase to check
1600         plug-in parameter name.
1601         * WebView.cpp:
1602         (WebView::canHandleRequest): Use URL::protocolIs instead of equalIgnoringCase.
1603
1604 2016-01-22  Ryosuke Niwa  <rniwa@webkit.org>
1605
1606         document.createElement should be able to create a custom element
1607         https://bugs.webkit.org/show_bug.cgi?id=153173
1608
1609         Reviewed by Darin Adler.
1610
1611         Use createElementForBindings here since this is a C++ binding for Windows.
1612
1613         * DOMCoreClasses.cpp:
1614         (DOMDocument::createElement):
1615
1616 2016-01-24  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1617
1618         Reduce PassRefPtr uses in dom - 4
1619         https://bugs.webkit.org/show_bug.cgi?id=153270
1620
1621         Reviewed by Darin Adler.
1622
1623         As a step to remove PassRefPtr uses, this patch reduces the uses in WebCore/dom.
1624
1625         * Plugins/PluginView.cpp:
1626         (WebCore::PluginView::focusPluginElement):
1627
1628 2016-01-17  Ada Chan  <adachan@apple.com>
1629
1630         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
1631         https://bugs.webkit.org/show_bug.cgi?id=153220
1632
1633         Reviewed by Eric Carlson.
1634
1635         * WebCoreSupport/WebChromeClient.cpp:
1636         (WebChromeClient::supportsVideoFullscreen):
1637         * WebCoreSupport/WebChromeClient.h:
1638
1639 2016-01-22  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1640
1641         Remove PassRefPtr from ResourceRequest and FormData
1642         https://bugs.webkit.org/show_bug.cgi?id=153229
1643
1644         Reviewed by Chris Dumez.
1645
1646         * WebMutableURLRequest.cpp:
1647         (WebMutableURLRequest::setHTTPBody):
1648
1649 2016-01-15  Simon Fraser  <simon.fraser@apple.com>
1650
1651         Remove GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon()
1652         https://bugs.webkit.org/show_bug.cgi?id=153174
1653
1654         Reviewed by Zalan Bujtas.
1655
1656         GraphicsContext::drawConvexPolygon() and GraphicsContext::clipConvexPolygon() were
1657         poorly named (non-convex polygons are allowed), and just syntactic sugar over
1658         clipPath() and drawPath().
1659         
1660         Remove them, but add a convenience function to create a Path from a Vector of 
1661         points. For CG, we can use the more efficient CGPathAddLines().
1662
1663         * FullscreenVideoController.cpp:
1664         (HUDSlider::draw):
1665
1666 2016-01-05  Per Arne Vollan  <peavo@outlook.com>
1667
1668         [WinCairo] Download should use header values from provided request object.
1669         https://bugs.webkit.org/show_bug.cgi?id=152694
1670
1671         Reviewed by Alex Christensen.
1672
1673         Copy header values from request object parameter.
1674
1675         * WebDownloadCurl.cpp:
1676         (WebDownload::initWithRequest):
1677
1678 2015-12-31  Andy Estes  <aestes@apple.com>
1679
1680         Replace WTF::move with WTFMove
1681         https://bugs.webkit.org/show_bug.cgi?id=152601
1682
1683         Reviewed by Brady Eidson.
1684
1685         * Plugins/PluginStream.cpp:
1686         (WebCore::PluginStream::willSendRequest):
1687         * Plugins/PluginView.cpp:
1688         (WebCore::PluginView::requestTimerFired):
1689         (WebCore::PluginView::scheduleRequest):
1690         (WebCore::PluginView::handlePost):
1691         * WebCoreSupport/WebFrameLoaderClient.cpp:
1692         (WebFrameLoaderClient::createDocumentLoader):
1693         * WebCoreSupport/WebInspectorClient.cpp:
1694         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1695         * WebHistory.cpp:
1696         (createUserInfoFromArray):
1697         * WebHistoryItem.cpp:
1698         (WebHistoryItem::initFromDictionaryRepresentation):
1699         * WebView.cpp:
1700         (WebView::addToDirtyRegion):
1701         (WebView::scrollBackingStore):
1702         (WebView::loadBackForwardListFromOtherView):
1703         (WebView::addUserScriptToGroup):
1704         (WebView::addUserStyleSheetToGroup):
1705
1706 2015-12-29  Simon Fraser  <simon.fraser@apple.com>
1707
1708         Fix Windows build.
1709
1710         * WebView.cpp:
1711         (WebView::scrollOffset):
1712
1713 2015-12-25  David Kilzer  <ddkilzer@apple.com>
1714
1715         ResourceError should store failingURL as URL instead of String to avoid reparsing and to address FIXME comments in ResourceErrorCF.cpp and ResourceErrorMac.mm
1716         <http://webkit.org/b/146391>
1717
1718         Reviewed by Antti Koivisto.
1719
1720         * WebCoreSupport/WebFrameLoaderClient.cpp:
1721         (WebFrameLoaderClient::cancelledError):
1722         (WebFrameLoaderClient::blockedError):
1723         (WebFrameLoaderClient::cannotShowURLError):
1724         (WebFrameLoaderClient::interruptedForPolicyChangeError):
1725         (WebFrameLoaderClient::cannotShowMIMETypeError):
1726         (WebFrameLoaderClient::fileDoesNotExistError):
1727         (WebFrameLoaderClient::pluginWillHandleLoadError):
1728         (WebFrameLoaderClient::dispatchDidFailToStartPlugin):
1729         (WebFrameLoaderClient::createJavaAppletWidget):
1730         * WebDownloadCFNet.cpp:
1731         (WebDownload::cancelAuthenticationChallenge):
1732         * WebError.cpp:
1733         (WebError::init):
1734         - Update for type change of 'failingURL' argument to
1735           ResourceError().
1736
1737 2015-12-23  Brent Fulgham  <bfulgham@apple.com>
1738
1739         Web Inspector: add support for running protocol-test.js tests on Windows
1740         https://bugs.webkit.org/show_bug.cgi?id=148037
1741         <rdar://problem/22292237>
1742
1743         Reviewed by Simon Fraser.
1744
1745         Provide API for WebKit.dll clients to request its CFBundleRef.
1746         
1747         * WebKitCOMAPI.cpp:
1748         (webKitBundle): Added.
1749         * WebKitCOMAPI.h:
1750
1751 2015-12-20  Dan Bernstein  <mitz@apple.com>
1752
1753         Remove unused setToolbarHeight
1754         https://bugs.webkit.org/show_bug.cgi?id=152466
1755
1756         Reviewed by Darin Adler.
1757
1758         * WebCoreSupport/WebInspectorClient.cpp:
1759         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
1760         * WebCoreSupport/WebInspectorClient.h:
1761
1762 2015-12-15  Zan Dobersek  <zdobersek@igalia.com>
1763
1764         [TexMap] Operate with a reference to the TextureMapper wherever possible
1765         https://bugs.webkit.org/show_bug.cgi?id=152118
1766
1767         Reviewed by Martin Robinson.
1768
1769         * WebCoreSupport/AcceleratedCompositingContext.cpp:
1770         (AcceleratedCompositingContext::compositeLayersToContext): TextureMapper object
1771         is now operated with through a reference.
1772
1773 2015-12-01  Darin Adler  <darin@apple.com>
1774
1775         Fix anomaly where isMouseEvent returns false for wheel events
1776         https://bugs.webkit.org/show_bug.cgi?id=151685
1777
1778         Reviewed by Alexey Proskuryakov.
1779
1780         * DOMEventsClasses.cpp:
1781         (DOMEvent::createInstance): Use eventInterface instead of isMouseEvent to create the appropriate
1782         wrapper class.
1783
1784 2015-11-24  Per Arne Vollan  <peavo@outlook.com>
1785
1786         [Win] Implement methods to get and set inner html.
1787         https://bugs.webkit.org/show_bug.cgi?id=151569
1788
1789         Reviewed by Alex Christensen.
1790
1791         * DOMHTMLClasses.cpp:
1792         (DOMHTMLElement::innerHTML):
1793         (DOMHTMLElement::setInnerHTML):
1794         (DOMHTMLElement::innerText):
1795
1796 == Rolled over to ChangeLog-2015-11-21 ==