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