Fix build.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2016-06-21  Anders Carlsson  <andersca@apple.com>
2
3         Fix build.
4
5         * Configurations/FeatureDefines.xcconfig:
6
7 2016-06-21  Anders Carlsson  <andersca@apple.com>
8
9         Begin moving the Apple Pay code to the open source repository
10         https://bugs.webkit.org/show_bug.cgi?id=158998
11
12         Reviewed by Tim Horton.
13
14         * Configurations/FeatureDefines.xcconfig:
15         Add ENABLE_APPLE_PAY.
16
17 2016-06-20  Simon Fraser  <simon.fraser@apple.com>
18
19         Focus event dispatched in iframe causes parent document to scroll incorrectly
20         https://bugs.webkit.org/show_bug.cgi?id=158629
21         rdar://problem/26521616
22
23         Reviewed by Tim Horton.
24         
25         Pass SelectionRevealMode::Reveal in existing code.
26
27         * WebView/WebFrame.mm:
28         (-[WebFrame _scrollDOMRangeToVisible:]):
29         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
30         (-[WebFrame revealSelectionAtExtent:]):
31         * WebView/WebHTMLView.mm:
32         (-[WebHTMLView jumpToSelection:]):
33         (-[WebHTMLView centerSelectionInVisibleArea:]):
34
35 2016-06-21  Amir Alavi  <aalavi@apple.com>
36
37         Upstream WKHTTPCookiesForURL from WebKitSystemInterface to OpenSource
38         https://bugs.webkit.org/show_bug.cgi?id=158967
39
40         Reviewed by Brent Fulgham.
41
42         * WebCoreSupport/WebSystemInterface.mm:
43         (InitWebCoreSystemInterface): Deleted.
44
45 2016-06-20  Commit Queue  <commit-queue@webkit.org>
46
47         Unreviewed, rolling out r202243.
48         https://bugs.webkit.org/show_bug.cgi?id=158972
49
50         Broke Windows build and iOS tests (Requested by ap on
51         #webkit).
52
53         Reverted changeset:
54
55         "Focus event dispatched in iframe causes parent document to
56         scroll incorrectly"
57         https://bugs.webkit.org/show_bug.cgi?id=158629
58         http://trac.webkit.org/changeset/202243
59
60 2016-06-20  Simon Fraser  <simon.fraser@apple.com>
61
62         Focus event dispatched in iframe causes parent document to scroll incorrectly
63         https://bugs.webkit.org/show_bug.cgi?id=158629
64         rdar://problem/26521616
65
66         Reviewed by Tim Horton.
67         
68         Pass SelectionRevealMode::Reveal in existing code.
69
70         * WebView/WebFrame.mm:
71         (-[WebFrame _scrollDOMRangeToVisible:]):
72         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
73         (-[WebFrame revealSelectionAtExtent:]):
74         * WebView/WebHTMLView.mm:
75         (-[WebHTMLView jumpToSelection:]):
76         (-[WebHTMLView centerSelectionInVisibleArea:]):
77
78 2016-06-20  Keith Rollin  <krollin@apple.com>
79
80         Remove RefPtr::release() and change calls sites to use WTFMove()
81         https://bugs.webkit.org/show_bug.cgi?id=158369
82
83         Reviewed by Chris Dumez.
84
85         RefPtr::release() releases its managed pointer awkwardly. It's more
86         direct and clearer to use WTFMove to transfer ownership of the managed
87         pointer.
88
89         As part of this cleanup, also change a lot of explicit data types to
90         'auto'.
91
92         * Plugins/Hosted/NetscapePluginHostManager.mm:
93         (WebKit::NetscapePluginHostManager::instantiatePlugin):
94         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
95         (WebKit::NetscapePluginInstanceProxy::create):
96         (WebKit::NetscapePluginInstanceProxy::loadRequest):
97         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
98         * WebCoreSupport/WebFrameLoaderClient.mm:
99         (-[WebFramePolicyListener receivedPolicyDecision:]):
100         * WebCoreSupport/WebSecurityOrigin.mm:
101         (-[WebSecurityOrigin initWithURL:]):
102         * WebView/WebArchive.mm:
103         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
104         (-[WebArchive initWithData:]):
105         * WebView/WebDataSource.mm:
106         (-[WebDataSource mainResource]):
107         * WebView/WebFrame.mm:
108         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
109
110 2016-06-15  Alexey Proskuryakov  <ap@apple.com>
111
112         +[WebHTMLRepresentation supportedMIMETypes] leaks
113         https://bugs.webkit.org/show_bug.cgi?id=158683
114
115         Reviewed by Darin Adler.
116
117         The problem occurred when chaining newArrayByConcatenatingArrays calls.
118
119         Also refactored the code to avoid returning NSMutableArrays disguised as NSArrays,
120         and removed __unsafe_unretained modifiers that were added in http://trac.webkit.org/r149453
121         for no apparent reason.
122
123         * WebView/WebHTMLRepresentation.mm:
124         (newArrayWithStrings):
125         (+[WebHTMLRepresentation supportedMIMETypes]):
126         (+[WebHTMLRepresentation supportedMediaMIMETypes]):
127         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
128         (+[WebHTMLRepresentation supportedImageMIMETypes]):
129         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
130         (newArrayByConcatenatingArrays): Deleted.
131
132 2016-06-15  Dean Jackson  <dino@apple.com>
133
134         RTL <select> forms are misplaced
135         https://bugs.webkit.org/show_bug.cgi?id=158810
136         <rdar://problem/24847541>
137
138         Reviewed by Eric Carlson.
139
140         AppKit made a change in Sierra that causes popup menus
141         to snap to a different point when the system language is RTL.
142         We need to be more explicit about what directionality
143         we want, and override the location of the popup based
144         on the text direction.
145
146         I also made a small tweak to the fudge offsets we use
147         in order to make button text and menu text to be
148         more consistent.
149
150         Unfortunately since this is just about the location
151         of the popup menu, it's unable to be tested in our
152         current infrastructure.
153
154         * WebCoreSupport/PopupMenuMac.mm:
155         (PopupMenuMac::show):
156
157 2016-06-15  Chris Dumez  <cdumez@apple.com>
158
159         Drop some unnecessary header includes
160         https://bugs.webkit.org/show_bug.cgi?id=158788
161
162         Reviewed by Alexey Proskuryakov.
163
164         Drop some unnecessary header includes in headers to speed up build time.
165
166         * WebCoreSupport/WebFrameLoaderClient.mm:
167
168 2016-06-15  Romain Bellessort  <romain.bellessort@crf.canon.fr>
169
170         Enabling Shadow DOM for all platforms
171         https://bugs.webkit.org/show_bug.cgi?id=158738
172
173         Reviewed by Ryosuke Niwa.
174
175         Removed Shadow DOM from options (enabled by default)
176
177         * Configurations/FeatureDefines.xcconfig:
178         * WebView/WebPreferences.mm:
179         * WebView/WebView.mm:
180
181 2016-06-15  Antti Koivisto  <antti@apple.com>
182
183         Vary:Cookie validation doesn't work in private browsing
184         https://bugs.webkit.org/show_bug.cgi?id=158616
185         <rdar://problem/26755067>
186
187         Reviewed by Andreas Kling.
188
189         * WebCoreSupport/WebFrameNetworkingContext.h:
190         (WebFrameNetworkingContext::create):
191         * WebCoreSupport/WebFrameNetworkingContext.mm:
192         (privateSession):
193         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
194
195             Expose the private browsing session.
196
197         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
198         * WebCoreSupport/WebPlatformStrategies.h:
199         * WebCoreSupport/WebPlatformStrategies.mm:
200         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
201
202             Implement SessionID version of the function.
203
204         (WebPlatformStrategies::getRawCookies):
205
206 2016-06-13  Alex Christensen  <achristensen@webkit.org>
207
208         Add WebSocketProvider stub
209         https://bugs.webkit.org/show_bug.cgi?id=158702
210
211         Reviewed by Brady Eidson.
212
213         * Misc/WebSocketProvider.h: Added.
214         * WebView/WebView.mm:
215         (-[WebView _commonInitializationWithFrameName:groupName:]):
216         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
217
218 2016-06-10  Alex Christensen  <achristensen@webkit.org>
219
220         Introduce WTF::UniqueRef
221         https://bugs.webkit.org/show_bug.cgi?id=158596
222
223         Reviewed by Brady Eidson.
224
225         * WebView/WebView.mm:
226         (-[WebView _commonInitializationWithFrameName:groupName:]):
227         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
228
229 2016-06-09  Alex Christensen  <achristensen@webkit.org>
230
231         Clean up EditorClient lifetime
232         https://bugs.webkit.org/show_bug.cgi?id=158588
233
234         Reviewed by Anders Carlsson.
235
236         * WebCoreSupport/WebEditorClient.h:
237         * WebCoreSupport/WebEditorClient.mm:
238         (WebEditorClient::WebEditorClient):
239         (WebEditorClient::pageDestroyed): Deleted.
240         * WebView/WebView.mm:
241         (-[WebView _commonInitializationWithFrameName:groupName:]):
242         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
243
244 2016-06-09  Andy Estes  <aestes@apple.com>
245
246         Define printing{Minimum,Maximum}ShrinkFactor in only one place
247         https://bugs.webkit.org/show_bug.cgi?id=158580
248
249         Reviewed by Tim Horton.
250
251         * WebView/WebHTMLView.mm: Initialized _WebHTMLViewPrintingMinimumShrinkFactor and
252         _WebHTMLViewPrintingMaximumShrinkFactor with PrintContext::minimumShrinkFactor() and
253         PrintContext::maximumShrinkFactor() instead of with duplicated float literals.
254
255 2016-06-09  Commit Queue  <commit-queue@webkit.org>
256
257         Unreviewed, rolling out r201810.
258         https://bugs.webkit.org/show_bug.cgi?id=158563
259
260         breaks build without ENABLE_WEB_ANIMATION (Requested by
261         mcatanzaro on #webkit).
262
263         Reverted changeset:
264
265         "[web-animations] Add Animatable, AnimationEffect,
266         KeyframeEffect and Animation interface"
267         https://bugs.webkit.org/show_bug.cgi?id=156096
268         http://trac.webkit.org/changeset/201810
269
270 2016-06-08  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
271
272         [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
273         https://bugs.webkit.org/show_bug.cgi?id=156096
274
275         Reviewed by Dean Jackson.
276
277         Adds:
278         - Setup interface for enabling runtime flag for Web animations through preferences.
279
280         * WebView/WebPreferenceKeysPrivate.h:
281         * WebView/WebPreferences.mm:
282         (+[WebPreferences initialize]):
283         (-[WebPreferences webAnimationsEnabled]):
284         (-[WebPreferences setWebAnimationsEnabled:]):
285         * WebView/WebPreferencesPrivate.h:
286         * WebView/WebView.mm:
287         (-[WebView _preferencesChanged:]):
288
289 2016-06-07  David Kilzer  <ddkilzer@apple.com>
290
291         [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
292         <https://webkit.org/b/158485>
293         <rdar://problem/16960445>
294
295         Reviewed by Dan Bernstein.
296
297         * Misc/WebNSURLExtras.h:
298         (-[NSString _webkit_unescapedQueryValue]): Deleted declaration.
299         (-[NSString _webkit_queryKeysAndValues]): Deleted declaration.
300         * Misc/WebNSURLExtras.mm:
301         (-[NSString _webkit_unescapedQueryValue]): Deleted.
302         (-[NSString _webkit_queryKeysAndValues]): Deleted.
303
304 2016-06-07  Alex Christensen  <achristensen@webkit.org>
305
306         Adopt [PDFView documentScrollView]
307         https://bugs.webkit.org/show_bug.cgi?id=158454
308         rdar://problem/25875390
309
310         Reviewed by Tim Horton.
311
312         * WebView/PDFViewSPI.h: Added.
313         * WebView/WebPDFView.mm:
314         (-[WebPDFView _clipViewForPDFDocumentView]):
315
316 2016-06-05  Anders Carlsson  <andersca@apple.com>
317
318         Attempt to fix plug-in hangs by adding back empty slots for the removed messages.
319
320         * Plugins/Hosted/WebKitPluginClient.defs:
321         * Plugins/Hosted/WebKitPluginHost.defs:
322
323 2016-06-04  Anders Carlsson  <andersca@apple.com>
324
325         Remove NPSPI that is no longer used
326         https://bugs.webkit.org/show_bug.cgi?id=158384
327
328         Reviewed by Sam Weinig.
329
330         * Configurations/WebKitLegacy.xcconfig:
331         * Plugins/Hosted/NetscapePluginHostProxy.mm:
332         (WKPCCheckIfAllowedToLoadURL): Deleted.
333         (WKPCCancelCheckIfAllowedToLoadURL): Deleted.
334         (WKPCResolveURL): Deleted.
335         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
336         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
337         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Deleted.
338         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURL): Deleted.
339         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL): Deleted.
340         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
341         (WebKit::NetscapePluginInstanceProxy::resolveURL): Deleted.
342         * Plugins/Hosted/WebHostedNetscapePluginView.h:
343         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
344         (-[WebHostedNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
345         (-[WebHostedNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
346         * Plugins/Hosted/WebKitPluginClient.defs:
347         * Plugins/WebBaseNetscapePluginView.h:
348         * Plugins/WebBaseNetscapePluginView.mm:
349         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]): Deleted.
350         * Plugins/WebNetscapeContainerCheckContextInfo.h: Removed.
351         * Plugins/WebNetscapeContainerCheckContextInfo.mm: Removed.
352         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]): Deleted.
353         (-[WebNetscapeContainerCheckContextInfo checkRequestID]): Deleted.
354         (-[WebNetscapeContainerCheckContextInfo callback]): Deleted.
355         (-[WebNetscapeContainerCheckContextInfo context]): Deleted.
356         * Plugins/WebNetscapeContainerCheckPrivate.h: Removed.
357         * Plugins/WebNetscapeContainerCheckPrivate.mm: Removed.
358         (browserContainerCheckFuncs): Deleted.
359         * Plugins/WebNetscapePluginView.h:
360         * Plugins/WebNetscapePluginView.mm:
361         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]): Deleted.
362         (-[WebNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
363         (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]): Deleted.
364         (-[WebNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
365         (-[WebNetscapePluginView fini]): Deleted.
366         (-[WebNetscapePluginView getVariable:value:]): Deleted.
367         (-[WebNetscapePluginView resolveURL:forTarget:]): Deleted.
368         * Plugins/npapi.mm:
369         (WKN_CheckIfAllowedToLoadURL): Deleted.
370         (WKN_CancelCheckIfAllowedToLoadURL): Deleted.
371         (WKN_ResolveURL): Deleted.
372
373 2016-06-04  Anders Carlsson  <andersca@apple.com>
374
375         Temporary build fix. (This function is going away).
376
377         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
378         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
379         * Plugins/Hosted/WebKitPluginHost.defs:
380
381 2016-06-03  Chris Dumez  <cdumez@apple.com>
382
383         Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
384         <rdar://problem/26521101>
385
386         * WebCoreSupport/WebVisitedLinkStore.mm:
387         (WebVisitedLinkStore::removeAllVisitedLinks):
388         (WebVisitedLinkStore::removeVisitedLink):
389         (WebVisitedLinkStore::addVisitedLinkHash):
390
391 2016-06-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
392
393         Add WebIDL special operation support: serializer
394         https://bugs.webkit.org/show_bug.cgi?id=156293
395
396         Reviewed by Darin Adler.
397
398         * Plugins/Hosted/HostedNetscapePluginStream.mm:
399         (WebKit::HostedNetscapePluginStream::start):
400         * Plugins/WebNetscapePluginStream.mm:
401         (WebNetscapePluginStream::start):
402
403 2016-05-31  Darin Adler  <darin@apple.com>
404
405         Audit RenderObject casts and fix problems and style issues found
406         https://bugs.webkit.org/show_bug.cgi?id=158221
407
408         Reviewed by Chris Dumez.
409
410         * Misc/WebNSPasteboardExtras.mm:
411         (imageFromElement): Use auto and tighten the logic a bit.
412         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
413         Use auto and added a comment about this not using imageFromElement.
414
415         * Plugins/WebBaseNetscapePluginView.mm:
416         (-[WebBaseNetscapePluginView _windowClipRect]): Consistently cast to
417         RenderEmbeddedObject, which is the class used for renderers for plug-ins.
418         (-[WebBaseNetscapePluginView inFlatteningPaint]): Ditto.
419         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]): Ditto.
420         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]): Ditto.
421
422         * WebCoreSupport/WebFrameLoaderClient.mm:
423         (WebFrameLoaderClient::createPlugin): Changed code so it does a null check
424         rather than assuming the renderer is non-null.
425         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
426
427 2016-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
428
429         Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
430         https://bugs.webkit.org/show_bug.cgi?id=158249
431
432         * WebView/WebPreferencesPrivate.h:
433
434 2016-05-27  Chris Dumez  <cdumez@apple.com>
435
436         callOnMainThread() should not copy captured lambda variables
437         https://bugs.webkit.org/show_bug.cgi?id=158166
438
439         Reviewed by Brady Eidson.
440
441         callOnMainThread() should not copy captured lambda variables. This 
442         function is usually called cross-thread with a lambda and copying
443         the lambda (and its captured variables) can lead to thread-safety
444         issues.
445
446         This patch updates callOnMainThread() to take a NoncopyableFunction&&
447         in parameter instead of a std::function. The call sites of
448         callOnMainThread() have also been updated to use C++14's lambda
449         capture with initializer.
450
451         * Storage/WebDatabaseManagerClient.mm:
452         (DidModifyOriginData::dispatchToMainThread):
453         (DidModifyOriginData::DidModifyOriginData): Deleted.
454         * Storage/WebStorageTrackerClient.mm:
455         (WebStorageTrackerClient::dispatchDidModifyOrigin):
456
457 2016-05-27  Caitlin Potter  <caitp@igalia.com>
458
459         [JSC] implement async functions proposal
460         https://bugs.webkit.org/show_bug.cgi?id=156147
461
462         Reviewed by Yusuke Suzuki.
463
464         * WebView/WebPreferencesPrivate.h:
465
466 2016-05-26  Darin Adler  <darin@apple.com>
467
468         Media queries and platform screen modernization and streamlining
469         https://bugs.webkit.org/show_bug.cgi?id=158067
470
471         Reviewed by Alex Christensen.
472
473         * WebView/WebFrame.mm:
474         (-[WebFrame _dragSourceEndedAt:operation:]): Updated to use the new version of
475         globalPoint, which returns an NSPoint.
476
477 2016-05-26  Myles C. Maxfield  <mmaxfield@apple.com>
478
479         Build fix
480
481         Rubber stamped by Lucas Forschler.
482
483         * Configurations/DebugRelease.xcconfig:
484
485 2016-05-24  Beth Dakin  <bdakin@apple.com>
486
487         Candidates should work with input methods
488         https://bugs.webkit.org/show_bug.cgi?id=158042
489         -and corresponding-
490         rdar://problem/26205228
491
492         Reviewed by Tim Horton.
493
494         * WebView/WebHTMLView.mm:
495         * WebView/WebView.mm:
496         (-[WebView candidateList]):
497         * WebView/WebViewInternal.h:
498
499 2016-05-22  Brady Eidson  <beidson@apple.com>
500
501         Move to C++14.
502         https://bugs.webkit.org/show_bug.cgi?id=157948
503
504         Reviewed by Michael Catanzaro.
505
506         * Configurations/Base.xcconfig:
507
508 2016-05-20  Enrica Casucci  <enrica@apple.com>
509
510         Drag cannot start if no drag data or custom data is available in the Pasteboard.
511         https://bugs.webkit.org/show_bug.cgi?id=157911
512         rdar://problem/24577706
513
514         Reviewed by Tim Horton.
515
516         We need to make sure there is always one item in common between source and target
517         of the drag and drop operation.
518
519         * WebView/WebHTMLView.mm:
520         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
521
522 2016-05-19  Enrica Casucci  <enrica@apple.com>
523
524         Drag cannot start if no drag data is available in the Pasteboard.
525         https://bugs.webkit.org/show_bug.cgi?id=157911
526         rdar://problem/24577706
527
528         Reviewed by Tim Horton.
529
530         * WebView/WebHTMLView.mm:
531         (+[WebHTMLView _dummyPasteboardType]):
532         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
533         * WebView/WebHTMLViewPrivate.h:
534         * WebView/WebView.mm:
535         (-[WebView _registerDraggedTypes]):
536
537 2016-05-19  Jer Noble  <jer.noble@apple.com>
538
539         [IOS] Add setting to allow playback to continue inline after exiting fullscreen.
540         https://bugs.webkit.org/show_bug.cgi?id=157912
541
542         Reviewed by Eric Carlson.
543
544         Add a preference to control whether media should be allowed to continue playing inline when
545         exiting fullscreen.
546
547         * WebView/WebPreferenceKeysPrivate.h:
548         * WebView/WebPreferences.mm:
549         (+[WebPreferences initialize]):
550         (-[WebPreferences allowsInlineMediaPlaybackAfterFullscreen]):
551         (-[WebPreferences setAllowsInlineMediaPlaybackAfterFullscreen:]):
552         * WebView/WebPreferencesPrivate.h:
553         * WebView/WebView.mm:
554         (-[WebView _preferencesChanged:]):
555
556 2016-05-18  Brady Eidson  <beidson@apple.com>
557
558         Modern IDB: Make TestRunner.clearAllDatabases also delete IndexedDB databases (once doing so is supported).
559         https://bugs.webkit.org/show_bug.cgi?id=157823
560
561         Reviewed by Alex Christensen.
562
563         * Storage/WebDatabaseManager.mm:
564         (-[WebDatabaseManager deleteAllIndexedDatabases]):
565         * Storage/WebDatabaseManagerPrivate.h:
566
567 2016-05-17  Beth Dakin  <bdakin@apple.com>
568
569         Make handleAcceptedCandidate a public function
570         https://bugs.webkit.org/show_bug.cgi?id=157763
571         -and corresponding-
572         rdar://problem/26206397
573
574         Reviewed by Tim Horton.
575
576         This patch re-names handleAcceptedCandidate to 
577         handleAcceptedCandidateWithSoftSpaces. The function now takes a 
578         WebCore::TextCheckingResult instead of an NSTextCheckingResult and it can be 
579         called from outside of WebEditorClient.
580
581         * WebCoreSupport/WebEditorClient.h:
582         * WebCoreSupport/WebEditorClient.mm:
583         (WebEditorClient::handleRequestedCandidates):
584         (WebEditorClient::handleAcceptedCandidateWithSoftSpaces):
585         (textCheckingResultFromNSTextCheckingResult): Deleted.
586         (WebEditorClient::handleAcceptedCandidate): Deleted.
587
588         Move showCandidates to WebViewPrivate so that it can be overridden by a test.
589         * WebView/WebViewInternal.h:
590         * WebView/WebViewPrivate.h:
591
592 2016-05-17  Dean Jackson  <dino@apple.com>
593
594         Remove ES6_GENERATORS flag
595         https://bugs.webkit.org/show_bug.cgi?id=157815
596         <rdar://problem/26332894>
597
598         Reviewed by Geoffrey Garen.
599
600         This flag isn't needed. Generators are enabled everywhere and
601         part of a stable specification.
602
603         * Configurations/FeatureDefines.xcconfig:
604
605 2016-05-17  Filip Pizlo  <fpizlo@apple.com>
606
607         WTF should know about Language
608         https://bugs.webkit.org/show_bug.cgi?id=157756
609
610         Reviewed by Geoffrey Garen.
611
612         Rewires a bunch of includes/imports.
613
614         * WebCoreSupport/PopupMenuMac.mm:
615         * WebCoreSupport/WebChromeClient.mm:
616         * WebCoreSupport/WebFrameLoaderClient.mm:
617         * WebCoreSupport/WebGeolocationClient.mm:
618         * WebCoreSupport/WebNotificationClient.mm:
619         * WebCoreSupport/WebPlatformStrategies.mm:
620         * WebCoreSupport/WebUserMediaClient.mm:
621         * WebCoreSupport/WebVisitedLinkStore.mm:
622         * WebView/WebHTMLView.mm:
623
624 2016-05-13  Enrica Casucci  <enrica@apple.com>
625
626         Remove unused initializer for WebEvent on iOS.
627         https://bugs.webkit.org/show_bug.cgi?id=157689
628
629         Reviewed by Anders Carlsson.
630
631         Removing use of characterSet property.
632
633         * WebView/WebHTMLView.mm:
634         (-[WebHTMLView _handleEditingKeyEvent:]):
635
636
637 2016-05-13  Commit Queue  <commit-queue@webkit.org>
638
639         Unreviewed, rolling out r200894.
640         https://bugs.webkit.org/show_bug.cgi?id=157695
641
642         This change broke the iOS build (Requested by ryanhaddad on
643         #webkit).
644
645         Reverted changeset:
646
647         "Remove unused initializer for WebEvent on iOS."
648         https://bugs.webkit.org/show_bug.cgi?id=157689
649         http://trac.webkit.org/changeset/200894
650
651 2016-05-13  Enrica Casucci  <enrica@apple.com>
652
653         Remove unused initializer for WebEvent on iOS.
654         https://bugs.webkit.org/show_bug.cgi?id=157689
655
656         Reviewed by Anders Carlsson.
657
658         Removing use of characterSet property.
659
660         * WebView/WebHTMLView.mm:
661         (-[WebHTMLView _handleEditingKeyEvent:]):
662
663 2016-05-13  Beth Dakin  <bdakin@apple.com>
664
665         Build fix.
666
667         * WebView/WebView.mm:
668
669 2016-05-13  Beth Dakin  <bdakin@apple.com>
670
671         Add dyldSPI.h for linked on or after checks, and add one for link preview
672         https://bugs.webkit.org/show_bug.cgi?id=157401
673         -and corresponding-
674         rdar://problem/26253396
675
676         Reviewed by Darin Adler.
677
678         This patch removes DynamicLinkerSPI.h and replaces it with 
679         wtf/spi/darwin/dyldSPI.h
680
681         * WebView/WebView.mm:
682
683 2016-05-13  Tina Liu  <iting_liu@apple.com>
684
685         Revert r199691.
686         https://bugs.webkit.org/show_bug.cgi?id=157645
687         <rdar://problem/26235373>
688
689         Reviewed by Darin Adler.
690
691         * WebCoreSupport/WebPlatformStrategies.h:
692         * WebCoreSupport/WebPlatformStrategies.mm:
693         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy): Deleted.
694
695 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
696
697         Unreviewed build fix for r200799.
698
699         * WebView/WebView.mm:
700
701 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
702
703         REGRESSION (r199313): ICBC app: text field In the webview is not tappable
704         https://bugs.webkit.org/show_bug.cgi?id=157396
705         <rdar://problem/25931513>
706
707         Reviewed by David Kilzer.
708
709         Add a quirk for WebKit1 apps.
710
711         * WebView/WebView.mm:
712         (shouldConvertInvalidURLsToBlank):
713         (-[WebView _preferencesChanged:]):
714
715 2016-05-12  Beth Dakin  <bdakin@apple.com>
716
717         WebKitAdditions needs to be notified before the WebView is dealloc'd
718         https://bugs.webkit.org/show_bug.cgi?id=157633
719         -and corresponding-
720         rdar://problem/26134539
721
722         Reviewed by Anders Carlsson.
723
724         * WebView/WebView.mm:
725         (-[WebView dealloc]):
726         * WebView/WebViewInternal.h:
727
728 2016-05-12  Konstantin Tokarev  <annulen@yandex.ru>
729
730         Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem.
731         https://bugs.webkit.org/show_bug.cgi?id=157624
732
733         Reviewed by Darin Adler.
734
735         * WebCoreSupport/WebFrameLoaderClient.h:
736         * WebCoreSupport/WebFrameLoaderClient.mm:
737         (WebFrameLoaderClient::saveViewStateToItem):
738         * WebView/WebFrame.mm:
739         (-[WebFrame _saveViewState]):
740
741 2016-05-12  Csaba Osztrogonác  <ossy@webkit.org>
742
743         Remove ENABLE(ES6_ARROWFUNCTION_SYNTAX) guards
744         https://bugs.webkit.org/show_bug.cgi?id=157564
745
746         Reviewed by Darin Adler.
747
748         * Configurations/FeatureDefines.xcconfig:
749
750 2016-05-11  Chris Dumez  <cdumez@apple.com>
751
752         Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers
753         https://bugs.webkit.org/show_bug.cgi?id=157556
754
755         Reviewed by Darin Adler.
756
757         * WebView/WebFrame.mm:
758         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
759
760 2016-05-10  Shaw rich  <richshaw@126.com>
761
762         [OS X] Compatible with gnu sed grammar due to compile error with gnu sed
763         https://bugs.webkit.org/show_bug.cgi?id=157526
764
765         Reviewed by Darin Adler.
766
767         * MigrateHeaders.make:
768
769 2016-05-10  Simon Fraser  <simon.fraser@apple.com>
770
771         [iOS WK1] text autosizing was on for all layout tests
772         https://bugs.webkit.org/show_bug.cgi?id=157541
773
774         Reviewed by Tim Horton.
775
776         Make sure that we transfer the WK1 text autosizing preference to Settings.
777
778         * WebView/WebView.mm:
779         (-[WebView _preferencesChanged:]):
780
781 2016-05-09  Tim Horton  <timothy_horton@apple.com>
782
783         [WebKit1] Invoking a link preview on a complex link (e.g. an image) results in an empty TextIndicator
784         https://bugs.webkit.org/show_bug.cgi?id=157497
785         <rdar://problem/25872773>
786
787         Reviewed by Anders Carlsson.
788
789         * WebView/WebImmediateActionController.mm:
790         (-[WebImmediateActionController _defaultAnimationController]):
791         r198578 fixed this for WebKit2, but forgot about WebKit1.
792
793 2016-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
794
795         [OS X] Migrate our Font classes entirely off of NSFont
796         https://bugs.webkit.org/show_bug.cgi?id=157464
797
798         Reviewed by Darin Adler.
799
800         * WebCoreSupport/PopupMenuMac.mm:
801         (PopupMenuMac::populate):
802         (PopupMenuMac::show):
803         * WebView/WebHTMLView.mm:
804         (fontNameForDescription):
805         (-[WebHTMLView _addToStyle:fontA:fontB:]):
806
807 2016-05-06  Joseph Pecoraro  <pecoraro@apple.com>
808
809         Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent
810         https://bugs.webkit.org/show_bug.cgi?id=157447
811
812         Reviewed by Ryosuke Niwa.
813
814         * WebView/WebFrame.mm:
815         (-[WebFrame elementAtPoint:]):
816         * WebView/WebHTMLView.mm:
817         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
818
819 2016-05-06  Simon Fraser  <simon.fraser@apple.com>
820
821         Enable IOS_TEXT_AUTOSIZING on Mac and make it testable
822         https://bugs.webkit.org/show_bug.cgi?id=157432
823         rdar://problem/16406720
824
825         Reviewed by Dean Jackson.
826
827         Enable IOS_TEXT_AUTOSIZING on Mac so it can be tested.
828
829         Make the setTextAutosizingEnabled() Setting work, and plumb it through WK1 and WK2
830         preferences for WTR and DRT. Make textAutosizingWindowSizeOverride() work, for layout tests.
831         These two settings are shared with TEXT_AUTOSIZING.
832
833         Add a TextAutosizing log channel, which is useful for generated -expected.html results.
834
835         Move adjustComputedFontSizesOnBlocks() and related code from RenderObject to RenderElement
836         without changes.
837
838         An implication of this set of changes is that the way clients enable text autosizing
839         has changed. Previously, they set the "MinimumZoomFontSize" preference to 0.
840         Settings::defaultMinimumZoomFontSize() used to do this in order to enable text autosizing
841         on iPhone only, not iPad.
842
843         Now the preferred technique is to leave minimumZoomFontSize alone, and to use textAutosizingEnabled()
844         instead. Settings::defaultTextAutosizingEnabled() now does the check for iPhone.
845
846         UIWebView calls WebKitGetMinimumZoomFontSize() to setup the default minimum font zoom size,
847         which will now always return 15, but had no other code that toggled this. So it's safe to just rely
848         on Settings::defaultTextAutosizingEnabled() doing the right thing for iPhone/iPad.
849
850         * Configurations/FeatureDefines.xcconfig:
851         * WebView/WebPreferenceKeysPrivate.h:
852         * WebView/WebPreferences.mm:
853         (+[WebPreferences initialize]):
854         (-[WebPreferences _setTextAutosizingEnabled:]):
855         (-[WebPreferences _textAutosizingEnabled]):
856         * WebView/WebPreferencesPrivate.h:
857
858 2016-05-06  Dean Jackson  <dino@apple.com>
859
860         Regions, Shapes and Tracks don't need runtime features
861         https://bugs.webkit.org/show_bug.cgi?id=157426
862         <rdar://problem/26146262>
863
864         Reviewed by Simon Fraser.
865
866         The following RuntimeEnabledFeatures can be removed since
867         we have no need to disable them (they are stable and have
868         shipped for a while):
869         - CSS Regions
870         - CSS Shapes
871         - Media tracks
872
873         * WebView/WebPreferenceKeysPrivate.h:
874         * WebView/WebPreferences.mm:
875         (+[WebPreferences initialize]): Deleted.
876         (-[WebPreferences cssRegionsEnabled]): Deleted.
877         (-[WebPreferences setCSSRegionsEnabled:]): Deleted.
878         (-[WebPreferences cssCompositingEnabled]): Deleted.
879         (-[WebPreferences setCSSCompositingEnabled:]): Deleted.
880         * WebView/WebPreferencesPrivate.h:
881         * WebView/WebView.mm:
882         (-[WebView _preferencesChanged:]): Deleted.
883
884 2016-05-06  Daniel Bates  <dabates@apple.com>
885
886         Remove workaround for Apple Internal bots
887         <rdar://problem/25989808>
888
889         Reverts the workaround added in r200211 as it is no longer needed.
890
891         * WebView/WebPDFView.h:
892
893 2016-05-02  Daniel Bates  <dabates@apple.com>
894
895         CSP: Add workaround for XtraMath
896         https://bugs.webkit.org/show_bug.cgi?id=157252
897
898         Reviewed by Andy Estes.
899
900         * WebView/WebView.mm:
901         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Allow * to match any protocol for
902         applicable versions of app XtraMath.
903
904 2016-05-02  Daniel Bates  <dabates@apple.com>
905
906         DatabaseTracker::closeAllDatabases calls Database::close from the wrong thread
907         https://bugs.webkit.org/show_bug.cgi?id=147672
908         <rdar://problem/22357464>
909
910         Reviewed by Brady Eidson.
911
912         Update the background assertion expiration callback to call DatabaseTracker::closeAllDatabases()
913         with CurrentQueryBehavior::Interrupt so that we abort a long running query and close the database
914         immediately to avoid holding a locked file when the process is suspended.
915
916         * Storage/WebDatabaseManager.mm:
917         (+[WebDatabaseManager startBackgroundTask]):
918
919 2016-04-29  Dean Jackson  <dino@apple.com>
920
921         RTL <select> popup menu is in the wrong location
922         https://bugs.webkit.org/show_bug.cgi?id=157159
923         <rdar://problem/25894451>
924
925         Reapply http://trac.webkit.org/changeset/200217
926         but with changes that will allow it to build on Yosemite.
927
928         * WebCoreSupport/PopupMenuMac.mm:
929         (PopupMenuMac::show):
930
931 2016-04-29  Commit Queue  <commit-queue@webkit.org>
932
933         Unreviewed, rolling out r200217.
934         https://bugs.webkit.org/show_bug.cgi?id=157183
935
936         This change broke the Yosemite build. (Requested by ryanhaddad
937         on #webkit).
938
939         Reverted changeset:
940
941         "RTL <select> popup menu is in the wrong location"
942         https://bugs.webkit.org/show_bug.cgi?id=157159
943         http://trac.webkit.org/changeset/200217
944
945 2016-04-28  Dean Jackson  <dino@apple.com>
946
947         RTL <select> popup menu is in the wrong location
948         https://bugs.webkit.org/show_bug.cgi?id=157159
949         <rdar://problem/25894451>
950
951         Reviewed by Simon Fraser.
952
953         Make sure both the NSPopupMenuCell and the NSPopupMenu take
954         the text direction into account, and offset the position
955         of the menu slightly if we're in RTL mode.
956
957         Unfortunately our test infrastructure is unable to exercise
958         this because it runs without a window, and the popup menu
959         is not captured in the screenshot.
960
961         * WebCoreSupport/PopupMenuMac.mm:
962         (PopupMenuMac::show):
963
964 2016-04-28  Manuel Rego Casasnovas  <rego@igalia.com>
965
966         [css-grid] Add CSS Grid Layout runtime flag
967         https://bugs.webkit.org/show_bug.cgi?id=157134
968
969         Reviewed by Simon Fraser.
970
971         Add CSS Grid Layout runtime flag based on preferences,
972         enabled by default.
973
974         * WebView/WebPreferenceKeysPrivate.h:
975         * WebView/WebPreferences.mm:
976         (+[WebPreferences initialize]):
977         (-[WebPreferences isCSSGridLayoutEnabled]):
978         (-[WebPreferences setCSSGridLayoutEnabled:]):
979         * WebView/WebPreferencesPrivate.h:
980         * WebView/WebView.mm:
981         (-[WebView _preferencesChanged:]):
982
983 2016-04-28  Daniel Bates  <dabates@apple.com>
984
985         Another fix for the Apple Internal OS X build
986         <rdar://problem/25989808>
987
988         Reviewed by Anders Carlsson.
989
990         * WebView/WebPDFView.h:
991
992 2016-04-28  Daniel Bates  <dabates@apple.com>
993
994         Fix the Apple Internal OS X build
995
996         * WebView/WebPDFView.h: Import PDFKit for definition of protocol PDFViewDelegate.
997         Forward declare protocol PDFViewDelegate as appropriate. Mark WebPDFView as implementing
998         protocol PDFViewDelegate.
999         * WebView/WebPDFView.mm: Move import of PDFKit from here to the header.
1000
1001 2016-04-27  Daniel Bates  <dabates@apple.com>
1002
1003         CSP: Add app-specific workaround for Ecobee and Quora
1004         https://bugs.webkit.org/show_bug.cgi?id=157005
1005         <rdar://problem/25560776>
1006
1007         Reviewed by Brent Fulgham.
1008
1009         * Misc/WebKitVersionChecks.h:
1010         * WebView/WebView.mm:
1011         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Added.
1012         (-[WebView _preferencesChanged:]): Enable setting allowContentSecurityPolicySourceStarToMatchAnyProtocol
1013         if applicable.
1014
1015 2016-04-26  Joseph Pecoraro  <pecoraro@apple.com>
1016
1017         Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
1018         https://bugs.webkit.org/show_bug.cgi?id=156991
1019         <rdar://problem/25913475>
1020
1021         Reviewed by Timothy Hatcher.
1022
1023         * WebCoreSupport/WebInspectorClient.mm:
1024         (-[WebInspectorWindowController init]):
1025         Apply the same universal file access to WebKit1 Web Inspector views that
1026         we apply to WebKit2 views. Explicitly always allow access to storage
1027         for Web Inspector content just in case as we already allow universal
1028         file access.
1029
1030 2016-04-26  Beth Dakin  <bdakin@apple.com>
1031
1032         Check to make sure shouldRequestCandidates() before requesting candidates
1033         https://bugs.webkit.org/show_bug.cgi?id=157038
1034         -and corresponding-
1035         rdar://problem/25910418
1036
1037         Reviewed by Tim Horton.
1038
1039         This patch limits requesting and showing candidates to cases where 
1040         shouldRequestCandidates() is true. This patch also caches the sequence number 
1041         returned by [NSSpellChecker requestCandidatesForSelectedRange:] to make sure 
1042         it is equal to the sequence number sent to the callback handler so that we do 
1043         not show candidates for old requests.
1044
1045         * WebCoreSupport/WebEditorClient.h:
1046         * WebCoreSupport/WebEditorClient.mm:
1047         (WebEditorClient::requestCandidatesForSelection):
1048         (WebEditorClient::handleRequestedCandidates):
1049         * WebView/WebView.mm:
1050         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
1051         (-[WebView shouldRequestCandidates]):
1052         * WebView/WebViewInternal.h:
1053
1054 2016-04-25  Ryosuke Niwa  <rniwa@webkit.org>
1055
1056         Remove the build flag for template elements
1057         https://bugs.webkit.org/show_bug.cgi?id=157022
1058
1059         Reviewed by Daniel Bates.
1060
1061         * Configurations/FeatureDefines.xcconfig:
1062
1063 2016-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
1064
1065         [Cocoa] Guarantee FontPlatformData's m_cgFont is never nullptr
1066         https://bugs.webkit.org/show_bug.cgi?id=156929
1067
1068         Reviewed by Darin Adler.
1069
1070         * Misc/WebKitNSStringExtras.mm:
1071         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Drawing
1072         a string with a null font shouldn't do anything.
1073         * Misc/WebStringTruncator.mm: We can't truncate a string if we don't have a font
1074         to use.
1075         (+[WebStringTruncator centerTruncateString:toWidth:]):
1076         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
1077         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
1078         (+[WebStringTruncator widthOfString:font:]):
1079
1080 2016-04-25  Beth Dakin  <bdakin@apple.com>
1081
1082         WebEditorClient should properly write to m_rangeForCandidates
1083         https://bugs.webkit.org/show_bug.cgi?id=157003
1084         -and corresponding-
1085         rdar://problem/25910418
1086
1087         Reviewed by Tim Horton.
1088
1089         Actually write to m_rangeForCandidates instead of declaring a local variable 
1090         of the same name. :-/
1091         * WebCoreSupport/WebEditorClient.mm:
1092         (WebEditorClient::requestCandidatesForSelection):
1093
1094 2016-04-23  Andy Estes  <aestes@apple.com>
1095
1096         Fix issues found by the clang static analyzer
1097         https://bugs.webkit.org/show_bug.cgi?id=156956
1098
1099         Reviewed by Alexey Proskuryakov.
1100
1101         * WebView/WebDeviceOrientationProviderMock.mm:
1102         (-[WebDeviceOrientationProviderMock dealloc]): [super dealloc] should be called last.
1103
1104 2016-04-21  Tim Horton  <timothy_horton@apple.com>
1105
1106         Fix the iOS build: WAKView may not respond to drawLayer:inContext:
1107         https://bugs.webkit.org/show_bug.cgi?id=156879
1108         <rdar://problem/25772661>
1109
1110         Reviewed by Beth Dakin.
1111
1112         * WebView/WebHTMLView.mm:
1113         WebHTMLView on iOS never uses drawLayer:inContext:, and WAKView
1114         doesn't implement it, so this would have thrown an exception
1115         if called, anyway. Fix the build with stricter CA protocols.
1116
1117 2016-04-21  Jer Noble  <jer.noble@apple.com>
1118
1119         [WK1] Add WebPlaybackSession support to WebKit
1120         https://bugs.webkit.org/show_bug.cgi?id=156854
1121
1122         Reviewed by Beth Dakin.
1123
1124         Add support for WebPlaybackSession and the ChromeClient methods setUpPlaybackControlsManager() and
1125         clearPlaybackControlsManager() to WebKit.
1126
1127         * WebCoreSupport/WebChromeClient.h:
1128         * WebCoreSupport/WebChromeClient.mm:
1129         (WebChromeClient::setUpPlaybackControlsManager):
1130         (WebChromeClient::clearPlaybackControlsManager):
1131         * WebView/WebView.mm:
1132         (-[WebView _hasActiveVideoForControlsInterface]):
1133         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1134         (-[WebView _clearPlaybackControlsManagerForMediaElement:]):
1135         * WebView/WebViewData.h:
1136         * WebView/WebViewData.mm:
1137         * WebView/WebViewInternal.h:
1138
1139 2016-04-21  Anders Carlsson  <andersca@apple.com>
1140
1141         Stop using ApplicationCacheStorage::singleton() in WebKitLegacy
1142         https://bugs.webkit.org/show_bug.cgi?id=156859
1143
1144         Reviewed by Tim Horton.
1145
1146         * WebCoreSupport/WebApplicationCache.mm:
1147         (+[WebApplicationCache initializeWithBundleIdentifier:]):
1148         Change this to just store the bundle identifier.
1149
1150         (applicationCacheBundleIdentifier):
1151         Helper function that returns the bundle identifier for the app cache.
1152
1153         (applicationCachePath):
1154         Return the application cache path.
1155
1156         (webApplicationCacheStorage):
1157         Create a new ApplicationCacheStorage object.
1158
1159         * WebView/WebView.mm:
1160         (-[WebView _commonInitializationWithFrameName:groupName:]):
1161         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1162         Set pageConfiguration.applicationCacheStorage to webApplicationCacheStorage().
1163
1164         (WebKitInitializeApplicationCachePathIfNecessary): Deleted.
1165
1166 2016-04-21  Beth Dakin  <bdakin@apple.com>
1167
1168         showCandidates() should take a range and the string should be the whole 
1169         paragraph
1170         https://bugs.webkit.org/show_bug.cgi?id=156813
1171         -and corresponding-
1172         rdar://problem/25760533
1173
1174         Reviewed by Tim Horton.
1175
1176         Cache the range and the paragraph since we compute them in 
1177         requestCandidatesForSelection, and then we can use them again in 
1178         handleRequestedCandidates.
1179         * WebCoreSupport/WebEditorClient.h:
1180         * WebCoreSupport/WebEditorClient.mm:
1181         (WebEditorClient::requestCandidatesForSelection):
1182         (WebEditorClient::handleRequestedCandidates):
1183         * WebView/WebView.mm:
1184         (-[WebView updateWebViewAdditions]):
1185         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
1186         (-[WebView showCandidates:forString:inRect:view:completionHandler:]): Deleted.
1187         * WebView/WebViewInternal.h:
1188
1189 2016-04-21  Chris Dumez  <cdumez@apple.com>
1190
1191         Drop [UsePointersEvenForNonNullableObjectArguments] from Range
1192         https://bugs.webkit.org/show_bug.cgi?id=156805
1193
1194         Reviewed by Youenn Fablet.
1195
1196         * WebView/WebFrame.mm:
1197         (-[WebFrame _smartDeleteRangeForProposedRange:]):
1198
1199 2016-04-20  Brady Eidson  <beidson@apple.com>
1200
1201         Modern IDB (Workers): Enable INDEXED_DATABASE_IN_WORKERS compile time flag, but disabled in RuntimeEnabledFeatures.
1202         https://bugs.webkit.org/show_bug.cgi?id=156782
1203
1204         Reviewed by Alex Christensen.
1205
1206         * Configurations/FeatureDefines.xcconfig:
1207
1208 2016-04-18  Anders Carlsson  <andersca@apple.com>
1209
1210         Fix build with newer versions of clang.
1211         rdar://problem/25749769
1212
1213         * WebCoreSupport/WebContextMenuClient.mm:
1214         * WebView/WebHTMLView.mm:
1215         Forward declare some AppKit IPI.
1216
1217 2016-04-18  Tina Liu  <iting_liu@apple.com>
1218
1219         Overrode a virtual function of WebCore::PluginStrategy
1220         https://bugs.webkit.org/show_bug.cgi?id=156540
1221
1222         Reviewed by Anders Carlsson.
1223
1224         * WebCoreSupport/WebPlatformStrategies.h:
1225         * WebCoreSupport/WebPlatformStrategies.mm:
1226         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy):
1227
1228 2016-04-18  Brent Fulgham  <bfulgham@apple.com>
1229
1230         CSP: Remove stubs for dynamically-added favicons (via link rel="icon")
1231         https://bugs.webkit.org/show_bug.cgi?id=153151
1232         <rdar://problem/24383176>
1233
1234         Reviewed by Darin Adler.
1235
1236         Remove the unused dynamic favicon code and tests.
1237
1238         * WebCoreSupport/WebFrameLoaderClient.h:
1239         * WebCoreSupport/WebFrameLoaderClient.mm:
1240         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
1241
1242 2016-04-15  Darin Adler  <darin@apple.com>
1243
1244         Reduce use of Deprecated::ScriptXXX classes
1245         https://bugs.webkit.org/show_bug.cgi?id=156632
1246
1247         Reviewed by Alex Christensen.
1248
1249         * WebView/WebFrame.mm:
1250         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Use references instead
1251         of pointers.
1252         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Updated
1253         since return value is a JSValue.
1254         * WebView/WebView.mm:
1255         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
1256
1257 2016-04-14  Brent Fulgham  <bfulgham@apple.com>
1258
1259         Make <a download> a runtime enabled option
1260         https://bugs.webkit.org/show_bug.cgi?id=156583
1261         <rdar://problem/25733449>
1262
1263         Reviewed by Alex Christensen.
1264
1265         Add a download attribute runtime flag based on preferences.
1266         Disable the download attribute by default.
1267
1268         * WebView/WebPreferenceKeysPrivate.h:
1269         * WebView/WebPreferences.mm:
1270         (+[WebPreferences initialize]):
1271         (-[WebPreferences setFetchAPIEnabled:]):
1272         (-[WebPreferences downloadAttributeEnabled]):
1273         (-[WebPreferences setDownloadAttributeEnabled:]):
1274         * WebView/WebPreferencesPrivate.h:
1275         * WebView/WebView.mm:
1276         (-[WebView _preferencesChanged]): Set the runtime flag properly
1277         based on the user preferences.
1278
1279 2016-04-09  Gavin Barraclough  <barraclough@apple.com>
1280
1281         WebKit should adopt journal_mode=wal for all SQLite databases.
1282         https://bugs.webkit.org/show_bug.cgi?id=133496
1283
1284         Reviewed by Darin Adler.
1285
1286         * Storage/WebDatabaseManagerPrivate.h:
1287             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
1288
1289 2016-04-05  Oliver Hunt  <oliver@apple.com>
1290
1291         Remove compile time define for SEPARATED_HEAP
1292         https://bugs.webkit.org/show_bug.cgi?id=155508
1293
1294         Reviewed by Mark Lam.
1295
1296         * Configurations/FeatureDefines.xcconfig:
1297
1298 2016-04-08  Sam Weinig  <sam@webkit.org>
1299
1300         Remove support for custom target picker actions
1301         <rdar://problem/24987783>
1302         https://bugs.webkit.org/show_bug.cgi?id=156434
1303
1304         Reviewed by Eric Carlson.
1305
1306         This mostly entailed rolling out r197429 and r197569.
1307
1308         * WebCoreSupport/WebChromeClient.h:
1309         * WebCoreSupport/WebChromeClient.mm:
1310         (WebChromeClient::removePlaybackTargetPickerClient):
1311         (WebChromeClient::showPlaybackTargetPicker):
1312         * WebView/WebMediaPlaybackTargetPicker.h:
1313         * WebView/WebMediaPlaybackTargetPicker.mm:
1314         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
1315         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
1316         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
1317         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
1318         (WebMediaPlaybackTargetPicker::invalidate):
1319         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected): Deleted.
1320         * WebView/WebView.mm:
1321         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
1322         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
1323
1324 2016-04-07  Joseph Pecoraro  <pecoraro@apple.com>
1325
1326         Remove ENABLE(ENABLE_ES6_CLASS_SYNTAX) guards
1327         https://bugs.webkit.org/show_bug.cgi?id=156384
1328
1329         Reviewed by Ryosuke Niwa.
1330
1331         * Configurations/FeatureDefines.xcconfig:
1332
1333 2016-04-07  Brian Burg  <bburg@apple.com>
1334
1335         CookieJar should support adding synthetic cookies for developer tools
1336         https://bugs.webkit.org/show_bug.cgi?id=156091
1337         <rdar://problem/25581340>
1338
1339         Reviewed by Timothy Hatcher.
1340
1341         * WebCoreSupport/WebPlatformStrategies.h:
1342         * WebCoreSupport/WebPlatformStrategies.mm:
1343         (WebPlatformStrategies::addCookie):
1344         Add new method override.
1345
1346 2016-04-06  Alex Christensen  <achristensen@webkit.org>
1347
1348         Fix CMake DumpRenderTree
1349         https://bugs.webkit.org/show_bug.cgi?id=156305
1350
1351         Reviewed by Daniel Bates.
1352
1353         * WebKitPrefix.h:
1354
1355 2016-04-05  Beth Dakin  <bdakin@apple.com>
1356
1357         Make requestCandidatesForSelection available on any EditorClient
1358         https://bugs.webkit.org/show_bug.cgi?id=156253
1359         -and corresponding-
1360         rdar://problem/24661147
1361
1362         Reviewed by Dean Jackson.
1363
1364         * WebCoreSupport/WebEditorClient.h:
1365
1366 2016-04-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1367
1368         [Fetch API] Add a runtime flag to fetch API and related constructs
1369         https://bugs.webkit.org/show_bug.cgi?id=156113
1370  
1371         Reviewed by Alex Christensen.
1372
1373         Add a fetch API runtime flag based on preferences.
1374         Disable fetch API by default.
1375  
1376         * WebView/WebPreferenceKeysPrivate.h:
1377         * WebView/WebPreferences.mm:
1378         (+[WebPreferences initialize]):
1379         (-[WebPreferences setCustomElementsEnabled:]):
1380         (-[WebPreferences fetchAPIEnabled]):
1381         (-[WebPreferences setFetchAPIEnabled:]):
1382         * WebView/WebPreferencesPrivate.h:
1383         * WebView/WebView.mm:
1384         (-[WebView _preferencesChanged:]):
1385         (-[WebView preferencesIdentifier]):
1386         (-[WebView setUIDelegate:]):
1387
1388 2016-04-05  Antoine Quint  <graouts@apple.com>
1389
1390         [WebGL2] Turn the ENABLE_WEBGL2 flag on
1391         https://bugs.webkit.org/show_bug.cgi?id=156061
1392         <rdar://problem/25463193>
1393
1394         Reviewed by Alex Christensen.
1395
1396         * Configurations/FeatureDefines.xcconfig:
1397
1398 2016-04-05  Antoine Quint  <graouts@apple.com>
1399
1400         [WebGL2] Allow enabling WebGL2 with a runtime flag
1401         https://bugs.webkit.org/show_bug.cgi?id=156166
1402         <rdar://problem/25526929>
1403
1404         Set the WebGL2 runtime flag based on preferences, disabled by default.
1405
1406         Reviewed by Dean Jackson.
1407
1408         * WebView/WebPreferenceKeysPrivate.h:
1409         * WebView/WebPreferences.mm:
1410         (+[WebPreferences initialize]):
1411         (-[WebPreferences webGL2Enabled]):
1412         (-[WebPreferences setWebGL2Enabled:]):
1413         * WebView/WebPreferencesPrivate.h:
1414         * WebView/WebView.mm:
1415         (-[WebView _preferencesChanged:]):
1416
1417 2016-04-01  Alex Christensen  <achristensen@webkit.org>
1418
1419         Compile DumpRenderTree with CMake on Mac
1420         https://bugs.webkit.org/show_bug.cgi?id=156088
1421
1422         Reviewed by Brent Fulgham.
1423
1424         * Misc/WebKit.h:
1425         Alphabetize headers.
1426
1427 2016-03-31  Jeremy Jones  <jeremyj@apple.com>
1428
1429         mediaShouldUsePersistentCache() is redundant. Use Page::usesEphemeralSession() instead.
1430         https://bugs.webkit.org/show_bug.cgi?id=155924
1431
1432         Reviewed by Simon Fraser.
1433
1434         Remove mediaShouldUsePersistentCache machinery as it is redundant.
1435
1436         * WebCoreSupport/WebChromeClient.h:
1437         * WebCoreSupport/WebChromeClient.mm:
1438         (WebChromeClient::mediaShouldUsePersistentCache): Deleted.
1439
1440 2016-03-30  Ada Chan  <adachan@apple.com>
1441
1442         Add the new "toggle enhanced fullscreen" context menu item to the video context menu on supporting platforms.
1443         https://bugs.webkit.org/show_bug.cgi?id=156031
1444
1445         Reviewed by Eric Carlson.
1446
1447         * WebView/WebHTMLView.mm:
1448         (toAction):
1449         (toTag):
1450         * WebView/WebUIDelegatePrivate.h:
1451
1452 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
1453
1454         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
1455         https://bugs.webkit.org/show_bug.cgi?id=155412
1456
1457         Reviewed by Darin Adler.
1458
1459         * Misc/WebCache.mm:
1460         (+[WebCache addImageToCache:forURL:forFrame:]):
1461         WebCore::MemoryCache() is taking an rvalue NativeImagePtr. We need to create
1462         NativeImagePtr from the image raw pointer when calling this function.
1463
1464 2016-03-24  Tim Horton  <timothy_horton@apple.com>
1465
1466         Fix some new PDFKit-related warnings
1467         https://bugs.webkit.org/show_bug.cgi?id=155847
1468         <rdar://problem/25340312>
1469
1470         Reviewed by Anders Carlsson.
1471
1472         * WebView/WebPDFView.mm:
1473         (-[WebPDFView setViewState:]):
1474         * WebView/WebPreferences.mm:
1475         (-[WebPreferences PDFDisplayMode]):
1476         PDFDisplayMode is now a real enum.
1477
1478 2016-03-23  Anders Carlsson  <andersca@apple.com>
1479
1480         Crash when using KVO from within -[WebView initWithCoder:]
1481         https://bugs.webkit.org/show_bug.cgi?id=155816
1482         rdar://problem/17073265
1483
1484         Reviewed by Dan Bernstein.
1485
1486         Get rid of the observationInfo getter and setter. It's not clear why they were added (in 2003),
1487         and the methods on NSObject are good enough for us.
1488
1489         * WebView/WebView.mm:
1490         (-[WebView setObservationInfo:]): Deleted.
1491         (-[WebView observationInfo]): Deleted.
1492         * WebView/WebViewData.h:
1493
1494 2016-03-22  Beth Dakin  <bdakin@apple.com>
1495
1496         Advanced spell checking should be guarded behind 
1497         HAVE(ADVANCED_SPELL_CHECKING)
1498         https://bugs.webkit.org/show_bug.cgi?id=155738
1499
1500         Reviewed by Geoff Garen.
1501
1502         * WebCoreSupport/WebEditorClient.mm:
1503         (insertionPointFromCurrentSelection):
1504         (WebEditorClient::checkTextOfParagraph):
1505         (WebEditorClient::getGuessesForWord):
1506         (WebEditorClient::requestCandidatesForSelection):
1507         (WebEditorClient::handleRequestedCandidates):
1508         (WebEditorClient::requestCheckingOfString):
1509         * WebKitPrefix.h:
1510         * WebView/WebHTMLView.mm:
1511         (-[WebHTMLView insertText:]):
1512
1513 2016-03-20  Dan Bernstein  <mitz@apple.com>
1514
1515         [Mac] Determine TARGET_MAC_OS_X_VERSION_MAJOR from MACOSX_DEPLOYMENT_TARGET rather than from MAC_OS_X_VERSION_MAJOR
1516         https://bugs.webkit.org/show_bug.cgi?id=155707
1517         <rdar://problem/24980691>
1518
1519         Reviewed by Darin Adler.
1520
1521         * Configurations/Base.xcconfig: Set TARGET_MAC_OS_X_VERSION_MAJOR based on the last
1522           component of MACOSX_DEPLOYMENT_TARGET.
1523         * Configurations/DebugRelease.xcconfig: For engineering builds, preserve the behavior of
1524           TARGET_MAC_OS_X_VERSION_MAJOR being the host’s OS version.
1525
1526 2016-03-20  Darin Adler  <darin@apple.com>
1527
1528         Disable Caches in Safari's Develop menu does not disable caches.
1529         https://bugs.webkit.org/show_bug.cgi?id=64483
1530
1531         Reviewed by Antti Koivisto.
1532
1533         Removed unneeded WebPreferences property; we don't need this for Legacy WebKit.
1534
1535         * WebView/WebPreferenceKeysPrivate.h: Removed
1536         WebKitResourceCachingDisabledPreferenceKey.
1537         * WebView/WebPreferences.mm:
1538         (-[WebPreferences isResourceCachingDisabled]): Deleted.
1539         (-[WebPreferences setResourceCachingDisabled:]): Deleted.
1540         * WebView/WebPreferencesPrivate.h: Removed resourceCachingDisabled property.
1541         * WebView/WebView.mm:
1542         (-[WebView _preferencesChanged:]): Removed code to update resourceCachingDisabled.
1543
1544 2016-03-20  Dan Bernstein  <mitz@apple.com>
1545
1546         Update build settings
1547
1548         Rubber-stamped by Andy Estes.
1549
1550         * Configurations/DebugRelease.xcconfig:
1551         * Configurations/FeatureDefines.xcconfig:
1552         * Configurations/Version.xcconfig:
1553
1554 2016-03-18  Darin Adler  <darin@apple.com>
1555
1556         Disable Caches in Safari's Develop menu does not disable caches.
1557         https://bugs.webkit.org/show_bug.cgi?id=64483
1558
1559         Reviewed by Antti Koivisto.
1560
1561         * WebView/WebPreferenceKeysPrivate.h: Added ResourceCachingDisabled.
1562         * WebView/WebPreferences.mm:
1563         (-[WebPreferences isResourceCachingDisabled]): Added.
1564         (-[WebPreferences setResourceCachingDisabled:]): Added.
1565         * WebView/WebPreferencesPrivate.h: Added resourceCachingDisabled.
1566         * WebView/WebView.mm:
1567         (-[WebView _preferencesChanged:]): Push resourceCachingDisabled into WebCore.
1568
1569 2016-03-17  Csaba Osztrogonác  <ossy@webkit.org>
1570
1571         [cmake][Mac] Unreviewed speculative buildfix after r198088. Just for fun.
1572
1573         * WebView/WebView.mm:
1574         (-[WebView _preferencesChanged:]):
1575
1576 2016-03-17  Andy Estes  <aestes@apple.com>
1577
1578         [Mac] Enable Content-Disposition: attachment sandbox
1579         https://bugs.webkit.org/show_bug.cgi?id=155578
1580         <rdar://problem/21886326>
1581
1582         Reviewed by Dan Bernstein.
1583
1584         Covered by the existing set of attachment sandbox tests, which have always been run on Mac.
1585
1586         * WebView/WebView.mm:
1587         (-[WebView _commonInitializationWithFrameName:groupName:]):
1588
1589 2016-03-16  Beth Dakin  <bdakin@apple.com>
1590
1591         Provide NSSpellChecker spellChecking methods with the current insertion point
1592         https://bugs.webkit.org/show_bug.cgi?id=155532
1593         -and corresponding-
1594         rdar://problem/24066952
1595
1596         Reviewed by Simon Fraser.
1597
1598         Extract the insertion point from the VisibleSelection that WebCore has 
1599         passed. 
1600         * WebCoreSupport/WebEditorClient.h:
1601         (WebEditorClient::getGuessesForWord):
1602         * WebCoreSupport/WebEditorClient.mm:
1603         (WebEditorClient::checkTextOfParagraph):
1604         (insertionPointFromCurrentSelection):
1605         (WebEditorClient::getGuessesForWord):
1606         (WebEditorClient::requestCheckingOfString):
1607
1608 2016-03-16  Chris Dumez  <cdumez@apple.com>
1609
1610         Unreviewed, rolling out r198235, r198240, r198241, and
1611         r198252.
1612
1613         Causing crashes on ARM
1614
1615         Reverted changesets:
1616
1617         "Remove compile time define for SEPARATED_HEAP"
1618         https://bugs.webkit.org/show_bug.cgi?id=155508
1619         http://trac.webkit.org/changeset/198235
1620
1621         "Gardening: build fix after r198235."
1622         http://trac.webkit.org/changeset/198240
1623
1624         "Build fix."
1625         http://trac.webkit.org/changeset/198241
1626
1627         "Rename performJITMemcpy to something more inline with our
1628         normal webkit function names"
1629         https://bugs.webkit.org/show_bug.cgi?id=155525
1630         http://trac.webkit.org/changeset/198252
1631
1632 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
1633
1634         URL Parsing should signal failure for illegal IDN
1635         https://bugs.webkit.org/show_bug.cgi?id=154945
1636         <rdar://problem/8014795>
1637
1638         Reviewed by Brent Fulgham.
1639
1640         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
1641         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
1642
1643         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
1644         deprecated as they ignore URL parsing failure.
1645
1646         * History/WebHistoryItem.mm:
1647         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1648         * Misc/WebKitErrors.m:
1649         (+[NSError _webKitErrorWithCode:failingURL:]):
1650         * Misc/WebNSFileManagerExtras.mm:
1651         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
1652         * Misc/WebNSPasteboardExtras.mm:
1653         (-[NSPasteboard _web_bestURL]):
1654         * Misc/WebNSURLExtras.h:
1655         * Misc/WebNSURLExtras.mm:
1656         (+[NSURL _web_URLWithUserTypedString:]):
1657         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
1658         (+[NSURL _webkit_URLWithUserTypedString:]):
1659         (-[NSString _web_decodeHostName]):
1660         (-[NSString _web_encodeHostName]):
1661         (-[NSString _webkit_decodeHostName]):
1662         (-[NSString _webkit_encodeHostName]):
1663         * Panels/WebAuthenticationPanel.m:
1664         (-[WebAuthenticationPanel setUpForChallenge:]):
1665         * WebCoreSupport/WebEditorClient.mm:
1666         (WebEditorClient::canonicalizeURLString):
1667
1668 2016-03-15  Jer Noble  <jer.noble@apple.com>
1669
1670         [ios-sim debug] API test WebKit1.AudioSessionCategoryIOS timing out
1671         https://bugs.webkit.org/show_bug.cgi?id=155275
1672
1673         Reviewed by Alexey Proskuryakov.
1674
1675         The videoPlaybackRequiresUserGesture and audioPlaybackRequiresUserGesture should both defalut to
1676         NO, so that legacy clients of -[UIWebView setMediaPlaybackRequiresUserAction:] continue to work
1677         as expected.
1678
1679         * WebView/WebPreferences.mm:
1680         (+[WebPreferences initialize]):
1681
1682 2016-03-15  Oliver Hunt  <oliver@apple.com>
1683
1684         Remove compile time define for SEPARATED_HEAP
1685         https://bugs.webkit.org/show_bug.cgi?id=155508
1686
1687         Reviewed by Mark Lam.
1688
1689         Remove the feature define.
1690
1691         * Configurations/FeatureDefines.xcconfig:
1692
1693 2016-03-15  Chris Dumez  <cdumez@apple.com>
1694
1695         Unreviewed, rolling out r198203.
1696
1697         Favorites view is no longer loading on iOS
1698
1699         Reverted changeset:
1700
1701         "URL Parsing should signal failure for illegal IDN"
1702         https://bugs.webkit.org/show_bug.cgi?id=154945
1703         http://trac.webkit.org/changeset/198203
1704
1705 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
1706
1707         URL Parsing should signal failure for illegal IDN
1708         https://bugs.webkit.org/show_bug.cgi?id=154945
1709         <rdar://problem/8014795>
1710
1711         Reviewed by Brent Fulgham.
1712
1713         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
1714         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
1715
1716         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
1717         deprecated as they ignore URL parsing failure.
1718
1719         * History/WebHistoryItem.mm:
1720         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1721         * Misc/WebKitErrors.m:
1722         (+[NSError _webKitErrorWithCode:failingURL:]):
1723         * Misc/WebNSFileManagerExtras.mm:
1724         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
1725         * Misc/WebNSPasteboardExtras.mm:
1726         (-[NSPasteboard _web_bestURL]):
1727         * Misc/WebNSURLExtras.h:
1728         * Misc/WebNSURLExtras.mm:
1729         (+[NSURL _web_URLWithUserTypedString:]):
1730         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
1731         (+[NSURL _webkit_URLWithUserTypedString:]):
1732         (-[NSString _web_decodeHostName]):
1733         (-[NSString _web_encodeHostName]):
1734         (-[NSString _webkit_decodeHostName]):
1735         (-[NSString _webkit_encodeHostName]):
1736         * Panels/WebAuthenticationPanel.m:
1737         (-[WebAuthenticationPanel setUpForChallenge:]):
1738         * WebCoreSupport/WebEditorClient.mm:
1739         (WebEditorClient::canonicalizeURLString):
1740
1741 2016-03-14  Chris Dumez  <cdumez@apple.com>
1742
1743         Unreviewed, rolling out r197981.
1744
1745         Caused a massive PLT regression on Mac.
1746
1747         Reverted changeset:
1748
1749         "Font antialiasing (smoothing) changes when elements are
1750         rendered into compositing layers"
1751         https://bugs.webkit.org/show_bug.cgi?id=23364
1752         http://trac.webkit.org/changeset/197981
1753
1754 2016-03-14  Sam Weinig  <sam@webkit.org>
1755
1756         Add a baseURL parameter to _WKUserStyleSheet
1757         https://bugs.webkit.org/show_bug.cgi?id=155219
1758
1759         Reviewed by Tim Horton.
1760
1761         * WebView/WebView.mm:
1762         (-[WebView _commonInitializationWithFrameName:groupName:]):
1763         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1764         (-[WebView setGroupName:]):
1765         Update to account for the name change from UserContentController -> UserContentProvider.
1766
1767 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
1768
1769         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
1770         https://bugs.webkit.org/show_bug.cgi?id=150497
1771
1772         Reviewed by Darin Adler.
1773
1774         * DOM/WebDOMOperations.mm:
1775         (-[DOMNode webArchive]):
1776         (-[DOMNode webArchiveByFilteringSubframes:]):
1777         * WebCoreSupport/WebPlatformStrategies.h:
1778         * WebCoreSupport/WebPlatformStrategies.mm:
1779         (WebPlatformStrategies::bufferForType):
1780         (WebPlatformStrategies::readBufferFromPasteboard):
1781         * WebView/WebArchive.mm:
1782         (-[WebArchive initWithData:]):
1783         * WebView/WebDataSource.mm:
1784         (-[WebDataSource webArchive]):
1785         (-[WebDataSource addSubresource:]):
1786         * WebView/WebResource.mm:
1787         (-[WebResource encodeWithCoder:]):
1788         (-[WebResource data]):
1789         (-[WebResource _stringValue]):
1790         (-[WebResource _initWithCoreResource:]): Deleted.
1791
1792 2016-03-14  Oliver Hunt  <oliver@apple.com>
1793
1794         Temporarily disable the separated heap.
1795         https://bugs.webkit.org/show_bug.cgi?id=155472
1796
1797         Reviewed by Geoffrey Garen.
1798
1799         Temporarily disable this.
1800
1801         * Configurations/FeatureDefines.xcconfig:
1802
1803 2016-03-14  Anders Carlsson  <andersca@apple.com>
1804
1805         Fix build.
1806
1807         Ignore nullability warnings, create an empty PDF selection.
1808
1809         * WebView/WebPDFView.mm:
1810         (-[WebPDFView centerSelectionInVisibleArea:]):
1811         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
1812         (+[WebPDFView _PDFSelectionClass]):
1813         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
1814
1815 2016-03-13  Joseph Pecoraro  <pecoraro@apple.com>
1816
1817         Remove ENABLE(ES6_TEMPLATE_LITERAL_SYNTAX) guards
1818         https://bugs.webkit.org/show_bug.cgi?id=155417
1819
1820         Reviewed by Yusuke Suzuki.
1821
1822         * Configurations/FeatureDefines.xcconfig:
1823
1824 2016-03-13  Dean Jackson  <dino@apple.com>
1825
1826         <attachment> should be a runtime-enabled feature
1827         https://bugs.webkit.org/show_bug.cgi?id=155413
1828         <rdar://problem/25120753>
1829
1830         Reviewed by Sam Weinig and Anders Carlsson.
1831
1832         Add an internal setting on WebPreferences
1833         to enable the <attachment> element support.
1834
1835         * WebView/WebPreferenceKeysPrivate.h:
1836         * WebView/WebPreferences.mm:
1837         (+[WebPreferences initialize]):
1838         (-[WebPreferences attachmentElementEnabled]):
1839         (-[WebPreferences setAttachmentElementEnabled:]):
1840         * WebView/WebPreferencesPrivate.h:
1841         * WebView/WebView.mm:
1842         (-[WebView _preferencesChanged:]):
1843
1844 2016-03-12  Sam Weinig  <sam@webkit.org>
1845
1846         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
1847         <rdar://problem/25129946>
1848         https://bugs.webkit.org/show_bug.cgi?id=155401
1849
1850         Reviewed by Alex Christensen.
1851
1852         * WebCoreSupport/WebFrameNetworkingContext.mm:
1853         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1854         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
1855
1856 2016-03-12  Myles C. Maxfield  <mmaxfield@apple.com>
1857
1858         Delete dead SVG Font code
1859         https://bugs.webkit.org/show_bug.cgi?id=154718
1860
1861         Reviewed by Antti Koivisto.
1862
1863         * Configurations/FeatureDefines.xcconfig:
1864
1865 2016-03-11  Yusuke Suzuki  <utatane.tea@gmail.com>
1866
1867         [ES6] Implement Reflect.set without receiver support
1868         https://bugs.webkit.org/show_bug.cgi?id=155024
1869
1870         Reviewed by Geoffrey Garen.
1871
1872         As the same to NPJSObject, we just propagate the returned value of NetscapePluginInstanceProxy::setProperty.
1873
1874         * Plugins/Hosted/ProxyInstance.h:
1875         * Plugins/Hosted/ProxyInstance.mm:
1876         (WebKit::ProxyField::setValueToInstance):
1877         (WebKit::ProxyInstance::setFieldValue):
1878
1879 2016-03-10  Jeremy Jones  <jeremyj@apple.com>
1880
1881         Set AVURLAssetUsesNoPersistentCacheKey on AVAsset to match caching policy.
1882         https://bugs.webkit.org/show_bug.cgi?id=155117
1883         rdar://problem/6802240
1884
1885         Reviewed by Simon Fraser.
1886
1887         Implement mediaShouldUsePersistentCache to disable media caching when NSURLCache is disabled.
1888
1889         * WebCoreSupport/WebChromeClient.h:
1890         * WebCoreSupport/WebChromeClient.mm:
1891         (WebChromeClient::mediaShouldUsePersistentCache): Added.
1892
1893 2016-03-10  Simon Fraser  <simon.fraser@apple.com>
1894
1895         Font antialiasing (smoothing) changes when elements are rendered into compositing layers
1896         https://bugs.webkit.org/show_bug.cgi?id=23364
1897
1898         Reviewed by Tim Horton.
1899
1900         Allow internal clients to turn off smoothed layer text, so that WebKitTestRunner
1901         can disable it.
1902
1903         * WebView/WebView.mm:
1904         (+[WebView _setSmoothedLayerTextEnabled:]):
1905         (+[WebView _smoothedLayerTextEnabled]):
1906         * WebView/WebViewPrivate.h:
1907
1908 2016-03-10  Jer Noble  <jer.noble@apple.com>
1909
1910         Add WebCore, WebKit, & WebKit2 preference/setting to enable Main Content heuristic.
1911         https://bugs.webkit.org/show_bug.cgi?id=155326
1912         <rdar://problem/25095408>
1913
1914         Reviewed by Beth Dakin.
1915
1916         Add SPI to get and set the new preference.
1917
1918         * WebView/WebPreferenceKeysPrivate.h:
1919         * WebView/WebPreferences.mm:
1920         (-[WebPreferences overrideUserGestureRequirementForMainContent]):
1921         (-[WebPreferences setOverrideUserGestureRequirementForMainContent:]):
1922         * WebView/WebPreferencesPrivate.h:
1923         * WebView/WebView.mm:
1924         (-[WebView _preferencesChanged:]):
1925
1926 2016-03-07  Jer Noble  <jer.noble@apple.com>
1927
1928         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
1929         https://bugs.webkit.org/show_bug.cgi?id=155141
1930
1931         Reviewed by Beth Dakin.
1932
1933         Deprecate WebPreferences.mediaPlaybackRequiresUserGesture property in favor of .videoPlaybackRequiresUserGesture.
1934
1935         * WebView/WebPreferenceKeysPrivate.h:
1936         * WebView/WebPreferences.mm:
1937         (+[WebPreferences initialize]):
1938         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
1939         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
1940         (-[WebPreferences videoPlaybackRequiresUserGesture]):
1941         (-[WebPreferences setVideoPlaybackRequiresUserGesture:]):
1942         * WebView/WebPreferencesPrivate.h:
1943         * WebView/WebView.mm:
1944         (-[WebView _preferencesChanged:]):
1945
1946 2016-03-10  Alexey Proskuryakov  <ap@apple.com>
1947
1948         Build fix for deprecated constant names.
1949
1950         * Carbon/CarbonWindowAdapter.mm:
1951         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1952         (-[CarbonWindowAdapter sendSuperEvent:]):
1953
1954 2016-03-10  Commit Queue  <commit-queue@webkit.org>
1955
1956         Unreviewed, rolling out r197943.
1957         https://bugs.webkit.org/show_bug.cgi?id=155317
1958
1959         This change broke Windows, WinCairo, GTK and EFL builds
1960         (Requested by ryanhaddad on #webkit).
1961
1962         Reverted changeset:
1963
1964         "Add a baseURL parameter to _WKUserStyleSheet"
1965         https://bugs.webkit.org/show_bug.cgi?id=155219
1966         http://trac.webkit.org/changeset/197943
1967
1968 2016-03-08  Sam Weinig  <sam@webkit.org>
1969
1970         Add a baseURL parameter to _WKUserStyleSheet
1971         https://bugs.webkit.org/show_bug.cgi?id=155219
1972
1973         Reviewed by Tim Horton.
1974
1975         * WebView/WebView.mm:
1976         (-[WebView _commonInitializationWithFrameName:groupName:]):
1977         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1978         (-[WebView setGroupName:]):
1979         Update to account for the name change from UserContentController -> UserContentProvider.
1980
1981 2016-02-22  Jer Noble  <jer.noble@apple.com>
1982
1983         Enable AVFoundationNSURLSessionEnabled by default
1984         https://bugs.webkit.org/show_bug.cgi?id=154469
1985
1986         Reviewed by Sam Weinig.
1987
1988         * WebView/WebPreferences.mm:
1989         (+[WebPreferences initialize]):
1990
1991 2016-03-09  Ryosuke Niwa  <rniwa@webkit.org>
1992
1993         Add runtime flags for shadow DOM and custom elements
1994         https://bugs.webkit.org/show_bug.cgi?id=155213
1995
1996         Reviewed by Dean Jackson.
1997
1998         Set the runtime flag based on preferences. Enable shadow DOM and disable custom elements by default.
1999
2000         * WebView/WebPreferenceKeysPrivate.h:
2001         * WebView/WebPreferences.mm:
2002         (+[WebPreferences initialize]):
2003         (-[WebPreferences shadowDOMEnabled]):
2004         (-[WebPreferences setShadowDOMEnabled:]):
2005         (-[WebPreferences customElementsEnabled]):
2006         (-[WebPreferences setCustomElementsEnabled:]):
2007         * WebView/WebPreferencesPrivate.h:
2008         * WebView/WebView.mm:
2009         (-[WebView _preferencesChanged:]):
2010
2011 2016-03-09  David Kilzer  <ddkilzer@apple.com>
2012
2013         REGRESSION (r197149): Missing availability checks when soft-linking DataDetectors.framework
2014         <http://webkit.org/b/155258>
2015
2016         Reviewed by Andy Estes.
2017
2018         * WebView/WebImmediateActionController.mm:
2019         (-[WebImmediateActionController _clearImmediateActionState]):
2020         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
2021         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2022         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2023         - Add check that returns early if DataDetectors.framework is not
2024           available.
2025
2026 2016-03-08  Oliver Hunt  <oliver@apple.com>
2027
2028         Start moving to separated writable and executable mappings in the JIT
2029         https://bugs.webkit.org/show_bug.cgi?id=155178
2030
2031         Reviewed by Fil Pizlo.
2032
2033         Update feature defines.
2034
2035         * Configurations/FeatureDefines.xcconfig:
2036
2037 2016-03-08  Commit Queue  <commit-queue@webkit.org>
2038
2039         Unreviewed, rolling out r197793 and r197799.
2040         https://bugs.webkit.org/show_bug.cgi?id=155195
2041
2042         something weird happened while landing this and everything
2043         broke (Requested by olliej on #webkit).
2044
2045         Reverted changesets:
2046
2047         "Start moving to separated writable and executable mappings in
2048         the JIT"
2049         https://bugs.webkit.org/show_bug.cgi?id=155178
2050         http://trac.webkit.org/changeset/197793
2051
2052         "arm64 build fix after r197793."
2053         http://trac.webkit.org/changeset/197799
2054
2055 2016-03-08  Oliver Hunt  <oliver@apple.com>
2056
2057         Start moving to separated writable and executable mappings in the JIT
2058         https://bugs.webkit.org/show_bug.cgi?id=155178
2059
2060         Reviewed by Filip Pizlo.
2061
2062         Update feature defines.
2063
2064         * Configurations/FeatureDefines.xcconfig:
2065
2066 2016-03-08  Anders Carlsson  <andersca@apple.com>
2067
2068         Ignore deprecation warnings.
2069
2070         * Misc/WebNSEventExtras.m:
2071         (-[NSEvent _web_isKeyEvent:]):
2072         (-[NSEvent _web_isOptionTabKeyEvent]):
2073         * Misc/WebNSViewExtras.m:
2074         (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]):
2075         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2076         (WebKit::NetscapePluginHostProxy::beginModal):
2077         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2078         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
2079         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2080         (-[WebHostedNetscapePluginView drawRect:]):
2081         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
2082         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
2083         * WebCoreSupport/PopupMenuMac.mm:
2084         (PopupMenuMac::populate):
2085         (PopupMenuMac::show):
2086         * WebCoreSupport/WebContextMenuClient.mm:
2087         (WebContextMenuClient::showContextMenu):
2088         * WebCoreSupport/WebFrameLoaderClient.mm:
2089         (WebFrameLoaderClient::actionDictionary):
2090         * WebCoreSupport/WebInspectorClient.mm:
2091         (WebInspectorFrontendClient::canAttach):
2092         (-[WebInspectorWindowController window]):
2093         * WebInspector/WebNodeHighlight.mm:
2094         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2095         * WebView/WebFrameView.mm:
2096         (-[WebFrameView keyDown:keyDown:]):
2097         * WebView/WebFullScreenController.mm:
2098         (-[WebFullScreenController init]):
2099         (createBackgroundFullscreenWindow):
2100         * WebView/WebHTMLView.mm:
2101         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2102         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
2103         (isQuickLookEvent):
2104         (-[WebHTMLView hitTest:]):
2105         (-[WebHTMLView _sendToolTipMouseExited]):
2106         (-[WebHTMLView _sendToolTipMouseEntered]):
2107         (mouseEventIsPartOfClickOrDrag):
2108         (-[WebHTMLView _updateMouseoverWithEvent:]):
2109         (-[WebHTMLView acceptsFirstResponder]):
2110         (-[WebHTMLView viewDidMoveToWindow]):
2111         (currentKeyboardEvent):
2112         (-[WebHTMLView _handleStyleKeyEquivalent:]):
2113         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
2114         * WebView/WebPDFView.mm:
2115         (-[WebPDFView hitTest:]):
2116         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2117         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
2118         * WebView/WebTextCompletionController.mm:
2119         (-[WebTextCompletionController _buildUI]):
2120         (-[WebTextCompletionController _placePopupWindow:]):
2121         * WebView/WebView.mm:
2122         (-[WebView applicationFlags:]):
2123
2124 2016-03-07  Brent Fulgham  <bfulgham@apple.com>
2125
2126         Reduce startup and shutdown cost of resource load statistics
2127         https://bugs.webkit.org/show_bug.cgi?id=155120
2128         <rdar://problem/25010167>
2129
2130         Reviewed by Andy Estes.
2131
2132         Remove the Resource Load Statistics stuff from WK1, now that it is up and
2133         running in WK2.
2134
2135         * WebView/WebView.mm:
2136         (-[WebView _preferencesChanged:]): Remove call to read resource load
2137         statistics from disk.
2138         (+[WebView _applicationWillTerminate]): Remove call to write resource load
2139         statistics to disk.
2140
2141 2016-03-06  Andreas Kling  <akling@apple.com>
2142
2143         Reduce page cache capacity from 3 to 2.
2144         <https://webkit.org/b/155087>
2145
2146         Reviewed by Antti Koivisto.
2147
2148         Trim WebKit1 page cache capacities consistently with WebKit2.
2149
2150         * WebView/WebView.mm:
2151         (+[WebView _setCacheModel:]):
2152
2153 2016-03-05  Chris Dumez  <cdumez@apple.com>
2154
2155         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
2156         https://bugs.webkit.org/show_bug.cgi?id=155035
2157
2158         Reviewed by Darin Adler.
2159
2160         Update runtime application checks.
2161
2162         * Plugins/WebPluginController.mm:
2163         (initializeAudioSession):
2164         * WebCoreSupport/WebFrameLoaderClient.mm:
2165         * WebView/WebFrame.mm:
2166         (needsMicrosoftMessengerDOMDocumentWorkaround):
2167         * WebView/WebImmediateActionController.mm:
2168         (-[WebImmediateActionController _updateImmediateActionItem]):
2169         * WebView/WebView.mm:
2170         (WebKitInitializeApplicationCachePathIfNecessary):
2171         (shouldEnableLoadDeferring):
2172         (shouldRestrictWindowFocus):
2173         (needsOutlookQuirksScript):
2174         (shouldTransformsAffectOverflow):
2175         (shouldDispatchJavaScriptWindowOnErrorEvents):
2176         (shouldUseLegacyBackgroundSizeShorthandBehavior):
2177         (-[WebView _commonInitializationWithFrameName:groupName:]):
2178         (+[WebView enableWebThread]):
2179         (+[WebView registerForMemoryNotifications]):
2180         (-[WebView _needsKeyboardEventDisambiguationQuirks]):
2181         (needsSelfRetainWhileLoadingQuirk):
2182         (-[WebView _needsPreHTML5ParserQuirks]):
2183
2184 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
2185
2186         [ES6] Support Reflect.construct
2187         https://bugs.webkit.org/show_bug.cgi?id=147330
2188
2189         Reviewed by Saam Barati.
2190
2191         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2192         (WebKit::NetscapePluginInstanceProxy::invoke):
2193         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2194         (WebKit::NetscapePluginInstanceProxy::construct):
2195
2196 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
2197
2198         Unreviewed test fix for null global WebResourceLoadStatisticsStore.
2199
2200         * WebView/WebView.mm:
2201         (-[WebView _preferencesChanged:]):
2202         (+[WebView _applicationWillTerminate]):
2203
2204 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
2205
2206         [WK2] Gather resource load statistics
2207         https://bugs.webkit.org/show_bug.cgi?id=154278
2208         <rdar://problem/24702892>
2209
2210         Reviewed by Andy Estes.
2211
2212         Switch to maintaining a global WebCore::ResourceLoadStatisticsStore in the WebKit process,
2213         and hand it off to the WebCore layer to use during data gathering. The ResourceLoadStatisticsStore
2214         is now responsible for reading/writing to disk, and tracking the collection of load data.
2215
2216         * WebView/WebView.mm:
2217         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Initialize singleton
2218         ResourceLoadStatisticsStore object for tracking state.
2219         (-[WebView _preferencesChanged:]): Revise for new singleton.
2220         (+[WebView _applicationWillTerminate]): Ditto.
2221
2222 2016-02-29  Ada Chan  <adachan@apple.com>
2223
2224         Adopt the new version of AVOutputDeviceMenuController's showMenuForRect method.
2225         https://bugs.webkit.org/show_bug.cgi?id=154823
2226
2227         Reviewed by Tim Horton.
2228
2229         * WebCoreSupport/WebChromeClient.h:
2230         * WebCoreSupport/WebChromeClient.mm:
2231         (WebChromeClient::showPlaybackTargetPicker):
2232         * WebView/WebMediaPlaybackTargetPicker.h:
2233         * WebView/WebMediaPlaybackTargetPicker.mm:
2234         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
2235         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected):
2236         * WebView/WebView.mm:
2237         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
2238
2239 2016-03-01  Tim Horton  <timothy_horton@apple.com>
2240
2241         Expose MediaElement and VideoElement to the Objective-C DOM bindings
2242         https://bugs.webkit.org/show_bug.cgi?id=154830
2243
2244         Reviewed by Sam Weinig.
2245
2246         * MigrateHeaders.make:
2247
2248 2016-02-29  Simon Fraser  <simon.fraser@apple.com>
2249
2250         Remove the experimental feature of antialiased font dilation
2251         https://bugs.webkit.org/show_bug.cgi?id=154843
2252
2253         Reviewed by Zalan Bujtas.
2254
2255         Remove the "antialiased font dilation" code path, and related prefs.
2256
2257         * WebView/WebPreferenceKeysPrivate.h:
2258         * WebView/WebPreferences.mm:
2259         (+[WebPreferences initialize]): Deleted.
2260         (-[WebPreferences setAntialiasedFontDilationEnabled:]): Deleted.
2261         (-[WebPreferences antialiasedFontDilationEnabled]): Deleted.
2262         * WebView/WebPreferencesPrivate.h:
2263         * WebView/WebView.mm:
2264         (-[WebView _preferencesChanged:]): Deleted.
2265
2266 2016-02-26  Dan Bernstein  <mitz@apple.com>
2267
2268         Build fix for when WK_OVERRIDE_FRAMEWORKS_DIR contains spaces.
2269
2270         * Configurations/WebKitLegacy.xcconfig: Added quotes.
2271
2272 2016-02-25  Ada Chan  <adachan@apple.com>
2273
2274         Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
2275         https://bugs.webkit.org/show_bug.cgi?id=154702
2276
2277         Reviewed by Dan Bernstein.
2278
2279         * Configurations/FeatureDefines.xcconfig:
2280
2281 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
2282
2283         Restrict information passed with navigation action which is triggered by untrusted event
2284         https://bugs.webkit.org/show_bug.cgi?id=154571
2285         <rdar://problem/15967937>
2286
2287         Reviewed by Andy Estes.
2288
2289         * WebCoreSupport/WebFrameLoaderClient.mm:
2290         (WebFrameLoaderClient::actionDictionary):
2291
2292 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
2293
2294         [MediaStream] MediaDeviceInfo deviceId and groupId must be unique to the page's origin
2295         https://bugs.webkit.org/show_bug.cgi?id=153163
2296         <rdar://problem/24334526>
2297
2298         Reviewed by Tim Horton.
2299
2300         * WebCoreSupport/WebUserMediaClient.mm:
2301         (WebUserMediaClient::requestUserMediaAccess):
2302         (WebUserMediaClient::checkUserMediaPermission):
2303         (-[WebUserMediaPolicyCheckerListener allow]):
2304         (-[WebUserMediaPolicyCheckerListener deny]):
2305
2306 2016-02-24  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
2307
2308         [web-animations] Add AnimationTimeline, DocumentTimeline and add extensions to Document interface
2309         https://bugs.webkit.org/show_bug.cgi?id=151688
2310
2311         Reviewed by Dean Jackson.
2312
2313         Enables the WEB_ANIMATIONS compiler switch.
2314
2315         * Configurations/FeatureDefines.xcconfig:
2316
2317 2016-02-23  Dan Bernstein  <mitz@apple.com>
2318
2319         [Xcode] Linker errors display mangled names, but no longer should
2320         https://bugs.webkit.org/show_bug.cgi?id=154632
2321
2322         Reviewed by Sam Weinig.
2323
2324         * Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
2325
2326 2016-02-23  Gavin Barraclough  <barraclough@apple.com>
2327
2328         Remove HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define
2329         https://bugs.webkit.org/show_bug.cgi?id=112323
2330
2331         Reviewed by Chris Dumez.
2332
2333         This feature is controlled by a runtime switch, and defaults off.
2334
2335         * Configurations/FeatureDefines.xcconfig:
2336         * WebView/WebView.mm:
2337         (-[WebView _preferencesChanged:]):
2338
2339 2016-02-22  Commit Queue  <commit-queue@webkit.org>
2340
2341         Unreviewed, rolling out r196935.
2342         https://bugs.webkit.org/show_bug.cgi?id=154557
2343
2344         This change causes timeouts and crashes in LayoutTests
2345         (Requested by ryanhaddad on #webkit).
2346
2347         Reverted changeset:
2348
2349         "Enable AVFoundationNSURLSessionEnabled by default"
2350         https://bugs.webkit.org/show_bug.cgi?id=154469
2351         http://trac.webkit.org/changeset/196935
2352
2353 2016-02-22  Keith Rollin  <krollin@apple.com>
2354
2355         Add mechanism to disable memory pressure handling
2356         https://bugs.webkit.org/show_bug.cgi?id=154254
2357         <rdar://problem/24662616>
2358
2359         Reviewed by Chris Dumez.
2360
2361         Add a mechanism to disable WebKit's response to memory pressure
2362         triggers. This was asked for by another group for testing purposes.
2363
2364         In order to disable WebKit's memory pressure handling, execute the
2365         following from the command line:
2366
2367             defaults write com.apple.Safari WebKitSuppressMemoryPressureHandler -bool true
2368
2369         To revert to standard behavior, delete the key or set it to False.
2370
2371         This flag is used when a new sub-process is being spawned. The value
2372         is read and stored in an initialization parameter block, which is then
2373         sent to the new sub-process.
2374
2375         In actuality, only the UI, WebContent, and Network processes heed the
2376         flag. The Plugin process isn't instrumented to heed this flag for
2377         three reasons. First, the Plugin process installs its memory pressure
2378         handler in initializeProcess, not initializePluginProcess. This is
2379         contrary to when the other processes install their handlers, which is
2380         in initialize<PluginType>Process, not initializeProcess. So in order
2381         to accomodate the Plugin process, we'd need to modify
2382         ChildProcessInitializationParameters. Doing this is awkward at best,
2383         but also seems to be opposed to what's supposed to be done in
2384         initializeProcess and conveyed in
2385         ChildProcessInitializationParameters. And even if we did add a boolean
2386         to this structure and added support for conveying it through the XPC
2387         port, it would end up being a Plugin process-only boolean in a general
2388         parameter block, which seems asymmetric with the other processes.
2389         Second, there's no convenient Cocoa function called in the flow that
2390         spawns the Plugin process, meaning that there's no convenient place to
2391         call NSUserDefaults to get the flag's value. And third, the Plugin
2392         process doesn't elegantly respond to the memory pressure trigger
2393         anyway. It might terminate itself, but that's it. As for the Database
2394         process, it doesn't seem to support responding to memory pressure at
2395         all, so we don't send it a flag telling it to ignore it.
2396
2397         Internally, the memory pressure handler is suppressed by not calling
2398         MemoryPressureHandler::install() if the flag is set. In the case of
2399         the Network process, the flag is saved so that it can be checked later
2400         in other places that manually kick off the memory pressure handling
2401         procedure.
2402
2403         * WebView/WebView.mm:
2404         (-[WebView _commonInitializationWithFrameName:groupName:]):
2405         (WebInstallMemoryPressureHandler):
2406
2407 2016-02-22  Jer Noble  <jer.noble@apple.com>
2408
2409         Enable AVFoundationNSURLSessionEnabled by default
2410         https://bugs.webkit.org/show_bug.cgi?id=154469
2411
2412         Reviewed by Sam Weinig.
2413
2414         * WebView/WebPreferences.mm:
2415         (+[WebPreferences initialize]):
2416
2417 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
2418
2419         [Mac] Gather some rudimentary statistics during resource load 
2420         https://bugs.webkit.org/show_bug.cgi?id=153575
2421         <rdar://problem/24075254>
2422
2423         Reviewed by Brady Eidson.
2424
2425         * Misc/WebKitNSStringExtras.h:
2426         * Misc/WebKitNSStringExtras.mm:
2427         (+[NSString _webkit_localStorageDirectoryWithBundleIdentifier:]): Added.
2428         * WebView/WebPreferenceKeysPrivate.h:
2429         * WebView/WebPreferences.mm:
2430         (+[WebPreferences initialize]):
2431         (-[WebPreferences resourceLoadStatisticsEnabled]): Added.
2432         (-[WebPreferences setResourceLoadStatisticsEnabled:]): Added.
2433         * WebView/WebPreferencesPrivate.h:
2434         * WebView/WebView.mm:
2435         (WebKitInitializeApplicationCachePathIfNecessary):
2436         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Added.
2437         (-[WebView _commonInitializationWithFrameName:groupName:]): Add call to new
2438         initialization method.
2439         (-[WebView _preferencesChanged:]): Track changes in the user's desire to
2440         monitor resource load statistics.
2441         (+[WebView _applicationWillTerminate]): Write statistics to disk (if preferences
2442         say to do so.)
2443
2444 2016-02-13  Mark Lam  <mark.lam@apple.com>
2445
2446         Add thread violation checks to WebView public APIs.
2447         https://bugs.webkit.org/show_bug.cgi?id=154183
2448
2449         Reviewed by Timothy Hatcher.
2450
2451         Re-landing r196527 with a newly added WebCoreThreadViolationCheckRoundThree().
2452         Previously was using WebCoreThreadViolationCheckRoundTwo().
2453
2454         * Misc/WebKitVersionChecks.h:
2455         * WebView/WebFrameView.mm:
2456         (-[WebFrameView initWithFrame:]):
2457         * WebView/WebView.mm:
2458         (-[WebView setCustomTextEncodingName:]):
2459         (-[WebView stringByEvaluatingJavaScriptFromString:]):
2460         (-[WebView windowScriptObject]):
2461         (-[WebView setGroupName:]):
2462         (-[WebView setMainFrameURL:]):
2463         (-[WebView mainFrameTitle]):
2464         (-[WebView mainFrameIcon]):
2465         (-[WebView setDrawsBackground:]):
2466         (-[WebView setShouldUpdateWhileOffscreen:]):
2467
2468 2016-02-12  Commit Queue  <commit-queue@webkit.org>
2469
2470         Unreviewed, rolling out r196527.
2471         https://bugs.webkit.org/show_bug.cgi?id=154204
2472
2473         "Need to redo as WebCoreThreadViolationCheckRoundThree"
2474         (Requested by mlam on #webkit).
2475
2476         Reverted changeset:
2477
2478         "Add thread violation checks to WebView public APIs."
2479         https://bugs.webkit.org/show_bug.cgi?id=154183
2480         http://trac.webkit.org/changeset/196527
2481
2482 2016-02-12  Mark Lam  <mark.lam@apple.com>
2483
2484         Add thread violation checks to WebView public APIs.
2485         https://bugs.webkit.org/show_bug.cgi?id=154183
2486
2487         Reviewed by Geoffrey Garen.
2488
2489         This will help clients of the API detect the violations sooner rather than
2490         having to debug mysterious crashes / failures later.
2491
2492         To that end, I've added thread violation checks to the following functions
2493         because ...
2494
2495         * WebView/WebView.mm:
2496         (-[WebView setCustomTextEncodingName:]):
2497         - Uses the FrameLoader (which is for the main thread only).
2498
2499         (-[WebView stringByEvaluatingJavaScriptFromString:]):
2500         - Invokes JavaScript (which is for the main thread only).
2501
2502         (-[WebView windowScriptObject]):
2503         - Invokes ScriptController::windowScriptObject() which requires the JSLock.
2504
2505         (-[WebView setGroupName:]):
2506         - Manipulates the PageGroup and Page (which is for the main thread only).
2507
2508         (-[WebView setMainFrameURL:]):
2509         - Uses the FrameLoader (which is for the main thread only).
2510
2511         (-[WebView mainFrameTitle]):
2512         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
2513           is RefPtr, and therefore not safe for other threads to access.
2514
2515         (-[WebView mainFrameIcon]):
2516         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
2517           is RefPtr, and therefore not safe for other threads to access.
2518         - Uses [WebIconDatabase sharedIconDatabase] which does a singleton
2519           instantiation but is not protected by a lock.
2520
2521         (-[WebView setDrawsBackground:]):
2522         - Potentially manipulates a RenderView (via FrameView::setBaseBackgroundColor,
2523           via [WebFrame _updateBackgroundAndUpdatesWhileOffscreen]), and RenderView
2524           is for main thread only use.
2525
2526         (-[WebView setShouldUpdateWhileOffscreen:]):
2527         - Uses [WebFrame _updateBackgroundAndUpdatesWhileOffscreen].  Hence, for the
2528           main thread only.
2529
2530 2016-02-12  Sukolsak Sakshuwong  <sukolsak@gmail.com>
2531
2532         Update ICU header files to version 52
2533         https://bugs.webkit.org/show_bug.cgi?id=154160
2534
2535         Reviewed by Alex Christensen.
2536
2537         Update ICU header files to version 52 to allow the use of newer APIs.
2538
2539         * icu/unicode/localpointer.h:
2540         * icu/unicode/platform.h:
2541         * icu/unicode/ptypes.h:
2542         * icu/unicode/putil.h:
2543         * icu/unicode/uchar.h:
2544         * icu/unicode/uconfig.h:
2545         * icu/unicode/uidna.h:
2546         * icu/unicode/uiter.h:
2547         * icu/unicode/umachine.h:
2548         * icu/unicode/unorm2.h:
2549         * icu/unicode/urename.h:
2550         * icu/unicode/uscript.h:
2551         * icu/unicode/ustring.h:
2552         * icu/unicode/utf.h:
2553         * icu/unicode/utf16.h:
2554         * icu/unicode/utf8.h:
2555         * icu/unicode/utf_old.h:
2556         * icu/unicode/utypes.h:
2557         * icu/unicode/uvernum.h:
2558         * icu/unicode/uversion.h:
2559
2560 2016-02-12  Beth Dakin  <bdakin@apple.com>
2561
2562         NSRangeIsRelativeTo should not have NS prefix
2563         https://bugs.webkit.org/show_bug.cgi?id=154174
2564
2565         Reviewed by Tim Horton.
2566
2567         NSRangeIsRelativeTo -> WebRangeIsRelativeTo
2568         * WebView/WebFrame.mm:
2569         (-[WebFrame _convertToDOMRange:]):
2570         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2571         * WebView/WebFrameInternal.h:
2572         * WebView/WebHTMLView.mm:
2573         (-[WebHTMLView insertText:]):
2574
2575 2016-02-11  Beth Dakin  <bdakin@apple.com>
2576
2577         EditingRangeIsRelativeTo::Document and NSRangeIsRelativeTo::Document should 
2578         be called EditableRoot instead
2579         https://bugs.webkit.org/show_bug.cgi?id=154138
2580
2581         Reviewed by Alexey Proskuryakov.
2582
2583         EditableRoot is much more accurate than Document.
2584         * WebView/WebFrame.mm:
2585         (-[WebFrame _convertToDOMRange:]):
2586         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2587         * WebView/WebFrameInternal.h:
2588         * WebView/WebHTMLView.mm:
2589         (-[WebHTMLView insertText:]):
2590
2591 2016-02-11  Beth Dakin  <bdakin@apple.com>
2592
2593         Soft spaces are often tracked in the wrong spot
2594         https://bugs.webkit.org/show_bug.cgi?id=154127
2595         -and corresponding-
2596         rdar://problem/24493140
2597
2598         Reviewed by Sam Weinig.
2599
2600         Soft spaces are in the wrong space now for two reasons. First of all, the 
2601         NSRange we get from the accepted candidate is relative to the paragraph 
2602         start, so without this patch, soft spaces are only ever right for the first 
2603         paragraph. Secondly, if focus changes for any reason other than text 
2604         insertion, soft spaces are also wrong because they need to be re-set.
2605
2606         New version of _convertToDOMRange takes a NSRangeIsRelativeTo so that it can 
2607         handle ranges relative to both the document and the paragraph. 
2608         * WebView/WebFrame.mm:
2609         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2610         (-[WebFrame _convertNSRangeToDOMRange:]):
2611
2612         New enum NSRangeIsRelativeTo.
2613         * WebView/WebFrameInternal.h:
2614
2615         Re-set the softSpaceRange on selection changes so long as the WebCore::Editor 
2616         is not currently handling an accepted candidate.
2617         * WebView/WebHTMLView.mm:
2618         (-[WebHTMLView _selectionChanged]):
2619
2620         If needToRemoveSoftSpace is true, then the replacementRange is 
2621         relative to the paragraph.
2622         (-[WebHTMLView insertText:]):
2623
2624 2016-02-10  Mark Lam  <mark.lam@apple.com>
2625
2626         WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture: should assert that it is being called from the "main" thread.
2627         https://bugs.webkit.org/show_bug.cgi?id=154059
2628
2629         Reviewed by Geoffrey Garen.
2630
2631         This makes it so that misbehaving clients which call it (indirectly) from another
2632         thread (not the main thread) will fail faster.  Otherwise, we get potential
2633         memory corruption that results in strange crashes elsewhere later.
2634
2635         * WebView/WebFrame.mm:
2636         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2637
2638 2016-02-04  Jer Noble  <jer.noble@apple.com>
2639
2640         [Mac] Adopt NSURLSession properties in AVAssetResourceLoader
2641         https://bugs.webkit.org/show_bug.cgi?id=153873
2642
2643         Reviewed by Eric Carlson.
2644
2645         Add a WebKit preference to control the WebCore isAVFoundationNSURLSessionEnabled()
2646         setting.
2647
2648         * WebView/WebPreferenceKeysPrivate.h:
2649         * WebView/WebPreferences.mm:
2650         (+[WebPreferences initialize]):
2651         (-[WebPreferences setAVFoundationNSURLSessionEnabled:]):
2652         (-[WebPreferences isAVFoundationNSURLSessionEnabled]):
2653         * WebView/WebPreferencesPrivate.h:
2654         * WebView/WebView.mm:
2655         (-[WebView _preferencesChanged:]):
2656
2657 2016-02-09  Eric Carlson  <eric.carlson@apple.com>
2658
2659         checkValidity() sometimes asserts in WebUserMediaClient::pageDestroyed
2660         https://bugs.webkit.org/show_bug.cgi?id=154029
2661         <rdar://problem/24065022>
2662
2663         Reviewed by Alex Christensen.
2664
2665         * WebCoreSupport/WebUserMediaClient.mm:
2666         (WebUserMediaClient::pageDestroyed): Copy map keys to a vector and clear the map before
2667           enumerating the vector and canceling the requests. ASSERT that the map is not modified
2668           during cleanup. Clean up the permission check map.
2669         (WebUserMediaClient::requestUserMediaAccess): Add the request to the map before calling the
2670           UI delegate in case it works synchronously (as it does in DRT).
2671         (WebUserMediaClient::checkUserMediaPermission): Ditto.
2672         (WebUserMediaClient::cancelUserMediaPermissionCheck): White-space cleanup.
2673         (-[WebUserMediaPolicyListener allow]): Ditto.
2674
2675 2016-02-08  Anders Carlsson  <andersca@apple.com>
2676
2677         Crash when trying to chain to the old -[NSView setNeedsDisplayInRect:]
2678         https://bugs.webkit.org/show_bug.cgi?id=154001
2679         rdar://problem/24519975
2680
2681         Reviewed by Dan Bernstein.
2682
2683         If our replaced -[NSView setNeedsDisplayInRect:] is called before the old IMP has been initialized,
2684         we can end up trying to call a null pointer. 
2685         
2686         Fix this by using method_exchangeImplementations instead of method_setImplementation, since the former is done
2687         atomically.
2688
2689         * WebView/WebHTMLView.mm:
2690         (-[NSView _web_setNeedsDisplayInRect:]):
2691         (+[WebHTMLViewPrivate initialize]):
2692         (setNeedsDisplayInRect): Deleted.
2693
2694 2016-02-07  Dan Bernstein  <mitz@apple.com>
2695
2696         [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
2697         https://bugs.webkit.org/show_bug.cgi?id=153963
2698
2699         Reviewed by Sam Weinig.
2700
2701         * WebView/WebPDFView.mm:
2702
2703 2016-02-06  Darin Adler  <darin@apple.com>
2704
2705         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
2706         https://bugs.webkit.org/show_bug.cgi?id=153905
2707
2708         Reviewed by Sam Weinig.
2709
2710         * Plugins/WebBasePluginPackage.mm:
2711         (-[WebBasePluginPackage getPluginInfoFromPLists]): Use modern for loops.
2712         (-[WebBasePluginPackage supportsExtension:]): Use convertToASCIILowercase for extension assert.
2713         Also use modern for loop.
2714         (-[WebBasePluginPackage supportsMIMEType:]): Ditto.
2715         (-[WebBasePluginPackage MIMETypeForExtension:]): Ditto.
2716
2717 2016-02-03  Jessie Berlin  <jberlin@webkit.org>
2718
2719         Build fix.
2720
2721         [NSEvent context] has always returned nil. Replace uses with nullptr.
2722
2723         * WebView/WebHTMLView.mm:
2724         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2725         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2726         (-[WebHTMLView _updateMouseoverWithEvent:]):
2727         (-[WebHTMLView _autoscroll]):
2728         (-[WebHTMLView draggedImage:endedAt:operation:]):
2729
2730 2016-02-01  Dave Hyatt  <hyatt@apple.com>
2731
2732         Add a line grid pagination SPI to WebKit.
2733         https://bugs.webkit.org/show_bug.cgi?id=153757
2734         <rdar://problem/23041598>
2735
2736         Reviewed by Anders Carlsson.
2737
2738         * WebView/WebView.mm:
2739         (-[WebView _setPaginationLineGridEnabled:]):
2740         (-[WebView _paginationLineGridEnabled]):
2741         * WebView/WebViewPrivate.h:
2742
2743 2016-02-01  Joseph Pecoraro  <pecoraro@apple.com>
2744
2745         Web Inspector: High Level Memory Overview Instrument
2746         https://bugs.webkit.org/show_bug.cgi?id=153516
2747         <rdar://problem/24356378>
2748
2749         Reviewed by Brian Burg.
2750
2751         * Configurations/FeatureDefines.xcconfig:
2752
2753 2016-01-31  Darin Adler  <darin@apple.com>
2754
2755         Cut down on calls to String::lower; mostly replace with convertToASCIILowercase
2756         https://bugs.webkit.org/show_bug.cgi?id=153732
2757
2758         Reviewed by Dean Jackson.
2759
2760         * WebView/WebHTMLRepresentation.mm:
2761         (newArrayWithStrings): Updated to use HashSet<String, ASCIICaseInsensitiveHash>
2762         and also to use a modern for loop.
2763
2764 2016-01-31  Dan Bernstein  <mitz@apple.com>
2765
2766         [Cocoa] Remove __has_include guards around use of WebKitAdditions
2767         https://bugs.webkit.org/show_bug.cgi?id=153728
2768
2769         Reviewed by Andy Estes.
2770
2771         Guard WebKitAdditions includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
2772
2773         * WebKitAdditions.mm:
2774         * WebView/WebView.mm:
2775         (-[WebView _commonInitializationWithFrameName:groupName:]):
2776         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2777
2778 2016-01-29  Ada Chan  <adachan@apple.com>
2779
2780         Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
2781         https://bugs.webkit.org/show_bug.cgi?id=153665
2782
2783         Reviewed by Dan Bernstein.
2784
2785         * Configurations/FeatureDefines.xcconfig:
2786
2787 2016-01-28  Darin Adler  <darin@apple.com>
2788
2789         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
2790         https://bugs.webkit.org/show_bug.cgi?id=153411
2791
2792         Reviewed by Ryosuke Niwa.
2793
2794         * WebCoreSupport/WebFrameLoaderClient.mm:
2795         (parameterValue): Use equalIgnoringASCIICase. No behavior change because the
2796         only name we ever search for with this is "pluginspage".
2797
2798 2016-01-27  Enrica Casucci  <enrica@apple.com>
2799
2800         Cache results of data detection in the UI process when load completes.
2801         https://bugs.webkit.org/show_bug.cgi?id=153560
2802
2803         Reviewed by Tim Horton.
2804
2805         Adding empty implementation for WK1.
2806
2807         * WebCoreSupport/WebFrameLoaderClient.h:
2808         * WebCoreSupport/WebFrameLoaderClient.mm:
2809         (WebFrameLoaderClient::dispatchDidFinishDataDetection):
2810
2811 2016-01-27  Anders Carlsson  <andersca@apple.com>
2812
2813         Add WebKitAdditions extension points to WebCore, WebKit and WebKitLegacy
2814         https://bugs.webkit.org/show_bug.cgi?id=153550
2815
2816         Reviewed by Sam Weinig.
2817
2818         * Configurations/WebKitLegacy.xcconfig:
2819         Add WKA header search paths.
2820
2821         * WebKitAdditions.mm: Added.
2822         Add addition files.
2823
2824         * WebView/WebView.mm:
2825         (-[WebView _commonInitializationWithFrameName:groupName:]):
2826         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2827         Add extension points.
2828
2829 2016-01-27  Chris Dumez  <cdumez@apple.com>
2830
2831         window.atob() should ignore spaces in input
2832         https://bugs.webkit.org/show_bug.cgi?id=153522
2833         <rdar://problem/24357822>
2834
2835         Reviewed by Benjamin Poulain.
2836
2837         * WebCoreSupport/WebInspectorClient.mm:
2838         (WebInspectorFrontendClient::save):
2839
2840 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
2841
2842         Remove ENABLE_CURRENTSRC
2843         https://bugs.webkit.org/show_bug.cgi?id=153545
2844
2845         Reviewed by Simon Fraser.
2846
2847         * Configurations/FeatureDefines.xcconfig:
2848
2849 2016-01-25  Beth Dakin  <bdakin@apple.com>
2850
2851         Build fix.
2852
2853         * WebView/WebHTMLView.mm:
2854         (-[WebHTMLView initWithFrame:]):
2855         (-[WebHTMLView insertText:]):
2856
2857 2016-01-25  Beth Dakin  <bdakin@apple.com>
2858
2859         WK1: Handle soft spaces after accepted candidates
2860         https://bugs.webkit.org/show_bug.cgi?id=153442
2861         -and corresponding-
2862         rdar://problem/23958418
2863
2864         Reviewed by Tim Horton.
2865
2866         The space at the end of candidates is a soft space. If that space exists, 
2867         cache the range of the space in m_softSpaceRange.
2868         * WebCoreSupport/WebEditorClient.mm:
2869         (WebEditorClient::handleAcceptedCandidate):
2870
2871         New ivar in WebHTMLViewPrivate softSpaceRange keeps track to the NSRange of a 
2872         soft space if the last text that was inserted has a soft space at the end.
2873         * WebView/WebHTMLView.mm:
2874         (-[WebHTMLView initWithFrame:]):
2875         (-[WebHTMLView _setSoftSpaceRange:]):
2876
2877         When new text is inserted, find out if it is being inserted right after a 
2878         soft space. If it is, then [NSSpellChecker deletesAutospaceBeforeString] will 
2879         tell us if the space needs to be removed. If that is the case, then set the 
2880         replacementString to the soft space.
2881         (-[WebHTMLView insertText:]):
2882         * WebView/WebHTMLViewInternal.h:
2883
2884 2016-01-17  Ada Chan  <adachan@apple.com>
2885
2886         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
2887         https://bugs.webkit.org/show_bug.cgi?id=153220
2888
2889         Reviewed by Eric Carlson.
2890
2891         * WebCoreSupport/WebChromeClient.h:
2892         * WebCoreSupport/WebChromeClient.mm:
2893         (WebChromeClient::supportsVideoFullscreen):
2894
2895 2016-01-22  Darin Adler  <darin@apple.com>
2896
2897         Reduce use of equalIgnoringCase to just ignore ASCII case
2898         https://bugs.webkit.org/show_bug.cgi?id=153266
2899
2900         Reviewed by Ryosuke Niwa.
2901
2902         * WebCoreSupport/WebFrameLoaderClient.mm:
2903         (WebFrameLoaderClient::createPlugin): Use equalLettersIgnoringASCIICase.
2904
2905 2016-01-21  Brent Fulgham  <bfulgham@apple.com>
2906
2907         [Mac] Tooltips do not honor some types of obscuring windows
2908         https://bugs.webkit.org/show_bug.cgi?id=153263
2909         <rdar://problem/21423972>
2910
2911         Reviewed by Simon Fraser.
2912
2913         * WebView/WebHTMLView.mm:
2914         (-[WebHTMLView _updateMouseoverWithEvent:]): When the WebView is not the key window, don't
2915         display tooltips.
2916
2917 2016-01-19  Ada Chan  <adachan@apple.com>
2918
2919         Make it possible to enable VIDEO_PRESENTATION_MODE on other Cocoa platforms.
2920         https://bugs.webkit.org/show_bug.cgi?id=153218
2921
2922         Reviewed by Eric Carlson.
2923
2924         * Configurations/FeatureDefines.xcconfig:
2925
2926 2016-01-19  Beth Dakin  <bdakin@apple.com>
2927
2928         32-bit build fix.
2929
2930         * WebView/WebView.mm:
2931         (-[WebView updateWebViewAdditions]):
2932         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
2933         * WebView/WebViewInternal.h:
2934
2935 2016-01-19  Beth Dakin  <bdakin@apple.com>
2936
2937         Move away from NSSpellChecker's showCandidates method
2938         https://bugs.webkit.org/show_bug.cgi?id=153254
2939         -and corresponding-
2940         rdar://problem/24216292
2941
2942         Reviewed by Tim Horton.
2943
2944         * WebCoreSupport/WebEditorClient.mm:
2945         (WebEditorClient::handleRequestedCandidates):
2946         * WebView/WebView.mm:
2947         (-[WebView updateWebViewAdditions]):
2948         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
2949         * WebView/WebViewInternal.h:
2950
2951 2016-01-19  Enrica Casucci  <enrica@apple.com>
2952
2953         Add support for DataDetectors in WK (iOS).
2954         https://bugs.webkit.org/show_bug.cgi?id=152989
2955         rdar://problem/22855960
2956
2957         Reviewed by Tim Horton.
2958
2959         Adding feature definition for data detection.
2960
2961         * Configurations/FeatureDefines.xcconfig:
2962
2963 2016-01-19  Commit Queue  <commit-queue@webkit.org>
2964
2965         Unreviewed, rolling out r195300.
2966         https://bugs.webkit.org/show_bug.cgi?id=153244
2967
2968         enrica wants more time to fix Windows (Requested by thorton on
2969         #webkit).
2970
2971         Reverted changeset:
2972
2973         "Add support for DataDetectors in WK (iOS)."
2974         https://bugs.webkit.org/show_bug.cgi?id=152989
2975         http://trac.webkit.org/changeset/195300
2976
2977 2016-01-19  Enrica Casucci  <enrica@apple.com>
2978
2979         Add support for DataDetectors in WK (iOS).
2980         https://bugs.webkit.org/show_bug.cgi?id=152989
2981         rdar://problem/22855960
2982
2983         Reviewed by Tim Horton.
2984
2985         Adding feature definition for data detection.
2986
2987         * Configurations/FeatureDefines.xcconfig:
2988
2989 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
2990
2991         Remove TextRun::allowsRoundingHacks()
2992         https://bugs.webkit.org/show_bug.cgi?id=153185
2993
2994         Reviewed by Simon Fraser.
2995
2996         * Misc/WebKitNSStringExtras.mm:
2997         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Deleted.
2998         (-[NSString _web_widthWithFont:]): Deleted.
2999         * WebView/WebView.mm:
3000         (+[WebView _setAllowsRoundingHacks:]): Deleted.
3001         (+[WebView _allowsRoundingHacks]): Deleted.
3002         * WebView/WebViewPrivate.h:
3003
3004 2016-01-15  Tim Horton  <timothy_horton@apple.com>
3005
3006         Data detector yellow highlight location is vertically mirrored in WebKit1
3007         https://bugs.webkit.org/show_bug.cgi?id=152216
3008         <rdar://problem/23848003>
3009
3010         Reviewed by Beth Dakin.
3011
3012         * WebView/WebImmediateActionController.mm:
3013         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3014         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
3015         These assignments have no effect because they're operating on a copy, because
3016         TextIndicator::data() does not return a reference... so remove them.
3017
3018         * WebView/WebView.mm:
3019         (-[WebView _setTextIndicator:withLifetime:]):
3020         Convert textBoundingRectInRootViewCoordinates to WebView coordinates before
3021         converting to Window coordinates from WebView coordinates so we get flipping right.
3022
3023         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
3024         (-[WebView _showDictionaryLookupPopup:]):
3025         Ditto for these, except in the aforementioned conversion callback.
3026
3027 2016-01-14  Brady Eidson  <beidson@apple.com>
3028
3029         Modern IDB: Support opening and deleting SQLite databases on disk.
3030         https://bugs.webkit.org/show_bug.cgi?id=153084
3031
3032         Reviewed by Alex Christensen, Sam Weinig and Andy Estes (oh my!).
3033
3034         * Storage/WebDatabaseProvider.mm: Copied from Source/WebKit/Storage/WebDatabaseProvider.cpp.
3035         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
3036
3037 2016-01-14  Beth Dakin  <bdakin@apple.com>
3038
3039         WK1 and WK2 should share more candidate request code
3040         https://bugs.webkit.org/show_bug.cgi?id=153108
3041
3042         Reviewed by Simon Fraser.
3043
3044         requestCandidatesForSelection() does not need to be exposed as an 
3045         EditorClient function. WK1 can just call invoke this code from the existing 
3046         respondToChangedSelection EditorClient function, which is what WK2 does.
3047         * WebCoreSupport/WebEditorClient.h:
3048         * WebCoreSupport/WebEditorClient.mm:
3049         (WebEditorClient::respondToChangedSelection):
3050
3051         Cleanup — use some code that was moved to WebCore::Editor.
3052         (WebEditorClient::requestCandidatesForSelection):
3053         (WebEditorClient::handleRequestedCandidates):
3054         (textCheckingResultFromNSTextCheckingResult):
3055         (WebEditorClient::handleAcceptedCandidate):
3056         (candidateRangeForSelection): Deleted.
3057         (candidateWouldReplaceText): Deleted.
3058
3059 2016-01-13  Chris Dumez  <cdumez@apple.com>
3060
3061         Unreviewed, rolling out r194900.
3062
3063         Roll back in as this did not actually regress PLT
3064
3065         Reverted changeset:
3066
3067         "Unreviewed, rolling out r194826."
3068         https://bugs.webkit.org/show_bug.cgi?id=153020
3069         http://trac.webkit.org/changeset/194900
3070
3071 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
3072
3073         Add a build flag for custom element
3074         https://bugs.webkit.org/show_bug.cgi?id=153005
3075
3076         Reviewed by Alex Christensen.
3077
3078         * Configurations/FeatureDefines.xcconfig:
3079
3080 2016-01-12  Commit Queue  <commit-queue@webkit.org>
3081
3082         Unreviewed, rolling out r194826.
3083         https://bugs.webkit.org/show_bug.cgi?id=153020
3084
3085         Appears to have regressed PLT (Requested by kling on #webkit).
3086
3087         Reverted changeset:
3088
3089         "Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
3090         cont'd"
3091         https://bugs.webkit.org/show_bug.cgi?id=152902
3092         http://trac.webkit.org/changeset/194826
3093
3094 2016-01-11  Anders Carlsson  <andersca@apple.com>
3095
3096         Get rid of CFMakeCollectable, it is a no-op
3097         https://bugs.webkit.org/show_bug.cgi?id=152988
3098
3099         Reviewed by Sam Weinig.
3100
3101         * Misc/WebNSDataExtras.m:
3102         (-[NSString _web_capitalizeRFC822HeaderFieldName]):
3103         (-[NSData _webkit_parseRFC822HeaderFields]):
3104         * Plugins/WebPluginController.mm:
3105         (-[WebPluginController initWithDocumentView:]):
3106
3107 2016-01-10  Andreas Kling  <akling@apple.com>
3108
3109         Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL cont'd
3110         <https://webkit.org/b/152902>
3111
3112         Reviewed by Andy Estes.
3113
3114         Convert some more of the remaining clients to use NeverDestroyed.
3115
3116         * History/WebBackForwardList.mm:
3117         (backForwardLists):
3118         * History/WebHistoryItem.mm:
3119         (historyItemWrappers):
3120         * Misc/WebNSPasteboardExtras.mm:
3121         (+[NSPasteboard _web_writableTypesForURL]):
3122         (_writableTypesForImageWithoutArchive):
3123         (_writableTypesForImageWithArchive):
3124         * Plugins/Hosted/NetscapePluginHostManager.mm:
3125         (WebKit::NetscapePluginHostManager::singleton):
3126         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3127         (WebKit::pluginProxyMap):
3128         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3129         (WebKit::globalExceptionString):
3130         * Plugins/Hosted/ProxyInstance.mm:
3131         (WebKit::proxyClass):
3132         * Plugins/WebNetscapePluginStream.mm:
3133         (streams):
3134         * Storage/WebDatabaseManager.mm:
3135         (transactionBackgroundTaskIdentifierLock):
3136         * WebCoreSupport/WebUserMediaClient.mm:
3137         (userMediaCheckMap):
3138         * WebView/WebHTMLRepresentation.mm:
3139         (regExpForLabels):
3140         * WebView/WebView.mm:
3141         (aeDescFromJSValue):
3142
3143 2016-01-09  Dan Bernstein  <mitz@apple.com>
3144
3145         [Cocoa] Allow overriding the frameworks directory independently of using a staging install path
3146         https://bugs.webkit.org/show_bug.cgi?id=152926
3147
3148         Reviewed by Tim Horton.
3149
3150         Introduce a new build setting, WK_OVERRIDE_FRAMEWORKS_DIR. When not empty, it determines
3151         where the frameworks are installed. Setting USE_STAGING_INSTALL_PATH to YES sets
3152         WK_OVERRIDE_FRAMEWORKS_DIR to $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari.
3153
3154         Account for the possibility of WK_OVERRIDE_FRAMEWORKS_DIR containing spaces.
3155
3156         * Configurations/WebKitLegacy.xcconfig:
3157         - Replace STAGED_FRAMEWORKS_SEARCH_PATH in FRAMEWORK_SEARCH_PATHS with
3158           WK_OVERRIDE_FRAMEWORKS_DIR and add quotes to account for spaces.
3159         - Define WEBKIT_LEGACY_FRAMEWORKS_DIR, PRODUCTION_FRAMEWORKS_DIR, and
3160           WEBCORE_PRIVATE_HEADERS_DIR based on WK_OVERRIDE_FRAMEWORKS_DIR.
3161
3162         * MigrateHeaders.make:
3163           Use a symlink under BUILT_PRODUCTS_DIR to the WebCore Private Headers. Use a
3164           BUILT_PRODUCTS_DIR-based path to the framework instead of a TARGET_BUILD_DIR-based one in
3165           order to avoid spaces.
3166         * migrate-headers.sh:
3167           Make the symlink to WEBCORE_PRIVATE_HEADERS_DIR that the makefile now uses.
3168
3169 2016-01-07  Tim Horton  <timothy_horton@apple.com>
3170
3171         Can't play inline video in a stock WK1 WebView on Mac
3172         https://bugs.webkit.org/show_bug.cgi?id=152860
3173
3174         Rubber-stamped by Jer Noble.
3175
3176         * WebView/WebPreferences.mm:
3177         (+[WebPreferences initialize]):
3178         The default for this preference is supposed to be NO on Mac. It is in
3179         Settings.in, and in WebKit2, but this one place got it wrong.
3180
3181 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
3182
3183         Add a setting and preferences to enable display-list drawing. Does nothing yet.
3184         https://bugs.webkit.org/show_bug.cgi?id=152807
3185
3186         Reviewed by Zalan Bujtas.
3187         
3188         WK1 pref for display-list drawing, defaults to off.
3189
3190         * WebView/WebPreferenceKeysPrivate.h:
3191         * WebView/WebPreferences.mm:
3192         (+[WebPreferences initialize]):
3193         (-[WebPreferences displayListDrawingEnabled]):
3194         (-[WebPreferences setDisplayListDrawingEnabled:]):
3195         * WebView/WebPreferencesPrivate.h:
3196         * WebView/WebView.mm:
3197         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3198         (-[WebView _preferencesChanged:]):
3199
3200 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
3201
3202         [iOS] Revert overflow:hidden on the body affecting viewport scale (r186786)
3203         https://bugs.webkit.org/show_bug.cgi?id=152803
3204         rdar://problem/22242515
3205
3206         Reviewed by Tim Horton.
3207
3208         * WebView/WebView.mm:
3209         (-[WebView _contentsSizeRespectingOverflow]): Keep this function which is used
3210         by UIKit, but change the implementation to just return the document size.
3211
3212 2016-01-04  Tim Horton  <timothy_horton@apple.com>
3213
3214         Turn on gesture events when building for Yosemite
3215         https://bugs.webkit.org/show_bug.cgi?id=152704
3216         rdar://problem/24042472
3217
3218         Reviewed by Anders Carlsson.
3219
3220         * Configurations/FeatureDefines.xcconfig:
3221
3222 2015-12-31  Andy Estes  <aestes@apple.com>
3223
3224         Replace WTF::move with WTFMove
3225         https://bugs.webkit.org/show_bug.cgi?id=152601
3226
3227         Reviewed by Brady Eidson.
3228
3229         * History/WebHistoryItem.mm:
3230         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3231         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3232         (WebKit::HostedNetscapePluginStream::willSendRequest):
3233         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3234         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
3235         * Plugins/WebNetscapePluginStream.mm:
3236         (WebNetscapePluginStream::willSendRequest):
3237         * Plugins/WebNetscapePluginView.mm:
3238         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
3239         * WebCoreSupport/WebContextMenuClient.mm:
3240         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3241         * WebCoreSupport/WebFrameLoaderClient.mm:
3242         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3243         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3244         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3245         (WebFrameLoaderClient::dispatchWillSubmitForm):
3246         (WebFrameLoaderClient::createDocumentLoader):
3247         * WebCoreSupport/WebInspectorClient.mm:
3248         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3249         * WebView/WebArchive.mm:
3250         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3251         * WebView/WebFrame.mm:
3252         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
3253         * WebView/WebHTMLView.mm:
3254         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
3255         * WebView/WebMediaPlaybackTargetPicker.mm:
3256         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
3257         * WebView/WebView.mm:
3258         (-[WebView _loadBackForwardListFromOtherView:]):
3259         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
3260         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
3261
3262 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
3263
3264         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
3265
3266         * History/WebHistoryItem.mm:
3267         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3268
3269 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
3270
3271         Fix naming in HistoryItem to refer to scrollPositions
3272         https://bugs.webkit.org/show_bug.cgi?id=152646
3273
3274         Reviewed by Zalan Bujtas.
3275
3276         HistoryItem stores a scrollPosition, so call it that.
3277
3278         * History/WebHistoryItem.mm:
3279         (-[WebHistoryItem scrollPoint]):
3280
3281 2016-01-01  Jeff Miller  <jeffm@apple.com>
3282
3283         Update user-visible copyright strings to include 2016
3284         https://bugs.webkit.org/show_bug.cgi?id=152531
3285
3286         Reviewed by Alexey Proskuryakov.
3287
3288         * Info.plist:
3289
3290 2015-12-31  David Kilzer  <ddkilzer@apple.com>
3291
3292         Stop using USE(CFNETWORK) path on iOS
3293         https://bugs.webkit.org/show_bug.cgi?id=142540
3294
3295         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
3296
3297         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
3298         Reviewed by Daniel Bates.
3299
3300         * Misc/WebDownload.h: Add header guard to make
3301         NSURLDownloadSPI.h work when pre-declaring NSURLDownload object.
3302         * Misc/WebKitVersionChecks.h: Define
3303         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES
3304         for iOS.
3305         * WebView/WebView.mm:
3306         (-[WebView _commonInitializationWithFrameName:groupName:]): Use
3307         the correct runloop on iOS.
3308         * WebView/WebViewPrivate.h:
3309         (-[WebView(WebPendingPublic) scheduleInRunLoop:forMode:]):
3310         (-[WebView(WebPendingPublic) unscheduleFromRunLoop:forMode:]):
3311         - These are available on iOS now.
3312
3313 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
3314
3315         Clarify that scrollPositionChangedViaPlatformWidget takes offsets
3316         https://bugs.webkit.org/show_bug.cgi?id=152606
3317
3318         Reviewed by Zalan Bujtas.
3319
3320         scrollPositionChangedViaPlatformWidget actually gets scroll offsets, since the
3321         values we get from AppKit are zero-based, so rename to scrollOffsetChangedViaPlatformWidget().
3322         
3323         Change ScrollableArea's setScrollPosition() and requestScrollPositionUpdate() to take
3324         ScrollPositions.
3325         
3326         Add a FIXME noting that willRevealEdge events are probably broken in RTL documents.
3327
3328         * WebView/WebHTMLView.mm:
3329         (-[WebHTMLView _frameOrBoundsChanged]):
3330
3331 2015-12-22  Andy Estes  <aestes@apple.com>
3332
3333         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
3334         https://bugs.webkit.org/show_bug.cgi?id=152463
3335
3336         Reviewed by Alexey Proskuryakov.
3337
3338         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
3339         declared in CFNetworkSPI.h.
3340
3341         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3342         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
3343         * Plugins/WebNetscapePluginStream.mm:
3344         (WebNetscapePluginStream::didReceiveResponse):
3345         * WebCoreSupport/WebSystemInterface.mm:
3346         (InitWebCoreSystemInterface): Deleted.
3347         * WebView/WebPreferences.mm:
3348         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
3349
3350 2015-12-20  Dan Bernstein  <mitz@apple.com>
3351
3352         Remove unused setToolbarHeight
3353         https://bugs.webkit.org/show_bug.cgi?id=152466
3354
3355         Reviewed by Darin Adler.
3356
3357         * WebCoreSupport/WebInspectorClient.h:
3358         * WebCoreSupport/WebInspectorClient.mm::
3359         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
3360
3361 2015-12-19  Dan Bernstein  <mitz@apple.com>
3362
3363         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
3364         https://bugs.webkit.org/show_bug.cgi?id=152462
3365
3366         Reviewed by Alexey Proskuryakov.
3367
3368         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
3369           that became uniform across all OS X versions as a result:
3370
3371         * Configurations/DebugRelease.xcconfig:
3372         * Configurations/FeatureDefines.xcconfig:
3373         * Configurations/Version.xcconfig:
3374         * Configurations/WebKitLegacy.xcconfig:
3375
3376         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
3377           never getting compiled:
3378
3379         * WebCoreSupport/WebInspectorClient.mm:
3380         * WebView/WebDynamicScrollBarsView.mm:
3381         * WebView/WebHTMLView.mm:
3382         * WebView/WebImmediateActionController.h:
3383         * WebView/WebImmediateActionController.mm:
3384         * WebView/WebView.mm:
3385         * WebView/WebViewData.h:
3386         * WebView/WebViewData.mm:
3387         * WebView/WebViewInternal.h:
3388
3389 2015-12-17  Tim Horton  <timothy_horton@apple.com>
3390
3391         Data detector yellow highlight location is vertically mirrored in WebKit1
3392         https://bugs.webkit.org/show_bug.cgi?id=152216
3393         <rdar://problem/23848003>
3394
3395         Reviewed by Darin Adler.
3396
3397         * WebView/WebImmediateActionController.mm:
3398         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3399         Match the conversion we do at every other WK1 TextIndicator construction.
3400
3401 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3402
3403         [Fetch API] Add fetch API compile time flag
3404         https://bugs.webkit.org/show_bug.cgi?id=152254
3405
3406         Reviewed by Darin Adler.
3407
3408         * Configurations/FeatureDefines.xcconfig:
3409
3410 2015-12-13  Tim Horton  <timothy_horton@apple.com>
3411
3412         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
3413         https://bugs.webkit.org/show_bug.cgi?id=150988
3414         <rdar://problem/18993594>
3415
3416         Reviewed by Darin Adler.
3417
3418         * WebCoreSupport/WebContextMenuClient.mm:
3419         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3420         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
3421
3422 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
3423
3424         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
3425         https://bugs.webkit.org/show_bug.cgi?id=152197
3426
3427         Reviewed by Dean Jackson.
3428
3429         * WebView/WebPreferenceKeysPrivate.h:
3430         * WebView/WebPreferences.mm:
3431         (+[WebPreferences initialize]):
3432         (-[WebPreferences mockCaptureDevicesEnabled]):
3433         (-[WebPreferences setMockCaptureDevicesEnabled:]):
3434         * WebView/WebPreferencesPrivate.h:
3435         * WebView/WebView.mm:
3436         (-[WebView _preferencesChanged:]):
3437
3438 2015-12-11  Beth Dakin  <bdakin@apple.com>
3439
3440         _touchEventRegions should return regions in the view's coordinates
3441         https://bugs.webkit.org/show_bug.cgi?id=152189
3442         -and corresponding-
3443         rdar://problem/23188605
3444
3445         Reviewed by Dan Bernstein.
3446
3447         The comment here was actually out of date. It claimed that touch rectangles 
3448         are in the coordinate system of the document, but we had actually changed 
3449         them to be in the view’s coordinate system in order to fix issues with 
3450         handling touch events in UIWebView. But now we are going back to having the 
3451         touch rectangles be in the document’s coordinate system, so we should fix the 
3452         rtl bugs here by converting to view coordinates before handing the rects off 
3453         to iOS WK1 clients.
3454         * WebView/WebView.mm:
3455         (-[WebView _touchEventRegions]):
3456
3457 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
3458
3459         [MediaStream] Expose media capture devices persistent permissions to WebCore
3460         https://bugs.webkit.org/show_bug.cgi?id=152087
3461
3462         Reviewed by Chris Dumez.
3463
3464         Add methods and helpers for WK1 permission checker interface.
3465         * WebCoreSupport/WebUserMediaClient.h:
3466         * WebCoreSupport/WebUserMediaClient.mm:
3467         (userMediaRequestsMap):
3468         (AddRequestToRequestMap):
3469         (RemoveRequestFromRequestMap):
3470         (userMediaCheckMap):
3471         (AddPermissionCheckToMap):
3472         (RemovePermissionCheckFromMap):
3473         (WebUserMediaClient::WebUserMediaClient):
3474         (WebUserMediaClient::requestUserMediaAccess):
3475         (WebUserMediaClient::cancelUserMediaAccessRequest):
3476         (WebUserMediaClient::checkUserMediaPermission):
3477         (WebUserMediaClient::cancelUserMediaPermissionCheck):
3478         (-[WebUserMediaPolicyListener allow]):
3479         (-[WebUserMediaPolicyListener deny]):
3480         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]):
3481         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]):
3482         (-[WebUserMediaPolicyCheckerListener allow]):
3483         (-[WebUserMediaPolicyCheckerListener deny]):
3484         (-[WebUserMediaPolicyCheckerListener denyOnlyThisRequest]):
3485         (-[WebUserMediaPolicyCheckerListener shouldClearCache]):
3486         (AddRequestToMap): Deleted.
3487         (RemoveRequestFromMap): Deleted.
3488         * WebView/WebUIDelegatePrivate.h:
3489
3490 2015-12-08  Beth Dakin  <bdakin@apple.com>
3491
3492         Follow-up to:
3493         Add support for WebViewAdditions
3494         https://bugs.webkit.org/show_bug.cgi?id=151967
3495
3496         Rubber-stamped by Dan Bernstein.
3497
3498         We should use the Web prefix for all category names.
3499         * WebView/WebView.mm:
3500         (-[WebView updateWebViewAdditions]):
3501         * WebView/WebViewInternal.h:
3502
3503 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
3504
3505         [MediaStream] Rename UserMediaClient and UserMediaController methods
3506         https://bugs.webkit.org/show_bug.cgi?id=152001
3507
3508         Reviewed by Brady Eidson.
3509
3510         * WebCoreSupport/WebUserMediaClient.h:
3511         * WebCoreSupport/WebUserMediaClient.mm:
3512         (WebUserMediaClient::pageDestroyed):
3513         (WebUserMediaClient::requestUserMediaAccess):
3514         (WebUserMediaClient::cancelUserMediaAccessRequest):
3515         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
3516         (-[WebUserMediaPolicyListener cancelUserMediaAccessRequest]):
3517         (WebUserMediaClient::requestPermission): Deleted.
3518         (WebUserMediaClient::cancelRequest): Deleted.
3519         (-[WebUserMediaPolicyListener cancelRequest]): Deleted.
3520
3521 2015-12-07  Alex Christensen  <achristensen@webkit.org>
3522
3523         Build fix after r193675.
3524
3525         * WebView/WebViewData.h:
3526
3527 2015-12-07  Alex Christensen  <achristensen@webkit.org>
3528
3529         Build fix after r193661.
3530
3531         Reviewed by Beth Dakin.
3532
3533         * WebView/WebViewData.h:
3534
3535 2015-12-07  Beth Dakin  <bdakin@apple.com>
3536
3537         Add support for WebViewAdditions
3538         https://bugs.webkit.org/show_bug.cgi?id=151967
3539
3540         Reviewed by Sam Weinig.
3541
3542         * WebCoreSupport/WebEditorClient.mm:
3543         (WebEditorClient::respondToChangedSelection):
3544         * WebView/WebView.mm:
3545         (-[WebView _commonInitializationWithFrameName:groupName:]):
3546         (-[WebView updateWebViewAdditions]):
3547         * WebView/WebViewData.h:
3548         * WebView/WebViewInternal.h:
3549
3550 2015-12-07  Beth Dakin  <bdakin@apple.com>
3551
3552         Hook up request and show for typing candidates in WK1
3553         https://bugs.webkit.org/show_bug.cgi?id=151831
3554         -and corresponding-
3555         <rdar://problem/23751214>
3556
3557         Reviewed by Enrica Casucci.
3558
3559         Add member variables to WebEditorClient. One is a WeakPtrFactory for the 
3560         asynchronous handlers, and the other caches the VisibleSelection at the time 
3561         candidates were requested so that we can make sure the candidates are still 
3562         valid once we receive them.
3563         * WebCoreSupport/WebEditorClient.h:
3564         * WebCoreSupport/WebEditorClient.mm:
3565         (WebEditorClient::WebEditorClient):
3566
3567         Call [NSSpellChecker requestCandidatesForSelectedRange] with the appropriate 
3568         parameters.
3569         (WebEditorClient::requestCandidatesForSelection):
3570
3571         Two helpers to compute information that we need for both of the handlers 
3572         below.
3573         (candidateRangeForSelection):
3574         (candidateWouldReplaceText):