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