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