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