721f872415ce535ead754f6deda4e247f60b3e61
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2016-06-10  Alex Christensen  <achristensen@webkit.org>
2
3         Introduce WTF::UniqueRef
4         https://bugs.webkit.org/show_bug.cgi?id=158596
5
6         Reviewed by Brady Eidson.
7
8         * WebView/WebView.mm:
9         (-[WebView _commonInitializationWithFrameName:groupName:]):
10         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
11
12 2016-06-09  Alex Christensen  <achristensen@webkit.org>
13
14         Clean up EditorClient lifetime
15         https://bugs.webkit.org/show_bug.cgi?id=158588
16
17         Reviewed by Anders Carlsson.
18
19         * WebCoreSupport/WebEditorClient.h:
20         * WebCoreSupport/WebEditorClient.mm:
21         (WebEditorClient::WebEditorClient):
22         (WebEditorClient::pageDestroyed): Deleted.
23         * WebView/WebView.mm:
24         (-[WebView _commonInitializationWithFrameName:groupName:]):
25         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
26
27 2016-06-09  Andy Estes  <aestes@apple.com>
28
29         Define printing{Minimum,Maximum}ShrinkFactor in only one place
30         https://bugs.webkit.org/show_bug.cgi?id=158580
31
32         Reviewed by Tim Horton.
33
34         * WebView/WebHTMLView.mm: Initialized _WebHTMLViewPrintingMinimumShrinkFactor and
35         _WebHTMLViewPrintingMaximumShrinkFactor with PrintContext::minimumShrinkFactor() and
36         PrintContext::maximumShrinkFactor() instead of with duplicated float literals.
37
38 2016-06-09  Commit Queue  <commit-queue@webkit.org>
39
40         Unreviewed, rolling out r201810.
41         https://bugs.webkit.org/show_bug.cgi?id=158563
42
43         breaks build without ENABLE_WEB_ANIMATION (Requested by
44         mcatanzaro on #webkit).
45
46         Reverted changeset:
47
48         "[web-animations] Add Animatable, AnimationEffect,
49         KeyframeEffect and Animation interface"
50         https://bugs.webkit.org/show_bug.cgi?id=156096
51         http://trac.webkit.org/changeset/201810
52
53 2016-06-08  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
54
55         [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
56         https://bugs.webkit.org/show_bug.cgi?id=156096
57
58         Reviewed by Dean Jackson.
59
60         Adds:
61         - Setup interface for enabling runtime flag for Web animations through preferences.
62
63         * WebView/WebPreferenceKeysPrivate.h:
64         * WebView/WebPreferences.mm:
65         (+[WebPreferences initialize]):
66         (-[WebPreferences webAnimationsEnabled]):
67         (-[WebPreferences setWebAnimationsEnabled:]):
68         * WebView/WebPreferencesPrivate.h:
69         * WebView/WebView.mm:
70         (-[WebView _preferencesChanged:]):
71
72 2016-06-07  David Kilzer  <ddkilzer@apple.com>
73
74         [iOS WK1] Remove unused -_webkit_unescapedQueryValue and -_webkit_queryKeysAndValues NSString category methods
75         <https://webkit.org/b/158485>
76         <rdar://problem/16960445>
77
78         Reviewed by Dan Bernstein.
79
80         * Misc/WebNSURLExtras.h:
81         (-[NSString _webkit_unescapedQueryValue]): Deleted declaration.
82         (-[NSString _webkit_queryKeysAndValues]): Deleted declaration.
83         * Misc/WebNSURLExtras.mm:
84         (-[NSString _webkit_unescapedQueryValue]): Deleted.
85         (-[NSString _webkit_queryKeysAndValues]): Deleted.
86
87 2016-06-07  Alex Christensen  <achristensen@webkit.org>
88
89         Adopt [PDFView documentScrollView]
90         https://bugs.webkit.org/show_bug.cgi?id=158454
91         rdar://problem/25875390
92
93         Reviewed by Tim Horton.
94
95         * WebView/PDFViewSPI.h: Added.
96         * WebView/WebPDFView.mm:
97         (-[WebPDFView _clipViewForPDFDocumentView]):
98
99 2016-06-05  Anders Carlsson  <andersca@apple.com>
100
101         Attempt to fix plug-in hangs by adding back empty slots for the removed messages.
102
103         * Plugins/Hosted/WebKitPluginClient.defs:
104         * Plugins/Hosted/WebKitPluginHost.defs:
105
106 2016-06-04  Anders Carlsson  <andersca@apple.com>
107
108         Remove NPSPI that is no longer used
109         https://bugs.webkit.org/show_bug.cgi?id=158384
110
111         Reviewed by Sam Weinig.
112
113         * Configurations/WebKitLegacy.xcconfig:
114         * Plugins/Hosted/NetscapePluginHostProxy.mm:
115         (WKPCCheckIfAllowedToLoadURL): Deleted.
116         (WKPCCancelCheckIfAllowedToLoadURL): Deleted.
117         (WKPCResolveURL): Deleted.
118         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
119         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
120         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): Deleted.
121         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURL): Deleted.
122         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL): Deleted.
123         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
124         (WebKit::NetscapePluginInstanceProxy::resolveURL): Deleted.
125         * Plugins/Hosted/WebHostedNetscapePluginView.h:
126         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
127         (-[WebHostedNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
128         (-[WebHostedNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
129         * Plugins/Hosted/WebKitPluginClient.defs:
130         * Plugins/WebBaseNetscapePluginView.h:
131         * Plugins/WebBaseNetscapePluginView.mm:
132         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]): Deleted.
133         * Plugins/WebNetscapeContainerCheckContextInfo.h: Removed.
134         * Plugins/WebNetscapeContainerCheckContextInfo.mm: Removed.
135         (-[WebNetscapeContainerCheckContextInfo initWithCheckRequestID:callbackFunc:context:]): Deleted.
136         (-[WebNetscapeContainerCheckContextInfo checkRequestID]): Deleted.
137         (-[WebNetscapeContainerCheckContextInfo callback]): Deleted.
138         (-[WebNetscapeContainerCheckContextInfo context]): Deleted.
139         * Plugins/WebNetscapeContainerCheckPrivate.h: Removed.
140         * Plugins/WebNetscapeContainerCheckPrivate.mm: Removed.
141         (browserContainerCheckFuncs): Deleted.
142         * Plugins/WebNetscapePluginView.h:
143         * Plugins/WebNetscapePluginView.mm:
144         (-[WebNetscapePluginView checkIfAllowedToLoadURL:frame:callbackFunc:context:]): Deleted.
145         (-[WebNetscapePluginView _containerCheckResult:contextInfo:]): Deleted.
146         (-[WebNetscapePluginView cancelCheckIfAllowedToLoadURL:]): Deleted.
147         (-[WebNetscapePluginView _webPluginContainerCancelCheckIfAllowedToLoadRequest:]): Deleted.
148         (-[WebNetscapePluginView fini]): Deleted.
149         (-[WebNetscapePluginView getVariable:value:]): Deleted.
150         (-[WebNetscapePluginView resolveURL:forTarget:]): Deleted.
151         * Plugins/npapi.mm:
152         (WKN_CheckIfAllowedToLoadURL): Deleted.
153         (WKN_CancelCheckIfAllowedToLoadURL): Deleted.
154         (WKN_ResolveURL): Deleted.
155
156 2016-06-04  Anders Carlsson  <andersca@apple.com>
157
158         Temporary build fix. (This function is going away).
159
160         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
161         (WebKit::NetscapePluginInstanceProxy::checkIfAllowedToLoadURLResult): Deleted.
162         * Plugins/Hosted/WebKitPluginHost.defs:
163
164 2016-06-03  Chris Dumez  <cdumez@apple.com>
165
166         Unreviewed, roll out r196633 as it broke PageCache on iOS for WebKit.org
167         <rdar://problem/26521101>
168
169         * WebCoreSupport/WebVisitedLinkStore.mm:
170         (WebVisitedLinkStore::removeAllVisitedLinks):
171         (WebVisitedLinkStore::removeVisitedLink):
172         (WebVisitedLinkStore::addVisitedLinkHash):
173
174 2016-06-02  Youenn Fablet  <youenn.fablet@crf.canon.fr>
175
176         Add WebIDL special operation support: serializer
177         https://bugs.webkit.org/show_bug.cgi?id=156293
178
179         Reviewed by Darin Adler.
180
181         * Plugins/Hosted/HostedNetscapePluginStream.mm:
182         (WebKit::HostedNetscapePluginStream::start):
183         * Plugins/WebNetscapePluginStream.mm:
184         (WebNetscapePluginStream::start):
185
186 2016-05-31  Darin Adler  <darin@apple.com>
187
188         Audit RenderObject casts and fix problems and style issues found
189         https://bugs.webkit.org/show_bug.cgi?id=158221
190
191         Reviewed by Chris Dumez.
192
193         * Misc/WebNSPasteboardExtras.mm:
194         (imageFromElement): Use auto and tighten the logic a bit.
195         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
196         Use auto and added a comment about this not using imageFromElement.
197
198         * Plugins/WebBaseNetscapePluginView.mm:
199         (-[WebBaseNetscapePluginView _windowClipRect]): Consistently cast to
200         RenderEmbeddedObject, which is the class used for renderers for plug-ins.
201         (-[WebBaseNetscapePluginView inFlatteningPaint]): Ditto.
202         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]): Ditto.
203         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]): Ditto.
204
205         * WebCoreSupport/WebFrameLoaderClient.mm:
206         (WebFrameLoaderClient::createPlugin): Changed code so it does a null check
207         rather than assuming the renderer is non-null.
208         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
209
210 2016-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
211
212         Unreviewed, roll out r201481, r201523: 0.3% regression in Octane code-load
213         https://bugs.webkit.org/show_bug.cgi?id=158249
214
215         * WebView/WebPreferencesPrivate.h:
216
217 2016-05-27  Chris Dumez  <cdumez@apple.com>
218
219         callOnMainThread() should not copy captured lambda variables
220         https://bugs.webkit.org/show_bug.cgi?id=158166
221
222         Reviewed by Brady Eidson.
223
224         callOnMainThread() should not copy captured lambda variables. This 
225         function is usually called cross-thread with a lambda and copying
226         the lambda (and its captured variables) can lead to thread-safety
227         issues.
228
229         This patch updates callOnMainThread() to take a NoncopyableFunction&&
230         in parameter instead of a std::function. The call sites of
231         callOnMainThread() have also been updated to use C++14's lambda
232         capture with initializer.
233
234         * Storage/WebDatabaseManagerClient.mm:
235         (DidModifyOriginData::dispatchToMainThread):
236         (DidModifyOriginData::DidModifyOriginData): Deleted.
237         * Storage/WebStorageTrackerClient.mm:
238         (WebStorageTrackerClient::dispatchDidModifyOrigin):
239
240 2016-05-27  Caitlin Potter  <caitp@igalia.com>
241
242         [JSC] implement async functions proposal
243         https://bugs.webkit.org/show_bug.cgi?id=156147
244
245         Reviewed by Yusuke Suzuki.
246
247         * WebView/WebPreferencesPrivate.h:
248
249 2016-05-26  Darin Adler  <darin@apple.com>
250
251         Media queries and platform screen modernization and streamlining
252         https://bugs.webkit.org/show_bug.cgi?id=158067
253
254         Reviewed by Alex Christensen.
255
256         * WebView/WebFrame.mm:
257         (-[WebFrame _dragSourceEndedAt:operation:]): Updated to use the new version of
258         globalPoint, which returns an NSPoint.
259
260 2016-05-26  Myles C. Maxfield  <mmaxfield@apple.com>
261
262         Build fix
263
264         Rubber stamped by Lucas Forschler.
265
266         * Configurations/DebugRelease.xcconfig:
267
268 2016-05-24  Beth Dakin  <bdakin@apple.com>
269
270         Candidates should work with input methods
271         https://bugs.webkit.org/show_bug.cgi?id=158042
272         -and corresponding-
273         rdar://problem/26205228
274
275         Reviewed by Tim Horton.
276
277         * WebView/WebHTMLView.mm:
278         * WebView/WebView.mm:
279         (-[WebView candidateList]):
280         * WebView/WebViewInternal.h:
281
282 2016-05-22  Brady Eidson  <beidson@apple.com>
283
284         Move to C++14.
285         https://bugs.webkit.org/show_bug.cgi?id=157948
286
287         Reviewed by Michael Catanzaro.
288
289         * Configurations/Base.xcconfig:
290
291 2016-05-20  Enrica Casucci  <enrica@apple.com>
292
293         Drag cannot start if no drag data or custom data is available in the Pasteboard.
294         https://bugs.webkit.org/show_bug.cgi?id=157911
295         rdar://problem/24577706
296
297         Reviewed by Tim Horton.
298
299         We need to make sure there is always one item in common between source and target
300         of the drag and drop operation.
301
302         * WebView/WebHTMLView.mm:
303         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
304
305 2016-05-19  Enrica Casucci  <enrica@apple.com>
306
307         Drag cannot start if no drag data is available in the Pasteboard.
308         https://bugs.webkit.org/show_bug.cgi?id=157911
309         rdar://problem/24577706
310
311         Reviewed by Tim Horton.
312
313         * WebView/WebHTMLView.mm:
314         (+[WebHTMLView _dummyPasteboardType]):
315         (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
316         * WebView/WebHTMLViewPrivate.h:
317         * WebView/WebView.mm:
318         (-[WebView _registerDraggedTypes]):
319
320 2016-05-19  Jer Noble  <jer.noble@apple.com>
321
322         [IOS] Add setting to allow playback to continue inline after exiting fullscreen.
323         https://bugs.webkit.org/show_bug.cgi?id=157912
324
325         Reviewed by Eric Carlson.
326
327         Add a preference to control whether media should be allowed to continue playing inline when
328         exiting fullscreen.
329
330         * WebView/WebPreferenceKeysPrivate.h:
331         * WebView/WebPreferences.mm:
332         (+[WebPreferences initialize]):
333         (-[WebPreferences allowsInlineMediaPlaybackAfterFullscreen]):
334         (-[WebPreferences setAllowsInlineMediaPlaybackAfterFullscreen:]):
335         * WebView/WebPreferencesPrivate.h:
336         * WebView/WebView.mm:
337         (-[WebView _preferencesChanged:]):
338
339 2016-05-18  Brady Eidson  <beidson@apple.com>
340
341         Modern IDB: Make TestRunner.clearAllDatabases also delete IndexedDB databases (once doing so is supported).
342         https://bugs.webkit.org/show_bug.cgi?id=157823
343
344         Reviewed by Alex Christensen.
345
346         * Storage/WebDatabaseManager.mm:
347         (-[WebDatabaseManager deleteAllIndexedDatabases]):
348         * Storage/WebDatabaseManagerPrivate.h:
349
350 2016-05-17  Beth Dakin  <bdakin@apple.com>
351
352         Make handleAcceptedCandidate a public function
353         https://bugs.webkit.org/show_bug.cgi?id=157763
354         -and corresponding-
355         rdar://problem/26206397
356
357         Reviewed by Tim Horton.
358
359         This patch re-names handleAcceptedCandidate to 
360         handleAcceptedCandidateWithSoftSpaces. The function now takes a 
361         WebCore::TextCheckingResult instead of an NSTextCheckingResult and it can be 
362         called from outside of WebEditorClient.
363
364         * WebCoreSupport/WebEditorClient.h:
365         * WebCoreSupport/WebEditorClient.mm:
366         (WebEditorClient::handleRequestedCandidates):
367         (WebEditorClient::handleAcceptedCandidateWithSoftSpaces):
368         (textCheckingResultFromNSTextCheckingResult): Deleted.
369         (WebEditorClient::handleAcceptedCandidate): Deleted.
370
371         Move showCandidates to WebViewPrivate so that it can be overridden by a test.
372         * WebView/WebViewInternal.h:
373         * WebView/WebViewPrivate.h:
374
375 2016-05-17  Dean Jackson  <dino@apple.com>
376
377         Remove ES6_GENERATORS flag
378         https://bugs.webkit.org/show_bug.cgi?id=157815
379         <rdar://problem/26332894>
380
381         Reviewed by Geoffrey Garen.
382
383         This flag isn't needed. Generators are enabled everywhere and
384         part of a stable specification.
385
386         * Configurations/FeatureDefines.xcconfig:
387
388 2016-05-17  Filip Pizlo  <fpizlo@apple.com>
389
390         WTF should know about Language
391         https://bugs.webkit.org/show_bug.cgi?id=157756
392
393         Reviewed by Geoffrey Garen.
394
395         Rewires a bunch of includes/imports.
396
397         * WebCoreSupport/PopupMenuMac.mm:
398         * WebCoreSupport/WebChromeClient.mm:
399         * WebCoreSupport/WebFrameLoaderClient.mm:
400         * WebCoreSupport/WebGeolocationClient.mm:
401         * WebCoreSupport/WebNotificationClient.mm:
402         * WebCoreSupport/WebPlatformStrategies.mm:
403         * WebCoreSupport/WebUserMediaClient.mm:
404         * WebCoreSupport/WebVisitedLinkStore.mm:
405         * WebView/WebHTMLView.mm:
406
407 2016-05-13  Enrica Casucci  <enrica@apple.com>
408
409         Remove unused initializer for WebEvent on iOS.
410         https://bugs.webkit.org/show_bug.cgi?id=157689
411
412         Reviewed by Anders Carlsson.
413
414         Removing use of characterSet property.
415
416         * WebView/WebHTMLView.mm:
417         (-[WebHTMLView _handleEditingKeyEvent:]):
418
419
420 2016-05-13  Commit Queue  <commit-queue@webkit.org>
421
422         Unreviewed, rolling out r200894.
423         https://bugs.webkit.org/show_bug.cgi?id=157695
424
425         This change broke the iOS build (Requested by ryanhaddad on
426         #webkit).
427
428         Reverted changeset:
429
430         "Remove unused initializer for WebEvent on iOS."
431         https://bugs.webkit.org/show_bug.cgi?id=157689
432         http://trac.webkit.org/changeset/200894
433
434 2016-05-13  Enrica Casucci  <enrica@apple.com>
435
436         Remove unused initializer for WebEvent on iOS.
437         https://bugs.webkit.org/show_bug.cgi?id=157689
438
439         Reviewed by Anders Carlsson.
440
441         Removing use of characterSet property.
442
443         * WebView/WebHTMLView.mm:
444         (-[WebHTMLView _handleEditingKeyEvent:]):
445
446 2016-05-13  Beth Dakin  <bdakin@apple.com>
447
448         Build fix.
449
450         * WebView/WebView.mm:
451
452 2016-05-13  Beth Dakin  <bdakin@apple.com>
453
454         Add dyldSPI.h for linked on or after checks, and add one for link preview
455         https://bugs.webkit.org/show_bug.cgi?id=157401
456         -and corresponding-
457         rdar://problem/26253396
458
459         Reviewed by Darin Adler.
460
461         This patch removes DynamicLinkerSPI.h and replaces it with 
462         wtf/spi/darwin/dyldSPI.h
463
464         * WebView/WebView.mm:
465
466 2016-05-13  Tina Liu  <iting_liu@apple.com>
467
468         Revert r199691.
469         https://bugs.webkit.org/show_bug.cgi?id=157645
470         <rdar://problem/26235373>
471
472         Reviewed by Darin Adler.
473
474         * WebCoreSupport/WebPlatformStrategies.h:
475         * WebCoreSupport/WebPlatformStrategies.mm:
476         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy): Deleted.
477
478 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
479
480         Unreviewed build fix for r200799.
481
482         * WebView/WebView.mm:
483
484 2016-05-12  Jiewen Tan  <jiewen_tan@apple.com>
485
486         REGRESSION (r199313): ICBC app: text field In the webview is not tappable
487         https://bugs.webkit.org/show_bug.cgi?id=157396
488         <rdar://problem/25931513>
489
490         Reviewed by David Kilzer.
491
492         Add a quirk for WebKit1 apps.
493
494         * WebView/WebView.mm:
495         (shouldConvertInvalidURLsToBlank):
496         (-[WebView _preferencesChanged:]):
497
498 2016-05-12  Beth Dakin  <bdakin@apple.com>
499
500         WebKitAdditions needs to be notified before the WebView is dealloc'd
501         https://bugs.webkit.org/show_bug.cgi?id=157633
502         -and corresponding-
503         rdar://problem/26134539
504
505         Reviewed by Anders Carlsson.
506
507         * WebView/WebView.mm:
508         (-[WebView dealloc]):
509         * WebView/WebViewInternal.h:
510
511 2016-05-12  Konstantin Tokarev  <annulen@yandex.ru>
512
513         Use reference instead of pointer in FrameLoaderClient::saveViewStateToItem.
514         https://bugs.webkit.org/show_bug.cgi?id=157624
515
516         Reviewed by Darin Adler.
517
518         * WebCoreSupport/WebFrameLoaderClient.h:
519         * WebCoreSupport/WebFrameLoaderClient.mm:
520         (WebFrameLoaderClient::saveViewStateToItem):
521         * WebView/WebFrame.mm:
522         (-[WebFrame _saveViewState]):
523
524 2016-05-12  Csaba Osztrogonác  <ossy@webkit.org>
525
526         Remove ENABLE(ES6_ARROWFUNCTION_SYNTAX) guards
527         https://bugs.webkit.org/show_bug.cgi?id=157564
528
529         Reviewed by Darin Adler.
530
531         * Configurations/FeatureDefines.xcconfig:
532
533 2016-05-11  Chris Dumez  <cdumez@apple.com>
534
535         Update Node::appendChild() / replaceChild() / removeChild() / insertBefore() to take references instead of pointers
536         https://bugs.webkit.org/show_bug.cgi?id=157556
537
538         Reviewed by Darin Adler.
539
540         * WebView/WebFrame.mm:
541         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
542
543 2016-05-10  Shaw rich  <richshaw@126.com>
544
545         [OS X] Compatible with gnu sed grammar due to compile error with gnu sed
546         https://bugs.webkit.org/show_bug.cgi?id=157526
547
548         Reviewed by Darin Adler.
549
550         * MigrateHeaders.make:
551
552 2016-05-10  Simon Fraser  <simon.fraser@apple.com>
553
554         [iOS WK1] text autosizing was on for all layout tests
555         https://bugs.webkit.org/show_bug.cgi?id=157541
556
557         Reviewed by Tim Horton.
558
559         Make sure that we transfer the WK1 text autosizing preference to Settings.
560
561         * WebView/WebView.mm:
562         (-[WebView _preferencesChanged:]):
563
564 2016-05-09  Tim Horton  <timothy_horton@apple.com>
565
566         [WebKit1] Invoking a link preview on a complex link (e.g. an image) results in an empty TextIndicator
567         https://bugs.webkit.org/show_bug.cgi?id=157497
568         <rdar://problem/25872773>
569
570         Reviewed by Anders Carlsson.
571
572         * WebView/WebImmediateActionController.mm:
573         (-[WebImmediateActionController _defaultAnimationController]):
574         r198578 fixed this for WebKit2, but forgot about WebKit1.
575
576 2016-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
577
578         [OS X] Migrate our Font classes entirely off of NSFont
579         https://bugs.webkit.org/show_bug.cgi?id=157464
580
581         Reviewed by Darin Adler.
582
583         * WebCoreSupport/PopupMenuMac.mm:
584         (PopupMenuMac::populate):
585         (PopupMenuMac::show):
586         * WebView/WebHTMLView.mm:
587         (fontNameForDescription):
588         (-[WebHTMLView _addToStyle:fontA:fontB:]):
589
590 2016-05-06  Joseph Pecoraro  <pecoraro@apple.com>
591
592         Rename HitTestRequest DisallowShadowContent to DisallowUserAgentShadowContent
593         https://bugs.webkit.org/show_bug.cgi?id=157447
594
595         Reviewed by Ryosuke Niwa.
596
597         * WebView/WebFrame.mm:
598         (-[WebFrame elementAtPoint:]):
599         * WebView/WebHTMLView.mm:
600         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
601
602 2016-05-06  Simon Fraser  <simon.fraser@apple.com>
603
604         Enable IOS_TEXT_AUTOSIZING on Mac and make it testable
605         https://bugs.webkit.org/show_bug.cgi?id=157432
606         rdar://problem/16406720
607
608         Reviewed by Dean Jackson.
609
610         Enable IOS_TEXT_AUTOSIZING on Mac so it can be tested.
611
612         Make the setTextAutosizingEnabled() Setting work, and plumb it through WK1 and WK2
613         preferences for WTR and DRT. Make textAutosizingWindowSizeOverride() work, for layout tests.
614         These two settings are shared with TEXT_AUTOSIZING.
615
616         Add a TextAutosizing log channel, which is useful for generated -expected.html results.
617
618         Move adjustComputedFontSizesOnBlocks() and related code from RenderObject to RenderElement
619         without changes.
620
621         An implication of this set of changes is that the way clients enable text autosizing
622         has changed. Previously, they set the "MinimumZoomFontSize" preference to 0.
623         Settings::defaultMinimumZoomFontSize() used to do this in order to enable text autosizing
624         on iPhone only, not iPad.
625
626         Now the preferred technique is to leave minimumZoomFontSize alone, and to use textAutosizingEnabled()
627         instead. Settings::defaultTextAutosizingEnabled() now does the check for iPhone.
628
629         UIWebView calls WebKitGetMinimumZoomFontSize() to setup the default minimum font zoom size,
630         which will now always return 15, but had no other code that toggled this. So it's safe to just rely
631         on Settings::defaultTextAutosizingEnabled() doing the right thing for iPhone/iPad.
632
633         * Configurations/FeatureDefines.xcconfig:
634         * WebView/WebPreferenceKeysPrivate.h:
635         * WebView/WebPreferences.mm:
636         (+[WebPreferences initialize]):
637         (-[WebPreferences _setTextAutosizingEnabled:]):
638         (-[WebPreferences _textAutosizingEnabled]):
639         * WebView/WebPreferencesPrivate.h:
640
641 2016-05-06  Dean Jackson  <dino@apple.com>
642
643         Regions, Shapes and Tracks don't need runtime features
644         https://bugs.webkit.org/show_bug.cgi?id=157426
645         <rdar://problem/26146262>
646
647         Reviewed by Simon Fraser.
648
649         The following RuntimeEnabledFeatures can be removed since
650         we have no need to disable them (they are stable and have
651         shipped for a while):
652         - CSS Regions
653         - CSS Shapes
654         - Media tracks
655
656         * WebView/WebPreferenceKeysPrivate.h:
657         * WebView/WebPreferences.mm:
658         (+[WebPreferences initialize]): Deleted.
659         (-[WebPreferences cssRegionsEnabled]): Deleted.
660         (-[WebPreferences setCSSRegionsEnabled:]): Deleted.
661         (-[WebPreferences cssCompositingEnabled]): Deleted.
662         (-[WebPreferences setCSSCompositingEnabled:]): Deleted.
663         * WebView/WebPreferencesPrivate.h:
664         * WebView/WebView.mm:
665         (-[WebView _preferencesChanged:]): Deleted.
666
667 2016-05-06  Daniel Bates  <dabates@apple.com>
668
669         Remove workaround for Apple Internal bots
670         <rdar://problem/25989808>
671
672         Reverts the workaround added in r200211 as it is no longer needed.
673
674         * WebView/WebPDFView.h:
675
676 2016-05-02  Daniel Bates  <dabates@apple.com>
677
678         CSP: Add workaround for XtraMath
679         https://bugs.webkit.org/show_bug.cgi?id=157252
680
681         Reviewed by Andy Estes.
682
683         * WebView/WebView.mm:
684         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Allow * to match any protocol for
685         applicable versions of app XtraMath.
686
687 2016-05-02  Daniel Bates  <dabates@apple.com>
688
689         DatabaseTracker::closeAllDatabases calls Database::close from the wrong thread
690         https://bugs.webkit.org/show_bug.cgi?id=147672
691         <rdar://problem/22357464>
692
693         Reviewed by Brady Eidson.
694
695         Update the background assertion expiration callback to call DatabaseTracker::closeAllDatabases()
696         with CurrentQueryBehavior::Interrupt so that we abort a long running query and close the database
697         immediately to avoid holding a locked file when the process is suspended.
698
699         * Storage/WebDatabaseManager.mm:
700         (+[WebDatabaseManager startBackgroundTask]):
701
702 2016-04-29  Dean Jackson  <dino@apple.com>
703
704         RTL <select> popup menu is in the wrong location
705         https://bugs.webkit.org/show_bug.cgi?id=157159
706         <rdar://problem/25894451>
707
708         Reapply http://trac.webkit.org/changeset/200217
709         but with changes that will allow it to build on Yosemite.
710
711         * WebCoreSupport/PopupMenuMac.mm:
712         (PopupMenuMac::show):
713
714 2016-04-29  Commit Queue  <commit-queue@webkit.org>
715
716         Unreviewed, rolling out r200217.
717         https://bugs.webkit.org/show_bug.cgi?id=157183
718
719         This change broke the Yosemite build. (Requested by ryanhaddad
720         on #webkit).
721
722         Reverted changeset:
723
724         "RTL <select> popup menu is in the wrong location"
725         https://bugs.webkit.org/show_bug.cgi?id=157159
726         http://trac.webkit.org/changeset/200217
727
728 2016-04-28  Dean Jackson  <dino@apple.com>
729
730         RTL <select> popup menu is in the wrong location
731         https://bugs.webkit.org/show_bug.cgi?id=157159
732         <rdar://problem/25894451>
733
734         Reviewed by Simon Fraser.
735
736         Make sure both the NSPopupMenuCell and the NSPopupMenu take
737         the text direction into account, and offset the position
738         of the menu slightly if we're in RTL mode.
739
740         Unfortunately our test infrastructure is unable to exercise
741         this because it runs without a window, and the popup menu
742         is not captured in the screenshot.
743
744         * WebCoreSupport/PopupMenuMac.mm:
745         (PopupMenuMac::show):
746
747 2016-04-28  Manuel Rego Casasnovas  <rego@igalia.com>
748
749         [css-grid] Add CSS Grid Layout runtime flag
750         https://bugs.webkit.org/show_bug.cgi?id=157134
751
752         Reviewed by Simon Fraser.
753
754         Add CSS Grid Layout runtime flag based on preferences,
755         enabled by default.
756
757         * WebView/WebPreferenceKeysPrivate.h:
758         * WebView/WebPreferences.mm:
759         (+[WebPreferences initialize]):
760         (-[WebPreferences isCSSGridLayoutEnabled]):
761         (-[WebPreferences setCSSGridLayoutEnabled:]):
762         * WebView/WebPreferencesPrivate.h:
763         * WebView/WebView.mm:
764         (-[WebView _preferencesChanged:]):
765
766 2016-04-28  Daniel Bates  <dabates@apple.com>
767
768         Another fix for the Apple Internal OS X build
769         <rdar://problem/25989808>
770
771         Reviewed by Anders Carlsson.
772
773         * WebView/WebPDFView.h:
774
775 2016-04-28  Daniel Bates  <dabates@apple.com>
776
777         Fix the Apple Internal OS X build
778
779         * WebView/WebPDFView.h: Import PDFKit for definition of protocol PDFViewDelegate.
780         Forward declare protocol PDFViewDelegate as appropriate. Mark WebPDFView as implementing
781         protocol PDFViewDelegate.
782         * WebView/WebPDFView.mm: Move import of PDFKit from here to the header.
783
784 2016-04-27  Daniel Bates  <dabates@apple.com>
785
786         CSP: Add app-specific workaround for Ecobee and Quora
787         https://bugs.webkit.org/show_bug.cgi?id=157005
788         <rdar://problem/25560776>
789
790         Reviewed by Brent Fulgham.
791
792         * Misc/WebKitVersionChecks.h:
793         * WebView/WebView.mm:
794         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol): Added.
795         (-[WebView _preferencesChanged:]): Enable setting allowContentSecurityPolicySourceStarToMatchAnyProtocol
796         if applicable.
797
798 2016-04-26  Joseph Pecoraro  <pecoraro@apple.com>
799
800         Uncaught Exception: SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
801         https://bugs.webkit.org/show_bug.cgi?id=156991
802         <rdar://problem/25913475>
803
804         Reviewed by Timothy Hatcher.
805
806         * WebCoreSupport/WebInspectorClient.mm:
807         (-[WebInspectorWindowController init]):
808         Apply the same universal file access to WebKit1 Web Inspector views that
809         we apply to WebKit2 views. Explicitly always allow access to storage
810         for Web Inspector content just in case as we already allow universal
811         file access.
812
813 2016-04-26  Beth Dakin  <bdakin@apple.com>
814
815         Check to make sure shouldRequestCandidates() before requesting candidates
816         https://bugs.webkit.org/show_bug.cgi?id=157038
817         -and corresponding-
818         rdar://problem/25910418
819
820         Reviewed by Tim Horton.
821
822         This patch limits requesting and showing candidates to cases where 
823         shouldRequestCandidates() is true. This patch also caches the sequence number 
824         returned by [NSSpellChecker requestCandidatesForSelectedRange:] to make sure 
825         it is equal to the sequence number sent to the callback handler so that we do 
826         not show candidates for old requests.
827
828         * WebCoreSupport/WebEditorClient.h:
829         * WebCoreSupport/WebEditorClient.mm:
830         (WebEditorClient::requestCandidatesForSelection):
831         (WebEditorClient::handleRequestedCandidates):
832         * WebView/WebView.mm:
833         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
834         (-[WebView shouldRequestCandidates]):
835         * WebView/WebViewInternal.h:
836
837 2016-04-25  Ryosuke Niwa  <rniwa@webkit.org>
838
839         Remove the build flag for template elements
840         https://bugs.webkit.org/show_bug.cgi?id=157022
841
842         Reviewed by Daniel Bates.
843
844         * Configurations/FeatureDefines.xcconfig:
845
846 2016-04-25  Myles C. Maxfield  <mmaxfield@apple.com>
847
848         [Cocoa] Guarantee FontPlatformData's m_cgFont is never nullptr
849         https://bugs.webkit.org/show_bug.cgi?id=156929
850
851         Reviewed by Darin Adler.
852
853         * Misc/WebKitNSStringExtras.mm:
854         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Drawing
855         a string with a null font shouldn't do anything.
856         * Misc/WebStringTruncator.mm: We can't truncate a string if we don't have a font
857         to use.
858         (+[WebStringTruncator centerTruncateString:toWidth:]):
859         (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
860         (+[WebStringTruncator rightTruncateString:toWidth:withFont:]):
861         (+[WebStringTruncator widthOfString:font:]):
862
863 2016-04-25  Beth Dakin  <bdakin@apple.com>
864
865         WebEditorClient should properly write to m_rangeForCandidates
866         https://bugs.webkit.org/show_bug.cgi?id=157003
867         -and corresponding-
868         rdar://problem/25910418
869
870         Reviewed by Tim Horton.
871
872         Actually write to m_rangeForCandidates instead of declaring a local variable 
873         of the same name. :-/
874         * WebCoreSupport/WebEditorClient.mm:
875         (WebEditorClient::requestCandidatesForSelection):
876
877 2016-04-23  Andy Estes  <aestes@apple.com>
878
879         Fix issues found by the clang static analyzer
880         https://bugs.webkit.org/show_bug.cgi?id=156956
881
882         Reviewed by Alexey Proskuryakov.
883
884         * WebView/WebDeviceOrientationProviderMock.mm:
885         (-[WebDeviceOrientationProviderMock dealloc]): [super dealloc] should be called last.
886
887 2016-04-21  Tim Horton  <timothy_horton@apple.com>
888
889         Fix the iOS build: WAKView may not respond to drawLayer:inContext:
890         https://bugs.webkit.org/show_bug.cgi?id=156879
891         <rdar://problem/25772661>
892
893         Reviewed by Beth Dakin.
894
895         * WebView/WebHTMLView.mm:
896         WebHTMLView on iOS never uses drawLayer:inContext:, and WAKView
897         doesn't implement it, so this would have thrown an exception
898         if called, anyway. Fix the build with stricter CA protocols.
899
900 2016-04-21  Jer Noble  <jer.noble@apple.com>
901
902         [WK1] Add WebPlaybackSession support to WebKit
903         https://bugs.webkit.org/show_bug.cgi?id=156854
904
905         Reviewed by Beth Dakin.
906
907         Add support for WebPlaybackSession and the ChromeClient methods setUpPlaybackControlsManager() and
908         clearPlaybackControlsManager() to WebKit.
909
910         * WebCoreSupport/WebChromeClient.h:
911         * WebCoreSupport/WebChromeClient.mm:
912         (WebChromeClient::setUpPlaybackControlsManager):
913         (WebChromeClient::clearPlaybackControlsManager):
914         * WebView/WebView.mm:
915         (-[WebView _hasActiveVideoForControlsInterface]):
916         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
917         (-[WebView _clearPlaybackControlsManagerForMediaElement:]):
918         * WebView/WebViewData.h:
919         * WebView/WebViewData.mm:
920         * WebView/WebViewInternal.h:
921
922 2016-04-21  Anders Carlsson  <andersca@apple.com>
923
924         Stop using ApplicationCacheStorage::singleton() in WebKitLegacy
925         https://bugs.webkit.org/show_bug.cgi?id=156859
926
927         Reviewed by Tim Horton.
928
929         * WebCoreSupport/WebApplicationCache.mm:
930         (+[WebApplicationCache initializeWithBundleIdentifier:]):
931         Change this to just store the bundle identifier.
932
933         (applicationCacheBundleIdentifier):
934         Helper function that returns the bundle identifier for the app cache.
935
936         (applicationCachePath):
937         Return the application cache path.
938
939         (webApplicationCacheStorage):
940         Create a new ApplicationCacheStorage object.
941
942         * WebView/WebView.mm:
943         (-[WebView _commonInitializationWithFrameName:groupName:]):
944         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
945         Set pageConfiguration.applicationCacheStorage to webApplicationCacheStorage().
946
947         (WebKitInitializeApplicationCachePathIfNecessary): Deleted.
948
949 2016-04-21  Beth Dakin  <bdakin@apple.com>
950
951         showCandidates() should take a range and the string should be the whole 
952         paragraph
953         https://bugs.webkit.org/show_bug.cgi?id=156813
954         -and corresponding-
955         rdar://problem/25760533
956
957         Reviewed by Tim Horton.
958
959         Cache the range and the paragraph since we compute them in 
960         requestCandidatesForSelection, and then we can use them again in 
961         handleRequestedCandidates.
962         * WebCoreSupport/WebEditorClient.h:
963         * WebCoreSupport/WebEditorClient.mm:
964         (WebEditorClient::requestCandidatesForSelection):
965         (WebEditorClient::handleRequestedCandidates):
966         * WebView/WebView.mm:
967         (-[WebView updateWebViewAdditions]):
968         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
969         (-[WebView showCandidates:forString:inRect:view:completionHandler:]): Deleted.
970         * WebView/WebViewInternal.h:
971
972 2016-04-21  Chris Dumez  <cdumez@apple.com>
973
974         Drop [UsePointersEvenForNonNullableObjectArguments] from Range
975         https://bugs.webkit.org/show_bug.cgi?id=156805
976
977         Reviewed by Youenn Fablet.
978
979         * WebView/WebFrame.mm:
980         (-[WebFrame _smartDeleteRangeForProposedRange:]):
981
982 2016-04-20  Brady Eidson  <beidson@apple.com>
983
984         Modern IDB (Workers): Enable INDEXED_DATABASE_IN_WORKERS compile time flag, but disabled in RuntimeEnabledFeatures.
985         https://bugs.webkit.org/show_bug.cgi?id=156782
986
987         Reviewed by Alex Christensen.
988
989         * Configurations/FeatureDefines.xcconfig:
990
991 2016-04-18  Anders Carlsson  <andersca@apple.com>
992
993         Fix build with newer versions of clang.
994         rdar://problem/25749769
995
996         * WebCoreSupport/WebContextMenuClient.mm:
997         * WebView/WebHTMLView.mm:
998         Forward declare some AppKit IPI.
999
1000 2016-04-18  Tina Liu  <iting_liu@apple.com>
1001
1002         Overrode a virtual function of WebCore::PluginStrategy
1003         https://bugs.webkit.org/show_bug.cgi?id=156540
1004
1005         Reviewed by Anders Carlsson.
1006
1007         * WebCoreSupport/WebPlatformStrategies.h:
1008         * WebCoreSupport/WebPlatformStrategies.mm:
1009         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy):
1010
1011 2016-04-18  Brent Fulgham  <bfulgham@apple.com>
1012
1013         CSP: Remove stubs for dynamically-added favicons (via link rel="icon")
1014         https://bugs.webkit.org/show_bug.cgi?id=153151
1015         <rdar://problem/24383176>
1016
1017         Reviewed by Darin Adler.
1018
1019         Remove the unused dynamic favicon code and tests.
1020
1021         * WebCoreSupport/WebFrameLoaderClient.h:
1022         * WebCoreSupport/WebFrameLoaderClient.mm:
1023         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
1024
1025 2016-04-15  Darin Adler  <darin@apple.com>
1026
1027         Reduce use of Deprecated::ScriptXXX classes
1028         https://bugs.webkit.org/show_bug.cgi?id=156632
1029
1030         Reviewed by Alex Christensen.
1031
1032         * WebView/WebFrame.mm:
1033         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Use references instead
1034         of pointers.
1035         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Updated
1036         since return value is a JSValue.
1037         * WebView/WebView.mm:
1038         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
1039
1040 2016-04-14  Brent Fulgham  <bfulgham@apple.com>
1041
1042         Make <a download> a runtime enabled option
1043         https://bugs.webkit.org/show_bug.cgi?id=156583
1044         <rdar://problem/25733449>
1045
1046         Reviewed by Alex Christensen.
1047
1048         Add a download attribute runtime flag based on preferences.
1049         Disable the download attribute by default.
1050
1051         * WebView/WebPreferenceKeysPrivate.h:
1052         * WebView/WebPreferences.mm:
1053         (+[WebPreferences initialize]):
1054         (-[WebPreferences setFetchAPIEnabled:]):
1055         (-[WebPreferences downloadAttributeEnabled]):
1056         (-[WebPreferences setDownloadAttributeEnabled:]):
1057         * WebView/WebPreferencesPrivate.h:
1058         * WebView/WebView.mm:
1059         (-[WebView _preferencesChanged]): Set the runtime flag properly
1060         based on the user preferences.
1061
1062 2016-04-09  Gavin Barraclough  <barraclough@apple.com>
1063
1064         WebKit should adopt journal_mode=wal for all SQLite databases.
1065         https://bugs.webkit.org/show_bug.cgi?id=133496
1066
1067         Reviewed by Darin Adler.
1068
1069         * Storage/WebDatabaseManagerPrivate.h:
1070             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
1071
1072 2016-04-05  Oliver Hunt  <oliver@apple.com>
1073
1074         Remove compile time define for SEPARATED_HEAP
1075         https://bugs.webkit.org/show_bug.cgi?id=155508
1076
1077         Reviewed by Mark Lam.
1078
1079         * Configurations/FeatureDefines.xcconfig:
1080
1081 2016-04-08  Sam Weinig  <sam@webkit.org>
1082
1083         Remove support for custom target picker actions
1084         <rdar://problem/24987783>
1085         https://bugs.webkit.org/show_bug.cgi?id=156434
1086
1087         Reviewed by Eric Carlson.
1088
1089         This mostly entailed rolling out r197429 and r197569.
1090
1091         * WebCoreSupport/WebChromeClient.h:
1092         * WebCoreSupport/WebChromeClient.mm:
1093         (WebChromeClient::removePlaybackTargetPickerClient):
1094         (WebChromeClient::showPlaybackTargetPicker):
1095         * WebView/WebMediaPlaybackTargetPicker.h:
1096         * WebView/WebMediaPlaybackTargetPicker.mm:
1097         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
1098         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
1099         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
1100         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
1101         (WebMediaPlaybackTargetPicker::invalidate):
1102         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected): Deleted.
1103         * WebView/WebView.mm:
1104         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
1105         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
1106
1107 2016-04-07  Joseph Pecoraro  <pecoraro@apple.com>
1108
1109         Remove ENABLE(ENABLE_ES6_CLASS_SYNTAX) guards
1110         https://bugs.webkit.org/show_bug.cgi?id=156384
1111
1112         Reviewed by Ryosuke Niwa.
1113
1114         * Configurations/FeatureDefines.xcconfig:
1115
1116 2016-04-07  Brian Burg  <bburg@apple.com>
1117
1118         CookieJar should support adding synthetic cookies for developer tools
1119         https://bugs.webkit.org/show_bug.cgi?id=156091
1120         <rdar://problem/25581340>
1121
1122         Reviewed by Timothy Hatcher.
1123
1124         * WebCoreSupport/WebPlatformStrategies.h:
1125         * WebCoreSupport/WebPlatformStrategies.mm:
1126         (WebPlatformStrategies::addCookie):
1127         Add new method override.
1128
1129 2016-04-06  Alex Christensen  <achristensen@webkit.org>
1130
1131         Fix CMake DumpRenderTree
1132         https://bugs.webkit.org/show_bug.cgi?id=156305
1133
1134         Reviewed by Daniel Bates.
1135
1136         * WebKitPrefix.h:
1137
1138 2016-04-05  Beth Dakin  <bdakin@apple.com>
1139
1140         Make requestCandidatesForSelection available on any EditorClient
1141         https://bugs.webkit.org/show_bug.cgi?id=156253
1142         -and corresponding-
1143         rdar://problem/24661147
1144
1145         Reviewed by Dean Jackson.
1146
1147         * WebCoreSupport/WebEditorClient.h:
1148
1149 2016-04-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
1150
1151         [Fetch API] Add a runtime flag to fetch API and related constructs
1152         https://bugs.webkit.org/show_bug.cgi?id=156113
1153  
1154         Reviewed by Alex Christensen.
1155
1156         Add a fetch API runtime flag based on preferences.
1157         Disable fetch API by default.
1158  
1159         * WebView/WebPreferenceKeysPrivate.h:
1160         * WebView/WebPreferences.mm:
1161         (+[WebPreferences initialize]):
1162         (-[WebPreferences setCustomElementsEnabled:]):
1163         (-[WebPreferences fetchAPIEnabled]):
1164         (-[WebPreferences setFetchAPIEnabled:]):
1165         * WebView/WebPreferencesPrivate.h:
1166         * WebView/WebView.mm:
1167         (-[WebView _preferencesChanged:]):
1168         (-[WebView preferencesIdentifier]):
1169         (-[WebView setUIDelegate:]):
1170
1171 2016-04-05  Antoine Quint  <graouts@apple.com>
1172
1173         [WebGL2] Turn the ENABLE_WEBGL2 flag on
1174         https://bugs.webkit.org/show_bug.cgi?id=156061
1175         <rdar://problem/25463193>
1176
1177         Reviewed by Alex Christensen.
1178
1179         * Configurations/FeatureDefines.xcconfig:
1180
1181 2016-04-05  Antoine Quint  <graouts@apple.com>
1182
1183         [WebGL2] Allow enabling WebGL2 with a runtime flag
1184         https://bugs.webkit.org/show_bug.cgi?id=156166
1185         <rdar://problem/25526929>
1186
1187         Set the WebGL2 runtime flag based on preferences, disabled by default.
1188
1189         Reviewed by Dean Jackson.
1190
1191         * WebView/WebPreferenceKeysPrivate.h:
1192         * WebView/WebPreferences.mm:
1193         (+[WebPreferences initialize]):
1194         (-[WebPreferences webGL2Enabled]):
1195         (-[WebPreferences setWebGL2Enabled:]):
1196         * WebView/WebPreferencesPrivate.h:
1197         * WebView/WebView.mm:
1198         (-[WebView _preferencesChanged:]):
1199
1200 2016-04-01  Alex Christensen  <achristensen@webkit.org>
1201
1202         Compile DumpRenderTree with CMake on Mac
1203         https://bugs.webkit.org/show_bug.cgi?id=156088
1204
1205         Reviewed by Brent Fulgham.
1206
1207         * Misc/WebKit.h:
1208         Alphabetize headers.
1209
1210 2016-03-31  Jeremy Jones  <jeremyj@apple.com>
1211
1212         mediaShouldUsePersistentCache() is redundant. Use Page::usesEphemeralSession() instead.
1213         https://bugs.webkit.org/show_bug.cgi?id=155924
1214
1215         Reviewed by Simon Fraser.
1216
1217         Remove mediaShouldUsePersistentCache machinery as it is redundant.
1218
1219         * WebCoreSupport/WebChromeClient.h:
1220         * WebCoreSupport/WebChromeClient.mm:
1221         (WebChromeClient::mediaShouldUsePersistentCache): Deleted.
1222
1223 2016-03-30  Ada Chan  <adachan@apple.com>
1224
1225         Add the new "toggle enhanced fullscreen" context menu item to the video context menu on supporting platforms.
1226         https://bugs.webkit.org/show_bug.cgi?id=156031
1227
1228         Reviewed by Eric Carlson.
1229
1230         * WebView/WebHTMLView.mm:
1231         (toAction):
1232         (toTag):
1233         * WebView/WebUIDelegatePrivate.h:
1234
1235 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
1236
1237         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
1238         https://bugs.webkit.org/show_bug.cgi?id=155412
1239
1240         Reviewed by Darin Adler.
1241
1242         * Misc/WebCache.mm:
1243         (+[WebCache addImageToCache:forURL:forFrame:]):
1244         WebCore::MemoryCache() is taking an rvalue NativeImagePtr. We need to create
1245         NativeImagePtr from the image raw pointer when calling this function.
1246
1247 2016-03-24  Tim Horton  <timothy_horton@apple.com>
1248
1249         Fix some new PDFKit-related warnings
1250         https://bugs.webkit.org/show_bug.cgi?id=155847
1251         <rdar://problem/25340312>
1252
1253         Reviewed by Anders Carlsson.
1254
1255         * WebView/WebPDFView.mm:
1256         (-[WebPDFView setViewState:]):
1257         * WebView/WebPreferences.mm:
1258         (-[WebPreferences PDFDisplayMode]):
1259         PDFDisplayMode is now a real enum.
1260
1261 2016-03-23  Anders Carlsson  <andersca@apple.com>
1262
1263         Crash when using KVO from within -[WebView initWithCoder:]
1264         https://bugs.webkit.org/show_bug.cgi?id=155816
1265         rdar://problem/17073265
1266
1267         Reviewed by Dan Bernstein.
1268
1269         Get rid of the observationInfo getter and setter. It's not clear why they were added (in 2003),
1270         and the methods on NSObject are good enough for us.
1271
1272         * WebView/WebView.mm:
1273         (-[WebView setObservationInfo:]): Deleted.
1274         (-[WebView observationInfo]): Deleted.
1275         * WebView/WebViewData.h:
1276
1277 2016-03-22  Beth Dakin  <bdakin@apple.com>
1278
1279         Advanced spell checking should be guarded behind 
1280         HAVE(ADVANCED_SPELL_CHECKING)
1281         https://bugs.webkit.org/show_bug.cgi?id=155738
1282
1283         Reviewed by Geoff Garen.
1284
1285         * WebCoreSupport/WebEditorClient.mm:
1286         (insertionPointFromCurrentSelection):
1287         (WebEditorClient::checkTextOfParagraph):
1288         (WebEditorClient::getGuessesForWord):
1289         (WebEditorClient::requestCandidatesForSelection):
1290         (WebEditorClient::handleRequestedCandidates):
1291         (WebEditorClient::requestCheckingOfString):
1292         * WebKitPrefix.h:
1293         * WebView/WebHTMLView.mm:
1294         (-[WebHTMLView insertText:]):
1295
1296 2016-03-20  Dan Bernstein  <mitz@apple.com>
1297
1298         [Mac] Determine TARGET_MAC_OS_X_VERSION_MAJOR from MACOSX_DEPLOYMENT_TARGET rather than from MAC_OS_X_VERSION_MAJOR
1299         https://bugs.webkit.org/show_bug.cgi?id=155707
1300         <rdar://problem/24980691>
1301
1302         Reviewed by Darin Adler.
1303
1304         * Configurations/Base.xcconfig: Set TARGET_MAC_OS_X_VERSION_MAJOR based on the last
1305           component of MACOSX_DEPLOYMENT_TARGET.
1306         * Configurations/DebugRelease.xcconfig: For engineering builds, preserve the behavior of
1307           TARGET_MAC_OS_X_VERSION_MAJOR being the host’s OS version.
1308
1309 2016-03-20  Darin Adler  <darin@apple.com>
1310
1311         Disable Caches in Safari's Develop menu does not disable caches.
1312         https://bugs.webkit.org/show_bug.cgi?id=64483
1313
1314         Reviewed by Antti Koivisto.
1315
1316         Removed unneeded WebPreferences property; we don't need this for Legacy WebKit.
1317
1318         * WebView/WebPreferenceKeysPrivate.h: Removed
1319         WebKitResourceCachingDisabledPreferenceKey.
1320         * WebView/WebPreferences.mm:
1321         (-[WebPreferences isResourceCachingDisabled]): Deleted.
1322         (-[WebPreferences setResourceCachingDisabled:]): Deleted.
1323         * WebView/WebPreferencesPrivate.h: Removed resourceCachingDisabled property.
1324         * WebView/WebView.mm:
1325         (-[WebView _preferencesChanged:]): Removed code to update resourceCachingDisabled.
1326
1327 2016-03-20  Dan Bernstein  <mitz@apple.com>
1328
1329         Update build settings
1330
1331         Rubber-stamped by Andy Estes.
1332
1333         * Configurations/DebugRelease.xcconfig:
1334         * Configurations/FeatureDefines.xcconfig:
1335         * Configurations/Version.xcconfig:
1336
1337 2016-03-18  Darin Adler  <darin@apple.com>
1338
1339         Disable Caches in Safari's Develop menu does not disable caches.
1340         https://bugs.webkit.org/show_bug.cgi?id=64483
1341
1342         Reviewed by Antti Koivisto.
1343
1344         * WebView/WebPreferenceKeysPrivate.h: Added ResourceCachingDisabled.
1345         * WebView/WebPreferences.mm:
1346         (-[WebPreferences isResourceCachingDisabled]): Added.
1347         (-[WebPreferences setResourceCachingDisabled:]): Added.
1348         * WebView/WebPreferencesPrivate.h: Added resourceCachingDisabled.
1349         * WebView/WebView.mm:
1350         (-[WebView _preferencesChanged:]): Push resourceCachingDisabled into WebCore.
1351
1352 2016-03-17  Csaba Osztrogonác  <ossy@webkit.org>
1353
1354         [cmake][Mac] Unreviewed speculative buildfix after r198088. Just for fun.
1355
1356         * WebView/WebView.mm:
1357         (-[WebView _preferencesChanged:]):
1358
1359 2016-03-17  Andy Estes  <aestes@apple.com>
1360
1361         [Mac] Enable Content-Disposition: attachment sandbox
1362         https://bugs.webkit.org/show_bug.cgi?id=155578
1363         <rdar://problem/21886326>
1364
1365         Reviewed by Dan Bernstein.
1366
1367         Covered by the existing set of attachment sandbox tests, which have always been run on Mac.
1368
1369         * WebView/WebView.mm:
1370         (-[WebView _commonInitializationWithFrameName:groupName:]):
1371
1372 2016-03-16  Beth Dakin  <bdakin@apple.com>
1373
1374         Provide NSSpellChecker spellChecking methods with the current insertion point
1375         https://bugs.webkit.org/show_bug.cgi?id=155532
1376         -and corresponding-
1377         rdar://problem/24066952
1378
1379         Reviewed by Simon Fraser.
1380
1381         Extract the insertion point from the VisibleSelection that WebCore has 
1382         passed. 
1383         * WebCoreSupport/WebEditorClient.h:
1384         (WebEditorClient::getGuessesForWord):
1385         * WebCoreSupport/WebEditorClient.mm:
1386         (WebEditorClient::checkTextOfParagraph):
1387         (insertionPointFromCurrentSelection):
1388         (WebEditorClient::getGuessesForWord):
1389         (WebEditorClient::requestCheckingOfString):
1390
1391 2016-03-16  Chris Dumez  <cdumez@apple.com>
1392
1393         Unreviewed, rolling out r198235, r198240, r198241, and
1394         r198252.
1395
1396         Causing crashes on ARM
1397
1398         Reverted changesets:
1399
1400         "Remove compile time define for SEPARATED_HEAP"
1401         https://bugs.webkit.org/show_bug.cgi?id=155508
1402         http://trac.webkit.org/changeset/198235
1403
1404         "Gardening: build fix after r198235."
1405         http://trac.webkit.org/changeset/198240
1406
1407         "Build fix."
1408         http://trac.webkit.org/changeset/198241
1409
1410         "Rename performJITMemcpy to something more inline with our
1411         normal webkit function names"
1412         https://bugs.webkit.org/show_bug.cgi?id=155525
1413         http://trac.webkit.org/changeset/198252
1414
1415 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
1416
1417         URL Parsing should signal failure for illegal IDN
1418         https://bugs.webkit.org/show_bug.cgi?id=154945
1419         <rdar://problem/8014795>
1420
1421         Reviewed by Brent Fulgham.
1422
1423         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
1424         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
1425
1426         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
1427         deprecated as they ignore URL parsing failure.
1428
1429         * History/WebHistoryItem.mm:
1430         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1431         * Misc/WebKitErrors.m:
1432         (+[NSError _webKitErrorWithCode:failingURL:]):
1433         * Misc/WebNSFileManagerExtras.mm:
1434         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
1435         * Misc/WebNSPasteboardExtras.mm:
1436         (-[NSPasteboard _web_bestURL]):
1437         * Misc/WebNSURLExtras.h:
1438         * Misc/WebNSURLExtras.mm:
1439         (+[NSURL _web_URLWithUserTypedString:]):
1440         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
1441         (+[NSURL _webkit_URLWithUserTypedString:]):
1442         (-[NSString _web_decodeHostName]):
1443         (-[NSString _web_encodeHostName]):
1444         (-[NSString _webkit_decodeHostName]):
1445         (-[NSString _webkit_encodeHostName]):
1446         * Panels/WebAuthenticationPanel.m:
1447         (-[WebAuthenticationPanel setUpForChallenge:]):
1448         * WebCoreSupport/WebEditorClient.mm:
1449         (WebEditorClient::canonicalizeURLString):
1450
1451 2016-03-15  Jer Noble  <jer.noble@apple.com>
1452
1453         [ios-sim debug] API test WebKit1.AudioSessionCategoryIOS timing out
1454         https://bugs.webkit.org/show_bug.cgi?id=155275
1455
1456         Reviewed by Alexey Proskuryakov.
1457
1458         The videoPlaybackRequiresUserGesture and audioPlaybackRequiresUserGesture should both defalut to
1459         NO, so that legacy clients of -[UIWebView setMediaPlaybackRequiresUserAction:] continue to work
1460         as expected.
1461
1462         * WebView/WebPreferences.mm:
1463         (+[WebPreferences initialize]):
1464
1465 2016-03-15  Oliver Hunt  <oliver@apple.com>
1466
1467         Remove compile time define for SEPARATED_HEAP
1468         https://bugs.webkit.org/show_bug.cgi?id=155508
1469
1470         Reviewed by Mark Lam.
1471
1472         Remove the feature define.
1473
1474         * Configurations/FeatureDefines.xcconfig:
1475
1476 2016-03-15  Chris Dumez  <cdumez@apple.com>
1477
1478         Unreviewed, rolling out r198203.
1479
1480         Favorites view is no longer loading on iOS
1481
1482         Reverted changeset:
1483
1484         "URL Parsing should signal failure for illegal IDN"
1485         https://bugs.webkit.org/show_bug.cgi?id=154945
1486         http://trac.webkit.org/changeset/198203
1487
1488 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
1489
1490         URL Parsing should signal failure for illegal IDN
1491         https://bugs.webkit.org/show_bug.cgi?id=154945
1492         <rdar://problem/8014795>
1493
1494         Reviewed by Brent Fulgham.
1495
1496         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
1497         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
1498
1499         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
1500         deprecated as they ignore URL parsing failure.
1501
1502         * History/WebHistoryItem.mm:
1503         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1504         * Misc/WebKitErrors.m:
1505         (+[NSError _webKitErrorWithCode:failingURL:]):
1506         * Misc/WebNSFileManagerExtras.mm:
1507         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
1508         * Misc/WebNSPasteboardExtras.mm:
1509         (-[NSPasteboard _web_bestURL]):
1510         * Misc/WebNSURLExtras.h:
1511         * Misc/WebNSURLExtras.mm:
1512         (+[NSURL _web_URLWithUserTypedString:]):
1513         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
1514         (+[NSURL _webkit_URLWithUserTypedString:]):
1515         (-[NSString _web_decodeHostName]):
1516         (-[NSString _web_encodeHostName]):
1517         (-[NSString _webkit_decodeHostName]):
1518         (-[NSString _webkit_encodeHostName]):
1519         * Panels/WebAuthenticationPanel.m:
1520         (-[WebAuthenticationPanel setUpForChallenge:]):
1521         * WebCoreSupport/WebEditorClient.mm:
1522         (WebEditorClient::canonicalizeURLString):
1523
1524 2016-03-14  Chris Dumez  <cdumez@apple.com>
1525
1526         Unreviewed, rolling out r197981.
1527
1528         Caused a massive PLT regression on Mac.
1529
1530         Reverted changeset:
1531
1532         "Font antialiasing (smoothing) changes when elements are
1533         rendered into compositing layers"
1534         https://bugs.webkit.org/show_bug.cgi?id=23364
1535         http://trac.webkit.org/changeset/197981
1536
1537 2016-03-14  Sam Weinig  <sam@webkit.org>
1538
1539         Add a baseURL parameter to _WKUserStyleSheet
1540         https://bugs.webkit.org/show_bug.cgi?id=155219
1541
1542         Reviewed by Tim Horton.
1543
1544         * WebView/WebView.mm:
1545         (-[WebView _commonInitializationWithFrameName:groupName:]):
1546         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1547         (-[WebView setGroupName:]):
1548         Update to account for the name change from UserContentController -> UserContentProvider.
1549
1550 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
1551
1552         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
1553         https://bugs.webkit.org/show_bug.cgi?id=150497
1554
1555         Reviewed by Darin Adler.
1556
1557         * DOM/WebDOMOperations.mm:
1558         (-[DOMNode webArchive]):
1559         (-[DOMNode webArchiveByFilteringSubframes:]):
1560         * WebCoreSupport/WebPlatformStrategies.h:
1561         * WebCoreSupport/WebPlatformStrategies.mm:
1562         (WebPlatformStrategies::bufferForType):
1563         (WebPlatformStrategies::readBufferFromPasteboard):
1564         * WebView/WebArchive.mm:
1565         (-[WebArchive initWithData:]):
1566         * WebView/WebDataSource.mm:
1567         (-[WebDataSource webArchive]):
1568         (-[WebDataSource addSubresource:]):
1569         * WebView/WebResource.mm:
1570         (-[WebResource encodeWithCoder:]):
1571         (-[WebResource data]):
1572         (-[WebResource _stringValue]):
1573         (-[WebResource _initWithCoreResource:]): Deleted.
1574
1575 2016-03-14  Oliver Hunt  <oliver@apple.com>
1576
1577         Temporarily disable the separated heap.
1578         https://bugs.webkit.org/show_bug.cgi?id=155472
1579
1580         Reviewed by Geoffrey Garen.
1581
1582         Temporarily disable this.
1583
1584         * Configurations/FeatureDefines.xcconfig:
1585
1586 2016-03-14  Anders Carlsson  <andersca@apple.com>
1587
1588         Fix build.
1589
1590         Ignore nullability warnings, create an empty PDF selection.
1591
1592         * WebView/WebPDFView.mm:
1593         (-[WebPDFView centerSelectionInVisibleArea:]):
1594         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
1595         (+[WebPDFView _PDFSelectionClass]):
1596         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
1597
1598 2016-03-13  Joseph Pecoraro  <pecoraro@apple.com>
1599
1600         Remove ENABLE(ES6_TEMPLATE_LITERAL_SYNTAX) guards
1601         https://bugs.webkit.org/show_bug.cgi?id=155417
1602
1603         Reviewed by Yusuke Suzuki.
1604
1605         * Configurations/FeatureDefines.xcconfig:
1606
1607 2016-03-13  Dean Jackson  <dino@apple.com>
1608
1609         <attachment> should be a runtime-enabled feature
1610         https://bugs.webkit.org/show_bug.cgi?id=155413
1611         <rdar://problem/25120753>
1612
1613         Reviewed by Sam Weinig and Anders Carlsson.
1614
1615         Add an internal setting on WebPreferences
1616         to enable the <attachment> element support.
1617
1618         * WebView/WebPreferenceKeysPrivate.h:
1619         * WebView/WebPreferences.mm:
1620         (+[WebPreferences initialize]):
1621         (-[WebPreferences attachmentElementEnabled]):
1622         (-[WebPreferences setAttachmentElementEnabled:]):
1623         * WebView/WebPreferencesPrivate.h:
1624         * WebView/WebView.mm:
1625         (-[WebView _preferencesChanged:]):
1626
1627 2016-03-12  Sam Weinig  <sam@webkit.org>
1628
1629         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
1630         <rdar://problem/25129946>
1631         https://bugs.webkit.org/show_bug.cgi?id=155401
1632
1633         Reviewed by Alex Christensen.
1634
1635         * WebCoreSupport/WebFrameNetworkingContext.mm:
1636         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
1637         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
1638
1639 2016-03-12  Myles C. Maxfield  <mmaxfield@apple.com>
1640
1641         Delete dead SVG Font code
1642         https://bugs.webkit.org/show_bug.cgi?id=154718
1643
1644         Reviewed by Antti Koivisto.
1645
1646         * Configurations/FeatureDefines.xcconfig:
1647
1648 2016-03-11  Yusuke Suzuki  <utatane.tea@gmail.com>
1649
1650         [ES6] Implement Reflect.set without receiver support
1651         https://bugs.webkit.org/show_bug.cgi?id=155024
1652
1653         Reviewed by Geoffrey Garen.
1654
1655         As the same to NPJSObject, we just propagate the returned value of NetscapePluginInstanceProxy::setProperty.
1656
1657         * Plugins/Hosted/ProxyInstance.h:
1658         * Plugins/Hosted/ProxyInstance.mm:
1659         (WebKit::ProxyField::setValueToInstance):
1660         (WebKit::ProxyInstance::setFieldValue):
1661
1662 2016-03-10  Jeremy Jones  <jeremyj@apple.com>
1663
1664         Set AVURLAssetUsesNoPersistentCacheKey on AVAsset to match caching policy.
1665         https://bugs.webkit.org/show_bug.cgi?id=155117
1666         rdar://problem/6802240
1667
1668         Reviewed by Simon Fraser.
1669
1670         Implement mediaShouldUsePersistentCache to disable media caching when NSURLCache is disabled.
1671
1672         * WebCoreSupport/WebChromeClient.h:
1673         * WebCoreSupport/WebChromeClient.mm:
1674         (WebChromeClient::mediaShouldUsePersistentCache): Added.
1675
1676 2016-03-10  Simon Fraser  <simon.fraser@apple.com>
1677
1678         Font antialiasing (smoothing) changes when elements are rendered into compositing layers
1679         https://bugs.webkit.org/show_bug.cgi?id=23364
1680
1681         Reviewed by Tim Horton.
1682
1683         Allow internal clients to turn off smoothed layer text, so that WebKitTestRunner
1684         can disable it.
1685
1686         * WebView/WebView.mm:
1687         (+[WebView _setSmoothedLayerTextEnabled:]):
1688         (+[WebView _smoothedLayerTextEnabled]):
1689         * WebView/WebViewPrivate.h:
1690
1691 2016-03-10  Jer Noble  <jer.noble@apple.com>
1692
1693         Add WebCore, WebKit, & WebKit2 preference/setting to enable Main Content heuristic.
1694         https://bugs.webkit.org/show_bug.cgi?id=155326
1695         <rdar://problem/25095408>
1696
1697         Reviewed by Beth Dakin.
1698
1699         Add SPI to get and set the new preference.
1700
1701         * WebView/WebPreferenceKeysPrivate.h:
1702         * WebView/WebPreferences.mm:
1703         (-[WebPreferences overrideUserGestureRequirementForMainContent]):
1704         (-[WebPreferences setOverrideUserGestureRequirementForMainContent:]):
1705         * WebView/WebPreferencesPrivate.h:
1706         * WebView/WebView.mm:
1707         (-[WebView _preferencesChanged:]):
1708
1709 2016-03-07  Jer Noble  <jer.noble@apple.com>
1710
1711         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
1712         https://bugs.webkit.org/show_bug.cgi?id=155141
1713
1714         Reviewed by Beth Dakin.
1715
1716         Deprecate WebPreferences.mediaPlaybackRequiresUserGesture property in favor of .videoPlaybackRequiresUserGesture.
1717
1718         * WebView/WebPreferenceKeysPrivate.h:
1719         * WebView/WebPreferences.mm:
1720         (+[WebPreferences initialize]):
1721         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
1722         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
1723         (-[WebPreferences videoPlaybackRequiresUserGesture]):
1724         (-[WebPreferences setVideoPlaybackRequiresUserGesture:]):
1725         * WebView/WebPreferencesPrivate.h:
1726         * WebView/WebView.mm:
1727         (-[WebView _preferencesChanged:]):
1728
1729 2016-03-10  Alexey Proskuryakov  <ap@apple.com>
1730
1731         Build fix for deprecated constant names.
1732
1733         * Carbon/CarbonWindowAdapter.mm:
1734         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1735         (-[CarbonWindowAdapter sendSuperEvent:]):
1736
1737 2016-03-10  Commit Queue  <commit-queue@webkit.org>
1738
1739         Unreviewed, rolling out r197943.
1740         https://bugs.webkit.org/show_bug.cgi?id=155317
1741
1742         This change broke Windows, WinCairo, GTK and EFL builds
1743         (Requested by ryanhaddad on #webkit).
1744
1745         Reverted changeset:
1746
1747         "Add a baseURL parameter to _WKUserStyleSheet"
1748         https://bugs.webkit.org/show_bug.cgi?id=155219
1749         http://trac.webkit.org/changeset/197943
1750
1751 2016-03-08  Sam Weinig  <sam@webkit.org>
1752
1753         Add a baseURL parameter to _WKUserStyleSheet
1754         https://bugs.webkit.org/show_bug.cgi?id=155219
1755
1756         Reviewed by Tim Horton.
1757
1758         * WebView/WebView.mm:
1759         (-[WebView _commonInitializationWithFrameName:groupName:]):
1760         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1761         (-[WebView setGroupName:]):
1762         Update to account for the name change from UserContentController -> UserContentProvider.
1763
1764 2016-02-22  Jer Noble  <jer.noble@apple.com>
1765
1766         Enable AVFoundationNSURLSessionEnabled by default
1767         https://bugs.webkit.org/show_bug.cgi?id=154469
1768
1769         Reviewed by Sam Weinig.
1770
1771         * WebView/WebPreferences.mm:
1772         (+[WebPreferences initialize]):
1773
1774 2016-03-09  Ryosuke Niwa  <rniwa@webkit.org>
1775
1776         Add runtime flags for shadow DOM and custom elements
1777         https://bugs.webkit.org/show_bug.cgi?id=155213
1778
1779         Reviewed by Dean Jackson.
1780
1781         Set the runtime flag based on preferences. Enable shadow DOM and disable custom elements by default.
1782
1783         * WebView/WebPreferenceKeysPrivate.h:
1784         * WebView/WebPreferences.mm:
1785         (+[WebPreferences initialize]):
1786         (-[WebPreferences shadowDOMEnabled]):
1787         (-[WebPreferences setShadowDOMEnabled:]):
1788         (-[WebPreferences customElementsEnabled]):
1789         (-[WebPreferences setCustomElementsEnabled:]):
1790         * WebView/WebPreferencesPrivate.h:
1791         * WebView/WebView.mm:
1792         (-[WebView _preferencesChanged:]):
1793
1794 2016-03-09  David Kilzer  <ddkilzer@apple.com>
1795
1796         REGRESSION (r197149): Missing availability checks when soft-linking DataDetectors.framework
1797         <http://webkit.org/b/155258>
1798
1799         Reviewed by Andy Estes.
1800
1801         * WebView/WebImmediateActionController.mm:
1802         (-[WebImmediateActionController _clearImmediateActionState]):
1803         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
1804         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1805         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1806         - Add check that returns early if DataDetectors.framework is not
1807           available.
1808
1809 2016-03-08  Oliver Hunt  <oliver@apple.com>
1810
1811         Start moving to separated writable and executable mappings in the JIT
1812         https://bugs.webkit.org/show_bug.cgi?id=155178
1813
1814         Reviewed by Fil Pizlo.
1815
1816         Update feature defines.
1817
1818         * Configurations/FeatureDefines.xcconfig:
1819
1820 2016-03-08  Commit Queue  <commit-queue@webkit.org>
1821
1822         Unreviewed, rolling out r197793 and r197799.
1823         https://bugs.webkit.org/show_bug.cgi?id=155195
1824
1825         something weird happened while landing this and everything
1826         broke (Requested by olliej on #webkit).
1827
1828         Reverted changesets:
1829
1830         "Start moving to separated writable and executable mappings in
1831         the JIT"
1832         https://bugs.webkit.org/show_bug.cgi?id=155178
1833         http://trac.webkit.org/changeset/197793
1834
1835         "arm64 build fix after r197793."
1836         http://trac.webkit.org/changeset/197799
1837
1838 2016-03-08  Oliver Hunt  <oliver@apple.com>
1839
1840         Start moving to separated writable and executable mappings in the JIT
1841         https://bugs.webkit.org/show_bug.cgi?id=155178
1842
1843         Reviewed by Filip Pizlo.
1844
1845         Update feature defines.
1846
1847         * Configurations/FeatureDefines.xcconfig:
1848
1849 2016-03-08  Anders Carlsson  <andersca@apple.com>
1850
1851         Ignore deprecation warnings.
1852
1853         * Misc/WebNSEventExtras.m:
1854         (-[NSEvent _web_isKeyEvent:]):
1855         (-[NSEvent _web_isOptionTabKeyEvent]):
1856         * Misc/WebNSViewExtras.m:
1857         (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]):
1858         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1859         (WebKit::NetscapePluginHostProxy::beginModal):
1860         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1861         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
1862         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1863         (-[WebHostedNetscapePluginView drawRect:]):
1864         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1865         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
1866         * WebCoreSupport/PopupMenuMac.mm:
1867         (PopupMenuMac::populate):
1868         (PopupMenuMac::show):
1869         * WebCoreSupport/WebContextMenuClient.mm:
1870         (WebContextMenuClient::showContextMenu):
1871         * WebCoreSupport/WebFrameLoaderClient.mm:
1872         (WebFrameLoaderClient::actionDictionary):
1873         * WebCoreSupport/WebInspectorClient.mm:
1874         (WebInspectorFrontendClient::canAttach):
1875         (-[WebInspectorWindowController window]):
1876         * WebInspector/WebNodeHighlight.mm:
1877         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
1878         * WebView/WebFrameView.mm:
1879         (-[WebFrameView keyDown:keyDown:]):
1880         * WebView/WebFullScreenController.mm:
1881         (-[WebFullScreenController init]):
1882         (createBackgroundFullscreenWindow):
1883         * WebView/WebHTMLView.mm:
1884         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
1885         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
1886         (isQuickLookEvent):
1887         (-[WebHTMLView hitTest:]):
1888         (-[WebHTMLView _sendToolTipMouseExited]):
1889         (-[WebHTMLView _sendToolTipMouseEntered]):
1890         (mouseEventIsPartOfClickOrDrag):
1891         (-[WebHTMLView _updateMouseoverWithEvent:]):
1892         (-[WebHTMLView acceptsFirstResponder]):
1893         (-[WebHTMLView viewDidMoveToWindow]):
1894         (currentKeyboardEvent):
1895         (-[WebHTMLView _handleStyleKeyEquivalent:]):
1896         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
1897         * WebView/WebPDFView.mm:
1898         (-[WebPDFView hitTest:]):
1899         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1900         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
1901         * WebView/WebTextCompletionController.mm:
1902         (-[WebTextCompletionController _buildUI]):
1903         (-[WebTextCompletionController _placePopupWindow:]):
1904         * WebView/WebView.mm:
1905         (-[WebView applicationFlags:]):
1906
1907 2016-03-07  Brent Fulgham  <bfulgham@apple.com>
1908
1909         Reduce startup and shutdown cost of resource load statistics
1910         https://bugs.webkit.org/show_bug.cgi?id=155120
1911         <rdar://problem/25010167>
1912
1913         Reviewed by Andy Estes.
1914
1915         Remove the Resource Load Statistics stuff from WK1, now that it is up and
1916         running in WK2.
1917
1918         * WebView/WebView.mm:
1919         (-[WebView _preferencesChanged:]): Remove call to read resource load
1920         statistics from disk.
1921         (+[WebView _applicationWillTerminate]): Remove call to write resource load
1922         statistics to disk.
1923
1924 2016-03-06  Andreas Kling  <akling@apple.com>
1925
1926         Reduce page cache capacity from 3 to 2.
1927         <https://webkit.org/b/155087>
1928
1929         Reviewed by Antti Koivisto.
1930
1931         Trim WebKit1 page cache capacities consistently with WebKit2.
1932
1933         * WebView/WebView.mm:
1934         (+[WebView _setCacheModel:]):
1935
1936 2016-03-05  Chris Dumez  <cdumez@apple.com>
1937
1938         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
1939         https://bugs.webkit.org/show_bug.cgi?id=155035
1940
1941         Reviewed by Darin Adler.
1942
1943         Update runtime application checks.
1944
1945         * Plugins/WebPluginController.mm:
1946         (initializeAudioSession):
1947         * WebCoreSupport/WebFrameLoaderClient.mm:
1948         * WebView/WebFrame.mm:
1949         (needsMicrosoftMessengerDOMDocumentWorkaround):
1950         * WebView/WebImmediateActionController.mm:
1951         (-[WebImmediateActionController _updateImmediateActionItem]):
1952         * WebView/WebView.mm:
1953         (WebKitInitializeApplicationCachePathIfNecessary):
1954         (shouldEnableLoadDeferring):
1955         (shouldRestrictWindowFocus):
1956         (needsOutlookQuirksScript):
1957         (shouldTransformsAffectOverflow):
1958         (shouldDispatchJavaScriptWindowOnErrorEvents):
1959         (shouldUseLegacyBackgroundSizeShorthandBehavior):
1960         (-[WebView _commonInitializationWithFrameName:groupName:]):
1961         (+[WebView enableWebThread]):
1962         (+[WebView registerForMemoryNotifications]):
1963         (-[WebView _needsKeyboardEventDisambiguationQuirks]):
1964         (needsSelfRetainWhileLoadingQuirk):
1965         (-[WebView _needsPreHTML5ParserQuirks]):
1966
1967 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1968
1969         [ES6] Support Reflect.construct
1970         https://bugs.webkit.org/show_bug.cgi?id=147330
1971
1972         Reviewed by Saam Barati.
1973
1974         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1975         (WebKit::NetscapePluginInstanceProxy::invoke):
1976         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1977         (WebKit::NetscapePluginInstanceProxy::construct):
1978
1979 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
1980
1981         Unreviewed test fix for null global WebResourceLoadStatisticsStore.
1982
1983         * WebView/WebView.mm:
1984         (-[WebView _preferencesChanged:]):
1985         (+[WebView _applicationWillTerminate]):
1986
1987 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
1988
1989         [WK2] Gather resource load statistics
1990         https://bugs.webkit.org/show_bug.cgi?id=154278
1991         <rdar://problem/24702892>
1992
1993         Reviewed by Andy Estes.
1994
1995         Switch to maintaining a global WebCore::ResourceLoadStatisticsStore in the WebKit process,
1996         and hand it off to the WebCore layer to use during data gathering. The ResourceLoadStatisticsStore
1997         is now responsible for reading/writing to disk, and tracking the collection of load data.
1998
1999         * WebView/WebView.mm:
2000         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Initialize singleton
2001         ResourceLoadStatisticsStore object for tracking state.
2002         (-[WebView _preferencesChanged:]): Revise for new singleton.
2003         (+[WebView _applicationWillTerminate]): Ditto.
2004
2005 2016-02-29  Ada Chan  <adachan@apple.com>
2006
2007         Adopt the new version of AVOutputDeviceMenuController's showMenuForRect method.
2008         https://bugs.webkit.org/show_bug.cgi?id=154823
2009
2010         Reviewed by Tim Horton.
2011
2012         * WebCoreSupport/WebChromeClient.h:
2013         * WebCoreSupport/WebChromeClient.mm:
2014         (WebChromeClient::showPlaybackTargetPicker):
2015         * WebView/WebMediaPlaybackTargetPicker.h:
2016         * WebView/WebMediaPlaybackTargetPicker.mm:
2017         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
2018         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected):
2019         * WebView/WebView.mm:
2020         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
2021
2022 2016-03-01  Tim Horton  <timothy_horton@apple.com>
2023
2024         Expose MediaElement and VideoElement to the Objective-C DOM bindings
2025         https://bugs.webkit.org/show_bug.cgi?id=154830
2026
2027         Reviewed by Sam Weinig.
2028
2029         * MigrateHeaders.make:
2030
2031 2016-02-29  Simon Fraser  <simon.fraser@apple.com>
2032
2033         Remove the experimental feature of antialiased font dilation
2034         https://bugs.webkit.org/show_bug.cgi?id=154843
2035
2036         Reviewed by Zalan Bujtas.
2037
2038         Remove the "antialiased font dilation" code path, and related prefs.
2039
2040         * WebView/WebPreferenceKeysPrivate.h:
2041         * WebView/WebPreferences.mm:
2042         (+[WebPreferences initialize]): Deleted.
2043         (-[WebPreferences setAntialiasedFontDilationEnabled:]): Deleted.
2044         (-[WebPreferences antialiasedFontDilationEnabled]): Deleted.
2045         * WebView/WebPreferencesPrivate.h:
2046         * WebView/WebView.mm:
2047         (-[WebView _preferencesChanged:]): Deleted.
2048
2049 2016-02-26  Dan Bernstein  <mitz@apple.com>
2050
2051         Build fix for when WK_OVERRIDE_FRAMEWORKS_DIR contains spaces.
2052
2053         * Configurations/WebKitLegacy.xcconfig: Added quotes.
2054
2055 2016-02-25  Ada Chan  <adachan@apple.com>
2056
2057         Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
2058         https://bugs.webkit.org/show_bug.cgi?id=154702
2059
2060         Reviewed by Dan Bernstein.
2061
2062         * Configurations/FeatureDefines.xcconfig:
2063
2064 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
2065
2066         Restrict information passed with navigation action which is triggered by untrusted event
2067         https://bugs.webkit.org/show_bug.cgi?id=154571
2068         <rdar://problem/15967937>
2069
2070         Reviewed by Andy Estes.
2071
2072         * WebCoreSupport/WebFrameLoaderClient.mm:
2073         (WebFrameLoaderClient::actionDictionary):
2074
2075 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
2076
2077         [MediaStream] MediaDeviceInfo deviceId and groupId must be unique to the page's origin
2078         https://bugs.webkit.org/show_bug.cgi?id=153163
2079         <rdar://problem/24334526>
2080
2081         Reviewed by Tim Horton.
2082
2083         * WebCoreSupport/WebUserMediaClient.mm:
2084         (WebUserMediaClient::requestUserMediaAccess):
2085         (WebUserMediaClient::checkUserMediaPermission):
2086         (-[WebUserMediaPolicyCheckerListener allow]):
2087         (-[WebUserMediaPolicyCheckerListener deny]):
2088
2089 2016-02-24  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
2090
2091         [web-animations] Add AnimationTimeline, DocumentTimeline and add extensions to Document interface
2092         https://bugs.webkit.org/show_bug.cgi?id=151688
2093
2094         Reviewed by Dean Jackson.
2095
2096         Enables the WEB_ANIMATIONS compiler switch.
2097
2098         * Configurations/FeatureDefines.xcconfig:
2099
2100 2016-02-23  Dan Bernstein  <mitz@apple.com>
2101
2102         [Xcode] Linker errors display mangled names, but no longer should
2103         https://bugs.webkit.org/show_bug.cgi?id=154632
2104
2105         Reviewed by Sam Weinig.
2106
2107         * Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
2108
2109 2016-02-23  Gavin Barraclough  <barraclough@apple.com>
2110
2111         Remove HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define
2112         https://bugs.webkit.org/show_bug.cgi?id=112323
2113
2114         Reviewed by Chris Dumez.
2115
2116         This feature is controlled by a runtime switch, and defaults off.
2117
2118         * Configurations/FeatureDefines.xcconfig:
2119         * WebView/WebView.mm:
2120         (-[WebView _preferencesChanged:]):
2121
2122 2016-02-22  Commit Queue  <commit-queue@webkit.org>
2123
2124         Unreviewed, rolling out r196935.
2125         https://bugs.webkit.org/show_bug.cgi?id=154557
2126
2127         This change causes timeouts and crashes in LayoutTests
2128         (Requested by ryanhaddad on #webkit).
2129
2130         Reverted changeset:
2131
2132         "Enable AVFoundationNSURLSessionEnabled by default"
2133         https://bugs.webkit.org/show_bug.cgi?id=154469
2134         http://trac.webkit.org/changeset/196935
2135
2136 2016-02-22  Keith Rollin  <krollin@apple.com>
2137
2138         Add mechanism to disable memory pressure handling
2139         https://bugs.webkit.org/show_bug.cgi?id=154254
2140         <rdar://problem/24662616>
2141
2142         Reviewed by Chris Dumez.
2143
2144         Add a mechanism to disable WebKit's response to memory pressure
2145         triggers. This was asked for by another group for testing purposes.
2146
2147         In order to disable WebKit's memory pressure handling, execute the
2148         following from the command line:
2149
2150             defaults write com.apple.Safari WebKitSuppressMemoryPressureHandler -bool true
2151
2152         To revert to standard behavior, delete the key or set it to False.
2153
2154         This flag is used when a new sub-process is being spawned. The value
2155         is read and stored in an initialization parameter block, which is then
2156         sent to the new sub-process.
2157
2158         In actuality, only the UI, WebContent, and Network processes heed the
2159         flag. The Plugin process isn't instrumented to heed this flag for
2160         three reasons. First, the Plugin process installs its memory pressure
2161         handler in initializeProcess, not initializePluginProcess. This is
2162         contrary to when the other processes install their handlers, which is
2163         in initialize<PluginType>Process, not initializeProcess. So in order
2164         to accomodate the Plugin process, we'd need to modify
2165         ChildProcessInitializationParameters. Doing this is awkward at best,
2166         but also seems to be opposed to what's supposed to be done in
2167         initializeProcess and conveyed in
2168         ChildProcessInitializationParameters. And even if we did add a boolean
2169         to this structure and added support for conveying it through the XPC
2170         port, it would end up being a Plugin process-only boolean in a general
2171         parameter block, which seems asymmetric with the other processes.
2172         Second, there's no convenient Cocoa function called in the flow that
2173         spawns the Plugin process, meaning that there's no convenient place to
2174         call NSUserDefaults to get the flag's value. And third, the Plugin
2175         process doesn't elegantly respond to the memory pressure trigger
2176         anyway. It might terminate itself, but that's it. As for the Database
2177         process, it doesn't seem to support responding to memory pressure at
2178         all, so we don't send it a flag telling it to ignore it.
2179
2180         Internally, the memory pressure handler is suppressed by not calling
2181         MemoryPressureHandler::install() if the flag is set. In the case of
2182         the Network process, the flag is saved so that it can be checked later
2183         in other places that manually kick off the memory pressure handling
2184         procedure.
2185
2186         * WebView/WebView.mm:
2187         (-[WebView _commonInitializationWithFrameName:groupName:]):
2188         (WebInstallMemoryPressureHandler):
2189
2190 2016-02-22  Jer Noble  <jer.noble@apple.com>
2191
2192         Enable AVFoundationNSURLSessionEnabled by default
2193         https://bugs.webkit.org/show_bug.cgi?id=154469
2194
2195         Reviewed by Sam Weinig.
2196
2197         * WebView/WebPreferences.mm:
2198         (+[WebPreferences initialize]):
2199
2200 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
2201
2202         [Mac] Gather some rudimentary statistics during resource load 
2203         https://bugs.webkit.org/show_bug.cgi?id=153575
2204         <rdar://problem/24075254>
2205
2206         Reviewed by Brady Eidson.
2207
2208         * Misc/WebKitNSStringExtras.h:
2209         * Misc/WebKitNSStringExtras.mm:
2210         (+[NSString _webkit_localStorageDirectoryWithBundleIdentifier:]): Added.
2211         * WebView/WebPreferenceKeysPrivate.h:
2212         * WebView/WebPreferences.mm:
2213         (+[WebPreferences initialize]):
2214         (-[WebPreferences resourceLoadStatisticsEnabled]): Added.
2215         (-[WebPreferences setResourceLoadStatisticsEnabled:]): Added.
2216         * WebView/WebPreferencesPrivate.h:
2217         * WebView/WebView.mm:
2218         (WebKitInitializeApplicationCachePathIfNecessary):
2219         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Added.
2220         (-[WebView _commonInitializationWithFrameName:groupName:]): Add call to new
2221         initialization method.
2222         (-[WebView _preferencesChanged:]): Track changes in the user's desire to
2223         monitor resource load statistics.
2224         (+[WebView _applicationWillTerminate]): Write statistics to disk (if preferences
2225         say to do so.)
2226
2227 2016-02-13  Mark Lam  <mark.lam@apple.com>
2228
2229         Add thread violation checks to WebView public APIs.
2230         https://bugs.webkit.org/show_bug.cgi?id=154183
2231
2232         Reviewed by Timothy Hatcher.
2233
2234         Re-landing r196527 with a newly added WebCoreThreadViolationCheckRoundThree().
2235         Previously was using WebCoreThreadViolationCheckRoundTwo().
2236
2237         * Misc/WebKitVersionChecks.h:
2238         * WebView/WebFrameView.mm:
2239         (-[WebFrameView initWithFrame:]):
2240         * WebView/WebView.mm:
2241         (-[WebView setCustomTextEncodingName:]):
2242         (-[WebView stringByEvaluatingJavaScriptFromString:]):
2243         (-[WebView windowScriptObject]):
2244         (-[WebView setGroupName:]):
2245         (-[WebView setMainFrameURL:]):
2246         (-[WebView mainFrameTitle]):
2247         (-[WebView mainFrameIcon]):
2248         (-[WebView setDrawsBackground:]):
2249         (-[WebView setShouldUpdateWhileOffscreen:]):
2250
2251 2016-02-12  Commit Queue  <commit-queue@webkit.org>
2252
2253         Unreviewed, rolling out r196527.
2254         https://bugs.webkit.org/show_bug.cgi?id=154204
2255
2256         "Need to redo as WebCoreThreadViolationCheckRoundThree"
2257         (Requested by mlam on #webkit).
2258
2259         Reverted changeset:
2260
2261         "Add thread violation checks to WebView public APIs."
2262         https://bugs.webkit.org/show_bug.cgi?id=154183
2263         http://trac.webkit.org/changeset/196527
2264
2265 2016-02-12  Mark Lam  <mark.lam@apple.com>
2266
2267         Add thread violation checks to WebView public APIs.
2268         https://bugs.webkit.org/show_bug.cgi?id=154183
2269
2270         Reviewed by Geoffrey Garen.
2271
2272         This will help clients of the API detect the violations sooner rather than
2273         having to debug mysterious crashes / failures later.
2274
2275         To that end, I've added thread violation checks to the following functions
2276         because ...
2277
2278         * WebView/WebView.mm:
2279         (-[WebView setCustomTextEncodingName:]):
2280         - Uses the FrameLoader (which is for the main thread only).
2281
2282         (-[WebView stringByEvaluatingJavaScriptFromString:]):
2283         - Invokes JavaScript (which is for the main thread only).
2284
2285         (-[WebView windowScriptObject]):
2286         - Invokes ScriptController::windowScriptObject() which requires the JSLock.
2287
2288         (-[WebView setGroupName:]):
2289         - Manipulates the PageGroup and Page (which is for the main thread only).
2290
2291         (-[WebView setMainFrameURL:]):
2292         - Uses the FrameLoader (which is for the main thread only).
2293
2294         (-[WebView mainFrameTitle]):
2295         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
2296           is RefPtr, and therefore not safe for other threads to access.
2297
2298         (-[WebView mainFrameIcon]):
2299         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
2300           is RefPtr, and therefore not safe for other threads to access.
2301         - Uses [WebIconDatabase sharedIconDatabase] which does a singleton
2302           instantiation but is not protected by a lock.
2303
2304         (-[WebView setDrawsBackground:]):
2305         - Potentially manipulates a RenderView (via FrameView::setBaseBackgroundColor,
2306           via [WebFrame _updateBackgroundAndUpdatesWhileOffscreen]), and RenderView
2307           is for main thread only use.
2308
2309         (-[WebView setShouldUpdateWhileOffscreen:]):
2310         - Uses [WebFrame _updateBackgroundAndUpdatesWhileOffscreen].  Hence, for the
2311           main thread only.
2312
2313 2016-02-12  Sukolsak Sakshuwong  <sukolsak@gmail.com>
2314
2315         Update ICU header files to version 52
2316         https://bugs.webkit.org/show_bug.cgi?id=154160
2317
2318         Reviewed by Alex Christensen.
2319
2320         Update ICU header files to version 52 to allow the use of newer APIs.
2321
2322         * icu/unicode/localpointer.h:
2323         * icu/unicode/platform.h:
2324         * icu/unicode/ptypes.h:
2325         * icu/unicode/putil.h:
2326         * icu/unicode/uchar.h:
2327         * icu/unicode/uconfig.h:
2328         * icu/unicode/uidna.h:
2329         * icu/unicode/uiter.h:
2330         * icu/unicode/umachine.h:
2331         * icu/unicode/unorm2.h:
2332         * icu/unicode/urename.h:
2333         * icu/unicode/uscript.h:
2334         * icu/unicode/ustring.h:
2335         * icu/unicode/utf.h:
2336         * icu/unicode/utf16.h:
2337         * icu/unicode/utf8.h:
2338         * icu/unicode/utf_old.h:
2339         * icu/unicode/utypes.h:
2340         * icu/unicode/uvernum.h:
2341         * icu/unicode/uversion.h:
2342
2343 2016-02-12  Beth Dakin  <bdakin@apple.com>
2344
2345         NSRangeIsRelativeTo should not have NS prefix
2346         https://bugs.webkit.org/show_bug.cgi?id=154174
2347
2348         Reviewed by Tim Horton.
2349
2350         NSRangeIsRelativeTo -> WebRangeIsRelativeTo
2351         * WebView/WebFrame.mm:
2352         (-[WebFrame _convertToDOMRange:]):
2353         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2354         * WebView/WebFrameInternal.h:
2355         * WebView/WebHTMLView.mm:
2356         (-[WebHTMLView insertText:]):
2357
2358 2016-02-11  Beth Dakin  <bdakin@apple.com>
2359
2360         EditingRangeIsRelativeTo::Document and NSRangeIsRelativeTo::Document should 
2361         be called EditableRoot instead
2362         https://bugs.webkit.org/show_bug.cgi?id=154138
2363
2364         Reviewed by Alexey Proskuryakov.
2365
2366         EditableRoot is much more accurate than Document.
2367         * WebView/WebFrame.mm:
2368         (-[WebFrame _convertToDOMRange:]):
2369         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2370         * WebView/WebFrameInternal.h:
2371         * WebView/WebHTMLView.mm:
2372         (-[WebHTMLView insertText:]):
2373
2374 2016-02-11  Beth Dakin  <bdakin@apple.com>
2375
2376         Soft spaces are often tracked in the wrong spot
2377         https://bugs.webkit.org/show_bug.cgi?id=154127
2378         -and corresponding-
2379         rdar://problem/24493140
2380
2381         Reviewed by Sam Weinig.
2382
2383         Soft spaces are in the wrong space now for two reasons. First of all, the 
2384         NSRange we get from the accepted candidate is relative to the paragraph 
2385         start, so without this patch, soft spaces are only ever right for the first 
2386         paragraph. Secondly, if focus changes for any reason other than text 
2387         insertion, soft spaces are also wrong because they need to be re-set.
2388
2389         New version of _convertToDOMRange takes a NSRangeIsRelativeTo so that it can 
2390         handle ranges relative to both the document and the paragraph. 
2391         * WebView/WebFrame.mm:
2392         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2393         (-[WebFrame _convertNSRangeToDOMRange:]):
2394
2395         New enum NSRangeIsRelativeTo.
2396         * WebView/WebFrameInternal.h:
2397
2398         Re-set the softSpaceRange on selection changes so long as the WebCore::Editor 
2399         is not currently handling an accepted candidate.
2400         * WebView/WebHTMLView.mm:
2401         (-[WebHTMLView _selectionChanged]):
2402
2403         If needToRemoveSoftSpace is true, then the replacementRange is 
2404         relative to the paragraph.
2405         (-[WebHTMLView insertText:]):
2406
2407 2016-02-10  Mark Lam  <mark.lam@apple.com>
2408
2409         WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture: should assert that it is being called from the "main" thread.
2410         https://bugs.webkit.org/show_bug.cgi?id=154059
2411
2412         Reviewed by Geoffrey Garen.
2413
2414         This makes it so that misbehaving clients which call it (indirectly) from another
2415         thread (not the main thread) will fail faster.  Otherwise, we get potential
2416         memory corruption that results in strange crashes elsewhere later.
2417
2418         * WebView/WebFrame.mm:
2419         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2420
2421 2016-02-04  Jer Noble  <jer.noble@apple.com>
2422
2423         [Mac] Adopt NSURLSession properties in AVAssetResourceLoader
2424         https://bugs.webkit.org/show_bug.cgi?id=153873
2425
2426         Reviewed by Eric Carlson.
2427
2428         Add a WebKit preference to control the WebCore isAVFoundationNSURLSessionEnabled()
2429         setting.
2430
2431         * WebView/WebPreferenceKeysPrivate.h:
2432         * WebView/WebPreferences.mm:
2433         (+[WebPreferences initialize]):
2434         (-[WebPreferences setAVFoundationNSURLSessionEnabled:]):
2435         (-[WebPreferences isAVFoundationNSURLSessionEnabled]):
2436         * WebView/WebPreferencesPrivate.h:
2437         * WebView/WebView.mm:
2438         (-[WebView _preferencesChanged:]):
2439
2440 2016-02-09  Eric Carlson  <eric.carlson@apple.com>
2441
2442         checkValidity() sometimes asserts in WebUserMediaClient::pageDestroyed
2443         https://bugs.webkit.org/show_bug.cgi?id=154029
2444         <rdar://problem/24065022>
2445
2446         Reviewed by Alex Christensen.
2447
2448         * WebCoreSupport/WebUserMediaClient.mm:
2449         (WebUserMediaClient::pageDestroyed): Copy map keys to a vector and clear the map before
2450           enumerating the vector and canceling the requests. ASSERT that the map is not modified
2451           during cleanup. Clean up the permission check map.
2452         (WebUserMediaClient::requestUserMediaAccess): Add the request to the map before calling the
2453           UI delegate in case it works synchronously (as it does in DRT).
2454         (WebUserMediaClient::checkUserMediaPermission): Ditto.
2455         (WebUserMediaClient::cancelUserMediaPermissionCheck): White-space cleanup.
2456         (-[WebUserMediaPolicyListener allow]): Ditto.
2457
2458 2016-02-08  Anders Carlsson  <andersca@apple.com>
2459
2460         Crash when trying to chain to the old -[NSView setNeedsDisplayInRect:]
2461         https://bugs.webkit.org/show_bug.cgi?id=154001
2462         rdar://problem/24519975
2463
2464         Reviewed by Dan Bernstein.
2465
2466         If our replaced -[NSView setNeedsDisplayInRect:] is called before the old IMP has been initialized,
2467         we can end up trying to call a null pointer. 
2468         
2469         Fix this by using method_exchangeImplementations instead of method_setImplementation, since the former is done
2470         atomically.
2471
2472         * WebView/WebHTMLView.mm:
2473         (-[NSView _web_setNeedsDisplayInRect:]):
2474         (+[WebHTMLViewPrivate initialize]):
2475         (setNeedsDisplayInRect): Deleted.
2476
2477 2016-02-07  Dan Bernstein  <mitz@apple.com>
2478
2479         [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
2480         https://bugs.webkit.org/show_bug.cgi?id=153963
2481
2482         Reviewed by Sam Weinig.
2483
2484         * WebView/WebPDFView.mm:
2485
2486 2016-02-06  Darin Adler  <darin@apple.com>
2487
2488         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
2489         https://bugs.webkit.org/show_bug.cgi?id=153905
2490
2491         Reviewed by Sam Weinig.
2492
2493         * Plugins/WebBasePluginPackage.mm:
2494         (-[WebBasePluginPackage getPluginInfoFromPLists]): Use modern for loops.
2495         (-[WebBasePluginPackage supportsExtension:]): Use convertToASCIILowercase for extension assert.
2496         Also use modern for loop.
2497         (-[WebBasePluginPackage supportsMIMEType:]): Ditto.
2498         (-[WebBasePluginPackage MIMETypeForExtension:]): Ditto.
2499
2500 2016-02-03  Jessie Berlin  <jberlin@webkit.org>
2501
2502         Build fix.
2503
2504         [NSEvent context] has always returned nil. Replace uses with nullptr.
2505
2506         * WebView/WebHTMLView.mm:
2507         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2508         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2509         (-[WebHTMLView _updateMouseoverWithEvent:]):
2510         (-[WebHTMLView _autoscroll]):
2511         (-[WebHTMLView draggedImage:endedAt:operation:]):
2512
2513 2016-02-01  Dave Hyatt  <hyatt@apple.com>
2514
2515         Add a line grid pagination SPI to WebKit.
2516         https://bugs.webkit.org/show_bug.cgi?id=153757
2517         <rdar://problem/23041598>
2518
2519         Reviewed by Anders Carlsson.
2520
2521         * WebView/WebView.mm:
2522         (-[WebView _setPaginationLineGridEnabled:]):
2523         (-[WebView _paginationLineGridEnabled]):
2524         * WebView/WebViewPrivate.h:
2525
2526 2016-02-01  Joseph Pecoraro  <pecoraro@apple.com>
2527
2528         Web Inspector: High Level Memory Overview Instrument
2529         https://bugs.webkit.org/show_bug.cgi?id=153516
2530         <rdar://problem/24356378>
2531
2532         Reviewed by Brian Burg.
2533
2534         * Configurations/FeatureDefines.xcconfig:
2535
2536 2016-01-31  Darin Adler  <darin@apple.com>
2537
2538         Cut down on calls to String::lower; mostly replace with convertToASCIILowercase
2539         https://bugs.webkit.org/show_bug.cgi?id=153732
2540
2541         Reviewed by Dean Jackson.
2542
2543         * WebView/WebHTMLRepresentation.mm:
2544         (newArrayWithStrings): Updated to use HashSet<String, ASCIICaseInsensitiveHash>
2545         and also to use a modern for loop.
2546
2547 2016-01-31  Dan Bernstein  <mitz@apple.com>
2548
2549         [Cocoa] Remove __has_include guards around use of WebKitAdditions
2550         https://bugs.webkit.org/show_bug.cgi?id=153728
2551
2552         Reviewed by Andy Estes.
2553
2554         Guard WebKitAdditions includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
2555
2556         * WebKitAdditions.mm:
2557         * WebView/WebView.mm:
2558         (-[WebView _commonInitializationWithFrameName:groupName:]):
2559         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2560
2561 2016-01-29  Ada Chan  <adachan@apple.com>
2562
2563         Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
2564         https://bugs.webkit.org/show_bug.cgi?id=153665
2565
2566         Reviewed by Dan Bernstein.
2567
2568         * Configurations/FeatureDefines.xcconfig:
2569
2570 2016-01-28  Darin Adler  <darin@apple.com>
2571
2572         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
2573         https://bugs.webkit.org/show_bug.cgi?id=153411
2574
2575         Reviewed by Ryosuke Niwa.
2576
2577         * WebCoreSupport/WebFrameLoaderClient.mm:
2578         (parameterValue): Use equalIgnoringASCIICase. No behavior change because the
2579         only name we ever search for with this is "pluginspage".
2580
2581 2016-01-27  Enrica Casucci  <enrica@apple.com>
2582
2583         Cache results of data detection in the UI process when load completes.
2584         https://bugs.webkit.org/show_bug.cgi?id=153560
2585
2586         Reviewed by Tim Horton.
2587
2588         Adding empty implementation for WK1.
2589
2590         * WebCoreSupport/WebFrameLoaderClient.h:
2591         * WebCoreSupport/WebFrameLoaderClient.mm:
2592         (WebFrameLoaderClient::dispatchDidFinishDataDetection):
2593
2594 2016-01-27  Anders Carlsson  <andersca@apple.com>
2595
2596         Add WebKitAdditions extension points to WebCore, WebKit and WebKitLegacy
2597         https://bugs.webkit.org/show_bug.cgi?id=153550
2598
2599         Reviewed by Sam Weinig.
2600
2601         * Configurations/WebKitLegacy.xcconfig:
2602         Add WKA header search paths.
2603
2604         * WebKitAdditions.mm: Added.
2605         Add addition files.
2606
2607         * WebView/WebView.mm:
2608         (-[WebView _commonInitializationWithFrameName:groupName:]):
2609         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2610         Add extension points.
2611
2612 2016-01-27  Chris Dumez  <cdumez@apple.com>
2613
2614         window.atob() should ignore spaces in input
2615         https://bugs.webkit.org/show_bug.cgi?id=153522
2616         <rdar://problem/24357822>
2617
2618         Reviewed by Benjamin Poulain.
2619
2620         * WebCoreSupport/WebInspectorClient.mm:
2621         (WebInspectorFrontendClient::save):
2622
2623 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
2624
2625         Remove ENABLE_CURRENTSRC
2626         https://bugs.webkit.org/show_bug.cgi?id=153545
2627
2628         Reviewed by Simon Fraser.
2629
2630         * Configurations/FeatureDefines.xcconfig:
2631
2632 2016-01-25  Beth Dakin  <bdakin@apple.com>
2633
2634         Build fix.
2635
2636         * WebView/WebHTMLView.mm:
2637         (-[WebHTMLView initWithFrame:]):
2638         (-[WebHTMLView insertText:]):
2639
2640 2016-01-25  Beth Dakin  <bdakin@apple.com>
2641
2642         WK1: Handle soft spaces after accepted candidates
2643         https://bugs.webkit.org/show_bug.cgi?id=153442
2644         -and corresponding-
2645         rdar://problem/23958418
2646
2647         Reviewed by Tim Horton.
2648
2649         The space at the end of candidates is a soft space. If that space exists, 
2650         cache the range of the space in m_softSpaceRange.
2651         * WebCoreSupport/WebEditorClient.mm:
2652         (WebEditorClient::handleAcceptedCandidate):
2653
2654         New ivar in WebHTMLViewPrivate softSpaceRange keeps track to the NSRange of a 
2655         soft space if the last text that was inserted has a soft space at the end.
2656         * WebView/WebHTMLView.mm:
2657         (-[WebHTMLView initWithFrame:]):
2658         (-[WebHTMLView _setSoftSpaceRange:]):
2659
2660         When new text is inserted, find out if it is being inserted right after a 
2661         soft space. If it is, then [NSSpellChecker deletesAutospaceBeforeString] will 
2662         tell us if the space needs to be removed. If that is the case, then set the 
2663         replacementString to the soft space.
2664         (-[WebHTMLView insertText:]):
2665         * WebView/WebHTMLViewInternal.h:
2666
2667 2016-01-17  Ada Chan  <adachan@apple.com>
2668
2669         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
2670         https://bugs.webkit.org/show_bug.cgi?id=153220
2671
2672         Reviewed by Eric Carlson.
2673
2674         * WebCoreSupport/WebChromeClient.h:
2675         * WebCoreSupport/WebChromeClient.mm:
2676         (WebChromeClient::supportsVideoFullscreen):
2677
2678 2016-01-22  Darin Adler  <darin@apple.com>
2679
2680         Reduce use of equalIgnoringCase to just ignore ASCII case
2681         https://bugs.webkit.org/show_bug.cgi?id=153266
2682
2683         Reviewed by Ryosuke Niwa.
2684
2685         * WebCoreSupport/WebFrameLoaderClient.mm:
2686         (WebFrameLoaderClient::createPlugin): Use equalLettersIgnoringASCIICase.
2687
2688 2016-01-21  Brent Fulgham  <bfulgham@apple.com>
2689
2690         [Mac] Tooltips do not honor some types of obscuring windows
2691         https://bugs.webkit.org/show_bug.cgi?id=153263
2692         <rdar://problem/21423972>
2693
2694         Reviewed by Simon Fraser.
2695
2696         * WebView/WebHTMLView.mm:
2697         (-[WebHTMLView _updateMouseoverWithEvent:]): When the WebView is not the key window, don't
2698         display tooltips.
2699
2700 2016-01-19  Ada Chan  <adachan@apple.com>
2701
2702         Make it possible to enable VIDEO_PRESENTATION_MODE on other Cocoa platforms.
2703         https://bugs.webkit.org/show_bug.cgi?id=153218
2704
2705         Reviewed by Eric Carlson.
2706
2707         * Configurations/FeatureDefines.xcconfig:
2708
2709 2016-01-19  Beth Dakin  <bdakin@apple.com>
2710
2711         32-bit build fix.
2712
2713         * WebView/WebView.mm:
2714         (-[WebView updateWebViewAdditions]):
2715         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
2716         * WebView/WebViewInternal.h:
2717
2718 2016-01-19  Beth Dakin  <bdakin@apple.com>
2719
2720         Move away from NSSpellChecker's showCandidates method
2721         https://bugs.webkit.org/show_bug.cgi?id=153254
2722         -and corresponding-
2723         rdar://problem/24216292
2724
2725         Reviewed by Tim Horton.
2726
2727         * WebCoreSupport/WebEditorClient.mm:
2728         (WebEditorClient::handleRequestedCandidates):
2729         * WebView/WebView.mm:
2730         (-[WebView updateWebViewAdditions]):
2731         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
2732         * WebView/WebViewInternal.h:
2733
2734 2016-01-19  Enrica Casucci  <enrica@apple.com>
2735
2736         Add support for DataDetectors in WK (iOS).
2737         https://bugs.webkit.org/show_bug.cgi?id=152989
2738         rdar://problem/22855960
2739
2740         Reviewed by Tim Horton.
2741
2742         Adding feature definition for data detection.
2743
2744         * Configurations/FeatureDefines.xcconfig:
2745
2746 2016-01-19  Commit Queue  <commit-queue@webkit.org>
2747
2748         Unreviewed, rolling out r195300.
2749         https://bugs.webkit.org/show_bug.cgi?id=153244
2750
2751         enrica wants more time to fix Windows (Requested by thorton on
2752         #webkit).
2753
2754         Reverted changeset:
2755
2756         "Add support for DataDetectors in WK (iOS)."
2757         https://bugs.webkit.org/show_bug.cgi?id=152989
2758         http://trac.webkit.org/changeset/195300
2759
2760 2016-01-19  Enrica Casucci  <enrica@apple.com>
2761
2762         Add support for DataDetectors in WK (iOS).
2763         https://bugs.webkit.org/show_bug.cgi?id=152989
2764         rdar://problem/22855960
2765
2766         Reviewed by Tim Horton.
2767
2768         Adding feature definition for data detection.
2769
2770         * Configurations/FeatureDefines.xcconfig:
2771
2772 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
2773
2774         Remove TextRun::allowsRoundingHacks()
2775         https://bugs.webkit.org/show_bug.cgi?id=153185
2776
2777         Reviewed by Simon Fraser.
2778
2779         * Misc/WebKitNSStringExtras.mm:
2780         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Deleted.
2781         (-[NSString _web_widthWithFont:]): Deleted.
2782         * WebView/WebView.mm:
2783         (+[WebView _setAllowsRoundingHacks:]): Deleted.
2784         (+[WebView _allowsRoundingHacks]): Deleted.
2785         * WebView/WebViewPrivate.h:
2786
2787 2016-01-15  Tim Horton  <timothy_horton@apple.com>
2788
2789         Data detector yellow highlight location is vertically mirrored in WebKit1
2790         https://bugs.webkit.org/show_bug.cgi?id=152216
2791         <rdar://problem/23848003>
2792
2793         Reviewed by Beth Dakin.
2794
2795         * WebView/WebImmediateActionController.mm:
2796         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2797         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2798         These assignments have no effect because they're operating on a copy, because
2799         TextIndicator::data() does not return a reference... so remove them.
2800
2801         * WebView/WebView.mm:
2802         (-[WebView _setTextIndicator:withLifetime:]):
2803         Convert textBoundingRectInRootViewCoordinates to WebView coordinates before
2804         converting to Window coordinates from WebView coordinates so we get flipping right.
2805
2806         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
2807         (-[WebView _showDictionaryLookupPopup:]):
2808         Ditto for these, except in the aforementioned conversion callback.
2809
2810 2016-01-14  Brady Eidson  <beidson@apple.com>
2811
2812         Modern IDB: Support opening and deleting SQLite databases on disk.
2813         https://bugs.webkit.org/show_bug.cgi?id=153084
2814
2815         Reviewed by Alex Christensen, Sam Weinig and Andy Estes (oh my!).
2816
2817         * Storage/WebDatabaseProvider.mm: Copied from Source/WebKit/Storage/WebDatabaseProvider.cpp.
2818         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
2819
2820 2016-01-14  Beth Dakin  <bdakin@apple.com>
2821
2822         WK1 and WK2 should share more candidate request code
2823         https://bugs.webkit.org/show_bug.cgi?id=153108
2824
2825         Reviewed by Simon Fraser.
2826
2827         requestCandidatesForSelection() does not need to be exposed as an 
2828         EditorClient function. WK1 can just call invoke this code from the existing 
2829         respondToChangedSelection EditorClient function, which is what WK2 does.
2830         * WebCoreSupport/WebEditorClient.h:
2831         * WebCoreSupport/WebEditorClient.mm:
2832         (WebEditorClient::respondToChangedSelection):
2833
2834         Cleanup — use some code that was moved to WebCore::Editor.
2835         (WebEditorClient::requestCandidatesForSelection):
2836         (WebEditorClient::handleRequestedCandidates):
2837         (textCheckingResultFromNSTextCheckingResult):
2838         (WebEditorClient::handleAcceptedCandidate):
2839         (candidateRangeForSelection): Deleted.
2840         (candidateWouldReplaceText): Deleted.
2841
2842 2016-01-13  Chris Dumez  <cdumez@apple.com>
2843
2844         Unreviewed, rolling out r194900.
2845
2846         Roll back in as this did not actually regress PLT
2847
2848         Reverted changeset:
2849
2850         "Unreviewed, rolling out r194826."
2851         https://bugs.webkit.org/show_bug.cgi?id=153020
2852         http://trac.webkit.org/changeset/194900
2853
2854 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
2855
2856         Add a build flag for custom element
2857         https://bugs.webkit.org/show_bug.cgi?id=153005
2858
2859         Reviewed by Alex Christensen.
2860
2861         * Configurations/FeatureDefines.xcconfig:
2862
2863 2016-01-12  Commit Queue  <commit-queue@webkit.org>
2864
2865         Unreviewed, rolling out r194826.
2866         https://bugs.webkit.org/show_bug.cgi?id=153020
2867
2868         Appears to have regressed PLT (Requested by kling on #webkit).
2869
2870         Reverted changeset:
2871
2872         "Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
2873         cont'd"
2874         https://bugs.webkit.org/show_bug.cgi?id=152902
2875         http://trac.webkit.org/changeset/194826
2876
2877 2016-01-11  Anders Carlsson  <andersca@apple.com>
2878
2879         Get rid of CFMakeCollectable, it is a no-op
2880         https://bugs.webkit.org/show_bug.cgi?id=152988
2881
2882         Reviewed by Sam Weinig.
2883
2884         * Misc/WebNSDataExtras.m:
2885         (-[NSString _web_capitalizeRFC822HeaderFieldName]):
2886         (-[NSData _webkit_parseRFC822HeaderFields]):
2887         * Plugins/WebPluginController.mm:
2888         (-[WebPluginController initWithDocumentView:]):
2889
2890 2016-01-10  Andreas Kling  <akling@apple.com>
2891
2892         Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL cont'd
2893         <https://webkit.org/b/152902>
2894
2895         Reviewed by Andy Estes.
2896
2897         Convert some more of the remaining clients to use NeverDestroyed.
2898
2899         * History/WebBackForwardList.mm:
2900         (backForwardLists):
2901         * History/WebHistoryItem.mm:
2902         (historyItemWrappers):
2903         * Misc/WebNSPasteboardExtras.mm:
2904         (+[NSPasteboard _web_writableTypesForURL]):
2905         (_writableTypesForImageWithoutArchive):
2906         (_writableTypesForImageWithArchive):
2907         * Plugins/Hosted/NetscapePluginHostManager.mm:
2908         (WebKit::NetscapePluginHostManager::singleton):
2909         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2910         (WebKit::pluginProxyMap):
2911         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2912         (WebKit::globalExceptionString):
2913         * Plugins/Hosted/ProxyInstance.mm:
2914         (WebKit::proxyClass):
2915         * Plugins/WebNetscapePluginStream.mm:
2916         (streams):
2917         * Storage/WebDatabaseManager.mm:
2918         (transactionBackgroundTaskIdentifierLock):
2919         * WebCoreSupport/WebUserMediaClient.mm:
2920         (userMediaCheckMap):
2921         * WebView/WebHTMLRepresentation.mm:
2922         (regExpForLabels):
2923         * WebView/WebView.mm:
2924         (aeDescFromJSValue):
2925
2926 2016-01-09  Dan Bernstein  <mitz@apple.com>
2927
2928         [Cocoa] Allow overriding the frameworks directory independently of using a staging install path
2929         https://bugs.webkit.org/show_bug.cgi?id=152926
2930
2931         Reviewed by Tim Horton.
2932
2933         Introduce a new build setting, WK_OVERRIDE_FRAMEWORKS_DIR. When not empty, it determines
2934         where the frameworks are installed. Setting USE_STAGING_INSTALL_PATH to YES sets
2935         WK_OVERRIDE_FRAMEWORKS_DIR to $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari.
2936
2937         Account for the possibility of WK_OVERRIDE_FRAMEWORKS_DIR containing spaces.
2938
2939         * Configurations/WebKitLegacy.xcconfig:
2940         - Replace STAGED_FRAMEWORKS_SEARCH_PATH in FRAMEWORK_SEARCH_PATHS with
2941           WK_OVERRIDE_FRAMEWORKS_DIR and add quotes to account for spaces.
2942         - Define WEBKIT_LEGACY_FRAMEWORKS_DIR, PRODUCTION_FRAMEWORKS_DIR, and
2943           WEBCORE_PRIVATE_HEADERS_DIR based on WK_OVERRIDE_FRAMEWORKS_DIR.
2944
2945         * MigrateHeaders.make:
2946           Use a symlink under BUILT_PRODUCTS_DIR to the WebCore Private Headers. Use a
2947           BUILT_PRODUCTS_DIR-based path to the framework instead of a TARGET_BUILD_DIR-based one in
2948           order to avoid spaces.
2949         * migrate-headers.sh:
2950           Make the symlink to WEBCORE_PRIVATE_HEADERS_DIR that the makefile now uses.
2951
2952 2016-01-07  Tim Horton  <timothy_horton@apple.com>
2953
2954         Can't play inline video in a stock WK1 WebView on Mac
2955         https://bugs.webkit.org/show_bug.cgi?id=152860
2956
2957         Rubber-stamped by Jer Noble.
2958
2959         * WebView/WebPreferences.mm:
2960         (+[WebPreferences initialize]):
2961         The default for this preference is supposed to be NO on Mac. It is in
2962         Settings.in, and in WebKit2, but this one place got it wrong.
2963
2964 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
2965
2966         Add a setting and preferences to enable display-list drawing. Does nothing yet.
2967         https://bugs.webkit.org/show_bug.cgi?id=152807
2968
2969         Reviewed by Zalan Bujtas.
2970         
2971         WK1 pref for display-list drawing, defaults to off.
2972
2973         * WebView/WebPreferenceKeysPrivate.h:
2974         * WebView/WebPreferences.mm:
2975         (+[WebPreferences initialize]):
2976         (-[WebPreferences displayListDrawingEnabled]):
2977         (-[WebPreferences setDisplayListDrawingEnabled:]):
2978         * WebView/WebPreferencesPrivate.h:
2979         * WebView/WebView.mm:
2980         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2981         (-[WebView _preferencesChanged:]):
2982
2983 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
2984
2985         [iOS] Revert overflow:hidden on the body affecting viewport scale (r186786)
2986         https://bugs.webkit.org/show_bug.cgi?id=152803
2987         rdar://problem/22242515
2988
2989         Reviewed by Tim Horton.
2990
2991         * WebView/WebView.mm:
2992         (-[WebView _contentsSizeRespectingOverflow]): Keep this function which is used
2993         by UIKit, but change the implementation to just return the document size.
2994
2995 2016-01-04  Tim Horton  <timothy_horton@apple.com>
2996
2997         Turn on gesture events when building for Yosemite
2998         https://bugs.webkit.org/show_bug.cgi?id=152704
2999         rdar://problem/24042472
3000
3001         Reviewed by Anders Carlsson.
3002
3003         * Configurations/FeatureDefines.xcconfig:
3004
3005 2015-12-31  Andy Estes  <aestes@apple.com>
3006
3007         Replace WTF::move with WTFMove
3008         https://bugs.webkit.org/show_bug.cgi?id=152601
3009
3010         Reviewed by Brady Eidson.
3011
3012         * History/WebHistoryItem.mm:
3013         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3014         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3015         (WebKit::HostedNetscapePluginStream::willSendRequest):
3016         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3017         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
3018         * Plugins/WebNetscapePluginStream.mm:
3019         (WebNetscapePluginStream::willSendRequest):
3020         * Plugins/WebNetscapePluginView.mm:
3021         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
3022         * WebCoreSupport/WebContextMenuClient.mm:
3023         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3024         * WebCoreSupport/WebFrameLoaderClient.mm:
3025         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
3026         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
3027         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
3028         (WebFrameLoaderClient::dispatchWillSubmitForm):
3029         (WebFrameLoaderClient::createDocumentLoader):
3030         * WebCoreSupport/WebInspectorClient.mm:
3031         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3032         * WebView/WebArchive.mm:
3033         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
3034         * WebView/WebFrame.mm:
3035         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
3036         * WebView/WebHTMLView.mm:
3037         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
3038         * WebView/WebMediaPlaybackTargetPicker.mm:
3039         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
3040         * WebView/WebView.mm:
3041         (-[WebView _loadBackForwardListFromOtherView:]):
3042         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
3043         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
3044
3045 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
3046
3047         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
3048
3049         * History/WebHistoryItem.mm:
3050         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3051
3052 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
3053
3054         Fix naming in HistoryItem to refer to scrollPositions
3055         https://bugs.webkit.org/show_bug.cgi?id=152646
3056
3057         Reviewed by Zalan Bujtas.
3058
3059         HistoryItem stores a scrollPosition, so call it that.
3060
3061         * History/WebHistoryItem.mm:
3062         (-[WebHistoryItem scrollPoint]):
3063
3064 2016-01-01  Jeff Miller  <jeffm@apple.com>
3065
3066         Update user-visible copyright strings to include 2016
3067         https://bugs.webkit.org/show_bug.cgi?id=152531
3068
3069         Reviewed by Alexey Proskuryakov.
3070
3071         * Info.plist:
3072
3073 2015-12-31  David Kilzer  <ddkilzer@apple.com>
3074
3075         Stop using USE(CFNETWORK) path on iOS
3076         https://bugs.webkit.org/show_bug.cgi?id=142540
3077
3078         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
3079
3080         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
3081         Reviewed by Daniel Bates.
3082
3083         * Misc/WebDownload.h: Add header guard to make
3084         NSURLDownloadSPI.h work when pre-declaring NSURLDownload object.
3085         * Misc/WebKitVersionChecks.h: Define
3086         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES
3087         for iOS.
3088         * WebView/WebView.mm:
3089         (-[WebView _commonInitializationWithFrameName:groupName:]): Use
3090         the correct runloop on iOS.
3091         * WebView/WebViewPrivate.h:
3092         (-[WebView(WebPendingPublic) scheduleInRunLoop:forMode:]):
3093         (-[WebView(WebPendingPublic) unscheduleFromRunLoop:forMode:]):
3094         - These are available on iOS now.
3095
3096 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
3097
3098         Clarify that scrollPositionChangedViaPlatformWidget takes offsets
3099         https://bugs.webkit.org/show_bug.cgi?id=152606
3100
3101         Reviewed by Zalan Bujtas.
3102
3103         scrollPositionChangedViaPlatformWidget actually gets scroll offsets, since the
3104         values we get from AppKit are zero-based, so rename to scrollOffsetChangedViaPlatformWidget().
3105         
3106         Change ScrollableArea's setScrollPosition() and requestScrollPositionUpdate() to take
3107         ScrollPositions.
3108         
3109         Add a FIXME noting that willRevealEdge events are probably broken in RTL documents.
3110
3111         * WebView/WebHTMLView.mm:
3112         (-[WebHTMLView _frameOrBoundsChanged]):
3113
3114 2015-12-22  Andy Estes  <aestes@apple.com>
3115
3116         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
3117         https://bugs.webkit.org/show_bug.cgi?id=152463
3118
3119         Reviewed by Alexey Proskuryakov.
3120
3121         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
3122         declared in CFNetworkSPI.h.
3123
3124         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3125         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
3126         * Plugins/WebNetscapePluginStream.mm:
3127         (WebNetscapePluginStream::didReceiveResponse):
3128         * WebCoreSupport/WebSystemInterface.mm:
3129         (InitWebCoreSystemInterface): Deleted.
3130         * WebView/WebPreferences.mm:
3131         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
3132
3133 2015-12-20  Dan Bernstein  <mitz@apple.com>
3134
3135         Remove unused setToolbarHeight
3136         https://bugs.webkit.org/show_bug.cgi?id=152466
3137
3138         Reviewed by Darin Adler.
3139
3140         * WebCoreSupport/WebInspectorClient.h:
3141         * WebCoreSupport/WebInspectorClient.mm::
3142         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
3143
3144 2015-12-19  Dan Bernstein  <mitz@apple.com>
3145
3146         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
3147         https://bugs.webkit.org/show_bug.cgi?id=152462
3148
3149         Reviewed by Alexey Proskuryakov.
3150
3151         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
3152           that became uniform across all OS X versions as a result:
3153
3154         * Configurations/DebugRelease.xcconfig:
3155         * Configurations/FeatureDefines.xcconfig:
3156         * Configurations/Version.xcconfig:
3157         * Configurations/WebKitLegacy.xcconfig:
3158
3159         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
3160           never getting compiled:
3161
3162         * WebCoreSupport/WebInspectorClient.mm:
3163         * WebView/WebDynamicScrollBarsView.mm:
3164         * WebView/WebHTMLView.mm:
3165         * WebView/WebImmediateActionController.h:
3166         * WebView/WebImmediateActionController.mm:
3167         * WebView/WebView.mm:
3168         * WebView/WebViewData.h:
3169         * WebView/WebViewData.mm:
3170         * WebView/WebViewInternal.h:
3171
3172 2015-12-17  Tim Horton  <timothy_horton@apple.com>
3173
3174         Data detector yellow highlight location is vertically mirrored in WebKit1
3175         https://bugs.webkit.org/show_bug.cgi?id=152216
3176         <rdar://problem/23848003>
3177
3178         Reviewed by Darin Adler.
3179
3180         * WebView/WebImmediateActionController.mm:
3181         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
3182         Match the conversion we do at every other WK1 TextIndicator construction.
3183
3184 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
3185
3186         [Fetch API] Add fetch API compile time flag
3187         https://bugs.webkit.org/show_bug.cgi?id=152254
3188
3189         Reviewed by Darin Adler.
3190
3191         * Configurations/FeatureDefines.xcconfig:
3192
3193 2015-12-13  Tim Horton  <timothy_horton@apple.com>
3194
3195         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
3196         https://bugs.webkit.org/show_bug.cgi?id=150988
3197         <rdar://problem/18993594>
3198
3199         Reviewed by Darin Adler.
3200
3201         * WebCoreSupport/WebContextMenuClient.mm:
3202         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
3203         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
3204
3205 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
3206
3207         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
3208         https://bugs.webkit.org/show_bug.cgi?id=152197
3209
3210         Reviewed by Dean Jackson.
3211
3212         * WebView/WebPreferenceKeysPrivate.h:
3213         * WebView/WebPreferences.mm:
3214         (+[WebPreferences initialize]):
3215         (-[WebPreferences mockCaptureDevicesEnabled]):
3216         (-[WebPreferences setMockCaptureDevicesEnabled:]):
3217         * WebView/WebPreferencesPrivate.h:
3218         * WebView/WebView.mm:
3219         (-[WebView _preferencesChanged:]):
3220
3221 2015-12-11  Beth Dakin  <bdakin@apple.com>
3222
3223         _touchEventRegions should return regions in the view's coordinates
3224         https://bugs.webkit.org/show_bug.cgi?id=152189
3225         -and corresponding-
3226         rdar://problem/23188605
3227
3228         Reviewed by Dan Bernstein.
3229
3230         The comment here was actually out of date. It claimed that touch rectangles 
3231         are in the coordinate system of the document, but we had actually changed 
3232         them to be in the view’s coordinate system in order to fix issues with 
3233         handling touch events in UIWebView. But now we are going back to having the 
3234         touch rectangles be in the document’s coordinate system, so we should fix the 
3235         rtl bugs here by converting to view coordinates before handing the rects off 
3236         to iOS WK1 clients.
3237         * WebView/WebView.mm:
3238         (-[WebView _touchEventRegions]):
3239
3240 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
3241
3242         [MediaStream] Expose media capture devices persistent permissions to WebCore
3243         https://bugs.webkit.org/show_bug.cgi?id=152087
3244
3245         Reviewed by Chris Dumez.
3246
3247         Add methods and helpers for WK1 permission checker interface.
3248         * WebCoreSupport/WebUserMediaClient.h:
3249         * WebCoreSupport/WebUserMediaClient.mm:
3250         (userMediaRequestsMap):
3251         (AddRequestToRequestMap):
3252         (RemoveRequestFromRequestMap):
3253         (userMediaCheckMap):
3254         (AddPermissionCheckToMap):
3255         (RemovePermissionCheckFromMap):
3256         (WebUserMediaClient::WebUserMediaClient):
3257         (WebUserMediaClient::requestUserMediaAccess):
3258         (WebUserMediaClient::cancelUserMediaAccessRequest):
3259         (WebUserMediaClient::checkUserMediaPermission):
3260         (WebUserMediaClient::cancelUserMediaPermissionCheck):
3261         (-[WebUserMediaPolicyListener allow]):
3262         (-[WebUserMediaPolicyListener deny]):
3263         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]):
3264         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]):
3265         (-[WebUserMediaPolicyCheckerListener allow]):
3266         (-[WebUserMediaPolicyCheckerListener deny]):
3267         (-[WebUserMediaPolicyCheckerListener denyOnlyThisRequest]):
3268         (-[WebUserMediaPolicyCheckerListener shouldClearCache]):
3269         (AddRequestToMap): Deleted.
3270         (RemoveRequestFromMap): Deleted.
3271         * WebView/WebUIDelegatePrivate.h:
3272
3273 2015-12-08  Beth Dakin  <bdakin@apple.com>
3274
3275         Follow-up to:
3276         Add support for WebViewAdditions
3277         https://bugs.webkit.org/show_bug.cgi?id=151967
3278
3279         Rubber-stamped by Dan Bernstein.
3280
3281         We should use the Web prefix for all category names.
3282         * WebView/WebView.mm:
3283         (-[WebView updateWebViewAdditions]):
3284         * WebView/WebViewInternal.h:
3285
3286 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
3287
3288         [MediaStream] Rename UserMediaClient and UserMediaController methods
3289         https://bugs.webkit.org/show_bug.cgi?id=152001
3290
3291         Reviewed by Brady Eidson.
3292
3293         * WebCoreSupport/WebUserMediaClient.h:
3294         * WebCoreSupport/WebUserMediaClient.mm:
3295         (WebUserMediaClient::pageDestroyed):
3296         (WebUserMediaClient::requestUserMediaAccess):
3297         (WebUserMediaClient::cancelUserMediaAccessRequest):
3298         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
3299         (-[WebUserMediaPolicyListener cancelUserMediaAccessRequest]):
3300         (WebUserMediaClient::requestPermission): Deleted.
3301         (WebUserMediaClient::cancelRequest): Deleted.
3302         (-[WebUserMediaPolicyListener cancelRequest]): Deleted.
3303
3304 2015-12-07  Alex Christensen  <achristensen@webkit.org>
3305
3306         Build fix after r193675.
3307
3308         * WebView/WebViewData.h:
3309
3310 2015-12-07  Alex Christensen  <achristensen@webkit.org>
3311
3312         Build fix after r193661.
3313
3314         Reviewed by Beth Dakin.
3315
3316         * WebView/WebViewData.h:
3317
3318 2015-12-07  Beth Dakin  <bdakin@apple.com>
3319
3320         Add support for WebViewAdditions
3321         https://bugs.webkit.org/show_bug.cgi?id=151967
3322
3323         Reviewed by Sam Weinig.
3324
3325         * WebCoreSupport/WebEditorClient.mm:
3326         (WebEditorClient::respondToChangedSelection):
3327         * WebView/WebView.mm:
3328         (-[WebView _commonInitializationWithFrameName:groupName:]):
3329         (-[WebView updateWebViewAdditions]):
3330         * WebView/WebViewData.h:
3331         * WebView/WebViewInternal.h:
3332
3333 2015-12-07  Beth Dakin  <bdakin@apple.com>
3334
3335         Hook up request and show for typing candidates in WK1
3336         https://bugs.webkit.org/show_bug.cgi?id=151831
3337         -and corresponding-
3338         <rdar://problem/23751214>
3339
3340         Reviewed by Enrica Casucci.
3341
3342         Add member variables to WebEditorClient. One is a WeakPtrFactory for the 
3343         asynchronous handlers, and the other caches the VisibleSelection at the time 
3344         candidates were requested so that we can make sure the candidates are still 
3345         valid once we receive them.
3346         * WebCoreSupport/WebEditorClient.h:
3347         * WebCoreSupport/WebEditorClient.mm:
3348         (WebEditorClient::WebEditorClient):
3349
3350         Call [NSSpellChecker requestCandidatesForSelectedRange] with the appropriate 
3351         parameters.
3352         (WebEditorClient::requestCandidatesForSelection):
3353
3354         Two helpers to compute information that we need for both of the handlers 
3355         below.
3356         (candidateRangeForSelection):
3357         (candidateWouldReplaceText):
3358
3359         In this handler, we just need to call [NSSpellChecker showCandidates] with 
3360         the appropriate parameters.
3361         (WebEditorClient::handleRequestedCandidates):
3362
3363         Once a candidate is accepted, it should be inserted in the right way.
3364         (WebEditorClient::handleAcceptedCandidate):
3365
3366 2015-12-03  Jer Noble  <jer.noble@apple.com>
3367
3368         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
3369         https://bugs.webkit.org/show_bug.cgi?id=151830
3370
3371         Reviewed by Anders Carlsson.
3372
3373         Add a new WebPreferences property invisibleAutoplayNotPermitted.
3374
3375         * WebView/WebPreferenceKeysPrivate.h:
3376         * WebView/WebPreferences.mm:
3377         (-[WebPreferences invisibleAutoplayNotPermitted]):
3378         (-[WebPreferences setInvisibleAutoplayNotPermitted:]):
3379         * WebView/WebPreferencesPrivate.h:
3380         * WebView/WebView.mm:
3381         (-[WebView _preferencesChanged:]):
3382
3383 2015-12-03  Anders Carlsson  <andersca@apple.com>
3384
3385         Remove Objective-C GC support
3386         https://bugs.webkit.org/show_bug.cgi?id=151819
3387         rdar://problem/23746991
3388
3389         Reviewed by Dan Bernstein.
3390
3391         * Carbon/CarbonWindowAdapter.mm:
3392         (+[CarbonWindowAdapter initialize]): Deleted.
3393         (-[CarbonWindowAdapter finalize]): Deleted.
3394         * Configurations/Base.xcconfig:
3395         * History/WebBackForwardList.mm:
3396         (+[WebBackForwardList initialize]): Deleted.
3397         (-[WebBackForwardList finalize]): Deleted.
3398         * History/WebHistory.mm:
3399         (-[WebHistoryPrivate finalize]): Deleted.
3400         (-[WebHistory finalize]): Deleted.
3401         * History/WebHistoryItem.mm:
3402         (+[WebHistoryItem initialize]): Deleted.
3403         (-[WebHistoryItem finalize]): Deleted.
3404         * Misc/WebElementDictionary.mm:
3405         (+[WebElementDictionary initialize]): Deleted.
3406         (-[WebElementDictionary finalize]): Deleted.
3407         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3408         (+[WebHostedNetscapePluginView initialize]): Deleted.
3409         * Plugins/WebBaseNetscapePluginView.mm:
3410         (-[WebBaseNetscapePluginView finalize]): Deleted.
3411         * Plugins/WebBasePluginPackage.mm:
3412         (-[WebBasePluginPackage finalize]): Deleted.
3413         * Plugins/WebNetscapePluginView.mm:
3414         (+[WebNetscapePluginView initialize]): Deleted.
3415         (-[WebNetscapePluginView finalize]): Deleted.
3416         * Plugins/WebPluginContainerCheck.mm:
3417         (-[WebPluginContainerCheck finalize]): Deleted.
3418         * WebCoreSupport/WebEditorClient.mm:
3419         (+[WebUndoStep initialize]): Deleted.
3420         (-[WebUndoStep finalize]): Deleted.
3421         * WebCoreSupport/WebFrameLoaderClient.mm:
3422         * WebCoreSupport/WebOpenPanelResultListener.mm:
3423         (-[WebOpenPanelResultListener finalize]): Deleted.
3424         * WebCoreSupport/WebSecurityOrigin.mm:
3425         (-[WebSecurityOrigin finalize]): Deleted.
3426         * WebView/WebArchive.mm:
3427         (+[WebArchivePrivate initialize]): Deleted.
3428         * WebView/WebDataSource.mm:
3429         (+[WebDataSource initialize]): Deleted.
3430         (-[WebDataSource finalize]): Deleted.
3431         * WebView/WebDynamicScrollBarsView.mm:
3432         (-[WebDynamicScrollBarsView finalize]): Deleted.
3433         * WebView/WebFrame.mm:
3434         (-[WebFramePrivate setWebFrameView:]):
3435         (-[WebFramePrivate finalize]): Deleted.
3436         (-[WebFrame finalize]): Deleted.
3437         * WebView/WebFrameView.mm:
3438         (-[WebFrameView finalize]): Deleted.
3439         * WebView/WebHTMLRepresentation.mm:
3440         (-[WebHTMLRepresentation finalize]): Deleted.
3441         * WebView/WebHTMLView.mm:
3442         (+[WebHTMLViewPrivate initialize]):
3443         (-[WebHTMLViewPrivate finalize]): Deleted.
3444         (+[WebHTMLView initialize]): Deleted.
3445         (-[WebHTMLView finalize]): Deleted.
3446         * WebView/WebResource.mm:
3447         (+[WebResourcePrivate initialize]): Deleted.
3448         (-[WebResourcePrivate finalize]): Deleted.
3449         * WebView/WebTextIterator.mm:
3450         (+[WebTextIteratorPrivate initialize]): Deleted.
3451         * WebView/WebView.mm:
3452         (-[WebView finalize]): Deleted.
3453         * WebView/WebViewData.mm:
3454         (+[WebViewPrivate initialize]): Deleted.
3455         (-[WebViewPrivate init]): Deleted.
3456         (-[WebViewPrivate finalize]): Deleted.
3457
3458 2015-12-02  Antti Koivisto  <antti@apple.com>
3459
3460         Move ResourceLoadScheduler to WebKit1
3461         https://bugs.webkit.org/show_bug.cgi?id=151743
3462
3463         Reviewed by Alex Christensen.
3464
3465         * Plugins/Hosted/HostedNetscapePluginStream.mm:
3466         (WebKit::HostedNetscapePluginStream::start):
3467         (WebKit::HostedNetscapePluginStream::stop):
3468         * Plugins/WebNetscapePluginStream.mm:
3469         (WebNetscapePluginStream::start):
3470         (WebNetscapePluginStream::stop):
3471         * WebCoreSupport/WebPlatformStrategies.h:
3472         * WebCoreSupport/WebPlatformStrategies.mm:
3473         (WebPlatformStrategies::createLoaderStrategy):
3474         (WebPlatformStrategies::createPasteboardStrategy):
3475         (WebPlatformStrategies::createPluginStrategy):
3476         (WebPlatformStrategies::createBlobRegistry):
3477         (WebPlatformStrategies::cookiesForDOM):
3478         * WebView/WebView.mm:
3479         (-[WebView _dispatchPendingLoadRequests]):
3480         (+[WebView _setLoadResourcesSerially:]):
3481         (+[WebView _HTTPPipeliningEnabled]):
3482
3483 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3484
3485         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3486         https://bugs.webkit.org/show_bug.cgi?id=150792
3487
3488         Reviewed by Saam Barati.
3489
3490         * Configurations/FeatureDefines.xcconfig:
3491
3492 2015-12-01  Commit Queue  <commit-queue@webkit.org>
3493
3494         Unreviewed, rolling out r192914.
3495         https://bugs.webkit.org/show_bug.cgi?id=151734
3496
3497         JSC tests for this change are failing on 32 and 64-bit bots
3498         (Requested by ryanhaddad on #webkit).
3499
3500         Reverted changeset:
3501
3502         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
3503         enable this feature"
3504         https://bugs.webkit.org/show_bug.cgi?id=150792
3505         http://trac.webkit.org/changeset/192914
3506
3507 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
3508
3509         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
3510         https://bugs.webkit.org/show_bug.cgi?id=150792
3511
3512         Reviewed by Saam Barati.
3513
3514         * Configurations/FeatureDefines.xcconfig:
3515
3516 2015-11-30  Katlyn Graff  <kgraff@apple.com>
3517
3518         Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension
3519         https://bugs.webkit.org/show_bug.cgi?id=151677
3520
3521         Reviewed by Ryosuke Niwa.
3522
3523         * WebView/WebFrame.mm:
3524         (-[WebFrame _cacheabilityDictionary]):
3525
3526 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
3527
3528         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
3529         https://bugs.webkit.org/show_bug.cgi?id=149309
3530         <rdar://problem/22748363>
3531
3532         Reviewed by Brent Fulgham.
3533
3534         * WebView/WebDataSource.mm:
3535         (WebDataSourcePrivate::~WebDataSourcePrivate):
3536         Refine the assertion to treat <rdar://problem/9673866>.
3537
3538 == Rolled over to ChangeLog-2015-11-21 ==