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