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