15fa6af0b26e48735d9a1322c5b443b87f3e3e1d
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2016-03-18  Darin Adler  <darin@apple.com>
2
3         Disable Caches in Safari's Develop menu does not disable caches.
4         https://bugs.webkit.org/show_bug.cgi?id=64483
5
6         Reviewed by Antti Koivisto.
7
8         * WebView/WebPreferenceKeysPrivate.h: Added ResourceCachingDisabled.
9         * WebView/WebPreferences.mm:
10         (-[WebPreferences isResourceCachingDisabled]): Added.
11         (-[WebPreferences setResourceCachingDisabled:]): Added.
12         * WebView/WebPreferencesPrivate.h: Added resourceCachingDisabled.
13         * WebView/WebView.mm:
14         (-[WebView _preferencesChanged:]): Push resourceCachingDisabled into WebCore.
15
16 2016-03-17  Csaba Osztrogonác  <ossy@webkit.org>
17
18         [cmake][Mac] Unreviewed speculative buildfix after r198088. Just for fun.
19
20         * WebView/WebView.mm:
21         (-[WebView _preferencesChanged:]):
22
23 2016-03-17  Andy Estes  <aestes@apple.com>
24
25         [Mac] Enable Content-Disposition: attachment sandbox
26         https://bugs.webkit.org/show_bug.cgi?id=155578
27         <rdar://problem/21886326>
28
29         Reviewed by Dan Bernstein.
30
31         Covered by the existing set of attachment sandbox tests, which have always been run on Mac.
32
33         * WebView/WebView.mm:
34         (-[WebView _commonInitializationWithFrameName:groupName:]):
35
36 2016-03-16  Beth Dakin  <bdakin@apple.com>
37
38         Provide NSSpellChecker spellChecking methods with the current insertion point
39         https://bugs.webkit.org/show_bug.cgi?id=155532
40         -and corresponding-
41         rdar://problem/24066952
42
43         Reviewed by Simon Fraser.
44
45         Extract the insertion point from the VisibleSelection that WebCore has 
46         passed. 
47         * WebCoreSupport/WebEditorClient.h:
48         (WebEditorClient::getGuessesForWord):
49         * WebCoreSupport/WebEditorClient.mm:
50         (WebEditorClient::checkTextOfParagraph):
51         (insertionPointFromCurrentSelection):
52         (WebEditorClient::getGuessesForWord):
53         (WebEditorClient::requestCheckingOfString):
54
55 2016-03-16  Chris Dumez  <cdumez@apple.com>
56
57         Unreviewed, rolling out r198235, r198240, r198241, and
58         r198252.
59
60         Causing crashes on ARM
61
62         Reverted changesets:
63
64         "Remove compile time define for SEPARATED_HEAP"
65         https://bugs.webkit.org/show_bug.cgi?id=155508
66         http://trac.webkit.org/changeset/198235
67
68         "Gardening: build fix after r198235."
69         http://trac.webkit.org/changeset/198240
70
71         "Build fix."
72         http://trac.webkit.org/changeset/198241
73
74         "Rename performJITMemcpy to something more inline with our
75         normal webkit function names"
76         https://bugs.webkit.org/show_bug.cgi?id=155525
77         http://trac.webkit.org/changeset/198252
78
79 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
80
81         URL Parsing should signal failure for illegal IDN
82         https://bugs.webkit.org/show_bug.cgi?id=154945
83         <rdar://problem/8014795>
84
85         Reviewed by Brent Fulgham.
86
87         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
88         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
89
90         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
91         deprecated as they ignore URL parsing failure.
92
93         * History/WebHistoryItem.mm:
94         (-[WebHistoryItem initFromDictionaryRepresentation:]):
95         * Misc/WebKitErrors.m:
96         (+[NSError _webKitErrorWithCode:failingURL:]):
97         * Misc/WebNSFileManagerExtras.mm:
98         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
99         * Misc/WebNSPasteboardExtras.mm:
100         (-[NSPasteboard _web_bestURL]):
101         * Misc/WebNSURLExtras.h:
102         * Misc/WebNSURLExtras.mm:
103         (+[NSURL _web_URLWithUserTypedString:]):
104         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
105         (+[NSURL _webkit_URLWithUserTypedString:]):
106         (-[NSString _web_decodeHostName]):
107         (-[NSString _web_encodeHostName]):
108         (-[NSString _webkit_decodeHostName]):
109         (-[NSString _webkit_encodeHostName]):
110         * Panels/WebAuthenticationPanel.m:
111         (-[WebAuthenticationPanel setUpForChallenge:]):
112         * WebCoreSupport/WebEditorClient.mm:
113         (WebEditorClient::canonicalizeURLString):
114
115 2016-03-15  Jer Noble  <jer.noble@apple.com>
116
117         [ios-sim debug] API test WebKit1.AudioSessionCategoryIOS timing out
118         https://bugs.webkit.org/show_bug.cgi?id=155275
119
120         Reviewed by Alexey Proskuryakov.
121
122         The videoPlaybackRequiresUserGesture and audioPlaybackRequiresUserGesture should both defalut to
123         NO, so that legacy clients of -[UIWebView setMediaPlaybackRequiresUserAction:] continue to work
124         as expected.
125
126         * WebView/WebPreferences.mm:
127         (+[WebPreferences initialize]):
128
129 2016-03-15  Oliver Hunt  <oliver@apple.com>
130
131         Remove compile time define for SEPARATED_HEAP
132         https://bugs.webkit.org/show_bug.cgi?id=155508
133
134         Reviewed by Mark Lam.
135
136         Remove the feature define.
137
138         * Configurations/FeatureDefines.xcconfig:
139
140 2016-03-15  Chris Dumez  <cdumez@apple.com>
141
142         Unreviewed, rolling out r198203.
143
144         Favorites view is no longer loading on iOS
145
146         Reverted changeset:
147
148         "URL Parsing should signal failure for illegal IDN"
149         https://bugs.webkit.org/show_bug.cgi?id=154945
150         http://trac.webkit.org/changeset/198203
151
152 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
153
154         URL Parsing should signal failure for illegal IDN
155         https://bugs.webkit.org/show_bug.cgi?id=154945
156         <rdar://problem/8014795>
157
158         Reviewed by Brent Fulgham.
159
160         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
161         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
162
163         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
164         deprecated as they ignore URL parsing failure.
165
166         * History/WebHistoryItem.mm:
167         (-[WebHistoryItem initFromDictionaryRepresentation:]):
168         * Misc/WebKitErrors.m:
169         (+[NSError _webKitErrorWithCode:failingURL:]):
170         * Misc/WebNSFileManagerExtras.mm:
171         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
172         * Misc/WebNSPasteboardExtras.mm:
173         (-[NSPasteboard _web_bestURL]):
174         * Misc/WebNSURLExtras.h:
175         * Misc/WebNSURLExtras.mm:
176         (+[NSURL _web_URLWithUserTypedString:]):
177         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
178         (+[NSURL _webkit_URLWithUserTypedString:]):
179         (-[NSString _web_decodeHostName]):
180         (-[NSString _web_encodeHostName]):
181         (-[NSString _webkit_decodeHostName]):
182         (-[NSString _webkit_encodeHostName]):
183         * Panels/WebAuthenticationPanel.m:
184         (-[WebAuthenticationPanel setUpForChallenge:]):
185         * WebCoreSupport/WebEditorClient.mm:
186         (WebEditorClient::canonicalizeURLString):
187
188 2016-03-14  Chris Dumez  <cdumez@apple.com>
189
190         Unreviewed, rolling out r197981.
191
192         Caused a massive PLT regression on Mac.
193
194         Reverted changeset:
195
196         "Font antialiasing (smoothing) changes when elements are
197         rendered into compositing layers"
198         https://bugs.webkit.org/show_bug.cgi?id=23364
199         http://trac.webkit.org/changeset/197981
200
201 2016-03-14  Sam Weinig  <sam@webkit.org>
202
203         Add a baseURL parameter to _WKUserStyleSheet
204         https://bugs.webkit.org/show_bug.cgi?id=155219
205
206         Reviewed by Tim Horton.
207
208         * WebView/WebView.mm:
209         (-[WebView _commonInitializationWithFrameName:groupName:]):
210         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
211         (-[WebView setGroupName:]):
212         Update to account for the name change from UserContentController -> UserContentProvider.
213
214 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
215
216         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
217         https://bugs.webkit.org/show_bug.cgi?id=150497
218
219         Reviewed by Darin Adler.
220
221         * DOM/WebDOMOperations.mm:
222         (-[DOMNode webArchive]):
223         (-[DOMNode webArchiveByFilteringSubframes:]):
224         * WebCoreSupport/WebPlatformStrategies.h:
225         * WebCoreSupport/WebPlatformStrategies.mm:
226         (WebPlatformStrategies::bufferForType):
227         (WebPlatformStrategies::readBufferFromPasteboard):
228         * WebView/WebArchive.mm:
229         (-[WebArchive initWithData:]):
230         * WebView/WebDataSource.mm:
231         (-[WebDataSource webArchive]):
232         (-[WebDataSource addSubresource:]):
233         * WebView/WebResource.mm:
234         (-[WebResource encodeWithCoder:]):
235         (-[WebResource data]):
236         (-[WebResource _stringValue]):
237         (-[WebResource _initWithCoreResource:]): Deleted.
238
239 2016-03-14  Oliver Hunt  <oliver@apple.com>
240
241         Temporarily disable the separated heap.
242         https://bugs.webkit.org/show_bug.cgi?id=155472
243
244         Reviewed by Geoffrey Garen.
245
246         Temporarily disable this.
247
248         * Configurations/FeatureDefines.xcconfig:
249
250 2016-03-14  Anders Carlsson  <andersca@apple.com>
251
252         Fix build.
253
254         Ignore nullability warnings, create an empty PDF selection.
255
256         * WebView/WebPDFView.mm:
257         (-[WebPDFView centerSelectionInVisibleArea:]):
258         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
259         (+[WebPDFView _PDFSelectionClass]):
260         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
261
262 2016-03-13  Joseph Pecoraro  <pecoraro@apple.com>
263
264         Remove ENABLE(ES6_TEMPLATE_LITERAL_SYNTAX) guards
265         https://bugs.webkit.org/show_bug.cgi?id=155417
266
267         Reviewed by Yusuke Suzuki.
268
269         * Configurations/FeatureDefines.xcconfig:
270
271 2016-03-13  Dean Jackson  <dino@apple.com>
272
273         <attachment> should be a runtime-enabled feature
274         https://bugs.webkit.org/show_bug.cgi?id=155413
275         <rdar://problem/25120753>
276
277         Reviewed by Sam Weinig and Anders Carlsson.
278
279         Add an internal setting on WebPreferences
280         to enable the <attachment> element support.
281
282         * WebView/WebPreferenceKeysPrivate.h:
283         * WebView/WebPreferences.mm:
284         (+[WebPreferences initialize]):
285         (-[WebPreferences attachmentElementEnabled]):
286         (-[WebPreferences setAttachmentElementEnabled:]):
287         * WebView/WebPreferencesPrivate.h:
288         * WebView/WebView.mm:
289         (-[WebView _preferencesChanged:]):
290
291 2016-03-12  Sam Weinig  <sam@webkit.org>
292
293         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
294         <rdar://problem/25129946>
295         https://bugs.webkit.org/show_bug.cgi?id=155401
296
297         Reviewed by Alex Christensen.
298
299         * WebCoreSupport/WebFrameNetworkingContext.mm:
300         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
301         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
302
303 2016-03-12  Myles C. Maxfield  <mmaxfield@apple.com>
304
305         Delete dead SVG Font code
306         https://bugs.webkit.org/show_bug.cgi?id=154718
307
308         Reviewed by Antti Koivisto.
309
310         * Configurations/FeatureDefines.xcconfig:
311
312 2016-03-11  Yusuke Suzuki  <utatane.tea@gmail.com>
313
314         [ES6] Implement Reflect.set without receiver support
315         https://bugs.webkit.org/show_bug.cgi?id=155024
316
317         Reviewed by Geoffrey Garen.
318
319         As the same to NPJSObject, we just propagate the returned value of NetscapePluginInstanceProxy::setProperty.
320
321         * Plugins/Hosted/ProxyInstance.h:
322         * Plugins/Hosted/ProxyInstance.mm:
323         (WebKit::ProxyField::setValueToInstance):
324         (WebKit::ProxyInstance::setFieldValue):
325
326 2016-03-10  Jeremy Jones  <jeremyj@apple.com>
327
328         Set AVURLAssetUsesNoPersistentCacheKey on AVAsset to match caching policy.
329         https://bugs.webkit.org/show_bug.cgi?id=155117
330         rdar://problem/6802240
331
332         Reviewed by Simon Fraser.
333
334         Implement mediaShouldUsePersistentCache to disable media caching when NSURLCache is disabled.
335
336         * WebCoreSupport/WebChromeClient.h:
337         * WebCoreSupport/WebChromeClient.mm:
338         (WebChromeClient::mediaShouldUsePersistentCache): Added.
339
340 2016-03-10  Simon Fraser  <simon.fraser@apple.com>
341
342         Font antialiasing (smoothing) changes when elements are rendered into compositing layers
343         https://bugs.webkit.org/show_bug.cgi?id=23364
344
345         Reviewed by Tim Horton.
346
347         Allow internal clients to turn off smoothed layer text, so that WebKitTestRunner
348         can disable it.
349
350         * WebView/WebView.mm:
351         (+[WebView _setSmoothedLayerTextEnabled:]):
352         (+[WebView _smoothedLayerTextEnabled]):
353         * WebView/WebViewPrivate.h:
354
355 2016-03-10  Jer Noble  <jer.noble@apple.com>
356
357         Add WebCore, WebKit, & WebKit2 preference/setting to enable Main Content heuristic.
358         https://bugs.webkit.org/show_bug.cgi?id=155326
359         <rdar://problem/25095408>
360
361         Reviewed by Beth Dakin.
362
363         Add SPI to get and set the new preference.
364
365         * WebView/WebPreferenceKeysPrivate.h:
366         * WebView/WebPreferences.mm:
367         (-[WebPreferences overrideUserGestureRequirementForMainContent]):
368         (-[WebPreferences setOverrideUserGestureRequirementForMainContent:]):
369         * WebView/WebPreferencesPrivate.h:
370         * WebView/WebView.mm:
371         (-[WebView _preferencesChanged:]):
372
373 2016-03-07  Jer Noble  <jer.noble@apple.com>
374
375         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
376         https://bugs.webkit.org/show_bug.cgi?id=155141
377
378         Reviewed by Beth Dakin.
379
380         Deprecate WebPreferences.mediaPlaybackRequiresUserGesture property in favor of .videoPlaybackRequiresUserGesture.
381
382         * WebView/WebPreferenceKeysPrivate.h:
383         * WebView/WebPreferences.mm:
384         (+[WebPreferences initialize]):
385         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
386         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
387         (-[WebPreferences videoPlaybackRequiresUserGesture]):
388         (-[WebPreferences setVideoPlaybackRequiresUserGesture:]):
389         * WebView/WebPreferencesPrivate.h:
390         * WebView/WebView.mm:
391         (-[WebView _preferencesChanged:]):
392
393 2016-03-10  Alexey Proskuryakov  <ap@apple.com>
394
395         Build fix for deprecated constant names.
396
397         * Carbon/CarbonWindowAdapter.mm:
398         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
399         (-[CarbonWindowAdapter sendSuperEvent:]):
400
401 2016-03-10  Commit Queue  <commit-queue@webkit.org>
402
403         Unreviewed, rolling out r197943.
404         https://bugs.webkit.org/show_bug.cgi?id=155317
405
406         This change broke Windows, WinCairo, GTK and EFL builds
407         (Requested by ryanhaddad on #webkit).
408
409         Reverted changeset:
410
411         "Add a baseURL parameter to _WKUserStyleSheet"
412         https://bugs.webkit.org/show_bug.cgi?id=155219
413         http://trac.webkit.org/changeset/197943
414
415 2016-03-08  Sam Weinig  <sam@webkit.org>
416
417         Add a baseURL parameter to _WKUserStyleSheet
418         https://bugs.webkit.org/show_bug.cgi?id=155219
419
420         Reviewed by Tim Horton.
421
422         * WebView/WebView.mm:
423         (-[WebView _commonInitializationWithFrameName:groupName:]):
424         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
425         (-[WebView setGroupName:]):
426         Update to account for the name change from UserContentController -> UserContentProvider.
427
428 2016-02-22  Jer Noble  <jer.noble@apple.com>
429
430         Enable AVFoundationNSURLSessionEnabled by default
431         https://bugs.webkit.org/show_bug.cgi?id=154469
432
433         Reviewed by Sam Weinig.
434
435         * WebView/WebPreferences.mm:
436         (+[WebPreferences initialize]):
437
438 2016-03-09  Ryosuke Niwa  <rniwa@webkit.org>
439
440         Add runtime flags for shadow DOM and custom elements
441         https://bugs.webkit.org/show_bug.cgi?id=155213
442
443         Reviewed by Dean Jackson.
444
445         Set the runtime flag based on preferences. Enable shadow DOM and disable custom elements by default.
446
447         * WebView/WebPreferenceKeysPrivate.h:
448         * WebView/WebPreferences.mm:
449         (+[WebPreferences initialize]):
450         (-[WebPreferences shadowDOMEnabled]):
451         (-[WebPreferences setShadowDOMEnabled:]):
452         (-[WebPreferences customElementsEnabled]):
453         (-[WebPreferences setCustomElementsEnabled:]):
454         * WebView/WebPreferencesPrivate.h:
455         * WebView/WebView.mm:
456         (-[WebView _preferencesChanged:]):
457
458 2016-03-09  David Kilzer  <ddkilzer@apple.com>
459
460         REGRESSION (r197149): Missing availability checks when soft-linking DataDetectors.framework
461         <http://webkit.org/b/155258>
462
463         Reviewed by Andy Estes.
464
465         * WebView/WebImmediateActionController.mm:
466         (-[WebImmediateActionController _clearImmediateActionState]):
467         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
468         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
469         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
470         - Add check that returns early if DataDetectors.framework is not
471           available.
472
473 2016-03-08  Oliver Hunt  <oliver@apple.com>
474
475         Start moving to separated writable and executable mappings in the JIT
476         https://bugs.webkit.org/show_bug.cgi?id=155178
477
478         Reviewed by Fil Pizlo.
479
480         Update feature defines.
481
482         * Configurations/FeatureDefines.xcconfig:
483
484 2016-03-08  Commit Queue  <commit-queue@webkit.org>
485
486         Unreviewed, rolling out r197793 and r197799.
487         https://bugs.webkit.org/show_bug.cgi?id=155195
488
489         something weird happened while landing this and everything
490         broke (Requested by olliej on #webkit).
491
492         Reverted changesets:
493
494         "Start moving to separated writable and executable mappings in
495         the JIT"
496         https://bugs.webkit.org/show_bug.cgi?id=155178
497         http://trac.webkit.org/changeset/197793
498
499         "arm64 build fix after r197793."
500         http://trac.webkit.org/changeset/197799
501
502 2016-03-08  Oliver Hunt  <oliver@apple.com>
503
504         Start moving to separated writable and executable mappings in the JIT
505         https://bugs.webkit.org/show_bug.cgi?id=155178
506
507         Reviewed by Filip Pizlo.
508
509         Update feature defines.
510
511         * Configurations/FeatureDefines.xcconfig:
512
513 2016-03-08  Anders Carlsson  <andersca@apple.com>
514
515         Ignore deprecation warnings.
516
517         * Misc/WebNSEventExtras.m:
518         (-[NSEvent _web_isKeyEvent:]):
519         (-[NSEvent _web_isOptionTabKeyEvent]):
520         * Misc/WebNSViewExtras.m:
521         (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]):
522         * Plugins/Hosted/NetscapePluginHostProxy.mm:
523         (WebKit::NetscapePluginHostProxy::beginModal):
524         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
525         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
526         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
527         (-[WebHostedNetscapePluginView drawRect:]):
528         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
529         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
530         * WebCoreSupport/PopupMenuMac.mm:
531         (PopupMenuMac::populate):
532         (PopupMenuMac::show):
533         * WebCoreSupport/WebContextMenuClient.mm:
534         (WebContextMenuClient::showContextMenu):
535         * WebCoreSupport/WebFrameLoaderClient.mm:
536         (WebFrameLoaderClient::actionDictionary):
537         * WebCoreSupport/WebInspectorClient.mm:
538         (WebInspectorFrontendClient::canAttach):
539         (-[WebInspectorWindowController window]):
540         * WebInspector/WebNodeHighlight.mm:
541         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
542         * WebView/WebFrameView.mm:
543         (-[WebFrameView keyDown:keyDown:]):
544         * WebView/WebFullScreenController.mm:
545         (-[WebFullScreenController init]):
546         (createBackgroundFullscreenWindow):
547         * WebView/WebHTMLView.mm:
548         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
549         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
550         (isQuickLookEvent):
551         (-[WebHTMLView hitTest:]):
552         (-[WebHTMLView _sendToolTipMouseExited]):
553         (-[WebHTMLView _sendToolTipMouseEntered]):
554         (mouseEventIsPartOfClickOrDrag):
555         (-[WebHTMLView _updateMouseoverWithEvent:]):
556         (-[WebHTMLView acceptsFirstResponder]):
557         (-[WebHTMLView viewDidMoveToWindow]):
558         (currentKeyboardEvent):
559         (-[WebHTMLView _handleStyleKeyEquivalent:]):
560         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
561         * WebView/WebPDFView.mm:
562         (-[WebPDFView hitTest:]):
563         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
564         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
565         * WebView/WebTextCompletionController.mm:
566         (-[WebTextCompletionController _buildUI]):
567         (-[WebTextCompletionController _placePopupWindow:]):
568         * WebView/WebView.mm:
569         (-[WebView applicationFlags:]):
570
571 2016-03-07  Brent Fulgham  <bfulgham@apple.com>
572
573         Reduce startup and shutdown cost of resource load statistics
574         https://bugs.webkit.org/show_bug.cgi?id=155120
575         <rdar://problem/25010167>
576
577         Reviewed by Andy Estes.
578
579         Remove the Resource Load Statistics stuff from WK1, now that it is up and
580         running in WK2.
581
582         * WebView/WebView.mm:
583         (-[WebView _preferencesChanged:]): Remove call to read resource load
584         statistics from disk.
585         (+[WebView _applicationWillTerminate]): Remove call to write resource load
586         statistics to disk.
587
588 2016-03-06  Andreas Kling  <akling@apple.com>
589
590         Reduce page cache capacity from 3 to 2.
591         <https://webkit.org/b/155087>
592
593         Reviewed by Antti Koivisto.
594
595         Trim WebKit1 page cache capacities consistently with WebKit2.
596
597         * WebView/WebView.mm:
598         (+[WebView _setCacheModel:]):
599
600 2016-03-05  Chris Dumez  <cdumez@apple.com>
601
602         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
603         https://bugs.webkit.org/show_bug.cgi?id=155035
604
605         Reviewed by Darin Adler.
606
607         Update runtime application checks.
608
609         * Plugins/WebPluginController.mm:
610         (initializeAudioSession):
611         * WebCoreSupport/WebFrameLoaderClient.mm:
612         * WebView/WebFrame.mm:
613         (needsMicrosoftMessengerDOMDocumentWorkaround):
614         * WebView/WebImmediateActionController.mm:
615         (-[WebImmediateActionController _updateImmediateActionItem]):
616         * WebView/WebView.mm:
617         (WebKitInitializeApplicationCachePathIfNecessary):
618         (shouldEnableLoadDeferring):
619         (shouldRestrictWindowFocus):
620         (needsOutlookQuirksScript):
621         (shouldTransformsAffectOverflow):
622         (shouldDispatchJavaScriptWindowOnErrorEvents):
623         (shouldUseLegacyBackgroundSizeShorthandBehavior):
624         (-[WebView _commonInitializationWithFrameName:groupName:]):
625         (+[WebView enableWebThread]):
626         (+[WebView registerForMemoryNotifications]):
627         (-[WebView _needsKeyboardEventDisambiguationQuirks]):
628         (needsSelfRetainWhileLoadingQuirk):
629         (-[WebView _needsPreHTML5ParserQuirks]):
630
631 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
632
633         [ES6] Support Reflect.construct
634         https://bugs.webkit.org/show_bug.cgi?id=147330
635
636         Reviewed by Saam Barati.
637
638         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
639         (WebKit::NetscapePluginInstanceProxy::invoke):
640         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
641         (WebKit::NetscapePluginInstanceProxy::construct):
642
643 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
644
645         Unreviewed test fix for null global WebResourceLoadStatisticsStore.
646
647         * WebView/WebView.mm:
648         (-[WebView _preferencesChanged:]):
649         (+[WebView _applicationWillTerminate]):
650
651 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
652
653         [WK2] Gather resource load statistics
654         https://bugs.webkit.org/show_bug.cgi?id=154278
655         <rdar://problem/24702892>
656
657         Reviewed by Andy Estes.
658
659         Switch to maintaining a global WebCore::ResourceLoadStatisticsStore in the WebKit process,
660         and hand it off to the WebCore layer to use during data gathering. The ResourceLoadStatisticsStore
661         is now responsible for reading/writing to disk, and tracking the collection of load data.
662
663         * WebView/WebView.mm:
664         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Initialize singleton
665         ResourceLoadStatisticsStore object for tracking state.
666         (-[WebView _preferencesChanged:]): Revise for new singleton.
667         (+[WebView _applicationWillTerminate]): Ditto.
668
669 2016-02-29  Ada Chan  <adachan@apple.com>
670
671         Adopt the new version of AVOutputDeviceMenuController's showMenuForRect method.
672         https://bugs.webkit.org/show_bug.cgi?id=154823
673
674         Reviewed by Tim Horton.
675
676         * WebCoreSupport/WebChromeClient.h:
677         * WebCoreSupport/WebChromeClient.mm:
678         (WebChromeClient::showPlaybackTargetPicker):
679         * WebView/WebMediaPlaybackTargetPicker.h:
680         * WebView/WebMediaPlaybackTargetPicker.mm:
681         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
682         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected):
683         * WebView/WebView.mm:
684         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
685
686 2016-03-01  Tim Horton  <timothy_horton@apple.com>
687
688         Expose MediaElement and VideoElement to the Objective-C DOM bindings
689         https://bugs.webkit.org/show_bug.cgi?id=154830
690
691         Reviewed by Sam Weinig.
692
693         * MigrateHeaders.make:
694
695 2016-02-29  Simon Fraser  <simon.fraser@apple.com>
696
697         Remove the experimental feature of antialiased font dilation
698         https://bugs.webkit.org/show_bug.cgi?id=154843
699
700         Reviewed by Zalan Bujtas.
701
702         Remove the "antialiased font dilation" code path, and related prefs.
703
704         * WebView/WebPreferenceKeysPrivate.h:
705         * WebView/WebPreferences.mm:
706         (+[WebPreferences initialize]): Deleted.
707         (-[WebPreferences setAntialiasedFontDilationEnabled:]): Deleted.
708         (-[WebPreferences antialiasedFontDilationEnabled]): Deleted.
709         * WebView/WebPreferencesPrivate.h:
710         * WebView/WebView.mm:
711         (-[WebView _preferencesChanged:]): Deleted.
712
713 2016-02-26  Dan Bernstein  <mitz@apple.com>
714
715         Build fix for when WK_OVERRIDE_FRAMEWORKS_DIR contains spaces.
716
717         * Configurations/WebKitLegacy.xcconfig: Added quotes.
718
719 2016-02-25  Ada Chan  <adachan@apple.com>
720
721         Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
722         https://bugs.webkit.org/show_bug.cgi?id=154702
723
724         Reviewed by Dan Bernstein.
725
726         * Configurations/FeatureDefines.xcconfig:
727
728 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
729
730         Restrict information passed with navigation action which is triggered by untrusted event
731         https://bugs.webkit.org/show_bug.cgi?id=154571
732         <rdar://problem/15967937>
733
734         Reviewed by Andy Estes.
735
736         * WebCoreSupport/WebFrameLoaderClient.mm:
737         (WebFrameLoaderClient::actionDictionary):
738
739 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
740
741         [MediaStream] MediaDeviceInfo deviceId and groupId must be unique to the page's origin
742         https://bugs.webkit.org/show_bug.cgi?id=153163
743         <rdar://problem/24334526>
744
745         Reviewed by Tim Horton.
746
747         * WebCoreSupport/WebUserMediaClient.mm:
748         (WebUserMediaClient::requestUserMediaAccess):
749         (WebUserMediaClient::checkUserMediaPermission):
750         (-[WebUserMediaPolicyCheckerListener allow]):
751         (-[WebUserMediaPolicyCheckerListener deny]):
752
753 2016-02-24  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
754
755         [web-animations] Add AnimationTimeline, DocumentTimeline and add extensions to Document interface
756         https://bugs.webkit.org/show_bug.cgi?id=151688
757
758         Reviewed by Dean Jackson.
759
760         Enables the WEB_ANIMATIONS compiler switch.
761
762         * Configurations/FeatureDefines.xcconfig:
763
764 2016-02-23  Dan Bernstein  <mitz@apple.com>
765
766         [Xcode] Linker errors display mangled names, but no longer should
767         https://bugs.webkit.org/show_bug.cgi?id=154632
768
769         Reviewed by Sam Weinig.
770
771         * Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
772
773 2016-02-23  Gavin Barraclough  <barraclough@apple.com>
774
775         Remove HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define
776         https://bugs.webkit.org/show_bug.cgi?id=112323
777
778         Reviewed by Chris Dumez.
779
780         This feature is controlled by a runtime switch, and defaults off.
781
782         * Configurations/FeatureDefines.xcconfig:
783         * WebView/WebView.mm:
784         (-[WebView _preferencesChanged:]):
785
786 2016-02-22  Commit Queue  <commit-queue@webkit.org>
787
788         Unreviewed, rolling out r196935.
789         https://bugs.webkit.org/show_bug.cgi?id=154557
790
791         This change causes timeouts and crashes in LayoutTests
792         (Requested by ryanhaddad on #webkit).
793
794         Reverted changeset:
795
796         "Enable AVFoundationNSURLSessionEnabled by default"
797         https://bugs.webkit.org/show_bug.cgi?id=154469
798         http://trac.webkit.org/changeset/196935
799
800 2016-02-22  Keith Rollin  <krollin@apple.com>
801
802         Add mechanism to disable memory pressure handling
803         https://bugs.webkit.org/show_bug.cgi?id=154254
804         <rdar://problem/24662616>
805
806         Reviewed by Chris Dumez.
807
808         Add a mechanism to disable WebKit's response to memory pressure
809         triggers. This was asked for by another group for testing purposes.
810
811         In order to disable WebKit's memory pressure handling, execute the
812         following from the command line:
813
814             defaults write com.apple.Safari WebKitSuppressMemoryPressureHandler -bool true
815
816         To revert to standard behavior, delete the key or set it to False.
817
818         This flag is used when a new sub-process is being spawned. The value
819         is read and stored in an initialization parameter block, which is then
820         sent to the new sub-process.
821
822         In actuality, only the UI, WebContent, and Network processes heed the
823         flag. The Plugin process isn't instrumented to heed this flag for
824         three reasons. First, the Plugin process installs its memory pressure
825         handler in initializeProcess, not initializePluginProcess. This is
826         contrary to when the other processes install their handlers, which is
827         in initialize<PluginType>Process, not initializeProcess. So in order
828         to accomodate the Plugin process, we'd need to modify
829         ChildProcessInitializationParameters. Doing this is awkward at best,
830         but also seems to be opposed to what's supposed to be done in
831         initializeProcess and conveyed in
832         ChildProcessInitializationParameters. And even if we did add a boolean
833         to this structure and added support for conveying it through the XPC
834         port, it would end up being a Plugin process-only boolean in a general
835         parameter block, which seems asymmetric with the other processes.
836         Second, there's no convenient Cocoa function called in the flow that
837         spawns the Plugin process, meaning that there's no convenient place to
838         call NSUserDefaults to get the flag's value. And third, the Plugin
839         process doesn't elegantly respond to the memory pressure trigger
840         anyway. It might terminate itself, but that's it. As for the Database
841         process, it doesn't seem to support responding to memory pressure at
842         all, so we don't send it a flag telling it to ignore it.
843
844         Internally, the memory pressure handler is suppressed by not calling
845         MemoryPressureHandler::install() if the flag is set. In the case of
846         the Network process, the flag is saved so that it can be checked later
847         in other places that manually kick off the memory pressure handling
848         procedure.
849
850         * WebView/WebView.mm:
851         (-[WebView _commonInitializationWithFrameName:groupName:]):
852         (WebInstallMemoryPressureHandler):
853
854 2016-02-22  Jer Noble  <jer.noble@apple.com>
855
856         Enable AVFoundationNSURLSessionEnabled by default
857         https://bugs.webkit.org/show_bug.cgi?id=154469
858
859         Reviewed by Sam Weinig.
860
861         * WebView/WebPreferences.mm:
862         (+[WebPreferences initialize]):
863
864 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
865
866         [Mac] Gather some rudimentary statistics during resource load 
867         https://bugs.webkit.org/show_bug.cgi?id=153575
868         <rdar://problem/24075254>
869
870         Reviewed by Brady Eidson.
871
872         * Misc/WebKitNSStringExtras.h:
873         * Misc/WebKitNSStringExtras.mm:
874         (+[NSString _webkit_localStorageDirectoryWithBundleIdentifier:]): Added.
875         * WebView/WebPreferenceKeysPrivate.h:
876         * WebView/WebPreferences.mm:
877         (+[WebPreferences initialize]):
878         (-[WebPreferences resourceLoadStatisticsEnabled]): Added.
879         (-[WebPreferences setResourceLoadStatisticsEnabled:]): Added.
880         * WebView/WebPreferencesPrivate.h:
881         * WebView/WebView.mm:
882         (WebKitInitializeApplicationCachePathIfNecessary):
883         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Added.
884         (-[WebView _commonInitializationWithFrameName:groupName:]): Add call to new
885         initialization method.
886         (-[WebView _preferencesChanged:]): Track changes in the user's desire to
887         monitor resource load statistics.
888         (+[WebView _applicationWillTerminate]): Write statistics to disk (if preferences
889         say to do so.)
890
891 2016-02-13  Mark Lam  <mark.lam@apple.com>
892
893         Add thread violation checks to WebView public APIs.
894         https://bugs.webkit.org/show_bug.cgi?id=154183
895
896         Reviewed by Timothy Hatcher.
897
898         Re-landing r196527 with a newly added WebCoreThreadViolationCheckRoundThree().
899         Previously was using WebCoreThreadViolationCheckRoundTwo().
900
901         * Misc/WebKitVersionChecks.h:
902         * WebView/WebFrameView.mm:
903         (-[WebFrameView initWithFrame:]):
904         * WebView/WebView.mm:
905         (-[WebView setCustomTextEncodingName:]):
906         (-[WebView stringByEvaluatingJavaScriptFromString:]):
907         (-[WebView windowScriptObject]):
908         (-[WebView setGroupName:]):
909         (-[WebView setMainFrameURL:]):
910         (-[WebView mainFrameTitle]):
911         (-[WebView mainFrameIcon]):
912         (-[WebView setDrawsBackground:]):
913         (-[WebView setShouldUpdateWhileOffscreen:]):
914
915 2016-02-12  Commit Queue  <commit-queue@webkit.org>
916
917         Unreviewed, rolling out r196527.
918         https://bugs.webkit.org/show_bug.cgi?id=154204
919
920         "Need to redo as WebCoreThreadViolationCheckRoundThree"
921         (Requested by mlam on #webkit).
922
923         Reverted changeset:
924
925         "Add thread violation checks to WebView public APIs."
926         https://bugs.webkit.org/show_bug.cgi?id=154183
927         http://trac.webkit.org/changeset/196527
928
929 2016-02-12  Mark Lam  <mark.lam@apple.com>
930
931         Add thread violation checks to WebView public APIs.
932         https://bugs.webkit.org/show_bug.cgi?id=154183
933
934         Reviewed by Geoffrey Garen.
935
936         This will help clients of the API detect the violations sooner rather than
937         having to debug mysterious crashes / failures later.
938
939         To that end, I've added thread violation checks to the following functions
940         because ...
941
942         * WebView/WebView.mm:
943         (-[WebView setCustomTextEncodingName:]):
944         - Uses the FrameLoader (which is for the main thread only).
945
946         (-[WebView stringByEvaluatingJavaScriptFromString:]):
947         - Invokes JavaScript (which is for the main thread only).
948
949         (-[WebView windowScriptObject]):
950         - Invokes ScriptController::windowScriptObject() which requires the JSLock.
951
952         (-[WebView setGroupName:]):
953         - Manipulates the PageGroup and Page (which is for the main thread only).
954
955         (-[WebView setMainFrameURL:]):
956         - Uses the FrameLoader (which is for the main thread only).
957
958         (-[WebView mainFrameTitle]):
959         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
960           is RefPtr, and therefore not safe for other threads to access.
961
962         (-[WebView mainFrameIcon]):
963         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
964           is RefPtr, and therefore not safe for other threads to access.
965         - Uses [WebIconDatabase sharedIconDatabase] which does a singleton
966           instantiation but is not protected by a lock.
967
968         (-[WebView setDrawsBackground:]):
969         - Potentially manipulates a RenderView (via FrameView::setBaseBackgroundColor,
970           via [WebFrame _updateBackgroundAndUpdatesWhileOffscreen]), and RenderView
971           is for main thread only use.
972
973         (-[WebView setShouldUpdateWhileOffscreen:]):
974         - Uses [WebFrame _updateBackgroundAndUpdatesWhileOffscreen].  Hence, for the
975           main thread only.
976
977 2016-02-12  Sukolsak Sakshuwong  <sukolsak@gmail.com>
978
979         Update ICU header files to version 52
980         https://bugs.webkit.org/show_bug.cgi?id=154160
981
982         Reviewed by Alex Christensen.
983
984         Update ICU header files to version 52 to allow the use of newer APIs.
985
986         * icu/unicode/localpointer.h:
987         * icu/unicode/platform.h:
988         * icu/unicode/ptypes.h:
989         * icu/unicode/putil.h:
990         * icu/unicode/uchar.h:
991         * icu/unicode/uconfig.h:
992         * icu/unicode/uidna.h:
993         * icu/unicode/uiter.h:
994         * icu/unicode/umachine.h:
995         * icu/unicode/unorm2.h:
996         * icu/unicode/urename.h:
997         * icu/unicode/uscript.h:
998         * icu/unicode/ustring.h:
999         * icu/unicode/utf.h:
1000         * icu/unicode/utf16.h:
1001         * icu/unicode/utf8.h:
1002         * icu/unicode/utf_old.h:
1003         * icu/unicode/utypes.h:
1004         * icu/unicode/uvernum.h:
1005         * icu/unicode/uversion.h:
1006
1007 2016-02-12  Beth Dakin  <bdakin@apple.com>
1008
1009         NSRangeIsRelativeTo should not have NS prefix
1010         https://bugs.webkit.org/show_bug.cgi?id=154174
1011
1012         Reviewed by Tim Horton.
1013
1014         NSRangeIsRelativeTo -> WebRangeIsRelativeTo
1015         * WebView/WebFrame.mm:
1016         (-[WebFrame _convertToDOMRange:]):
1017         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1018         * WebView/WebFrameInternal.h:
1019         * WebView/WebHTMLView.mm:
1020         (-[WebHTMLView insertText:]):
1021
1022 2016-02-11  Beth Dakin  <bdakin@apple.com>
1023
1024         EditingRangeIsRelativeTo::Document and NSRangeIsRelativeTo::Document should 
1025         be called EditableRoot instead
1026         https://bugs.webkit.org/show_bug.cgi?id=154138
1027
1028         Reviewed by Alexey Proskuryakov.
1029
1030         EditableRoot is much more accurate than Document.
1031         * WebView/WebFrame.mm:
1032         (-[WebFrame _convertToDOMRange:]):
1033         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1034         * WebView/WebFrameInternal.h:
1035         * WebView/WebHTMLView.mm:
1036         (-[WebHTMLView insertText:]):
1037
1038 2016-02-11  Beth Dakin  <bdakin@apple.com>
1039
1040         Soft spaces are often tracked in the wrong spot
1041         https://bugs.webkit.org/show_bug.cgi?id=154127
1042         -and corresponding-
1043         rdar://problem/24493140
1044
1045         Reviewed by Sam Weinig.
1046
1047         Soft spaces are in the wrong space now for two reasons. First of all, the 
1048         NSRange we get from the accepted candidate is relative to the paragraph 
1049         start, so without this patch, soft spaces are only ever right for the first 
1050         paragraph. Secondly, if focus changes for any reason other than text 
1051         insertion, soft spaces are also wrong because they need to be re-set.
1052
1053         New version of _convertToDOMRange takes a NSRangeIsRelativeTo so that it can 
1054         handle ranges relative to both the document and the paragraph. 
1055         * WebView/WebFrame.mm:
1056         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1057         (-[WebFrame _convertNSRangeToDOMRange:]):
1058
1059         New enum NSRangeIsRelativeTo.
1060         * WebView/WebFrameInternal.h:
1061
1062         Re-set the softSpaceRange on selection changes so long as the WebCore::Editor 
1063         is not currently handling an accepted candidate.
1064         * WebView/WebHTMLView.mm:
1065         (-[WebHTMLView _selectionChanged]):
1066
1067         If needToRemoveSoftSpace is true, then the replacementRange is 
1068         relative to the paragraph.
1069         (-[WebHTMLView insertText:]):
1070
1071 2016-02-10  Mark Lam  <mark.lam@apple.com>
1072
1073         WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture: should assert that it is being called from the "main" thread.
1074         https://bugs.webkit.org/show_bug.cgi?id=154059
1075
1076         Reviewed by Geoffrey Garen.
1077
1078         This makes it so that misbehaving clients which call it (indirectly) from another
1079         thread (not the main thread) will fail faster.  Otherwise, we get potential
1080         memory corruption that results in strange crashes elsewhere later.
1081
1082         * WebView/WebFrame.mm:
1083         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1084
1085 2016-02-04  Jer Noble  <jer.noble@apple.com>
1086
1087         [Mac] Adopt NSURLSession properties in AVAssetResourceLoader
1088         https://bugs.webkit.org/show_bug.cgi?id=153873
1089
1090         Reviewed by Eric Carlson.
1091
1092         Add a WebKit preference to control the WebCore isAVFoundationNSURLSessionEnabled()
1093         setting.
1094
1095         * WebView/WebPreferenceKeysPrivate.h:
1096         * WebView/WebPreferences.mm:
1097         (+[WebPreferences initialize]):
1098         (-[WebPreferences setAVFoundationNSURLSessionEnabled:]):
1099         (-[WebPreferences isAVFoundationNSURLSessionEnabled]):
1100         * WebView/WebPreferencesPrivate.h:
1101         * WebView/WebView.mm:
1102         (-[WebView _preferencesChanged:]):
1103
1104 2016-02-09  Eric Carlson  <eric.carlson@apple.com>
1105
1106         checkValidity() sometimes asserts in WebUserMediaClient::pageDestroyed
1107         https://bugs.webkit.org/show_bug.cgi?id=154029
1108         <rdar://problem/24065022>
1109
1110         Reviewed by Alex Christensen.
1111
1112         * WebCoreSupport/WebUserMediaClient.mm:
1113         (WebUserMediaClient::pageDestroyed): Copy map keys to a vector and clear the map before
1114           enumerating the vector and canceling the requests. ASSERT that the map is not modified
1115           during cleanup. Clean up the permission check map.
1116         (WebUserMediaClient::requestUserMediaAccess): Add the request to the map before calling the
1117           UI delegate in case it works synchronously (as it does in DRT).
1118         (WebUserMediaClient::checkUserMediaPermission): Ditto.
1119         (WebUserMediaClient::cancelUserMediaPermissionCheck): White-space cleanup.
1120         (-[WebUserMediaPolicyListener allow]): Ditto.
1121
1122 2016-02-08  Anders Carlsson  <andersca@apple.com>
1123
1124         Crash when trying to chain to the old -[NSView setNeedsDisplayInRect:]
1125         https://bugs.webkit.org/show_bug.cgi?id=154001
1126         rdar://problem/24519975
1127
1128         Reviewed by Dan Bernstein.
1129
1130         If our replaced -[NSView setNeedsDisplayInRect:] is called before the old IMP has been initialized,
1131         we can end up trying to call a null pointer. 
1132         
1133         Fix this by using method_exchangeImplementations instead of method_setImplementation, since the former is done
1134         atomically.
1135
1136         * WebView/WebHTMLView.mm:
1137         (-[NSView _web_setNeedsDisplayInRect:]):
1138         (+[WebHTMLViewPrivate initialize]):
1139         (setNeedsDisplayInRect): Deleted.
1140
1141 2016-02-07  Dan Bernstein  <mitz@apple.com>
1142
1143         [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
1144         https://bugs.webkit.org/show_bug.cgi?id=153963
1145
1146         Reviewed by Sam Weinig.
1147
1148         * WebView/WebPDFView.mm:
1149
1150 2016-02-06  Darin Adler  <darin@apple.com>
1151
1152         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
1153         https://bugs.webkit.org/show_bug.cgi?id=153905
1154
1155         Reviewed by Sam Weinig.
1156
1157         * Plugins/WebBasePluginPackage.mm:
1158         (-[WebBasePluginPackage getPluginInfoFromPLists]): Use modern for loops.
1159         (-[WebBasePluginPackage supportsExtension:]): Use convertToASCIILowercase for extension assert.
1160         Also use modern for loop.
1161         (-[WebBasePluginPackage supportsMIMEType:]): Ditto.
1162         (-[WebBasePluginPackage MIMETypeForExtension:]): Ditto.
1163
1164 2016-02-03  Jessie Berlin  <jberlin@webkit.org>
1165
1166         Build fix.
1167
1168         [NSEvent context] has always returned nil. Replace uses with nullptr.
1169
1170         * WebView/WebHTMLView.mm:
1171         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
1172         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
1173         (-[WebHTMLView _updateMouseoverWithEvent:]):
1174         (-[WebHTMLView _autoscroll]):
1175         (-[WebHTMLView draggedImage:endedAt:operation:]):
1176
1177 2016-02-01  Dave Hyatt  <hyatt@apple.com>
1178
1179         Add a line grid pagination SPI to WebKit.
1180         https://bugs.webkit.org/show_bug.cgi?id=153757
1181         <rdar://problem/23041598>
1182
1183         Reviewed by Anders Carlsson.
1184
1185         * WebView/WebView.mm:
1186         (-[WebView _setPaginationLineGridEnabled:]):
1187         (-[WebView _paginationLineGridEnabled]):
1188         * WebView/WebViewPrivate.h:
1189
1190 2016-02-01  Joseph Pecoraro  <pecoraro@apple.com>
1191
1192         Web Inspector: High Level Memory Overview Instrument
1193         https://bugs.webkit.org/show_bug.cgi?id=153516
1194         <rdar://problem/24356378>
1195
1196         Reviewed by Brian Burg.
1197
1198         * Configurations/FeatureDefines.xcconfig:
1199
1200 2016-01-31  Darin Adler  <darin@apple.com>
1201
1202         Cut down on calls to String::lower; mostly replace with convertToASCIILowercase
1203         https://bugs.webkit.org/show_bug.cgi?id=153732
1204
1205         Reviewed by Dean Jackson.
1206
1207         * WebView/WebHTMLRepresentation.mm:
1208         (newArrayWithStrings): Updated to use HashSet<String, ASCIICaseInsensitiveHash>
1209         and also to use a modern for loop.
1210
1211 2016-01-31  Dan Bernstein  <mitz@apple.com>
1212
1213         [Cocoa] Remove __has_include guards around use of WebKitAdditions
1214         https://bugs.webkit.org/show_bug.cgi?id=153728
1215
1216         Reviewed by Andy Estes.
1217
1218         Guard WebKitAdditions includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
1219
1220         * WebKitAdditions.mm:
1221         * WebView/WebView.mm:
1222         (-[WebView _commonInitializationWithFrameName:groupName:]):
1223         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1224
1225 2016-01-29  Ada Chan  <adachan@apple.com>
1226
1227         Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
1228         https://bugs.webkit.org/show_bug.cgi?id=153665
1229
1230         Reviewed by Dan Bernstein.
1231
1232         * Configurations/FeatureDefines.xcconfig:
1233
1234 2016-01-28  Darin Adler  <darin@apple.com>
1235
1236         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
1237         https://bugs.webkit.org/show_bug.cgi?id=153411
1238
1239         Reviewed by Ryosuke Niwa.
1240
1241         * WebCoreSupport/WebFrameLoaderClient.mm:
1242         (parameterValue): Use equalIgnoringASCIICase. No behavior change because the
1243         only name we ever search for with this is "pluginspage".
1244
1245 2016-01-27  Enrica Casucci  <enrica@apple.com>
1246
1247         Cache results of data detection in the UI process when load completes.
1248         https://bugs.webkit.org/show_bug.cgi?id=153560
1249
1250         Reviewed by Tim Horton.
1251
1252         Adding empty implementation for WK1.
1253
1254         * WebCoreSupport/WebFrameLoaderClient.h:
1255         * WebCoreSupport/WebFrameLoaderClient.mm:
1256         (WebFrameLoaderClient::dispatchDidFinishDataDetection):
1257
1258 2016-01-27  Anders Carlsson  <andersca@apple.com>
1259
1260         Add WebKitAdditions extension points to WebCore, WebKit and WebKitLegacy
1261         https://bugs.webkit.org/show_bug.cgi?id=153550
1262
1263         Reviewed by Sam Weinig.
1264
1265         * Configurations/WebKitLegacy.xcconfig:
1266         Add WKA header search paths.
1267
1268         * WebKitAdditions.mm: Added.
1269         Add addition files.
1270
1271         * WebView/WebView.mm:
1272         (-[WebView _commonInitializationWithFrameName:groupName:]):
1273         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1274         Add extension points.
1275
1276 2016-01-27  Chris Dumez  <cdumez@apple.com>
1277
1278         window.atob() should ignore spaces in input
1279         https://bugs.webkit.org/show_bug.cgi?id=153522
1280         <rdar://problem/24357822>
1281
1282         Reviewed by Benjamin Poulain.
1283
1284         * WebCoreSupport/WebInspectorClient.mm:
1285         (WebInspectorFrontendClient::save):
1286
1287 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1288
1289         Remove ENABLE_CURRENTSRC
1290         https://bugs.webkit.org/show_bug.cgi?id=153545
1291
1292         Reviewed by Simon Fraser.
1293
1294         * Configurations/FeatureDefines.xcconfig:
1295
1296 2016-01-25  Beth Dakin  <bdakin@apple.com>
1297
1298         Build fix.
1299
1300         * WebView/WebHTMLView.mm:
1301         (-[WebHTMLView initWithFrame:]):
1302         (-[WebHTMLView insertText:]):
1303
1304 2016-01-25  Beth Dakin  <bdakin@apple.com>
1305
1306         WK1: Handle soft spaces after accepted candidates
1307         https://bugs.webkit.org/show_bug.cgi?id=153442
1308         -and corresponding-
1309         rdar://problem/23958418
1310
1311         Reviewed by Tim Horton.
1312
1313         The space at the end of candidates is a soft space. If that space exists, 
1314         cache the range of the space in m_softSpaceRange.
1315         * WebCoreSupport/WebEditorClient.mm:
1316         (WebEditorClient::handleAcceptedCandidate):
1317
1318         New ivar in WebHTMLViewPrivate softSpaceRange keeps track to the NSRange of a 
1319         soft space if the last text that was inserted has a soft space at the end.
1320         * WebView/WebHTMLView.mm:
1321         (-[WebHTMLView initWithFrame:]):
1322         (-[WebHTMLView _setSoftSpaceRange:]):
1323
1324         When new text is inserted, find out if it is being inserted right after a 
1325         soft space. If it is, then [NSSpellChecker deletesAutospaceBeforeString] will 
1326         tell us if the space needs to be removed. If that is the case, then set the 
1327         replacementString to the soft space.
1328         (-[WebHTMLView insertText:]):
1329         * WebView/WebHTMLViewInternal.h:
1330
1331 2016-01-17  Ada Chan  <adachan@apple.com>
1332
1333         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
1334         https://bugs.webkit.org/show_bug.cgi?id=153220
1335
1336         Reviewed by Eric Carlson.
1337
1338         * WebCoreSupport/WebChromeClient.h:
1339         * WebCoreSupport/WebChromeClient.mm:
1340         (WebChromeClient::supportsVideoFullscreen):
1341
1342 2016-01-22  Darin Adler  <darin@apple.com>
1343
1344         Reduce use of equalIgnoringCase to just ignore ASCII case
1345         https://bugs.webkit.org/show_bug.cgi?id=153266
1346
1347         Reviewed by Ryosuke Niwa.
1348
1349         * WebCoreSupport/WebFrameLoaderClient.mm:
1350         (WebFrameLoaderClient::createPlugin): Use equalLettersIgnoringASCIICase.
1351
1352 2016-01-21  Brent Fulgham  <bfulgham@apple.com>
1353
1354         [Mac] Tooltips do not honor some types of obscuring windows
1355         https://bugs.webkit.org/show_bug.cgi?id=153263
1356         <rdar://problem/21423972>
1357
1358         Reviewed by Simon Fraser.
1359
1360         * WebView/WebHTMLView.mm:
1361         (-[WebHTMLView _updateMouseoverWithEvent:]): When the WebView is not the key window, don't
1362         display tooltips.
1363
1364 2016-01-19  Ada Chan  <adachan@apple.com>
1365
1366         Make it possible to enable VIDEO_PRESENTATION_MODE on other Cocoa platforms.
1367         https://bugs.webkit.org/show_bug.cgi?id=153218
1368
1369         Reviewed by Eric Carlson.
1370
1371         * Configurations/FeatureDefines.xcconfig:
1372
1373 2016-01-19  Beth Dakin  <bdakin@apple.com>
1374
1375         32-bit build fix.
1376
1377         * WebView/WebView.mm:
1378         (-[WebView updateWebViewAdditions]):
1379         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
1380         * WebView/WebViewInternal.h:
1381
1382 2016-01-19  Beth Dakin  <bdakin@apple.com>
1383
1384         Move away from NSSpellChecker's showCandidates method
1385         https://bugs.webkit.org/show_bug.cgi?id=153254
1386         -and corresponding-
1387         rdar://problem/24216292
1388
1389         Reviewed by Tim Horton.
1390
1391         * WebCoreSupport/WebEditorClient.mm:
1392         (WebEditorClient::handleRequestedCandidates):
1393         * WebView/WebView.mm:
1394         (-[WebView updateWebViewAdditions]):
1395         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
1396         * WebView/WebViewInternal.h:
1397
1398 2016-01-19  Enrica Casucci  <enrica@apple.com>
1399
1400         Add support for DataDetectors in WK (iOS).
1401         https://bugs.webkit.org/show_bug.cgi?id=152989
1402         rdar://problem/22855960
1403
1404         Reviewed by Tim Horton.
1405
1406         Adding feature definition for data detection.
1407
1408         * Configurations/FeatureDefines.xcconfig:
1409
1410 2016-01-19  Commit Queue  <commit-queue@webkit.org>
1411
1412         Unreviewed, rolling out r195300.
1413         https://bugs.webkit.org/show_bug.cgi?id=153244
1414
1415         enrica wants more time to fix Windows (Requested by thorton on
1416         #webkit).
1417
1418         Reverted changeset:
1419
1420         "Add support for DataDetectors in WK (iOS)."
1421         https://bugs.webkit.org/show_bug.cgi?id=152989
1422         http://trac.webkit.org/changeset/195300
1423
1424 2016-01-19  Enrica Casucci  <enrica@apple.com>
1425
1426         Add support for DataDetectors in WK (iOS).
1427         https://bugs.webkit.org/show_bug.cgi?id=152989
1428         rdar://problem/22855960
1429
1430         Reviewed by Tim Horton.
1431
1432         Adding feature definition for data detection.
1433
1434         * Configurations/FeatureDefines.xcconfig:
1435
1436 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
1437
1438         Remove TextRun::allowsRoundingHacks()
1439         https://bugs.webkit.org/show_bug.cgi?id=153185
1440
1441         Reviewed by Simon Fraser.
1442
1443         * Misc/WebKitNSStringExtras.mm:
1444         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Deleted.
1445         (-[NSString _web_widthWithFont:]): Deleted.
1446         * WebView/WebView.mm:
1447         (+[WebView _setAllowsRoundingHacks:]): Deleted.
1448         (+[WebView _allowsRoundingHacks]): Deleted.
1449         * WebView/WebViewPrivate.h:
1450
1451 2016-01-15  Tim Horton  <timothy_horton@apple.com>
1452
1453         Data detector yellow highlight location is vertically mirrored in WebKit1
1454         https://bugs.webkit.org/show_bug.cgi?id=152216
1455         <rdar://problem/23848003>
1456
1457         Reviewed by Beth Dakin.
1458
1459         * WebView/WebImmediateActionController.mm:
1460         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1461         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1462         These assignments have no effect because they're operating on a copy, because
1463         TextIndicator::data() does not return a reference... so remove them.
1464
1465         * WebView/WebView.mm:
1466         (-[WebView _setTextIndicator:withLifetime:]):
1467         Convert textBoundingRectInRootViewCoordinates to WebView coordinates before
1468         converting to Window coordinates from WebView coordinates so we get flipping right.
1469
1470         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1471         (-[WebView _showDictionaryLookupPopup:]):
1472         Ditto for these, except in the aforementioned conversion callback.
1473
1474 2016-01-14  Brady Eidson  <beidson@apple.com>
1475
1476         Modern IDB: Support opening and deleting SQLite databases on disk.
1477         https://bugs.webkit.org/show_bug.cgi?id=153084
1478
1479         Reviewed by Alex Christensen, Sam Weinig and Andy Estes (oh my!).
1480
1481         * Storage/WebDatabaseProvider.mm: Copied from Source/WebKit/Storage/WebDatabaseProvider.cpp.
1482         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
1483
1484 2016-01-14  Beth Dakin  <bdakin@apple.com>
1485
1486         WK1 and WK2 should share more candidate request code
1487         https://bugs.webkit.org/show_bug.cgi?id=153108
1488
1489         Reviewed by Simon Fraser.
1490
1491         requestCandidatesForSelection() does not need to be exposed as an 
1492         EditorClient function. WK1 can just call invoke this code from the existing 
1493         respondToChangedSelection EditorClient function, which is what WK2 does.
1494         * WebCoreSupport/WebEditorClient.h:
1495         * WebCoreSupport/WebEditorClient.mm:
1496         (WebEditorClient::respondToChangedSelection):
1497
1498         Cleanup — use some code that was moved to WebCore::Editor.
1499         (WebEditorClient::requestCandidatesForSelection):
1500         (WebEditorClient::handleRequestedCandidates):
1501         (textCheckingResultFromNSTextCheckingResult):
1502         (WebEditorClient::handleAcceptedCandidate):
1503         (candidateRangeForSelection): Deleted.
1504         (candidateWouldReplaceText): Deleted.
1505
1506 2016-01-13  Chris Dumez  <cdumez@apple.com>
1507
1508         Unreviewed, rolling out r194900.
1509
1510         Roll back in as this did not actually regress PLT
1511
1512         Reverted changeset:
1513
1514         "Unreviewed, rolling out r194826."
1515         https://bugs.webkit.org/show_bug.cgi?id=153020
1516         http://trac.webkit.org/changeset/194900
1517
1518 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1519
1520         Add a build flag for custom element
1521         https://bugs.webkit.org/show_bug.cgi?id=153005
1522
1523         Reviewed by Alex Christensen.
1524
1525         * Configurations/FeatureDefines.xcconfig:
1526
1527 2016-01-12  Commit Queue  <commit-queue@webkit.org>
1528
1529         Unreviewed, rolling out r194826.
1530         https://bugs.webkit.org/show_bug.cgi?id=153020
1531
1532         Appears to have regressed PLT (Requested by kling on #webkit).
1533
1534         Reverted changeset:
1535
1536         "Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
1537         cont'd"
1538         https://bugs.webkit.org/show_bug.cgi?id=152902
1539         http://trac.webkit.org/changeset/194826
1540
1541 2016-01-11  Anders Carlsson  <andersca@apple.com>
1542
1543         Get rid of CFMakeCollectable, it is a no-op
1544         https://bugs.webkit.org/show_bug.cgi?id=152988
1545
1546         Reviewed by Sam Weinig.
1547
1548         * Misc/WebNSDataExtras.m:
1549         (-[NSString _web_capitalizeRFC822HeaderFieldName]):
1550         (-[NSData _webkit_parseRFC822HeaderFields]):
1551         * Plugins/WebPluginController.mm:
1552         (-[WebPluginController initWithDocumentView:]):
1553
1554 2016-01-10  Andreas Kling  <akling@apple.com>
1555
1556         Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL cont'd
1557         <https://webkit.org/b/152902>
1558
1559         Reviewed by Andy Estes.
1560
1561         Convert some more of the remaining clients to use NeverDestroyed.
1562
1563         * History/WebBackForwardList.mm:
1564         (backForwardLists):
1565         * History/WebHistoryItem.mm:
1566         (historyItemWrappers):
1567         * Misc/WebNSPasteboardExtras.mm:
1568         (+[NSPasteboard _web_writableTypesForURL]):
1569         (_writableTypesForImageWithoutArchive):
1570         (_writableTypesForImageWithArchive):
1571         * Plugins/Hosted/NetscapePluginHostManager.mm:
1572         (WebKit::NetscapePluginHostManager::singleton):
1573         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1574         (WebKit::pluginProxyMap):
1575         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1576         (WebKit::globalExceptionString):
1577         * Plugins/Hosted/ProxyInstance.mm:
1578         (WebKit::proxyClass):
1579         * Plugins/WebNetscapePluginStream.mm:
1580         (streams):
1581         * Storage/WebDatabaseManager.mm:
1582         (transactionBackgroundTaskIdentifierLock):
1583         * WebCoreSupport/WebUserMediaClient.mm:
1584         (userMediaCheckMap):
1585         * WebView/WebHTMLRepresentation.mm:
1586         (regExpForLabels):
1587         * WebView/WebView.mm:
1588         (aeDescFromJSValue):
1589
1590 2016-01-09  Dan Bernstein  <mitz@apple.com>
1591
1592         [Cocoa] Allow overriding the frameworks directory independently of using a staging install path
1593         https://bugs.webkit.org/show_bug.cgi?id=152926
1594
1595         Reviewed by Tim Horton.
1596
1597         Introduce a new build setting, WK_OVERRIDE_FRAMEWORKS_DIR. When not empty, it determines
1598         where the frameworks are installed. Setting USE_STAGING_INSTALL_PATH to YES sets
1599         WK_OVERRIDE_FRAMEWORKS_DIR to $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari.
1600
1601         Account for the possibility of WK_OVERRIDE_FRAMEWORKS_DIR containing spaces.
1602
1603         * Configurations/WebKitLegacy.xcconfig:
1604         - Replace STAGED_FRAMEWORKS_SEARCH_PATH in FRAMEWORK_SEARCH_PATHS with
1605           WK_OVERRIDE_FRAMEWORKS_DIR and add quotes to account for spaces.
1606         - Define WEBKIT_LEGACY_FRAMEWORKS_DIR, PRODUCTION_FRAMEWORKS_DIR, and
1607           WEBCORE_PRIVATE_HEADERS_DIR based on WK_OVERRIDE_FRAMEWORKS_DIR.
1608
1609         * MigrateHeaders.make:
1610           Use a symlink under BUILT_PRODUCTS_DIR to the WebCore Private Headers. Use a
1611           BUILT_PRODUCTS_DIR-based path to the framework instead of a TARGET_BUILD_DIR-based one in
1612           order to avoid spaces.
1613         * migrate-headers.sh:
1614           Make the symlink to WEBCORE_PRIVATE_HEADERS_DIR that the makefile now uses.
1615
1616 2016-01-07  Tim Horton  <timothy_horton@apple.com>
1617
1618         Can't play inline video in a stock WK1 WebView on Mac
1619         https://bugs.webkit.org/show_bug.cgi?id=152860
1620
1621         Rubber-stamped by Jer Noble.
1622
1623         * WebView/WebPreferences.mm:
1624         (+[WebPreferences initialize]):
1625         The default for this preference is supposed to be NO on Mac. It is in
1626         Settings.in, and in WebKit2, but this one place got it wrong.
1627
1628 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1629
1630         Add a setting and preferences to enable display-list drawing. Does nothing yet.
1631         https://bugs.webkit.org/show_bug.cgi?id=152807
1632
1633         Reviewed by Zalan Bujtas.
1634         
1635         WK1 pref for display-list drawing, defaults to off.
1636
1637         * WebView/WebPreferenceKeysPrivate.h:
1638         * WebView/WebPreferences.mm:
1639         (+[WebPreferences initialize]):
1640         (-[WebPreferences displayListDrawingEnabled]):
1641         (-[WebPreferences setDisplayListDrawingEnabled:]):
1642         * WebView/WebPreferencesPrivate.h:
1643         * WebView/WebView.mm:
1644         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1645         (-[WebView _preferencesChanged:]):
1646
1647 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1648
1649         [iOS] Revert overflow:hidden on the body affecting viewport scale (r186786)
1650         https://bugs.webkit.org/show_bug.cgi?id=152803
1651         rdar://problem/22242515
1652
1653         Reviewed by Tim Horton.
1654
1655         * WebView/WebView.mm:
1656         (-[WebView _contentsSizeRespectingOverflow]): Keep this function which is used
1657         by UIKit, but change the implementation to just return the document size.
1658
1659 2016-01-04  Tim Horton  <timothy_horton@apple.com>
1660
1661         Turn on gesture events when building for Yosemite
1662         https://bugs.webkit.org/show_bug.cgi?id=152704
1663         rdar://problem/24042472
1664
1665         Reviewed by Anders Carlsson.
1666
1667         * Configurations/FeatureDefines.xcconfig:
1668
1669 2015-12-31  Andy Estes  <aestes@apple.com>
1670
1671         Replace WTF::move with WTFMove
1672         https://bugs.webkit.org/show_bug.cgi?id=152601
1673
1674         Reviewed by Brady Eidson.
1675
1676         * History/WebHistoryItem.mm:
1677         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1678         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1679         (WebKit::HostedNetscapePluginStream::willSendRequest):
1680         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1681         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
1682         * Plugins/WebNetscapePluginStream.mm:
1683         (WebNetscapePluginStream::willSendRequest):
1684         * Plugins/WebNetscapePluginView.mm:
1685         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
1686         * WebCoreSupport/WebContextMenuClient.mm:
1687         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
1688         * WebCoreSupport/WebFrameLoaderClient.mm:
1689         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1690         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1691         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1692         (WebFrameLoaderClient::dispatchWillSubmitForm):
1693         (WebFrameLoaderClient::createDocumentLoader):
1694         * WebCoreSupport/WebInspectorClient.mm:
1695         (WebInspectorFrontendClient::WebInspectorFrontendClient):
1696         * WebView/WebArchive.mm:
1697         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
1698         * WebView/WebFrame.mm:
1699         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
1700         * WebView/WebHTMLView.mm:
1701         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
1702         * WebView/WebMediaPlaybackTargetPicker.mm:
1703         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
1704         * WebView/WebView.mm:
1705         (-[WebView _loadBackForwardListFromOtherView:]):
1706         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
1707         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
1708
1709 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
1710
1711         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
1712
1713         * History/WebHistoryItem.mm:
1714         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1715
1716 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
1717
1718         Fix naming in HistoryItem to refer to scrollPositions
1719         https://bugs.webkit.org/show_bug.cgi?id=152646
1720
1721         Reviewed by Zalan Bujtas.
1722
1723         HistoryItem stores a scrollPosition, so call it that.
1724
1725         * History/WebHistoryItem.mm:
1726         (-[WebHistoryItem scrollPoint]):
1727
1728 2016-01-01  Jeff Miller  <jeffm@apple.com>
1729
1730         Update user-visible copyright strings to include 2016
1731         https://bugs.webkit.org/show_bug.cgi?id=152531
1732
1733         Reviewed by Alexey Proskuryakov.
1734
1735         * Info.plist:
1736
1737 2015-12-31  David Kilzer  <ddkilzer@apple.com>
1738
1739         Stop using USE(CFNETWORK) path on iOS
1740         https://bugs.webkit.org/show_bug.cgi?id=142540
1741
1742         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
1743
1744         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
1745         Reviewed by Daniel Bates.
1746
1747         * Misc/WebDownload.h: Add header guard to make
1748         NSURLDownloadSPI.h work when pre-declaring NSURLDownload object.
1749         * Misc/WebKitVersionChecks.h: Define
1750         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES
1751         for iOS.
1752         * WebView/WebView.mm:
1753         (-[WebView _commonInitializationWithFrameName:groupName:]): Use
1754         the correct runloop on iOS.
1755         * WebView/WebViewPrivate.h:
1756         (-[WebView(WebPendingPublic) scheduleInRunLoop:forMode:]):
1757         (-[WebView(WebPendingPublic) unscheduleFromRunLoop:forMode:]):
1758         - These are available on iOS now.
1759
1760 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
1761
1762         Clarify that scrollPositionChangedViaPlatformWidget takes offsets
1763         https://bugs.webkit.org/show_bug.cgi?id=152606
1764
1765         Reviewed by Zalan Bujtas.
1766
1767         scrollPositionChangedViaPlatformWidget actually gets scroll offsets, since the
1768         values we get from AppKit are zero-based, so rename to scrollOffsetChangedViaPlatformWidget().
1769         
1770         Change ScrollableArea's setScrollPosition() and requestScrollPositionUpdate() to take
1771         ScrollPositions.
1772         
1773         Add a FIXME noting that willRevealEdge events are probably broken in RTL documents.
1774
1775         * WebView/WebHTMLView.mm:
1776         (-[WebHTMLView _frameOrBoundsChanged]):
1777
1778 2015-12-22  Andy Estes  <aestes@apple.com>
1779
1780         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
1781         https://bugs.webkit.org/show_bug.cgi?id=152463
1782
1783         Reviewed by Alexey Proskuryakov.
1784
1785         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
1786         declared in CFNetworkSPI.h.
1787
1788         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1789         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
1790         * Plugins/WebNetscapePluginStream.mm:
1791         (WebNetscapePluginStream::didReceiveResponse):
1792         * WebCoreSupport/WebSystemInterface.mm:
1793         (InitWebCoreSystemInterface): Deleted.
1794         * WebView/WebPreferences.mm:
1795         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
1796
1797 2015-12-20  Dan Bernstein  <mitz@apple.com>
1798
1799         Remove unused setToolbarHeight
1800         https://bugs.webkit.org/show_bug.cgi?id=152466
1801
1802         Reviewed by Darin Adler.
1803
1804         * WebCoreSupport/WebInspectorClient.h:
1805         * WebCoreSupport/WebInspectorClient.mm::
1806         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
1807
1808 2015-12-19  Dan Bernstein  <mitz@apple.com>
1809
1810         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
1811         https://bugs.webkit.org/show_bug.cgi?id=152462
1812
1813         Reviewed by Alexey Proskuryakov.
1814
1815         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
1816           that became uniform across all OS X versions as a result:
1817
1818         * Configurations/DebugRelease.xcconfig:
1819         * Configurations/FeatureDefines.xcconfig:
1820         * Configurations/Version.xcconfig:
1821         * Configurations/WebKitLegacy.xcconfig:
1822
1823         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
1824           never getting compiled:
1825
1826         * WebCoreSupport/WebInspectorClient.mm:
1827         * WebView/WebDynamicScrollBarsView.mm:
1828         * WebView/WebHTMLView.mm:
1829         * WebView/WebImmediateActionController.h:
1830         * WebView/WebImmediateActionController.mm:
1831         * WebView/WebView.mm:
1832         * WebView/WebViewData.h:
1833         * WebView/WebViewData.mm:
1834         * WebView/WebViewInternal.h:
1835
1836 2015-12-17  Tim Horton  <timothy_horton@apple.com>
1837
1838         Data detector yellow highlight location is vertically mirrored in WebKit1
1839         https://bugs.webkit.org/show_bug.cgi?id=152216
1840         <rdar://problem/23848003>
1841
1842         Reviewed by Darin Adler.
1843
1844         * WebView/WebImmediateActionController.mm:
1845         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1846         Match the conversion we do at every other WK1 TextIndicator construction.
1847
1848 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1849
1850         [Fetch API] Add fetch API compile time flag
1851         https://bugs.webkit.org/show_bug.cgi?id=152254
1852
1853         Reviewed by Darin Adler.
1854
1855         * Configurations/FeatureDefines.xcconfig:
1856
1857 2015-12-13  Tim Horton  <timothy_horton@apple.com>
1858
1859         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
1860         https://bugs.webkit.org/show_bug.cgi?id=150988
1861         <rdar://problem/18993594>
1862
1863         Reviewed by Darin Adler.
1864
1865         * WebCoreSupport/WebContextMenuClient.mm:
1866         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
1867         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
1868
1869 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
1870
1871         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
1872         https://bugs.webkit.org/show_bug.cgi?id=152197
1873
1874         Reviewed by Dean Jackson.
1875
1876         * WebView/WebPreferenceKeysPrivate.h:
1877         * WebView/WebPreferences.mm:
1878         (+[WebPreferences initialize]):
1879         (-[WebPreferences mockCaptureDevicesEnabled]):
1880         (-[WebPreferences setMockCaptureDevicesEnabled:]):
1881         * WebView/WebPreferencesPrivate.h:
1882         * WebView/WebView.mm:
1883         (-[WebView _preferencesChanged:]):
1884
1885 2015-12-11  Beth Dakin  <bdakin@apple.com>
1886
1887         _touchEventRegions should return regions in the view's coordinates
1888         https://bugs.webkit.org/show_bug.cgi?id=152189
1889         -and corresponding-
1890         rdar://problem/23188605
1891
1892         Reviewed by Dan Bernstein.
1893
1894         The comment here was actually out of date. It claimed that touch rectangles 
1895         are in the coordinate system of the document, but we had actually changed 
1896         them to be in the view’s coordinate system in order to fix issues with 
1897         handling touch events in UIWebView. But now we are going back to having the 
1898         touch rectangles be in the document’s coordinate system, so we should fix the 
1899         rtl bugs here by converting to view coordinates before handing the rects off 
1900         to iOS WK1 clients.
1901         * WebView/WebView.mm:
1902         (-[WebView _touchEventRegions]):
1903
1904 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
1905
1906         [MediaStream] Expose media capture devices persistent permissions to WebCore
1907         https://bugs.webkit.org/show_bug.cgi?id=152087
1908
1909         Reviewed by Chris Dumez.
1910
1911         Add methods and helpers for WK1 permission checker interface.
1912         * WebCoreSupport/WebUserMediaClient.h:
1913         * WebCoreSupport/WebUserMediaClient.mm:
1914         (userMediaRequestsMap):
1915         (AddRequestToRequestMap):
1916         (RemoveRequestFromRequestMap):
1917         (userMediaCheckMap):
1918         (AddPermissionCheckToMap):
1919         (RemovePermissionCheckFromMap):
1920         (WebUserMediaClient::WebUserMediaClient):
1921         (WebUserMediaClient::requestUserMediaAccess):
1922         (WebUserMediaClient::cancelUserMediaAccessRequest):
1923         (WebUserMediaClient::checkUserMediaPermission):
1924         (WebUserMediaClient::cancelUserMediaPermissionCheck):
1925         (-[WebUserMediaPolicyListener allow]):
1926         (-[WebUserMediaPolicyListener deny]):
1927         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]):
1928         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]):
1929         (-[WebUserMediaPolicyCheckerListener allow]):
1930         (-[WebUserMediaPolicyCheckerListener deny]):
1931         (-[WebUserMediaPolicyCheckerListener denyOnlyThisRequest]):
1932         (-[WebUserMediaPolicyCheckerListener shouldClearCache]):
1933         (AddRequestToMap): Deleted.
1934         (RemoveRequestFromMap): Deleted.
1935         * WebView/WebUIDelegatePrivate.h:
1936
1937 2015-12-08  Beth Dakin  <bdakin@apple.com>
1938
1939         Follow-up to:
1940         Add support for WebViewAdditions
1941         https://bugs.webkit.org/show_bug.cgi?id=151967
1942
1943         Rubber-stamped by Dan Bernstein.
1944
1945         We should use the Web prefix for all category names.
1946         * WebView/WebView.mm:
1947         (-[WebView updateWebViewAdditions]):
1948         * WebView/WebViewInternal.h:
1949
1950 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
1951
1952         [MediaStream] Rename UserMediaClient and UserMediaController methods
1953         https://bugs.webkit.org/show_bug.cgi?id=152001
1954
1955         Reviewed by Brady Eidson.
1956
1957         * WebCoreSupport/WebUserMediaClient.h:
1958         * WebCoreSupport/WebUserMediaClient.mm:
1959         (WebUserMediaClient::pageDestroyed):
1960         (WebUserMediaClient::requestUserMediaAccess):
1961         (WebUserMediaClient::cancelUserMediaAccessRequest):
1962         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
1963         (-[WebUserMediaPolicyListener cancelUserMediaAccessRequest]):
1964         (WebUserMediaClient::requestPermission): Deleted.
1965         (WebUserMediaClient::cancelRequest): Deleted.
1966         (-[WebUserMediaPolicyListener cancelRequest]): Deleted.
1967
1968 2015-12-07  Alex Christensen  <achristensen@webkit.org>
1969
1970         Build fix after r193675.
1971
1972         * WebView/WebViewData.h:
1973
1974 2015-12-07  Alex Christensen  <achristensen@webkit.org>
1975
1976         Build fix after r193661.
1977
1978         Reviewed by Beth Dakin.
1979
1980         * WebView/WebViewData.h:
1981
1982 2015-12-07  Beth Dakin  <bdakin@apple.com>
1983
1984         Add support for WebViewAdditions
1985         https://bugs.webkit.org/show_bug.cgi?id=151967
1986
1987         Reviewed by Sam Weinig.
1988
1989         * WebCoreSupport/WebEditorClient.mm:
1990         (WebEditorClient::respondToChangedSelection):
1991         * WebView/WebView.mm:
1992         (-[WebView _commonInitializationWithFrameName:groupName:]):
1993         (-[WebView updateWebViewAdditions]):
1994         * WebView/WebViewData.h:
1995         * WebView/WebViewInternal.h:
1996
1997 2015-12-07  Beth Dakin  <bdakin@apple.com>
1998
1999         Hook up request and show for typing candidates in WK1
2000         https://bugs.webkit.org/show_bug.cgi?id=151831
2001         -and corresponding-
2002         <rdar://problem/23751214>
2003
2004         Reviewed by Enrica Casucci.
2005
2006         Add member variables to WebEditorClient. One is a WeakPtrFactory for the 
2007         asynchronous handlers, and the other caches the VisibleSelection at the time 
2008         candidates were requested so that we can make sure the candidates are still 
2009         valid once we receive them.
2010         * WebCoreSupport/WebEditorClient.h:
2011         * WebCoreSupport/WebEditorClient.mm:
2012         (WebEditorClient::WebEditorClient):
2013
2014         Call [NSSpellChecker requestCandidatesForSelectedRange] with the appropriate 
2015         parameters.
2016         (WebEditorClient::requestCandidatesForSelection):
2017
2018         Two helpers to compute information that we need for both of the handlers 
2019         below.
2020         (candidateRangeForSelection):
2021         (candidateWouldReplaceText):
2022
2023         In this handler, we just need to call [NSSpellChecker showCandidates] with 
2024         the appropriate parameters.
2025         (WebEditorClient::handleRequestedCandidates):
2026
2027         Once a candidate is accepted, it should be inserted in the right way.
2028         (WebEditorClient::handleAcceptedCandidate):
2029
2030 2015-12-03  Jer Noble  <jer.noble@apple.com>
2031
2032         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
2033         https://bugs.webkit.org/show_bug.cgi?id=151830
2034
2035         Reviewed by Anders Carlsson.
2036
2037         Add a new WebPreferences property invisibleAutoplayNotPermitted.
2038
2039         * WebView/WebPreferenceKeysPrivate.h:
2040         * WebView/WebPreferences.mm:
2041         (-[WebPreferences invisibleAutoplayNotPermitted]):
2042         (-[WebPreferences setInvisibleAutoplayNotPermitted:]):
2043         * WebView/WebPreferencesPrivate.h:
2044         * WebView/WebView.mm:
2045         (-[WebView _preferencesChanged:]):
2046
2047 2015-12-03  Anders Carlsson  <andersca@apple.com>
2048
2049         Remove Objective-C GC support
2050         https://bugs.webkit.org/show_bug.cgi?id=151819
2051         rdar://problem/23746991
2052
2053         Reviewed by Dan Bernstein.
2054
2055         * Carbon/CarbonWindowAdapter.mm:
2056         (+[CarbonWindowAdapter initialize]): Deleted.
2057         (-[CarbonWindowAdapter finalize]): Deleted.
2058         * Configurations/Base.xcconfig:
2059         * History/WebBackForwardList.mm:
2060         (+[WebBackForwardList initialize]): Deleted.
2061         (-[WebBackForwardList finalize]): Deleted.
2062         * History/WebHistory.mm:
2063         (-[WebHistoryPrivate finalize]): Deleted.
2064         (-[WebHistory finalize]): Deleted.
2065         * History/WebHistoryItem.mm:
2066         (+[WebHistoryItem initialize]): Deleted.
2067         (-[WebHistoryItem finalize]): Deleted.
2068         * Misc/WebElementDictionary.mm:
2069         (+[WebElementDictionary initialize]): Deleted.
2070         (-[WebElementDictionary finalize]): Deleted.
2071         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2072         (+[WebHostedNetscapePluginView initialize]): Deleted.
2073         * Plugins/WebBaseNetscapePluginView.mm:
2074         (-[WebBaseNetscapePluginView finalize]): Deleted.
2075         * Plugins/WebBasePluginPackage.mm:
2076         (-[WebBasePluginPackage finalize]): Deleted.
2077         * Plugins/WebNetscapePluginView.mm:
2078         (+[WebNetscapePluginView initialize]): Deleted.
2079         (-[WebNetscapePluginView finalize]): Deleted.
2080         * Plugins/WebPluginContainerCheck.mm:
2081         (-[WebPluginContainerCheck finalize]): Deleted.
2082         * WebCoreSupport/WebEditorClient.mm:
2083         (+[WebUndoStep initialize]): Deleted.
2084         (-[WebUndoStep finalize]): Deleted.
2085         * WebCoreSupport/WebFrameLoaderClient.mm:
2086         * WebCoreSupport/WebOpenPanelResultListener.mm:
2087         (-[WebOpenPanelResultListener finalize]): Deleted.
2088         * WebCoreSupport/WebSecurityOrigin.mm:
2089         (-[WebSecurityOrigin finalize]): Deleted.
2090         * WebView/WebArchive.mm:
2091         (+[WebArchivePrivate initialize]): Deleted.
2092         * WebView/WebDataSource.mm:
2093         (+[WebDataSource initialize]): Deleted.
2094         (-[WebDataSource finalize]): Deleted.
2095         * WebView/WebDynamicScrollBarsView.mm:
2096         (-[WebDynamicScrollBarsView finalize]): Deleted.
2097         * WebView/WebFrame.mm:
2098         (-[WebFramePrivate setWebFrameView:]):
2099         (-[WebFramePrivate finalize]): Deleted.
2100         (-[WebFrame finalize]): Deleted.
2101         * WebView/WebFrameView.mm:
2102         (-[WebFrameView finalize]): Deleted.
2103         * WebView/WebHTMLRepresentation.mm:
2104         (-[WebHTMLRepresentation finalize]): Deleted.
2105         * WebView/WebHTMLView.mm:
2106         (+[WebHTMLViewPrivate initialize]):
2107         (-[WebHTMLViewPrivate finalize]): Deleted.
2108         (+[WebHTMLView initialize]): Deleted.
2109         (-[WebHTMLView finalize]): Deleted.
2110         * WebView/WebResource.mm:
2111         (+[WebResourcePrivate initialize]): Deleted.
2112         (-[WebResourcePrivate finalize]): Deleted.
2113         * WebView/WebTextIterator.mm:
2114         (+[WebTextIteratorPrivate initialize]): Deleted.
2115         * WebView/WebView.mm:
2116         (-[WebView finalize]): Deleted.
2117         * WebView/WebViewData.mm:
2118         (+[WebViewPrivate initialize]): Deleted.
2119         (-[WebViewPrivate init]): Deleted.
2120         (-[WebViewPrivate finalize]): Deleted.
2121
2122 2015-12-02  Antti Koivisto  <antti@apple.com>
2123
2124         Move ResourceLoadScheduler to WebKit1
2125         https://bugs.webkit.org/show_bug.cgi?id=151743
2126
2127         Reviewed by Alex Christensen.
2128
2129         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2130         (WebKit::HostedNetscapePluginStream::start):
2131         (WebKit::HostedNetscapePluginStream::stop):
2132         * Plugins/WebNetscapePluginStream.mm:
2133         (WebNetscapePluginStream::start):
2134         (WebNetscapePluginStream::stop):
2135         * WebCoreSupport/WebPlatformStrategies.h:
2136         * WebCoreSupport/WebPlatformStrategies.mm:
2137         (WebPlatformStrategies::createLoaderStrategy):
2138         (WebPlatformStrategies::createPasteboardStrategy):
2139         (WebPlatformStrategies::createPluginStrategy):
2140         (WebPlatformStrategies::createBlobRegistry):
2141         (WebPlatformStrategies::cookiesForDOM):
2142         * WebView/WebView.mm:
2143         (-[WebView _dispatchPendingLoadRequests]):
2144         (+[WebView _setLoadResourcesSerially:]):
2145         (+[WebView _HTTPPipeliningEnabled]):
2146
2147 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2148
2149         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2150         https://bugs.webkit.org/show_bug.cgi?id=150792
2151
2152         Reviewed by Saam Barati.
2153
2154         * Configurations/FeatureDefines.xcconfig:
2155
2156 2015-12-01  Commit Queue  <commit-queue@webkit.org>
2157
2158         Unreviewed, rolling out r192914.
2159         https://bugs.webkit.org/show_bug.cgi?id=151734
2160
2161         JSC tests for this change are failing on 32 and 64-bit bots
2162         (Requested by ryanhaddad on #webkit).
2163
2164         Reverted changeset:
2165
2166         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
2167         enable this feature"
2168         https://bugs.webkit.org/show_bug.cgi?id=150792
2169         http://trac.webkit.org/changeset/192914
2170
2171 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2172
2173         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2174         https://bugs.webkit.org/show_bug.cgi?id=150792
2175
2176         Reviewed by Saam Barati.
2177
2178         * Configurations/FeatureDefines.xcconfig:
2179
2180 2015-11-30  Katlyn Graff  <kgraff@apple.com>
2181
2182         Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension
2183         https://bugs.webkit.org/show_bug.cgi?id=151677
2184
2185         Reviewed by Ryosuke Niwa.
2186
2187         * WebView/WebFrame.mm:
2188         (-[WebFrame _cacheabilityDictionary]):
2189
2190 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
2191
2192         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
2193         https://bugs.webkit.org/show_bug.cgi?id=149309
2194         <rdar://problem/22748363>
2195
2196         Reviewed by Brent Fulgham.
2197
2198         * WebView/WebDataSource.mm:
2199         (WebDataSourcePrivate::~WebDataSourcePrivate):
2200         Refine the assertion to treat <rdar://problem/9673866>.
2201
2202 == Rolled over to ChangeLog-2015-11-21 ==