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