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