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