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