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