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