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