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