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