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