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