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