15819b838368faff52e44a3fe0e1e5d792736383
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2016-10-18  Sam Weinig  <sam@webkit.org>
2
3         Replace std::experimental::variant with WTF::Variant (or similar)
4         https://bugs.webkit.org/show_bug.cgi?id=163626
5
6         Reviewed by Chris Dumez.
7
8         Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
9         into the WTF namespace.
10
11         * DOM/DOMHTMLSelectElement.mm:
12         (-[DOMHTMLSelectElement add:before:]):
13
14 2016-10-18  Simon Fraser  <simon.fraser@apple.com>
15
16         Add a MiniBrowser menu item to apply page scale in WK1 and WK2
17         https://bugs.webkit.org/show_bug.cgi?id=163627
18
19         Reviewed by Dean Jackson.
20
21         Add an explanatory comment about viewScaleFactor not really being viewScaleFactor.
22
23         * WebView/WebViewPrivate.h:
24
25 2016-10-18  Dean Jackson  <dino@apple.com>
26
27         Remove CSS_SHAPES feature definition. This should always be on.
28         https://bugs.webkit.org/show_bug.cgi?id=163628
29         <rdar://problem/28834613>
30
31         Reviewed by Tim Horton.
32
33         * Configurations/FeatureDefines.xcconfig:
34
35 2016-10-18  Chris Dumez  <cdumez@apple.com>
36
37         Leverage new union type support for HTMLSelectElement.add() / HTMLOptionsCollection.add()
38         https://bugs.webkit.org/show_bug.cgi?id=163608
39
40         Reviewed by Ryosuke Niwa.
41
42         Update add() call sites now that it takes std::variant types in.
43
44         * DOM/DOMHTMLOptionsCollection.mm:
45         (-[DOMHTMLOptionsCollection add:index:]):
46         * DOM/DOMHTMLSelectElement.mm:
47         (-[DOMHTMLSelectElement add:before:]):
48
49 2016-10-18  Anders Carlsson  <andersca@apple.com>
50
51         Get rid of more WebHistoryItem cruft
52         https://bugs.webkit.org/show_bug.cgi?id=163623
53
54         Reviewed by Tim Horton.
55
56         * History/WebHistoryItem.mm:
57         (-[WebHistoryItem initFromDictionaryRepresentation:]):
58         * History/WebHistoryItemPrivate.h:
59
60 2016-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
61
62         Showing and hiding candidates list is very distracting after selecting word
63         https://bugs.webkit.org/show_bug.cgi?id=163609
64         <rdar://problem/28747712>
65
66         Reviewed by Tim Horton.
67
68         Introduce WebView hooks for mousedown and mouseup. See radar for more details.
69
70         * WebView/WebHTMLView.mm:
71         (-[WebHTMLView mouseDown:mouseDown:]):
72         (-[WebHTMLView mouseUp:mouseUp:]):
73         * WebView/WebView.mm:
74         (-[WebView prepareForMouseDown]):
75         (-[WebView prepareForMouseUp]):
76         * WebView/WebViewInternal.h:
77
78 2016-10-17  Anders Carlsson  <andersca@apple.com>
79
80         Move some history specific HistoryItem code to WebHistoryItem
81         https://bugs.webkit.org/show_bug.cgi?id=163567
82
83         Reviewed by Tim Horton.
84
85         * History/HistoryPropertyList.mm:
86         (HistoryPropertyListWriter::writeHistoryItem):
87         * History/WebHistory.mm:
88         (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
89         * History/WebHistoryItem.mm:
90         (-[WebHistoryItem initFromDictionaryRepresentation:]):
91         * History/WebHistoryItemInternal.h:
92         * WebCoreSupport/WebFrameLoaderClient.mm:
93         (addRedirectURL):
94         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
95
96 2016-10-18  Eric Carlson  <eric.carlson@apple.com>
97
98         [MediaStream] Resolve constraints and enumerate devices in the UI process
99         https://bugs.webkit.org/show_bug.cgi?id=162147
100         <rdar://problem/28803569>
101
102         Reviewed by Darin Adler.
103
104         * WebCoreSupport/WebUserMediaClient.h:
105         * WebCoreSupport/WebUserMediaClient.mm:
106         (AddPermissionCheckToMap):
107         (RemovePermissionCheckFromMap):
108         (WebUserMediaClient::pageDestroyed):
109         (WebUserMediaClient::requestUserMediaAccess):
110         (WebUserMediaClient::enumerateMediaDevices):
111         (WebUserMediaClient::cancelMediaDevicesEnumerationRequest):
112         (-[WebUserMediaPolicyListener allow]):
113         (-[WebUserMediaPolicyListener deny]):
114         (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
115         (-[WebUserMediaPolicyCheckerListener cancelMediaDevicesEnumerationRequest]):
116         (-[WebUserMediaPolicyCheckerListener allow]):
117         (-[WebUserMediaPolicyCheckerListener deny]):
118         (WebUserMediaClient::checkUserMediaPermission): Deleted.
119         (WebUserMediaClient::cancelUserMediaPermissionCheck): Deleted.
120         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]): Deleted.
121         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]): Deleted.
122
123 2016-10-17  Antti Koivisto  <antti@apple.com>
124
125         Rename setNeedsStyleRecalc to invalidateStyle
126         https://bugs.webkit.org/show_bug.cgi?id=163542
127
128         Reviewed by Darin Adler.
129
130         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
131         (-[WebHostedNetscapePluginView createPluginLayer]):
132         * Plugins/WebNetscapePluginView.mm:
133         (-[WebNetscapePluginView createPlugin]):
134
135 2016-10-17  Jeremy Jones  <jeremyj@apple.com>
136
137         Enable keyboard in fullscreen.
138         https://bugs.webkit.org/show_bug.cgi?id=163146
139
140         Reviewed by Jer Noble.
141
142         Allow keyboard in fullscreen.
143
144         * WebView/WebView.mm:
145         (-[WebView _supportsFullScreenForElement:withKeyboard:]):
146
147 2016-10-17  Chris Dumez  <cdumez@apple.com>
148
149         Move form.reportValidity() behind InteractiveFormValidation setting
150         https://bugs.webkit.org/show_bug.cgi?id=163550
151
152         Reviewed by Darin Adler.
153
154         Enable InteractiveFormValidation setting by default and link it to
155         RuntimeEnabledFeatures so we can use it in the IDL.
156
157         * WebView/WebView.mm:
158         (-[WebView _preferencesChanged:]):
159         * WebView/WebViewData.mm:
160         (-[WebViewPrivate init]):
161
162 2016-10-17  Anders Carlsson  <andersca@apple.com>
163
164         Fix iOS build.
165
166         * History/WebBackForwardList.mm:
167         (-[WebBackForwardList dictionaryRepresentation]):
168
169 2016-10-17  Anders Carlsson  <andersca@apple.com>
170
171         CTTE some of the BackForwardList member functions
172         https://bugs.webkit.org/show_bug.cgi?id=163555
173
174         Reviewed by Dan Bernstein.
175
176         * History/BackForwardList.h:
177         (BackForwardList::entries):
178         * History/BackForwardList.mm:
179         (BackForwardList::removeItem):
180         (BackForwardList::containsItem):
181         (BackForwardList::entries): Deleted.
182         * History/WebBackForwardList.mm:
183         (-[WebBackForwardList removeItem:]):
184         (-[WebBackForwardList containsItem:]):
185         (-[WebBackForwardList description]):
186
187 2016-10-17  Anders Carlsson  <andersca@apple.com>
188
189         Remove WEBCORE_EXPORT from BackForwardList, it lives in WebKit now
190         https://bugs.webkit.org/show_bug.cgi?id=163551
191
192         Reviewed by Tim Horton.
193
194         * History/BackForwardList.h:
195
196 2016-10-16  Darin Adler  <darin@apple.com>
197
198         Move CSS classes from ExceptionCode to Exception
199         https://bugs.webkit.org/show_bug.cgi?id=163494
200
201         Reviewed by Sam Weinig.
202
203         * DOM/DOMCSSMediaRule.mm:
204         (-[DOMCSSMediaRule insertRule:index:]): Use raiseOnDOMError
205         the new way to handle ExceptionOr instead of ExceptionCode.
206         (-[DOMCSSMediaRule deleteRule:]): Ditto.
207         * DOM/DOMCSSPrimitiveValue.mm:
208         (-[DOMCSSPrimitiveValue setFloatValue:floatValue:]): Ditto.
209         (-[DOMCSSPrimitiveValue getFloatValue:]): Ditto.
210         (-[DOMCSSPrimitiveValue setStringValue:stringValue:]): Ditto.
211         (-[DOMCSSPrimitiveValue getStringValue]): Ditto.
212         (-[DOMCSSPrimitiveValue getCounterValue]): Ditto.
213         (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
214         (-[DOMCSSPrimitiveValue getRGBColorValue]): Ditto.
215         * DOM/DOMCSSRule.mm:
216         (-[DOMCSSRule setCssText:]): Ditto.
217         * DOM/DOMCSSStyleDeclaration.mm:
218         (-[DOMCSSStyleDeclaration setCssText:]): Ditto.
219         (-[DOMCSSStyleDeclaration removeProperty:]): Ditto.
220         (-[DOMCSSStyleDeclaration setProperty:value:priority:]): Ditto.
221         * DOM/DOMCSSStyleSheet.mm:
222         (-[DOMCSSStyleSheet insertRule:index:]): Ditto.
223         (-[DOMCSSStyleSheet deleteRule:]): Ditto.
224         (-[DOMCSSStyleSheet addRule:style:index:]): Ditto.
225         (-[DOMCSSStyleSheet removeRule:]): Ditto.
226         * DOM/DOMCSSValue.mm:
227         (-[DOMCSSValue setCssText:]): Ditto.
228         * DOM/DOMMediaList.mm:
229         (-[DOMMediaList setMediaText:]): Ditto.
230         (-[DOMMediaList deleteMedium:]): Ditto.
231         (-[DOMMediaList appendMedium:]): Ditto.
232
233         * DOM/ExceptionHandlers.h: Added an overload of raiseDOMException
234         that works with a WebCore::Exception&& and overloads of
235         raiseOnDOMError that work with WebCore::ExceptionOr&&.
236         * DOM/ExceptionHandlers.mm:
237         (raiseDOMException): Implemented the new version.
238
239 2016-10-15  Dan Bernstein  <mitz@apple.com>
240
241         REGRESSION (r191699): Contextual menu in Mail compose view doesn’t include any of the standard submenus
242         https://bugs.webkit.org/show_bug.cgi?id=163492
243         <rdar://problem/28654799>
244
245         Reviewed by Darin Adler.
246
247         Test: TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm
248
249         * WebView/WebHTMLView.mm:
250         (createMenuItem): Set the tag for items that have submenus as well.
251
252 2016-10-14  Anders Carlsson  <andersca@apple.com>
253
254         Clean up BackForwardClient
255         https://bugs.webkit.org/show_bug.cgi?id=163454
256
257         Reviewed by Sam Weinig.
258
259         * History/BackForwardList.h:
260         Remove override keywords.
261
262         * History/BackForwardList.mm:
263         (BackForwardList::clearAllPageCaches): Deleted.
264         Remove this, it's no longer used.
265
266         * WebView/WebView.mm:
267         (-[WebView _clearBackForwardCache]): Deleted.
268         * WebView/WebViewPrivate.h:
269         Remove SPI that's no longer used by anyone.
270
271 2016-10-13  Anders Carlsson  <andersca@apple.com>
272
273         Move BackForwardList from WebCore to WebKitLegacy
274         https://bugs.webkit.org/show_bug.cgi?id=163418
275
276         Reviewed by Tim Horton.
277
278         * History/BackForwardList.h: Renamed from Source/WebCore/history/BackForwardList.h.
279         (BackForwardList::create):
280         (BackForwardList::webView):
281         * History/BackForwardList.mm: Renamed from Source/WebCore/history/BackForwardList.cpp.
282         (BackForwardList::BackForwardList):
283         (BackForwardList::close):
284         (BackForwardList::containsItem):
285         * History/WebBackForwardList.mm:
286         (kit):
287         (-[WebBackForwardList initWithBackForwardList:]):
288         (-[WebBackForwardList setPageCacheSize:]):
289         (-[WebBackForwardList pageCacheSize]):
290         * History/WebBackForwardListInternal.h:
291         * WebCoreSupport/WebFrameLoaderClient.mm:
292         * WebView/WebFrameView.mm:
293         * WebView/WebView.mm:
294         (-[WebView _commonInitializationWithFrameName:groupName:]):
295         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
296
297 2016-10-13  Anders Carlsson  <andersca@apple.com>
298
299         Get rid of the HistoryItemVector typedef
300         https://bugs.webkit.org/show_bug.cgi?id=163398
301
302         Reviewed by Beth Dakin.
303
304         Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
305
306         * History/WebBackForwardList.mm:
307         (-[WebBackForwardList dictionaryRepresentation]):
308         (vectorToNSArray):
309         (-[WebBackForwardList backListWithLimit:]):
310         (-[WebBackForwardList forwardListWithLimit:]):
311         (-[WebBackForwardList description]):
312         * History/WebHistoryItem.mm:
313         (-[WebHistoryItem description]):
314
315 2016-10-12  Chris Dumez  <cdumez@apple.com>
316
317         [Web IDL] Drop support for legacy [ConstructorConditional=*]
318         https://bugs.webkit.org/show_bug.cgi?id=163368
319
320         Reviewed by Ryosuke Niwa.
321
322         Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
323
324         * Configurations/FeatureDefines.xcconfig:
325
326 2016-10-12  Beth Dakin  <bdakin@apple.com>
327
328         Adobe Contribute CS 6.5 Trial crashes on launch
329         https://bugs.webkit.org/show_bug.cgi?id=163365
330         -and corresponding-
331         <rdar://problem/28732731>
332
333         Reviewed by Tim Horton.
334
335         * Carbon/CarbonWindowFrame.m:
336         (-[CarbonWindowFrame contentFill]):
337
338 2016-10-11  Daniel Bates  <dabates@apple.com>
339
340         Attempt to fix the Apple Internal Mac build following r207159
341         (https://bugs.webkit.org/show_bug.cgi?id=163244)
342
343         * WebView/WebView.mm:
344         (shouldRequireUserGestureToLoadVideo):
345
346 2016-10-11  Daniel Bates  <dabates@apple.com>
347
348         REGRESSION (r198251): -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO
349         https://bugs.webkit.org/show_bug.cgi?id=163259
350         <rdar://problem/28680515>
351
352         Reviewed by Jer Noble.
353
354         In WebKit1 on iOS we want to require user action to load and play videos by default and
355         allow an embedding app to change this behavior via -[UIWebView setMediaPlaybackRequiresUserAction:].
356         Following r198251, -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO and videos
357         can load and play without being initiated by a user action.
358
359         * WebView/WebPreferences.mm:
360         (+[WebPreferences initialize]): Initialize the default value of the deprecated preference
361         WebKitRequiresUserGestureForMediaPlaybackPreferenceKey to YES on iOS. The value of this
362         preference takes precedence over the values of its replacement preferences
363         WebKitRequiresUserGestureForVideoPlaybackPreferenceKey and WebKitRequiresUserGestureForAudioPlaybackPreferenceKey.
364
365 2016-10-11  Daniel Bates  <dabates@apple.com>
366
367         [iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps
368         https://bugs.webkit.org/show_bug.cgi?id=163244
369         <rdar://problem/27250015>
370
371         Reviewed by Jer Noble.
372
373         Enable or disable the Setting::requiresUserGestureToLoadVideo() in legacy WebKit depending
374         on the version of iOS SDK that the app was linked against. We require a user gesture to
375         begin loading a video as of iOS 10.
376
377         * WebView/WebView.mm:
378         (shouldRequireUserGestureToLoadVideo):
379         (-[WebView _preferencesChanged:]): Modified to pass the WebKit requiresUserGestureToLoadVideo
380         preference to WebCore.
381
382 2016-10-11  Alex Christensen  <achristensen@webkit.org>
383
384         Remove dead networking code
385         https://bugs.webkit.org/show_bug.cgi?id=163263
386
387         Reviewed by Daniel Bates.
388
389         * Misc/WebDownload.mm:
390         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]): Deleted.
391         * Misc/WebDownloadInternal.h:
392         * WebCoreSupport/WebFrameLoaderClient.mm:
393         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
394         * WebView/WebPreferences.mm:
395         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
396         * WebView/WebView.mm:
397         (-[WebView scheduleInRunLoop:forMode:]):
398         (-[WebView unscheduleFromRunLoop:forMode:]):
399
400 2016-10-10  Zan Dobersek  <zdobersek@igalia.com>
401
402         Add ENABLE_ENCRYPTED_MEDIA configuration option
403         https://bugs.webkit.org/show_bug.cgi?id=163219
404
405         Reviewed by Darin Adler.
406
407         * Configurations/FeatureDefines.xcconfig:
408         Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
409         to enable or disable the new EME implementation at build-time.
410
411 2016-10-10  Darin Adler  <darin@apple.com>
412
413         Move NotificationCenter from legacy to new DOM exceptions
414         https://bugs.webkit.org/show_bug.cgi?id=163217
415
416         Reviewed by Chris Dumez.
417
418         * WebView/WebView.mm:
419         (-[WebView _notificationIDForTesting:]): Pass reference to page rather than pointer.
420
421 2016-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
422
423         Support InputEvent.inputType for the new InputEvent spec
424         https://bugs.webkit.org/show_bug.cgi?id=163025
425         <rdar://problem/28658092>
426
427         Reviewed by Darin Adler.
428
429         Accounts for some changes to the EditAction enum in nameForEditAction. See WebCore ChangeLog
430         entry for more details.
431
432         * WebCoreSupport/WebEditorClient.mm:
433         (undoNameForEditAction):
434
435 2016-10-06  Darin Adler  <darin@apple.com>
436
437         Next step on moving to modern way to return DOM exceptions
438         https://bugs.webkit.org/show_bug.cgi?id=163016
439
440         Reviewed by Ryosuke Niwa.
441
442         * DOM/DOMDOMImplementation.mm:
443         (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated for
444         name change from takeReturnValue to releaseReturnValue.
445         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
446
447 2016-10-07  Simon Fraser  <simon.fraser@apple.com>
448
449         [WK1 Mac] Fix repaints of fixed-background elements in layer-backed WebViews
450         https://bugs.webkit.org/show_bug.cgi?id=163154
451         rdar://problem/28674216
452
453         Reviewed by Tim Horton.
454         
455         r55159 added code to counteract AppKit's adjustment of dirty regions during scrolling,
456         by offsetting the dirty rect in -setNeedsDisplayInRect: if the call happens during
457         the NSViewBoundsDidChangeNotification handling.
458         
459         However, AppKit only does dirty region adjustment in the code path that blits ("copy
460         on scroll"), so r55159 produces incorrect behavior in, for example, layer-backed views.
461         
462         Fix by overriding -[NSClipView _canCopyOnScrollForDeltaX:deltaY:] to know if a single
463         scroll is going to blit, and only do adjustments in -setNeedsDisplayInRect: if it is.
464
465         * WebView/WebClipView.h:
466         * WebView/WebClipView.mm:
467         (-[WebClipView _immediateScrollToPoint:]):
468         (-[WebClipView _canCopyOnScrollForDeltaX:deltaY:]):
469         (-[WebClipView currentScrollIsBlit]):
470         * WebView/WebHTMLView.mm:
471         (-[WebHTMLView setNeedsDisplayInRect:]):
472         (-[WebHTMLView drawRect:]):
473
474 2016-10-06  Youenn Fablet  <youenn@apple.com>
475
476         CachedResource client handling methods should take reference
477         https://bugs.webkit.org/show_bug.cgi?id=163014
478
479         Reviewed by Alex Christensen.
480
481         * WebView/WebHTMLView.mm:
482         (promisedDataClient):
483
484 2016-10-05  Myles C. Maxfield  <mmaxfield@apple.com>
485
486         Put variation fonts work behind a compile-time flag
487         https://bugs.webkit.org/show_bug.cgi?id=162949
488
489         Reviewed by Simon Fraser.
490
491         * Configurations/FeatureDefines.xcconfig:
492
493 2016-10-05  Zan Dobersek  <zdobersek@igalia.com>
494
495         Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
496         https://bugs.webkit.org/show_bug.cgi?id=162903
497
498         Reviewed by Alex Christensen.
499
500         Rename build guards for the remaining implementation of the legacy EME API
501         to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
502         of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
503
504         * Configurations/FeatureDefines.xcconfig:
505         * WebView/WebPreferences.mm:
506         (+[WebPreferences initialize]):
507         * WebView/WebView.mm:
508         (-[WebView _preferencesChanged:]):
509
510 2016-10-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
511
512         The dragged image should be the current frame only of the animated image
513         https://bugs.webkit.org/show_bug.cgi?id=162109
514
515         Reviewed by Tim Horton.
516
517         * DOM/DOM.mm:
518         (-[DOMElement image]): Call the Image function with its new name.
519         (-[DOMElement _imageTIFFRepresentation]): Ditto.
520         * Misc/WebElementDictionary.mm:
521         (-[WebElementDictionary _image]): Call the Image function with its new name.
522         * Misc/WebIconDatabase.mm:
523         (-[WebIconDatabase defaultIconWithSize:]): Call snapshotNSImage() to create the icon image.
524         (webGetNSImage): Call the Image function with its new name.
525         * WebCoreSupport/WebContextMenuClient.mm:
526         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call snapshotNSImage() instead of nsImage()..
527         (WebContextMenuClient::contextMenuForEvent): Ditto.
528         * WebView/WebHTMLView.mm:
529         (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
530
531 2016-10-02  Ryan Haddad  <ryanhaddad@apple.com>
532
533         Unreviewed, rolling out r206683.
534
535         This change caused API test WebKit2.FindMatches to fail on
536         Mac.
537
538         Reverted changeset:
539
540         "The dragged image should be the current frame only of the
541         animated image"
542         https://bugs.webkit.org/show_bug.cgi?id=162109
543         http://trac.webkit.org/changeset/206683
544
545 2016-09-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
546
547         The dragged image should be the current frame only of the animated image
548         https://bugs.webkit.org/show_bug.cgi?id=162109
549
550         Reviewed by Tim Horton.
551
552         * DOM/DOM.mm:
553         (-[DOMElement image]): Call the Image function with its new name.
554         (-[DOMElement _imageTIFFRepresentation]): Ditto.
555         * Misc/WebElementDictionary.mm:
556         (-[WebElementDictionary _image]): Call the Image function with its new name.
557         * Misc/WebIconDatabase.mm:
558         (-[WebIconDatabase defaultIconWithSize:]): Call currentFrameNSImage() to create the icon image.
559         (webGetNSImage): Call the Image function with its new name.
560         * WebCoreSupport/WebContextMenuClient.mm:
561         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call currentFrameNSImage() instead of nsImage()..
562         (WebContextMenuClient::contextMenuForEvent): Ditto.
563         * WebView/WebHTMLView.mm:
564         (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
565
566 2016-09-27  Jer Noble  <jer.noble@apple.com>
567
568         Remove deprecated ENCRYPTED_MEDIA implementation.
569         https://bugs.webkit.org/show_bug.cgi?id=161010
570
571         Remove ENABLE_ENCRYPTED_MEDIA.
572
573         Reviewed by Eric Carlson.
574
575         * Configurations/FeatureDefines.xcconfig:
576
577 2016-09-26  Daniel Bates  <dabates@apple.com>
578
579         Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING
580         https://bugs.webkit.org/show_bug.cgi?id=162365
581
582         Reviewed by Simon Fraser.
583
584         * Configurations/FeatureDefines.xcconfig:
585         * WebView/WebFrame.mm:
586         * WebView/WebPreferences.mm:
587         (+[WebPreferences initialize]):
588         * WebView/WebView.mm:
589         (-[WebView _preferencesChanged:]):
590
591 2016-09-25  Antti Koivisto  <antti@apple.com>
592
593         AuthorStyleSheets shouldn't trigger synchronous style resolutions
594         https://bugs.webkit.org/show_bug.cgi?id=162532
595
596         Reviewed by Darin Adler.
597
598         * WebView/WebHTMLView.mm:
599         (-[WebHTMLView reapplyStyles]):
600         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
601
602 2016-09-24  Antti Koivisto  <antti@apple.com>
603
604         Move stylesheet change logic from Document to AuthorStyleSheets
605         https://bugs.webkit.org/show_bug.cgi?id=162488
606
607         Reviewed by Andreas Kling.
608
609         * WebView/WebHTMLView.mm:
610         (-[WebHTMLView reapplyStyles]):
611         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
612
613 2016-09-23  Caitlin Potter  <caitp@igalia.com>
614
615         [JSC] Implement parsing of Async Functions
616         https://bugs.webkit.org/show_bug.cgi?id=161409
617
618         Reviewed by Yusuke Suzuki.
619
620         * Configurations/FeatureDefines.xcconfig:
621
622 2016-09-23  Commit Queue  <commit-queue@webkit.org>
623
624         Unreviewed, rolling out r206311.
625         https://bugs.webkit.org/show_bug.cgi?id=162495
626
627         Broke internal iOS build (Requested by anttik on #webkit).
628
629         Reverted changeset:
630
631         "Move stylesheet change logic from Document to
632         AuthorStyleSheets"
633         https://bugs.webkit.org/show_bug.cgi?id=162488
634         http://trac.webkit.org/changeset/206311
635
636 2016-09-23  Antoine Quint  <graouts@apple.com>
637
638         Add a new runtime flag for work on modern media controls (off by default)
639         https://bugs.webkit.org/show_bug.cgi?id=162420
640         <rdar://problem/27989489>
641
642         Reviewed by Eric Carlson.
643
644         * WebView/WebPreferenceKeysPrivate.h:
645         * WebView/WebPreferences.mm:
646         (-[WebPreferences modernMediaControlsEnabled]):
647         (-[WebPreferences setModernMediaControlsEnabled:]):
648         * WebView/WebPreferencesPrivate.h:
649         * WebView/WebView.mm:
650         (-[WebView _preferencesChanged:]):
651
652 2016-09-21  Anders Carlsson  <andersca@apple.com>
653
654         Support openPaymentSetup API on ApplePaySession object
655         https://bugs.webkit.org/show_bug.cgi?id=162357
656         rdar://problem/26776939
657
658         Reviewed by Tim Horton.
659
660         Add openPaymentSetup stub.
661
662         * WebCoreSupport/WebPaymentCoordinatorClient.h:
663         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
664         (WebPaymentCoordinatorClient::openPaymentSetup):
665
666 2016-09-19  Daniel Bates  <dabates@apple.com>
667
668         Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
669         https://bugs.webkit.org/show_bug.cgi?id=162167
670
671         Reviewed by Simon Fraser.
672
673         * Configurations/FeatureDefines.xcconfig:
674
675 2016-09-19  Joseph Pecoraro  <pecoraro@apple.com>
676
677         Web Inspector: Bring the inspected page's window forward when activating element search
678         https://bugs.webkit.org/show_bug.cgi?id=162114
679         <rdar://problem/28349357>
680
681         Reviewed by Brian Burg.
682
683         * WebCoreSupport/WebInspectorClient.mm:
684         (WebInspectorClient::didSetSearchingForNode):
685         When element search is activated bring the window
686         containing the inspected page to the foreground.
687
688 2016-09-15  Brady Eidson  <beidson@apple.com>
689
690         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
691         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
692
693         Reviewed by Brent Fulgham. 
694
695         * WebCoreSupport/WebFrameLoaderClient.h:
696         * WebCoreSupport/WebFrameLoaderClient.mm:
697         (WebFrameLoaderClient::dispatchDidCommitLoad):
698
699 2016-09-15  Anders Carlsson  <andersca@apple.com>
700
701         This was supposed to be committed with the previous patch!
702
703         * Plugins/WebBasePluginPackage.mm:
704         (pathByResolvingSymlinksAndAliases): Deleted.
705
706 2016-09-15  Anders Carlsson  <andersca@apple.com>
707
708         Replace use of Carbon file system APIs in plug-in loading
709         https://bugs.webkit.org/show_bug.cgi?id=162040
710         rdar://problem/6017896
711
712         Reviewed by Sam Weinig.
713
714         * Plugins/WebBasePluginPackage.mm:
715         (-[WebBasePluginPackage initWithPath:]):
716         Use -[NSString stringByResolvingSymlinksInPath] directly here. We already check for duplicate bundle IDs, so there's no need to try
717         to resolve aliases as well (and the modern WebKit plug-in implementation doesn't do this).
718
719 2016-09-15  Beth Dakin  <bdakin@apple.com>
720
721         Need hasMarkedText on Mac
722         https://bugs.webkit.org/show_bug.cgi?id=162026
723         -and corresponding-
724         rdar://problem/28272353
725
726         Reviewed by Anders Carlsson.
727
728         * WebView/WebHTMLViewInternal.h:
729
730 2016-09-12  Dean Jackson  <dino@apple.com>
731
732         Replace RGBA32 with Color in member variables
733         https://bugs.webkit.org/show_bug.cgi?id=161856
734         <rdar://problem/28254324>
735
736         Reviewed by Simon Fraser.
737
738         In preparation for the Color class to become more than
739         just a 4-byte RGBA value, I went through a few places
740         that were using the RGBA32 type directly, and replaced
741         them with Color. This will make some objects a little
742         bigger e.g. BorderValue and its friends.
743
744         I mostly looked at the places that were using RGBA32 as
745         a member variable. There is still a lot of RGBA32 use
746         around the project, in particular the CSS parser.
747
748         There should be no behaviour change.
749
750         * Misc/WebKitNSStringExtras.mm:
751         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Explicitly
752         call a Color constructor, rather than passing an RGBA32.
753
754 2016-09-13  Chris Dumez  <cdumez@apple.com>
755
756         Drop support for <isindex>
757         https://bugs.webkit.org/show_bug.cgi?id=7139
758
759         Reviewed by Ryosuke Niwa.
760
761         Drop references to isindex.
762
763         * WebCoreSupport/WebEditorClient.mm:
764         (attributesForAttributedStringConversion):
765         * WebView/WebHTMLView.mm:
766         (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
767
768 2016-09-12  Chris Dumez  <cdumez@apple.com>
769
770         Switch remaining users of Document::inPageCache() to pageCacheState()
771         https://bugs.webkit.org/show_bug.cgi?id=161865
772
773         Reviewed by Darin Adler.
774
775         Switch remaining users of Document::inPageCache() to pageCacheState() as
776         the former one is confusing (given that it returns true while the
777         pagehide event is being fired).
778
779         * WebView/WebHTMLView.mm:
780         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]):
781         (-[WebHTMLView setNeedsLayout:]):
782         (-[WebHTMLView setNeedsToApplyStyles:]):
783
784 2016-09-09  Tim Horton  <timothy_horton@apple.com>
785
786         Text replacement candidates don't always overwrite the entire original string
787         https://bugs.webkit.org/show_bug.cgi?id=161779
788         <rdar://problem/28033492>
789
790         Reviewed by Simon Fraser.
791
792         * WebCoreSupport/WebEditorClient.mm:
793         (WebEditorClient::requestCandidatesForSelection):
794         Make use of the shared implementation of contextRangeForCandidateRequest.
795
796 2016-09-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
797
798         Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp
799         https://bugs.webkit.org/show_bug.cgi?id=158684
800
801         Reviewed by Simon Fraser.
802
803         * DOM/DOM.mm:
804         (-[DOMNode getPreviewSnapshotImage:andRects:]):
805         * Misc/WebCache.mm:
806         (+[WebCache imageForURL:]):
807         Replace BitmapImage::getCGImageRef() with BitmapImage::nativeImage().
808
809 2016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
810
811         [Mac] Address some clang static analyzer warnings in WebKit
812         https://bugs.webkit.org/show_bug.cgi?id=161597
813
814         Reviewed by Darin Adler.
815
816         * Misc/WebIconDatabase.h:
817         Remove unused instance variable. It has not been used since r16005 (2006)!
818
819         * Misc/WebSharingServicePickerController.mm:
820         (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
821         Address array leak.
822
823         * WebCoreSupport/WebSelectionServiceController.mm:
824         (WebSelectionServiceController::hasRelevantSelectionServices):
825         Address attachment and cell leak.
826
827         * WebView/WebFullScreenController.h:
828         * WebView/WebImmediateActionController.h:
829         Remove unused instance variables.
830
831 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
832
833         Enable the <meter> element on iOS
834         https://bugs.webkit.org/show_bug.cgi?id=161714
835         rdar://problem/8978410
836
837         Reviewed by Tim Horton.
838
839         Define ENABLE_METER_ELEMENT unconditionally now.
840
841         * Configurations/FeatureDefines.xcconfig:
842
843 2016-09-07  Mark Lam  <mark.lam@apple.com>
844
845         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
846         https://bugs.webkit.org/show_bug.cgi?id=161498
847
848         Reviewed by Geoffrey Garen.
849
850         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
851         (WebKit::NetscapePluginInstanceProxy::evaluate):
852         (WebKit::NetscapePluginInstanceProxy::invoke):
853         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
854         (WebKit::NetscapePluginInstanceProxy::construct):
855         (WebKit::NetscapePluginInstanceProxy::getProperty):
856         (WebKit::NetscapePluginInstanceProxy::setProperty):
857         (WebKit::NetscapePluginInstanceProxy::removeProperty):
858         (WebKit::NetscapePluginInstanceProxy::hasProperty):
859         (WebKit::NetscapePluginInstanceProxy::hasMethod):
860         (WebKit::NetscapePluginInstanceProxy::enumerate):
861         * WebView/WebView.mm:
862         (aeDescFromJSValue):
863
864 2016-09-07  Youenn Fablet  <youenn@apple.com>
865
866         [Streams API] Separate compile flag for ReadableStream and WritableStream
867         https://bugs.webkit.org/show_bug.cgi?id=161044
868
869         Reviewed by Alex Christensen.
870
871         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
872
873         * Configurations/FeatureDefines.xcconfig:
874
875 2016-09-06  Chris Dumez  <cdumez@apple.com>
876
877         Add support for input.minLength / textArea.minLength
878         https://bugs.webkit.org/show_bug.cgi?id=161644
879
880         Reviewed by Darin Adler.
881
882         Update ObjC bindings to reflect method renaming.
883
884         * DOM/DOMHTMLInputElement.mm:
885         (-[DOMHTMLInputElement maxLength]):
886         (-[DOMHTMLInputElement setMaxLength:]):
887         * DOM/DOMHTMLTextAreaElement.mm:
888         (-[DOMHTMLTextAreaElement maxLength]):
889         (-[DOMHTMLTextAreaElement setMaxLength:]):
890
891 2016-09-06  Dan Bernstein  <mitz@apple.com>
892
893         <rdar://problem/8064563> Ugly NSLog in DOMInternal.mm
894
895         Rubber-stamped by Anders Carlsson.
896
897         * DOM/DOMInternal.mm:
898         (-[WebScriptObject _initializeScriptDOMNodeImp]): Removed useless call to NSLog.
899
900 2016-09-06  Ryan Haddad  <ryanhaddad@apple.com>
901
902         Unreviewed, rolling out r205407.
903
904         Not the correct way to implement this functionality
905
906         Reverted changeset:
907
908         "Consult with the FrameLoaderClient about whether or not
909         content extensions should be enabled when loading this URL."
910         https://bugs.webkit.org/show_bug.cgi?id=161441
911         http://trac.webkit.org/changeset/205407
912
913 2016-09-05  Darin Adler  <darin@apple.com>
914
915         More bindings improvements, particularly things not needed for JavaScript bindings
916         https://bugs.webkit.org/show_bug.cgi?id=161572
917
918         Reviewed by Sam Weinig.
919
920         * DOM/DOMDOMImplementation.mm:
921         (-[DOMImplementation hasFeature:version:]): Call SVGTests::hasFeatureForLegacyBindings
922         instead of DOMImplementation::hasFeature. Also removed JSMainThreadNullState
923         since this does not do anything that can invoke JavaScript.
924
925         * DOM/DOMDocument.mm:
926         (-[DOMDocument defaultCharset]): Call defaultCharsetForLegacyBindings. Also removed
927         JSMainThreadNullState.
928
929         * DOM/DOMDocumentType.mm:
930         (-[DOMDocumentType entities]): Changed to simply return nil; same behavior as before,
931         but with no dependency on WebCore. Also removed JSMainThreadNullState.
932         (-[DOMDocumentType notations]): Ditto.
933         (-[DOMDocumentType internalSubset]): Ditto, except empty string rather than nil.
934
935         * DOM/DOMNode.mm:
936         (-[DOMNode isSupported:version:]): Call SVGTests::hasFeatureForLegacyBindings
937         instead of Node::isSupportedForBindings. Also removed JSMainThreadNullState.
938
939 2016-09-04  Joseph Pecoraro  <pecoraro@apple.com>
940
941         Remove unnecessary RetainPtr.
942
943         Review comments on earlier change.
944
945         * WebView/WebImmediateActionController.mm:
946         (-[WebImmediateActionController _defaultAnimationController]):
947
948 2016-09-03  Darin Adler  <darin@apple.com>
949
950         Streamline DOMImplementation, and move it to our new DOM exception system
951         https://bugs.webkit.org/show_bug.cgi?id=161295
952
953         Reviewed by Ryosuke Niwa.
954
955         * DOM/DOMDOMImplementation.mm:
956         (unwrap): Added. Use this instead of the IMPL macro.
957         (-[DOMImplementation dealloc]): Updated to use unwrap.
958         (-[DOMImplementation hasFeature:version:]): Ditto.
959         (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated to work with
960         ExceptionOr.
961         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
962         (-[DOMImplementation createCSSStyleSheet:media:]): Removed exception logic since
963         this function can no longer raise an exception.
964         (-[DOMImplementation createHTMLDocument:]): Updated to use unwrap.
965         (-[DOMImplementation hasFeature::]): Changed to call the non-deprecated version
966         rather than duplicating its implementation. Also moved into the category as defined
967         in the header.
968         (-[DOMImplementation createDocumentType:::]): Ditto.
969         (-[DOMImplementation createDocument:::]): Ditto.
970         (-[DOMImplementation createCSSStyleSheet::]): Ditto.
971
972         * DOM/DOMDocument.mm: Removed unneeded include of DOMImplementation.h.
973         (-[DOMDocument setXmlStandalone:]): Updated since setXMLStandalone no longer can
974         raise an exception.
975
976         * WebView/WebFrame.mm:
977         (-[WebFrame _canProvideDocumentSource]): Updated to use isTextMIMEType in its new
978         location in MIMETypeRegistry instead of in DOMImplementation.
979
980 2016-09-03  Brian Weinstein  <bweinstein@apple.com>
981
982         Implement a stub version of FrameLoaderClient::shouldUseContentExtensionsForURL.
983         https://bugs.webkit.org/show_bug.cgi?id=16144
984
985         Reviewed by Darin Adler.
986
987         * WebCoreSupport/WebFrameLoaderClient.h:
988
989 2016-09-02  Beth Dakin  <bdakin@apple.com>
990
991         Need to updateEditorState if an element change edit-ability without changing 
992         selection
993         https://bugs.webkit.org/show_bug.cgi?id=161546
994         -and corresponding-
995         rdar://problem/27806012
996
997         Reviewed by Ryosuke Niwa.
998
999         Every time WebEditorClient::respondToChangedSelection is called, we now save 
1000         whether the last state was contentEditable. That way in 
1001         updateEditorStateAfterLayoutIfNeeded() we can assess whether or not edit-ability 
1002         has changed. 
1003
1004         * WebCoreSupport/WebEditorClient.h:
1005         * WebCoreSupport/WebEditorClient.mm:
1006         (WebEditorClient::respondToChangedSelection):
1007         (WebEditorClient:: updateEditorStateAfterLayoutIfEditabilityChanged):
1008
1009 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
1010
1011         [Mac] RetainPtr misuse, AnimationController leaks
1012         https://bugs.webkit.org/show_bug.cgi?id=161552
1013
1014         Reviewed by Tim Horton.
1015
1016         * WebView/WebImmediateActionController.mm:
1017         (-[WebImmediateActionController _defaultAnimationController]):
1018
1019 2016-07-08  Jer Noble  <jer.noble@apple.com>
1020
1021         Refactor WebPlaybackSessionModelMediaElement to be client based.
1022         https://bugs.webkit.org/show_bug.cgi?id=159580
1023
1024         Reviewed by Eric Carlson.
1025
1026         No longer necessary to tell the models and interfaces about each other.
1027
1028         * WebView/WebView.mm:
1029         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1030         (-[WebView _clearPlaybackControlsManager]):
1031
1032 2016-09-01  Dan Bernstein  <mitz@apple.com>
1033
1034         Build fix.
1035
1036         * Configurations/FeatureDefines.xcconfig:
1037
1038 2016-09-01  Myles C. Maxfield  <mmaxfield@apple.com>
1039
1040         Clean up TextRun-related code
1041         https://bugs.webkit.org/show_bug.cgi?id=161473
1042
1043         Reviewed by Simon Fraser.
1044
1045         Remove unused #includes.
1046
1047         * WebCoreSupport/WebDragClient.mm:
1048         * WebView/WebView.mm:
1049
1050 2016-08-31  Keith Rollin  <krollin@apple.com>
1051
1052         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
1053         https://bugs.webkit.org/show_bug.cgi?id=160969
1054         <rdar://problem/26068734>
1055
1056         Reviewed by Simon Fraser.
1057
1058         Enable subsystem- and channel-related data and functions when using
1059         RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
1060         and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
1061
1062         * Misc/WebKitLogging.h:
1063         * Misc/WebKitLogging.m:
1064         * WebView/WebView.mm:
1065         (-[WebView _commonInitializationWithFrameName:groupName:]):
1066
1067 2016-08-31  Brady Eidson  <beidson@apple.com>
1068
1069         WK2 Gamepad provider on iOS.
1070         https://bugs.webkit.org/show_bug.cgi?id=161412
1071
1072         Reviewed by Tim Horton.
1073
1074         * Configurations/FeatureDefines.xcconfig:
1075
1076         * WebView/WebView.mm:
1077         (WebKitInitializeGamepadProviderIfNecessary):
1078
1079 2016-08-30  Mark Lam  <mark.lam@apple.com>
1080
1081         Introduce the ThrowScope and force every throw site to instantiate a ThrowScope.
1082         https://bugs.webkit.org/show_bug.cgi?id=161171
1083
1084         Reviewed by Filip Pizlo and Geoffrey Garen.
1085
1086         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1087         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
1088         * Plugins/Hosted/ProxyInstance.mm:
1089         (WebKit::ProxyInstance::invokeMethod):
1090
1091 2016-08-28  Andreas Kling  <akling@apple.com>
1092
1093         document.title setter can't throw.
1094         <https://webkit.org/b/161302>
1095
1096         Reviewed by Antti Koivisto.
1097
1098         * DOM/DOMDocument.mm:
1099         (-[DOMDocument setTitle:]):
1100
1101 2016-08-28  Andreas Kling  <akling@apple.com>
1102
1103         Clean up some .text attribute setters that don't throw.
1104         <https://webkit.org/b/161292>
1105
1106         Reviewed by Darin Adler.
1107
1108         * DOM/DOMHTMLTitleElement.mm:
1109         (-[DOMHTMLTitleElement setText:]):
1110
1111 2016-08-26  Sam Weinig  <sam@webkit.org>
1112
1113         Remove support for ENABLE_LEGACY_WEB_AUDIO
1114         https://bugs.webkit.org/show_bug.cgi?id=161262
1115
1116         Reviewed by Anders Carlsson.
1117
1118         * Configurations/FeatureDefines.xcconfig:
1119         Remove ENABLE_LEGACY_WEB_AUDIO
1120
1121 2016-08-25  Anders Carlsson  <andersca@apple.com>
1122
1123         Re-export DOMException NSStrings after r204717
1124         https://bugs.webkit.org/show_bug.cgi?id=161200
1125         <rdar://problem/27959937>
1126
1127         Reviewed by Alex Christensen.
1128
1129         * DOM/ExceptionHandlers.mm:
1130         (raiseDOMException):
1131         * WebKit.exp:
1132
1133 2016-08-22  Darin Adler  <darin@apple.com>
1134
1135         Move Objective-C DOM bindings from WebCore to legacy WebKit
1136         https://bugs.webkit.org/show_bug.cgi?id=160654
1137
1138         Reviewed by Alex Christensen.
1139
1140         * DOM: Added lots of files to the directory.
1141         The files are just as they were in bindings/objc except that the paths of includes
1142         have been updated as needed, and the code no longer is defined inside the WebCore
1143         namespace, requring changes to various functions and their call sites. Also removed
1144         all the WEBCORE_EXPORT since we export differently here in legacy WebKit.
1145
1146         * DOM/DOMInternal.h: Moved. Replaced createDOMWrapper with initializeDOMWrapperHooks.
1147         * DOM/DOMUtility.mm: Moved.
1148         (createDOMWrapper): Simplified to use toWrapped and not do unneeded namespace tricks.
1149         (disconnectWindowWrapper): Added.
1150         (initializeDOMWrapperHooks): Added.
1151
1152         * MigrateHeaders.make: Removed all the internal headers since they are now just
1153         normal project headers. Added the "DOM" directory to the VPATH. Some of the headers
1154         from WebCore are still being migrated, so we can't remove WebCorePrivateHeaders yet.
1155
1156         * WebCoreSupport/WebEditorClient.h: Updated to return RefPtr<DocumentFragment>.
1157
1158         * WebCoreSupport/WebEditorClient.mm:
1159         (WebEditorClient::documentFragmentFromDelegate): Use RefPtr.
1160
1161         * WebKit.exp: Added exports for all the classes that used to use WEBCORE_EXPORT to
1162         be exported from WebCore.
1163
1164         * WebView/WebFrame.mm:
1165         (-[WebFrame innerLineHeight:]): Moved code from WebCore::Frame::innerLineHeight here.
1166         No longer depend on whether this node happens to be in this frame. Also removed
1167         unneeded null check since a node's document can't be null.
1168
1169         * WebView/WebHTMLView.mm: Removed uneeded include of ExceptionHandlers.h, which
1170         is now here in WebKitLegacy instead of WebCore. But no need to include it at all.
1171
1172         * WebView/WebView.mm:
1173         (-[WebView _commonInitializationWithFrameName:groupName:]): Call
1174         initializeDOMWrapperHooks so WebScriptObject can create DOM binding wrappers when
1175         making a script object for a DOM object, rather than just a generic script object.
1176         (+[WebView enableWebThread]): Added a call to WebCoreObjCDeallocOnWebThread here for
1177         DOMObject along with the other classes. This was done in WebCore before, but DOMObject is now
1178         defined here in legacy WebKit.
1179         (-[WebView styleAtSelectionStart]): Moved code from WebCore::Frame::styleAtSelectionStart here.
1180         Replaced incorrect code that called "new PropertySetCSSStyleDeclaration" with a misleading comment
1181         about reference counting; that code was leaking all the style declarations. Instead use
1182         MutableStyleProperties::ensureCSSStyleDeclaration, which is designed for this purpose.
1183
1184 2016-08-22  Youenn Fablet  <youenn@apple.com>
1185
1186         [Fetch API] Activate fetch api runtime flag by default
1187         https://bugs.webkit.org/show_bug.cgi?id=160452
1188
1189         Reviewed by Alex Christensen.
1190
1191         * WebView/WebPreferences.mm:
1192         (+[WebPreferences initialize]):
1193
1194 2016-08-21  Alex Christensen  <achristensen@webkit.org>
1195
1196         Use Document& instead of Document* when getting cookies
1197         https://bugs.webkit.org/show_bug.cgi?id=161011
1198
1199         Reviewed by Darin Adler.
1200
1201         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1202         (WebKit::NetscapePluginInstanceProxy::getCookies):
1203         (WebKit::NetscapePluginInstanceProxy::setCookies):
1204         * Plugins/WebNetscapePluginView.mm:
1205         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
1206         (-[WebNetscapePluginView setVariable:forURL:value:length:]):
1207
1208 2016-08-16  Simon Fraser  <simon.fraser@apple.com>
1209
1210         Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
1211         https://bugs.webkit.org/show_bug.cgi?id=160923
1212
1213         Reviewed by Tim Horton.
1214
1215         * WebCoreSupport/WebFrameLoaderClient.h:
1216         * WebCoreSupport/WebFrameLoaderClient.mm:
1217         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
1218         (WebFrameLoaderClient::dispatchDidLayout): Deleted.
1219
1220 2016-08-18  Daniel Bates  <dabates@apple.com>
1221
1222         Ld warns of non-existent PrivateFrameworks directory when building WebKit with the public iOS 9.3 SDK
1223         https://bugs.webkit.org/show_bug.cgi?id=160979
1224
1225         Rubber-stamped by Simon Fraser.
1226
1227         Only add the SDK PrivateFrameworks directory to the FRAMEWORK_SEARCH_PATH when building for
1228         iOS Simulator, building with an iOS SDK that does not support text-based stubs, or building
1229         an Apple-internal build.
1230
1231         * Configurations/WebKitLegacy.xcconfig:
1232
1233 2016-08-18  Anders Carlsson  <andersca@apple.com>
1234
1235         Move an NPAPI-only function from WebCore to WebKit
1236         https://bugs.webkit.org/show_bug.cgi?id=160967
1237
1238         Reviewed by Sam Weinig.
1239
1240         * Plugins/WebNetscapePluginView.h:
1241         * Plugins/WebNetscapePluginView.mm:
1242         (-[WebNetscapePluginView getVariable:value:]):
1243         (-[WebNetscapePluginView _destroyPlugin]):
1244
1245 2016-08-18  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
1246
1247         [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
1248         https://bugs.webkit.org/show_bug.cgi?id=156096
1249
1250         Reviewed by Dean Jackson.
1251
1252         Adds:
1253         - Setup interface for enabling runtime flag for Web animations through preferences.
1254
1255         * WebView/WebPreferenceKeysPrivate.h:
1256         * WebView/WebPreferences.mm:
1257         (+[WebPreferences initialize]):
1258         (-[WebPreferences webAnimationsEnabled]):
1259         (-[WebPreferences setWebAnimationsEnabled:]):
1260         * WebView/WebPreferencesPrivate.h:
1261         * WebView/WebView.mm:
1262         (-[WebView _preferencesChanged:]):
1263
1264 2016-08-17  Anders Carlsson  <andersca@apple.com>
1265
1266         Remove a couple of unused WKSI function pointers
1267         https://bugs.webkit.org/show_bug.cgi?id=160946
1268
1269         Reviewed by Dan Bernstein.
1270
1271         * WebCoreSupport/WebSystemInterface.mm:
1272         (InitWebCoreSystemInterface): Deleted.
1273
1274 2016-08-16  Daniel Bates  <dabates@apple.com>
1275
1276         WKSI static library should be named by major iOS revision, not individual updates
1277         https://bugs.webkit.org/show_bug.cgi?id=160727
1278         <rdar://problem/22274848>
1279
1280         Reviewed by Alexey Proskuryakov.
1281
1282         * Configurations/Base.xcconfig:
1283         * Configurations/DebugRelease.xcconfig:
1284         * Configurations/WebKitLegacy.xcconfig:
1285
1286 2016-08-16  Darin Adler  <darin@apple.com>
1287
1288         [Cocoa] Remove dependency on Objective-C bindings in WebKit2 editing code
1289         https://bugs.webkit.org/show_bug.cgi?id=160891
1290
1291         Reviewed by Anders Carlsson.
1292
1293         * WebCoreSupport/WebEditorClient.h: Removed documentFragmentFromAttributedString.
1294
1295         * WebCoreSupport/WebEditorClient.mm:
1296         (attributesForAttributedStringConversion): Replaced the
1297         createExcludedElementsForAttributedStringConversion function with this one.
1298         No good reason to keep the array around instead of the dictionary.
1299         (_WebCreateFragment): Renamed from documentFragmentFromAttributedString.
1300         This is now a global function exported so it can be called by WebCore with
1301         a different way of returning its value.
1302
1303         * WebKit.exp: Added _WebCreateFragment.
1304
1305         * WebView/WebHTMLView.mm:
1306         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1307         Removed long-ago-obsolete workaround for Radar bug 5052369.
1308
1309 2016-08-15  Anders Carlsson  <andersca@apple.com>
1310
1311         Another build fix.
1312
1313         * WebKit.exp:
1314
1315 2016-08-15  Anders Carlsson  <andersca@apple.com>
1316
1317         Fix build.
1318
1319         * Configurations/WebKitLegacy.xcconfig:
1320         * WebKit.mac.exp:
1321
1322 2016-08-15  Anders Carlsson  <andersca@apple.com>
1323
1324         Remove OldWebAssertions.c
1325         https://bugs.webkit.org/show_bug.cgi?id=160862
1326
1327         Reviewed by Dan Bernstein.
1328
1329         These functions were used by an old version of iWeb. The latest version of iWeb no longer uses them.
1330
1331         * Misc/OldWebAssertions.c: Removed.
1332         (WebReportAssertionFailure): Deleted.
1333         (WebReportError): Deleted.
1334
1335 2016-08-15  Anders Carlsson  <andersca@apple.com>
1336
1337         Remove WebKeyGenerator
1338         https://bugs.webkit.org/show_bug.cgi?id=160854
1339
1340         Reviewed by Dan Bernstein.
1341
1342         This SPI class is no longer used by Safari.
1343
1344         * WebCoreSupport/WebKeyGenerator.h: Removed.
1345         * WebCoreSupport/WebKeyGenerator.mm: Removed.
1346         (+[WebKeyGenerator sharedGenerator]): Deleted.
1347         (toWebCertificateParseResult): Deleted.
1348         (-[WebKeyGenerator addCertificatesToKeychainFromData:]): Deleted.
1349         * WebView/WebFrameView.mm:
1350
1351 2016-08-15  Daniel Bates  <dabates@apple.com>
1352
1353         Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
1354         private frameworks and libraries
1355         https://bugs.webkit.org/show_bug.cgi?id=155931
1356         <rdar://problem/25807989>
1357
1358         Reviewed by Dan Bernstein.
1359
1360         Add directory WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/X to the framework search path
1361         where X is the major version of the active iOS SDK.
1362
1363         * Configurations/WebKitLegacy.xcconfig:
1364
1365 2016-08-15  Simon Fraser  <simon.fraser@apple.com>
1366
1367         Add a setting and preferences to enable visual viewport mode
1368         https://bugs.webkit.org/show_bug.cgi?id=160843
1369
1370         Reviewed by Sam Weinig.
1371
1372         Hook up the visualViewportEnabled setting for WebKit1.
1373
1374         * WebView/WebPreferenceKeysPrivate.h:
1375         * WebView/WebPreferences.mm:
1376         (+[WebPreferences initialize]):
1377         (-[WebPreferences visualViewportEnabled]):
1378         (-[WebPreferences setVisualViewportEnabled:]):
1379         * WebView/WebPreferencesPrivate.h:
1380
1381 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
1382
1383         Remove unused includes of wtf headers
1384         https://bugs.webkit.org/show_bug.cgi?id=160839
1385
1386         Reviewed by Alex Christensen.
1387
1388         * History/BinaryPropertyList.cpp:
1389         * History/WebBackForwardList.mm:
1390         * History/WebHistoryItemInternal.h:
1391         * Misc/WebNSFileManagerExtras.mm:
1392         * Plugins/Hosted/NetscapePluginHostProxy.h:
1393         * WebCoreSupport/WebPlatformStrategies.mm:
1394         * WebCoreSupport/WebSelectionServiceController.mm:
1395         * WebCoreSupport/WebUserMediaClient.h:
1396
1397 2016-08-12  Anders Carlsson  <andersca@apple.com>
1398
1399         Move the plug-in and WebGL blacklist code to WebCore
1400         https://bugs.webkit.org/show_bug.cgi?id=160831
1401
1402         Reviewed by Sam Weinig.
1403
1404         Adopt the plug-in and WebGL blacklist code from WebCore instead of using the code from WebKitSystemInterface.
1405
1406         * WebCoreSupport/WebFrameLoaderClient.mm:
1407         (shouldBlockPlugin):
1408         (WebFrameLoaderClient::createPlugin):
1409         (WebFrameLoaderClient::createJavaAppletWidget):
1410         (shouldBlockWebGL):
1411         (WebFrameLoaderClient::webGLPolicyForURL):
1412         (WebFrameLoaderClient::resolveWebGLPolicyForURL):
1413
1414 2016-08-14  Daniel Bates  <dabates@apple.com>
1415
1416         Fix compiler errors when building iOS WebKit using the iOS 10 beta SDK
1417         https://bugs.webkit.org/show_bug.cgi?id=160725
1418
1419         Reviewed by Sam Weinig.
1420
1421         OSAtomicCompareAndSwap32() has been deprecated as of the iOS 10 beta SDK. For now,
1422         silence the complier warning.
1423
1424         * WebView/WebView.mm:
1425         (-[WebView _dispatchTileDidDraw:]):
1426
1427 2016-08-12  Joseph Pecoraro  <pecoraro@apple.com>
1428
1429         Remove always true JSC::Debugger::needPauseHandling virtual method
1430         https://bugs.webkit.org/show_bug.cgi?id=160822
1431
1432         Reviewed by Mark Lam.
1433
1434         * WebView/WebScriptDebugger.h:
1435
1436 2016-08-11  Chris Dumez  <cdumez@apple.com>
1437
1438         Regression(r204268): Mail crashes when trying to compose an email
1439         https://bugs.webkit.org/show_bug.cgi?id=160775
1440
1441         Reviewed by Anders Carlsson.
1442
1443         Properly initialize PageConfiguration.pluginInfoProvider in
1444         [WebView initSimpleHTMLDocumentWithStyle] to avoid a null
1445         dereference in Mail when trying to compose an email.
1446
1447         * WebView/WebView.mm:
1448         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1449
1450 2016-08-10  Simon Fraser  <simon.fraser@apple.com>
1451
1452         Sort the feature flags in the FEATURE_DEFINES lines
1453         https://bugs.webkit.org/show_bug.cgi?id=160742
1454
1455         Reviewed by Anders Carlsson.
1456
1457         * Configurations/FeatureDefines.xcconfig:
1458
1459 2016-08-09  Alex Christensen  <achristensen@webkit.org>
1460
1461         Move NetworkStorageSession management to WebCore
1462         https://bugs.webkit.org/show_bug.cgi?id=160173
1463
1464         Reviewed by Brady Eidson.
1465
1466         * WebCoreSupport/WebFrameNetworkingContext.mm:
1467         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1468         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
1469         * WebCoreSupport/WebPlatformStrategies.mm:
1470         * WebView/WebView.mm:
1471
1472 2016-08-09  Anders Carlsson  <andersca@apple.com>
1473
1474         Instantiate WebKit plug-ins at layout time, instead of at style resolution time
1475         https://bugs.webkit.org/show_bug.cgi?id=160715
1476
1477         Reviewed by Tim Horton.
1478
1479         * WebCoreSupport/WebFrameLoaderClient.mm:
1480         (WebFrameLoaderClient::objectContentType):
1481
1482 2016-08-09  George Ruan  <gruan@apple.com>
1483
1484         Implement functionality of media capture on iOS
1485         https://bugs.webkit.org/show_bug.cgi?id=158945
1486         <rdar://problem/26893343>
1487
1488         Reviewed by Tim Horton.
1489
1490         * Configurations/FeatureDefines.xcconfig: Enable Media Capture feature
1491         for iOS.
1492
1493 2016-08-09  Anders Carlsson  <andersca@apple.com>
1494
1495         Get rid of PluginStrategy
1496         https://bugs.webkit.org/show_bug.cgi?id=160696
1497
1498         Reviewed by Dan Bernstein.
1499
1500         * WebCoreSupport/WebPlatformStrategies.h:
1501         * WebCoreSupport/WebPlatformStrategies.mm:
1502         (WebPlatformStrategies::createPluginStrategy): Deleted.
1503         * WebCoreSupport/WebPluginInfoProvider.h:
1504         * WebCoreSupport/WebPluginInfoProvider.mm:
1505         (WebPluginInfoProvider::setPluginLoadClientPolicy): Deleted.
1506         (WebPluginInfoProvider::clearPluginClientPolicies): Deleted.
1507
1508 2016-08-09  Anders Carlsson  <andersca@apple.com>
1509
1510         Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
1511         https://bugs.webkit.org/show_bug.cgi?id=160694
1512
1513         Reviewed by Dan Bernstein.
1514
1515         * WebCoreSupport/WebPlatformStrategies.h:
1516         * WebCoreSupport/WebPlatformStrategies.mm:
1517         (WebPlatformStrategies::createPluginStrategy):
1518         (WebPlatformStrategies::refreshPlugins): Deleted.
1519         (WebPlatformStrategies::getPluginInfo): Deleted.
1520         (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
1521         (WebPlatformStrategies::setPluginLoadClientPolicy): Deleted.
1522         (WebPlatformStrategies::clearPluginClientPolicies): Deleted.
1523         * WebCoreSupport/WebPluginInfoProvider.mm:
1524         (WebPluginInfoProvider::refreshPlugins):
1525         (WebPluginInfoProvider::getPluginInfo):
1526         (WebPluginInfoProvider::getWebVisiblePluginInfo):
1527
1528 2016-08-08  Anders Carlsson  <andersca@apple.com>
1529
1530         Add a new PluginInfoProvider class, to replace PluginStrategy
1531         https://bugs.webkit.org/show_bug.cgi?id=160670
1532
1533         Reviewed by Sam Weinig.
1534
1535         Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
1536
1537         * WebCoreSupport/WebPluginInfoProvider.h: Added.
1538         * WebCoreSupport/WebPluginInfoProvider.mm: Added.
1539         (WebPluginInfoProvider::singleton):
1540         (WebPluginInfoProvider::WebPluginInfoProvider):
1541         (WebPluginInfoProvider::~WebPluginInfoProvider):
1542         (WebPluginInfoProvider::refreshPlugins):
1543         (WebPluginInfoProvider::getPluginInfo):
1544         (WebPluginInfoProvider::getWebVisiblePluginInfo):
1545         (WebPluginInfoProvider::setPluginLoadClientPolicy):
1546         (WebPluginInfoProvider::clearPluginClientPolicies):
1547         * WebView/WebView.mm:
1548         (-[WebView _commonInitializationWithFrameName:groupName:]):
1549
1550 2016-08-02  Enrica Casucci  <enrica@apple.com>
1551
1552         Allow building with content filtering disabled.
1553         https://bugs.webkit.org/show_bug.cgi?id=160454
1554
1555         Reviewed by Simon Fraser.
1556
1557         * Configurations/FeatureDefines.xcconfig:
1558         * WebCoreSupport/WebFrameLoaderClient.h:
1559         * WebCoreSupport/WebFrameLoaderClient.mm:
1560         (WebFrameLoaderClient::blockedByContentFilterError):
1561
1562 2016-08-02  Anders Carlsson  <andersca@apple.com>
1563
1564         Remove more unused/uninstalled Objective-C DOM bindings
1565         https://bugs.webkit.org/show_bug.cgi?id=160464
1566
1567         Reviewed by Darin Adler.
1568
1569         Stop installing unused headers.
1570
1571         * MigrateHeaders.make:
1572
1573 2016-08-01  Anders Carlsson  <andersca@apple.com>
1574
1575         Bring back a file - it needs to be copied by WebCore.
1576
1577         * MigrateHeaders.make:
1578
1579 2016-08-01  Anders Carlsson  <andersca@apple.com>
1580
1581         Remove another file.
1582
1583         * MigrateHeaders.make:
1584
1585 2016-08-01  Anders Carlsson  <andersca@apple.com>
1586
1587         Remove a file.
1588
1589         * MigrateHeaders.make:
1590
1591 2016-08-01  Anders Carlsson  <andersca@apple.com>
1592
1593         Freeze all the DOMHTML* Objective-C bindings
1594         https://bugs.webkit.org/show_bug.cgi?id=160424
1595
1596         Reviewed by Tim Horton.
1597
1598         Don't migrate DOMHTMLEmbedElementPrivate.h - it was just an empty header.
1599
1600         * MigrateHeaders.make:
1601
1602 2016-07-28  Myles C. Maxfield  <mmaxfield@apple.com>
1603
1604         Remove deprecated SPI for video inline / fullscreen controls
1605         https://bugs.webkit.org/show_bug.cgi?id=160318
1606
1607         Reviewed by Tim Horton.
1608
1609         * WebView/WebPreferenceKeysPrivate.h:
1610         * WebView/WebPreferences.mm:
1611         (+[WebPreferences initialize]): Deleted.
1612         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]): Deleted.
1613         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]): Deleted.
1614         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]): Deleted.
1615         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]): Deleted.
1616         * WebView/WebPreferencesPrivate.h:
1617         * WebView/WebView.mm:
1618         (-[WebView _preferencesChanged:]): Deleted.
1619
1620 2016-07-28  Anders Carlsson  <andersca@apple.com>
1621
1622         Move a Mail.app workaround closer to where it's actually needed
1623         https://bugs.webkit.org/show_bug.cgi?id=160317
1624
1625         Reviewed by Tim Horton.
1626
1627         * WebCoreSupport/WebFrameLoaderClient.mm:
1628         (WebFrameLoaderClient::dispatchWillSendRequest):
1629         * WebView/WebFrame.mm:
1630         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Deleted.
1631
1632 2016-07-28  Anders Carlsson  <andersca@apple.com>
1633
1634         Use a RetainPtr in WebFrameLoaderClient::assignIdentifierToInitialRequest
1635         https://bugs.webkit.org/show_bug.cgi?id=160315
1636
1637         Reviewed by Tim Horton.
1638
1639         * WebCoreSupport/WebFrameLoaderClient.mm:
1640         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
1641
1642 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
1643
1644         Fix the Windows debug build.
1645         
1646         WebResourceLoadScheduler's logging was a holdover from it being in WebCore,
1647         and prior to r203749 WebKit was actually using a WebCore log channel.
1648         
1649         For some reason this doesn't build on Windows debug, so just remove
1650         this logging for now.
1651
1652         * Misc/WebKitLogging.h:
1653
1654 2016-07-26  Myles C. Maxfield  <mmaxfield@apple.com>
1655
1656         [iPhone] Playing a video on tudou.com plays only sound, no video
1657         https://bugs.webkit.org/show_bug.cgi?id=160178
1658         <rdar://problem/27535468>
1659
1660         Reviewed by Eric Carlson and Dan Bernstein.
1661
1662         * WebView/WebPreferenceKeysPrivate.h:
1663         * WebView/WebPreferences.mm:
1664         (+[WebPreferences initialize]):
1665         (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]):
1666         (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]):
1667         * WebView/WebPreferencesPrivate.h:
1668         * WebView/WebView.mm:
1669         (-[WebView _preferencesChanged:]):
1670
1671 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
1672
1673         Allow LOG macros to be used outside the namespace, and other logging cleanup
1674         https://bugs.webkit.org/show_bug.cgi?id=160216
1675
1676         Reviewed by Anders Carlsson.
1677
1678         Fix some issues with the LOG macros.
1679         
1680         First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
1681         its log channels outside of the namespace (they are protected by a unique prefix anyway).
1682         
1683         Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
1684         into LogMacros.h, which is exported from WebCore as a private header.
1685         
1686         Third, split the Logging.h header into two. Logging.h remains for framework-internal
1687         log channels and log macros. Add LogInitialization.h which is external, and used to
1688         initialize the channels.
1689         
1690         Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
1691
1692         * Misc/WebKitLogging.h:
1693         * Misc/WebKitLogging.m:
1694         * WebView/WebView.mm:
1695         (-[WebView _commonInitializationWithFrameName:groupName:]):
1696
1697 2016-07-21  Myles C. Maxfield  <mmaxfield@apple.com>
1698
1699         Remove support for deprecated SPI inlineMediaPlaybackRequiresPlaysInlineAttribute
1700         https://bugs.webkit.org/show_bug.cgi?id=160066
1701
1702         Reviewed by Dean Jackson.
1703
1704         * WebView/WebPreferenceKeysPrivate.h:
1705         * WebView/WebPreferences.mm:
1706         (+[WebPreferences initialize]): Deleted.
1707         (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]): Deleted.
1708         (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]): Deleted.
1709         * WebView/WebPreferencesPrivate.h:
1710         * WebView/WebView.mm:
1711         (-[WebView _preferencesChanged:]): Deleted.
1712
1713 2016-07-21  Myles C. Maxfield  <mmaxfield@apple.com>
1714
1715         [iPhone] Playing a video on tudou.com plays only sound, no video
1716         https://bugs.webkit.org/show_bug.cgi?id=159967
1717         <rdar://problem/26964090>
1718
1719         Reviewed by Jon Lee, Jeremy Jones, and Anders Carlsson.
1720
1721         Add the two preferences to WebPreferences.
1722
1723         * WebView/WebPreferenceKeysPrivate.h:
1724         * WebView/WebPreferences.mm:
1725         (+[WebPreferences initialize]):
1726         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
1727         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
1728         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
1729         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
1730         * WebView/WebPreferencesPrivate.h:
1731         * WebView/WebView.mm:
1732         (-[WebView _preferencesChanged:]):
1733
1734 2016-07-20  Commit Queue  <commit-queue@webkit.org>
1735
1736         Unreviewed, rolling out r203471.
1737         https://bugs.webkit.org/show_bug.cgi?id=160003
1738
1739         many iOS-simulator tests are failing (Requested by litherum on
1740         #webkit).
1741
1742         Reverted changeset:
1743
1744         "[iPhone] Playing a video on tudou.com plays only sound, no
1745         video"
1746         https://bugs.webkit.org/show_bug.cgi?id=159967
1747         http://trac.webkit.org/changeset/203471
1748
1749 2016-07-20  Myles C. Maxfield  <mmaxfield@apple.com>
1750
1751         [iPhone] Playing a video on tudou.com plays only sound, no video
1752         https://bugs.webkit.org/show_bug.cgi?id=159967
1753         <rdar://problem/26964090>
1754
1755         Reviewed by Jon Lee.
1756
1757         Add the two preferences to WebPreferences.
1758
1759         * WebView/WebPreferenceKeysPrivate.h:
1760         * WebView/WebPreferences.mm:
1761         (+[WebPreferences initialize]):
1762         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
1763         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
1764         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
1765         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
1766         * WebView/WebPreferencesPrivate.h:
1767         * WebView/WebView.mm:
1768         (-[WebView _preferencesChanged:]):
1769
1770 2016-07-19  Andy Estes  <aestes@apple.com>
1771
1772         Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
1773         https://bugs.webkit.org/show_bug.cgi?id=159956
1774
1775         Reviewed by Dan Bernstein.
1776
1777         * Misc/WebKitErrors.h: Moved definition of WebKitErrorFrameLoadBlockedByContentFilter from here ...
1778         * Misc/WebKitErrorsPrivate.h: to here.
1779
1780 2016-07-18  Anders Carlsson  <andersca@apple.com>
1781
1782         WebKit nightly fails to build on macOS Sierra
1783         https://bugs.webkit.org/show_bug.cgi?id=159902
1784         rdar://problem/27365672
1785
1786         Reviewed by Tim Horton.
1787
1788         * icu/unicode/ucurr.h: Added.
1789         Add ucurr.h from ICU.
1790
1791 2016-07-17  Sam Weinig  <sam@webkit.org>
1792
1793         [WebKit API] Add SPI to track multiple navigations caused by a single user gesture
1794         <rdar://problem/26554137>
1795         https://bugs.webkit.org/show_bug.cgi?id=159856
1796
1797         Reviewed by Dan Bernstein.
1798
1799         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1800         (WebKit::NetscapePluginInstanceProxy::evaluate):
1801         * Plugins/WebNetscapePluginView.mm:
1802         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
1803         Update for new UserGestureIndicator interface.
1804
1805 2016-07-16  Ryosuke Niwa  <rniwa@webkit.org>
1806
1807         Rename fastGetAttribute to attributeWithoutSynchronization
1808         https://bugs.webkit.org/show_bug.cgi?id=159852
1809
1810         Reviewed by Darin Adler.
1811
1812         * WebView/WebHTMLRepresentation.mm:
1813         (matchLabelsAgainstElement):
1814
1815 2016-07-15  Chris Dumez  <cdumez@apple.com>
1816
1817         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible
1818         https://bugs.webkit.org/show_bug.cgi?id=159793
1819
1820         Reviewed by Ryosuke Niwa.
1821
1822         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance.
1823
1824         * WebView/WebHTMLRepresentation.mm:
1825         (matchLabelsAgainstElement):
1826
1827 2016-07-14  Alex Christensen  <achristensen@webkit.org>
1828
1829         Use SocketProvider to create SocketStreamHandles
1830         https://bugs.webkit.org/show_bug.cgi?id=159774
1831
1832         Reviewed by Brady Eidson.
1833
1834         * Misc/WebSocketProvider.h: Removed.
1835         * Misc/WebSocketProvider.mm: Removed.
1836         * WebView/WebView.mm:
1837         (-[WebView _commonInitializationWithFrameName:groupName:]):
1838         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1839
1840 2016-07-14  Csaba Osztrogonác  <ossy@webkit.org>
1841
1842         Fix the !ENABLE(WEB_SOCKETS) build after r202930
1843         https://bugs.webkit.org/show_bug.cgi?id=159768
1844
1845         Reviewed by Alex Christensen.
1846
1847         * Misc/WebSocketProvider.h:
1848
1849 2016-07-13  Beth Dakin  <bdakin@apple.com>
1850
1851         Add more candidate tests
1852         https://bugs.webkit.org/show_bug.cgi?id=159730
1853
1854         Reviewed by Tim Horton.
1855
1856         Move shouldRequestCandidates from WebViewInternal to WebViewPrivate so that 
1857         we can use it in tests. 
1858         * WebView/WebViewInternal.h:
1859         * WebView/WebViewPrivate.h:
1860
1861 2016-07-13  Enrica Casucci  <enrica@apple.com>
1862
1863         Update supported platforms in xcconfig files to match the sdk names.
1864         https://bugs.webkit.org/show_bug.cgi?id=159728
1865
1866         Reviewed by Tim Horton.
1867
1868         * Configurations/Base.xcconfig:
1869
1870 2016-07-12  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1871
1872         Remove ENABLE_CSS3_TEXT_LINE_BREAK flag
1873         https://bugs.webkit.org/show_bug.cgi?id=159671
1874
1875         Reviewed by Csaba Osztrogonác.
1876
1877         ENABLE_CSS3_TEXT_LINE_BREAK feature was implemented without guards.
1878         https://bugs.webkit.org/show_bug.cgi?id=89235
1879
1880         So this guard can be removed in build scripts.
1881
1882         * Configurations/FeatureDefines.xcconfig:
1883
1884 2016-07-11  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
1885
1886         Purge PassRefPtr in platform/efl and platform/mac 
1887         https://bugs.webkit.org/show_bug.cgi?id=159548
1888
1889         Reviewed by Alex Christensen.
1890
1891         Remove all use of PassRefPtr and clean up unnecessary tabs and spaces.
1892
1893         * WebCoreSupport/WebPlatformStrategies.h:
1894         * WebCoreSupport/WebPlatformStrategies.mm:
1895         (WebPlatformStrategies::setBufferForType):
1896
1897 2016-07-11  Enrica Casucci  <enrica@apple.com>
1898
1899         Add synthetic click origin to WKNavigationAction.
1900         https://bugs.webkit.org/show_bug.cgi?id=159584
1901         rdar://problem/25610422
1902
1903         Reviewed by Tim Horton.
1904
1905         * WebView/WebFrame.mm:
1906         (-[WebFrame _dragSourceEndedAt:operation:]):
1907         * WebView/WebPDFView.mm:
1908         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1909
1910 2016-07-11  Anders Carlsson  <andersca@apple.com>
1911
1912         Able to open multiple payment sheets in Safari at the same time
1913         https://bugs.webkit.org/show_bug.cgi?id=159637
1914         rdar://problem/26411339
1915
1916         Reviewed by Beth Dakin.
1917
1918         Update for WebCore changes.
1919
1920         * WebCoreSupport/WebPaymentCoordinatorClient.h:
1921         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
1922         (WebPaymentCoordinatorClient::showPaymentUI):
1923
1924 2016-07-08  Andy Estes  <aestes@apple.com>
1925
1926         [Content Filtering] Load blocked pages more like other error pages are loaded
1927         https://bugs.webkit.org/show_bug.cgi?id=159485
1928         <rdar://problem/26014076>
1929
1930         Reviewed by Brady Eidson.
1931
1932         * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
1933         * Misc/WebKitErrors.m:
1934         (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
1935         * WebCoreSupport/WebFrameLoaderClient.h:
1936         * WebCoreSupport/WebFrameLoaderClient.mm:
1937         (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
1938
1939 2016-07-08  Commit Queue  <commit-queue@webkit.org>
1940
1941         Unreviewed, rolling out r202944.
1942         https://bugs.webkit.org/show_bug.cgi?id=159570
1943
1944         caused some tests to crash under GuardMalloc (Requested by
1945         estes on #webkit).
1946
1947         Reverted changeset:
1948
1949         "[Content Filtering] Load blocked pages more like other error
1950         pages are loaded"
1951         https://bugs.webkit.org/show_bug.cgi?id=159485
1952         http://trac.webkit.org/changeset/202944
1953
1954 2016-07-08  Jiewen Tan  <jiewen_tan@apple.com>
1955
1956         Define DYLD_MACOSX_VERSION_10_12
1957         https://bugs.webkit.org/show_bug.cgi?id=159525
1958         <rdar://problem/26250296>
1959
1960         Reviewed by Brent Fulgham.
1961
1962         * WebView/WebView.mm:
1963         (shouldConvertInvalidURLsToBlank):
1964         Replace 0x000A0C00 with DYLD_MACOSX_VERSION_10_12.
1965
1966 2016-07-07  Beth Dakin  <bdakin@apple.com>
1967
1968         API Test DoNotLeakWebView.ViewThatLoadsEditableArea times out on macOS Sierra
1969         https://bugs.webkit.org/show_bug.cgi?id=159532
1970         -and corresponding-
1971         rdar://problem/27177179
1972
1973         Reviewed by Tim Horton.
1974
1975         * WebView/WebView.mm:
1976         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
1977         (-[WebView forceRequestCandidatesForTesting]):
1978         (-[WebView shouldRequestCandidates]):
1979         * WebView/WebViewPrivate.h:
1980
1981 2016-07-07  Andy Estes  <aestes@apple.com>
1982
1983         [Content Filtering] Load blocked pages more like other error pages are loaded
1984         https://bugs.webkit.org/show_bug.cgi?id=159485
1985         <rdar://problem/26014076>
1986
1987         Reviewed by Brady Eidson.
1988
1989         * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
1990         * Misc/WebKitErrors.m:
1991         (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
1992         * WebCoreSupport/WebFrameLoaderClient.h:
1993         * WebCoreSupport/WebFrameLoaderClient.mm:
1994         (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
1995
1996 2016-07-07  Alex Christensen  <achristensen@webkit.org>
1997
1998         Use SocketProvider to create WebSocketChannels
1999         https://bugs.webkit.org/show_bug.cgi?id=158776
2000
2001         Reviewed by Brent Fulgham.
2002
2003         * Misc/WebSocketProvider.mm: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp.
2004         (WebSocketProvider::createWebSocketChannel):
2005         (WebCore::ThreadableWebSocketChannel::create): Deleted.
2006         * Misc/WebSocketProvider.h:
2007         * WebView/WebView.mm:
2008         (-[WebView _commonInitializationWithFrameName:groupName:]):
2009         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2010
2011 2016-07-06  Benjamin Poulain  <bpoulain@apple.com>
2012
2013         [JSC] Unify how we throw TypeError from C++
2014         https://bugs.webkit.org/show_bug.cgi?id=159500
2015
2016         Reviewed by Saam Barati.
2017
2018         * Plugins/Hosted/ProxyInstance.mm:
2019         (WebKit::ProxyInstance::invokeMethod):
2020
2021 2016-07-01  Youenn Fablet  <youennf@gmail.com>
2022
2023         Add a runtime flag for DOM iterators
2024         https://bugs.webkit.org/show_bug.cgi?id=159300
2025
2026         Reviewed by Alex Christensen.
2027
2028         * WebView/WebPreferenceKeysPrivate.h:
2029         * WebView/WebPreferences.mm:
2030         (-[WebPreferences DOMIteratorEnabled]):
2031         (-[WebPreferences setDOMIteratorEnabled:]):
2032         * WebView/WebPreferencesPrivate.h:
2033         * WebView/WebView.mm:
2034         (-[WebView _preferencesChanged:]):
2035
2036 2016-06-30  Jiewen Tan  <jiewen_tan@apple.com>
2037
2038         Create a generic "linked-on-or-after" check for new CSP Rules
2039         https://bugs.webkit.org/show_bug.cgi?id=159322
2040         <rdar://problem/27117220>
2041
2042         Reviewed by Brent Fulgham.
2043
2044         * WebView/WebView.mm:
2045         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol):
2046
2047 2016-06-30  Anders Carlsson  <andersca@apple.com>
2048
2049         Mail crashes on launch at WebCore::PaymentCoordinator::~PaymentCoordinator() + 20
2050         https://bugs.webkit.org/show_bug.cgi?id=159306
2051         rdar://problem/27092107
2052
2053         Reviewed by Tim Horton.
2054
2055         * WebView/WebView.mm:
2056         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2057         Create a WebPaymentCoordinatorClient. Remove an unneeded #import.
2058
2059         (-[WebView _commonInitializationWithFrameName:groupName:]):
2060         Remove an unneeded #import.
2061
2062 2016-06-27  Anders Carlsson  <andersca@apple.com>
2063
2064         WebKit::WebPaymentCoordinator leak
2065         https://bugs.webkit.org/show_bug.cgi?id=159168
2066         rdar://problem/26929772
2067
2068         Reviewed by Beth Dakin.
2069
2070         Update for WebCore changes.
2071
2072         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2073         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2074         (WebPaymentCoordinatorClient::paymentCoordinatorDestroyed):
2075         (WebPaymentCoordinatorClient::mainFrameDestroyed): Deleted.
2076
2077 2016-06-27  Tim Horton  <timothy_horton@apple.com>
2078
2079         REGRESSION (r189052): Clipping occurs when using context menu to Look Up words within the Dictionary app
2080         https://bugs.webkit.org/show_bug.cgi?id=159184
2081         <rdar://problem/26370206>
2082
2083         Reviewed by Beth Dakin.
2084
2085         * WebView/WebHTMLView.mm:
2086         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2087         * WebView/WebImmediateActionController.h:
2088         * WebView/WebImmediateActionController.mm:
2089         (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
2090         (-[WebImmediateActionController _animationControllerForText]):
2091         (dictionaryPopupInfoForRange): Deleted.
2092         WebImmediateActionController's code to make a DictionaryPopupInfo and TextIndicator
2093         from a Range in WebKit1 is much better than WebHTMLView's; use it in both cases.
2094
2095 2016-06-24  Jer Noble  <jer.noble@apple.com>
2096
2097         Playback controls refer to wrong element when playing multiple items in a page.
2098         https://bugs.webkit.org/show_bug.cgi?id=159076
2099         <rdar://problem/26953532>
2100
2101         Reviewed by Beth Dakin.
2102
2103         clearPlaybackControlsManager() no longer takes a parameter.
2104
2105         * WebCoreSupport/WebChromeClient.h:
2106         * WebCoreSupport/WebChromeClient.mm:
2107         (WebChromeClient::clearPlaybackControlsManager):
2108         * WebView/WebView.mm:
2109         (-[WebView _clearPlaybackControlsManager]): Renamed from _clearPlaybackControlsManagerForMediaElement:.
2110         * WebView/WebViewInternal.h:
2111
2112 2016-06-23  Alex Christensen  <achristensen@webkit.org>
2113
2114         Remove unused didCancelAuthenticationChallenge
2115         https://bugs.webkit.org/show_bug.cgi?id=158819
2116
2117         Reviewed by David Kilzer.
2118
2119         * Misc/WebDownload.mm:
2120         (-[WebDownloadInternal download:didCancelAuthenticationChallenge:]): Deleted.
2121         * WebCoreSupport/WebFrameLoaderClient.h:
2122         * WebCoreSupport/WebFrameLoaderClient.mm:
2123         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted.
2124         * WebView/WebDelegateImplementationCaching.h:
2125         * WebView/WebView.mm:
2126         (-[WebView _cacheResourceLoadDelegateImplementations]):
2127
2128 2016-06-23  John Wilander  <wilander@apple.com>
2129
2130         Enable window.open() for existing versions of Secret Society app
2131         https://bugs.webkit.org/show_bug.cgi?id=159049
2132         <rdar://problem/26528349>
2133
2134         Reviewed by Andy Estes.
2135
2136         The Secret Society Hidden Mystery app has a broken version check treating iOS 10
2137         as iOS 1 on iPads. Therefore it believes it can use window.open() in a tap
2138         handler. We should allow the existing versions of the app to do this to not break
2139         them.
2140
2141         * WebView/WebView.mm:
2142         (shouldAllowWindowOpenWithoutUserGesture):
2143             Added.
2144         (shouldConvertInvalidURLsToBlank):
2145             Changed hex number to constant DYLD_IOS_VERSION_10_0.
2146
2147 2016-06-22  Anders Carlsson  <andersca@apple.com>
2148
2149         Move the WebKitLegacy Apple Pay code to the open source repository
2150         https://bugs.webkit.org/show_bug.cgi?id=159035
2151
2152         Reviewed by Tim Horton.
2153
2154         * WebCoreSupport/WebPaymentCoordinatorClient.h: Added.
2155         * WebCoreSupport/WebPaymentCoordinatorClient.mm: Added.
2156         (WebPaymentCoordinatorClient::WebPaymentCoordinatorClient):
2157         (WebPaymentCoordinatorClient::~WebPaymentCoordinatorClient):
2158         (WebPaymentCoordinatorClient::supportsVersion):
2159         (WebPaymentCoordinatorClient::canMakePayments):
2160         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
2161         (WebPaymentCoordinatorClient::showPaymentUI):
2162         (WebPaymentCoordinatorClient::completeMerchantValidation):
2163         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
2164         (WebPaymentCoordinatorClient::completeShippingContactSelection):
2165         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
2166         (WebPaymentCoordinatorClient::completePaymentSession):
2167         (WebPaymentCoordinatorClient::abortPaymentSession):
2168         (WebPaymentCoordinatorClient::mainFrameDestroyed):
2169         * WebKitAdditions.mm: Removed.
2170         * WebView/WebView.mm:
2171         (-[WebView _commonInitializationWithFrameName:groupName:]):
2172
2173 2016-06-21  Anders Carlsson  <andersca@apple.com>
2174
2175         Fix build.
2176
2177         * Configurations/FeatureDefines.xcconfig:
2178
2179 2016-06-21  Anders Carlsson  <andersca@apple.com>
2180
2181         Begin moving the Apple Pay code to the open source repository
2182         https://bugs.webkit.org/show_bug.cgi?id=158998
2183
2184         Reviewed by Tim Horton.
2185
2186         * Configurations/FeatureDefines.xcconfig:
2187         Add ENABLE_APPLE_PAY.
2188
2189 2016-06-20  Simon Fraser  <simon.fraser@apple.com>
2190
2191         Focus event dispatched in iframe causes parent document to scroll incorrectly
2192         https://bugs.webkit.org/show_bug.cgi?id=158629
2193         rdar://problem/26521616
2194
2195         Reviewed by Tim Horton.
2196         
2197         Pass SelectionRevealMode::Reveal in existing code.
2198
2199         * WebView/WebFrame.mm:
2200         (-[WebFrame _scrollDOMRangeToVisible:]):
2201         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
2202         (-[WebFrame revealSelectionAtExtent:]):
2203         * WebView/WebHTMLView.mm:
2204         (-[WebHTMLView jumpToSelection:]):
2205         (-[WebHTMLView centerSelectionInVisibleArea:]):
2206
2207 2016-06-21  Amir Alavi  <aalavi@apple.com>
2208
2209         Upstream WKHTTPCookiesForURL from WebKitSystemInterface to OpenSource
2210         https://bugs.webkit.org/show_bug.cgi?id=158967
2211
2212         Reviewed by Brent Fulgham.
2213
2214         * WebCoreSupport/WebSystemInterface.mm:
2215         (InitWebCoreSystemInterface): Deleted.
2216
2217 2016-06-20  Commit Queue  <commit-queue@webkit.org>
2218
2219         Unreviewed, rolling out r202243.
2220         https://bugs.webkit.org/show_bug.cgi?id=158972
2221
2222         Broke Windows build and iOS tests (Requested by ap on
2223         #webkit).
2224
2225         Reverted changeset:
2226
2227         "Focus event dispatched in iframe causes parent document to
2228         scroll incorrectly"
2229         https://bugs.webkit.org/show_bug.cgi?id=158629
2230         http://trac.webkit.org/changeset/202243
2231
2232 2016-06-20  Simon Fraser  <simon.fraser@apple.com>
2233
2234         Focus event dispatched in iframe causes parent document to scroll incorrectly
2235         https://bugs.webkit.org/show_bug.cgi?id=158629
2236         rdar://problem/26521616
2237
2238         Reviewed by Tim Horton.
2239         
2240         Pass SelectionRevealMode::Reveal in existing code.
2241
2242         * WebView/WebFrame.mm:
2243         (-[WebFrame _scrollDOMRangeToVisible:]):
2244         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
2245         (-[WebFrame revealSelectionAtExtent:]):
2246         * WebView/WebHTMLView.mm:
2247         (-[WebHTMLView jumpToSelection:]):
2248         (-[WebHTMLView centerSelectionInVisibleArea:]):
2249
2250 2016-06-20  Keith Rollin  <krollin@apple.com>
2251
2252         Remove RefPtr::release() and change calls sites to use WTFMove()
2253         https://bugs.webkit.org/show_bug.cgi?id=158369
2254
2255         Reviewed by Chris Dumez.
2256
2257         RefPtr::release() releases its managed pointer awkwardly. It's more
2258         direct and clearer to use WTFMove to transfer ownership of the managed
2259         pointer.
2260
2261         As part of this cleanup, also change a lot of explicit data types to
2262         'auto'.
2263
2264         * Plugins/Hosted/NetscapePluginHostManager.mm:
2265         (WebKit::NetscapePluginHostManager::instantiatePlugin):
2266         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2267         (WebKit::NetscapePluginInstanceProxy::create):
2268         (WebKit::NetscapePluginInstanceProxy::loadRequest):
2269         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2270         * WebCoreSupport/WebFrameLoaderClient.mm:
2271         (-[WebFramePolicyListener receivedPolicyDecision:]):
2272         * WebCoreSupport/WebSecurityOrigin.mm:
2273         (-[WebSecurityOrigin initWithURL:]):
2274         * WebView/WebArchive.mm:
2275         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2276         (-[WebArchive initWithData:]):
2277         * WebView/WebDataSource.mm:
2278         (-[WebDataSource mainResource]):
2279         * WebView/WebFrame.mm:
2280         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2281
2282 2016-06-15  Alexey Proskuryakov  <ap@apple.com>
2283
2284         +[WebHTMLRepresentation supportedMIMETypes] leaks
2285         https://bugs.webkit.org/show_bug.cgi?id=158683
2286
2287         Reviewed by Darin Adler.
2288
2289         The problem occurred when chaining newArrayByConcatenatingArrays calls.
2290
2291         Also refactored the code to avoid returning NSMutableArrays disguised as NSArrays,
2292         and removed __unsafe_unretained modifiers that were added in http://trac.webkit.org/r149453
2293         for no apparent reason.
2294
2295         * WebView/WebHTMLRepresentation.mm:
2296         (newArrayWithStrings):
2297         (+[WebHTMLRepresentation supportedMIMETypes]):
2298         (+[WebHTMLRepresentation supportedMediaMIMETypes]):
2299         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
2300         (+[WebHTMLRepresentation supportedImageMIMETypes]):
2301         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
2302         (newArrayByConcatenatingArrays): Deleted.
2303
2304 2016-06-15  Dean Jackson  <dino@apple.com>
2305
2306         RTL <select> forms are misplaced
2307         https://bugs.webkit.org/show_bug.cgi?id=158810
2308         <rdar://problem/24847541>
2309
2310         Reviewed by Eric Carlson.
2311
2312         AppKit made a change in Sierra that causes popup menus
2313         to snap to a different point when the system language is RTL.
2314         We need to be more explicit about what directionality
2315         we want, and override the location of the popup based
2316         on the text direction.
2317
2318         I also made a small tweak to the fudge offsets we use
2319         in order to make button text and menu text to be
2320         more consistent.
2321
2322         Unfortunately since this is just about the location
2323         of the popup menu, it's unable to be tested in our
2324         current infrastructure.
2325
2326         * WebCoreSupport/PopupMenuMac.mm:
2327         (PopupMenuMac::show):
2328
2329 2016-06-15  Chris Dumez  <cdumez@apple.com>
2330
2331         Drop some unnecessary header includes
2332         https://bugs.webkit.org/show_bug.cgi?id=158788
2333
2334         Reviewed by Alexey Proskuryakov.
2335
2336         Drop some unnecessary header includes in headers to speed up build time.
2337
2338         * WebCoreSupport/WebFrameLoaderClient.mm:
2339
2340 2016-06-15  Romain Bellessort  <romain.bellessort@crf.canon.fr>
2341
2342         Enabling Shadow DOM for all platforms
2343         https://bugs.webkit.org/show_bug.cgi?id=158738
2344
2345         Reviewed by Ryosuke Niwa.
2346
2347         Removed Shadow DOM from options (enabled by default)
2348
2349         * Configurations/FeatureDefines.xcconfig:
2350         * WebView/WebPreferences.mm:
2351         * WebView/WebView.mm:
2352
2353 2016-06-15  Antti Koivisto  <antti@apple.com>
2354
2355         Vary:Cookie validation doesn't work in private browsing
2356         https://bugs.webkit.org/show_bug.cgi?id=158616
2357         <rdar://problem/26755067>
2358
2359         Reviewed by Andreas Kling.
2360
2361         * WebCoreSupport/WebFrameNetworkingContext.h:
2362         (WebFrameNetworkingContext::create):
2363         * WebCoreSupport/WebFrameNetworkingContext.mm:
2364         (privateSession):
2365         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
2366
2367             Expose the private browsing session.
2368
2369         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
2370         * WebCoreSupport/WebPlatformStrategies.h:
2371         * WebCoreSupport/WebPlatformStrategies.mm:
2372         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
2373
2374             Implement SessionID version of the function.
2375
2376         (WebPlatformStrategies::getRawCookies):
2377
2378 2016-06-13  Alex Christensen  <achristensen@webkit.org>
2379
2380         Add WebSocketProvider stub
2381         https://bugs.webkit.org/show_bug.cgi?id=158702
2382
2383         Reviewed by Brady Eidson.
2384
2385         * Misc/WebSocketProvider.h: Added.
2386         * WebView/WebView.mm:
2387         (-[WebView _commonInitializationWithFrameName:groupName:]):
2388         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2389
2390 2016-06-10  Alex Christensen  <achristensen@webkit.org>
2391
2392         Introduce WTF::UniqueRef
2393         https://bugs.webkit.org/show_bug.cgi?id=158596
2394
2395         Reviewed by Brady Eidson.
2396
2397         * WebView/WebView.mm:
2398         (-[WebView _commonInitializationWithFrameName:groupName:]):
2399         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2400
2401 2016-06-09  Alex Christensen  <achristensen@webkit.org>
2402
2403         Clean up EditorClient lifetime
2404         https://bugs.webkit.org/show_bug.cgi?id=158588
2405
2406         Reviewed by Anders Carlsson.
2407
2408         * WebCoreSupport/WebEditorClient.h:
2409         * WebCoreSupport/WebEditorClient.mm:
2410         (WebEditorClient::WebEditorClient):
2411         (WebEditorClient::pageDestroyed): Deleted.
2412         * WebView/WebView.mm:
2413         (-[WebView _commonInitializationWithFrameName:groupName:]):
2414         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2415
2416 2016-06-09  Andy Estes  <aestes@apple.com>
2417
2418         Define printing{Minimum,Maximum}ShrinkFactor in only one place
2419         https://bugs.webkit.org/show_bug.cgi?id=158580
2420
2421         Reviewed by Tim Horton.
2422
2423         * WebView/WebHTMLView.mm: Initialized _WebHTMLViewPrintingMinimumShrinkFactor and
2424         _WebHTMLViewPrintingMaximumShrinkFactor with PrintContext::minimumShrinkFactor() and
2425         PrintContext::maximumShrinkFactor() instead of with duplicated float literals.
2426
2427 2016-06-09  Commit Queue  <commit-queue@webkit.org>
2428
2429         Unreviewed, rolling out r201810.
2430         https://bugs.webkit.org/show_bug.cgi?id=158563
2431
2432         breaks build without ENABLE_WEB_ANIMATION (Requested by
2433         mcatanzaro on #webkit).
2434
2435         Reverted changeset:
2436
2437         "[web-animations] Add Animatable, AnimationEffect,
2438         KeyframeEffect and Animation interface"
2439         https://bugs.webkit.org/show_bug.cgi?id=156096
2440         http://trac.webkit.org/changeset/201810
2441
2442 2016-06-08  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
2443
2444         [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
2445         https://bugs.webkit.org/show_bug.cgi?id=156096
2446
2447         Reviewed by Dean Jackson.
2448
2449         Adds:
2450         - Setup interface for enabling runtime flag for Web animations through preferences.
2451
2452         * WebView/WebPreferenceKeysPrivate.h:
2453         * WebView/WebPreferences.mm:
2454         (+[WebPreferences initialize]):
2455         (-[WebPreferences webAnimationsEnabled]):
2456         (-[WebPreferences setWebAnimationsEnabled:]):
2457         * WebView/WebPreferencesPrivate.h:
2458         * WebView/WebView.mm:
2459         (-[WebView _preferencesChanged:]):
2460
2461 2016-06-07  David Kilzer  <ddkilzer@apple.com>
2462
2463         [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
2464         <https://webkit.org/b/158485>
2465         <rdar://problem/16960445>
2466
2467         Reviewed by Dan Bernstein.
2468
2469         * Misc/WebNSURLExtras.h:
2470         (-[NSString _webkit_unescapedQueryValue]): Deleted declaration.
2471         (-[NSString _webkit_queryKeysAndValues]): Deleted declaration.
2472         * Misc/WebNSURLExtras.mm:
2473         (-[NSString _webkit_unescapedQueryValue]): Deleted.
2474         (-[NSString _webkit_queryKeysAndValues]): Deleted.
2475
2476 2016-06-07  Alex Christensen  <achristensen@webkit.org>
2477
2478         Adopt [PDFView documentScrollView]
2479         https://bugs.webkit.org/show_bug.cgi?id=158454
2480         rdar://problem/25875390
2481
2482         Reviewed by Tim Horton.
2483
2484         * WebView/PDFViewSPI.h: Added.
2485         * WebView/WebPDFView.mm:
2486         (-[WebPDFView _clipViewForPDFDocumentView]):
2487
2488 2016-06-05  Anders Carlsson  <andersca@apple.com>
2489
2490         Attempt to fix plug-in hangs by adding back empty slots for the removed messages.
2491
2492         * Plugins/Hosted/WebKitPluginClient.defs:
2493         * Plugins/Hosted/WebKitPluginHost.defs:
2494
2495 2016-06-04  Anders Carlsson  <andersca@apple.com>
2496
2497         Remove NPSPI that is no longer used
2498         https://bugs.webkit.org/show_bug.cgi?id=158384
2499
2500         Reviewed by Sam Weinig.
2501
2502         * Configurations/WebKitLegacy.xcconfig:
2503         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2504         (WKPCCheckIfAllowedToLoadURL): Deleted.
2505         (WKPCCancelCheckIfAllowedToLoadURL): Deleted.
2506         (WKPCResolveURL): Deleted.
2507         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2508         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2509         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Deleted.
2510         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURL): Deleted.
2511         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL): Deleted.
2512         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
2513         (WebKit::NetscapePluginInstanceProxy::resolveURL): Deleted.
2514         * Plugins/Hosted/WebHostedNetscapePluginView.h:
2515         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2516         (-[WebHostedNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
2517         (-[WebHostedNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
2518         * Plugins/Hosted/WebKitPluginClient.defs:
2519         * Plugins/WebBaseNetscapePluginView.h:
2520         * Plugins/WebBaseNetscapePluginView.mm:
2521         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]): Deleted.
2522         * Plugins/WebNetscapeContainerCheckContextInfo.h: Removed.
2523         * Plugins/WebNetscapeContainerCheckContextInfo.mm: Removed.
2524         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]): Deleted.
2525         (-[WebNetscapeContainerCheckContextInfo checkRequestID]): Deleted.
2526         (-[WebNetscapeContainerCheckContextInfo callback]): Deleted.
2527         (-[WebNetscapeContainerCheckContextInfo context]): Deleted.
2528         * Plugins/WebNetscapeContainerCheckPrivate.h: Removed.
2529         * Plugins/WebNetscapeContainerCheckPrivate.mm: Removed.
2530         (browserContainerCheckFuncs): Deleted.
2531         * Plugins/WebNetscapePluginView.h:
2532         * Plugins/WebNetscapePluginView.mm:
2533         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]): Deleted.
2534         (-[WebNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
2535         (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]): Deleted.
2536         (-[WebNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
2537         (-[WebNetscapePluginView fini]): Deleted.
2538         (-[WebNetscapePluginView getVariable:value:]): Deleted.
2539         (-[WebNetscapePluginView resolveURL:forTarget:]): Deleted.
2540         * Plugins/npapi.mm:
2541         (WKN_CheckIfAllowedToLoadURL): Deleted.
2542         (WKN_CancelCheckIfAllowedToLoadURL): Deleted.
2543         (WKN_ResolveURL): Deleted.
2544
2545 2016-06-04  Anders Carlsson  <andersca@apple.com>
2546
2547         Temporary build fix. (This function is going away).
2548
2549         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2550         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
2551         * Plugins/Hosted/WebKitPluginHost.defs:
2552
2553 2016-06-03  Chris Dumez  <cdumez@apple.com>
2554
2555         Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
2556         <rdar://problem/26521101>
2557
2558         * WebCoreSupport/WebVisitedLinkStore.mm:
2559         (WebVisitedLinkStore::removeAllVisitedLinks):
2560         (WebVisitedLinkStore::removeVisitedLink):
2561         (WebVisitedLinkStore::addVisitedLinkHash):
2562
2563 2016-06-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2564
2565         Add WebIDL special operation support: serializer
2566         https://bugs.webkit.org/show_bug.cgi?id=156293
2567
2568         Reviewed by Darin Adler.
2569
2570         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2571         (WebKit::HostedNetscapePluginStream::start):
2572         * Plugins/WebNetscapePluginStream.mm:
2573         (WebNetscapePluginStream::start):
2574
2575 2016-05-31  Darin Adler  <darin@apple.com>
2576
2577         Audit RenderObject casts and fix problems and style issues found
2578         https://bugs.webkit.org/show_bug.cgi?id=158221
2579
2580         Reviewed by Chris Dumez.
2581
2582         * Misc/WebNSPasteboardExtras.mm:
2583         (imageFromElement): Use auto and tighten the logic a bit.
2584         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
2585         Use auto and added a comment about this not using imageFromElement.
2586
2587         * Plugins/WebBaseNetscapePluginView.mm:
2588         (-[WebBaseNetscapePluginView _windowClipRect]): Consistently cast to
2589         RenderEmbeddedObject, which is the class used for renderers for plug-ins.
2590         (-[WebBaseNetscapePluginView inFlatteningPaint]): Ditto.
2591         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]): Ditto.
2592         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]): Ditto.
2593
2594         * WebCoreSupport/WebFrameLoaderClient.mm:
2595         (WebFrameLoaderClient::createPlugin): Changed code so it does a null check
2596         rather than assuming the renderer is non-null.
2597         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
2598
2599 2016-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
2600
2601         Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
2602         https://bugs.webkit.org/show_bug.cgi?id=158249
2603
2604         * WebView/WebPreferencesPrivate.h:
2605
2606 2016-05-27  Chris Dumez  <cdumez@apple.com>
2607
2608         callOnMainThread() should not copy captured lambda variables
2609         https://bugs.webkit.org/show_bug.cgi?id=158166
2610
2611         Reviewed by Brady Eidson.
2612
2613         callOnMainThread() should not copy captured lambda variables. This 
2614         function is usually called cross-thread with a lambda and copying
2615         the lambda (and its captured variables) can lead to thread-safety
2616         issues.
2617
2618         This patch updates callOnMainThread() to take a NoncopyableFunction&&
2619         in parameter instead of a std::function. The call sites of
2620         callOnMainThread() have also been updated to use C++14's lambda
2621         capture with initializer.
2622
2623         * Storage/WebDatabaseManagerClient.mm:
2624         (DidModifyOriginData::dispatchToMainThread):
2625         (DidModifyOriginData::DidModifyOriginData): Deleted.
2626         * Storage/WebStorageTrackerClient.mm:
2627         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2628
2629 2016-05-27  Caitlin Potter  <caitp@igalia.com>
2630
2631         [JSC] implement async functions proposal
2632         https://bugs.webkit.org/show_bug.cgi?id=156147
2633
2634         Reviewed by Yusuke Suzuki.
2635
2636         * WebView/WebPreferencesPrivate.h:
2637
2638 2016-05-26  Darin Adler  <darin@apple.com>
2639
2640         Media queries and platform screen modernization and streamlining
2641         https://bugs.webkit.org/show_bug.cgi?id=158067
2642
2643         Reviewed by Alex Christensen.
2644
2645         * WebView/WebFrame.mm:
2646         (-[WebFrame _dragSourceEndedAt:operation:]): Updated to use the new version of
2647         globalPoint, which returns an NSPoint.
2648
2649 2016-05-26  Myles C. Maxfield  <mmaxfield@apple.com>
2650
2651         Build fix
2652
2653         Rubber stamped by Lucas Forschler.
2654
2655         * Configurations/DebugRelease.xcconfig:
2656
2657 2016-05-24  Beth Dakin  <bdakin@apple.com>
2658
2659         Candidates should work with input methods
2660         https://bugs.webkit.org/show_bug.cgi?id=158042
2661         -and corresponding-
2662         rdar://problem/26205228
2663
2664         Reviewed by Tim Horton.
2665
2666         * WebView/WebHTMLView.mm:
2667         * WebView/WebView.mm:
2668         (-[WebView candidateList]):
2669         * WebView/WebViewInternal.h:
2670
2671 2016-05-22  Brady Eidson  <beidson@apple.com>
2672
2673         Move to C++14.
2674         https://bugs.webkit.org/show_bug.cgi?id=157948
2675
2676         Reviewed by Michael Catanzaro.
2677
2678         * Configurations/Base.xcconfig:
2679
2680 2016-05-20  Enrica Casucci  <enrica@apple.com>
2681
2682         Drag cannot start if no drag data or custom data is available in the Pasteboard.
2683         https://bugs.webkit.org/show_bug.cgi?id=157911
2684         rdar://problem/24577706
2685
2686         Reviewed by Tim Horton.
2687
2688         We need to make sure there is always one item in common between source and target
2689         of the drag and drop operation.
2690
2691         * WebView/WebHTMLView.mm:
2692         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
2693
2694 2016-05-19  Enrica Casucci  <enrica@apple.com>
2695
2696         Drag cannot start if no drag data is available in the Pasteboard.
2697         https://bugs.webkit.org/show_bug.cgi?id=157911
2698         rdar://problem/24577706
2699
2700         Reviewed by Tim Horton.
2701
2702         * WebView/WebHTMLView.mm:
2703         (+[WebHTMLView _dummyPasteboardType]):
2704         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
2705         * WebView/WebHTMLViewPrivate.h:
2706         * WebView/WebView.mm:
2707         (-[WebView _registerDraggedTypes]):
2708
2709 2016-05-19  Jer Noble  <jer.noble@apple.com>
2710
2711         [IOS] Add setting to allow playback to continue inline after exiting fullscreen.
2712         https://bugs.webkit.org/show_bug.cgi?id=157912
2713
2714         Reviewed by Eric Carlson.
2715
2716         Add a preference to control whether media should be allowed to continue playing inline when
2717         exiting fullscreen.
2718
2719         * WebView/WebPreferenceKeysPrivate.h:
2720         * WebView/WebPreferences.mm:
2721         (+[WebPreferences initialize]):
2722         (-[WebPreferences allowsInlineMediaPlaybackAfterFullscreen]):
2723         (-[WebPreferences setAllowsInlineMediaPlaybackAfterFullscreen:]):
2724         * WebView/WebPreferencesPrivate.h:
2725         * WebView/WebView.mm:
2726         (-[WebView _preferencesChanged:]):
2727
2728 2016-05-18  Brady Eidson  <beidson@apple.com>
2729
2730         Modern IDB: Make TestRunner.clearAllDatabases also delete IndexedDB databases (once doing so is supported).
2731         https://bugs.webkit.org/show_bug.cgi?id=157823
2732
2733         Reviewed by Alex Christensen.
2734
2735         * Storage/WebDatabaseManager.mm:
2736         (-[WebDatabaseManager deleteAllIndexedDatabases]):
2737         * Storage/WebDatabaseManagerPrivate.h:
2738
2739 2016-05-17  Beth Dakin  <bdakin@apple.com>
2740
2741         Make handleAcceptedCandidate a public function
2742         https://bugs.webkit.org/show_bug.cgi?id=157763
2743         -and corresponding-
2744         rdar://problem/26206397
2745
2746         Reviewed by Tim Horton.
2747
2748         This patch re-names handleAcceptedCandidate to 
2749         handleAcceptedCandidateWithSoftSpaces. The function now takes a 
2750         WebCore::TextCheckingResult instead of an NSTextCheckingResult and it can be 
2751         called from outside of WebEditorClient.
2752
2753         * WebCoreSupport/WebEditorClient.h:
2754         * WebCoreSupport/WebEditorClient.mm:
2755         (WebEditorClient::handleRequestedCandidates):
2756         (WebEditorClient::handleAcceptedCandidateWithSoftSpaces):
2757         (textCheckingResultFromNSTextCheckingResult): Deleted.
2758         (WebEditorClient::handleAcceptedCandidate): Deleted.
2759
2760         Move showCandidates to WebViewPrivate so that it can be overridden by a test.
2761         * WebView/WebViewInternal.h:
2762         * WebView/WebViewPrivate.h:
2763
2764 2016-05-17  Dean Jackson  <dino@apple.com>
2765
2766         Remove ES6_GENERATORS flag
2767         https://bugs.webkit.org/show_bug.cgi?id=157815
2768         <rdar://problem/26332894>
2769
2770         Reviewed by Geoffrey Garen.
2771
2772         This flag isn't needed. Generators are enabled everywhere and
2773         part of a stable specification.
2774
2775         * Configurations/FeatureDefines.xcconfig:
2776
2777 2016-05-17  Filip Pizlo  <fpizlo@apple.com>
2778
2779         WTF should know about Language
2780         https://bugs.webkit.org/show_bug.cgi?id=157756
2781
2782         Reviewed by Geoffrey Garen.
2783
2784         Rewires a bunch of includes/imports.
2785
2786         * WebCoreSupport/PopupMenuMac.mm:
2787         * WebCoreSupport/WebChromeClient.mm:
2788         * WebCoreSupport/WebFrameLoaderClient.mm:
2789         * WebCoreSupport/WebGeolocationClient.mm:
2790         * WebCoreSupport/WebNotificationClient.mm:
2791         * WebCoreSupport/WebPlatformStrategies.mm:
2792         * WebCoreSupport/WebUserMediaClient.mm:
2793         * WebCoreSupport/WebVisitedLinkStore.mm:
2794         * WebView/WebHTMLView.mm:
2795
2796 2016-05-13  Enrica Casucci  <enrica@apple.com>
2797
2798         Remove unused initializer for WebEvent on iOS.
2799         https://bugs.webkit.org/show_bug.cgi?id=157689
2800
2801         Reviewed by Anders Carlsson.
2802
2803         Removing use of characterSet property.
2804
2805         * WebView/WebHTMLView.mm:
2806         (-[WebHTMLView _handleEditingKeyEvent:]):
2807
2808
2809 2016-05-13  Commit Queue  <commit-queue@webkit.org>
2810
2811         Unreviewed, rolling out r200894.
2812         https://bugs.webkit.org/show_bug.cgi?id=157695
2813
2814         This change broke the iOS build (Requested by ryanhaddad on
2815         #webkit).
2816
2817         Reverted changeset:
2818
2819         "Remove unused initializer for WebEvent on iOS."
2820         https://bugs.webkit.org/show_bug.cgi?id=157689
2821         http://trac.webkit.org/changeset/200894
2822
2823 2016-05-13  Enrica Casucci  <enrica@apple.com>
2824
2825         Remove unused initializer for WebEvent on iOS.
2826         https://bugs.webkit.org/show_bug.cgi?id=157689
2827
2828         Reviewed by Anders Carlsson.
2829
2830         Removing use of characterSet property.
2831
2832         * WebView/WebHTMLView.mm:
2833         (-[WebHTMLView _handleEditingKeyEvent:]):
2834
2835 2016-05-13  Beth Dakin  <bdakin@apple.com>
2836
2837         Build fix.
2838
2839         * WebView/WebView.mm:
2840
2841 2016-05-13  Beth Dakin  <bdakin@apple.com>
2842
2843         Add dyldSPI.h for linked on or after checks, and add one for link preview
2844         https://bugs.webkit.org/show_bug.cgi?id=157401
2845         -and corresponding-
2846         rdar://problem/26253396
2847
2848         Reviewed by Darin Adler.
2849
2850         This patch removes DynamicLinkerSPI.h and replaces it with 
2851         wtf/spi/darwin/dyldSPI.h
2852
2853         * WebView/WebView.mm:
2854
2855 2016-05-13  Tina Liu  <iting_liu@apple.com>
2856
2857         Revert r199691.
2858         https://bugs.webkit.org/show_bug.cgi?id=157645
2859         <rdar://problem/26235373>
2860
2861         Reviewed by Darin Adler.
2862
2863         * WebCoreSupport/WebPlatformStrategies.h:
2864         * WebCoreSupport/WebPlatformStrategies.mm:
2865         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy): Deleted.
2866
2867 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
2868
2869         Unreviewed build fix for r200799.
2870
2871         * WebView/WebView.mm:
2872
2873 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
2874
2875         REGRESSION (r199313): ICBC app: text field In the webview is not tappable
2876         https://bugs.webkit.org/show_bug.cgi?id=157396
2877         <rdar://problem/25931513>
2878
2879         Reviewed by David Kilzer.
2880
2881         Add a quirk for WebKit1 apps.
2882
2883         * WebView/WebView.mm:
2884         (shouldConvertInvalidURLsToBlank):
2885         (-[WebView _preferencesChanged:]):
2886
2887 2016-05-12  Beth Dakin  <bdakin@apple.com>
2888
2889         WebKitAdditions needs to be notified before the WebView is dealloc'd
2890         https://bugs.webkit.org/show_bug.cgi?id=157633
2891         -and corresponding-
2892         rdar://problem/26134539
2893
2894         Reviewed by Anders Carlsson.
2895
2896         * WebView/WebView.mm:
2897         (-[WebView dealloc]):
2898         * WebView/WebViewInternal.h:
2899
2900 2016-05-12  Konstantin Tokarev  <annulen@yandex.ru>
2901
2902         Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem.
2903         https://bugs.webkit.org/show_bug.cgi?id=157624
2904
2905         Reviewed by Darin Adler.
2906
2907         * WebCoreSupport/WebFrameLoaderClient.h:
2908         * WebCoreSupport/WebFrameLoaderClient.mm:
2909         (WebFrameLoaderClient::saveViewStateToItem):
2910         * WebView/WebFrame.mm:
2911         (-[WebFrame _saveViewState]):
2912
2913 2016-05-12  Csaba Osztrogonác  <ossy@webkit.org>
2914
2915         Remove ENABLE(ES6_ARROWFUNCTION_SYNTAX) guards
2916         https://bugs.webkit.org/show_bug.cgi?id=157564
2917
2918         Reviewed by Darin Adler.
2919
2920         * Configurations/FeatureDefines.xcconfig:
2921
2922 2016-05-11  Chris Dumez  <cdumez@apple.com>
2923
2924         Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers
2925         https://bugs.webkit.org/show_bug.cgi?id=157556
2926
2927         Reviewed by Darin Adler.
2928
2929         * WebView/WebFrame.mm:
2930         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2931
2932 2016-05-10  Shaw rich  <richshaw@126.com>
2933
2934         [OS X] Compatible with gnu sed grammar due to compile error with gnu sed
2935         https://bugs.webkit.org/show_bug.cgi?id=157526
2936
2937         Reviewed by Darin Adler.
2938
2939         * MigrateHeaders.make:
2940
2941 2016-05-10  Simon Fraser  <simon.fraser@apple.com>
2942
2943         [iOS WK1] text autosizing was on for all layout tests
2944         https://bugs.webkit.org/show_bug.cgi?id=157541
2945
2946         Reviewed by Tim Horton.
2947
2948         Make sure that we transfer the WK1 text autosizing preference to Settings.
2949
2950         * WebView/WebView.mm:
2951         (-[WebView _preferencesChanged:]):
2952
2953 2016-05-09  Tim Horton  <timothy_horton@apple.com>
2954
2955         [WebKit1] Invoking a link preview on a complex link (e.g. an image) results in an empty TextIndicator
2956         https://bugs.webkit.org/show_bug.cgi?id=157497
2957         <rdar://problem/25872773>
2958
2959         Reviewed by Anders Carlsson.
2960
2961         * WebView/WebImmediateActionController.mm:
2962         (-[WebImmediateActionController _defaultAnimationController]):
2963         r198578 fixed this for WebKit2, but forgot about WebKit1.
2964
2965 2016-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
2966
2967         [OS X] Migrate our Font classes entirely off of NSFont
2968         https://bugs.webkit.org/show_bug.cgi?id=157464
2969
2970         Reviewed by Darin Adler.
2971
2972         * WebCoreSupport/PopupMenuMac.mm:
2973         (PopupMenuMac::populate):
2974         (PopupMenuMac::show):
2975         * WebView/WebHTMLView.mm:
2976         (fontNameForDescription):
2977         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2978
2979 2016-05-06  Joseph Pecoraro  <pecoraro@apple.com>
2980
2981         Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent
2982         https://bugs.webkit.org/show_bug.cgi?id=157447
2983
2984         Reviewed by Ryosuke Niwa.
2985
2986         * WebView/WebFrame.mm:
2987         (-[WebFrame elementAtPoint:]):
2988         * WebView/WebHTMLView.mm:
2989         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
2990
2991 2016-05-06  Simon Fraser  <simon.fraser@apple.com>
2992
2993         Enable IOS_TEXT_AUTOSIZING on Mac and make it testable
2994         https://bugs.webkit.org/show_bug.cgi?id=157432
2995         rdar://problem/16406720
2996
2997         Reviewed by Dean Jackson.
2998
2999         Enable IOS_TEXT_AUTOSIZING on Mac so it can be tested.
3000
3001         Make the setTextAutosizingEnabled() Setting work, and plumb it through WK1 and WK2
3002         preferences for WTR and DRT. Make textAutosizingWindowSizeOverride() work, for layout tests.
3003         These two settings are shared with TEXT_AUTOSIZING.
3004
3005         Add a TextAutosizing log channel, which is useful for generated -expected.html results.
3006
3007         Move adjustComputedFontSizesOnBlocks() and related code from RenderObject to RenderElement
3008         without changes.
3009
3010         An implication of this set of changes is that the way clients enable text autosizing
3011         has changed. Previously, they set the "MinimumZoomFontSize" preference to 0.
3012         Settings::defaultMinimumZoomFontSize() used to do this in order to enable text autosizing
3013         on iPhone only, not iPad.
3014
3015         Now the preferred technique is to leave minimumZoomFontSize alone, and to use textAutosizingEnabled()
3016         instead. Settings::defaultTextAutosizingEnabled() now does the check for iPhone.
3017
3018         UIWebView calls WebKitGetMinimumZoomFontSize() to setup the default minimum font zoom size,
3019         which will now always return 15, but had no other code that toggled this. So it's safe to just rely
3020         on Settings::defaultTextAutosizingEnabled() doing the right thing for iPhone/iPad.
3021
3022         * Configurations/FeatureDefines.xcconfig:
3023         * WebView/WebPreferenceKeysPrivate.h:
3024         * WebView/WebPreferences.mm:
3025         (+[WebPreferences initialize]):
3026         (-[WebPreferences _setTextAutosizingEnabled:]):
3027         (-[WebPreferences _textAutosizingEnabled]):
3028         * WebView/WebPreferencesPrivate.h:
3029
3030 2016-05-06  Dean Jackson  <dino@apple.com>
3031
3032         Regions, Shapes and Tracks don't need runtime features
3033         https://bugs.webkit.org/show_bug.cgi?id=157426
3034         <rdar://problem/26146262>
3035
3036         Reviewed by Simon Fraser.
3037
3038         The following RuntimeEnabledFeatures can be removed since
3039         we have no need to disable them (they are stable and have
3040         shipped for a while):
3041         - CSS Regions
3042         - CSS Shapes
3043         - Media tracks
3044
3045         * WebView/WebPreferenceKeysPrivate.h:
3046         * WebView/WebPreferences.mm:
3047         (+[WebPreferences initialize]): Deleted.
3048         (-[WebPreferences cssRegionsEnabled]): Deleted.
3049         (-[WebPreferences setCSSRegionsEnabled:]): Deleted.
3050         (-[WebPreferences cssCompositingEnabled]): Deleted.
3051         (-[WebPreferences setCSSCompositingEnabled:]): Deleted.
3052         * WebView/WebPreferencesPrivate.h:
3053         * WebView/WebView.mm:
3054         (-[WebView _preferencesChanged:]): Deleted.
3055
3056 2016-05-06  Daniel Bates  <dabates@apple.com>
3057
3058         Remove workaround for Apple Internal bots
3059         <rdar://problem/25989808>
3060
3061         Reverts the workaround added in r200211 as it is no longer needed.
3062
3063         * WebView/WebPDFView.h:
3064
3065 2016-05-02  Daniel Bates  <dabates@apple.com>
3066
3067         CSP: Add workaround for XtraMath
3068         https://bugs.webkit.org/show_bug.cgi?id=157252
3069
3070         Reviewed by Andy Estes.
3071
3072         * WebView/WebView.mm:
3073         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Allow * to match any protocol for
3074         applicable versions of app XtraMath.
3075
3076 2016-05-02  Daniel Bates  <dabates@apple.com>
3077
3078         DatabaseTracker::closeAllDatabases calls Database::close from the wrong thread
3079         https://bugs.webkit.org/show_bug.cgi?id=147672
3080         <rdar://problem/22357464>
3081
3082         Reviewed by Brady Eidson.
3083
3084         Update the background assertion expiration callback to call DatabaseTracker::closeAllDatabases()
3085         with CurrentQueryBehavior::Interrupt so that we abort a long running query and close the database
3086         immediately to avoid holding a locked file when the process is suspended.
3087
3088         * Storage/WebDatabaseManager.mm:
3089         (+[WebDatabaseManager startBackgroundTask]):
3090
3091 2016-04-29  Dean Jackson  <dino@apple.com>
3092
3093         RTL <select> popup menu is in the wrong location
3094         https://bugs.webkit.org/show_bug.cgi?id=157159
3095         <rdar://problem/25894451>
3096
3097         Reapply http://trac.webkit.org/changeset/200217
3098         but with changes that will allow it to build on Yosemite.
3099
3100         * WebCoreSupport/PopupMenuMac.mm:
3101         (PopupMenuMac::show):
3102
3103 2016-04-29  Commit Queue  <commit-queue@webkit.org>
3104
3105         Unreviewed, rolling out r200217.
3106         https://bugs.webkit.org/show_bug.cgi?id=157183
3107
3108         This change broke the Yosemite build. (Requested by ryanhaddad
3109         on #webkit).
3110
3111         Reverted changeset:
3112
3113         "RTL <select> popup menu is in the wrong location"
3114         https://bugs.webkit.org/show_bug.cgi?id=157159
3115         http://trac.webkit.org/changeset/200217
3116
3117 2016-04-28  Dean Jackson  <dino@apple.com>
3118
3119         RTL <select> popup menu is in the wrong location
3120         https://bugs.webkit.org/show_bug.cgi?id=157159
3121         <rdar://problem/25894451>
3122
3123         Reviewed by Simon Fraser.
3124
3125         Make sure both the NSPopupMenuCell and the NSPopupMenu take
3126         the text direction into account, and offset the position
3127         of the menu slightly if we're in RTL mode.
3128
3129         Unfortunately our test infrastructure is unable to exercise
3130         this because it runs without a window, and the popup menu
3131         is not captured in the screenshot.
3132
3133         * WebCoreSupport/PopupMenuMac.mm:
3134         (PopupMenuMac::show):
3135
3136 2016-04-28  Manuel Rego Casasnovas  <rego@igalia.com>
3137
3138         [css-grid] Add CSS Grid Layout runtime flag
3139         https://bugs.webkit.org/show_bug.cgi?id=157134
3140
3141         Reviewed by Simon Fraser.
3142
3143         Add CSS Grid Layout runtime flag based on preferences,
3144         enabled by default.
3145
3146         * WebView/WebPreferenceKeysPrivate.h:
3147         * WebView/WebPreferences.mm:
3148         (+[WebPreferences initialize]):
3149         (-[WebPreferences isCSSGridLayoutEnabled]):
3150         (-[WebPreferences setCSSGridLayoutEnabled:]):
3151         * WebView/WebPreferencesPrivate.h:
3152         * WebView/WebView.mm:
3153         (-[WebView _preferencesChanged:]):
3154
3155 2016-04-28  Daniel Bates  <dabates@apple.com>
3156
3157         Another fix for the Apple Internal OS X build
3158         <rdar://problem/25989808>
3159
3160         Reviewed by Anders Carlsson.
3161
3162         * WebView/WebPDFView.h:
3163
3164 2016-04-28  Daniel Bates  <dabates@apple.com>
3165
3166         Fix the Apple Internal OS X build
3167
3168         * WebView/WebPDFView.h: Import PDFKit for definition of protocol PDFViewDelegate.
3169         Forward declare protocol PDFViewDelegate as appropriate. Mark WebPDFView as implementing
3170         protocol PDFViewDelegate.
3171         * WebView/WebPDFView.mm: Move import of PDFKit from here to the header.
3172
3173 2016-04-27  Daniel Bates  <dabates@apple.com>
3174
3175         CSP: Add app-specific workaround for Ecobee and Quora
3176         https://bugs.webkit.org/show_bug.cgi?id=157005
3177         <rdar://problem/25560776>
3178
3179         Reviewed by Brent Fulgham.
3180
3181         * Misc/WebKitVersionChecks.h:
3182         * WebView/WebView.mm:
3183         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Added.
3184         (-[WebView _preferencesChanged:]): Enable setting allowContentSecurityPolicySourceStarToMatchAnyProtocol
3185         if applicable.
3186
3187 2016-04-26  Joseph Pecoraro  <pecoraro@apple.com>
3188
3189         Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
3190         https://bugs.webkit.org/show_bug.cgi?id=156991
3191         <rdar://problem/25913475>
3192
3193         Reviewed by Timothy Hatcher.
3194
3195         * WebCoreSupport/WebInspectorClient.mm:
3196         (-[WebInspectorWindowController init]):
3197         Apply the same universal file access to WebKit1 Web Inspector views that
3198         we apply to WebKit2 views. Explicitly always allow access to storage
3199         for Web Inspector content just in case as we already allow universal
3200         file access.
3201
3202 2016-04-26  Beth Dakin  <bdakin@apple.com>
3203
3204         Check to make sure shouldRequestCandidates() before requesting candidates
3205         https://bugs.webkit.org/show_bug.cgi?id=157038
3206         -and corresponding-
3207         rdar://problem/25910418
3208
3209         Reviewed by Tim Horton.
3210
3211         This patch limits requesting and showing candidates to cases where 
3212         shouldRequestCandidates() is true. This patch also caches the sequence number 
3213         returned by [NSSpellChecker requestCandidatesForSelectedRange:] to make sure 
3214         it is equal to the sequence number sent to the callback handler so that we do 
3215         not show candidates for old requests.
3216
3217         * WebCoreSupport/WebEditorClient.h:
3218         * WebCoreSupport/WebEditorClient.mm:
3219         (WebEditorClient::requestCandidatesForSelection):
3220         (WebEditorClient::handleRequestedCandidates):
3221         * WebView/WebView.mm:
3222         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
3223         (-[WebView shouldRequestCandidates]):
3224         * WebView/WebViewInternal.h:
3225
3226 2016-04-25  Ryosuke Niwa  <rniwa@webkit.org>
3227
3228         Remove the build flag for template elements
3229         https://bugs.webkit.org/show_bug.cgi?id=157022
3230
3231         Reviewed by Daniel Bates.
3232
3233         * Configurations/FeatureDefines.xcconfig:
3234
3235 2016-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
3236
3237         [Cocoa] Guarantee FontPlatformData's m_cgFont is never nullptr
3238         https://bugs.webkit.org/show_bug.cgi?id=156929
3239
3240         Reviewed by Darin Adler.
3241
3242         * Misc/WebKitNSStringExtras.mm:
3243         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Drawing
3244         a string with a null font shouldn't do anything.
3245         * Misc/WebStringTruncator.mm: We can't truncate a string if we don't have a font
3246         to use.
3247         (+[WebStringTruncator centerTruncateString:toWidth:]):
3248         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
3249         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
3250         (+[WebStringTruncator widthOfString:font:]):
3251
3252 2016-04-25  Beth Dakin  <bdakin@apple.com>
3253
3254         WebEditorClient should properly write to m_rangeForCandidates
3255         https://bugs.webkit.org/show_bug.cgi?id=157003
3256         -and corresponding-
3257         rdar://problem/25910418
3258
3259         Reviewed by Tim Horton.
3260
3261         Actually write to m_rangeForCandidates instead of declaring a local variable 
3262         of the same name. :-/
3263         * WebCoreSupport/WebEditorClient.mm:
3264         (WebEditorClient::requestCandidatesForSelection):
3265
3266 2016-04-23  Andy Estes  <aestes@apple.com>
3267
3268         Fix issues found by the clang static analyzer
3269         https://bugs.webkit.org/show_bug.cgi?id=156956
3270
3271         Reviewed by Alexey Proskuryakov.
3272
3273         * WebView/WebDeviceOrientationProviderMock.mm:
3274         (-[WebDeviceOrientationProviderMock dealloc]): [super dealloc] should be called last.
3275
3276 2016-04-21  Tim Horton  <timothy_horton@apple.com>
3277
3278         Fix the iOS build: WAKView may not respond to drawLayer:inContext:
3279         https://bugs.webkit.org/show_bug.cgi?id=156879
3280         <rdar://problem/25772661>
3281
3282         Reviewed by Beth Dakin.
3283
3284         * WebView/WebHTMLView.mm:
3285         WebHTMLView on iOS never uses drawLayer:inContext:, and WAKView
3286         doesn't implement it, so this would have thrown an exception
3287         if called, anyway. Fix the build with stricter CA protocols.
3288
3289 2016-04-21  Jer Noble  <jer.noble@apple.com>
3290
3291         [WK1] Add WebPlaybackSession support to WebKit
3292         https://bugs.webkit.org/show_bug.cgi?id=156854
3293
3294         Reviewed by Beth Dakin.
3295
3296         Add support for WebPlaybackSession and the ChromeClient methods setUpPlaybackControlsManager() and
3297         clearPlaybackControlsManager() to WebKit.
3298
3299         * WebCoreSupport/WebChromeClient.h:
3300         * WebCoreSupport/WebChromeClient.mm:
3301         (WebChromeClient::setUpPlaybackControlsManager):
3302         (WebChromeClient::clearPlaybackControlsManager):
3303         * WebView/WebView.mm:
3304         (-[WebView _hasActiveVideoForControlsInterface]):
3305         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
3306         (-[WebView _clearPlaybackControlsManagerForMediaElement:]):
3307         * WebView/WebViewData.h:
3308         * WebView/WebViewData.mm:
3309         * WebView/WebViewInternal.h:
3310
3311 2016-04-21  Anders Carlsson  <andersca@apple.com>
3312
3313         Stop using ApplicationCacheStorage::singleton() in WebKitLegacy
3314         https://bugs.webkit.org/show_bug.cgi?id=156859
3315
3316         Reviewed by Tim Horton.
3317
3318         * WebCoreSupport/WebApplicationCache.mm:
3319         (+[WebApplicationCache initializeWithBundleIdentifier:]):
3320         Change this to just store the bundle identifier.
3321
3322         (applicationCacheBundleIdentifier):
3323         Helper function that returns the bundle identifier for the app cache.
3324
3325         (applicationCachePath):
3326         Return the application cache path.
3327
3328         (webApplicationCacheStorage):
3329         Create a new ApplicationCacheStorage object.
3330
3331         * WebView/WebView.mm:
3332         (-[WebView _commonInitializationWithFrameName:groupName:]):
3333         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3334         Set pageConfiguration.applicationCacheStorage to webApplicationCacheStorage().
3335
3336         (WebKitInitializeApplicationCachePathIfNecessary): Deleted.
3337
3338 2016-04-21  Beth Dakin  <bdakin@apple.com>
3339
3340         showCandidates() should take a range and the string should be the whole 
3341         paragraph
3342         https://bugs.webkit.org/show_bug.cgi?id=156813
3343         -and corresponding-
3344         rdar://problem/25760533
3345
3346         Reviewed by Tim Horton.
3347
3348         Cache the range and the paragraph since we compute them in 
3349         requestCandidatesForSelection, and then we can use them again in 
3350         handleRequestedCandidates.
3351         * WebCoreSupport/WebEditorClient.h:
3352         * WebCoreSupport/WebEditorClient.mm:
3353         (WebEditorClient::requestCandidatesForSelection):
3354         (WebEditorClient::handleRequestedCandidates):
3355         * WebView/WebView.mm:
3356         (-[WebView updateWebViewAdditions]):
3357         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
3358         (-[WebView showCandidates:forString:inRect:view:completionHandler:]): Deleted.
3359         * WebView/WebViewInternal.h:
3360
3361 2016-04-21  Chris Dumez  <cdumez@apple.com>
3362
3363         Drop [UsePointersEvenForNonNullableObjectArguments] from Range
3364         https://bugs.webkit.org/show_bug.cgi?id=156805
3365
3366         Reviewed by Youenn Fablet.
3367
3368         * WebView/WebFrame.mm:
3369         (-[WebFrame _smartDeleteRangeForProposedRange:]):
3370
3371 2016-04-20  Brady Eidson  <beidson@apple.com>
3372
3373         Modern IDB (Workers): Enable INDEXED_DATABASE_IN_WORKERS compile time flag, but disabled in RuntimeEnabledFeatures.
3374         https://bugs.webkit.org/show_bug.cgi?id=156782
3375
3376         Reviewed by Alex Christensen.
3377
3378         * Configurations/FeatureDefines.xcconfig:
3379
3380 2016-04-18  Anders Carlsson  <andersca@apple.com>
3381
3382         Fix build with newer versions of clang.
3383         rdar://problem/25749769
3384
3385         * WebCoreSupport/WebContextMenuClient.mm:
3386         * WebView/WebHTMLView.mm:
3387         Forward declare some AppKit IPI.
3388
3389 2016-04-18  Tina Liu  <iting_liu@apple.com>
3390
3391         Overrode a virtual function of WebCore::PluginStrategy
3392         https://bugs.webkit.org/show_bug.cgi?id=156540
3393
3394         Reviewed by Anders Carlsson.
3395
3396         * WebCoreSupport/WebPlatformStrategies.h:
3397         * WebCoreSupport/WebPlatformStrategies.mm:
3398         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy):
3399
3400 2016-04-18  Brent Fulgham  <bfulgham@apple.com>
3401
3402         CSP: Remove stubs for dynamically-added favicons (via link rel="icon")
3403         https://bugs.webkit.org/show_bug.cgi?id=153151
3404         <rdar://problem/24383176>
3405
3406         Reviewed by Darin Adler.
3407
3408         Remove the unused dynamic favicon code and tests.
3409
3410         * WebCoreSupport/WebFrameLoaderClient.h:
3411         * WebCoreSupport/WebFrameLoaderClient.mm:
3412         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
3413
3414 2016-04-15  Darin Adler  <darin@apple.com>
3415
3416         Reduce use of Deprecated::ScriptXXX classes
3417         https://bugs.webkit.org/show_bug.cgi?id=156632
3418
3419         Reviewed by Alex Christensen.
3420
3421         * WebView/WebFrame.mm:
3422         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Use references instead
3423         of pointers.
3424         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Updated
3425         since return value is a JSValue.
3426         * WebView/WebView.mm:
3427         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
3428
3429 2016-04-14  Brent Fulgham  <bfulgham@apple.com>
3430
3431         Make <a download> a runtime enabled option
3432         https://bugs.webkit.org/show_bug.cgi?id=156583
3433         <rdar://problem/25733449>
3434
3435         Reviewed by Alex Christensen.
3436
3437         Add a download attribute runtime flag based on preferences.
3438         Disable the download attribute by default.
3439
3440         * WebView/WebPreferenceKeysPrivate.h:
3441         * WebView/WebPreferences.mm:
3442         (+[WebPreferences initialize]):
3443         (-[WebPreferences setFetchAPIEnabled:]):
3444         (-[WebPreferences downloadAttributeEnabled]):
3445         (-[WebPreferences setDownloadAttributeEnabled:]):
3446         * WebView/WebPreferencesPrivate.h:
3447         * WebView/WebView.mm:
3448         (-[WebView _preferencesChanged]): Set the runtime flag properly
3449         based on the user preferences.
3450
3451 2016-04-09  Gavin Barraclough  <barraclough@apple.com>
3452
3453         WebKit should adopt journal_mode=wal for all SQLite databases.
3454         https://bugs.webkit.org/show_bug.cgi?id=133496
3455
3456         Reviewed by Darin Adler.
3457
3458         * Storage/WebDatabaseManagerPrivate.h:
3459             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
3460
3461 2016-04-05  Oliver Hunt  <oliver@apple.com>
3462
3463         Remove compile time define for SEPARATED_HEAP
3464         https://bugs.webkit.org/show_bug.cgi?id=155508
3465
3466         Reviewed by Mark Lam.
3467
3468         * Configurations/FeatureDefines.xcconfig:
3469
3470 2016-04-08  Sam Weinig  <sam@webkit.org>
3471
3472         Remove support for custom target picker actions
3473         <rdar://problem/24987783>
3474         https://bugs.webkit.org/show_bug.cgi?id=156434
3475
3476         Reviewed by Eric Carlson.
3477
3478         This mostly entailed rolling out r197429 and r197569.
3479
3480         * WebCoreSupport/WebChromeClient.h:
3481         * WebCoreSupport/WebChromeClient.mm:
3482         (WebChromeClient::removePlaybackTargetPickerClient):
3483         (WebChromeClient::showPlaybackTargetPicker):
3484         * WebView/WebMediaPlaybackTargetPicker.h:
3485         * WebView/WebMediaPlaybackTargetPicker.mm:
3486         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
3487         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
3488         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
3489         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
3490         (WebMediaPlaybackTargetPicker::invalidate):
3491         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected): Deleted.
3492         * WebView/WebView.mm:
3493         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
3494         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
3495
3496 2016-04-07  Joseph Pecoraro  <pecoraro@apple.com>
3497
3498         Remove ENABLE(ENABLE_ES6_CLASS_SYNTAX) guards
3499         https://bugs.webkit.org/show_bug.cgi?id=156384
3500
3501         Reviewed by Ryosuke Niwa.
3502
3503         * Configurations/FeatureDefines.xcconfig:
3504
3505 2016-04-07  Brian Burg  <bburg@apple.com>
3506
3507         CookieJar should support adding synthetic cookies for developer tools
3508         https://bugs.webkit.org/show_bug.cgi?id=156091
3509         <rdar://problem/25581340>
3510
3511         Reviewed by Timothy Hatcher.
3512
3513         * WebCoreSupport/WebPlatformStrategies.h:
3514         * WebCoreSupport/WebPlatformStrategies.mm:
3515         (WebPlatformStrategies::addCookie):
3516         Add new method override.
3517
3518 2016-04-06  Alex Christensen  <achristensen@webkit.org>
3519
3520         Fix CMake DumpRenderTree
3521         https://bugs.webkit.org/show_bug.cgi?id=156305
3522
3523         Reviewed by Daniel Bates.
3524
3525         * WebKitPrefix.h:
3526
3527 2016-04-05  Beth Dakin  <bdakin@apple.com>
3528
3529         Make requestCandidatesForSelection available on any EditorClient
3530         https://bugs.webkit.org/show_bug.cgi?id=156253
3531         -and corresponding-
3532         rdar://problem/24661147
3533
3534         Reviewed by Dean Jackson.
3535
3536         * WebCoreSupport/WebEditorClient.h:
3537
3538 2016-04-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3539
3540         [Fetch API] Add a runtime flag to fetch API and related constructs
3541         https://bugs.webkit.org/show_bug.cgi?id=156113
3542  
3543         Reviewed by Alex Christensen.
3544
3545         Add a fetch API runtime flag based on preferences.
3546         Disable fetch API by default.
3547  
3548         * WebView/WebPreferenceKeysPrivate.h:
3549         * WebView/WebPreferences.mm:
3550         (+[WebPreferences initialize]):
3551         (-[WebPreferences setCustomElementsEnabled:]):
3552         (-[WebPreferences fetchAPIEnabled]):
3553         (-[WebPreferences setFetchAPIEnabled:]):
3554         * WebView/WebPreferencesPrivate.h:
3555         * WebView/WebView.mm:
3556         (-[WebView _preferencesChanged:]):
3557         (-[WebView preferencesIdentifier]):
3558         (-[WebView setUIDelegate:]):
3559
3560 2016-04-05  Antoine Quint  <graouts@apple.com>
3561
3562         [WebGL2] Turn the ENABLE_WEBGL2 flag on
3563         https://bugs.webkit.org/show_bug.cgi?id=156061
3564         <rdar://problem/25463193>
3565
3566         Reviewed by Alex Christensen.
3567
3568         * Configurations/FeatureDefines.xcconfig:
3569
3570 2016-04-05  Antoine Quint  <graouts@apple.com>
3571
3572         [WebGL2] Allow enabling WebGL2 with a runtime flag
3573         https://bugs.webkit.org/show_bug.cgi?id=156166
3574         <rdar://problem/25526929>
3575
3576         Set the WebGL2 runtime flag based on preferences, disabled by default.
3577
3578         Reviewed by Dean Jackson.
3579
3580         * WebView/WebPreferenceKeysPrivate.h:
3581         * WebView/WebPreferences.mm:
3582         (+[WebPreferences initialize]):
3583         (-[WebPreferences webGL2Enabled]):
3584         (-[WebPreferences setWebGL2Enabled:]):
3585         * WebView/WebPreferencesPrivate.h:
3586         * WebView/WebView.mm:
3587         (-[WebView _preferencesChanged:]):
3588
3589 2016-04-01  Alex Christensen  <achristensen@webkit.org>
3590
3591         Compile DumpRenderTree with CMake on Mac
3592         https://bugs.webkit.org/show_bug.cgi?id=156088
3593
3594         Reviewed by Brent Fulgham.
3595
3596         * Misc/WebKit.h:
3597         Alphabetize headers.
3598
3599 2016-03-31  Jeremy Jones  <jeremyj@apple.com>
3600
3601         mediaShouldUsePersistentCache() is redundant. Use Page::usesEphemeralSession() instead.
3602         https://bugs.webkit.org/show_bug.cgi?id=155924
3603
3604         Reviewed by Simon Fraser.
3605
3606         Remove mediaShouldUsePersistentCache machinery as it is redundant.
3607
3608         * WebCoreSupport/WebChromeClient.h:
3609         * WebCoreSupport/WebChromeClient.mm:
3610         (WebChromeClient::mediaShouldUsePersistentCache): Deleted.
3611
3612 2016-03-30  Ada Chan  <adachan@apple.com>
3613
3614         Add the new "toggle enhanced fullscreen" context menu item to the video context menu on supporting platforms.
3615         https://bugs.webkit.org/show_bug.cgi?id=156031
3616
3617         Reviewed by Eric Carlson.
3618
3619         * WebView/WebHTMLView.mm:
3620         (toAction):
3621         (toTag):
3622         * WebView/WebUIDelegatePrivate.h:
3623
3624 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
3625
3626         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
3627         https://bugs.webkit.org/show_bug.cgi?id=155412
3628
3629         Reviewed by Darin Adler.
3630
3631         * Misc/WebCache.mm:
3632         (+[WebCache addImageToCache:forURL:forFrame:]):
3633         WebCore::MemoryCache() is taking an rvalue NativeImagePtr. We need to create
3634         NativeImagePtr from the image raw pointer when calling this function.
3635
3636 2016-03-24  Tim Horton  <timothy_horton@apple.com>
3637
3638         Fix some new PDFKit-related warnings
3639         https://bugs.webkit.org/show_bug.cgi?id=155847
3640         <rdar://problem/25340312>
3641
3642         Reviewed by Anders Carlsson.
3643
3644         * WebView/WebPDFView.mm:
3645         (-[WebPDFView setViewState:]):
3646         * WebView/WebPreferences.mm:
3647         (-[WebPreferences PDFDisplayMode]):
3648         PDFDisplayMode is now a real enum.
3649
3650 2016-03-23  Anders Carlsson  <andersca@apple.com>
3651
3652         Crash when using KVO from within -[WebView initWithCoder:]
3653         https://bugs.webkit.org/show_bug.cgi?id=155816
3654         rdar://problem/17073265
3655
3656         Reviewed by Dan Bernstein.
3657
3658         Get rid of the observationInfo getter and setter. It's not clear why they were added (in 2003),
3659         and the methods on NSObject are good enough for us.
3660
3661         * WebView/WebView.mm:
3662         (-[WebView setObservationInfo:]): Deleted.
3663         (-[WebView observationInfo]): Deleted.
3664         * WebView/WebViewData.h:
3665
3666 2016-03-22  Beth Dakin  <bdakin@apple.com>
3667
3668         Advanced spell checking should be guarded behind 
3669         HAVE(ADVANCED_SPELL_CHECKING)
3670         https://bugs.webkit.org/show_bug.cgi?id=155738
3671
3672         Reviewed by Geoff Garen.
3673
3674         * WebCoreSupport/WebEditorClient.mm:
3675         (insertionPointFromCurrentSelection):
3676         (WebEditorClient::checkTextOfParagraph):
3677         (WebEditorClient::getGuessesForWord):
3678         (WebEditorClient::requestCandidatesForSelection):
3679         (WebEditorClient::handleRequestedCandidates):
3680         (WebEditorClient::requestCheckingOfString):
3681         * WebKitPrefix.h:
3682         * WebView/WebHTMLView.mm:
3683         (-[WebHTMLView insertText:]):
3684
3685 2016-03-20  Dan Bernstein  <mitz@apple.com>
3686
3687         [Mac] Determine TARGET_MAC_OS_X_VERSION_MAJOR from MACOSX_DEPLOYMENT_TARGET rather than from MAC_OS_X_VERSION_MAJOR
3688         https://bugs.webkit.org/show_bug.cgi?id=155707
3689         <rdar://problem/24980691>
3690
3691         Reviewed by Darin Adler.
3692
3693         * Configurations/Base.xcconfig: Set TARGET_MAC_OS_X_VERSION_MAJOR based on the last
3694           component of MACOSX_DEPLOYMENT_TARGET.
3695         * Configurations/DebugRelease.xcconfig: For engineering builds, preserve the behavior of
3696           TARGET_MAC_OS_X_VERSION_MAJOR being the host’s OS version.
3697
3698 2016-03-20  Darin Adler  <darin@apple.com>
3699
3700         Disable Caches in Safari's Develop menu does not disable caches.
3701         https://bugs.webkit.org/show_bug.cgi?id=64483
3702
3703         Reviewed by Antti Koivisto.
3704
3705         Removed unneeded WebPreferences property; we don't need this for Legacy WebKit.
3706
3707         * WebView/WebPreferenceKeysPrivate.h: Removed
3708         WebKitResourceCachingDisabledPreferenceKey.
3709         * WebView/WebPreferences.mm:
3710         (-[WebPreferences isResourceCachingDisabled]): Deleted.
3711         (-[WebPreferences setResourceCachingDisabled:]): Deleted.
3712         * WebView/WebPreferencesPrivate.h: Removed resourceCachingDisabled property.
3713         * WebView/WebView.mm:
3714         (-[WebView _preferencesChanged:]): Removed code to update resourceCachingDisabled.
3715
3716 2016-03-20  Dan Bernstein  <mitz@apple.com>
3717
3718         Update build settings
3719
3720         Rubber-stamped by Andy Estes.
3721
3722         * Configurations/DebugRelease.xcconfig:
3723         * Configurations/FeatureDefines.xcconfig:
3724         * Configurations/Version.xcconfig:
3725
3726 2016-03-18  Darin Adler  <darin@apple.com>
3727
3728         Disable Caches in Safari's Develop menu does not disable caches.
3729         https://bugs.webkit.org/show_bug.cgi?id=64483
3730
3731         Reviewed by Antti Koivisto.
3732
3733         * WebView/WebPreferenceKeysPrivate.h: Added ResourceCachingDisabled.
3734         * WebView/WebPreferences.mm:
3735         (-[WebPreferences isResourceCachingDisabled]): Added.
3736         (-[WebPreferences setResourceCachingDisabled:]): Added.
3737         * WebView/WebPreferencesPrivate.h: Added resourceCachingDisabled.
3738         * WebView/WebView.mm:
3739         (-[WebView _preferencesChanged:]): Push resourceCachingDisabled into WebCore.
3740
3741 2016-03-17  Csaba Osztrogonác  <ossy@webkit.org>
3742
3743         [cmake][Mac] Unreviewed speculative buildfix after r198088. Just for fun.
3744
3745         * WebView/WebView.mm:
3746         (-[WebView _preferencesChanged:]):
3747
3748 2016-03-17  Andy Estes  <aestes@apple.com>
3749
3750         [Mac] Enable Content-Disposition: attachment sandbox
3751         https://bugs.webkit.org/show_bug.cgi?id=155578
3752         <rdar://problem/21886326>
3753
3754         Reviewed by Dan Bernstein.
3755
3756         Covered by the existing set of attachment sandbox tests, which have always been run on Mac.
3757
3758         * WebView/WebView.mm:
3759         (-[WebView _commonInitializationWithFrameName:groupName:]):
3760
3761 2016-03-16  Beth Dakin  <bdakin@apple.com>
3762
3763         Provide NSSpellChecker spellChecking methods with the current insertion point
3764         https://bugs.webkit.org/show_bug.cgi?id=155532
3765         -and corresponding-
3766         rdar://problem/24066952
3767
3768         Reviewed by Simon Fraser.
3769
3770         Extract the insertion point from the VisibleSelection that WebCore has 
3771         passed. 
3772         * WebCoreSupport/WebEditorClient.h:
3773         (WebEditorClient::getGuessesForWord):
3774         * WebCoreSupport/WebEditorClient.mm:
3775         (WebEditorClient::checkTextOfParagraph):
3776         (insertionPointFromCurrentSelection):
3777         (WebEditorClient::getGuessesForWord):
3778         (WebEditorClient::requestCheckingOfString):
3779
3780 2016-03-16  Chris Dumez  <cdumez@apple.com>
3781
3782         Unreviewed, rolling out r198235, r198240, r198241, and
3783         r198252.
3784
3785         Causing crashes on ARM
3786
3787         Reverted changesets:
3788
3789         "Remove compile time define for SEPARATED_HEAP"
3790         https://bugs.webkit.org/show_bug.cgi?id=155508
3791         http://trac.webkit.org/changeset/198235
3792
3793         "Gardening: build fix after r198235."
3794         http://trac.webkit.org/changeset/198240
3795
3796         "Build fix."
3797         http://trac.webkit.org/changeset/198241
3798
3799         "Rename performJITMemcpy to something more inline with our
3800         normal webkit function names"
3801         https://bugs.webkit.org/show_bug.cgi?id=155525
3802         http://trac.webkit.org/changeset/198252
3803
3804 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
3805
3806         URL Parsing should signal failure for illegal IDN
3807         https://bugs.webkit.org/show_bug.cgi?id=154945
3808         <rdar://problem/8014795>
3809
3810         Reviewed by Brent Fulgham.
3811
3812         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
3813         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
3814
3815         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
3816         deprecated as they ignore URL parsing failure.
3817
3818         * History/WebHistoryItem.mm:
3819         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3820         * Misc/WebKitErrors.m:
3821         (+[NSError _webKitErrorWithCode:failingURL:]):
3822         * Misc/WebNSFileManagerExtras.mm:
3823         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3824         * Misc/WebNSPasteboardExtras.mm:
3825         (-[NSPasteboard _web_bestURL]):
3826         * Misc/WebNSURLExtras.h:
3827         * Misc/WebNSURLExtras.mm:
3828         (+[NSURL _web_URLWithUserTypedString:]):
3829         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
3830         (+[NSURL _webkit_URLWithUserTypedString:]):
3831         (-[NSString _web_decodeHostName]):
3832         (-[NSString _web_encodeHostName]):
3833         (-[NSString _webkit_decodeHostName]):
3834         (-[NSString _webkit_encodeHostName]):
3835         * Panels/WebAuthenticationPanel.m:
3836         (-[WebAuthenticationPanel setUpForChallenge:]):
3837         * WebCoreSupport/WebEditorClient.mm:
3838         (WebEditorClient::canonicalizeURLString):
3839
3840 2016-03-15  Jer Noble  <jer.noble@apple.com>
3841
3842         [ios-sim debug] API test WebKit1.AudioSessionCategoryIOS timing out
3843         https://bugs.webkit.org/show_bug.cgi?id=155275
3844
3845         Reviewed by Alexey Proskuryakov.
3846
3847         The videoPlaybackRequiresUserGesture and audioPlaybackRequiresUserGesture should both defalut to
3848         NO, so that legacy clients of -[UIWebView setMediaPlaybackRequiresUserAction:] continue to work
3849         as expected.
3850
3851         * WebView/WebPreferences.mm:
3852         (+[WebPreferences initialize]):
3853
3854 2016-03-15  Oliver Hunt  <oliver@apple.com>
3855
3856         Remove compile time define for SEPARATED_HEAP
3857         https://bugs.webkit.org/show_bug.cgi?id=155508
3858
3859         Reviewed by Mark Lam.
3860
3861         Remove the feature define.
3862
3863         * Configurations/FeatureDefines.xcconfig:
3864
3865 2016-03-15  Chris Dumez  <cdumez@apple.com>
3866
3867         Unreviewed, rolling out r198203.
3868
3869         Favorites view is no longer loading on iOS
3870
3871         Reverted changeset:
3872
3873         "URL Parsing should signal failure for illegal IDN"
3874         https://bugs.webkit.org/show_bug.cgi?id=154945
3875         http://trac.webkit.org/changeset/198203
3876
3877 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
3878
3879         URL Parsing should signal failure for illegal IDN
3880         https://bugs.webkit.org/show_bug.cgi?id=154945
3881         <rdar://problem/8014795>
3882
3883         Reviewed by Brent Fulgham.
3884
3885         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
3886         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
3887
3888         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
3889         deprecated as they ignore URL parsing failure.
3890
3891         * History/WebHistoryItem.mm:
3892         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3893         * Misc/WebKitErrors.m:
3894         (+[NSError _webKitErrorWithCode:failingURL:]):
3895         * Misc/WebNSFileManagerExtras.mm:
3896         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
3897         * Misc/WebNSPasteboardExtras.mm:
3898         (-[NSPasteboard _web_bestURL]):
3899         * Misc/WebNSURLExtras.h:
3900         * Misc/WebNSURLExtras.mm:
3901         (+[NSURL _web_URLWithUserTypedString:]):
3902         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
3903         (+[NSURL _webkit_URLWithUserTypedString:]):
3904         (-[NSString _web_decodeHostName]):
3905         (-[NSString _web_encodeHostName]):
3906         (-[NSString _webkit_decodeHostName]):
3907         (-[NSString _webkit_encodeHostName]):
3908         * Panels/WebAuthenticationPanel.m:
3909         (-[WebAuthenticationPanel setUpForChallenge:]):
3910         * WebCoreSupport/WebEditorClient.mm:
3911         (WebEditorClient::canonicalizeURLString):
3912
3913 2016-03-14  Chris Dumez  <cdumez@apple.com>
3914
3915         Unreviewed, rolling out r197981.
3916
3917         Caused a massive PLT regression on Mac.
3918
3919         Reverted changeset:
3920
3921         "Font antialiasing (smoothing) changes when elements are
3922         rendered into compositing layers"
3923         https://bugs.webkit.org/show_bug.cgi?id=23364
3924         http://trac.webkit.org/changeset/197981
3925
3926 2016-03-14  Sam Weinig  <sam@webkit.org>
3927
3928         Add a baseURL parameter to _WKUserStyleSheet
3929         https://bugs.webkit.org/show_bug.cgi?id=155219
3930
3931         Reviewed by Tim Horton.
3932
3933         * WebView/WebView.mm:
3934         (-[WebView _commonInitializationWithFrameName:groupName:]):
3935         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3936         (-[WebView setGroupName:]):
3937         Update to account for the name change from UserContentController -> UserContentProvider.
3938
3939 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
3940
3941         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
3942         https://bugs.webkit.org/show_bug.cgi?id=150497
3943
3944         Reviewed by Darin Adler.
3945
3946         * DOM/WebDOMOperations.mm:
3947         (-[DOMNode webArchive]):
3948         (-[DOMNode webArchiveByFilteringSubframes:]):
3949         * WebCoreSupport/WebPlatformStrategies.h:
3950         * WebCoreSupport/WebPlatformStrategies.mm:
3951         (WebPlatformStrategies::bufferForType):
3952         (WebPlatformStrategies::readBufferFromPasteboard):
3953         * WebView/WebArchive.mm:
3954         (-[WebArchive initWithData:]):
3955         * WebView/WebDataSource.mm:
3956         (-[WebDataSource webArchive]):
3957         (-[WebDataSource addSubresource:]):
3958         * WebView/WebResource.mm:
3959         (-[WebResource encodeWithCoder:]):
3960         (-[WebResource data]):
3961         (-[WebResource _stringValue]):
3962         (-[WebResource _initWithCoreResource:]): Deleted.
3963
3964 2016-03-14  Oliver Hunt  <oliver@apple.com>
3965
3966         Temporarily disable the separated heap.
3967         https://bugs.webkit.org/show_bug.cgi?id=155472
3968
3969         Reviewed by Geoffrey Garen.
3970
3971         Temporarily disable this.
3972
3973         * Configurations/FeatureDefines.xcconfig:
3974
3975 2016-03-14  Anders Carlsson  <andersca@apple.com>
3976
3977         Fix build.
3978
3979         Ignore nullability warnings, create an empty PDF selection.
3980
3981         * WebView/WebPDFView.mm:
3982         (-[WebPDFView centerSelectionInVisibleArea:]):
3983         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
3984         (+[WebPDFView _PDFSelectionClass]):
3985         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
3986
3987 2016-03-13  Joseph Pecoraro  <pecoraro@apple.com>
3988
3989         Remove ENABLE(ES6_TEMPLATE_LITERAL_SYNTAX) guards
3990         https://bugs.webkit.org/show_bug.cgi?id=155417
3991
3992         Reviewed by Yusuke Suzuki.
3993
3994         * Configurations/FeatureDefines.xcconfig:
3995
3996 2016-03-13  Dean Jackson  <dino@apple.com>
3997
3998         <attachment> should be a runtime-enabled feature
3999         https://bugs.webkit.org/show_bug.cgi?id=155413
4000         <rdar://problem/25120753>
4001
4002         Reviewed by Sam Weinig and Anders Carlsson.
4003
4004         Add an internal setting on WebPreferences
4005         to enable the <attachment> element support.
4006
4007         * WebView/WebPreferenceKeysPrivate.h:
4008         * WebView/WebPreferences.mm:
4009         (+[WebPreferences initialize]):
4010         (-[WebPreferences attachmentElementEnabled]):
4011         (-[WebPreferences setAttachmentElementEnabled:]):
4012         * WebView/WebPreferencesPrivate.h:
4013         * WebView/WebView.mm:
4014         (-[WebView _preferencesChanged:]):
4015
4016 2016-03-12  Sam Weinig  <sam@webkit.org>
4017
4018         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
4019         <rdar://problem/25129946>
4020         https://bugs.webkit.org/show_bug.cgi?id=155401
4021
4022         Reviewed by Alex Christensen.
4023
4024         * WebCoreSupport/WebFrameNetworkingContext.mm:
4025         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
4026         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
4027
4028 2016-03-12  Myles C. Maxfield  <mmaxfield@apple.com>
4029
4030         Delete dead SVG Font code
4031         https://bugs.webkit.org/show_bug.cgi?id=154718
4032
4033         Reviewed by Antti Koivisto.
4034
4035         * Configurations/FeatureDefines.xcconfig:
4036
4037 2016-03-11  Yusuke Suzuki  <utatane.tea@gmail.com>
4038
4039         [ES6] Implement Reflect.set without receiver support
4040         https://bugs.webkit.org/show_bug.cgi?id=155024
4041
4042         Reviewed by Geoffrey Garen.
4043
4044         As the same to NPJSObject, we just propagate the returned value of NetscapePluginInstanceProxy::setProperty.
4045
4046         * Plugins/Hosted/ProxyInstance.h:
4047         * Plugins/Hosted/ProxyInstance.mm:
4048         (WebKit::ProxyField::setValueToInstance):
4049         (WebKit::ProxyInstance::setFieldValue):
4050
4051 2016-03-10  Jeremy Jones  <jeremyj@apple.com>
4052
4053         Set AVURLAssetUsesNoPersistentCacheKey on AVAsset to match caching policy.
4054         https://bugs.webkit.org/show_bug.cgi?id=155117
4055         rdar://problem/6802240
4056
4057         Reviewed by Simon Fraser.
4058
4059         Implement mediaShouldUsePersistentCache to disable media caching when NSURLCache is disabled.
4060
4061         * WebCoreSupport/WebChromeClient.h:
4062         * WebCoreSupport/WebChromeClient.mm:
4063         (WebChromeClient::mediaShouldUsePersistentCache): Added.
4064
4065 2016-03-10  Simon Fraser  <simon.fraser@apple.com>
4066
4067         Font antialiasing (smoothing) changes when elements are rendered into compositing layers
4068         https://bugs.webkit.org/show_bug.cgi?id=23364
4069
4070         Reviewed by Tim Horton.
4071
4072         Allow internal clients to turn off smoothed layer text, so that WebKitTestRunner
4073         can disable it.
4074
4075         * WebView/WebView.mm:
4076         (+[WebView _setSmoothedLayerTextEnabled:]):
4077         (+[WebView _smoothedLayerTextEnabled]):
4078         * WebView/WebViewPrivate.h:
4079
4080 2016-03-10  Jer Noble  <jer.noble@apple.com>
4081
4082         Add WebCore, WebKit, & WebKit2 preference/setting to enable Main Content heuristic.
4083         https://bugs.webkit.org/show_bug.cgi?id=155326
4084         <rdar://problem/25095408>
4085
4086         Reviewed by Beth Dakin.
4087
4088         Add SPI to get and set the new preference.
4089
4090         * WebView/WebPreferenceKeysPrivate.h:
4091         * WebView/WebPreferences.mm:
4092         (-[WebPreferences overrideUserGestureRequirementForMainContent]):
4093         (-[WebPreferences setOverrideUserGestureRequirementForMainContent:]):
4094         * WebView/WebPreferencesPrivate.h:
4095         * WebView/WebView.mm:
4096         (-[WebView _preferencesChanged:]):
4097
4098 2016-03-07  Jer Noble  <jer.noble@apple.com>
4099
4100         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
4101         https://bugs.webkit.org/show_bug.cgi?id=155141
4102
4103         Reviewed by Beth Dakin.
4104
4105         Deprecate WebPreferences.mediaPlaybackRequiresUserGesture property in favor of .videoPlaybackRequiresUserGesture.
4106
4107         * WebView/WebPreferenceKeysPrivate.h:
4108         * WebView/WebPreferences.mm:
4109         (+[WebPreferences initialize]):
4110         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
4111         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
4112         (-[WebPreferences videoPlaybackRequiresUserGesture]):
4113         (-[WebPreferences setVideoPlaybackRequiresUserGesture:]):
4114         * WebView/WebPreferencesPrivate.h:
4115         * WebView/WebView.mm:
4116         (-[WebView _preferencesChanged:]):
4117
4118 2016-03-10  Alexey Proskuryakov  <ap@apple.com>
4119
4120         Build fix for deprecated constant names.
4121
4122         * Carbon/CarbonWindowAdapter.mm:
4123         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
4124         (-[CarbonWindowAdapter sendSuperEvent:]):
4125
4126 2016-03-10  Commit Queue  <commit-queue@webkit.org>
4127
4128         Unreviewed, rolling out r197943.
4129         https://bugs.webkit.org/show_bug.cgi?id=155317
4130
4131         This change broke Windows, WinCairo, GTK and EFL builds
4132         (Requested by ryanhaddad on #webkit).
4133
4134         Reverted changeset:
4135
4136         "Add a baseURL parameter to _WKUserStyleSheet"
4137         https://bugs.webkit.org/show_bug.cgi?id=155219
4138         http://trac.webkit.org/changeset/197943
4139
4140 2016-03-08  Sam Weinig  <sam@webkit.org>
4141
4142         Add a baseURL parameter to _WKUserStyleSheet
4143         https://bugs.webkit.org/show_bug.cgi?id=155219
4144
4145         Reviewed by Tim Horton.
4146
4147         * WebView/WebView.mm:
4148         (-[WebView _commonInitializationWithFrameName:groupName:]):
4149         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4150         (-[WebView setGroupName:]):
4151         Update to account for the name change from UserContentController -> UserContentProvider.
4152
4153 2016-02-22  Jer Noble  <jer.noble@apple.com>
4154
4155         Enable AVFoundationNSURLSessionEnabled by default
4156         https://bugs.webkit.org/show_bug.cgi?id=154469
4157
4158         Reviewed by Sam Weinig.
4159
4160         * WebView/WebPreferences.mm:
4161         (+[WebPreferences initialize]):
4162
4163 2016-03-09  Ryosuke Niwa  <rniwa@webkit.org>
4164
4165         Add runtime flags for shadow DOM and custom elements
4166         https://bugs.webkit.org/show_bug.cgi?id=155213
4167
4168         Reviewed by Dean Jackson.
4169
4170         Set the runtime flag based on preferences. Enable shadow DOM and disable custom elements by default.
4171
4172         * WebView/WebPreferenceKeysPrivate.h:
4173         * WebView/WebPreferences.mm:
4174         (+[WebPreferences initialize]):
4175         (-[WebPreferences shadowDOMEnabled]):
4176         (-[WebPreferences setShadowDOMEnabled:]):
4177         (-[WebPreferences customElementsEnabled]):
4178         (-[WebPreferences setCustomElementsEnabled:]):
4179         * WebView/WebPreferencesPrivate.h:
4180         * WebView/WebView.mm:
4181         (-[WebView _preferencesChanged:]):
4182
4183 2016-03-09  David Kilzer  <ddkilzer@apple.com>
4184
4185         REGRESSION (r197149): Missing availability checks when soft-linking DataDetectors.framework
4186         <http://webkit.org/b/155258>
4187
4188         Reviewed by Andy Estes.
4189
4190         * WebView/WebImmediateActionController.mm:
4191         (-[WebImmediateActionController _clearImmediateActionState]):
4192         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
4193         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
4194         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
4195         - Add check that returns early if DataDetectors.framework is not
4196           available.
4197
4198 2016-03-08  Oliver Hunt  <oliver@apple.com>
4199
4200         Start moving to separated writable and executable mappings in the JIT
4201         https://bugs.webkit.org/show_bug.cgi?id=155178
4202
4203         Reviewed by Fil Pizlo.
4204
4205         Update feature defines.
4206
4207         * Configurations/FeatureDefines.xcconfig:
4208
4209 2016-03-08  Commit Queue  <commit-queue@webkit.org>
4210
4211         Unreviewed, rolling out r197793 and r197799.
4212         https://bugs.webkit.org/show_bug.cgi?id=155195
4213
4214         something weird happened while landing this and everything
4215         broke (Requested by olliej on #webkit).
4216
4217         Reverted changesets:
4218
4219         "Start moving to separated writable and executable mappings in
4220         the JIT"
4221         https://bugs.webkit.org/show_bug.cgi?id=155178
4222         http://trac.webkit.org/changeset/197793
4223
4224         "arm64 build fix after r197793."
4225         http://trac.webkit.org/changeset/197799
4226
4227 2016-03-08  Oliver Hunt  <oliver@apple.com>
4228
4229         Start moving to separated writable and executable mappings in the JIT
4230         https://bugs.webkit.org/show_bug.cgi?id=155178
4231
4232         Reviewed by Filip Pizlo.
4233
4234<