Add ENABLE_WEBASSEMBLY feature flag for WebAssembly
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2015-07-22  Sukolsak Sakshuwong  <sukolsak@gmail.com>
2
3         Add ENABLE_WEBASSEMBLY feature flag for WebAssembly
4         https://bugs.webkit.org/show_bug.cgi?id=147212
5
6         Reviewed by Filip Pizlo.
7
8         * Configurations/FeatureDefines.xcconfig:
9
10 2015-07-21  Joseph Pecoraro  <pecoraro@apple.com>
11
12         Web Inspector: [Mac] "Open Image In New Window" context menu item does nothing on an image
13         https://bugs.webkit.org/show_bug.cgi?id=147175
14
15         Reviewed by Timothy Hatcher.
16
17         * WebCoreSupport/WebInspectorClient.mm:
18         (-[WebInspectorWindowController webView:contextMenuItemsForElement:defaultMenuItems:]):
19         Remove default context menus that won't work in the inspector page.
20
21 2015-07-21  Simon Fraser  <simon.fraser@apple.com>
22
23         Add a logging channel for Layout, remove the LiveConnect channel
24         https://bugs.webkit.org/show_bug.cgi?id=147170
25
26         Reviewed by Zalan Bujtas.
27
28         Add a layout logging channel to WebCore, and remove the LiveConnect channel.
29
30         * Misc/WebKitLogging.h:
31         * Plugins/WebNetscapePluginPackage.mm:
32         (-[WebNetscapePluginPackage _tryLoad]): Deleted.
33
34 2015-07-21  Brady Eidson  <beidson@apple.com>
35
36         Fix WebPreferences infinite recursion introduced in r186232.
37         <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=147149
38
39         Reviewed by Tim Horton.
40
41         * WebView/WebPreferences.mm:
42         (-[WebPreferences metaRefreshEnabled]):
43
44 2015-07-18  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
45
46         Reduce PassRefPtr in WebKit2 - 3
47         https://bugs.webkit.org/show_bug.cgi?id=146995
48
49         Reviewed by Daniel Bates.
50
51         To remove PassRefPtr, this patch reduces use of PassRefPtr in WebKit2.
52         Because some uses depend on WebCore, WebCore, WK1 ports are modified as well.
53
54         * WebCoreSupport/WebFrameLoaderClient.h:
55         * WebCoreSupport/WebFrameLoaderClient.mm:
56         (WebFrameLoaderClient::createDocumentLoader):
57
58 2015-07-17  Andy Estes  <aestes@apple.com>
59
60         [iOS] Further tighten the sandbox around pages fetched with Content-Disposition: attachment
61         https://bugs.webkit.org/show_bug.cgi?id=147044
62         rdar://problem/21567820
63
64         Reviewed by Brady Eidson.
65
66         * WebView/WebView.mm:
67         (-[WebView _commonInitializationWithFrameName:groupName:]): Enabled Content-Disposition: attachment sandbox on iOS.
68
69 2015-07-16  Joseph Pecoraro  <pecoraro@apple.com>
70
71         Web Inspector: [Mac] Save dialog not working when inspector is docked
72         https://bugs.webkit.org/show_bug.cgi?id=146991
73
74         Reviewed by Sam Weinig.
75
76         * WebCoreSupport/WebInspectorClient.mm:
77         (WebInspectorFrontendClient::save):
78         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
79         When the window is nil (docked) use a non-window version of running the dialog.
80
81 2015-07-13  Simon Fraser  <simon.fraser@apple.com>
82
83         [iOS] Expose contentsSizeRespectingOverflow() via WebView so UIWebView can use it
84         https://bugs.webkit.org/show_bug.cgi?id=146924
85         WebKit part of rdar://problem/21802456
86
87         Reviewed by Tim Horton.
88
89         Expose the FrameView's contentsSizeRespectingOverflow() via WebView, for use
90         by UIKit.
91
92         * WebView/WebView.mm:
93         (-[WebView _contentsSizeRespectingOverflow]):
94         * WebView/WebViewPrivate.h:
95
96 2015-07-14  Anders Carlsson  <andersca@apple.com>
97
98         Remove wkPopupMenu from WebCoreSystemInterface; it's not called from WebCore
99         https://bugs.webkit.org/show_bug.cgi?id=146945
100
101         Reviewed by Tim Horton.
102
103         * WebCoreSupport/PopupMenuMac.mm:
104         (PopupMenuMac::show):
105         * WebCoreSupport/WebSystemInterface.mm:
106         (InitWebCoreSystemInterface): Deleted.
107
108 2015-07-11  Nikita Vasilyev  <nvasilyev@apple.com>
109
110         Web Inspector: Inspector should be able to be docked to the bottom of a narrow window
111         https://bugs.webkit.org/show_bug.cgi?id=146871
112
113         Reviewed by Timothy Hatcher.
114
115         * WebCoreSupport/WebInspectorClient.mm:
116
117 2015-07-07  Brady Eidson  <beidson@apple.com>
118
119         HTTP Auth cached after disabling private browsing/reset.
120         <rdar://problem/8293055> and https://bugs.webkit.org/show_bug.cgi?id=146654
121
122         Reviewed by Tim Horton.
123
124         * Misc/WebCache.h:
125         * Misc/WebCache.mm:
126         (+[WebCache clearCachedCredentials]): Clear the global CredentialStorage as well as the
127           storages belonging to each main frame of each WebView. This method is for DRT.
128         
129         * Misc/WebDownload.mm:
130         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]):
131         
132         * Plugins/WebBaseNetscapePluginView.mm:
133         (WebKit::getAuthenticationInfo):
134         
135         * WebView/WebView.mm:
136         (-[WebView _clearCredentials]): Clear the storage belonging to the current networking session
137           of the main frame of this WebView.
138         * WebView/WebViewInternal.h:
139
140 2015-07-04  Chris Dumez  <cdumez@apple.com>
141
142         Drop RefPtr::clear() method
143         https://bugs.webkit.org/show_bug.cgi?id=146556
144
145         Reviewed by Brady Eidson.
146
147         Drop RefPtr::clear() method in favor of "= nullptr;" pattern.
148
149 2015-07-03  Dan Bernstein  <mitz@apple.com>
150
151         [Xcode] Update some build settings as recommended by Xcode 7
152         https://bugs.webkit.org/show_bug.cgi?id=146597
153
154         Reviewed by Sam Weinig.
155
156         * Configurations/Base.xcconfig: Enabled CLANG_WARN_UNREACHABLE_CODE,
157         GCC_WARN_UNDECLARED_SELECTOR and GCC_NO_COMMON_BLOCKS. Removed GCC_MODEL_TUNING.
158
159 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
160
161         Fix the build.
162
163         Rubber-stamped by Brady Eidson.
164
165         * WebView/WebView.mm:
166         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
167         Http, not HTTP, for settings generator reasons.
168
169 2015-07-02  Brady Eidson  <beidson@apple.com>
170
171         Add preference to disable all http-equiv.
172         <rdar://problem/9091261> and https://bugs.webkit.org/show_bug.cgi?id=146553
173
174         Reviewed by Sam Weinig.
175         
176         * WebView/WebPreferenceKeysPrivate.h:
177         
178         * WebView/WebPreferences.mm:
179         (+[WebPreferences initialize]):
180         (-[WebPreferences setMetaRefreshEnabled:]): Still expose this SPI, but have it affect
181           the "httpEquivEnabled" setting.
182         (-[WebPreferences metaRefreshEnabled]): Ditto.
183         (-[WebPreferences setHTTPEquivEnabled:]):
184         (-[WebPreferences httpEquivEnabled]):
185         * WebView/WebPreferencesPrivate.h:
186         
187         * WebView/WebView.mm:
188         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
189         (-[WebView _preferencesChanged:]):
190
191 2015-07-02  Timothy Horton  <timothy_horton@apple.com>
192
193         iOS WebKitLegacy should match WebKit2's viewport behavior
194         https://bugs.webkit.org/show_bug.cgi?id=146540
195         <rdar://problem/20574017>
196
197         Reviewed by Dan Bernstein.
198
199         A number of changes have been made to WebKit2's viewport behavior
200         to make it possible to scale "responsive" sites that misbehave (lay out
201         in a non-responsive way).
202
203         * History/WebHistoryItem.mm:
204         * History/WebHistoryItemPrivate.h:
205         Add the plumbing required to implement these new behaviors in WebKit1.
206
207 2015-07-01  Dean Jackson  <dino@apple.com>
208
209         Disable the experimental WebGL2 implementation
210         https://bugs.webkit.org/show_bug.cgi?id=146526
211         <rdar://problem/21641235>
212
213         Reviewed by Myles Maxfield.
214
215         Add (and disable) an ENABLE_WEBGL2 flag.
216
217         * Configurations/FeatureDefines.xcconfig:
218
219 2015-07-01  Simon Fraser  <simon.fraser@apple.com>
220
221         Fix the iOS build.
222
223         * WebCoreSupport/WebUserMediaClient.mm:
224         (-[WebUserMediaPolicyListener denyOnlyThisRequest]): Remove ASSERT_NOT_REACHED, 
225         because it caused the compiler to warn about noreturn.
226
227 2015-07-01  Matthew Daiter  <mdaiter@apple.com>
228
229         Enable MEDIA_STREAM flag
230         https://bugs.webkit.org/show_bug.cgi?id=145947
231         <rdar://problem/21365829>
232
233         Reviewed by Eric Carlson.
234
235         * Configurations/FeatureDefines.xcconfig: Added MEDIA_STREAM flag
236         * WebCoreSupport/WebUserMediaClient.h: Changed signatures
237         * WebCoreSupport/WebUserMediaClient.mm: Changed signatures
238         (WebUserMediaClient::requestPermission):
239         (WebUserMediaClient::cancelRequest):
240         (-[WebUserMediaPolicyListener denyOnlyThisRequest]):
241         (-[WebUserMediaPolicyListener shouldClearCache]):
242
243 2015-07-01  Brady Eidson  <beidson@apple.com>
244
245         REGRESSION (185319): Reproducible crash in WebHistoryItem launching FluidApp.
246         <rdar://problem/21598293> and https://bugs.webkit.org/show_bug.cgi?id=146494
247
248         Reviewed by Darin Adler.
249
250         * History/WebHistoryItem.mm:
251         (-[WebHistoryItem initFromDictionaryRepresentation:]): Don’t reference members of a Vector
252           that don’t exist.
253
254 2015-06-30  Andy VanWagoner  <thetalecrafter@gmail.com>
255
256         Implement ECMAScript Internationalization API
257         https://bugs.webkit.org/show_bug.cgi?id=90906
258
259         Reviewed by Benjamin Poulain.
260
261         * Configurations/FeatureDefines.xcconfig: add ENABLE_INTL flag
262
263 2015-06-30  Simon Fraser  <simon.fraser@apple.com>
264
265         Crash under _layoutForNodeHighlight: when inspecting espn.com
266         https://bugs.webkit.org/show_bug.cgi?id=146422
267
268         Reviewed by Joseph Pecoraro.
269
270         When inspecting espn.com, MobileSafari sometimes crashes, because
271         highlight.quads is empty. I was not able to quickly determine why.
272
273         Fix by bailing in this case.
274
275         * WebInspector/WebNodeHighlightView.mm:
276         (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
277
278 2015-06-30  Anders Carlsson  <andersca@apple.com>
279
280         Remove the WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS ifdefs now that this is always true
281         https://bugs.webkit.org/show_bug.cgi?id=146462
282
283         Reviewed by Dan Bernstein.
284
285         * Misc/WebDownload.h:
286         * WebView/WebFrameLoadDelegate.h:
287         * WebView/WebPolicyDelegate.h:
288         * WebView/WebResourceLoadDelegate.h:
289         * WebView/WebUIDelegate.h:
290         * WebView/WebView.h:
291         * postprocess-headers.sh:
292
293 2015-06-29  Anders Carlsson  <andersca@apple.com>
294
295         Get rid of unused WKSI functions
296         https://bugs.webkit.org/show_bug.cgi?id=146443
297
298         Reviewed by Tim Horton.
299
300         * WebCoreSupport/WebSystemInterface.mm:
301         (InitWebCoreSystemInterface): Deleted.
302
303 2015-06-29  Dean Jackson  <dino@apple.com>
304
305         Temporarily disable PICTURE_SIZES
306         https://bugs.webkit.org/show_bug.cgi?id=146435
307         <rdar://problem/21087013>
308
309         Reviewed by Tim Horton.
310
311         Temporarily disable PICTURE_SIZES because it causes problems with out
312         of date <picture> polyfills.
313
314         * Configurations/FeatureDefines.xcconfig:
315
316 2015-06-27  Ryosuke Niwa  <rniwa@webkit.org>
317
318         Font panel doesn't get updated when bolding text via cmd+b in Mail on OS X
319         https://bugs.webkit.org/show_bug.cgi?id=146379
320
321         Reviewed by Darin Adler.
322
323         Update the font panel when newly added EditorClient::didApplyStyle is called. Also set the font attributes
324         in _updateFontPanel so that underline and strike through states will be reflected.
325
326         * WebCoreSupport/WebEditorClient.h:
327         * WebCoreSupport/WebEditorClient.mm:
328         (WebEditorClient::shouldApplyStyle):
329         (updateFontPanelIfNeeded): Extracted from respondToChangedContents.
330         (WebEditorClient::didApplyStyle): Added.
331         (WebEditorClient::respondToChangedContents):
332         * WebView/WebHTMLView.mm:
333         (-[WebHTMLView _updateFontPanel]): Sets font attributes as well as font.
334
335 2015-06-29  Dean Jackson  <dino@apple.com>
336
337         Setting to enable/disable media controls sizing on page zoom
338         https://bugs.webkit.org/show_bug.cgi?id=146423
339         <rdar://problem/18379634>
340
341         Reviewed by Eric Carlson.
342
343         Add a new setting "MediaControlsScaleWithPageZoom" that can disable
344         the behaviour we currently implement on iOS, where the media controls
345         attempt to remain at a fixed size independent of page zoom.
346
347         * WebView/WebPreferenceKeysPrivate.h:
348         * WebView/WebPreferences.mm:
349         (+[WebPreferences initialize]): Initialize to false on iOS, true otherwise.
350         (-[WebPreferences mediaControlsScaleWithPageZoom]):
351         (-[WebPreferences setMediaControlsScaleWithPageZoom:]):
352         * WebView/WebPreferencesPrivate.h:
353         * WebView/WebView.mm:
354         (-[WebView _preferencesChanged:]):
355
356 2015-06-29  Anders Carlsson  <andersca@apple.com>
357
358         Use DISPATCH_SOURCE_TYPE_MEMORYPRESSURE instead of DISPATCH_SOURCE_TYPE_MEMORYSTATUS
359         https://bugs.webkit.org/show_bug.cgi?id=146413
360
361         Reviewed by Andreas Kling.
362
363         Replace SPI with API.
364
365         * WebCoreSupport/WebSystemInterface.mm:
366         (InitWebCoreSystemInterface): Deleted.
367         * WebView/WebView.mm:
368         (+[WebView registerForMemoryNotifications]):
369
370 2015-06-28  Darin Adler  <darin@apple.com>
371
372         [Mac] Remove redundant call to colorUsingColorSpaceName:
373         https://bugs.webkit.org/show_bug.cgi?id=146397
374
375         Reviewed by Alexey Proskuryakov.
376
377         * WebView/WebHTMLView.mm:
378         (extractUnderlines): Remove call to the colorUsingColorSpaceName: method,
379         since colorFromNSColor already calls it. No need to do it twice.
380
381 2015-06-26  Hyungwook Lee  <hyungwook.lee@navercorp.com>
382
383         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
384         https://bugs.webkit.org/show_bug.cgi?id=145908
385
386         Reviewed by Brent Fulgham.
387
388         Make WebViewGroup class sharing on Mac and Win port.
389
390         * WebCoreSupport/WebViewGroup.h: Removed.
391         * WebCoreSupport/WebViewGroup.mm: Removed.
392
393 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
394
395         Web Inspector: Add Support for OS X Full Screen Mode
396         https://bugs.webkit.org/show_bug.cgi?id=123510
397
398         Reviewed by Timothy Hatcher.
399
400         * WebCoreSupport/WebInspectorClient.h:
401         * WebCoreSupport/WebInspectorClient.mm:
402         (WebInspectorClient::didResizeMainFrame):
403         (WebInspectorClient::windowFullScreenDidChange):
404         (WebInspectorClient::canAttach):
405         (WebInspectorFrontendClient::canAttach):
406         (-[WebInspectorWindowController showWindow:]):
407         Consolidate canAttach logic into canAttach functions.
408
409         (-[WebInspectorWindowController window:]):
410         Share the same full screen behavior as WebKit2.
411
412         (-[WebInspectorWindowController windowDidEnterFullScreen:]):
413         (-[WebInspectorWindowController windowDidExitFullScreen:]):
414         Attach availability may have changed.
415
416 2015-06-25  Joseph Pecoraro  <pecoraro@apple.com>
417
418         [Mac] Web Inspector: Window dragging on toolbar should behave more like native window dragging
419         https://bugs.webkit.org/show_bug.cgi?id=146324
420
421         Reviewed by Timothy Hatcher.
422
423         * WebCoreSupport/WebInspectorClient.h:
424         * WebCoreSupport/WebInspectorClient.mm:
425         (WebInspectorFrontendClient::startWindowDrag):
426         Start performing a window drag.
427
428 2015-06-23  Anders Carlsson  <andersca@apple.com>
429
430         Remove windowResizerRect code, nobody is using it anymore
431         https://bugs.webkit.org/show_bug.cgi?id=146265
432
433         Reviewed by Beth Dakin.
434
435         * WebCoreSupport/WebChromeClient.h:
436         * WebCoreSupport/WebChromeClient.mm:
437         (WebChromeClient::windowResizerRect): Deleted.
438
439 2015-06-22  Chris Dumez  <cdumez@apple.com>
440
441         [WK1] WebAllowDenyPolicyListener.denyOnlyThisRequest() should not start a new permission request
442         https://bugs.webkit.org/show_bug.cgi?id=146228
443         <rdar://problem/15179262>
444
445         Reviewed by Daniel Bates.
446
447         Call the new Geolocation::resetIsAllowed() API after denying the
448         current request, instead of calling
449         Geolocation::resetAllGeolocationPermission(). In addition to resetting
450         m_allowGeolocation to Unknown, the latter would also start a new
451         permission request. However, for
452         WebAllowDenyPolicyListener.denyOnlyThisRequest(), we really only want
453         to deny the current request and then reset m_allowGeolocation to
454         Unknown so that permission is requested again later if the app requests
455         a position again.
456
457         The previous implementation meant that if the client application keeps
458         calling WebAllowDenyPolicyListener.denyOnlyThisRequest(), we would end
459         up in an infinite loop (requesting for permission), even though the
460         application did not make any new geolocation requests.
461
462         * WebCoreSupport/WebGeolocationClient.mm:
463         (-[WebGeolocationPolicyListener denyOnlyThisRequest]):
464
465 2015-06-22  Anders Carlsson  <andersca@apple.com>
466
467         Delegates should be formal protocols
468         https://bugs.webkit.org/show_bug.cgi?id=146222
469         rdar://problem/17380856
470
471         Reviewed by Dan Bernstein.
472
473         Flip the switch on OS X and make delegates formal protocols.
474
475         * postprocess-headers.sh:
476
477 2015-06-20  Tim Horton  <timothy_horton@apple.com>
478
479         Deselection of text causes a noticeable jump on force touch machines
480         https://bugs.webkit.org/show_bug.cgi?id=146173
481         <rdar://problem/20992842>
482
483         Reviewed by Sam Weinig.
484
485         * WebView/WebImmediateActionController.mm:
486         (-[WebImmediateActionController _animationControllerForText]):
487         Get rid of TextIndicatorPresentationTransition::Crossfade.
488
489 2015-06-19  Brent Fulgham  <bfulgham@apple.com>
490
491         All calls of ImageBuffer::create should null check the return value
492         https://bugs.webkit.org/show_bug.cgi?id=22132
493
494         Reviewed by Zalan Bujtas.
495
496         ImageBuffer::create returns nullptr for a number of reasons, and should be
497         expected to do so. We missed this check in a few places, resulting in
498         crashes on some systems. Likewise, ImageBuffer::copyImage may return nullptr
499         in normal use and should be checked.
500
501         * WebCoreSupport/WebContextMenuClient.mm:
502         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Add nullptr check
503         for copyImage.
504
505 2015-06-18  Jon Lee  <jonlee@apple.com>
506
507         Update AVKit usage of pip
508         https://bugs.webkit.org/show_bug.cgi?id=146095
509         <rdar://problem/21386853>
510
511         Reviewed by Eric Carlson.
512
513         - Rename preference key
514         - Rename shouldAllowAlternateFullscreen to shouldAllowPictureInPictureMediaPlayback
515
516         * WebCoreSupport/WebSystemInterface.mm:
517         * WebView/WebPreferenceKeysPrivate.h:
518         * WebView/WebPreferences.mm:
519         (-[WebPreferences allowsAlternateFullscreen]): Call allowsPictureInPictureMediaPlayback.
520         (-[WebPreferences setAllowsAlternateFullscreen:]):
521         (-[WebPreferences allowsPictureInPictureMediaPlayback]): Added.
522         (-[WebPreferences setAllowsPictureInPictureMediaPlayback:]):
523         * WebView/WebPreferencesPrivate.h:
524         * WebView/WebView.mm:
525
526 2015-06-18  Anders Carlsson  <andersca@apple.com>
527
528         Remove shouldInterruptJavaScript
529         https://bugs.webkit.org/show_bug.cgi?id=146118
530
531         Reviewed by Antti Koivisto.
532
533         * WebCoreSupport/WebChromeClient.h:
534         * WebCoreSupport/WebChromeClient.mm:
535         (WebChromeClient::shouldInterruptJavaScript): Deleted.
536         * WebView/WebUIDelegatePrivate.h:
537
538 2015-06-17  Alex Christensen  <achristensen@webkit.org>
539
540         [Content Extensions] Log blocked loads to the WebInspector console
541         https://bugs.webkit.org/show_bug.cgi?id=146089
542
543         Reviewed by Joseph Pecoraro.
544
545         * WebCoreSupport/WebChromeClient.mm:
546         (stringForMessageSource):
547         Added content blocker message source.
548
549 2015-06-17  Dan Bernstein  <mitz@apple.com>
550
551         <rdar://problem/19034131> Cleaned up the WebDownload.h framework header.
552
553         Reviewed by Anders Carlsson.
554
555         * Misc/WebDownload.h: Changed to use USE_APPLE_INTERNAL_SDK instead of __has_include.
556         * postprocess-headers.sh: Define USE_APPLE_INTERNAL_SDK when postprocessing framework
557         headers.
558
559 2015-06-17  Commit Queue  <commit-queue@webkit.org>
560
561         Unreviewed, rolling out r185636.
562         https://bugs.webkit.org/show_bug.cgi?id=146068
563
564         Caused many crashes on Windows (Requested by ap on #webkit).
565
566         Reverted changeset:
567
568         "[Win] Implement WebViewGroup to support
569         WebView::addxxxToGroup()."
570         https://bugs.webkit.org/show_bug.cgi?id=145908
571         http://trac.webkit.org/changeset/185636
572
573 2015-06-16  Hyungwook Lee  <hyungwook.lee@navercorp.com>
574
575         [Win] Implement WebViewGroup to support WebView::addxxxToGroup().
576         https://bugs.webkit.org/show_bug.cgi?id=145908
577
578         Reviewed by Brent Fulgham.
579
580         Make WebViewGroup class sharing on Mac and Win port.
581
582         * WebCoreSupport/WebViewGroup.h: Removed.
583         * WebCoreSupport/WebViewGroup.mm: Removed.
584
585 2015-06-13  Chris Dumez  <cdumez@apple.com>
586
587         [WK2] API::Navigation objects are leaked on history navigation to HistoryItems in PageCache
588         https://bugs.webkit.org/show_bug.cgi?id=145948
589
590         Reviewed by Darin Adler.
591
592         Add empty implementation for new
593         FrameLoaderClient::updatedCachedDocumentLoader().
594
595         * WebCoreSupport/WebFrameLoaderClient.h:
596
597 2015-06-11  Mark Lam  <mark.lam@apple.com>
598
599         WebCore::reportException() needs to be able to accept a raw thrown value in addition to Exception objects.
600         https://bugs.webkit.org/show_bug.cgi?id=145872
601
602         Reviewed by Michael Saboff.
603
604         * WebView/WebView.mm:
605         (+[WebView _reportException:inContext:]):
606         - Don't assume we have an Exception object.  Let WebCore::reportException() take
607           care of it.
608
609 2015-06-11  Jon Lee  <jonlee@apple.com>
610
611         Update media controls JS and CSS to use picture-in-picture
612         https://bugs.webkit.org/show_bug.cgi?id=145827
613         <rdar://problem/21311576>
614
615         Reviewed by Dean Jackson.
616
617         * WebCoreSupport/WebSystemInterface.mm:
618         (InitWebCoreSystemInterface): Deleted GetMediaUIImageData.
619
620 2015-06-10  Jon Honeycutt  <jhoneycutt@apple.com>
621
622         Meta refresh preference is not respected on fast path WebView
623         initialization
624
625         <https://bugs.webkit.org/show_bug.cgi?id=145861>
626         <rdar://problem/21309911>
627
628         Reviewed by Brady Eidson.
629
630         * WebView/WebView.mm:
631         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
632         Set the WebCore setting from the WebPreferences preference.
633
634 2015-06-09  Anders Carlsson  <andersca@apple.com>
635
636         Remove more unused SPI methods
637         https://bugs.webkit.org/show_bug.cgi?id=145804
638
639         Reviewed by Simon Fraser.
640
641         * Misc/WebNSURLRequestExtras.h:
642         * Misc/WebNSURLRequestExtras.m:
643         (-[NSURLRequest _web_HTTPReferrer]): Deleted.
644         (-[NSURLRequest _web_HTTPContentType]): Deleted.
645         (-[NSURLRequest _web_isConditionalRequest]): Deleted.
646
647 2015-06-08  Dan Bernstein  <mitz@apple.com>
648
649         Removed WebDragSourceActionAttachment from the WebDragSourceAction enum.
650
651         Rubber-stamped by Anders Carlsson.
652
653         * WebView/WebUIDelegate.h: Removed the value. It was added in r181760 and never used.
654
655 2015-06-08  Chris Dumez  <cdumez@apple.com>
656
657         Access GCController instance via GCController::singleton() instead of a free function
658         https://bugs.webkit.org/show_bug.cgi?id=145776
659
660         Reviewed by Darin Adler.
661
662         Access GCController instance via GCController::singleton() instead of a
663         free function as per coding style and for consistency with other
664         singleton classes in the codebase.
665
666         * Misc/WebCoreStatistics.mm:
667         (+[WebCoreStatistics garbageCollectJavaScriptObjects]):
668         (+[WebCoreStatistics garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging:]):
669         (+[WebCoreStatistics setJavaScriptGarbageCollectorTimerEnabled:]):
670         * WebView/WebView.mm:
671         (+[WebView garbageCollectNow]):
672         (+[WebView discardAllCompiledCode]):
673         (-[WebView _close]):
674
675 2015-06-08  Anders Carlsson  <andersca@apple.com>
676
677         Remove more unused Objective-C methods
678         https://bugs.webkit.org/show_bug.cgi?id=145761
679
680         Reviewed by Geoffrey Garen.
681
682         * Misc/WebNSImageExtras.h:
683         * Misc/WebNSImageExtras.m:
684         (-[NSImage _web_saveAndOpen]): Deleted.
685         * Misc/WebNSViewExtras.h:
686         * Misc/WebNSViewExtras.m:
687         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Deleted.
688         (-[NSView _web_convertRect:toView:]): Deleted.
689
690 2015-06-08  Anders Carlsson  <andersca@apple.com>
691
692         Try to fix the Mavericks build.
693
694         * WebView/WebPDFView.mm:
695         (removeUselessMenuItemSeparators):
696
697 2015-06-07  Anders Carlsson  <andersca@apple.com>
698
699         Remove WebNSArrayExtras
700         https://bugs.webkit.org/show_bug.cgi?id=145747
701
702         Reviewed by Darin Adler.
703
704         * History/WebHistoryItem.mm:
705         (-[WebHistoryItem initFromDictionaryRepresentation:]):
706         * Misc/WebNSArrayExtras.h: Removed.
707         * Misc/WebNSArrayExtras.m: Removed.
708         (-[NSArray _webkit_numberAtIndex:]): Deleted.
709         (-[NSArray _webkit_stringAtIndex:]): Deleted.
710         (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]): Deleted.
711         * WebView/WebPDFView.mm:
712         (removeUselessMenuItemSeparators):
713         (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
714
715 2015-06-08  Dan Bernstein  <mitz@apple.com>
716
717         Fixed the build.
718
719         * WebView/WebView.mm:
720         (+[WebView _setCacheModel:]):
721
722 2015-06-07  Anders Carlsson  <andersca@apple.com>
723
724         Remove WebKitSystemBits
725         https://bugs.webkit.org/show_bug.cgi?id=145746
726
727         Reviewed by Dan Bernstein.
728
729         Fold WebVolumeFreeSize into its only caller and get rid of WebKitSystemBits.
730
731         * Misc/WebKitSystemBits.h: Removed.
732         * Misc/WebKitSystemBits.m: Removed.
733         * WebView/WebPreferences.mm:
734         * WebView/WebView.mm:
735         (+[WebView _setCacheModel:]):
736
737 2015-06-07  Anders Carlsson  <andersca@apple.com>
738
739         Remove another SPI method that hasn't been used since Tiger
740         https://bugs.webkit.org/show_bug.cgi?id=145745
741
742         Reviewed by Dan Bernstein.
743
744         * WebView/WebView.mm:
745         (-[WebView handleAuthenticationForResource:challenge:fromDataSource:]): Deleted.
746         * WebView/WebViewPrivate.h:
747
748 2015-06-07  Anders Carlsson  <andersca@apple.com>
749
750         Remove another unused SPI method
751         https://bugs.webkit.org/show_bug.cgi?id=145743
752
753         Reviewed by Dan Bernstein.
754
755         * WebView/WebView.mm:
756         (+[WebView _pointingHandCursor]): Deleted.
757         * WebView/WebViewPrivate.h:
758
759 2015-06-07  Anders Carlsson  <andersca@apple.com>
760
761         Remove unused SPI
762         https://bugs.webkit.org/show_bug.cgi?id=145742
763
764         Reviewed by Dan Bernstein.
765
766         * WebCoreSupport/WebFrameNetworkingContext.h:
767         * WebCoreSupport/WebFrameNetworkingContext.mm:
768         (WebFrameNetworkingContext::clearPrivateBrowsingSessionCookieStorage): Deleted.
769         * WebView/WebView.mm:
770         (+[WebView _clearPrivateBrowsingSessionCookieStorage]): Deleted.
771         * WebView/WebViewPrivate.h:
772
773 2015-06-06  Dan Bernstein  <mitz@apple.com>
774
775         Restored binary compatibility with shipping Safari.
776
777         Suggested by Anders Carlsson.
778
779         * Misc/WebKitNSStringExtras.mm:
780         (-[NSString _webkit_fixedCarbonPOSIXPath]): Added an implementation that returns self, so
781         that Safari doesn’t crash when trying to call this method.
782
783 2015-06-06  Dan Bernstein  <mitz@apple.com>
784
785         Fixed the build.
786
787         * Plugins/WebBasePluginPackage.mm:
788
789 2015-06-06  Anders Carlsson  <andersca@apple.com>
790
791         Remove support from getting plug-in information from Carbon resources
792         https://bugs.webkit.org/show_bug.cgi?id=145730
793
794         Reviewed by Dan Bernstein.
795
796         No current plug-in versions use this feature, and both Chrome and Mozilla for
797         Mac stopped looking at Carbon resources years ago.
798
799         * Misc/WebKitNSStringExtras.h:
800         * Misc/WebKitNSStringExtras.mm:
801         (+[NSString _web_encodingForResource:]): Deleted.
802         * Plugins/WebBasePluginPackage.mm:
803         * Plugins/WebNetscapePluginPackage.mm:
804         (-[WebNetscapePluginPackage _initWithPath:]):
805         (-[WebNetscapePluginPackage stringForStringListID:andIndex:]): Deleted.
806         (-[WebNetscapePluginPackage getPluginInfoFromResources]): Deleted.
807
808 2015-06-06  Anders Carlsson  <andersca@apple.com>
809
810         Remove now unused category methods
811         https://bugs.webkit.org/show_bug.cgi?id=145729
812
813         Reviewed by Dan Bernstein.
814
815         * Configurations/WebKitLegacy.xcconfig:
816         * Misc/WebKitNSStringExtras.h:
817         * Misc/WebKitNSStringExtras.mm:
818         (-[NSString _webkit_fixedCarbonPOSIXPath]): Deleted.
819         * Misc/WebNSFileManagerExtras.h:
820         * Misc/WebNSFileManagerExtras.mm:
821         (-[NSFileManager _webkit_startupVolumeName]): Deleted.
822
823 2015-06-06  Anders Carlsson  <andersca@apple.com>
824
825         Fix build.
826
827         * WebKit.mac.exp:
828
829 2015-06-06  Anders Carlsson  <andersca@apple.com>
830
831         Stop using _webkit_fixedCarbonPOSIXPath in plug-in code
832         https://bugs.webkit.org/show_bug.cgi?id=145728
833
834         Reviewed by Dan Bernstein.
835
836         This code was put in place to support old plug-ins that would pass Carbon paths to NPAPI functions.
837         WebKit2 never supported this and we've never had any problems so let's just get rid of it.
838
839         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
840         (WebKit::NetscapePluginInstanceProxy::loadURL):
841         * Plugins/WebNetscapePluginView.mm:
842         (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
843
844 2015-06-06  Anders Carlsson  <andersca@apple.com>
845
846         Remove SPI that's no longer used
847         https://bugs.webkit.org/show_bug.cgi?id=145727
848
849         Reviewed by Dan Bernstein.
850
851         * Plugins/WebPluginsPrivate.h: Removed.
852         * Plugins/WebPluginsPrivate.m: Removed.
853
854 2015-06-06  Anders Carlsson  <andersca@apple.com>
855
856         Only allow plug-ins to create custom MIME property lists on older versions of OS X
857         https://bugs.webkit.org/show_bug.cgi?id=145726
858
859         Reviewed by Dan Bernstein.
860
861         * Plugins/WebBasePluginPackage.mm:
862         (-[WebBasePluginPackage getPluginInfoFromPLists]):
863
864 2015-06-05  Mark Lam  <mark.lam@apple.com>
865
866         finally blocks should not set the exception stack trace when re-throwing the exception.
867         https://bugs.webkit.org/show_bug.cgi?id=145525
868
869         Reviewed by Geoffrey Garen.
870
871         * WebView/WebView.mm:
872         (+[WebView _reportException:inContext:]):
873         (WebKitInitializeApplicationCachePathIfNecessary):
874         - Changed to use the new Exception object.
875
876 2015-06-03  Anders Carlsson  <andersca@apple.com>
877
878         Define WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS on iOS
879         https://bugs.webkit.org/show_bug.cgi?id=145615
880         Part of rdar://problem/17380856.
881
882         Reviewed by Dan Bernstein.
883
884         * postprocess-headers.sh:
885
886 2015-06-02  Brady Eidson  <beidson@apple.com>
887
888         WebKit policy delegate should suggest if a navigation should be allowed to open URLs externally.
889         rdar://problem/21025301 and https://bugs.webkit.org/show_bug.cgi?id=145280
890
891         Reviewed by Alex Christensen.
892
893         * Plugins/WebPluginController.mm:
894         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
895         
896         * WebView/WebFrame.mm:
897         (-[WebFrame loadRequest:]):
898         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
899         
900         * WebView/WebPDFView.mm:
901         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
902
903 2015-06-01  Anders Carlsson  <andersca@apple.com>
904
905         WAKScrollView.h cannot be imported standalone
906         https://bugs.webkit.org/show_bug.cgi?id=145529
907
908         Reviewed by Dan Bernstein.
909
910         Don't migrate WAKScrollView.h, it's not used outside of WebKit.
911
912         * MigrateHeaders.make:
913
914 2015-05-29  Anders Carlsson  <andersca@apple.com>
915
916         Make the header replace rule more restrictive and get rid of a special case
917         https://bugs.webkit.org/show_bug.cgi?id=145486
918
919         Reviewed by Ryosuke Niwa.
920
921         We used to not run the header migration script on WAKScrollView.h since we had a rule that would transform
922         "<WebCore" to "<WebKitLegacy" to convert header #imports. However, WAKScrollView.h contains "WAKView <WebCoreFrameScrollView>" 
923         which would get transformed to "WAKView <WebKitLegacyFrameScrollView>".
924         
925         Instead, check for the trailing slash as well and stop special-casing WAKScrollView.h.
926
927         * MigrateHeaders.make:
928
929 2015-05-29  Anders Carlsson  <andersca@apple.com>
930
931         Get rid of WAKViewPrivate.h
932         https://bugs.webkit.org/show_bug.cgi?id=145482
933         rdar://problem/21162149
934
935         Reviewed by Dan Bernstein.
936
937         Remove WAKViewPrivate.h imports.
938
939         * DefaultDelegates/WebDefaultUIDelegate.m:
940         * MigrateHeaders.make:
941         * Misc/WebKitNSStringExtras.mm:
942         * Misc/WebNSViewExtras.m:
943         * WebCoreSupport/WebFrameLoaderClient.mm:
944         * WebView/WebFrame.mm:
945         * WebView/WebFrameView.mm:
946         * WebView/WebHTMLView.mm:
947
948 2015-05-29  Anders Carlsson  <andersca@apple.com>
949
950         WebResourceLoadDelegatePrivate.h cannot be imported standalone (missing WebNSInteger type)
951         https://bugs.webkit.org/show_bug.cgi?id=145476
952         rdar://problem/21162400
953
954         Reviewed by Dan Bernstein.
955
956         Change WebNSInteger to NSInteger.
957
958         * WebView/WebResourceLoadDelegatePrivate.h:
959
960 2015-05-29  Anders Carlsson  <andersca@apple.com>
961
962         WebKit.framework installs or references Mac-only headers on iOS
963         https://bugs.webkit.org/show_bug.cgi?id=145471
964         rdar://problem/21161459
965
966         Reviewed by Dan Bernstein.
967
968         * History/WebURLsWithTitles.h:
969         Add an #if !TARGET_OS_IPHONE guard around the entire header.
970
971         * MigrateHeaders.make:
972         Don't migrate the NPAPI headers on iOS.
973
974 2015-05-28  Matt Rajca  <mrajca@apple.com>
975
976         Add ENABLE_MEDIA_SESSION feature flag (which is off by default).
977         https://bugs.webkit.org/show_bug.cgi?id=145415
978
979         Reviewed by Eric Carlson.
980
981         * Configurations/FeatureDefines.xcconfig:
982
983 2015-05-28  Jon Lee  <jonlee@apple.com>
984
985         Build fix after r184946.
986
987         * WebView/WebPreferences.mm:
988         (-[WebPreferences allowsAirPlayForMediaPlayback]):
989         (-[WebPreferences setAllowsAirPlayForMediaPlayback:]):
990
991 2015-05-19  Jon Honeycutt  <jhoneycutt@apple.com>
992
993         [iOS] When viewing an MJPEG stream as the main resource, only the first
994         frame paints
995
996         <https://bugs.webkit.org/show_bug.cgi?id=145185>
997         <rdar://problem/20124694>
998
999         Reviewed by Darin Adler.
1000
1001         * WebCoreSupport/WebFrameLoaderClient.h:
1002
1003         * WebCoreSupport/WebFrameLoaderClient.mm:
1004         (WebFrameLoaderClient::didReplaceMultipartContent):
1005         Call the FrameView's didReplaceMultipartContent().
1006
1007 2015-05-22  Jon Lee  <jonlee@apple.com>
1008
1009         Fix macros for wireless playback
1010         https://bugs.webkit.org/show_bug.cgi?id=145239
1011         rdar://problem/21049541
1012
1013         Reviewed by Anders Carlsson.
1014
1015         Encompass the logic within ENABLE(WIRELESS_TARGET_PLAYBACK). Update property name.
1016
1017         * WebView/WebPreferenceKeysPrivate.h:
1018         * WebView/WebPreferences.h:
1019         * WebView/WebPreferences.mm:
1020         (+[WebPreferences initialize]): Wrap in ENABLE.
1021         (-[WebPreferences allowsAirPlayForMediaPlayback]): Ditto.
1022         (-[WebPreferences setAllowsAirPlayForMediaPlayback:]): Ditto.
1023         * WebView/WebView.mm:
1024         (-[WebView _preferencesChanged:]): Ditto.
1025
1026 2015-05-27  Dean Jackson  <dino@apple.com>
1027
1028         img.currentSrc problem in strict mode with old picturefill
1029         https://bugs.webkit.org/show_bug.cgi?id=144095
1030         <rdar://problem/21087013>
1031
1032         Reviewed by Simon Fraser.
1033
1034         Add a PICTURE_SIZES flag.
1035
1036         * Configurations/FeatureDefines.xcconfig:
1037
1038 2015-05-26  Dan Bernstein  <mitz@apple.com>
1039
1040         <rdar://problem/21104551> Update build settings
1041
1042         Reviewed by Anders Carlsson.
1043
1044         * Configurations/DebugRelease.xcconfig:
1045         * Configurations/FeatureDefines.xcconfig:
1046         * Configurations/Version.xcconfig:
1047
1048 2015-05-25  Dan Bernstein  <mitz@apple.com>
1049
1050         ASSERT_MAIN_THREAD and DOM_ASSERT_MAIN_THREAD are unnecessary no-ops
1051         https://bugs.webkit.org/show_bug.cgi?id=145372
1052
1053         Reviewed by Sam Weinig.
1054
1055         * Carbon/CarbonWindowAdapter.mm:
1056         (-[CarbonWindowAdapter finalize]): Removed use of ASSERT_MAIN_THREAD.
1057
1058         * Configurations/Base.xcconfig: Removed DISABLE_THREAD_CHECK from DEBUG_DEFINES.
1059
1060         * History/WebHistoryItem.mm:
1061         (-[WebHistoryItem URLString]): Removed use of ASSERT_MAIN_THREAD.
1062         (-[WebHistoryItem originalURLString]): Ditto.
1063         (-[WebHistoryItem title]): Ditto.
1064         (-[WebHistoryItem lastVisitedTimeInterval]): Ditto.
1065         (-[WebHistoryItem isEqual:]): Ditto.
1066         (-[WebHistoryItem description]): Ditto.
1067         (-[WebHistoryItem initFromDictionaryRepresentation:]): Ditto.
1068         (-[WebHistoryItem scrollPoint]): Ditto.
1069
1070         * Misc/WebElementDictionary.mm:
1071         (-[WebElementDictionary finalize]): Ditto.
1072
1073         * Misc/WebIconDatabase.mm:
1074         (-[WebIconDatabase iconForURL:withSize:cache:]): Ditto.
1075         (-[WebIconDatabase iconURLForURL:]): Ditto.
1076         (-[WebIconDatabase defaultIconWithSize:]): Ditto.
1077         (-[WebIconDatabase retainIconForURL:]): Ditto.
1078         (-[WebIconDatabase releaseIconForURL:]): Ditto.
1079         (+[WebIconDatabase delayDatabaseCleanup]): Ditto.
1080         (+[WebIconDatabase allowDatabaseCleanup]): Ditto.
1081         (-[WebIconDatabase removeAllIcons]): Ditto.
1082         (-[WebIconDatabase _iconForFileURL:withSize:]): Ditto.
1083         (webGetNSImage): Ditto.
1084
1085         * Misc/WebKitLogging.h: Removed definition of ASSERT_MAIN_THREAD.
1086
1087         * Plugins/WebBaseNetscapePluginView.mm:
1088         (-[WebBaseNetscapePluginView finalize]): Removed use of ASSERT_MAIN_THREAD.
1089
1090         * Plugins/WebBasePluginPackage.mm:
1091         (-[WebBasePluginPackage finalize]): Ditto.
1092
1093         * Plugins/WebNetscapePluginView.mm:
1094         (-[WebNetscapePluginView finalize]): Ditto.
1095
1096         * WebCoreSupport/WebEditorClient.mm:
1097         (-[WebUndoStep finalize]): Ditto.
1098
1099         * WebView/WebDataSource.mm:
1100         (-[WebDataSource finalize]): Ditto.
1101
1102         * WebView/WebHTMLView.mm:
1103         (-[WebHTMLViewPrivate finalize]): Ditto.
1104         (-[WebHTMLView finalize]): Ditto.
1105         (-[WebHTMLView drawRect:]): Ditto.
1106
1107         * WebView/WebViewData.mm:
1108         (-[WebViewPrivate finalize]): Ditto.
1109
1110 2015-05-23  Dan Bernstein  <mitz@apple.com>
1111
1112         Remove unused definitions of WEBKIT_VERSION_MIN_REQUIRED
1113         https://bugs.webkit.org/show_bug.cgi?id=145345
1114
1115         Reviewed by Sam Weinig.
1116
1117         * Configurations/WebKitLegacy.xcconfig: Also changed to use $(inherited).
1118
1119 2015-05-24  Jeremy Jones  <jeremyj@apple.com>
1120
1121         Register media MIME types as supported by HTML view in WebKit1.
1122         https://bugs.webkit.org/show_bug.cgi?id=145356
1123
1124         Reviewed by Eric Carlson.
1125
1126         WebDataSource and WebFrame view knew about suppotedImageMIMETypes and supportedNonImageMIMETypes,
1127         but not a third category supportedMediaMIMETypes. These are now included along-side 
1128         supportedNonImageMIMETypes.
1129
1130         * WebView/WebDataSource.mm:
1131         (+[WebDataSource _repTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
1132         * WebView/WebFrameView.mm:
1133         (+[WebFrameView _viewTypesAllowImageTypeOmission:]): use supportedMediaMIMETypes.
1134         * WebView/WebHTMLRepresentation.h: declare -supportedMediaMIMETypes
1135         * WebView/WebHTMLRepresentation.mm:
1136         (+[WebHTMLRepresentation supportedMIMETypes]): include supportedMediaMIMETypes
1137         (+[WebHTMLRepresentation supportedMediaMIMETypes]): added
1138         * WebView/WebHTMLView.mm:
1139         (+[WebHTMLView supportedMediaMIMETypes]): added
1140         * WebView/WebHTMLViewPrivate.h: declare -supportedMediaMIMETypes
1141
1142 2015-05-22  Jon Lee  <jonlee@apple.com>
1143
1144         Rename MediaPlaybackAllowsInline
1145         https://bugs.webkit.org/show_bug.cgi?id=145315
1146
1147         Reviewed by Eric Carlson.
1148
1149         Our API uses allowsInlineMediaPlayback. Our symbols should reflect the same.
1150
1151         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its
1152         value, for backwards compatibility.
1153         * WebView/WebPreferences.mm:
1154         (+[WebPreferences initialize]): Update the symbol.
1155         (-[WebPreferences mediaPlaybackAllowsInline]): Ditto. This setting will not
1156         be renamed in a future patch.
1157         (-[WebPreferences setMediaPlaybackAllowsInline:]): Ditto.
1158         * WebView/WebView.mm:
1159         (-[WebView _preferencesChanged:]): Update the call to settings.
1160
1161 2015-05-22  Jon Lee  <jonlee@apple.com>
1162
1163         Rename MediaPlaybackAllowsAirPlay
1164         https://bugs.webkit.org/show_bug.cgi?id=145316
1165
1166         Reviewed by Eric Carlson.
1167
1168         In preparation for an API rename, update internal symbols from mediaPlaybackAllowsAirPlay
1169         to allowsAirPlayForMediaPlayback.
1170
1171         * WebView/WebPreferenceKeysPrivate.h: Update the name but keep its value, for backwards
1172         compatibility.
1173         * WebView/WebPreferences.mm:
1174         (+[WebPreferences initialize]): Update to reference the new key name.
1175         (-[WebPreferences mediaPlaybackAllowsAirPlay]): Ditto. This API will not change in a future
1176         patch.
1177         (-[WebPreferences setMediaPlaybackAllowsAirPlay:]): Ditto.
1178         * WebView/WebView.mm:
1179         (-[WebView _preferencesChanged:]): Update the call to settings.
1180
1181 2015-05-22  Jon Lee  <jonlee@apple.com>
1182
1183         Rename MediaPlaybackRequiresUserGesture
1184         https://bugs.webkit.org/show_bug.cgi?id=145314
1185
1186         Reviewed by Anders Carlsson.
1187
1188         In preparation for an API rename, update internal symbols from mediaPlaybackRequiresUserGesture
1189         to requiresUserGestureForMediaPlayback.
1190
1191         No changes are being made to the API in this patch.
1192
1193         * WebView/WebPreferenceKeysPrivate.h: Update the name of the key, but not its value, for backwards
1194         compatibility.
1195         * WebView/WebPreferences.mm:
1196         (+[WebPreferences initialize]): Update the symbol.
1197         (-[WebPreferences mediaPlaybackRequiresUserGesture]): Ditto. This setting will not be renamed
1198         in a future patch.
1199         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]): Ditto.
1200         * WebView/WebView.mm:
1201         (-[WebView _preferencesChanged:]): Update the call to settings.
1202
1203 2015-05-22  Tim Horton  <timothy_horton@apple.com>
1204
1205         Remove action menu support
1206         https://bugs.webkit.org/show_bug.cgi?id=145305
1207         <rdar://problem/21070771>
1208
1209         Reviewed by Anders Carlsson.
1210
1211         * Configurations/WebKitLegacy.xcconfig:
1212         * WebView/WebActionMenuController.h: Removed.
1213         * WebView/WebActionMenuController.mm: Removed.
1214         * WebView/WebHTMLView.mm:
1215         (-[WebHTMLView otherMouseDown:]):
1216         (-[WebHTMLView scrollWheel:scrollWheel:]): Deleted.
1217         (-[WebHTMLView mouseDown:mouseDown:]): Deleted.
1218         * WebView/WebUIDelegatePrivate.h:
1219         * WebView/WebView.mm:
1220         (-[WebView _commonInitializationWithFrameName:groupName:]): Deleted.
1221         (-[WebView _close]): Deleted.
1222         (-[WebView prepareForMenu:withEvent:]): Deleted.
1223         (-[WebView willOpenMenu:withEvent:]): Deleted.
1224         (-[WebView didCloseMenu:withEvent:]): Deleted.
1225         (-[WebView _actionMenuController]): Deleted.
1226         * WebView/WebViewData.h:
1227         * WebView/WebViewData.mm:
1228         (-[WebViewPrivate dealloc]): Deleted.
1229         * WebView/WebViewInternal.h:
1230         Remove everything, except some enums that clients still refer to.
1231
1232 2015-05-22  Brady Eidson  <beidson@apple.com>
1233
1234         Rework how the ResourceRequest user initiated property key is used.
1235         Followup to https://bugs.webkit.org/show_bug.cgi?id=145281
1236
1237         Reviewed by Dan Bernstein.
1238
1239         * WebCoreSupport/WebSystemInterface.mm:
1240         (WKResourceRequestIsUserInitiatedKey): Deleted.
1241         (InitWebCoreSystemInterface): Deleted.
1242
1243 2015-05-21  Brady Eidson  <beidson@apple.com>
1244
1245         Add an "initiated by user gesture" flag to ResourceRequest.
1246         https://bugs.webkit.org/show_bug.cgi?id=145281
1247
1248         Reviewed by Alex Christensen.
1249
1250         * WebCoreSupport/WebSystemInterface.mm:
1251         (WKResourceRequestIsUserInitiatedKey):
1252         (InitWebCoreSystemInterface):
1253
1254 2015-05-20  Anders Carlsson  <andersca@apple.com>
1255
1256         Fix build.
1257
1258         * WebView/WebViewInternal.h:
1259
1260 2015-05-20  Alex Christensen  <achristensen@webkit.org>
1261
1262         Unreviewed build fix; LocalizedStrings.h is in WebCore.
1263
1264         * WebView/WebActionMenuController.mm:
1265
1266 2015-05-20  Jer Noble  <jer.noble@apple.com>
1267
1268         Unreviewed build fix; WebActionMenuController.mm should directly include LocalizedStrings.h
1269
1270         * WebView/WebActionMenuController.mm:
1271
1272 2015-05-19  Jer Noble  <jer.noble@apple.com>
1273
1274         Touching HTMLMediaElement.h or MediaPlayer.h causes a world rebuild.
1275         https://bugs.webkit.org/show_bug.cgi?id=145193
1276
1277         Reviewed by Eric Carlson.
1278
1279         Use HTMLMediaElementEnums instead of HTMLMediaElement.
1280
1281         * WebCoreSupport/WebChromeClient.h:
1282         * WebCoreSupport/WebChromeClient.mm:
1283         (WebChromeClient::enterVideoFullscreenForVideoElement): HTMLMediaElement -> HTMLMediaElementEnums.
1284         * WebView/WebView.mm:
1285         (-[WebView _enterVideoFullscreenForVideoElement:mode:]): Ditto.
1286         * WebView/WebViewInternal.h:
1287
1288 2015-05-19  Michael Saboff  <msaboff@apple.com>
1289
1290         REGRESSION(183787): JIT is enabled for all builds
1291         https://bugs.webkit.org/show_bug.cgi?id=145179
1292
1293         Reviewed by Geoffrey Garen.
1294
1295         Eliminated the setting of ENABLE_JIT, as wtf/Platform.h has appropriate logic to
1296         set it depending on OS and CPU type.
1297
1298         * Configurations/FeatureDefines.xcconfig:
1299
1300 2015-05-19  Brady Eidson  <beidson@apple.com>
1301
1302         X-Frame-Options headers not respected when loading from application cache.
1303         <rdar://problem/14877623> and https://bugs.webkit.org/show_bug.cgi?id=131800
1304
1305         Reviewed by Alexey Proskuryakov.
1306
1307         * WebView/WebFrame.mm:
1308         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1309
1310 2015-05-18  Skachkov Alexandr  <gskachkov@gmail.com>
1311
1312         [ES6] Arrow function syntax. Feature flag for arrow function
1313         https://bugs.webkit.org/show_bug.cgi?id=145108
1314
1315         Reviewed by Ryosuke Niwa.
1316
1317         Added feature flag ENABLE_ES6_ARROWFUNCTION_SYNTAX for arrow function
1318
1319         * Configurations/FeatureDefines.xcconfig:
1320
1321 2015-05-15  Jeremy Jones  <jeremyj@apple.com>
1322
1323         Limit alternate fullscreen with linked on or after.
1324         https://bugs.webkit.org/show_bug.cgi?id=144894
1325
1326         Reviewed by Dean Jackson.
1327
1328         * WebView/WebView.mm:
1329         (shouldAllowAlternateFullscreen): Added.
1330         (-[WebView _preferencesChanged:]):
1331
1332 2015-05-12  Simon Fraser  <simon.fraser@apple.com>
1333
1334         Turn antialiased font dilation off by default
1335         https://bugs.webkit.org/show_bug.cgi?id=144940
1336         rdar://problem/20923031
1337
1338         Reviewed by Sam Weinig.
1339         
1340         Turn antialised font dilation off by default.
1341
1342         * WebView/WebPreferences.mm:
1343         (+[WebPreferences initialize]):
1344
1345 2015-05-11  Daniel Bates  <dabates@apple.com>
1346
1347         [iOS] Close all open databases in expiration handler of process assertion
1348         https://bugs.webkit.org/show_bug.cgi?id=144661
1349         <rdar://problem/20845052>
1350
1351         Reviewed by Darin Adler.
1352
1353         For Legacy WebKit, close all open databases when the process assertion expiration
1354         handler is called.
1355
1356         * Storage/WebDatabaseManager.mm:
1357         (+[WebDatabaseManager startBackgroundTask]): Call DatabaseTracker::tracker().closeAllDatabases()
1358         in the expiration handler to close all open databases. As a side effect of closing
1359         a database all in-progress database transactions are interrupted.
1360
1361 2015-05-10  Sungmann Cho  <sungmann.cho@navercorp.com>
1362
1363         Get rid of the public item accessors in BackForwardClient
1364         https://bugs.webkit.org/show_bug.cgi?id=144827
1365
1366         Reviewed by Darin Adler.
1367
1368         Remove backItem(), currentItem(), and forwardItem() from BackForwardClient.
1369         We can still use these functionalities through BackForwardController.
1370
1371         No new tests, no behavior change.
1372
1373         * WebView/WebView.mm:
1374         (-[WebView _loadBackForwardListFromOtherView:]):
1375
1376 2015-05-09  Yoav Weiss  <yoav@yoav.ws>
1377
1378         Remove the PICTURE_SIZES build flag
1379         https://bugs.webkit.org/show_bug.cgi?id=144679
1380
1381         Reviewed by Benjamin Poulain.
1382
1383         Removed the PICTURE_SIZES build time flag.
1384
1385         * Configurations/FeatureDefines.xcconfig:
1386
1387 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
1388
1389         Remove convenience constructors for TextRun
1390         https://bugs.webkit.org/show_bug.cgi?id=144752
1391
1392         These convenience constructors are unnecessary. Moving the code that makes the StringView
1393         back to the call site will also help us make things more elegant in future refactoring.
1394
1395         Reviewed by Darin Adler.
1396
1397         No new tests because there is no behavior change.
1398
1399         * Misc/WebKitNSStringExtras.mm:
1400         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
1401         (-[NSString _web_widthWithFont:]):
1402
1403 2015-05-08  Commit Queue  <commit-queue@webkit.org>
1404
1405         Unreviewed, rolling out r183996.
1406         https://bugs.webkit.org/show_bug.cgi?id=144806
1407
1408         ASan detected use-after free (Requested by ap on #webkit).
1409
1410         Reverted changeset:
1411
1412         "Remove convenience constructors for TextRun"
1413         https://bugs.webkit.org/show_bug.cgi?id=144752
1414         http://trac.webkit.org/changeset/183996
1415
1416 2015-05-08  Myles C. Maxfield  <mmaxfield@apple.com>
1417
1418         Remove convenience constructors for TextRun
1419         https://bugs.webkit.org/show_bug.cgi?id=144752
1420
1421         These convenience constructors are unnecessary. Moving the code that makes the StringView
1422         back to the call site will also help us make things more elegant in future refactoring.
1423
1424         Reviewed by Darin Adler.
1425
1426         No new tests because there is no behavior change.
1427
1428         * Misc/WebKitNSStringExtras.mm:
1429         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
1430         (-[NSString _web_widthWithFont:]):
1431
1432 2015-05-07  Anders Carlsson  <andersca@apple.com>
1433
1434         Build fixes.
1435
1436         * Misc/WebNSPasteboardExtras.mm:
1437         (-[NSPasteboard _web_writeFileWrapperAsRTFDAttachment:]):
1438         * WebView/WebHTMLView.mm:
1439         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1440         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
1441         * WebView/WebPDFView.mm:
1442         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
1443         Pass empty arrays and dictionaries instead of nil.
1444
1445         * WebView/WebView.mm:
1446         (-[WebView _commonInitializationWithFrameName:groupName:]):
1447         Use the regular init method.
1448
1449 2015-05-07  Said Abou-Hallawa  <sabouhallawa@apple.com>
1450
1451         Fix iPhone 6 iOS simulator Build.
1452         following http://trac.webkit.org/changeset/183954.
1453
1454         Reviewed by Daniel Bates.
1455
1456         * WebView/WebHTMLView.mm:
1457         (-[WebHTMLView pressureChangeWithEvent:]):
1458
1459 2015-05-07  Timothy Horton  <timothy_horton@apple.com>
1460
1461         Occasional null deref in WebImmediateActionController
1462         https://bugs.webkit.org/show_bug.cgi?id=144772
1463         <rdar://problem/20811128>
1464
1465         Reviewed by Beth Dakin.
1466
1467         * WebView/WebImmediateActionController.mm:
1468         (-[WebImmediateActionController _defaultAnimationController]):
1469         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1470         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1471         Null-check TextIndicators before dereferencing.
1472
1473 2015-05-07  Beth Dakin  <bdakin@apple.com>
1474
1475         New force-related DOM events should fire in WK1 views
1476         https://bugs.webkit.org/show_bug.cgi?id=144663
1477         -and corresponding-
1478         rdar://problem/20281886
1479
1480         Reviewed by Sam Weinig.
1481
1482         Pass the lastPressureEvent to WebCore.
1483         * WebView/WebHTMLView.mm:
1484         (-[WebHTMLView _updateMouseoverWithEvent:]):
1485         (-[WebHTMLView rightMouseUp:]):
1486         (-[WebHTMLView menuForEvent:]):
1487         (-[WebHTMLView acceptsFirstMouse:]):
1488         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
1489         (-[WebHTMLView mouseDown:mouseDown:]):
1490         (-[WebHTMLView mouseDragged:]):
1491         (-[WebHTMLView mouseUp:mouseUp:]):
1492
1493         New NSRespnder method for pressure changes.
1494         (-[WebHTMLView pressureChangeWithEvent:]):
1495
1496         New BOOL _contentPreventsDefault tracks whether the HitTestResult prevented the 
1497         default action. Get rid of willHandleMouseDown; now that the gesture recognizer 
1498         sets delaysPrimaryMouseButtonEvents to NO, we don’t need this.
1499         * WebView/WebImmediateActionController.h:
1500         * WebView/WebImmediateActionController.mm:
1501         (-[WebImmediateActionController _clearImmediateActionState]):
1502
1503         Set all of the immediateActionStages on EventHandler. This is critical to keep 
1504         link navigation happening at the right time now that 
1505         delaysPrimaryMouseButtonEvents is set to NO.
1506         (-[WebImmediateActionController performHitTestAtPoint:]):
1507         (-[WebImmediateActionController immediateActionRecognizerDidUpdateAnimation:]):
1508         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
1509         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
1510
1511         Use a dummy animation controller if the content prevents default.
1512         (-[WebImmediateActionController _defaultAnimationController]):
1513         (-[WebImmediateActionController _updateImmediateActionItem]):
1514         (-[WebImmediateActionController webView:willHandleMouseDown:]): Deleted.
1515
1516         Set delaysPrimaryMouseButtonEvents to NO so that we get existing mouse events when 
1517         we expect to.
1518         * WebView/WebView.mm:
1519         (-[WebView _commonInitializationWithFrameName:groupName:]):
1520
1521         Cache the most recent pressure event so that we can send it to WebCore for all of 
1522         the mouse events.
1523         (-[WebView _pressureEvent]):
1524         (-[WebView _setPressureEvent:]):
1525         * WebView/WebViewData.h:
1526         * WebView/WebViewData.mm:
1527         (-[WebViewPrivate dealloc]):
1528         * WebView/WebViewInternal.h:
1529
1530 2015-05-05  Myles C. Maxfield  <mmaxfield@apple.com>
1531
1532         Revert "Introducing the Platform Abstraction Layer (PAL)"
1533         https://bugs.webkit.org/show_bug.cgi?id=144751
1534
1535         Unreviewed.
1536
1537         PAL should be a new target inside WebCore, rather than a top-level folder.
1538
1539         * Configurations/FeatureDefines.xcconfig: Updated
1540
1541 2015-05-07  Dan Bernstein  <mitz@apple.com>
1542
1543         <rdar://problem/19317140> [Xcode] Remove usage of AspenFamily.xcconfig in Source/
1544         https://bugs.webkit.org/show_bug.cgi?id=144727
1545
1546         Reviewed by Darin Adler.
1547
1548         * Configurations/Base.xcconfig: Don’t include AspenFamily.xcconfig.
1549         * Configurations/WebKitLegacy.xcconfig: Define INSTALL_PATH in terms of
1550         INSTALL_PATH_PREFIX and INSTALL_PATH_ACTUAL, and define INSTALL_PATH_PREFIX for the iOS 8.x
1551         Simulator.
1552
1553 2015-04-02  Myles C. Maxfield  <mmaxfield@apple.com>
1554
1555         Introducing the Platform Abstraction Layer (PAL)
1556         https://bugs.webkit.org/show_bug.cgi?id=143358
1557
1558         Reviewed by Simon Fraser.
1559
1560         * Configurations/FeatureDefines.xcconfig: Updated
1561
1562 2015-05-06  Antti Koivisto  <antti@apple.com>
1563
1564         REGRESSION (r183467): Unable to start downloads in private browsing mode
1565         https://bugs.webkit.org/show_bug.cgi?id=144533
1566
1567         Reviewed by Darin Adler.
1568
1569         * WebCoreSupport/WebFrameLoaderClient.mm:
1570         (WebFrameLoaderClient::dispatchWillSendRequest):
1571
1572             Use updateFromDelegatePreservingOldProperties (like WK2) instead of doing the same thing manually.
1573
1574 2015-05-06  Ryosuke Niwa  <rniwa@webkit.org>
1575
1576         Toggling underline on font panel removes strike through
1577         https://bugs.webkit.org/show_bug.cgi?id=144670
1578         <rdar://problem/3790443>
1579
1580         Reviewed by Darin Adler.
1581
1582         Use setStrikeThroughChange and setUnderlineChange added in r183770 to toggle underline and strike through.
1583
1584         * WebView/WebHTMLView.mm:
1585         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
1586         (-[WebHTMLView _styleForAttributeChange:]):
1587         (-[WebHTMLView changeAttributes:]):
1588
1589 2015-05-04  Ryosuke Niwa  <rniwa@webkit.org>
1590
1591         Toggling underline or strike through affects each other
1592         https://bugs.webkit.org/show_bug.cgi?id=27818
1593
1594         Reviewed by Darin Adler.
1595
1596         * WebView/WebFrame.mm:
1597         (-[WebFrame _setTypingStyle:withUndoAction:]):
1598
1599 2015-05-01  Martin Robinson  <mrobinson@igalia.com>
1600
1601         USE(...) macro should expect unprefixed variables
1602         https://bugs.webkit.org/show_bug.cgi?id=144454
1603
1604         Reviewed by Daniel Bates.
1605
1606         * Misc/WebDownload.h: Replace all occurrences WTF_USE with USE.
1607
1608 2015-05-01  Brady Eidson  <beidson@apple.com>
1609
1610         Add API to disable meta refreshes.
1611         <rdar://problem/20333198> and https://bugs.webkit.org/show_bug.cgi?id=144269
1612
1613         Reviewed by Alexey Proskuryakov.
1614
1615         Add a preference to enable/disable meta refreshes, enabled by default.
1616
1617         * WebView/WebPreferenceKeysPrivate.h:
1618         * WebView/WebPreferences.mm:
1619         (+[WebPreferences initialize]):
1620         (-[WebPreferences setMetaRefreshEnabled:]):
1621         (-[WebPreferences metaRefreshEnabled]):
1622         * WebView/WebPreferencesPrivate.h:
1623         * WebView/WebView.mm:
1624         (-[WebView _preferencesChanged:]):
1625
1626 2015-04-30  Jon Davis  <jond@apple.com>
1627
1628         Web Inspector: console should show an icon for console.info() messages
1629         https://bugs.webkit.org/show_bug.cgi?id=18530
1630
1631         Reviewed by Timothy Hatcher.
1632
1633         * WebCoreSupport/WebChromeClient.mm:
1634         (stringForMessageLevel):
1635         * WebView/WebUIDelegatePrivate.h:
1636
1637 2015-04-29  Myles C. Maxfield  <mmaxfield@apple.com>
1638
1639         [OS X] Use CTFontCreateForCSS instead of doing font search ourselves
1640         https://bugs.webkit.org/show_bug.cgi?id=132159
1641
1642         Reviewed by Darin Adler.
1643
1644         Add SPI to set the font whitelist.
1645
1646         * WebView/WebView.mm:
1647         (+[WebView _setFontWhitelist:]):
1648         * WebView/WebViewPrivate.h:
1649
1650 2015-04-28  Timothy Horton  <timothy_horton@apple.com>
1651
1652         [TextIndicator] Yellow highlight takes too long to fade out on scroll
1653         https://bugs.webkit.org/show_bug.cgi?id=144358
1654         <rdar://problem/19451011>
1655
1656         Reviewed by Beth Dakin.
1657
1658         * WebView/WebActionMenuController.mm:
1659         (-[WebActionMenuController _showTextIndicator]):
1660         * WebView/WebHTMLView.mm:
1661         (-[WebHTMLView quickLookWithEvent:]):
1662         * WebView/WebImmediateActionController.mm:
1663         (-[WebImmediateActionController _defaultAnimationController]):
1664         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1665         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1666         Pull _clearTextIndicatorWithAnimation out, make it avoid using a dismissal animation
1667         if we're called from didHandleScrollWheel.
1668
1669         * WebView/WebView.mm:
1670         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1671         (-[WebView _setTextIndicator:]):
1672         (-[WebView _setTextIndicator:withLifetime:]):
1673         (-[WebView _clearTextIndicator]):
1674         (-[WebView _showDictionaryLookupPopup:]):
1675         (-[WebView _dictionaryLookupPopoverWillClose:]):
1676         (-[WebView _setTextIndicator:fadeOut:]): Deleted.
1677         * WebView/WebViewInternal.h:
1678         Make _setTextIndicator take a reference.
1679         Add a variant of _setTextIndicator that takes a Lifetime.
1680         Make _clearTextIndicatorWithAnimation take a DismissalAnimation.
1681
1682 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
1683
1684         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
1685         https://bugs.webkit.org/show_bug.cgi?id=144304
1686
1687         Reviewed by Geoffrey Garen.
1688
1689         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
1690
1691         * Configurations/FeatureDefines.xcconfig:
1692
1693 2015-04-28  Commit Queue  <commit-queue@webkit.org>
1694
1695         Unreviewed, rolling out r183514.
1696         https://bugs.webkit.org/show_bug.cgi?id=144359
1697
1698         It broke cloop test bots (Requested by mcatanzaro on #webkit).
1699
1700         Reverted changeset:
1701
1702         "Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT"
1703         https://bugs.webkit.org/show_bug.cgi?id=144304
1704         http://trac.webkit.org/changeset/183514
1705
1706 2015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
1707
1708         Fully replace ENABLE_LLINT_C_LOOP with ENABLE_JIT
1709         https://bugs.webkit.org/show_bug.cgi?id=144304
1710
1711         Reviewed by Geoffrey Garen.
1712
1713         Define ENABLE_JIT, enabled by default, instead of ENABLE_LLINT_C_LOOP, disabled by default.
1714
1715         * Configurations/FeatureDefines.xcconfig:
1716
1717 2015-04-28  Joseph Pecoraro  <pecoraro@apple.com>
1718
1719         Fix common typo "targetting" => "targeting"
1720         https://bugs.webkit.org/show_bug.cgi?id=144349
1721
1722         Reviewed by Daniel Bates.
1723
1724         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1725         (WebKit::NetscapePluginInstanceProxy::loadRequest):
1726         * Plugins/WebNetscapePluginView.mm:
1727         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1728         * WebView/WebPolicyDelegate.h:
1729
1730 2015-04-28  Brady Eidson  <beidson@apple.com>
1731
1732         Consolidate most "frame load" arguments into FrameLoadRequest.
1733         https://bugs.webkit.org/show_bug.cgi?id=144276
1734
1735         Reviewed by Alexey Proskuryakov.
1736
1737         * WebView/WebPDFView.mm:
1738         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1739
1740 2015-04-27  Dan Bernstein  <mitz@apple.com>
1741
1742         <rdar://problem/20721931> REGRESSION (r178753): All legacy framework headers are missing availability annotations
1743         https://bugs.webkit.org/show_bug.cgi?id=144311
1744
1745         Reviewed by Adele Peterson.
1746
1747         * postprocess-headers.sh: Changed “macsox” to “macosx”.
1748
1749 2015-04-27  Brady Eidson  <beidson@apple.com>
1750
1751         Make 'enum NavigationType' be an enum class
1752         https://bugs.webkit.org/show_bug.cgi?id=144270
1753
1754         Reviewed by Alex Christensen.
1755
1756         * WebCoreSupport/WebFrameLoaderClient.mm:
1757         (WebFrameLoaderClient::actionDictionary):
1758
1759 2015-04-27  Brent Fulgham  <bfulgham@apple.com>
1760
1761         REGRESSION(r182879): Images and video can no longer be downloaded
1762         https://bugs.webkit.org/show_bug.cgi?id=144267
1763         <rdar://problem/20702844>
1764
1765         Reviewed by Simon Fraser.
1766
1767         * WebView/WebActionMenuController.mm:
1768         (-[WebActionMenuController _createActionMenuItemForTag:]): Check for
1769         "!WebCore::protocolIs(..., "file")" for image and media downloads.
1770
1771 2015-04-26  Yusuke Suzuki  <utatane.tea@gmail.com>
1772
1773         [ES6] Implement ES6 template literals
1774         https://bugs.webkit.org/show_bug.cgi?id=142691
1775
1776         Reviewed by Darin Adler.
1777
1778         Add ENABLE_ES6_TEMPLATE_LITERAL_SYNTAX compile time flag.
1779
1780         * Configurations/FeatureDefines.xcconfig:
1781
1782 2015-04-26  Doug Russell  <d_russell@apple.com>
1783
1784         AX: richer text change notifications (142719)
1785         https://bugs.webkit.org/show_bug.cgi?id=142719
1786
1787         Reviewed by Darin Adler.
1788
1789         Richer accessibility value change notifications. Introduce AXTextEditType,
1790         postTextStateChangeNotification and postTextReplacementNotification to give assistive
1791         tech apps more reliable context for responding to changes in web content. Also implement
1792         a mechanism to post value changes in password form fields in coalesced ticks to thwart
1793         analyzing the cadence of changes.
1794
1795         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent,
1796         and an overload of postTextReplacementNotification to give assistive tech apps more
1797         reliable context for responding to changes in web content selection. Also block posting
1798         selection changes on password fields.
1799
1800         * WebCoreSupport/WebEditorClient.mm:
1801         (undoNameForEditAction):
1802
1803 2015-04-24  Timothy Hatcher  <timothy@apple.com>
1804
1805         Web Inspector: Remove native window dock controls
1806         https://bugs.webkit.org/show_bug.cgi?id=144184
1807
1808         Reviewed by Joseph Pecoraro.
1809
1810         * Resources/Dock.pdf: Removed.
1811         * Resources/DockLegacy.pdf: Removed.
1812         * WebCoreSupport/WebInspectorClient.mm:
1813         (-[WebInspectorWindowController window]):
1814         (-[WebInspectorWindowController setDockingUnavailable:]):
1815
1816 2015-04-25  Martin Robinson  <mrobinson@igalia.com>
1817
1818         Rename ENABLE_3D_RENDERING to ENABLE_3D_TRANSFORMS
1819         https://bugs.webkit.org/show_bug.cgi?id=144182
1820
1821         Reviewed by Simon Fraser.
1822
1823         * Configurations/FeatureDefines.xcconfig: Replace all instances of 3D_RENDERING with 3D_TRANSFORMS.
1824
1825 2015-04-24  Commit Queue  <commit-queue@webkit.org>
1826
1827         Unreviewed, rolling out r183266.
1828         https://bugs.webkit.org/show_bug.cgi?id=144164
1829
1830         Broke 32-bit build and a test. (Requested by ap on #webkit).
1831
1832         Reverted changeset:
1833
1834         "AX: richer text change notifications (142719)"
1835         https://bugs.webkit.org/show_bug.cgi?id=142719
1836         http://trac.webkit.org/changeset/183266
1837
1838 2015-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
1839
1840         [Cocoa] Start cleaning up FontPlatformData
1841         https://bugs.webkit.org/show_bug.cgi?id=144133
1842
1843         Reviewed by Enrica Casucci.
1844
1845         Receive casts which have been hoisted from the deleted FontPlatformData constructor.
1846
1847         * Misc/WebKitNSStringExtras.mm:
1848         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Receive cast which has
1849         been hoisted from the deleted FontPlatformData constructor.
1850         (-[NSString _web_widthWithFont:]): Ditto.
1851         * Misc/WebStringTruncator.mm:
1852         (fontFromNSFont): Ditto.
1853
1854 2015-04-24  Doug Russell  <d_russell@apple.com>
1855
1856         AX: richer text change notifications (142719)
1857         https://bugs.webkit.org/show_bug.cgi?id=142719
1858
1859         Reviewed by Darin Adler.
1860
1861         Richer accessibility value change notifications. Introduce AXTextEditType, postTextStateChangeNotification and postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content. Also implement a mechanism to post value changes in password form fields in coalesced ticks to thwart analyzing the cadence of changes.
1862
1863         Richer accessibility selection change notifications. Introduce AXTextStateChangeIntent, and an overload of postTextReplacementNotification to give assistive tech apps more reliable context for responding to changes in web content selection. Also block posting selection changes on password fields.
1864
1865         * WebCoreSupport/WebEditorClient.mm:
1866         (undoNameForEditAction):
1867
1868 2015-04-23  Jer Noble  <jer.noble@apple.com>
1869
1870         [Mac] Disable QTKit by default on future OS X.
1871         https://bugs.webkit.org/show_bug.cgi?id=144082
1872
1873         Reviewed by Darin Adler.
1874
1875         Default WebKitQTKitEnabledPreferenceKey to NO.
1876
1877         * WebView/WebPreferences.mm:
1878         (+[WebPreferences initialize]):
1879
1880 2015-04-23  Andreas Kling  <akling@apple.com>
1881
1882         There should only be one way to get the system memory size.
1883         <https://webkit.org/b/144081>
1884
1885         Reviewed by Antti Koivisto.
1886
1887         * Misc/WebKitSystemBits.h:
1888         * Misc/WebKitSystemBits.m:
1889         (WebMemorySize): Deleted.
1890         * WebView/WebView.mm:
1891         (+[WebView _setCacheModel:]):
1892         (roundUpToPowerOf2): Deleted.
1893
1894 2015-04-22  Darin Adler  <darin@apple.com>
1895
1896         Remove OwnPtr and PassOwnPtr use from WebKit/cf, WebKit/mac, and WebKit2
1897         https://bugs.webkit.org/show_bug.cgi?id=143943
1898
1899         Reviewed by Anders Carlsson.
1900
1901         * Plugins/Hosted/ProxyInstance.h: Removed unneeded include.
1902         * Plugins/WebBaseNetscapePluginView.h: Ditto.
1903
1904         * Plugins/WebNetscapePluginEventHandler.h: Use unique_ptr instead of
1905         PassOwnPtr for the create function. Also tweaked formatting and removed
1906         unneeded forward declaration of CGRect.
1907         * Plugins/WebNetscapePluginEventHandler.mm:
1908         (WebNetscapePluginEventHandler::create): Changed to use unique_ptr and
1909         make_unique.
1910
1911         * Plugins/WebNetscapePluginView.h: Use unique_ptr instead of OwnPtr for
1912         the _eventHandler field.
1913         * Plugins/WebNetscapePluginView.mm:
1914         (-[WebNetscapePluginView destroyPlugin]): Changed code to work with unique_ptr.
1915
1916         * WebCoreSupport/WebUserMediaClient.mm: Removed unneeded include.
1917
1918         * WebView/WebDeviceOrientationProviderMock.mm: Changed to use make_unique.
1919         * WebView/WebDeviceOrientationProviderMockInternal.h: Changed to use unique_ptr.
1920
1921         * WebView/WebFrame.mm:
1922         (vectorForDictationPhrasesArray): Changed to return Vector<Vector<String>> and
1923         not a PassOwnPtr. Also rewrote to be much simpler, although there is still a
1924         pre-existing problem here where this could put empty vectors into the result,
1925         and I'm pretty sure the client never expects any of the Vector<String> to be empty.
1926         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1927         Rewrote logic to involve WebCore types a bit less; old code was round tripping
1928         things through WebCore::URL for no obvious reason.
1929
1930         * WebView/WebFrameInternal.h: Changed vectorForDictationPhrasesArray to return
1931         a Vector<Vector<String>> and not a PassOwnPtr.
1932
1933         * WebView/WebFullScreenController.h: Removed unneeded include.
1934
1935         * WebView/WebViewData.h: Changed m_alternativeTextUIController to be a
1936         m_alternativeTextUIController.
1937         * WebView/WebViewData.mm:
1938         (-[WebViewPrivate init]): Use make_unique to initialize m_alternativeTextUIController.
1939
1940 2015-04-22  Brent Fulgham  <bfulgham@apple.com>
1941
1942         VisibleSelection should only accept Range by reference
1943         https://bugs.webkit.org/show_bug.cgi?id=144047
1944
1945         Reviewed by Tim Horton.
1946
1947         Update all uses of VisibleSelection to pass a Range reference instead
1948         of a Range pointer.
1949
1950         * WebCoreSupport/WebContextMenuClient.mm:
1951         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
1952         * WebView/WebFrame.mm:
1953         (-[WebFrame _selectNSRange:]):
1954
1955 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
1956
1957         [Mac] Device picker menu is positioned incorrectly in WK1
1958         https://bugs.webkit.org/show_bug.cgi?id=144049
1959         <rdar://problem/20493101>
1960
1961         Reviewed by Dean Jackson.
1962
1963         * WebView/WebView.mm:
1964         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]): Mouse location is already in
1965             window coordinates so don't call convertRect:toView:nil.
1966
1967 2015-04-21  Brent Fulgham  <bfulgham@apple.com>
1968
1969         Extend action menus to support PDF
1970         https://bugs.webkit.org/show_bug.cgi?id=143895
1971         <rdar://problem/19003333>
1972
1973         Reviewed by Tim Horton.
1974
1975         Prevent a crash when someone attempts to invoke an action menu on a PDF hosted
1976         in a WK1 view.
1977
1978         * WebView/WebActionMenuController.mm:
1979         (-[WebActionMenuController performHitTestAtPoint:]): Handle WebPDFView as well as
1980         the WebHTMLView case.
1981         * WebView/WebDocument.h:
1982         * WebView/WebHTMLView.h:
1983         * WebView/WebHTMLView.mm:
1984         (-[WebHTMLView _frame]):
1985         * WebView/WebHTMLViewInternal.h:
1986         * WebView/WebPDFView.h:
1987         * WebView/WebPDFView.mm:
1988         (-[WebPDFView _frame]): Added.
1989
1990 2015-04-22  Eric Carlson  <eric.carlson@apple.com>
1991
1992         Unreviewed post-review clean up after r183096.
1993
1994         * WebView/WebMediaPlaybackTargetPicker.h:
1995
1996 2015-04-21  Eric Carlson  <eric.carlson@apple.com>
1997
1998         [Mac] Use one playback target for all web processes
1999         https://bugs.webkit.org/show_bug.cgi?id=144009
2000
2001         Reviewed by Tim Horton.
2002
2003         Update to use WebMediaSessionManager for playback target management.
2004
2005         * WebCoreSupport/WebChromeClient.h:
2006         * WebCoreSupport/WebChromeClient.mm:
2007         (WebChromeClient::addPlaybackTargetPickerClient):
2008         (WebChromeClient::removePlaybackTargetPickerClient):
2009         (WebChromeClient::showPlaybackTargetPicker):
2010         (WebChromeClient::playbackTargetPickerClientStateDidChange):
2011         (WebChromeClient::startingMonitoringPlaybackTargets): Deleted.
2012         (WebChromeClient::stopMonitoringPlaybackTargets): Deleted.
2013         * WebView/WebMediaPlaybackTargetPicker.h:
2014         * WebView/WebMediaPlaybackTargetPicker.mm:
2015         (WebMediaPlaybackTargetPicker::addPlaybackTargetPickerClient):
2016         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
2017         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
2018         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
2019         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
2020         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange):
2021         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
2022         (WebMediaPlaybackTargetPicker::invalidate):
2023         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): Deleted.
2024         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): Deleted.
2025         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Deleted.
2026         (WebMediaPlaybackTargetPicker::targetPicker): Deleted.
2027         * WebView/WebView.mm:
2028         (-[WebView _addPlaybackTargetPickerClient:]):
2029         (-[WebView _removePlaybackTargetPickerClient:]):
2030         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
2031         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
2032         (-[WebView _showPlaybackTargetPicker:hasVideo:]): Deleted.
2033         (-[WebView _startingMonitoringPlaybackTargets]): Deleted.
2034         (-[WebView _stopMonitoringPlaybackTargets]): Deleted.
2035         * WebView/WebViewInternal.h:
2036
2037 2015-04-20  Alexey Proskuryakov  <ap@apple.com>
2038
2039         Disable mixed content blocking for existing WebKit1 clients
2040         https://bugs.webkit.org/show_bug.cgi?id=143955
2041         rdar://problem/20177186
2042
2043         Reviewed by Oliver Hunt.
2044
2045         * Misc/WebKitVersionChecks.h:
2046         * WebView/WebView.mm:
2047         (shouldAllowInsecureContent):
2048         (-[WebView _preferencesChanged:]):
2049
2050 2015-04-20  Tim Horton  <timothy_horton@apple.com>
2051
2052         Implement immediate action support for tel: and mailto: URLs
2053         https://bugs.webkit.org/show_bug.cgi?id=143916
2054         <rdar://problem/19721711>
2055
2056         Reviewed by Darin Adler.
2057
2058         * WebView/WebImmediateActionController.mm:
2059         (-[WebImmediateActionController _defaultAnimationController]):
2060         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2061         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
2062         (-[WebImmediateActionController _menuItemForDataDetectedText]): Deleted.
2063         * WebView/WebUIDelegatePrivate.h:
2064         Add _animationControllerForDataDetectedLink and use it when
2065         building immediate actions for tel: and mailto: links.
2066
2067 2015-04-17  Daniel Bates  <dabates@apple.com>
2068
2069         REGRESSION: SVG does not support link dragging
2070         https://bugs.webkit.org/show_bug.cgi?id=141597
2071
2072         Reviewed by Darin Adler.
2073
2074         Write -[WebElementDictionary _isLiveLink] in terms of WebCore::isDraggableLink().
2075
2076         * Misc/WebElementDictionary.mm:
2077         (-[WebElementDictionary _isLiveLink]):
2078
2079 2015-04-16  Sam Weinig  <sam@webkit.org>
2080
2081         Expose JavaScriptMarkupEnabled preference for WebKit1
2082         <rdar://problem/19939450>
2083         https://bugs.webkit.org/show_bug.cgi?id=143855
2084
2085         Reviewed by Dan Bernstein.
2086
2087         * WebView/WebPreferenceKeysPrivate.h:
2088         Add new key, WebKitJavaScriptMarkupEnabledPreferenceKey
2089
2090         * WebView/WebPreferences.mm:
2091         (+[WebPreferences initialize]):
2092         Initialize WebKitJavaScriptMarkupEnabledPreferenceKey to YES.
2093
2094         (-[WebPreferences isJavaScriptMarkupEnabled]):
2095         (-[WebPreferences setJavaScriptMarkupEnabled:]):
2096         Implement getter/setter.
2097
2098         * WebView/WebPreferencesPrivate.h:
2099         Add new property, javaScriptMarkupEnabled.
2100
2101         * WebView/WebView.mm:
2102         (-[WebView _preferencesChanged:]):
2103         Map the new preference to WebCore's scriptMarkupEnabled setting.
2104
2105 2015-04-15  Brent Fulgham  <bfulgham@apple.com>
2106
2107         [Mac] Disable "Save to Downloads" option for local files
2108         https://bugs.webkit.org/show_bug.cgi?id=143794
2109
2110         Reviewed by Tim Horton.
2111
2112         Disable the Image and Media download options if the download
2113         target is a local file. We can only download web resources;
2114         anything else is actually a no-op.
2115
2116         * WebView/WebActionMenuController.mm:
2117         (-[WebActionMenuController _defaultMenuItemsForImage]):
2118         (-[WebActionMenuController _defaultMenuItemsForVideo]):
2119
2120 2015-04-15  Alex Christensen  <achristensen@webkit.org>
2121
2122         Progress towards CMake on Mac.
2123         https://bugs.webkit.org/show_bug.cgi?id=143785
2124
2125         Reviewed by Csaba Osztrogonác.
2126
2127         * WebView/WebPDFDocumentExtras.mm:
2128         * WebView/WebPDFView.mm:
2129
2130 2015-04-13  Jer Noble  <jer.noble@apple.com>
2131
2132         [Fullscreen] ChromeClient::exitVideoFullscreen() should take a pointer to a HTMLVideoElement.
2133         https://bugs.webkit.org/show_bug.cgi?id=143674
2134
2135         Reviewed by Darin Adler.
2136
2137         * WebCoreSupport/WebChromeClient.h:
2138         * WebCoreSupport/WebChromeClient.mm:
2139         (WebChromeClient::enterVideoFullscreenForVideoElement): Takes a reference.
2140         (WebChromeClient::exitVideoFullscreenForVideoElement): Renamed from exitVideoFullscreen().
2141         (WebChromeClient::exitVideoFullscreen): Deleted.
2142
2143 2015-04-14  Simon Fraser  <simon.fraser@apple.com>
2144
2145         Re-enable custom dilation for antialiased fonts
2146         https://bugs.webkit.org/show_bug.cgi?id=143738
2147
2148         Reviewed by Tim Horton.
2149         
2150         Enabling custom dilation for antialised fonts broke layout tests, so re-land it,
2151         but disable in WebKitTestRunner and DumpRenderTree. The latter requires adding
2152         a private WebKit pref. This pref defaults to YES, enabling the feature by default
2153         in WK1 as we do for WK2.
2154
2155         * WebView/WebPreferenceKeysPrivate.h:
2156         * WebView/WebPreferences.mm:
2157         (+[WebPreferences initialize]):
2158         (-[WebPreferences setAntialiasedFontDilationEnabled:]):
2159         (-[WebPreferences antialiasedFontDilationEnabled]):
2160         * WebView/WebPreferencesPrivate.h:
2161         * WebView/WebView.mm:
2162         (-[WebView _preferencesChanged:]):
2163
2164 2015-04-13  Brady Eidson  <beidson@apple.com>
2165
2166         Share sheets from Share menus appear outside the browser window.
2167         <rdar://problem/20455592> and https://bugs.webkit.org/show_bug.cgi?id=143620
2168
2169         Reviewed by Darin Adler.
2170
2171         Refactor existing Sharing Service Picker code to also be used for the Share menu NSMenuItem.
2172
2173         * Misc/WebSharingServicePickerController.h:
2174         (WebSharingServicePickerClient::webView):
2175         * Misc/WebSharingServicePickerController.mm:
2176         (WebSharingServicePickerClient::WebSharingServicePickerClient):
2177         (WebSharingServicePickerClient::sharingServicePickerWillBeDestroyed):
2178         (WebSharingServicePickerClient::pageForSharingServicePicker):
2179         (WebSharingServicePickerClient::windowForSharingServicePicker):
2180         (WebSharingServicePickerClient::screenRectForCurrentSharingServicePickerItem):
2181         (WebSharingServicePickerClient::imageForCurrentSharingServicePickerItem):
2182         (-[WebSharingServicePickerController initWithItems:includeEditorServices:client:style:]):
2183         (-[WebSharingServicePickerController initWithSharingServicePicker:client:]):
2184         (-[WebSharingServicePickerController sharingService:didShareItems:]):
2185
2186         * WebCoreSupport/WebContextMenuClient.h:
2187         (WebContextMenuClient::webView): Deleted.
2188         * WebCoreSupport/WebContextMenuClient.mm:
2189         (WebContextMenuClient::WebContextMenuClient):
2190         (WebContextMenuClient::pageForSharingServicePicker): Deleted.
2191         (WebContextMenuClient::windowForSharingServicePicker): Deleted.
2192
2193         * WebCoreSupport/WebSelectionServiceController.h:
2194         * WebCoreSupport/WebSelectionServiceController.mm:
2195         (WebSelectionServiceController::WebSelectionServiceController):
2196         (WebSelectionServiceController::handleSelectionServiceClick):
2197         (WebSelectionServiceController::pageForSharingServicePicker): Deleted.
2198         (WebSelectionServiceController::windowForSharingServicePicker): Deleted.
2199         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem): Deleted.
2200         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem): Deleted.
2201
2202         * WebView/WebHTMLView.mm:
2203         (-[WebHTMLView menuForEvent:]):
2204         * WebView/WebViewData.h:
2205
2206 2015-04-13  Beth Dakin  <bdakin@apple.com>
2207
2208         Add force property to MouseEvents
2209         https://bugs.webkit.org/show_bug.cgi?id=143569
2210         -and corresponding-
2211         rdar://problem/20472954
2212
2213         Reviewed by Darin Adler.
2214
2215         PlatformMouseEvent and MouseEvent now take force parameters.
2216         * WebView/WebFrame.mm:
2217         (-[WebFrame _dragSourceEndedAt:operation:]):
2218         * WebView/WebPDFView.mm:
2219         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2220
2221 2015-04-12  Darin Adler  <darin@apple.com>
2222
2223         [Cocoa] Localizable strings are inconsistent and need to be regenerated
2224         https://bugs.webkit.org/show_bug.cgi?id=143661
2225         rdar://problem/19634388
2226
2227         Reviewed by Dan Bernstein.
2228
2229         * Misc/WebLocalizableStrings.mm:
2230         (LoadWebLocalizedStringsTimerCallback): Moved the comment, useful for programmers but
2231         not for localization, into a C++ source code comment, and made the localizer comment
2232         consistent with the place this localizable string is used for actual localization.
2233         * WebCoreSupport/WebEditorClient.mm:
2234         (undoNameForEditAction): Changed the localizer comments for Delete and Dictation
2235         to match the ones in WebKit2; no need to specify that these are iOS only, and if we do
2236         want to specify that, we should not be using the term PLATFORM(IOS) since there is no
2237         reason for us to expect localizers to understand that terminology. Also added a comment
2238         about the fact that we have two copies of all the localizable strings.
2239
2240 2015-04-11  Yusuke Suzuki  <utatane.tea@gmail.com>
2241
2242         [ES6] Enable Symbol in web pages
2243         https://bugs.webkit.org/show_bug.cgi?id=143375
2244
2245         Reviewed by Ryosuke Niwa.
2246
2247         * WebView/WebPreferencesPrivate.h:
2248
2249 2015-04-08  Sam Weinig  <sam@webkit.org>
2250
2251         Allow LaunchServices to handle URLs on link navigations
2252         <rdar://problem/19446826>
2253         https://bugs.webkit.org/show_bug.cgi?id=143544
2254
2255         Reviewed by Anders Carlsson.
2256
2257         * Configurations/WebKitLegacy.xcconfig:
2258         Link MobileCoreServices.
2259
2260         * WebCoreSupport/WebFrameLoaderClient.h:
2261         * WebCoreSupport/WebFrameLoaderClient.mm:
2262         (shouldTryAppLink):
2263         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2264         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2265         (WebFrameLoaderClient::setUpPolicyListener):
2266         Only let LaunchServices have a crack at the URL if the navigation is:
2267             1) a main frame navigation
2268             2) a result of a user gesture
2269
2270 2015-04-10  Alexey Proskuryakov  <ap@apple.com>
2271
2272         Build fix.
2273
2274         * Misc/WebNSURLExtras.mm: (-[NSString _webkit_unescapedQueryValue]): Ignore a deprecation.
2275
2276 2015-04-10  Eric Carlson  <eric.carlson@apple.com>
2277
2278         [Mac] Refactor MediaPlaybackTarget
2279         https://bugs.webkit.org/show_bug.cgi?id=143571
2280
2281         Reviewed by Jer Noble.
2282
2283         * WebView/WebMediaPlaybackTargetPicker.h:
2284         * WebView/WebMediaPlaybackTargetPicker.mm:
2285         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): Take a Ref<MediaPlaybackTarget>&&.
2286
2287 2015-04-09  Andy Estes  <aestes@apple.com>
2288
2289         [Cocoa] Add a HAVE(AVKIT) and use it
2290         https://bugs.webkit.org/show_bug.cgi?id=143593
2291
2292         Reviewed by David Kilzer.
2293
2294         * WebView/WebPreferences.mm:
2295         (+[WebPreferences initialize]): Only set WebKitAVKitEnabled to YES if HAVE(AVKIT).
2296         (-[WebPreferences setAVKitEnabled:]): Only set value for WebKitAVKitEnabled if HAVE(AVKIT).
2297         * WebView/WebView.mm:
2298         (-[WebView _preferencesChanged:]): Only called Settings::setAVKitEnabled() if HAVE(AVKIT).
2299
2300 2015-04-09  Chris Dumez  <cdumez@apple.com>
2301
2302         [WK2][iOS] editorState() should not cause a synchronous layout
2303         https://bugs.webkit.org/show_bug.cgi?id=142536
2304         <rdar://problem/20041506>
2305
2306         Reviewed by Enrica Casucci.
2307
2308         Provide implementation for EditorClient::didChangeSelectionAndUpdateLayout().
2309
2310         * WebCoreSupport/WebEditorClient.h:
2311
2312 2015-04-08  Brent Fulgham  <bfulgham@apple.com>
2313
2314         [Mac] WebKit is not honoring OS preferences for secondary click behaviors
2315         https://bugs.webkit.org/show_bug.cgi?id=143452
2316         <rdar://problem/20437483>
2317
2318         Reviewed by Tim Horton.
2319
2320         We were improperly intercepting contextual menu clicks and passing them through
2321         the mouseDown handler, rather than processing via NSView's menu handling code.
2322
2323         * WebView/WebHTMLView.mm:
2324         (-[WebHTMLView otherMouseDown:]): Treat context menu events the same as the action
2325         menu case, and pass it to AppKit for normal menu processing. 
2326
2327 2015-04-08  Brady Eidson  <beidson@apple.com>
2328
2329         Expose the "Share" menu for links, images, and media.
2330         <rdar://problem/20435340> and https://bugs.webkit.org/show_bug.cgi?id=143502
2331
2332         Reviewed by Tim Horton.
2333
2334         * WebCoreSupport/WebContextMenuClient.h:
2335         * WebCoreSupport/WebContextMenuClient.mm:
2336         (WebContextMenuClient::shareMenuItem): 
2337
2338 2015-04-08  Anders Carlsson  <andersca@apple.com>
2339
2340         Move some ApplicationCache static member functions to ApplicationCacheStorage
2341         https://bugs.webkit.org/show_bug.cgi?id=143524
2342
2343         Reviewed by Antti Koivisto.
2344
2345         * WebCoreSupport/WebApplicationCache.mm:
2346         (+[WebApplicationCache diskUsageForOrigin:]):
2347         (+[WebApplicationCache deleteAllApplicationCaches]):
2348         (+[WebApplicationCache deleteCacheForOrigin:]):
2349
2350 2015-04-08  Chris Dumez  <cdumez@apple.com>
2351
2352         Rename ActiveDOMObject::canSuspend() to canSuspendForPageCache() for clarity
2353         https://bugs.webkit.org/show_bug.cgi?id=143513
2354
2355         Reviewed by Andreas Kling.
2356
2357         Update ScriptExecutionContext::canSuspendActiveDOMObjects() to
2358         canSuspendActiveDOMObjectsForPageCache() as the method was renamed.
2359
2360         * WebView/WebFrame.mm:
2361         (-[WebFrame _cacheabilityDictionary]):
2362
2363 2015-04-07  Anders Carlsson  <andersca@apple.com>
2364
2365         Get rid of uses of ApplicationCacheStorage::singleton() from WebKitLegacy
2366         https://bugs.webkit.org/show_bug.cgi?id=143504
2367
2368         Reviewed by Sam Weinig.
2369
2370         Add a webApplicationCacheStorage() function and use it throughout WebKitLegacy.
2371         In the future, webApplicationCacheStorage will return a custom singleton, but for now
2372         it just returns ApplicationCacheStorage::singleton().
2373
2374         * Misc/WebCache.mm:
2375         (+[WebCache empty]):
2376         * WebCoreSupport/WebApplicationCache.mm:
2377         (+[WebApplicationCache maximumSize]):
2378         (+[WebApplicationCache setMaximumSize:]):
2379         (+[WebApplicationCache defaultOriginQuota]):
2380         (+[WebApplicationCache setDefaultOriginQuota:]):
2381         (+[WebApplicationCache originsWithCache]):
2382         (webApplicationCacheStorage):
2383         * WebCoreSupport/WebApplicationCacheInternal.h: Added.
2384         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
2385         (-[WebApplicationCacheQuotaManager usage]):
2386         (-[WebApplicationCacheQuotaManager quota]):
2387         (-[WebApplicationCacheQuotaManager setQuota:]):
2388         * WebView/WebView.mm:
2389         (WebKitInitializeApplicationCachePathIfNecessary):
2390
2391 2015-04-07  Brady Eidson  <beidson@apple.com>
2392
2393         ContextMenuItem refactoring
2394         https://bugs.webkit.org/show_bug.cgi?id=143485
2395
2396         Reviewed by Beth Dakin.
2397
2398         * WebCoreSupport/WebContextMenuClient.mm:
2399         (WebContextMenuClient::contextMenuItemSelected):
2400
2401 2015-04-06  Chris Dumez  <cdumez@apple.com>
2402
2403         Bing video search result pages are not PageCacheable
2404         https://bugs.webkit.org/show_bug.cgi?id=143463
2405         <rdar://problem/20440916>
2406
2407         Reviewed by Alexey Proskuryakov.
2408
2409         Fix the iOS / WK1 build by using MemoryCache::resourceForRequest()
2410         instead of resourceForUrl().
2411
2412         * Misc/WebCache.mm:
2413         (+[WebCache imageForURL:]):
2414
2415 2015-04-05  Simon Fraser  <simon.fraser@apple.com>
2416
2417         Remove "go ahead and" from comments
2418         https://bugs.webkit.org/show_bug.cgi?id=143421
2419
2420         Reviewed by Darin Adler, Benjamin Poulain.
2421
2422         Remove the phrase "go ahead and" from comments where it doesn't add
2423         anything (which is almost all of them).
2424
2425         * WebView/WebDynamicScrollBarsView.mm:
2426         (-[WebDynamicScrollBarsView updateScrollers]):
2427         * WebView/WebHTMLView.mm:
2428         (-[WebHTMLView insertText:]):
2429
2430 2015-04-02  Brady Eidson  <beidson@apple.com>
2431
2432         Unreviewed: Reland change after rollout.
2433
2434         Expose the "Share" menu for text selections on platforms where it's available.
2435         rdar://problem/20034174 and https://bugs.webkit.org/show_bug.cgi?id=143318
2436
2437         * WebView/WebImmediateActionController.mm: Update for required #include
2438
2439 2015-04-02  Commit Queue  <commit-queue@webkit.org>
2440
2441         Unreviewed, rolling out r182293.
2442         https://bugs.webkit.org/show_bug.cgi?id=143355
2443
2444         Broke GTK and EFL builds. (Requested by bfulgham on #webkit).
2445
2446         Reverted changeset:
2447
2448         "Expose the "Share" menu for text selections on platforms
2449         where it's available."
2450         https://bugs.webkit.org/show_bug.cgi?id=143318
2451         http://trac.webkit.org/changeset/182293
2452
2453 2015-04-02  Brady Eidson  <beidson@apple.com>
2454
2455         Expose the "Share" menu for text selections on platforms where it's available.
2456         rdar://problem/20034174 and https://bugs.webkit.org/show_bug.cgi?id=143318
2457
2458         Reviewed by Sam Weinig.
2459
2460         * WebView/WebImmediateActionController.mm: Update for required #include
2461
2462 2015-04-02  Yusuke Suzuki  <utatane.tea@gmail.com>
2463
2464         Clean up EnumerationMode to easily extend
2465         https://bugs.webkit.org/show_bug.cgi?id=143276
2466
2467         Reviewed by Geoffrey Garen.
2468
2469         Use default EnumerationMode().
2470
2471         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2472         (WebKit::NetscapePluginInstanceProxy::enumerate):
2473
2474 2015-03-31  Simon Fraser  <simon.fraser@apple.com>
2475
2476         Remove scrolling tree dependency on wheel event handler counts, and use fast scrolling even when there are wheel handlers
2477         https://bugs.webkit.org/show_bug.cgi?id=143288
2478
2479         Reviewed by Beth Dakin.
2480
2481         Remove the wheel event counting that Document does, and passes into the scrolling tree.
2482         The ScrollingTree now just uses the non-fast scrollable region to determine when to
2483         fast scroll on pages with wheel event handlers.
2484
2485         * WebCoreSupport/WebChromeClient.h:
2486
2487 2015-03-31  Timothy Horton  <timothy_horton@apple.com>
2488
2489         TextIndicator for <span> inside an <a> only highlights the <span>, should highlight the whole <a>
2490         https://bugs.webkit.org/show_bug.cgi?id=143287
2491         <rdar://problem/20318342>
2492
2493         Reviewed by Beth Dakin.
2494
2495         * WebView/WebImmediateActionController.mm:
2496         (-[WebImmediateActionController _defaultAnimationController]):
2497         Instead of just highlighting the hit element, highlight the whole
2498         element that the link URL comes from.
2499
2500 2015-03-31  Yusuke Suzuki  <utatane.tea@gmail.com>
2501
2502         Clean up Identifier factories to clarify the meaning of StringImpl*
2503         https://bugs.webkit.org/show_bug.cgi?id=143146
2504
2505         Reviewed by Filip Pizlo.
2506
2507         Just change to Identifier::fromString.
2508
2509         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2510         (identifierFromIdentifierRep):
2511         * Plugins/Hosted/ProxyInstance.mm:
2512         (WebKit::ProxyInstance::getPropertyNames):
2513
2514 2015-03-28  Anders Carlsson  <andersca@apple.com>
2515
2516         Remove an unused SPI method from WebKitLegacy
2517         https://bugs.webkit.org/show_bug.cgi?id=143185
2518
2519         Reviewed by Sam Weinig.
2520
2521         * WebView/WebDataSource.mm:
2522         (-[WebDataSource _transferApplicationCache:]): Deleted.
2523         * WebView/WebDataSourcePrivate.h:
2524
2525 2015-03-26  Alex Christensen  <achristensen@webkit.org>
2526
2527         Progress towards CMake on Mac.
2528         https://bugs.webkit.org/show_bug.cgi?id=143112
2529
2530         Reviewed by Chris Dumez.
2531
2532         * WebCoreSupport/WebFrameLoaderClient.h:
2533
2534 2015-03-26  Ryosuke Niwa  <rniwa@webkit.org>
2535
2536         Cursor doesn't change back to pointer when leaving Mail
2537         https://bugs.webkit.org/show_bug.cgi?id=132038
2538
2539         Reviewed by Anders Carlsson.
2540
2541         Fixed the bug by adding a cursor rect and making the primary tracking area update the cursor so that
2542         AppKit will reset the cursor as it leaves the WebView.
2543
2544         We use nil cursor here since we manually update the cursor by calling [NSCursor set].
2545
2546         * WebView/WebHTMLView.mm:
2547         (-[WebHTMLView setDataSource:]): Use NSTrackingCursorUpdate option in creating the primary tracking area.
2548
2549 2015-03-24  Anders Carlsson  <andersca@apple.com>
2550
2551         Fix designated initializer violations
2552         https://bugs.webkit.org/show_bug.cgi?id=143016
2553         rdar://problem/20268858
2554
2555         Reviewed by Dan Bernstein.
2556
2557         Move -[WebBackForwardList initWithBackForwardList:] to the implementation instead of a category since
2558         nobody calls it outside of WebBackForwardList.mm.
2559
2560         * History/WebBackForwardList.mm:
2561         * History/WebBackForwardListInternal.h:
2562
2563 2015-03-23  Alexey Proskuryakov  <ap@apple.com>
2564
2565         REGRESSION (Yosemite): WKView visibility notifications are messed up
2566         https://bugs.webkit.org/show_bug.cgi?id=142945
2567
2568         Reviewed by Tim Horton.
2569
2570         As these notifications cannot be used by NSView subclasses, create a separate
2571         object for observing them.
2572
2573         * WebView/WebView.mm:
2574         (-[WebView _commonInitializationWithFrameName:groupName:]):
2575         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2576         (-[WebView addWindowObserversForWindow:]):
2577         (-[WebView removeWindowObservers]):
2578         (-[WebView viewWillMoveToWindow:]): Make sure that observers are removed even
2579         if -[WebView close] is called manually.
2580         * WebView/WebViewData.h:
2581         * WebView/WebViewData.mm:
2582         (-[WebWindowVisibilityObserver initWithView:]):
2583         (-[WebWindowVisibilityObserver startObserving:]):
2584         (-[WebWindowVisibilityObserver stopObserving:]):
2585         (-[WebWindowVisibilityObserver _windowVisibilityChanged:]):
2586
2587 2015-03-23  Tim Horton  <timothy_horton@apple.com>
2588
2589         Add a share item to the link action menu
2590         https://bugs.webkit.org/show_bug.cgi?id=142961
2591         <rdar://problem/19198374>
2592
2593         Reviewed by Beth Dakin.
2594
2595         * WebView/WebActionMenuController.mm:
2596         (-[WebActionMenuController _defaultMenuItemsForImage]):
2597         (-[WebActionMenuController _defaultMenuItemsForVideo]):
2598         (-[WebActionMenuController _createActionMenuItemForTag:]):
2599         (-[WebActionMenuController _createShareActionMenuItemForTag:withItems:]):
2600         Adopt -[NSMenuItem standardShareMenuItemWithItems].
2601         All of the null-checking is unnecessary as it's impossible to enter
2602         these functions with a null image/etc.
2603         Also, remove a duplicate isDownloadableMedia check for the 'save to downloads' item.
2604
2605         (-[WebActionMenuController _defaultMenuItemsForLink]):
2606         * WebView/WebUIDelegatePrivate.h:
2607         Add a 'Share' item to the link menu.
2608
2609 2015-03-22  Alexey Proskuryakov  <ap@apple.com>
2610
2611         Build fix.
2612
2613         * WebView/WebView.mm: (-[WebView _showPlaybackTargetPicker:hasVideo:]):
2614
2615 2015-03-22  Eric Carlson  <eric.carlson@apple.com>
2616
2617         [Mac] Enable WIRELESS_PLAYBACK_TARGET for WK1
2618         https://bugs.webkit.org/show_bug.cgi?id=142940
2619
2620         Reviewed by Sam Weinig.
2621
2622         * WebCoreSupport/WebChromeClient.h:
2623         * WebCoreSupport/WebChromeClient.mm:
2624         (WebChromeClient::showPlaybackTargetPicker): New.
2625         (WebChromeClient::startingMonitoringPlaybackTargets): New.
2626         (WebChromeClient::stopMonitoringPlaybackTargets): New.
2627
2628         * WebView/WebView.mm:
2629         (-[WebView _close]): Invalidate and free the target picker.
2630         (-[WebView _devicePicker]): New.
2631         (-[WebView _showPlaybackTargetPicker:hasVideo:]): New.
2632         (-[WebView _startingMonitoringPlaybackTargets]): New.
2633         (-[WebView _stopMonitoringPlaybackTargets]): New.
2634
2635         * WebView/WebMediaPlaybackTargetPicker.h:
2636         * WebView/WebMediaPlaybackTargetPicker.mm:
2637         (WebMediaPlaybackTargetPicker::create): New.
2638         (WebMediaPlaybackTargetPicker::WebMediaPlaybackTargetPicker): New.
2639         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker): New.
2640         (WebMediaPlaybackTargetPicker::startingMonitoringPlaybackTargets): New.
2641         (WebMediaPlaybackTargetPicker::stopMonitoringPlaybackTargets): New.
2642         (WebMediaPlaybackTargetPicker::didChoosePlaybackTarget): New.
2643         (WebMediaPlaybackTargetPicker::externalOutputDeviceAvailableDidChange): New.
2644         (WebMediaPlaybackTargetPicker::invalidate): New.
2645         (WebMediaPlaybackTargetPicker::targetPicker): New.
2646
2647         * WebView/WebViewData.h:
2648         (WebMediaPlaybackTargetPicker::~WebMediaPlaybackTargetPicker):
2649         * WebView/WebViewData.mm:
2650         * WebView/WebViewInternal.h:
2651
2652 2015-03-19  Andy Estes  <aestes@apple.com>
2653
2654         [Content Filtering] Add tests for unblock requests
2655         https://bugs.webkit.org/show_bug.cgi?id=142900
2656
2657         Reviewed by Andreas Kling.
2658
2659         * WebCoreSupport/WebFrameLoaderClient.mm:
2660         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): This now happens in PolicyChecker.
2661         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
2662         * WebView/WebFrame.mm:
2663         (-[WebFrame _contentFilterDidHandleNavigationAction:]): Deleted.
2664         * WebView/WebFrameInternal.h: Removed contentFilterUnblockHandler from WebFramePrivate.
2665
2666 2015-03-19  Enrica Casucci  <enrica@apple.com>
2667
2668         <attachment> should put URLs on the pasteboard so that Finder can accept drops.
2669         https://bugs.webkit.org/show_bug.cgi?id=142801
2670         rdar://problem/19982527
2671
2672         Reviewed by Tim Horton.
2673
2674         This patch adds all the necessary support to write attachment elements into
2675         the pasteboard, including the promised type in WK1.
2676
2677         * Misc/WebNSPasteboardExtras.mm:
2678         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
2679         * WebCoreSupport/WebDragClient.h:
2680         * WebCoreSupport/WebDragClient.mm:
2681         (WebDragClient::declareAndWriteAttachment):
2682         * WebView/WebHTMLView.mm:
2683         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
2684         * WebView/WebUIDelegate.h:
2685
2686 2015-03-19  Chris Dumez  <cdumez@apple.com>
2687
2688         Clean up DOMTimer related settings
2689         https://bugs.webkit.org/show_bug.cgi?id=142837
2690
2691         Reviewed by Darin Adler.
2692
2693         Stop setting the DOMTimers' default minimum interval to 4ms as this
2694         is now the default.
2695
2696         * WebView/WebView.mm:
2697         (-[WebView _commonInitializationWithFrameName:groupName:]):
2698
2699 2015-03-17  Conrad Shultz  <conrad_shultz@apple.com>
2700
2701         Ignore some deprecation warnings
2702         https://bugs.webkit.org/show_bug.cgi?id=142813
2703
2704         Reviewed by Mark Rowe.
2705
2706         Fixing the deprecations is tracked by: <rdar://problem/20201450>
2707
2708         * WebCoreSupport/PopupMenuMac.mm:
2709         (PopupMenuMac::populate):
2710
2711 2015-03-17  Tim Horton  <timothy_horton@apple.com>
2712
2713         Cannot invoke action menus anymore
2714         https://bugs.webkit.org/show_bug.cgi?id=142797
2715         <rdar://problem/20032670>
2716
2717         * WebView/WebHTMLView.mm:
2718         (-[WebHTMLView otherMouseDown:]):
2719         Need a respondsToSelector check.
2720
2721 2015-03-17  Tim Horton  <timothy_horton@apple.com>
2722
2723         Fix the iOS build
2724
2725         * WebView/WebHTMLView.mm:
2726
2727 2015-03-17  Tim Horton  <timothy_horton@apple.com>
2728
2729         Cannot invoke action menus anymore
2730         https://bugs.webkit.org/show_bug.cgi?id=142797
2731         <rdar://problem/20032670>
2732
2733         Reviewed by Beth Dakin.
2734
2735         * WebView/WebHTMLView.mm:
2736         (-[WebHTMLView otherMouseDown:]):
2737         Don't override otherMouseDown: if the event would make an action menu.
2738
2739 2015-03-16  Ryosuke Niwa  <rniwa@webkit.org>
2740
2741         Enable ES6 classes by default
2742         https://bugs.webkit.org/show_bug.cgi?id=142774
2743
2744         Reviewed by Gavin Barraclough.
2745
2746         * Configurations/FeatureDefines.xcconfig:
2747
2748 2015-03-16  Brent Fulgham  <bfulgham@apple.com>
2749
2750         WebKit1 Clients Are Not Reliably Repainted
2751         https://bugs.webkit.org/show_bug.cgi?id=142750
2752         <rdar://problem/20042453>
2753
2754         Reviewed by Simon Fraser.
2755
2756         Check with the FrameView to see if we are in an immediately paintable state. If we are not,
2757         mark the view as dirty once the _immediateScrollToPoint operation is complete so that the
2758         region will be painted properly.
2759
2760         * WebView/WebClipView.mm:
2761         (-[WebClipView _immediateScrollToPoint:]): 
2762
2763 2015-03-16  Conrad Shultz  <conrad_shultz@apple.com>
2764
2765         Allow clients to selectively disable plug-ins
2766         https://bugs.webkit.org/show_bug.cgi?id=142506
2767
2768         Reviewed by Anders Carlsson.
2769
2770         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
2771         from the page). As part of this:
2772
2773         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
2774            set of plug-ins.
2775
2776         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
2777            down the stack.
2778
2779         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
2780            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
2781
2782         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
2783
2784         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
2785         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
2786
2787         * Plugins/WebBasePluginPackage.mm:
2788         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2789         Set new members in PluginInfo.
2790
2791         * Plugins/WebNetscapePluginPackage.mm:
2792         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2793         Set new members in PluginInfo.
2794
2795         * WebCoreSupport/WebPlatformStrategies.h:
2796         * WebCoreSupport/WebPlatformStrategies.mm:
2797         (WebPlatformStrategies::getWebVisiblePluginInfo):
2798         Override to wrap getPluginInfo().
2799         (WebPlatformStrategies::setPluginLoadClientPolicy):
2800         Override to do nothing.
2801         (WebPlatformStrategies::clearPluginClientPolicies):
2802         Ditto.
2803
2804         * WebView/WebFrame.mm:
2805         (-[WebFrame _canProvideDocumentSource]):
2806         Update to reflect function rename.
2807
2808 2015-03-14  Dean Jackson  <dino@apple.com>
2809
2810         Feature flag for Animations Level 2
2811         https://bugs.webkit.org/show_bug.cgi?id=142699
2812         <rdar://problem/20165097>
2813
2814         Reviewed by Brent Fulgham.
2815
2816         Add ENABLE_CSS_ANIMATIONS_LEVEL_2 and a runtime flag animationTriggersEnabled.
2817
2818         * Configurations/FeatureDefines.xcconfig:
2819
2820 2015-03-13  Commit Queue  <commit-queue@webkit.org>
2821
2822         Unreviewed, rolling out r181483.
2823         https://bugs.webkit.org/show_bug.cgi?id=142688
2824
2825         Caused use-after-free on many tests (Requested by ap on
2826         #webkit).
2827
2828         Reverted changeset:
2829
2830         "Allow clients to selectively disable plug-ins"
2831         https://bugs.webkit.org/show_bug.cgi?id=142506
2832         http://trac.webkit.org/changeset/181483
2833
2834 2015-03-13  Eric Carlson  <eric.carlson@apple.com>
2835
2836         [Mac] Enable WIRELESS_PLAYBACK_TARGET
2837         https://bugs.webkit.org/show_bug.cgi?id=142635
2838
2839         Reviewed by Darin Adler.
2840
2841         * Configurations/FeatureDefines.xcconfig:
2842
2843 2015-03-10  Conrad Shultz  <conrad_shultz@apple.com>
2844
2845         Allow clients to selectively disable plug-ins
2846         https://bugs.webkit.org/show_bug.cgi?id=142506
2847
2848         Reviewed by Anders Carlsson.
2849
2850         Add new functionality allow clients to declaratively disable individual plug-ins (in a manner that conceals them
2851         from the page). As part of this:
2852
2853         1) Introduce the concept of web-visible plug-ins and related concepts, as distinct from the real underlying
2854            set of plug-ins.
2855
2856         2) Where applicable, plumb additional information about plug-ins (specifically, bundle identification) deeper
2857            down the stack.
2858
2859         3) Add generic functionality to PluginStrategy to support filtering plug-ins for visibility and introduce
2860            a concrete implementation thereof in WebPlatformStrategies in WebKit2.
2861
2862         4) Add messaging infrastructure to allow clients to set and clear plug-in policies.
2863
2864         While currently only used in a very limited manner, the new declarative plug-in policies are written generically
2865         so that they could be easily used in the future to reduce synchronous messaging to the client when loading plug-ins.
2866
2867         * Plugins/WebBasePluginPackage.mm:
2868         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2869         Set new members in PluginInfo.
2870
2871         * Plugins/WebNetscapePluginPackage.mm:
2872         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
2873         Set new members in PluginInfo.
2874
2875         * WebCoreSupport/WebPlatformStrategies.h:
2876         * WebCoreSupport/WebPlatformStrategies.mm:
2877         (WebPlatformStrategies::getWebVisiblePluginInfo):
2878         Override to wrap getPluginInfo().
2879         (WebPlatformStrategies::setPluginLoadClientPolicy):
2880         Override to do nothing.
2881         (WebPlatformStrategies::clearPluginClientPolicies):
2882         Ditto.
2883
2884         * WebView/WebFrame.mm:
2885         (-[WebFrame _canProvideDocumentSource]):
2886         Update to reflect function rename.
2887
2888 2015-03-10  Sam Weinig  <sam@webkit.org>
2889
2890         Allow adding a button in input elements for auto fill related functionality
2891         <rdar://problem/19782066>
2892         https://bugs.webkit.org/show_bug.cgi?id=142564
2893
2894         Reviewed by Anders Carlsson.
2895
2896         * DOM/WebDOMOperations.mm:
2897         (-[DOMHTMLInputElement _setAutofilled:]):
2898         Update for consistent spelling of AutoFill.
2899
2900 2015-03-10  Timothy Horton  <timothy_horton@apple.com>
2901
2902         Fix the build
2903
2904         * History/WebHistory.mm:
2905         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
2906         * WebCoreSupport/WebFrameLoaderClient.mm:
2907         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
2908
2909 2015-03-10  Tim Horton  <timothy_horton@apple.com>
2910
2911         Fix the Mac build with a newer compiler
2912
2913         * Plugins/WebPluginController.mm:
2914         (WebKit_TSUpdateCheck_alertDidEnd_returnCode_contextInfo_):
2915         (WebKit_NSAlert_beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo_):
2916
2917 2015-03-09  David Kilzer  <ddkilzer@apple.com>
2918
2919         [iOS] Fix build when compiling with dead code stripping disabled
2920         <http://webkit.org/b/142467>
2921
2922         Reviewed by Simon Fraser.
2923
2924         * Configurations/WebKitLegacy.xcconfig:
2925         (EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*]): Disable mig code
2926         generation and compilation for out-of-process plugin support.
2927         This was never used on iOS.
2928
2929 2015-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
2930
2931         [iOS] SVG fonts are garbled
2932         https://bugs.webkit.org/show_bug.cgi?id=142377
2933
2934         Reviewed by Simon Fraser.
2935
2936         * Configurations/FeatureDefines.xcconfig:
2937
2938 2015-03-04  Yusuke Suzuki  <utatane.tea@gmail.com>
2939
2940         Hide Promise with runtime flags under Cocoa JSContext API
2941         https://bugs.webkit.org/show_bug.cgi?id=141965
2942
2943         Reviewed by Filip Pizlo.
2944
2945         Add new JSC runtime flag, PromiseDisabled.
2946
2947         * WebView/WebPreferencesPrivate.h:
2948
2949 2015-03-03  Andy Estes  <aestes@apple.com>
2950
2951         [Content Filtering] Separate unblock handling into its own class
2952         https://bugs.webkit.org/show_bug.cgi?id=142251
2953
2954         Reviewed by Andreas Kling.
2955         
2956         Adopted ContentFilterUnblockHandler.
2957
2958         * WebCoreSupport/WebFrameLoaderClient.h:
2959         * WebCoreSupport/WebFrameLoaderClient.mm:
2960         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2961         * WebView/WebFrame.mm:
2962         (-[WebFrame _contentFilterDidHandleNavigationAction:]):
2963         * WebView/WebFrameInternal.h:
2964
2965 2015-03-03  Chris Dumez  <cdumez@apple.com>
2966
2967         Access ApplicationCacheStorage global instance via singleton() static member function
2968         https://bugs.webkit.org/show_bug.cgi?id=142239
2969
2970         Reviewed by Anders Carlsson.
2971
2972         Access ApplicationCacheStorage global instance via singleton() static
2973         member function as per WebKit coding style.
2974
2975 2015-03-02  Jer Noble  <jer.noble@apple.com>
2976
2977         [WK1][WK2][Mac] Fullscreen animation is incorrect when page is scaled.
2978         https://bugs.webkit.org/show_bug.cgi?id=142121
2979
2980         Reviewed by Simon Fraser.
2981
2982         Fullscreening a page with a non-1 scale would result in that scale being applied to the
2983         fullscreen content, breaking fullscreen mode. Set the page scale to 1 when entering
2984         fullscreen and reset it to the original value when exiting fullscreen.
2985
2986         * WebView/WebFullScreenController.h:
2987         * WebView/WebFullScreenController.mm:
2988         (-[WebFullScreenController enterFullScreen:]): Set the page scale to 1.
2989         (-[WebFullScreenController finishedExitFullScreenAnimation:]): Reset the page
2990                 scale to the original value.
2991         * WebView/WebView.mm:
2992         (-[WebView _supportsFullScreenForElement:withKeyboard:]): Drive-by fix. Check the
2993                 WebView's own preferences to see if fullscreen mode is enabled, rather than
2994                 the global object's.
2995
2996 2015-03-01  Chris Dumez  <cdumez@apple.com>
2997
2998         Make NotificationCenter / Notification suspendable
2999         https://bugs.webkit.org/show_bug.cgi?id=142117
3000         <rdar://problem/19923085>
3001
3002         Reviewed by Andreas Kling.
3003
3004         Provide implementation for NotificationClient::hasPendingPermissionRequests().
3005         The implementation is very simplistic. it will only return false if no
3006         request for permission for ever made. This is because there is currently no
3007         easy way to figure out if a permission request is pending or not.
3008
3009         * WebCoreSupport/WebNotificationClient.h:
3010         * WebCoreSupport/WebNotificationClient.mm:
3011         (WebNotificationClient::requestPermission):
3012         (WebNotificationClient::hasPendingPermissionRequests):
3013
3014 2015-02-28  Simon Fraser  <simon.fraser@apple.com>
3015
3016         Viewport units should not dirty style just before we do layout
3017         https://bugs.webkit.org/show_bug.cgi?id=141682
3018
3019         Reviewed by Zalan Bujtas.
3020
3021         * WebView/WebFrameView.mm:
3022         (-[WebFrameView _frameSizeChanged]):
3023
3024 2015-02-26  Chris Dumez  <cdumez@apple.com>
3025
3026         Rename DatabaseManager::manager() to DatabaseManager::singleton()
3027         https://bugs.webkit.org/show_bug.cgi?id=142054
3028
3029         Reviewed by Ryosuke Niwa.
3030
3031         Rename DatabaseManager::manager() to DatabaseManager::singleton() as
3032         per coding style and use WTF::NeverDestroyed.
3033
3034         * Storage/WebDatabaseManager.mm:
3035         (-[WebDatabaseManager init]):
3036         (-[WebDatabaseManager origins]):
3037         (-[WebDatabaseManager databasesWithOrigin:]):
3038         (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
3039         (-[WebDatabaseManager deleteAllDatabases]):
3040         (-[WebDatabaseManager deleteOrigin:]):
3041         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
3042         * Storage/WebDatabaseQuotaManager.mm:
3043         (-[WebDatabaseQuotaManager usage]):
3044         (-[WebDatabaseQuotaManager quota]):
3045         (-[WebDatabaseQuotaManager setQuota:]):
3046         * WebCoreSupport/WebSecurityOrigin.mm:
3047         (-[WebSecurityOrigin usage]):
3048         (-[WebSecurityOrigin quota]):
3049         (-[WebSecurityOrigin setQuota:]):
3050         * WebView/WebFrame.mm:
3051         (-[WebFrame _cacheabilityDictionary]):
3052         * WebView/WebView.mm:
3053         (-[WebView _preferencesChanged:]):
3054
3055 2015-02-26  Myles C. Maxfield  <mmaxfield@apple.com>
3056
3057         [Mac] [iOS] Parsing support for -apple-trailing-word
3058         https://bugs.webkit.org/show_bug.cgi?id=141939
3059
3060         Reviewed by Andreas Kling.
3061
3062         * Configurations/FeatureDefines.xcconfig:
3063
3064 2015-02-24  Commit Queue  <commit-queue@webkit.org>
3065
3066         Unreviewed, rolling out r180599.
3067         https://bugs.webkit.org/show_bug.cgi?id=141998
3068
3069         Lots of new test failures (Requested by smfr on #webkit).
3070
3071         Reverted changeset:
3072
3073         "Parsing support for -webkit-trailing-word"
3074         https://bugs.webkit.org/show_bug.cgi?id=141939
3075         http://trac.webkit.org/changeset/180599
3076
3077 2015-02-24  Myles C. Maxfield  <mmaxfield@apple.com>
3078
3079         [Mac] [iOS] Parsing support for -apple-trailing-word
3080         https://bugs.webkit.org/show_bug.cgi?id=141939
3081
3082         Reviewed by Andreas Kling.
3083
3084         * Configurations/FeatureDefines.xcconfig:
3085
3086 2015-02-24  Yusuke Suzuki  <utatane.tea@gmail.com>
3087
3088         REGRESSION(r179429): Can't type comments in Facebook
3089         https://bugs.webkit.org/show_bug.cgi?id=141859
3090
3091         Reviewed by Brent Fulgham.
3092
3093         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
3094         Private API, javaScriptExperimentsEnabled is dropped.
3095
3096         * Misc/WebNSDictionaryExtras.h:
3097         * Misc/WebNSDictionaryExtras.m:
3098         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
3099         * WebKit.order:
3100         * WebView/WebPreferenceKeysPrivate.h:
3101         * WebView/WebPreferences.mm:
3102         (+[WebPreferences initialize]):
3103         (-[WebPreferences _setUnsignedIntValue:forKey:]):
3104         (-[WebPreferences javaScriptRuntimeFlags]):
3105         (-[WebPreferences setJavaScriptRuntimeFlags:]):
3106         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
3107         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
3108         * WebView/WebPreferencesPrivate.h:
3109         * WebView/WebView.mm:
3110         (-[WebView _preferencesChanged:]):
3111
3112 2015-02-23  Commit Queue  <commit-queue@webkit.org>
3113
3114         Unreviewed, rolling out r180547 and r180550.
3115         https://bugs.webkit.org/show_bug.cgi?id=141957
3116
3117         Broke 10 Windows tests. (Requested by bfulgham_ on #webkit).
3118
3119         Reverted changesets:
3120
3121         "REGRESSION(r179429): Can't type comments in Facebook"
3122         https://bugs.webkit.org/show_bug.cgi?id=141859
3123         http://trac.webkit.org/changeset/180547
3124
3125         "Constructor returning null should construct an object instead
3126         of null"
3127         https://bugs.webkit.org/show_bug.cgi?id=141640
3128         http://trac.webkit.org/changeset/180550
3129
3130 2015-02-23  Ryosuke Niwa  <rniwa@webkit.org>
3131
3132         Disable font loading events until our implementation gets updated to match the latest spec
3133         https://bugs.webkit.org/show_bug.cgi?id=141938
3134
3135         Reviewed by Andreas Kling.
3136
3137         * Configurations/FeatureDefines.xcconfig:
3138
3139 2015-02-23  Yusuke Suzuki  <utatane.tea@gmail.com>
3140
3141         REGRESSION(r179429): Can't type comments in Facebook
3142         https://bugs.webkit.org/show_bug.cgi?id=141859
3143
3144         Reviewed by Geoffrey Garen.
3145
3146         Introduce SymbolEnabled and drop javaScriptExperimentsEnabled.
3147         Private API, javaScriptExperimentsEnabled is dropped.
3148
3149         * Misc/WebNSDictionaryExtras.h:
3150         * Misc/WebNSDictionaryExtras.m:
3151         (-[NSMutableDictionary _webkit_setUnsignedInt:forKey:]):
3152         * WebKit.order:
3153         * WebView/WebPreferenceKeysPrivate.h:
3154         * WebView/WebPreferences.mm:
3155         (+[WebPreferences initialize]):
3156         (-[WebPreferences _setUnsignedIntValue:forKey:]):
3157         (-[WebPreferences javaScriptRuntimeFlags]):
3158         (-[WebPreferences setJavaScriptRuntimeFlags:]):
3159         (-[WebPreferences setJavaScriptExperimentsEnabled:]): Deleted.
3160         (-[WebPreferences javaScriptExperimentsEnabled]): Deleted.
3161         * WebView/WebPreferencesPrivate.h:
3162         * WebView/WebView.mm:
3163         (-[WebView _preferencesChanged:]):
3164
3165 2015-02-20  Eric Carlson  <eric.carlson@apple.com>
3166
3167         [iOS] cleanup AirPlay code
3168         https://bugs.webkit.org/show_bug.cgi?id=141811
3169
3170         Reviewed by Jer Noble.
3171
3172         * Configurations/FeatureDefines.xcconfig: IOS_AIRPLAY -> WIRELESS_PLAYBACK_TARGET.
3173
3174 2015-02-18  Timothy Horton  <timothy_horton@apple.com>
3175
3176         Adopt WebCore::IOSurface in ImageBuffer
3177         https://bugs.webkit.org/show_bug.cgi?id=141751
3178
3179         Reviewed by Simon Fraser.
3180
3181         * WebCoreSupport/WebSystemInterface.mm:
3182         (InitWebCoreSystemInterface):
3183         Remove old WKSI IOSurface-related functions.
3184
3185 2015-02-18  Commit Queue  <commit-queue@webkit.org>
3186
3187         Unreviewed, rolling out r180286.
3188         https://bugs.webkit.org/show_bug.cgi?id=141766
3189
3190         Caused >50 crashed LayoutTests (Requested by jernoble on
3191         #webkit).
3192
3193         Reverted changeset:
3194
3195         "Page::userContentController() should return a reference, not
3196         a pointer"
3197         https://bugs.webkit.org/show_bug.cgi?id=141764
3198         http://trac.webkit.org/changeset/180286
3199
3200 2015-02-18  Brady Eidson  <beidson@apple.com>
3201
3202         Page::userContentController() should return a reference, not a pointer
3203         https://bugs.webkit.org/show_bug.cgi?id=141764
3204
3205         Reviewed by Jer Noble.
3206
3207         * WebView/WebView.mm:
3208         (-[WebView setGroupName:]):
3209
3210 2015-02-18  Chris Dumez  <cdumez@apple.com>
3211
3212         Access FontCache global instance via singleton() static member function
3213         https://bugs.webkit.org/show_bug.cgi?id=141726
3214
3215         Reviewed by Daniel Bates.
3216
3217         Access FontCache global instance via singleton() static member function,
3218         as per coding style.
3219
3220 2015-02-17  Chris Dumez  <cdumez@apple.com>
3221
3222         Access MemoryPressureHandler global instance via a singleton() static member function
3223         https://bugs.webkit.org/show_bug.cgi?id=141691
3224
3225         Reviewed by Andreas Kling.
3226
3227         Access MemoryPressureHandler global instance via a singleton() static
3228         member function.
3229
3230         * WebView/WebView.mm:
3231         (-[WebView _commonInitializationWithFrameName:groupName:]):
3232         (+[WebView registerForMemoryNotifications]):
3233         (+[WebView _isUnderMemoryPressure]):
3234         (+[WebView _clearMemoryPressure]):
3235         (+[WebView _shouldWaitForMemoryClearMessage]):
3236         (WebInstallMemoryPressureHandler):
3237
3238 2015-02-15  Sam Weinig  <sam@webkit.org>
3239
3240         Add experimental <attachment> element support
3241         https://bugs.webkit.org/show_bug.cgi?id=141626
3242
3243         Reviewed by Tim Horton.
3244
3245         * Configurations/FeatureDefines.xcconfig:
3246
3247 2015-02-14  Joseph Pecoraro  <pecoraro@apple.com>
3248
3249         [Mac] Possible DDActionContext leaks, RetainPtr cleanup
3250         https://bugs.webkit.org/show_bug.cgi?id=141613
3251
3252         Reviewed by Tim Horton.
3253
3254         * WebCoreSupport/WebEditorClient.mm:
3255         (WebEditorClient::WebEditorClient):
3256         Avoid unnecessary retain/autorelease by adopting.
3257
3258         * WebView/WebActionMenuController.mm:
3259         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
3260         Adopt the allocated object.
3261
3262 2015-02-09  Brian J. Burg  <burg@cs.washington.edu>
3263
3264         Web Inspector: remove some unnecessary Inspector prefixes from class names in Inspector namespace
3265         https://bugs.webkit.org/show_bug.cgi?id=141372
3266
3267         Reviewed by Joseph Pecoraro.
3268
3269         * WebCoreSupport/WebInspectorClient.mm:
3270         (-[WebInspectorWindowController destroyInspectorView:]):
3271
3272 2015-02-14  Alexey Proskuryakov  <ap@apple.com>
3273
3274         rel="noreferrer" should make window.opener null
3275         https://bugs.webkit.org/show_bug.cgi?id=141579
3276
3277         Reviewed by Darin Adler.
3278
3279         * WebView/WebPDFView.mm:
3280         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Updated for a new WebCore
3281         function signature. There is no rel="noreferrer" in PDF, so we can just always allow.
3282
3283 2015-02-05  Youenn Fablet  <youenn.fablet@crf.canon.fr> and Xabier Rodriguez Calvar <calvaris@igalia.com>
3284
3285         [Streams API] Implement a barebone ReadableStream interface
3286         https://bugs.webkit.org/show_bug.cgi?id=141045
3287
3288         Reviewed by Benjamin Poulain.
3289
3290         * Configurations/FeatureDefines.xcconfig:
3291
3292 2015-02-03  Enrica Casucci  <enrica@apple.com>
3293
3294         [iOS] Add support for deleteFromInputWithFlags.
3295         https://bugs.webkit.org/show_bug.cgi?id=141216
3296         rdar://problem/19130081
3297
3298         Reviewed by Benjamin Poulain.
3299
3300         Adopts the new method as soon as it is available.
3301         The patch also removes some obsolete code used for staging.
3302
3303         * WebView/WebHTMLView.mm:
3304         (-[WebHTMLView _handleEditingKeyEvent:]):
3305
3306 2015-02-02  Chris Dumez  <cdumez@apple.com>
3307
3308         Access MemoryCache singleton using MemoryCache::singleton()
3309         https://bugs.webkit.org/show_bug.cgi?id=141104
3310
3311         Reviewed by Andreas Kling.
3312
3313         Access MemoryCache singleton using MemoryCache::singleton() static
3314         member function, instead of a free function, as per the recent
3315         coding style discussion on WebKit-dev.
3316
3317 2015-02-01  Chris Dumez  <cdumez@apple.com>
3318
3319         Use more references in HistoryItem
3320         https://bugs.webkit.org/show_bug.cgi?id=141133
3321
3322         Reviewed by Andreas Kling.
3323
3324         Use more references in HistoryItem instead of pointers.
3325
3326 2015-01-31  Sam Weinig  <sam@webkit.org>
3327
3328         Remove even more Mountain Lion support
3329         https://bugs.webkit.org/show_bug.cgi?id=141124
3330
3331         Reviewed by Alexey Proskuryakov.
3332
3333         * Configurations/Base.xcconfig:
3334         * Configurations/DebugRelease.xcconfig:
3335         * Configurations/FeatureDefines.xcconfig:
3336         * Configurations/Version.xcconfig:
3337         * Configurations/WebKitLegacy.xcconfig:
3338
3339 2015-01-30  Eric Carlson  <eric.carlson@apple.com>
3340
3341         Remove MediaPlayerProxy.h
3342         https://bugs.webkit.org/show_bug.cgi?id=141087
3343
3344         Reviewed by Sam Weinig.
3345
3346         * MigrateHeaders.make: Don't need to copy MediaPlayerProxy.h.
3347         * Plugins/WebPluginController.mm: Don't include MediaPlayerProxy.h.
3348
3349 2015-01-30  Chris Dumez  <cdumez@apple.com>
3350
3351         Rename shared() static member functions to singleton() for singleton classes.
3352         https://bugs.webkit.org/show_bug.cgi?id=141088
3353
3354         Reviewed by Ryosuke Niwa and Benjamin Poulain.
3355
3356         Rename shared() static member functions to singleton() for singleton
3357         classes as per the recent coding style change.
3358
3359 2015-01-29  Beth Dakin  <bdakin@apple.com>
3360
3361         Remove more Mountain Lion code from WebKit
3362         https://bugs.webkit.org/show_bug.cgi?id=141050
3363
3364         Reviewed by Anders Carlsson.
3365
3366         * History/WebHistory.mm:
3367         (getDayBoundaries):
3368         * Panels/WebAuthenticationPanel.m:
3369         (-[WebAuthenticationPanel cancel:]):
3370         (-[WebAuthenticationPanel logIn:]):
3371         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]):
3372         * WebCoreSupport/WebSystemInterface.mm:
3373         (InitWebCoreSystemInterface):
3374         * WebView/WebFrameView.mm:
3375         * WebView/WebPreferences.mm:
3376         (+[WebPreferences initialize]):
3377         (needsScreenFontsEnabledQuirk):
3378         * WebView/WebView.mm:
3379         (+[WebView registerForMemoryNotifications]):
3380         (-[WebView _preferencesChanged:]):
3381         (+[WebView initialize]):
3382         (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
3383         (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
3384         (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
3385
3386 2015-01-29  Sam Weinig  <sam@webkit.org>
3387
3388         Remove support for screen font substitution
3389         https://bugs.webkit.org/show_bug.cgi?id=141038
3390
3391         Reviewed by Tim Horton.
3392
3393         * Misc/WebKitNSStringExtras.mm:
3394         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3395         (-[NSString _web_widthWithFont:]):
3396         * Misc/WebStringTruncator.mm:
3397         (fontFromNSFont):
3398         Update for new signature of the FontPlatformData constructor, which no longer cares about
3399         whether to use printer fonts.
3400
3401         * WebView/WebPreferenceKeysPrivate.h:
3402         Remove the WebKitScreenFontSubstitutionEnabledKey key.
3403
3404         * WebView/WebPreferences.mm:
3405         (+[WebPreferences initialize]):
3406         Remove support for WebKitScreenFontSubstitutionEnabledKey.
3407
3408         (needsScreenFontsEnabledQuirk): Deleted.
3409         Remove support for the Mountain Lion era 1-Password quirk.
3410
3411         (-[WebPreferences screenFontSubstitutionEnabled]): Deleted.
3412         (-[WebPreferences setScreenFontSubstitutionEnabled:]): Deleted.
3413         * WebView/WebPreferencesPrivate.h:
3414         * WebView/WebView.mm:
3415         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3416         (-[WebView _preferencesChanged:]):
3417         Remove support for the screen font substitution setting.
3418
3419 2015-01-29  Chris Dumez  <cdumez@apple.com>
3420
3421         Clean up / modernize PageCache class
3422         https://bugs.webkit.org/show_bug.cgi?id=141009
3423
3424         Reviewed by Darin Adler.
3425
3426         Clean up / modernize PageCache class.
3427
3428         * History/WebBackForwardList.mm:
3429         (-[WebBackForwardList pageCacheSize]):
3430         * WebView/WebView.mm:
3431         (-[WebView _loadBackForwardListFromOtherView:]):
3432         (-[WebView goToBackForwardItem:]):
3433         (+[WebView _setCacheModel:]):
3434
3435 2015-01-28  Beth Dakin  <bdakin@apple.com>
3436
3437         Remove Mountain Lion code from WebKit and WebKit2
3438         https://bugs.webkit.org/show_bug.cgi?id=141010
3439
3440         Reviewed by Sam Weinig.
3441
3442         * DOM/WebDOMOperations.mm:
3443         (toNSEventPhase):
3444         * WebView/WebHTMLView.mm:
3445         (isQuickLookEvent):
3446
3447 2015-01-28  Dana Burkart  <dburkart@apple.com>
3448
3449         Move ASan flag settings from DebugRelease.xcconfig to Base.xcconfig
3450         https://bugs.webkit.org/show_bug.cgi?id=136765
3451
3452         Reviewed by Alexey Proskuryakov.
3453
3454         * Configurations/Base.xcconfig:
3455         * Configurations/DebugRelease.xcconfig:
3456
3457 2015-01-28  Chris Dumez  <cdumez@apple.com>
3458
3459         Fix typo in markPagesForVistedLinkStyleRecalc()
3460         https://bugs.webkit.org/show_bug.cgi?id=140977
3461
3462         Reviewed by Darin Adler.
3463
3464         * WebCoreSupport/WebVisitedLinkStore.mm:
3465         (WebVisitedLinkStore::removeAllVisitedLinks):
3466         (WebVisitedLinkStore::removeVisitedLink):
3467         (WebVisitedLinkStore::addVisitedLinkHash):
3468
3469 2015-01-28  Chris Dumez  <cdumez@apple.com>
3470
3471         Rename pageCache() to PageCache::shared() and return a reference
3472         https://bugs.webkit.org/show_bug.cgi?id=140983
3473
3474         Reviewed by Andreas Kling.
3475
3476         Rename pageCache() to PageCache::shared() as this is a singleton class
3477         and have it return a reference instead of a pointer.
3478
3479         * History/WebBackForwardList.mm:
3480         (-[WebBackForwardList pageCacheSize]):
3481         * Misc/WebCoreStatistics.mm:
3482         (+[WebCoreStatistics cachedPageCount]):
3483         (+[WebCoreStatistics cachedFrameCount]):
3484         * WebCoreSupport/WebVisitedLinkStore.mm:
3485         (WebVisitedLinkStore::removeAllVisitedLinks):
3486         (WebVisitedLinkStore::removeVisitedLink):
3487         (WebVisitedLinkStore::addVisitedLinkHash):
3488         * WebView/WebView.mm:
3489         (+[WebView _setCacheModel:]):
3490
3491 2015-01-27  Alexey Proskuryakov  <ap@apple.com>
3492
3493         More build fixes for newer clang.
3494
3495         Rubber-stamped by Anders Carlsson.
3496
3497         Marked a deprecated accessibility method as such.
3498
3499         * WebView/WebFrame.mm:
3500         (-[WebFrame accessibilityRoot]):
3501
3502 2015-01-27  Beth Dakin  <bdakin@apple.com>
3503
3504         Immediate action gesture recognizer still doesn't work well with IB
3505         https://bugs.webkit.org/show_bug.cgi?id=140967
3506         -and corresponding-
3507         rdar://problem/19621509
3508
3509         Reviewed by Tim Horton.
3510
3511         We should add (or remove) the gesture recognizer in viewDidMoveToWindow because 
3512         initWithFrame it too early and IB might mess with it.
3513         * WebView/WebImmediateActionController.h:
3514         * WebView/WebImmediateActionController.mm:
3515         (-[WebImmediateActionController immediateActionRecognizer]):
3516         * WebView/WebView.mm:
3517         (-[WebView _commonInitializationWithFrameName:groupName:]):
3518         (-[WebView viewDidMoveToWindow]):
3519
3520 2015-01-27  Dan Bernstein  <mitz@apple.com>
3521
3522         Fixed building projects that import WebView.h with WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS.
3523
3524         Rubber-stamped by Anders Carlsson.
3525
3526         * WebView/WebView.h: Added forward declarations of the protocols.
3527
3528 2015-01-26  Anders Carlsson  <andersca@apple.com>
3529
3530         Make it easy to test enabling formal delegate protocols
3531         https://bugs.webkit.org/show_bug.cgi?id=140892
3532
3533         Reviewed by Dan Bernstein.
3534
3535         Add an WK_ENABLE_FORMAL_DELEGATE_PROTOCOLS define that controls whether delegates should be formal protocols.
3536
3537         * Misc/WebDownload.h:
3538         * WebView/WebFrameLoadDelegate.h:
3539         * WebView/WebPolicyDelegate.h:
3540         * WebView/WebResourceLoadDelegate.h:
3541         * WebView/WebUIDelegate.h:
3542         * WebView/WebView.h:
3543
3544 2015-01-26  Chris Dumez  <cdumez@apple.com>
3545
3546         Rename Document::body() to Document::bodyOrFrameset() for clarity
3547         https://bugs.webkit.org/show_bug.cgi?id=140902
3548
3549         Reviewed by Andreas Kling.
3550
3551         Rename Document::body() to Document::bodyOrFrameset() for clarity. This
3552         method does not necessarily return an HTMLBodyElement, it can also
3553         return a frameset as per the specification:
3554         http://www.w3.org/TR/html5/dom.html#dom-tree-accessors
3555
3556         This method is often misused internally (the caller is only interested
3557         in the <body> element). I will fix these instances in a follow-up patch,
3558         this patch is only renaming mechanically.
3559
3560 2015-01-26  Chris Dumez  <cdumez@apple.com>
3561
3562         First argument to DOM traversal functions should be a reference
3563         https://bugs.webkit.org/show_bug.cgi?id=140895
3564
3565         Reviewed by Antti Koivisto.
3566
3567         First argument to DOM traversal functions should be a reference instead
3568         of a pointer as it is dereferenced without null-check.
3569
3570 2015-01-26  Myles C. Maxfield  <mmaxfield@apple.com>
3571
3572         [iOS] [SVG -> OTF Converter] Flip the switch off on iOS
3573         https://bugs.webkit.org/show_bug.cgi?id=140860
3574
3575         Reviewed by Darin Adler.
3576
3577         The fonts it makes are grotesque. (See what I did there? Typographic
3578         humor is the best humor.)
3579
3580         * Configurations/FeatureDefines.xcconfig:
3581
3582 2015-01-23  Timothy Horton  <timothy_horton@apple.com>
3583
3584         QLPreviewMenuItem popovers don't close when the page scrolls