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