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