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