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