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