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