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