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