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