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