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