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