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