51cacba4f7f22fe3d2a1b83fcf131883ecf32ad6
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2016-04-18  Anders Carlsson  <andersca@apple.com>
2
3         Fix build with newer versions of clang.
4         rdar://problem/25749769
5
6         * WebCoreSupport/WebContextMenuClient.mm:
7         * WebView/WebHTMLView.mm:
8         Forward declare some AppKit IPI.
9
10 2016-04-18  Tina Liu  <iting_liu@apple.com>
11
12         Overrode a virtual function of WebCore::PluginStrategy
13         https://bugs.webkit.org/show_bug.cgi?id=156540
14
15         Reviewed by Anders Carlsson.
16
17         * WebCoreSupport/WebPlatformStrategies.h:
18         * WebCoreSupport/WebPlatformStrategies.mm:
19         (WebPlatformStrategies::setPrivateBrowsingPluginLoadClientPolicy):
20
21 2016-04-18  Brent Fulgham  <bfulgham@apple.com>
22
23         CSP: Remove stubs for dynamically-added favicons (via link rel="icon")
24         https://bugs.webkit.org/show_bug.cgi?id=153151
25         <rdar://problem/24383176>
26
27         Reviewed by Darin Adler.
28
29         Remove the unused dynamic favicon code and tests.
30
31         * WebCoreSupport/WebFrameLoaderClient.h:
32         * WebCoreSupport/WebFrameLoaderClient.mm:
33         (WebFrameLoaderClient::dispatchDidChangeIcons): Deleted.
34
35 2016-04-15  Darin Adler  <darin@apple.com>
36
37         Reduce use of Deprecated::ScriptXXX classes
38         https://bugs.webkit.org/show_bug.cgi?id=156632
39
40         Reviewed by Alex Christensen.
41
42         * WebView/WebFrame.mm:
43         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]): Use references instead
44         of pointers.
45         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]): Updated
46         since return value is a JSValue.
47         * WebView/WebView.mm:
48         (-[WebView aeDescByEvaluatingJavaScriptFromString:]): Ditto.
49
50 2016-04-14  Brent Fulgham  <bfulgham@apple.com>
51
52         Make <a download> a runtime enabled option
53         https://bugs.webkit.org/show_bug.cgi?id=156583
54         <rdar://problem/25733449>
55
56         Reviewed by Alex Christensen.
57
58         Add a download attribute runtime flag based on preferences.
59         Disable the download attribute by default.
60
61         * WebView/WebPreferenceKeysPrivate.h:
62         * WebView/WebPreferences.mm:
63         (+[WebPreferences initialize]):
64         (-[WebPreferences setFetchAPIEnabled:]):
65         (-[WebPreferences downloadAttributeEnabled]):
66         (-[WebPreferences setDownloadAttributeEnabled:]):
67         * WebView/WebPreferencesPrivate.h:
68         * WebView/WebView.mm:
69         (-[WebView _preferencesChanged]): Set the runtime flag properly
70         based on the user preferences.
71
72 2016-04-09  Gavin Barraclough  <barraclough@apple.com>
73
74         WebKit should adopt journal_mode=wal for all SQLite databases.
75         https://bugs.webkit.org/show_bug.cgi?id=133496
76
77         Reviewed by Darin Adler.
78
79         * Storage/WebDatabaseManagerPrivate.h:
80             - renamed deleteAllDatabases -> deleteAllDatabasesImmediately.
81
82 2016-04-05  Oliver Hunt  <oliver@apple.com>
83
84         Remove compile time define for SEPARATED_HEAP
85         https://bugs.webkit.org/show_bug.cgi?id=155508
86
87         Reviewed by Mark Lam.
88
89         * Configurations/FeatureDefines.xcconfig:
90
91 2016-04-08  Sam Weinig  <sam@webkit.org>
92
93         Remove support for custom target picker actions
94         <rdar://problem/24987783>
95         https://bugs.webkit.org/show_bug.cgi?id=156434
96
97         Reviewed by Eric Carlson.
98
99         This mostly entailed rolling out r197429 and r197569.
100
101         * WebCoreSupport/WebChromeClient.h:
102         * WebCoreSupport/WebChromeClient.mm:
103         (WebChromeClient::removePlaybackTargetPickerClient):
104         (WebChromeClient::showPlaybackTargetPicker):
105         * WebView/WebMediaPlaybackTargetPicker.h:
106         * WebView/WebMediaPlaybackTargetPicker.mm:
107         (WebMediaPlaybackTargetPicker::removePlaybackTargetPickerClient):
108         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
109         (WebMediaPlaybackTargetPicker::playbackTargetPickerClientStateDidChange):
110         (WebMediaPlaybackTargetPicker::setShouldPlayToPlaybackTarget):
111         (WebMediaPlaybackTargetPicker::invalidate):
112         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected): Deleted.
113         * WebView/WebView.mm:
114         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
115         (-[WebView _playbackTargetPickerClientStateDidChange:state:]):
116
117 2016-04-07  Joseph Pecoraro  <pecoraro@apple.com>
118
119         Remove ENABLE(ENABLE_ES6_CLASS_SYNTAX) guards
120         https://bugs.webkit.org/show_bug.cgi?id=156384
121
122         Reviewed by Ryosuke Niwa.
123
124         * Configurations/FeatureDefines.xcconfig:
125
126 2016-04-07  Brian Burg  <bburg@apple.com>
127
128         CookieJar should support adding synthetic cookies for developer tools
129         https://bugs.webkit.org/show_bug.cgi?id=156091
130         <rdar://problem/25581340>
131
132         Reviewed by Timothy Hatcher.
133
134         * WebCoreSupport/WebPlatformStrategies.h:
135         * WebCoreSupport/WebPlatformStrategies.mm:
136         (WebPlatformStrategies::addCookie):
137         Add new method override.
138
139 2016-04-06  Alex Christensen  <achristensen@webkit.org>
140
141         Fix CMake DumpRenderTree
142         https://bugs.webkit.org/show_bug.cgi?id=156305
143
144         Reviewed by Daniel Bates.
145
146         * WebKitPrefix.h:
147
148 2016-04-05  Beth Dakin  <bdakin@apple.com>
149
150         Make requestCandidatesForSelection available on any EditorClient
151         https://bugs.webkit.org/show_bug.cgi?id=156253
152         -and corresponding-
153         rdar://problem/24661147
154
155         Reviewed by Dean Jackson.
156
157         * WebCoreSupport/WebEditorClient.h:
158
159 2016-04-05  Youenn Fablet  <youenn.fablet@crf.canon.fr>
160
161         [Fetch API] Add a runtime flag to fetch API and related constructs
162         https://bugs.webkit.org/show_bug.cgi?id=156113
163  
164         Reviewed by Alex Christensen.
165
166         Add a fetch API runtime flag based on preferences.
167         Disable fetch API by default.
168  
169         * WebView/WebPreferenceKeysPrivate.h:
170         * WebView/WebPreferences.mm:
171         (+[WebPreferences initialize]):
172         (-[WebPreferences setCustomElementsEnabled:]):
173         (-[WebPreferences fetchAPIEnabled]):
174         (-[WebPreferences setFetchAPIEnabled:]):
175         * WebView/WebPreferencesPrivate.h:
176         * WebView/WebView.mm:
177         (-[WebView _preferencesChanged:]):
178         (-[WebView preferencesIdentifier]):
179         (-[WebView setUIDelegate:]):
180
181 2016-04-05  Antoine Quint  <graouts@apple.com>
182
183         [WebGL2] Turn the ENABLE_WEBGL2 flag on
184         https://bugs.webkit.org/show_bug.cgi?id=156061
185         <rdar://problem/25463193>
186
187         Reviewed by Alex Christensen.
188
189         * Configurations/FeatureDefines.xcconfig:
190
191 2016-04-05  Antoine Quint  <graouts@apple.com>
192
193         [WebGL2] Allow enabling WebGL2 with a runtime flag
194         https://bugs.webkit.org/show_bug.cgi?id=156166
195         <rdar://problem/25526929>
196
197         Set the WebGL2 runtime flag based on preferences, disabled by default.
198
199         Reviewed by Dean Jackson.
200
201         * WebView/WebPreferenceKeysPrivate.h:
202         * WebView/WebPreferences.mm:
203         (+[WebPreferences initialize]):
204         (-[WebPreferences webGL2Enabled]):
205         (-[WebPreferences setWebGL2Enabled:]):
206         * WebView/WebPreferencesPrivate.h:
207         * WebView/WebView.mm:
208         (-[WebView _preferencesChanged:]):
209
210 2016-04-01  Alex Christensen  <achristensen@webkit.org>
211
212         Compile DumpRenderTree with CMake on Mac
213         https://bugs.webkit.org/show_bug.cgi?id=156088
214
215         Reviewed by Brent Fulgham.
216
217         * Misc/WebKit.h:
218         Alphabetize headers.
219
220 2016-03-31  Jeremy Jones  <jeremyj@apple.com>
221
222         mediaShouldUsePersistentCache() is redundant. Use Page::usesEphemeralSession() instead.
223         https://bugs.webkit.org/show_bug.cgi?id=155924
224
225         Reviewed by Simon Fraser.
226
227         Remove mediaShouldUsePersistentCache machinery as it is redundant.
228
229         * WebCoreSupport/WebChromeClient.h:
230         * WebCoreSupport/WebChromeClient.mm:
231         (WebChromeClient::mediaShouldUsePersistentCache): Deleted.
232
233 2016-03-30  Ada Chan  <adachan@apple.com>
234
235         Add the new "toggle enhanced fullscreen" context menu item to the video context menu on supporting platforms.
236         https://bugs.webkit.org/show_bug.cgi?id=156031
237
238         Reviewed by Eric Carlson.
239
240         * WebView/WebHTMLView.mm:
241         (toAction):
242         (toTag):
243         * WebView/WebUIDelegatePrivate.h:
244
245 2016-03-24  Said Abou-Hallawa  <sabouhallawa@apple,com>
246
247         Change NativeImagePtr for CG to be RetainPtr<CGImageRef>
248         https://bugs.webkit.org/show_bug.cgi?id=155412
249
250         Reviewed by Darin Adler.
251
252         * Misc/WebCache.mm:
253         (+[WebCache addImageToCache:forURL:forFrame:]):
254         WebCore::MemoryCache() is taking an rvalue NativeImagePtr. We need to create
255         NativeImagePtr from the image raw pointer when calling this function.
256
257 2016-03-24  Tim Horton  <timothy_horton@apple.com>
258
259         Fix some new PDFKit-related warnings
260         https://bugs.webkit.org/show_bug.cgi?id=155847
261         <rdar://problem/25340312>
262
263         Reviewed by Anders Carlsson.
264
265         * WebView/WebPDFView.mm:
266         (-[WebPDFView setViewState:]):
267         * WebView/WebPreferences.mm:
268         (-[WebPreferences PDFDisplayMode]):
269         PDFDisplayMode is now a real enum.
270
271 2016-03-23  Anders Carlsson  <andersca@apple.com>
272
273         Crash when using KVO from within -[WebView initWithCoder:]
274         https://bugs.webkit.org/show_bug.cgi?id=155816
275         rdar://problem/17073265
276
277         Reviewed by Dan Bernstein.
278
279         Get rid of the observationInfo getter and setter. It's not clear why they were added (in 2003),
280         and the methods on NSObject are good enough for us.
281
282         * WebView/WebView.mm:
283         (-[WebView setObservationInfo:]): Deleted.
284         (-[WebView observationInfo]): Deleted.
285         * WebView/WebViewData.h:
286
287 2016-03-22  Beth Dakin  <bdakin@apple.com>
288
289         Advanced spell checking should be guarded behind 
290         HAVE(ADVANCED_SPELL_CHECKING)
291         https://bugs.webkit.org/show_bug.cgi?id=155738
292
293         Reviewed by Geoff Garen.
294
295         * WebCoreSupport/WebEditorClient.mm:
296         (insertionPointFromCurrentSelection):
297         (WebEditorClient::checkTextOfParagraph):
298         (WebEditorClient::getGuessesForWord):
299         (WebEditorClient::requestCandidatesForSelection):
300         (WebEditorClient::handleRequestedCandidates):
301         (WebEditorClient::requestCheckingOfString):
302         * WebKitPrefix.h:
303         * WebView/WebHTMLView.mm:
304         (-[WebHTMLView insertText:]):
305
306 2016-03-20  Dan Bernstein  <mitz@apple.com>
307
308         [Mac] Determine TARGET_MAC_OS_X_VERSION_MAJOR from MACOSX_DEPLOYMENT_TARGET rather than from MAC_OS_X_VERSION_MAJOR
309         https://bugs.webkit.org/show_bug.cgi?id=155707
310         <rdar://problem/24980691>
311
312         Reviewed by Darin Adler.
313
314         * Configurations/Base.xcconfig: Set TARGET_MAC_OS_X_VERSION_MAJOR based on the last
315           component of MACOSX_DEPLOYMENT_TARGET.
316         * Configurations/DebugRelease.xcconfig: For engineering builds, preserve the behavior of
317           TARGET_MAC_OS_X_VERSION_MAJOR being the host’s OS version.
318
319 2016-03-20  Darin Adler  <darin@apple.com>
320
321         Disable Caches in Safari's Develop menu does not disable caches.
322         https://bugs.webkit.org/show_bug.cgi?id=64483
323
324         Reviewed by Antti Koivisto.
325
326         Removed unneeded WebPreferences property; we don't need this for Legacy WebKit.
327
328         * WebView/WebPreferenceKeysPrivate.h: Removed
329         WebKitResourceCachingDisabledPreferenceKey.
330         * WebView/WebPreferences.mm:
331         (-[WebPreferences isResourceCachingDisabled]): Deleted.
332         (-[WebPreferences setResourceCachingDisabled:]): Deleted.
333         * WebView/WebPreferencesPrivate.h: Removed resourceCachingDisabled property.
334         * WebView/WebView.mm:
335         (-[WebView _preferencesChanged:]): Removed code to update resourceCachingDisabled.
336
337 2016-03-20  Dan Bernstein  <mitz@apple.com>
338
339         Update build settings
340
341         Rubber-stamped by Andy Estes.
342
343         * Configurations/DebugRelease.xcconfig:
344         * Configurations/FeatureDefines.xcconfig:
345         * Configurations/Version.xcconfig:
346
347 2016-03-18  Darin Adler  <darin@apple.com>
348
349         Disable Caches in Safari's Develop menu does not disable caches.
350         https://bugs.webkit.org/show_bug.cgi?id=64483
351
352         Reviewed by Antti Koivisto.
353
354         * WebView/WebPreferenceKeysPrivate.h: Added ResourceCachingDisabled.
355         * WebView/WebPreferences.mm:
356         (-[WebPreferences isResourceCachingDisabled]): Added.
357         (-[WebPreferences setResourceCachingDisabled:]): Added.
358         * WebView/WebPreferencesPrivate.h: Added resourceCachingDisabled.
359         * WebView/WebView.mm:
360         (-[WebView _preferencesChanged:]): Push resourceCachingDisabled into WebCore.
361
362 2016-03-17  Csaba Osztrogonác  <ossy@webkit.org>
363
364         [cmake][Mac] Unreviewed speculative buildfix after r198088. Just for fun.
365
366         * WebView/WebView.mm:
367         (-[WebView _preferencesChanged:]):
368
369 2016-03-17  Andy Estes  <aestes@apple.com>
370
371         [Mac] Enable Content-Disposition: attachment sandbox
372         https://bugs.webkit.org/show_bug.cgi?id=155578
373         <rdar://problem/21886326>
374
375         Reviewed by Dan Bernstein.
376
377         Covered by the existing set of attachment sandbox tests, which have always been run on Mac.
378
379         * WebView/WebView.mm:
380         (-[WebView _commonInitializationWithFrameName:groupName:]):
381
382 2016-03-16  Beth Dakin  <bdakin@apple.com>
383
384         Provide NSSpellChecker spellChecking methods with the current insertion point
385         https://bugs.webkit.org/show_bug.cgi?id=155532
386         -and corresponding-
387         rdar://problem/24066952
388
389         Reviewed by Simon Fraser.
390
391         Extract the insertion point from the VisibleSelection that WebCore has 
392         passed. 
393         * WebCoreSupport/WebEditorClient.h:
394         (WebEditorClient::getGuessesForWord):
395         * WebCoreSupport/WebEditorClient.mm:
396         (WebEditorClient::checkTextOfParagraph):
397         (insertionPointFromCurrentSelection):
398         (WebEditorClient::getGuessesForWord):
399         (WebEditorClient::requestCheckingOfString):
400
401 2016-03-16  Chris Dumez  <cdumez@apple.com>
402
403         Unreviewed, rolling out r198235, r198240, r198241, and
404         r198252.
405
406         Causing crashes on ARM
407
408         Reverted changesets:
409
410         "Remove compile time define for SEPARATED_HEAP"
411         https://bugs.webkit.org/show_bug.cgi?id=155508
412         http://trac.webkit.org/changeset/198235
413
414         "Gardening: build fix after r198235."
415         http://trac.webkit.org/changeset/198240
416
417         "Build fix."
418         http://trac.webkit.org/changeset/198241
419
420         "Rename performJITMemcpy to something more inline with our
421         normal webkit function names"
422         https://bugs.webkit.org/show_bug.cgi?id=155525
423         http://trac.webkit.org/changeset/198252
424
425 2016-03-16  Jiewen Tan  <jiewen_tan@apple.com>
426
427         URL Parsing should signal failure for illegal IDN
428         https://bugs.webkit.org/show_bug.cgi?id=154945
429         <rdar://problem/8014795>
430
431         Reviewed by Brent Fulgham.
432
433         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
434         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
435
436         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
437         deprecated as they ignore URL parsing failure.
438
439         * History/WebHistoryItem.mm:
440         (-[WebHistoryItem initFromDictionaryRepresentation:]):
441         * Misc/WebKitErrors.m:
442         (+[NSError _webKitErrorWithCode:failingURL:]):
443         * Misc/WebNSFileManagerExtras.mm:
444         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
445         * Misc/WebNSPasteboardExtras.mm:
446         (-[NSPasteboard _web_bestURL]):
447         * Misc/WebNSURLExtras.h:
448         * Misc/WebNSURLExtras.mm:
449         (+[NSURL _web_URLWithUserTypedString:]):
450         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
451         (+[NSURL _webkit_URLWithUserTypedString:]):
452         (-[NSString _web_decodeHostName]):
453         (-[NSString _web_encodeHostName]):
454         (-[NSString _webkit_decodeHostName]):
455         (-[NSString _webkit_encodeHostName]):
456         * Panels/WebAuthenticationPanel.m:
457         (-[WebAuthenticationPanel setUpForChallenge:]):
458         * WebCoreSupport/WebEditorClient.mm:
459         (WebEditorClient::canonicalizeURLString):
460
461 2016-03-15  Jer Noble  <jer.noble@apple.com>
462
463         [ios-sim debug] API test WebKit1.AudioSessionCategoryIOS timing out
464         https://bugs.webkit.org/show_bug.cgi?id=155275
465
466         Reviewed by Alexey Proskuryakov.
467
468         The videoPlaybackRequiresUserGesture and audioPlaybackRequiresUserGesture should both defalut to
469         NO, so that legacy clients of -[UIWebView setMediaPlaybackRequiresUserAction:] continue to work
470         as expected.
471
472         * WebView/WebPreferences.mm:
473         (+[WebPreferences initialize]):
474
475 2016-03-15  Oliver Hunt  <oliver@apple.com>
476
477         Remove compile time define for SEPARATED_HEAP
478         https://bugs.webkit.org/show_bug.cgi?id=155508
479
480         Reviewed by Mark Lam.
481
482         Remove the feature define.
483
484         * Configurations/FeatureDefines.xcconfig:
485
486 2016-03-15  Chris Dumez  <cdumez@apple.com>
487
488         Unreviewed, rolling out r198203.
489
490         Favorites view is no longer loading on iOS
491
492         Reverted changeset:
493
494         "URL Parsing should signal failure for illegal IDN"
495         https://bugs.webkit.org/show_bug.cgi?id=154945
496         http://trac.webkit.org/changeset/198203
497
498 2016-03-15  Jiewen Tan  <jiewen_tan@apple.com>
499
500         URL Parsing should signal failure for illegal IDN
501         https://bugs.webkit.org/show_bug.cgi?id=154945
502         <rdar://problem/8014795>
503
504         Reviewed by Brent Fulgham.
505
506         In this patch, we add new SPIs _webkit_URLWithUserTypedString, _webkit_decodeHostName and
507         _webkit_encodeHostName which will return nil while dealing with illegal IDN.
508
509         Old SPIs _web_URLWithUserTypedString, _web_decodeHostName and _web_encodeHostName are marked
510         deprecated as they ignore URL parsing failure.
511
512         * History/WebHistoryItem.mm:
513         (-[WebHistoryItem initFromDictionaryRepresentation:]):
514         * Misc/WebKitErrors.m:
515         (+[NSError _webKitErrorWithCode:failingURL:]):
516         * Misc/WebNSFileManagerExtras.mm:
517         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
518         * Misc/WebNSPasteboardExtras.mm:
519         (-[NSPasteboard _web_bestURL]):
520         * Misc/WebNSURLExtras.h:
521         * Misc/WebNSURLExtras.mm:
522         (+[NSURL _web_URLWithUserTypedString:]):
523         (+[NSURL _webkit_URLWithUserTypedString:relativeToURL:]):
524         (+[NSURL _webkit_URLWithUserTypedString:]):
525         (-[NSString _web_decodeHostName]):
526         (-[NSString _web_encodeHostName]):
527         (-[NSString _webkit_decodeHostName]):
528         (-[NSString _webkit_encodeHostName]):
529         * Panels/WebAuthenticationPanel.m:
530         (-[WebAuthenticationPanel setUpForChallenge:]):
531         * WebCoreSupport/WebEditorClient.mm:
532         (WebEditorClient::canonicalizeURLString):
533
534 2016-03-14  Chris Dumez  <cdumez@apple.com>
535
536         Unreviewed, rolling out r197981.
537
538         Caused a massive PLT regression on Mac.
539
540         Reverted changeset:
541
542         "Font antialiasing (smoothing) changes when elements are
543         rendered into compositing layers"
544         https://bugs.webkit.org/show_bug.cgi?id=23364
545         http://trac.webkit.org/changeset/197981
546
547 2016-03-14  Sam Weinig  <sam@webkit.org>
548
549         Add a baseURL parameter to _WKUserStyleSheet
550         https://bugs.webkit.org/show_bug.cgi?id=155219
551
552         Reviewed by Tim Horton.
553
554         * WebView/WebView.mm:
555         (-[WebView _commonInitializationWithFrameName:groupName:]):
556         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
557         (-[WebView setGroupName:]):
558         Update to account for the name change from UserContentController -> UserContentProvider.
559
560 2016-03-14  Joonghun Park  <jh718.park@samsung.com>
561
562         Purge PassRefPtr from ArrayBuffer, ArchiveResource, Pasteboard, LegacyWebArchive and DataObjectGtk
563         https://bugs.webkit.org/show_bug.cgi?id=150497
564
565         Reviewed by Darin Adler.
566
567         * DOM/WebDOMOperations.mm:
568         (-[DOMNode webArchive]):
569         (-[DOMNode webArchiveByFilteringSubframes:]):
570         * WebCoreSupport/WebPlatformStrategies.h:
571         * WebCoreSupport/WebPlatformStrategies.mm:
572         (WebPlatformStrategies::bufferForType):
573         (WebPlatformStrategies::readBufferFromPasteboard):
574         * WebView/WebArchive.mm:
575         (-[WebArchive initWithData:]):
576         * WebView/WebDataSource.mm:
577         (-[WebDataSource webArchive]):
578         (-[WebDataSource addSubresource:]):
579         * WebView/WebResource.mm:
580         (-[WebResource encodeWithCoder:]):
581         (-[WebResource data]):
582         (-[WebResource _stringValue]):
583         (-[WebResource _initWithCoreResource:]): Deleted.
584
585 2016-03-14  Oliver Hunt  <oliver@apple.com>
586
587         Temporarily disable the separated heap.
588         https://bugs.webkit.org/show_bug.cgi?id=155472
589
590         Reviewed by Geoffrey Garen.
591
592         Temporarily disable this.
593
594         * Configurations/FeatureDefines.xcconfig:
595
596 2016-03-14  Anders Carlsson  <andersca@apple.com>
597
598         Fix build.
599
600         Ignore nullability warnings, create an empty PDF selection.
601
602         * WebView/WebPDFView.mm:
603         (-[WebPDFView centerSelectionInVisibleArea:]):
604         (-[WebPDFView searchFor:direction:caseSensitive:wrap:startInSelection:]):
605         (+[WebPDFView _PDFSelectionClass]):
606         (-[WebPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]):
607
608 2016-03-13  Joseph Pecoraro  <pecoraro@apple.com>
609
610         Remove ENABLE(ES6_TEMPLATE_LITERAL_SYNTAX) guards
611         https://bugs.webkit.org/show_bug.cgi?id=155417
612
613         Reviewed by Yusuke Suzuki.
614
615         * Configurations/FeatureDefines.xcconfig:
616
617 2016-03-13  Dean Jackson  <dino@apple.com>
618
619         <attachment> should be a runtime-enabled feature
620         https://bugs.webkit.org/show_bug.cgi?id=155413
621         <rdar://problem/25120753>
622
623         Reviewed by Sam Weinig and Anders Carlsson.
624
625         Add an internal setting on WebPreferences
626         to enable the <attachment> element support.
627
628         * WebView/WebPreferenceKeysPrivate.h:
629         * WebView/WebPreferences.mm:
630         (+[WebPreferences initialize]):
631         (-[WebPreferences attachmentElementEnabled]):
632         (-[WebPreferences setAttachmentElementEnabled:]):
633         * WebView/WebPreferencesPrivate.h:
634         * WebView/WebView.mm:
635         (-[WebView _preferencesChanged:]):
636
637 2016-03-12  Sam Weinig  <sam@webkit.org>
638
639         WebKit can easily crash below NetworkSession::dataTaskForIdentifier() with NSURLSession enabled
640         <rdar://problem/25129946>
641         https://bugs.webkit.org/show_bug.cgi?id=155401
642
643         Reviewed by Alex Christensen.
644
645         * WebCoreSupport/WebFrameNetworkingContext.mm:
646         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
647         Pass a SessionID to NetworkStorageSession::createPrivateBrowsingSession().
648
649 2016-03-12  Myles C. Maxfield  <mmaxfield@apple.com>
650
651         Delete dead SVG Font code
652         https://bugs.webkit.org/show_bug.cgi?id=154718
653
654         Reviewed by Antti Koivisto.
655
656         * Configurations/FeatureDefines.xcconfig:
657
658 2016-03-11  Yusuke Suzuki  <utatane.tea@gmail.com>
659
660         [ES6] Implement Reflect.set without receiver support
661         https://bugs.webkit.org/show_bug.cgi?id=155024
662
663         Reviewed by Geoffrey Garen.
664
665         As the same to NPJSObject, we just propagate the returned value of NetscapePluginInstanceProxy::setProperty.
666
667         * Plugins/Hosted/ProxyInstance.h:
668         * Plugins/Hosted/ProxyInstance.mm:
669         (WebKit::ProxyField::setValueToInstance):
670         (WebKit::ProxyInstance::setFieldValue):
671
672 2016-03-10  Jeremy Jones  <jeremyj@apple.com>
673
674         Set AVURLAssetUsesNoPersistentCacheKey on AVAsset to match caching policy.
675         https://bugs.webkit.org/show_bug.cgi?id=155117
676         rdar://problem/6802240
677
678         Reviewed by Simon Fraser.
679
680         Implement mediaShouldUsePersistentCache to disable media caching when NSURLCache is disabled.
681
682         * WebCoreSupport/WebChromeClient.h:
683         * WebCoreSupport/WebChromeClient.mm:
684         (WebChromeClient::mediaShouldUsePersistentCache): Added.
685
686 2016-03-10  Simon Fraser  <simon.fraser@apple.com>
687
688         Font antialiasing (smoothing) changes when elements are rendered into compositing layers
689         https://bugs.webkit.org/show_bug.cgi?id=23364
690
691         Reviewed by Tim Horton.
692
693         Allow internal clients to turn off smoothed layer text, so that WebKitTestRunner
694         can disable it.
695
696         * WebView/WebView.mm:
697         (+[WebView _setSmoothedLayerTextEnabled:]):
698         (+[WebView _smoothedLayerTextEnabled]):
699         * WebView/WebViewPrivate.h:
700
701 2016-03-10  Jer Noble  <jer.noble@apple.com>
702
703         Add WebCore, WebKit, & WebKit2 preference/setting to enable Main Content heuristic.
704         https://bugs.webkit.org/show_bug.cgi?id=155326
705         <rdar://problem/25095408>
706
707         Reviewed by Beth Dakin.
708
709         Add SPI to get and set the new preference.
710
711         * WebView/WebPreferenceKeysPrivate.h:
712         * WebView/WebPreferences.mm:
713         (-[WebPreferences overrideUserGestureRequirementForMainContent]):
714         (-[WebPreferences setOverrideUserGestureRequirementForMainContent:]):
715         * WebView/WebPreferencesPrivate.h:
716         * WebView/WebView.mm:
717         (-[WebView _preferencesChanged:]):
718
719 2016-03-07  Jer Noble  <jer.noble@apple.com>
720
721         Add separate WK and WK2 preferences for requiring user gestures for video media, distinct from user gestures for media generally
722         https://bugs.webkit.org/show_bug.cgi?id=155141
723
724         Reviewed by Beth Dakin.
725
726         Deprecate WebPreferences.mediaPlaybackRequiresUserGesture property in favor of .videoPlaybackRequiresUserGesture.
727
728         * WebView/WebPreferenceKeysPrivate.h:
729         * WebView/WebPreferences.mm:
730         (+[WebPreferences initialize]):
731         (-[WebPreferences mediaPlaybackRequiresUserGesture]):
732         (-[WebPreferences setMediaPlaybackRequiresUserGesture:]):
733         (-[WebPreferences videoPlaybackRequiresUserGesture]):
734         (-[WebPreferences setVideoPlaybackRequiresUserGesture:]):
735         * WebView/WebPreferencesPrivate.h:
736         * WebView/WebView.mm:
737         (-[WebView _preferencesChanged:]):
738
739 2016-03-10  Alexey Proskuryakov  <ap@apple.com>
740
741         Build fix for deprecated constant names.
742
743         * Carbon/CarbonWindowAdapter.mm:
744         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
745         (-[CarbonWindowAdapter sendSuperEvent:]):
746
747 2016-03-10  Commit Queue  <commit-queue@webkit.org>
748
749         Unreviewed, rolling out r197943.
750         https://bugs.webkit.org/show_bug.cgi?id=155317
751
752         This change broke Windows, WinCairo, GTK and EFL builds
753         (Requested by ryanhaddad on #webkit).
754
755         Reverted changeset:
756
757         "Add a baseURL parameter to _WKUserStyleSheet"
758         https://bugs.webkit.org/show_bug.cgi?id=155219
759         http://trac.webkit.org/changeset/197943
760
761 2016-03-08  Sam Weinig  <sam@webkit.org>
762
763         Add a baseURL parameter to _WKUserStyleSheet
764         https://bugs.webkit.org/show_bug.cgi?id=155219
765
766         Reviewed by Tim Horton.
767
768         * WebView/WebView.mm:
769         (-[WebView _commonInitializationWithFrameName:groupName:]):
770         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
771         (-[WebView setGroupName:]):
772         Update to account for the name change from UserContentController -> UserContentProvider.
773
774 2016-02-22  Jer Noble  <jer.noble@apple.com>
775
776         Enable AVFoundationNSURLSessionEnabled by default
777         https://bugs.webkit.org/show_bug.cgi?id=154469
778
779         Reviewed by Sam Weinig.
780
781         * WebView/WebPreferences.mm:
782         (+[WebPreferences initialize]):
783
784 2016-03-09  Ryosuke Niwa  <rniwa@webkit.org>
785
786         Add runtime flags for shadow DOM and custom elements
787         https://bugs.webkit.org/show_bug.cgi?id=155213
788
789         Reviewed by Dean Jackson.
790
791         Set the runtime flag based on preferences. Enable shadow DOM and disable custom elements by default.
792
793         * WebView/WebPreferenceKeysPrivate.h:
794         * WebView/WebPreferences.mm:
795         (+[WebPreferences initialize]):
796         (-[WebPreferences shadowDOMEnabled]):
797         (-[WebPreferences setShadowDOMEnabled:]):
798         (-[WebPreferences customElementsEnabled]):
799         (-[WebPreferences setCustomElementsEnabled:]):
800         * WebView/WebPreferencesPrivate.h:
801         * WebView/WebView.mm:
802         (-[WebView _preferencesChanged:]):
803
804 2016-03-09  David Kilzer  <ddkilzer@apple.com>
805
806         REGRESSION (r197149): Missing availability checks when soft-linking DataDetectors.framework
807         <http://webkit.org/b/155258>
808
809         Reviewed by Andy Estes.
810
811         * WebView/WebImmediateActionController.mm:
812         (-[WebImmediateActionController _clearImmediateActionState]):
813         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
814         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
815         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
816         - Add check that returns early if DataDetectors.framework is not
817           available.
818
819 2016-03-08  Oliver Hunt  <oliver@apple.com>
820
821         Start moving to separated writable and executable mappings in the JIT
822         https://bugs.webkit.org/show_bug.cgi?id=155178
823
824         Reviewed by Fil Pizlo.
825
826         Update feature defines.
827
828         * Configurations/FeatureDefines.xcconfig:
829
830 2016-03-08  Commit Queue  <commit-queue@webkit.org>
831
832         Unreviewed, rolling out r197793 and r197799.
833         https://bugs.webkit.org/show_bug.cgi?id=155195
834
835         something weird happened while landing this and everything
836         broke (Requested by olliej on #webkit).
837
838         Reverted changesets:
839
840         "Start moving to separated writable and executable mappings in
841         the JIT"
842         https://bugs.webkit.org/show_bug.cgi?id=155178
843         http://trac.webkit.org/changeset/197793
844
845         "arm64 build fix after r197793."
846         http://trac.webkit.org/changeset/197799
847
848 2016-03-08  Oliver Hunt  <oliver@apple.com>
849
850         Start moving to separated writable and executable mappings in the JIT
851         https://bugs.webkit.org/show_bug.cgi?id=155178
852
853         Reviewed by Filip Pizlo.
854
855         Update feature defines.
856
857         * Configurations/FeatureDefines.xcconfig:
858
859 2016-03-08  Anders Carlsson  <andersca@apple.com>
860
861         Ignore deprecation warnings.
862
863         * Misc/WebNSEventExtras.m:
864         (-[NSEvent _web_isKeyEvent:]):
865         (-[NSEvent _web_isOptionTabKeyEvent]):
866         * Misc/WebNSViewExtras.m:
867         (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]):
868         * Plugins/Hosted/NetscapePluginHostProxy.mm:
869         (WebKit::NetscapePluginHostProxy::beginModal):
870         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
871         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
872         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
873         (-[WebHostedNetscapePluginView drawRect:]):
874         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
875         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
876         * WebCoreSupport/PopupMenuMac.mm:
877         (PopupMenuMac::populate):
878         (PopupMenuMac::show):
879         * WebCoreSupport/WebContextMenuClient.mm:
880         (WebContextMenuClient::showContextMenu):
881         * WebCoreSupport/WebFrameLoaderClient.mm:
882         (WebFrameLoaderClient::actionDictionary):
883         * WebCoreSupport/WebInspectorClient.mm:
884         (WebInspectorFrontendClient::canAttach):
885         (-[WebInspectorWindowController window]):
886         * WebInspector/WebNodeHighlight.mm:
887         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
888         * WebView/WebFrameView.mm:
889         (-[WebFrameView keyDown:keyDown:]):
890         * WebView/WebFullScreenController.mm:
891         (-[WebFullScreenController init]):
892         (createBackgroundFullscreenWindow):
893         * WebView/WebHTMLView.mm:
894         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
895         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
896         (isQuickLookEvent):
897         (-[WebHTMLView hitTest:]):
898         (-[WebHTMLView _sendToolTipMouseExited]):
899         (-[WebHTMLView _sendToolTipMouseEntered]):
900         (mouseEventIsPartOfClickOrDrag):
901         (-[WebHTMLView _updateMouseoverWithEvent:]):
902         (-[WebHTMLView acceptsFirstResponder]):
903         (-[WebHTMLView viewDidMoveToWindow]):
904         (currentKeyboardEvent):
905         (-[WebHTMLView _handleStyleKeyEquivalent:]):
906         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
907         * WebView/WebPDFView.mm:
908         (-[WebPDFView hitTest:]):
909         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
910         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
911         * WebView/WebTextCompletionController.mm:
912         (-[WebTextCompletionController _buildUI]):
913         (-[WebTextCompletionController _placePopupWindow:]):
914         * WebView/WebView.mm:
915         (-[WebView applicationFlags:]):
916
917 2016-03-07  Brent Fulgham  <bfulgham@apple.com>
918
919         Reduce startup and shutdown cost of resource load statistics
920         https://bugs.webkit.org/show_bug.cgi?id=155120
921         <rdar://problem/25010167>
922
923         Reviewed by Andy Estes.
924
925         Remove the Resource Load Statistics stuff from WK1, now that it is up and
926         running in WK2.
927
928         * WebView/WebView.mm:
929         (-[WebView _preferencesChanged:]): Remove call to read resource load
930         statistics from disk.
931         (+[WebView _applicationWillTerminate]): Remove call to write resource load
932         statistics to disk.
933
934 2016-03-06  Andreas Kling  <akling@apple.com>
935
936         Reduce page cache capacity from 3 to 2.
937         <https://webkit.org/b/155087>
938
939         Reviewed by Antti Koivisto.
940
941         Trim WebKit1 page cache capacities consistently with WebKit2.
942
943         * WebView/WebView.mm:
944         (+[WebView _setCacheModel:]):
945
946 2016-03-05  Chris Dumez  <cdumez@apple.com>
947
948         Consolidate RuntimeApplicationChecks and RuntimeApplicationChecksIOS
949         https://bugs.webkit.org/show_bug.cgi?id=155035
950
951         Reviewed by Darin Adler.
952
953         Update runtime application checks.
954
955         * Plugins/WebPluginController.mm:
956         (initializeAudioSession):
957         * WebCoreSupport/WebFrameLoaderClient.mm:
958         * WebView/WebFrame.mm:
959         (needsMicrosoftMessengerDOMDocumentWorkaround):
960         * WebView/WebImmediateActionController.mm:
961         (-[WebImmediateActionController _updateImmediateActionItem]):
962         * WebView/WebView.mm:
963         (WebKitInitializeApplicationCachePathIfNecessary):
964         (shouldEnableLoadDeferring):
965         (shouldRestrictWindowFocus):
966         (needsOutlookQuirksScript):
967         (shouldTransformsAffectOverflow):
968         (shouldDispatchJavaScriptWindowOnErrorEvents):
969         (shouldUseLegacyBackgroundSizeShorthandBehavior):
970         (-[WebView _commonInitializationWithFrameName:groupName:]):
971         (+[WebView enableWebThread]):
972         (+[WebView registerForMemoryNotifications]):
973         (-[WebView _needsKeyboardEventDisambiguationQuirks]):
974         (needsSelfRetainWhileLoadingQuirk):
975         (-[WebView _needsPreHTML5ParserQuirks]):
976
977 2016-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
978
979         [ES6] Support Reflect.construct
980         https://bugs.webkit.org/show_bug.cgi?id=147330
981
982         Reviewed by Saam Barati.
983
984         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
985         (WebKit::NetscapePluginInstanceProxy::invoke):
986         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
987         (WebKit::NetscapePluginInstanceProxy::construct):
988
989 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
990
991         Unreviewed test fix for null global WebResourceLoadStatisticsStore.
992
993         * WebView/WebView.mm:
994         (-[WebView _preferencesChanged:]):
995         (+[WebView _applicationWillTerminate]):
996
997 2016-03-04  Brent Fulgham  <bfulgham@apple.com>
998
999         [WK2] Gather resource load statistics
1000         https://bugs.webkit.org/show_bug.cgi?id=154278
1001         <rdar://problem/24702892>
1002
1003         Reviewed by Andy Estes.
1004
1005         Switch to maintaining a global WebCore::ResourceLoadStatisticsStore in the WebKit process,
1006         and hand it off to the WebCore layer to use during data gathering. The ResourceLoadStatisticsStore
1007         is now responsible for reading/writing to disk, and tracking the collection of load data.
1008
1009         * WebView/WebView.mm:
1010         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Initialize singleton
1011         ResourceLoadStatisticsStore object for tracking state.
1012         (-[WebView _preferencesChanged:]): Revise for new singleton.
1013         (+[WebView _applicationWillTerminate]): Ditto.
1014
1015 2016-02-29  Ada Chan  <adachan@apple.com>
1016
1017         Adopt the new version of AVOutputDeviceMenuController's showMenuForRect method.
1018         https://bugs.webkit.org/show_bug.cgi?id=154823
1019
1020         Reviewed by Tim Horton.
1021
1022         * WebCoreSupport/WebChromeClient.h:
1023         * WebCoreSupport/WebChromeClient.mm:
1024         (WebChromeClient::showPlaybackTargetPicker):
1025         * WebView/WebMediaPlaybackTargetPicker.h:
1026         * WebView/WebMediaPlaybackTargetPicker.mm:
1027         (WebMediaPlaybackTargetPicker::showPlaybackTargetPicker):
1028         (WebMediaPlaybackTargetPicker::customPlaybackActionSelected):
1029         * WebView/WebView.mm:
1030         (-[WebView _showPlaybackTargetPicker:location:hasVideo:]):
1031
1032 2016-03-01  Tim Horton  <timothy_horton@apple.com>
1033
1034         Expose MediaElement and VideoElement to the Objective-C DOM bindings
1035         https://bugs.webkit.org/show_bug.cgi?id=154830
1036
1037         Reviewed by Sam Weinig.
1038
1039         * MigrateHeaders.make:
1040
1041 2016-02-29  Simon Fraser  <simon.fraser@apple.com>
1042
1043         Remove the experimental feature of antialiased font dilation
1044         https://bugs.webkit.org/show_bug.cgi?id=154843
1045
1046         Reviewed by Zalan Bujtas.
1047
1048         Remove the "antialiased font dilation" code path, and related prefs.
1049
1050         * WebView/WebPreferenceKeysPrivate.h:
1051         * WebView/WebPreferences.mm:
1052         (+[WebPreferences initialize]): Deleted.
1053         (-[WebPreferences setAntialiasedFontDilationEnabled:]): Deleted.
1054         (-[WebPreferences antialiasedFontDilationEnabled]): Deleted.
1055         * WebView/WebPreferencesPrivate.h:
1056         * WebView/WebView.mm:
1057         (-[WebView _preferencesChanged:]): Deleted.
1058
1059 2016-02-26  Dan Bernstein  <mitz@apple.com>
1060
1061         Build fix for when WK_OVERRIDE_FRAMEWORKS_DIR contains spaces.
1062
1063         * Configurations/WebKitLegacy.xcconfig: Added quotes.
1064
1065 2016-02-25  Ada Chan  <adachan@apple.com>
1066
1067         Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
1068         https://bugs.webkit.org/show_bug.cgi?id=154702
1069
1070         Reviewed by Dan Bernstein.
1071
1072         * Configurations/FeatureDefines.xcconfig:
1073
1074 2016-02-25  Jiewen Tan  <jiewen_tan@apple.com>
1075
1076         Restrict information passed with navigation action which is triggered by untrusted event
1077         https://bugs.webkit.org/show_bug.cgi?id=154571
1078         <rdar://problem/15967937>
1079
1080         Reviewed by Andy Estes.
1081
1082         * WebCoreSupport/WebFrameLoaderClient.mm:
1083         (WebFrameLoaderClient::actionDictionary):
1084
1085 2016-02-25  Eric Carlson  <eric.carlson@apple.com>
1086
1087         [MediaStream] MediaDeviceInfo deviceId and groupId must be unique to the page's origin
1088         https://bugs.webkit.org/show_bug.cgi?id=153163
1089         <rdar://problem/24334526>
1090
1091         Reviewed by Tim Horton.
1092
1093         * WebCoreSupport/WebUserMediaClient.mm:
1094         (WebUserMediaClient::requestUserMediaAccess):
1095         (WebUserMediaClient::checkUserMediaPermission):
1096         (-[WebUserMediaPolicyCheckerListener allow]):
1097         (-[WebUserMediaPolicyCheckerListener deny]):
1098
1099 2016-02-24  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
1100
1101         [web-animations] Add AnimationTimeline, DocumentTimeline and add extensions to Document interface
1102         https://bugs.webkit.org/show_bug.cgi?id=151688
1103
1104         Reviewed by Dean Jackson.
1105
1106         Enables the WEB_ANIMATIONS compiler switch.
1107
1108         * Configurations/FeatureDefines.xcconfig:
1109
1110 2016-02-23  Dan Bernstein  <mitz@apple.com>
1111
1112         [Xcode] Linker errors display mangled names, but no longer should
1113         https://bugs.webkit.org/show_bug.cgi?id=154632
1114
1115         Reviewed by Sam Weinig.
1116
1117         * Configurations/Base.xcconfig: Stop setting LINKER_DISPLAYS_MANGLED_NAMES to YES.
1118
1119 2016-02-23  Gavin Barraclough  <barraclough@apple.com>
1120
1121         Remove HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define
1122         https://bugs.webkit.org/show_bug.cgi?id=112323
1123
1124         Reviewed by Chris Dumez.
1125
1126         This feature is controlled by a runtime switch, and defaults off.
1127
1128         * Configurations/FeatureDefines.xcconfig:
1129         * WebView/WebView.mm:
1130         (-[WebView _preferencesChanged:]):
1131
1132 2016-02-22  Commit Queue  <commit-queue@webkit.org>
1133
1134         Unreviewed, rolling out r196935.
1135         https://bugs.webkit.org/show_bug.cgi?id=154557
1136
1137         This change causes timeouts and crashes in LayoutTests
1138         (Requested by ryanhaddad on #webkit).
1139
1140         Reverted changeset:
1141
1142         "Enable AVFoundationNSURLSessionEnabled by default"
1143         https://bugs.webkit.org/show_bug.cgi?id=154469
1144         http://trac.webkit.org/changeset/196935
1145
1146 2016-02-22  Keith Rollin  <krollin@apple.com>
1147
1148         Add mechanism to disable memory pressure handling
1149         https://bugs.webkit.org/show_bug.cgi?id=154254
1150         <rdar://problem/24662616>
1151
1152         Reviewed by Chris Dumez.
1153
1154         Add a mechanism to disable WebKit's response to memory pressure
1155         triggers. This was asked for by another group for testing purposes.
1156
1157         In order to disable WebKit's memory pressure handling, execute the
1158         following from the command line:
1159
1160             defaults write com.apple.Safari WebKitSuppressMemoryPressureHandler -bool true
1161
1162         To revert to standard behavior, delete the key or set it to False.
1163
1164         This flag is used when a new sub-process is being spawned. The value
1165         is read and stored in an initialization parameter block, which is then
1166         sent to the new sub-process.
1167
1168         In actuality, only the UI, WebContent, and Network processes heed the
1169         flag. The Plugin process isn't instrumented to heed this flag for
1170         three reasons. First, the Plugin process installs its memory pressure
1171         handler in initializeProcess, not initializePluginProcess. This is
1172         contrary to when the other processes install their handlers, which is
1173         in initialize<PluginType>Process, not initializeProcess. So in order
1174         to accomodate the Plugin process, we'd need to modify
1175         ChildProcessInitializationParameters. Doing this is awkward at best,
1176         but also seems to be opposed to what's supposed to be done in
1177         initializeProcess and conveyed in
1178         ChildProcessInitializationParameters. And even if we did add a boolean
1179         to this structure and added support for conveying it through the XPC
1180         port, it would end up being a Plugin process-only boolean in a general
1181         parameter block, which seems asymmetric with the other processes.
1182         Second, there's no convenient Cocoa function called in the flow that
1183         spawns the Plugin process, meaning that there's no convenient place to
1184         call NSUserDefaults to get the flag's value. And third, the Plugin
1185         process doesn't elegantly respond to the memory pressure trigger
1186         anyway. It might terminate itself, but that's it. As for the Database
1187         process, it doesn't seem to support responding to memory pressure at
1188         all, so we don't send it a flag telling it to ignore it.
1189
1190         Internally, the memory pressure handler is suppressed by not calling
1191         MemoryPressureHandler::install() if the flag is set. In the case of
1192         the Network process, the flag is saved so that it can be checked later
1193         in other places that manually kick off the memory pressure handling
1194         procedure.
1195
1196         * WebView/WebView.mm:
1197         (-[WebView _commonInitializationWithFrameName:groupName:]):
1198         (WebInstallMemoryPressureHandler):
1199
1200 2016-02-22  Jer Noble  <jer.noble@apple.com>
1201
1202         Enable AVFoundationNSURLSessionEnabled by default
1203         https://bugs.webkit.org/show_bug.cgi?id=154469
1204
1205         Reviewed by Sam Weinig.
1206
1207         * WebView/WebPreferences.mm:
1208         (+[WebPreferences initialize]):
1209
1210 2016-02-15  Brent Fulgham  <bfulgham@apple.com>
1211
1212         [Mac] Gather some rudimentary statistics during resource load 
1213         https://bugs.webkit.org/show_bug.cgi?id=153575
1214         <rdar://problem/24075254>
1215
1216         Reviewed by Brady Eidson.
1217
1218         * Misc/WebKitNSStringExtras.h:
1219         * Misc/WebKitNSStringExtras.mm:
1220         (+[NSString _webkit_localStorageDirectoryWithBundleIdentifier:]): Added.
1221         * WebView/WebPreferenceKeysPrivate.h:
1222         * WebView/WebPreferences.mm:
1223         (+[WebPreferences initialize]):
1224         (-[WebPreferences resourceLoadStatisticsEnabled]): Added.
1225         (-[WebPreferences setResourceLoadStatisticsEnabled:]): Added.
1226         * WebView/WebPreferencesPrivate.h:
1227         * WebView/WebView.mm:
1228         (WebKitInitializeApplicationCachePathIfNecessary):
1229         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Added.
1230         (-[WebView _commonInitializationWithFrameName:groupName:]): Add call to new
1231         initialization method.
1232         (-[WebView _preferencesChanged:]): Track changes in the user's desire to
1233         monitor resource load statistics.
1234         (+[WebView _applicationWillTerminate]): Write statistics to disk (if preferences
1235         say to do so.)
1236
1237 2016-02-13  Mark Lam  <mark.lam@apple.com>
1238
1239         Add thread violation checks to WebView public APIs.
1240         https://bugs.webkit.org/show_bug.cgi?id=154183
1241
1242         Reviewed by Timothy Hatcher.
1243
1244         Re-landing r196527 with a newly added WebCoreThreadViolationCheckRoundThree().
1245         Previously was using WebCoreThreadViolationCheckRoundTwo().
1246
1247         * Misc/WebKitVersionChecks.h:
1248         * WebView/WebFrameView.mm:
1249         (-[WebFrameView initWithFrame:]):
1250         * WebView/WebView.mm:
1251         (-[WebView setCustomTextEncodingName:]):
1252         (-[WebView stringByEvaluatingJavaScriptFromString:]):
1253         (-[WebView windowScriptObject]):
1254         (-[WebView setGroupName:]):
1255         (-[WebView setMainFrameURL:]):
1256         (-[WebView mainFrameTitle]):
1257         (-[WebView mainFrameIcon]):
1258         (-[WebView setDrawsBackground:]):
1259         (-[WebView setShouldUpdateWhileOffscreen:]):
1260
1261 2016-02-12  Commit Queue  <commit-queue@webkit.org>
1262
1263         Unreviewed, rolling out r196527.
1264         https://bugs.webkit.org/show_bug.cgi?id=154204
1265
1266         "Need to redo as WebCoreThreadViolationCheckRoundThree"
1267         (Requested by mlam on #webkit).
1268
1269         Reverted changeset:
1270
1271         "Add thread violation checks to WebView public APIs."
1272         https://bugs.webkit.org/show_bug.cgi?id=154183
1273         http://trac.webkit.org/changeset/196527
1274
1275 2016-02-12  Mark Lam  <mark.lam@apple.com>
1276
1277         Add thread violation checks to WebView public APIs.
1278         https://bugs.webkit.org/show_bug.cgi?id=154183
1279
1280         Reviewed by Geoffrey Garen.
1281
1282         This will help clients of the API detect the violations sooner rather than
1283         having to debug mysterious crashes / failures later.
1284
1285         To that end, I've added thread violation checks to the following functions
1286         because ...
1287
1288         * WebView/WebView.mm:
1289         (-[WebView setCustomTextEncodingName:]):
1290         - Uses the FrameLoader (which is for the main thread only).
1291
1292         (-[WebView stringByEvaluatingJavaScriptFromString:]):
1293         - Invokes JavaScript (which is for the main thread only).
1294
1295         (-[WebView windowScriptObject]):
1296         - Invokes ScriptController::windowScriptObject() which requires the JSLock.
1297
1298         (-[WebView setGroupName:]):
1299         - Manipulates the PageGroup and Page (which is for the main thread only).
1300
1301         (-[WebView setMainFrameURL:]):
1302         - Uses the FrameLoader (which is for the main thread only).
1303
1304         (-[WebView mainFrameTitle]):
1305         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
1306           is RefPtr, and therefore not safe for other threads to access.
1307
1308         (-[WebView mainFrameIcon]):
1309         - Uses the FrameLoader::documentLoader() (via [WebFrame _dataSource]) which
1310           is RefPtr, and therefore not safe for other threads to access.
1311         - Uses [WebIconDatabase sharedIconDatabase] which does a singleton
1312           instantiation but is not protected by a lock.
1313
1314         (-[WebView setDrawsBackground:]):
1315         - Potentially manipulates a RenderView (via FrameView::setBaseBackgroundColor,
1316           via [WebFrame _updateBackgroundAndUpdatesWhileOffscreen]), and RenderView
1317           is for main thread only use.
1318
1319         (-[WebView setShouldUpdateWhileOffscreen:]):
1320         - Uses [WebFrame _updateBackgroundAndUpdatesWhileOffscreen].  Hence, for the
1321           main thread only.
1322
1323 2016-02-12  Sukolsak Sakshuwong  <sukolsak@gmail.com>
1324
1325         Update ICU header files to version 52
1326         https://bugs.webkit.org/show_bug.cgi?id=154160
1327
1328         Reviewed by Alex Christensen.
1329
1330         Update ICU header files to version 52 to allow the use of newer APIs.
1331
1332         * icu/unicode/localpointer.h:
1333         * icu/unicode/platform.h:
1334         * icu/unicode/ptypes.h:
1335         * icu/unicode/putil.h:
1336         * icu/unicode/uchar.h:
1337         * icu/unicode/uconfig.h:
1338         * icu/unicode/uidna.h:
1339         * icu/unicode/uiter.h:
1340         * icu/unicode/umachine.h:
1341         * icu/unicode/unorm2.h:
1342         * icu/unicode/urename.h:
1343         * icu/unicode/uscript.h:
1344         * icu/unicode/ustring.h:
1345         * icu/unicode/utf.h:
1346         * icu/unicode/utf16.h:
1347         * icu/unicode/utf8.h:
1348         * icu/unicode/utf_old.h:
1349         * icu/unicode/utypes.h:
1350         * icu/unicode/uvernum.h:
1351         * icu/unicode/uversion.h:
1352
1353 2016-02-12  Beth Dakin  <bdakin@apple.com>
1354
1355         NSRangeIsRelativeTo should not have NS prefix
1356         https://bugs.webkit.org/show_bug.cgi?id=154174
1357
1358         Reviewed by Tim Horton.
1359
1360         NSRangeIsRelativeTo -> WebRangeIsRelativeTo
1361         * WebView/WebFrame.mm:
1362         (-[WebFrame _convertToDOMRange:]):
1363         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1364         * WebView/WebFrameInternal.h:
1365         * WebView/WebHTMLView.mm:
1366         (-[WebHTMLView insertText:]):
1367
1368 2016-02-11  Beth Dakin  <bdakin@apple.com>
1369
1370         EditingRangeIsRelativeTo::Document and NSRangeIsRelativeTo::Document should 
1371         be called EditableRoot instead
1372         https://bugs.webkit.org/show_bug.cgi?id=154138
1373
1374         Reviewed by Alexey Proskuryakov.
1375
1376         EditableRoot is much more accurate than Document.
1377         * WebView/WebFrame.mm:
1378         (-[WebFrame _convertToDOMRange:]):
1379         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1380         * WebView/WebFrameInternal.h:
1381         * WebView/WebHTMLView.mm:
1382         (-[WebHTMLView insertText:]):
1383
1384 2016-02-11  Beth Dakin  <bdakin@apple.com>
1385
1386         Soft spaces are often tracked in the wrong spot
1387         https://bugs.webkit.org/show_bug.cgi?id=154127
1388         -and corresponding-
1389         rdar://problem/24493140
1390
1391         Reviewed by Sam Weinig.
1392
1393         Soft spaces are in the wrong space now for two reasons. First of all, the 
1394         NSRange we get from the accepted candidate is relative to the paragraph 
1395         start, so without this patch, soft spaces are only ever right for the first 
1396         paragraph. Secondly, if focus changes for any reason other than text 
1397         insertion, soft spaces are also wrong because they need to be re-set.
1398
1399         New version of _convertToDOMRange takes a NSRangeIsRelativeTo so that it can 
1400         handle ranges relative to both the document and the paragraph. 
1401         * WebView/WebFrame.mm:
1402         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
1403         (-[WebFrame _convertNSRangeToDOMRange:]):
1404
1405         New enum NSRangeIsRelativeTo.
1406         * WebView/WebFrameInternal.h:
1407
1408         Re-set the softSpaceRange on selection changes so long as the WebCore::Editor 
1409         is not currently handling an accepted candidate.
1410         * WebView/WebHTMLView.mm:
1411         (-[WebHTMLView _selectionChanged]):
1412
1413         If needToRemoveSoftSpace is true, then the replacementRange is 
1414         relative to the paragraph.
1415         (-[WebHTMLView insertText:]):
1416
1417 2016-02-10  Mark Lam  <mark.lam@apple.com>
1418
1419         WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture: should assert that it is being called from the "main" thread.
1420         https://bugs.webkit.org/show_bug.cgi?id=154059
1421
1422         Reviewed by Geoffrey Garen.
1423
1424         This makes it so that misbehaving clients which call it (indirectly) from another
1425         thread (not the main thread) will fail faster.  Otherwise, we get potential
1426         memory corruption that results in strange crashes elsewhere later.
1427
1428         * WebView/WebFrame.mm:
1429         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1430
1431 2016-02-04  Jer Noble  <jer.noble@apple.com>
1432
1433         [Mac] Adopt NSURLSession properties in AVAssetResourceLoader
1434         https://bugs.webkit.org/show_bug.cgi?id=153873
1435
1436         Reviewed by Eric Carlson.
1437
1438         Add a WebKit preference to control the WebCore isAVFoundationNSURLSessionEnabled()
1439         setting.
1440
1441         * WebView/WebPreferenceKeysPrivate.h:
1442         * WebView/WebPreferences.mm:
1443         (+[WebPreferences initialize]):
1444         (-[WebPreferences setAVFoundationNSURLSessionEnabled:]):
1445         (-[WebPreferences isAVFoundationNSURLSessionEnabled]):
1446         * WebView/WebPreferencesPrivate.h:
1447         * WebView/WebView.mm:
1448         (-[WebView _preferencesChanged:]):
1449
1450 2016-02-09  Eric Carlson  <eric.carlson@apple.com>
1451
1452         checkValidity() sometimes asserts in WebUserMediaClient::pageDestroyed
1453         https://bugs.webkit.org/show_bug.cgi?id=154029
1454         <rdar://problem/24065022>
1455
1456         Reviewed by Alex Christensen.
1457
1458         * WebCoreSupport/WebUserMediaClient.mm:
1459         (WebUserMediaClient::pageDestroyed): Copy map keys to a vector and clear the map before
1460           enumerating the vector and canceling the requests. ASSERT that the map is not modified
1461           during cleanup. Clean up the permission check map.
1462         (WebUserMediaClient::requestUserMediaAccess): Add the request to the map before calling the
1463           UI delegate in case it works synchronously (as it does in DRT).
1464         (WebUserMediaClient::checkUserMediaPermission): Ditto.
1465         (WebUserMediaClient::cancelUserMediaPermissionCheck): White-space cleanup.
1466         (-[WebUserMediaPolicyListener allow]): Ditto.
1467
1468 2016-02-08  Anders Carlsson  <andersca@apple.com>
1469
1470         Crash when trying to chain to the old -[NSView setNeedsDisplayInRect:]
1471         https://bugs.webkit.org/show_bug.cgi?id=154001
1472         rdar://problem/24519975
1473
1474         Reviewed by Dan Bernstein.
1475
1476         If our replaced -[NSView setNeedsDisplayInRect:] is called before the old IMP has been initialized,
1477         we can end up trying to call a null pointer. 
1478         
1479         Fix this by using method_exchangeImplementations instead of method_setImplementation, since the former is done
1480         atomically.
1481
1482         * WebView/WebHTMLView.mm:
1483         (-[NSView _web_setNeedsDisplayInRect:]):
1484         (+[WebHTMLViewPrivate initialize]):
1485         (setNeedsDisplayInRect): Deleted.
1486
1487 2016-02-07  Dan Bernstein  <mitz@apple.com>
1488
1489         [Cocoa] Replace __has_include guards around inclusion of Apple-internal-SDK headers with USE(APPLE_INTERNAL_SDK)
1490         https://bugs.webkit.org/show_bug.cgi?id=153963
1491
1492         Reviewed by Sam Weinig.
1493
1494         * WebView/WebPDFView.mm:
1495
1496 2016-02-06  Darin Adler  <darin@apple.com>
1497
1498         Finish auditing call sites of upper() and lower(), eliminate many, and rename the functions
1499         https://bugs.webkit.org/show_bug.cgi?id=153905
1500
1501         Reviewed by Sam Weinig.
1502
1503         * Plugins/WebBasePluginPackage.mm:
1504         (-[WebBasePluginPackage getPluginInfoFromPLists]): Use modern for loops.
1505         (-[WebBasePluginPackage supportsExtension:]): Use convertToASCIILowercase for extension assert.
1506         Also use modern for loop.
1507         (-[WebBasePluginPackage supportsMIMEType:]): Ditto.
1508         (-[WebBasePluginPackage MIMETypeForExtension:]): Ditto.
1509
1510 2016-02-03  Jessie Berlin  <jberlin@webkit.org>
1511
1512         Build fix.
1513
1514         [NSEvent context] has always returned nil. Replace uses with nullptr.
1515
1516         * WebView/WebHTMLView.mm:
1517         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
1518         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
1519         (-[WebHTMLView _updateMouseoverWithEvent:]):
1520         (-[WebHTMLView _autoscroll]):
1521         (-[WebHTMLView draggedImage:endedAt:operation:]):
1522
1523 2016-02-01  Dave Hyatt  <hyatt@apple.com>
1524
1525         Add a line grid pagination SPI to WebKit.
1526         https://bugs.webkit.org/show_bug.cgi?id=153757
1527         <rdar://problem/23041598>
1528
1529         Reviewed by Anders Carlsson.
1530
1531         * WebView/WebView.mm:
1532         (-[WebView _setPaginationLineGridEnabled:]):
1533         (-[WebView _paginationLineGridEnabled]):
1534         * WebView/WebViewPrivate.h:
1535
1536 2016-02-01  Joseph Pecoraro  <pecoraro@apple.com>
1537
1538         Web Inspector: High Level Memory Overview Instrument
1539         https://bugs.webkit.org/show_bug.cgi?id=153516
1540         <rdar://problem/24356378>
1541
1542         Reviewed by Brian Burg.
1543
1544         * Configurations/FeatureDefines.xcconfig:
1545
1546 2016-01-31  Darin Adler  <darin@apple.com>
1547
1548         Cut down on calls to String::lower; mostly replace with convertToASCIILowercase
1549         https://bugs.webkit.org/show_bug.cgi?id=153732
1550
1551         Reviewed by Dean Jackson.
1552
1553         * WebView/WebHTMLRepresentation.mm:
1554         (newArrayWithStrings): Updated to use HashSet<String, ASCIICaseInsensitiveHash>
1555         and also to use a modern for loop.
1556
1557 2016-01-31  Dan Bernstein  <mitz@apple.com>
1558
1559         [Cocoa] Remove __has_include guards around use of WebKitAdditions
1560         https://bugs.webkit.org/show_bug.cgi?id=153728
1561
1562         Reviewed by Andy Estes.
1563
1564         Guard WebKitAdditions includes with #if USE(APPLE_INTERNAL_SDK) rather than with __has_include.
1565
1566         * WebKitAdditions.mm:
1567         * WebView/WebView.mm:
1568         (-[WebView _commonInitializationWithFrameName:groupName:]):
1569         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1570
1571 2016-01-29  Ada Chan  <adachan@apple.com>
1572
1573         Enable VIDEO_PRESENTATION_MODE only in Debug and Release builds on Mac
1574         https://bugs.webkit.org/show_bug.cgi?id=153665
1575
1576         Reviewed by Dan Bernstein.
1577
1578         * Configurations/FeatureDefines.xcconfig:
1579
1580 2016-01-28  Darin Adler  <darin@apple.com>
1581
1582         Remove equalIgnoringCase since all callers really wanted equalIgnoringASCIICase
1583         https://bugs.webkit.org/show_bug.cgi?id=153411
1584
1585         Reviewed by Ryosuke Niwa.
1586
1587         * WebCoreSupport/WebFrameLoaderClient.mm:
1588         (parameterValue): Use equalIgnoringASCIICase. No behavior change because the
1589         only name we ever search for with this is "pluginspage".
1590
1591 2016-01-27  Enrica Casucci  <enrica@apple.com>
1592
1593         Cache results of data detection in the UI process when load completes.
1594         https://bugs.webkit.org/show_bug.cgi?id=153560
1595
1596         Reviewed by Tim Horton.
1597
1598         Adding empty implementation for WK1.
1599
1600         * WebCoreSupport/WebFrameLoaderClient.h:
1601         * WebCoreSupport/WebFrameLoaderClient.mm:
1602         (WebFrameLoaderClient::dispatchDidFinishDataDetection):
1603
1604 2016-01-27  Anders Carlsson  <andersca@apple.com>
1605
1606         Add WebKitAdditions extension points to WebCore, WebKit and WebKitLegacy
1607         https://bugs.webkit.org/show_bug.cgi?id=153550
1608
1609         Reviewed by Sam Weinig.
1610
1611         * Configurations/WebKitLegacy.xcconfig:
1612         Add WKA header search paths.
1613
1614         * WebKitAdditions.mm: Added.
1615         Add addition files.
1616
1617         * WebView/WebView.mm:
1618         (-[WebView _commonInitializationWithFrameName:groupName:]):
1619         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1620         Add extension points.
1621
1622 2016-01-27  Chris Dumez  <cdumez@apple.com>
1623
1624         window.atob() should ignore spaces in input
1625         https://bugs.webkit.org/show_bug.cgi?id=153522
1626         <rdar://problem/24357822>
1627
1628         Reviewed by Benjamin Poulain.
1629
1630         * WebCoreSupport/WebInspectorClient.mm:
1631         (WebInspectorFrontendClient::save):
1632
1633 2016-01-27  Alexey Proskuryakov  <ap@apple.com>
1634
1635         Remove ENABLE_CURRENTSRC
1636         https://bugs.webkit.org/show_bug.cgi?id=153545
1637
1638         Reviewed by Simon Fraser.
1639
1640         * Configurations/FeatureDefines.xcconfig:
1641
1642 2016-01-25  Beth Dakin  <bdakin@apple.com>
1643
1644         Build fix.
1645
1646         * WebView/WebHTMLView.mm:
1647         (-[WebHTMLView initWithFrame:]):
1648         (-[WebHTMLView insertText:]):
1649
1650 2016-01-25  Beth Dakin  <bdakin@apple.com>
1651
1652         WK1: Handle soft spaces after accepted candidates
1653         https://bugs.webkit.org/show_bug.cgi?id=153442
1654         -and corresponding-
1655         rdar://problem/23958418
1656
1657         Reviewed by Tim Horton.
1658
1659         The space at the end of candidates is a soft space. If that space exists, 
1660         cache the range of the space in m_softSpaceRange.
1661         * WebCoreSupport/WebEditorClient.mm:
1662         (WebEditorClient::handleAcceptedCandidate):
1663
1664         New ivar in WebHTMLViewPrivate softSpaceRange keeps track to the NSRange of a 
1665         soft space if the last text that was inserted has a soft space at the end.
1666         * WebView/WebHTMLView.mm:
1667         (-[WebHTMLView initWithFrame:]):
1668         (-[WebHTMLView _setSoftSpaceRange:]):
1669
1670         When new text is inserted, find out if it is being inserted right after a 
1671         soft space. If it is, then [NSSpellChecker deletesAutospaceBeforeString] will 
1672         tell us if the space needs to be removed. If that is the case, then set the 
1673         replacementString to the soft space.
1674         (-[WebHTMLView insertText:]):
1675         * WebView/WebHTMLViewInternal.h:
1676
1677 2016-01-17  Ada Chan  <adachan@apple.com>
1678
1679         Add a mode parameter to MediaControllerInterface::supportsFullscreen() and ChromeClient::supportsVideoFullscreen().
1680         https://bugs.webkit.org/show_bug.cgi?id=153220
1681
1682         Reviewed by Eric Carlson.
1683
1684         * WebCoreSupport/WebChromeClient.h:
1685         * WebCoreSupport/WebChromeClient.mm:
1686         (WebChromeClient::supportsVideoFullscreen):
1687
1688 2016-01-22  Darin Adler  <darin@apple.com>
1689
1690         Reduce use of equalIgnoringCase to just ignore ASCII case
1691         https://bugs.webkit.org/show_bug.cgi?id=153266
1692
1693         Reviewed by Ryosuke Niwa.
1694
1695         * WebCoreSupport/WebFrameLoaderClient.mm:
1696         (WebFrameLoaderClient::createPlugin): Use equalLettersIgnoringASCIICase.
1697
1698 2016-01-21  Brent Fulgham  <bfulgham@apple.com>
1699
1700         [Mac] Tooltips do not honor some types of obscuring windows
1701         https://bugs.webkit.org/show_bug.cgi?id=153263
1702         <rdar://problem/21423972>
1703
1704         Reviewed by Simon Fraser.
1705
1706         * WebView/WebHTMLView.mm:
1707         (-[WebHTMLView _updateMouseoverWithEvent:]): When the WebView is not the key window, don't
1708         display tooltips.
1709
1710 2016-01-19  Ada Chan  <adachan@apple.com>
1711
1712         Make it possible to enable VIDEO_PRESENTATION_MODE on other Cocoa platforms.
1713         https://bugs.webkit.org/show_bug.cgi?id=153218
1714
1715         Reviewed by Eric Carlson.
1716
1717         * Configurations/FeatureDefines.xcconfig:
1718
1719 2016-01-19  Beth Dakin  <bdakin@apple.com>
1720
1721         32-bit build fix.
1722
1723         * WebView/WebView.mm:
1724         (-[WebView updateWebViewAdditions]):
1725         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
1726         * WebView/WebViewInternal.h:
1727
1728 2016-01-19  Beth Dakin  <bdakin@apple.com>
1729
1730         Move away from NSSpellChecker's showCandidates method
1731         https://bugs.webkit.org/show_bug.cgi?id=153254
1732         -and corresponding-
1733         rdar://problem/24216292
1734
1735         Reviewed by Tim Horton.
1736
1737         * WebCoreSupport/WebEditorClient.mm:
1738         (WebEditorClient::handleRequestedCandidates):
1739         * WebView/WebView.mm:
1740         (-[WebView updateWebViewAdditions]):
1741         (-[WebView showCandidates:forString:inRect:view:completionHandler:]):
1742         * WebView/WebViewInternal.h:
1743
1744 2016-01-19  Enrica Casucci  <enrica@apple.com>
1745
1746         Add support for DataDetectors in WK (iOS).
1747         https://bugs.webkit.org/show_bug.cgi?id=152989
1748         rdar://problem/22855960
1749
1750         Reviewed by Tim Horton.
1751
1752         Adding feature definition for data detection.
1753
1754         * Configurations/FeatureDefines.xcconfig:
1755
1756 2016-01-19  Commit Queue  <commit-queue@webkit.org>
1757
1758         Unreviewed, rolling out r195300.
1759         https://bugs.webkit.org/show_bug.cgi?id=153244
1760
1761         enrica wants more time to fix Windows (Requested by thorton on
1762         #webkit).
1763
1764         Reverted changeset:
1765
1766         "Add support for DataDetectors in WK (iOS)."
1767         https://bugs.webkit.org/show_bug.cgi?id=152989
1768         http://trac.webkit.org/changeset/195300
1769
1770 2016-01-19  Enrica Casucci  <enrica@apple.com>
1771
1772         Add support for DataDetectors in WK (iOS).
1773         https://bugs.webkit.org/show_bug.cgi?id=152989
1774         rdar://problem/22855960
1775
1776         Reviewed by Tim Horton.
1777
1778         Adding feature definition for data detection.
1779
1780         * Configurations/FeatureDefines.xcconfig:
1781
1782 2016-01-16  Myles C. Maxfield  <mmaxfield@apple.com>
1783
1784         Remove TextRun::allowsRoundingHacks()
1785         https://bugs.webkit.org/show_bug.cgi?id=153185
1786
1787         Reviewed by Simon Fraser.
1788
1789         * Misc/WebKitNSStringExtras.mm:
1790         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Deleted.
1791         (-[NSString _web_widthWithFont:]): Deleted.
1792         * WebView/WebView.mm:
1793         (+[WebView _setAllowsRoundingHacks:]): Deleted.
1794         (+[WebView _allowsRoundingHacks]): Deleted.
1795         * WebView/WebViewPrivate.h:
1796
1797 2016-01-15  Tim Horton  <timothy_horton@apple.com>
1798
1799         Data detector yellow highlight location is vertically mirrored in WebKit1
1800         https://bugs.webkit.org/show_bug.cgi?id=152216
1801         <rdar://problem/23848003>
1802
1803         Reviewed by Beth Dakin.
1804
1805         * WebView/WebImmediateActionController.mm:
1806         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
1807         (-[WebImmediateActionController _animationControllerForDataDetectedLink]):
1808         These assignments have no effect because they're operating on a copy, because
1809         TextIndicator::data() does not return a reference... so remove them.
1810
1811         * WebView/WebView.mm:
1812         (-[WebView _setTextIndicator:withLifetime:]):
1813         Convert textBoundingRectInRootViewCoordinates to WebView coordinates before
1814         converting to Window coordinates from WebView coordinates so we get flipping right.
1815
1816         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1817         (-[WebView _showDictionaryLookupPopup:]):
1818         Ditto for these, except in the aforementioned conversion callback.
1819
1820 2016-01-14  Brady Eidson  <beidson@apple.com>
1821
1822         Modern IDB: Support opening and deleting SQLite databases on disk.
1823         https://bugs.webkit.org/show_bug.cgi?id=153084
1824
1825         Reviewed by Alex Christensen, Sam Weinig and Andy Estes (oh my!).
1826
1827         * Storage/WebDatabaseProvider.mm: Copied from Source/WebKit/Storage/WebDatabaseProvider.cpp.
1828         (WebDatabaseProvider::indexedDatabaseDirectoryPath):
1829
1830 2016-01-14  Beth Dakin  <bdakin@apple.com>
1831
1832         WK1 and WK2 should share more candidate request code
1833         https://bugs.webkit.org/show_bug.cgi?id=153108
1834
1835         Reviewed by Simon Fraser.
1836
1837         requestCandidatesForSelection() does not need to be exposed as an 
1838         EditorClient function. WK1 can just call invoke this code from the existing 
1839         respondToChangedSelection EditorClient function, which is what WK2 does.
1840         * WebCoreSupport/WebEditorClient.h:
1841         * WebCoreSupport/WebEditorClient.mm:
1842         (WebEditorClient::respondToChangedSelection):
1843
1844         Cleanup — use some code that was moved to WebCore::Editor.
1845         (WebEditorClient::requestCandidatesForSelection):
1846         (WebEditorClient::handleRequestedCandidates):
1847         (textCheckingResultFromNSTextCheckingResult):
1848         (WebEditorClient::handleAcceptedCandidate):
1849         (candidateRangeForSelection): Deleted.
1850         (candidateWouldReplaceText): Deleted.
1851
1852 2016-01-13  Chris Dumez  <cdumez@apple.com>
1853
1854         Unreviewed, rolling out r194900.
1855
1856         Roll back in as this did not actually regress PLT
1857
1858         Reverted changeset:
1859
1860         "Unreviewed, rolling out r194826."
1861         https://bugs.webkit.org/show_bug.cgi?id=153020
1862         http://trac.webkit.org/changeset/194900
1863
1864 2016-01-12  Ryosuke Niwa  <rniwa@webkit.org>
1865
1866         Add a build flag for custom element
1867         https://bugs.webkit.org/show_bug.cgi?id=153005
1868
1869         Reviewed by Alex Christensen.
1870
1871         * Configurations/FeatureDefines.xcconfig:
1872
1873 2016-01-12  Commit Queue  <commit-queue@webkit.org>
1874
1875         Unreviewed, rolling out r194826.
1876         https://bugs.webkit.org/show_bug.cgi?id=153020
1877
1878         Appears to have regressed PLT (Requested by kling on #webkit).
1879
1880         Reverted changeset:
1881
1882         "Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
1883         cont'd"
1884         https://bugs.webkit.org/show_bug.cgi?id=152902
1885         http://trac.webkit.org/changeset/194826
1886
1887 2016-01-11  Anders Carlsson  <andersca@apple.com>
1888
1889         Get rid of CFMakeCollectable, it is a no-op
1890         https://bugs.webkit.org/show_bug.cgi?id=152988
1891
1892         Reviewed by Sam Weinig.
1893
1894         * Misc/WebNSDataExtras.m:
1895         (-[NSString _web_capitalizeRFC822HeaderFieldName]):
1896         (-[NSData _webkit_parseRFC822HeaderFields]):
1897         * Plugins/WebPluginController.mm:
1898         (-[WebPluginController initWithDocumentView:]):
1899
1900 2016-01-10  Andreas Kling  <akling@apple.com>
1901
1902         Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL cont'd
1903         <https://webkit.org/b/152902>
1904
1905         Reviewed by Andy Estes.
1906
1907         Convert some more of the remaining clients to use NeverDestroyed.
1908
1909         * History/WebBackForwardList.mm:
1910         (backForwardLists):
1911         * History/WebHistoryItem.mm:
1912         (historyItemWrappers):
1913         * Misc/WebNSPasteboardExtras.mm:
1914         (+[NSPasteboard _web_writableTypesForURL]):
1915         (_writableTypesForImageWithoutArchive):
1916         (_writableTypesForImageWithArchive):
1917         * Plugins/Hosted/NetscapePluginHostManager.mm:
1918         (WebKit::NetscapePluginHostManager::singleton):
1919         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1920         (WebKit::pluginProxyMap):
1921         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1922         (WebKit::globalExceptionString):
1923         * Plugins/Hosted/ProxyInstance.mm:
1924         (WebKit::proxyClass):
1925         * Plugins/WebNetscapePluginStream.mm:
1926         (streams):
1927         * Storage/WebDatabaseManager.mm:
1928         (transactionBackgroundTaskIdentifierLock):
1929         * WebCoreSupport/WebUserMediaClient.mm:
1930         (userMediaCheckMap):
1931         * WebView/WebHTMLRepresentation.mm:
1932         (regExpForLabels):
1933         * WebView/WebView.mm:
1934         (aeDescFromJSValue):
1935
1936 2016-01-09  Dan Bernstein  <mitz@apple.com>
1937
1938         [Cocoa] Allow overriding the frameworks directory independently of using a staging install path
1939         https://bugs.webkit.org/show_bug.cgi?id=152926
1940
1941         Reviewed by Tim Horton.
1942
1943         Introduce a new build setting, WK_OVERRIDE_FRAMEWORKS_DIR. When not empty, it determines
1944         where the frameworks are installed. Setting USE_STAGING_INSTALL_PATH to YES sets
1945         WK_OVERRIDE_FRAMEWORKS_DIR to $(SYSTEM_LIBRARY_DIR)/StagedFrameworks/Safari.
1946
1947         Account for the possibility of WK_OVERRIDE_FRAMEWORKS_DIR containing spaces.
1948
1949         * Configurations/WebKitLegacy.xcconfig:
1950         - Replace STAGED_FRAMEWORKS_SEARCH_PATH in FRAMEWORK_SEARCH_PATHS with
1951           WK_OVERRIDE_FRAMEWORKS_DIR and add quotes to account for spaces.
1952         - Define WEBKIT_LEGACY_FRAMEWORKS_DIR, PRODUCTION_FRAMEWORKS_DIR, and
1953           WEBCORE_PRIVATE_HEADERS_DIR based on WK_OVERRIDE_FRAMEWORKS_DIR.
1954
1955         * MigrateHeaders.make:
1956           Use a symlink under BUILT_PRODUCTS_DIR to the WebCore Private Headers. Use a
1957           BUILT_PRODUCTS_DIR-based path to the framework instead of a TARGET_BUILD_DIR-based one in
1958           order to avoid spaces.
1959         * migrate-headers.sh:
1960           Make the symlink to WEBCORE_PRIVATE_HEADERS_DIR that the makefile now uses.
1961
1962 2016-01-07  Tim Horton  <timothy_horton@apple.com>
1963
1964         Can't play inline video in a stock WK1 WebView on Mac
1965         https://bugs.webkit.org/show_bug.cgi?id=152860
1966
1967         Rubber-stamped by Jer Noble.
1968
1969         * WebView/WebPreferences.mm:
1970         (+[WebPreferences initialize]):
1971         The default for this preference is supposed to be NO on Mac. It is in
1972         Settings.in, and in WebKit2, but this one place got it wrong.
1973
1974 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1975
1976         Add a setting and preferences to enable display-list drawing. Does nothing yet.
1977         https://bugs.webkit.org/show_bug.cgi?id=152807
1978
1979         Reviewed by Zalan Bujtas.
1980         
1981         WK1 pref for display-list drawing, defaults to off.
1982
1983         * WebView/WebPreferenceKeysPrivate.h:
1984         * WebView/WebPreferences.mm:
1985         (+[WebPreferences initialize]):
1986         (-[WebPreferences displayListDrawingEnabled]):
1987         (-[WebPreferences setDisplayListDrawingEnabled:]):
1988         * WebView/WebPreferencesPrivate.h:
1989         * WebView/WebView.mm:
1990         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1991         (-[WebView _preferencesChanged:]):
1992
1993 2016-01-06  Simon Fraser  <simon.fraser@apple.com>
1994
1995         [iOS] Revert overflow:hidden on the body affecting viewport scale (r186786)
1996         https://bugs.webkit.org/show_bug.cgi?id=152803
1997         rdar://problem/22242515
1998
1999         Reviewed by Tim Horton.
2000
2001         * WebView/WebView.mm:
2002         (-[WebView _contentsSizeRespectingOverflow]): Keep this function which is used
2003         by UIKit, but change the implementation to just return the document size.
2004
2005 2016-01-04  Tim Horton  <timothy_horton@apple.com>
2006
2007         Turn on gesture events when building for Yosemite
2008         https://bugs.webkit.org/show_bug.cgi?id=152704
2009         rdar://problem/24042472
2010
2011         Reviewed by Anders Carlsson.
2012
2013         * Configurations/FeatureDefines.xcconfig:
2014
2015 2015-12-31  Andy Estes  <aestes@apple.com>
2016
2017         Replace WTF::move with WTFMove
2018         https://bugs.webkit.org/show_bug.cgi?id=152601
2019
2020         Reviewed by Brady Eidson.
2021
2022         * History/WebHistoryItem.mm:
2023         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2024         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2025         (WebKit::HostedNetscapePluginStream::willSendRequest):
2026         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2027         (WebKit::NetscapePluginInstanceProxy::setCurrentReply):
2028         * Plugins/WebNetscapePluginStream.mm:
2029         (WebNetscapePluginStream::willSendRequest):
2030         * Plugins/WebNetscapePluginView.mm:
2031         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]):
2032         * WebCoreSupport/WebContextMenuClient.mm:
2033         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
2034         * WebCoreSupport/WebFrameLoaderClient.mm:
2035         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2036         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2037         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2038         (WebFrameLoaderClient::dispatchWillSubmitForm):
2039         (WebFrameLoaderClient::createDocumentLoader):
2040         * WebCoreSupport/WebInspectorClient.mm:
2041         (WebInspectorFrontendClient::WebInspectorFrontendClient):
2042         * WebView/WebArchive.mm:
2043         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2044         * WebView/WebFrame.mm:
2045         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2046         * WebView/WebHTMLView.mm:
2047         (-[WebHTMLView _applyEditingStyleToSelection:withUndoAction:]):
2048         * WebView/WebMediaPlaybackTargetPicker.mm:
2049         (WebMediaPlaybackTargetPicker::setPlaybackTarget):
2050         * WebView/WebView.mm:
2051         (-[WebView _loadBackForwardListFromOtherView:]):
2052         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2053         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2054
2055 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
2056
2057         Fix the iOS and EFL builds, after an over-eager commit-queue commit.
2058
2059         * History/WebHistoryItem.mm:
2060         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2061
2062 2016-01-01  Simon Fraser  <simon.fraser@apple.com>
2063
2064         Fix naming in HistoryItem to refer to scrollPositions
2065         https://bugs.webkit.org/show_bug.cgi?id=152646
2066
2067         Reviewed by Zalan Bujtas.
2068
2069         HistoryItem stores a scrollPosition, so call it that.
2070
2071         * History/WebHistoryItem.mm:
2072         (-[WebHistoryItem scrollPoint]):
2073
2074 2016-01-01  Jeff Miller  <jeffm@apple.com>
2075
2076         Update user-visible copyright strings to include 2016
2077         https://bugs.webkit.org/show_bug.cgi?id=152531
2078
2079         Reviewed by Alexey Proskuryakov.
2080
2081         * Info.plist:
2082
2083 2015-12-31  David Kilzer  <ddkilzer@apple.com>
2084
2085         Stop using USE(CFNETWORK) path on iOS
2086         https://bugs.webkit.org/show_bug.cgi?id=142540
2087
2088         Step 1/2: Do everything but turn off USE(CFNETWORK) internally.
2089
2090         Original patch by Antti Koivisto <antti@apple.com> on 2015-03-10
2091         Reviewed by Daniel Bates.
2092
2093         * Misc/WebDownload.h: Add header guard to make
2094         NSURLDownloadSPI.h work when pre-declaring NSURLDownload object.
2095         * Misc/WebKitVersionChecks.h: Define
2096         WEBKIT_FIRST_VERSION_WITH_LOADING_DURING_COMMON_RUNLOOP_MODES
2097         for iOS.
2098         * WebView/WebView.mm:
2099         (-[WebView _commonInitializationWithFrameName:groupName:]): Use
2100         the correct runloop on iOS.
2101         * WebView/WebViewPrivate.h:
2102         (-[WebView(WebPendingPublic) scheduleInRunLoop:forMode:]):
2103         (-[WebView(WebPendingPublic) unscheduleFromRunLoop:forMode:]):
2104         - These are available on iOS now.
2105
2106 2015-12-31  Simon Fraser  <simon.fraser@apple.com>
2107
2108         Clarify that scrollPositionChangedViaPlatformWidget takes offsets
2109         https://bugs.webkit.org/show_bug.cgi?id=152606
2110
2111         Reviewed by Zalan Bujtas.
2112
2113         scrollPositionChangedViaPlatformWidget actually gets scroll offsets, since the
2114         values we get from AppKit are zero-based, so rename to scrollOffsetChangedViaPlatformWidget().
2115         
2116         Change ScrollableArea's setScrollPosition() and requestScrollPositionUpdate() to take
2117         ScrollPositions.
2118         
2119         Add a FIXME noting that willRevealEdge events are probably broken in RTL documents.
2120
2121         * WebView/WebHTMLView.mm:
2122         (-[WebHTMLView _frameOrBoundsChanged]):
2123
2124 2015-12-22  Andy Estes  <aestes@apple.com>
2125
2126         [CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI
2127         https://bugs.webkit.org/show_bug.cgi?id=152463
2128
2129         Reviewed by Alexey Proskuryakov.
2130
2131         Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward
2132         declared in CFNetworkSPI.h.
2133
2134         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2135         (WebKit::HostedNetscapePluginStream::didReceiveResponse):
2136         * Plugins/WebNetscapePluginStream.mm:
2137         (WebNetscapePluginStream::didReceiveResponse):
2138         * WebCoreSupport/WebSystemInterface.mm:
2139         (InitWebCoreSystemInterface): Deleted.
2140         * WebView/WebPreferences.mm:
2141         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
2142
2143 2015-12-20  Dan Bernstein  <mitz@apple.com>
2144
2145         Remove unused setToolbarHeight
2146         https://bugs.webkit.org/show_bug.cgi?id=152466
2147
2148         Reviewed by Darin Adler.
2149
2150         * WebCoreSupport/WebInspectorClient.h:
2151         * WebCoreSupport/WebInspectorClient.mm::
2152         (WebInspectorFrontendClient::setToolbarHeight): Deleted.
2153
2154 2015-12-19  Dan Bernstein  <mitz@apple.com>
2155
2156         [Mac] WebKit contains dead source code for OS X Mavericks and earlier
2157         https://bugs.webkit.org/show_bug.cgi?id=152462
2158
2159         Reviewed by Alexey Proskuryakov.
2160
2161         - Removed build setting definitions for OS X 10.9 and earlier, and simplified defintions
2162           that became uniform across all OS X versions as a result:
2163
2164         * Configurations/DebugRelease.xcconfig:
2165         * Configurations/FeatureDefines.xcconfig:
2166         * Configurations/Version.xcconfig:
2167         * Configurations/WebKitLegacy.xcconfig:
2168
2169         - Simplified expressions involving __MAC_OS_X_VERSION_MIN_REQUIRED and removed code that was
2170           never getting compiled:
2171
2172         * WebCoreSupport/WebInspectorClient.mm:
2173         * WebView/WebDynamicScrollBarsView.mm:
2174         * WebView/WebHTMLView.mm:
2175         * WebView/WebImmediateActionController.h:
2176         * WebView/WebImmediateActionController.mm:
2177         * WebView/WebView.mm:
2178         * WebView/WebViewData.h:
2179         * WebView/WebViewData.mm:
2180         * WebView/WebViewInternal.h:
2181
2182 2015-12-17  Tim Horton  <timothy_horton@apple.com>
2183
2184         Data detector yellow highlight location is vertically mirrored in WebKit1
2185         https://bugs.webkit.org/show_bug.cgi?id=152216
2186         <rdar://problem/23848003>
2187
2188         Reviewed by Darin Adler.
2189
2190         * WebView/WebImmediateActionController.mm:
2191         (-[WebImmediateActionController _animationControllerForDataDetectedText]):
2192         Match the conversion we do at every other WK1 TextIndicator construction.
2193
2194 2015-12-16  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2195
2196         [Fetch API] Add fetch API compile time flag
2197         https://bugs.webkit.org/show_bug.cgi?id=152254
2198
2199         Reviewed by Darin Adler.
2200
2201         * Configurations/FeatureDefines.xcconfig:
2202
2203 2015-12-13  Tim Horton  <timothy_horton@apple.com>
2204
2205         Adopt CGIOSurfaceContextCreateImageReference to avoid unnecessary readback
2206         https://bugs.webkit.org/show_bug.cgi?id=150988
2207         <rdar://problem/18993594>
2208
2209         Reviewed by Darin Adler.
2210
2211         * WebCoreSupport/WebContextMenuClient.mm:
2212         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
2213         Adopt sinkIntoImage and drawConsumingImageBuffer in a few places.
2214
2215 2015-12-11  Eric Carlson  <eric.carlson@apple.com>
2216
2217         [MediaStream] Add a setting to allow the mock media capture devices to be enabled and disabled
2218         https://bugs.webkit.org/show_bug.cgi?id=152197
2219
2220         Reviewed by Dean Jackson.
2221
2222         * WebView/WebPreferenceKeysPrivate.h:
2223         * WebView/WebPreferences.mm:
2224         (+[WebPreferences initialize]):
2225         (-[WebPreferences mockCaptureDevicesEnabled]):
2226         (-[WebPreferences setMockCaptureDevicesEnabled:]):
2227         * WebView/WebPreferencesPrivate.h:
2228         * WebView/WebView.mm:
2229         (-[WebView _preferencesChanged:]):
2230
2231 2015-12-11  Beth Dakin  <bdakin@apple.com>
2232
2233         _touchEventRegions should return regions in the view's coordinates
2234         https://bugs.webkit.org/show_bug.cgi?id=152189
2235         -and corresponding-
2236         rdar://problem/23188605
2237
2238         Reviewed by Dan Bernstein.
2239
2240         The comment here was actually out of date. It claimed that touch rectangles 
2241         are in the coordinate system of the document, but we had actually changed 
2242         them to be in the view’s coordinate system in order to fix issues with 
2243         handling touch events in UIWebView. But now we are going back to having the 
2244         touch rectangles be in the document’s coordinate system, so we should fix the 
2245         rtl bugs here by converting to view coordinates before handing the rects off 
2246         to iOS WK1 clients.
2247         * WebView/WebView.mm:
2248         (-[WebView _touchEventRegions]):
2249
2250 2015-12-10  Eric Carlson  <eric.carlson@apple.com>
2251
2252         [MediaStream] Expose media capture devices persistent permissions to WebCore
2253         https://bugs.webkit.org/show_bug.cgi?id=152087
2254
2255         Reviewed by Chris Dumez.
2256
2257         Add methods and helpers for WK1 permission checker interface.
2258         * WebCoreSupport/WebUserMediaClient.h:
2259         * WebCoreSupport/WebUserMediaClient.mm:
2260         (userMediaRequestsMap):
2261         (AddRequestToRequestMap):
2262         (RemoveRequestFromRequestMap):
2263         (userMediaCheckMap):
2264         (AddPermissionCheckToMap):
2265         (RemovePermissionCheckFromMap):
2266         (WebUserMediaClient::WebUserMediaClient):
2267         (WebUserMediaClient::requestUserMediaAccess):
2268         (WebUserMediaClient::cancelUserMediaAccessRequest):
2269         (WebUserMediaClient::checkUserMediaPermission):
2270         (WebUserMediaClient::cancelUserMediaPermissionCheck):
2271         (-[WebUserMediaPolicyListener allow]):
2272         (-[WebUserMediaPolicyListener deny]):
2273         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]):
2274         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]):
2275         (-[WebUserMediaPolicyCheckerListener allow]):
2276         (-[WebUserMediaPolicyCheckerListener deny]):
2277         (-[WebUserMediaPolicyCheckerListener denyOnlyThisRequest]):
2278         (-[WebUserMediaPolicyCheckerListener shouldClearCache]):
2279         (AddRequestToMap): Deleted.
2280         (RemoveRequestFromMap): Deleted.
2281         * WebView/WebUIDelegatePrivate.h:
2282
2283 2015-12-08  Beth Dakin  <bdakin@apple.com>
2284
2285         Follow-up to:
2286         Add support for WebViewAdditions
2287         https://bugs.webkit.org/show_bug.cgi?id=151967
2288
2289         Rubber-stamped by Dan Bernstein.
2290
2291         We should use the Web prefix for all category names.
2292         * WebView/WebView.mm:
2293         (-[WebView updateWebViewAdditions]):
2294         * WebView/WebViewInternal.h:
2295
2296 2015-12-08  Eric Carlson  <eric.carlson@apple.com>
2297
2298         [MediaStream] Rename UserMediaClient and UserMediaController methods
2299         https://bugs.webkit.org/show_bug.cgi?id=152001
2300
2301         Reviewed by Brady Eidson.
2302
2303         * WebCoreSupport/WebUserMediaClient.h:
2304         * WebCoreSupport/WebUserMediaClient.mm:
2305         (WebUserMediaClient::pageDestroyed):
2306         (WebUserMediaClient::requestUserMediaAccess):
2307         (WebUserMediaClient::cancelUserMediaAccessRequest):
2308         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
2309         (-[WebUserMediaPolicyListener cancelUserMediaAccessRequest]):
2310         (WebUserMediaClient::requestPermission): Deleted.
2311         (WebUserMediaClient::cancelRequest): Deleted.
2312         (-[WebUserMediaPolicyListener cancelRequest]): Deleted.
2313
2314 2015-12-07  Alex Christensen  <achristensen@webkit.org>
2315
2316         Build fix after r193675.
2317
2318         * WebView/WebViewData.h:
2319
2320 2015-12-07  Alex Christensen  <achristensen@webkit.org>
2321
2322         Build fix after r193661.
2323
2324         Reviewed by Beth Dakin.
2325
2326         * WebView/WebViewData.h:
2327
2328 2015-12-07  Beth Dakin  <bdakin@apple.com>
2329
2330         Add support for WebViewAdditions
2331         https://bugs.webkit.org/show_bug.cgi?id=151967
2332
2333         Reviewed by Sam Weinig.
2334
2335         * WebCoreSupport/WebEditorClient.mm:
2336         (WebEditorClient::respondToChangedSelection):
2337         * WebView/WebView.mm:
2338         (-[WebView _commonInitializationWithFrameName:groupName:]):
2339         (-[WebView updateWebViewAdditions]):
2340         * WebView/WebViewData.h:
2341         * WebView/WebViewInternal.h:
2342
2343 2015-12-07  Beth Dakin  <bdakin@apple.com>
2344
2345         Hook up request and show for typing candidates in WK1
2346         https://bugs.webkit.org/show_bug.cgi?id=151831
2347         -and corresponding-
2348         <rdar://problem/23751214>
2349
2350         Reviewed by Enrica Casucci.
2351
2352         Add member variables to WebEditorClient. One is a WeakPtrFactory for the 
2353         asynchronous handlers, and the other caches the VisibleSelection at the time 
2354         candidates were requested so that we can make sure the candidates are still 
2355         valid once we receive them.
2356         * WebCoreSupport/WebEditorClient.h:
2357         * WebCoreSupport/WebEditorClient.mm:
2358         (WebEditorClient::WebEditorClient):
2359
2360         Call [NSSpellChecker requestCandidatesForSelectedRange] with the appropriate 
2361         parameters.
2362         (WebEditorClient::requestCandidatesForSelection):
2363
2364         Two helpers to compute information that we need for both of the handlers 
2365         below.
2366         (candidateRangeForSelection):
2367         (candidateWouldReplaceText):
2368
2369         In this handler, we just need to call [NSSpellChecker showCandidates] with 
2370         the appropriate parameters.
2371         (WebEditorClient::handleRequestedCandidates):
2372
2373         Once a candidate is accepted, it should be inserted in the right way.
2374         (WebEditorClient::handleAcceptedCandidate):
2375
2376 2015-12-03  Jer Noble  <jer.noble@apple.com>
2377
2378         Expose WebCore's InvisibleAutoplayNotPermitted setting to WebKit & WebKit2
2379         https://bugs.webkit.org/show_bug.cgi?id=151830
2380
2381         Reviewed by Anders Carlsson.
2382
2383         Add a new WebPreferences property invisibleAutoplayNotPermitted.
2384
2385         * WebView/WebPreferenceKeysPrivate.h:
2386         * WebView/WebPreferences.mm:
2387         (-[WebPreferences invisibleAutoplayNotPermitted]):
2388         (-[WebPreferences setInvisibleAutoplayNotPermitted:]):
2389         * WebView/WebPreferencesPrivate.h:
2390         * WebView/WebView.mm:
2391         (-[WebView _preferencesChanged:]):
2392
2393 2015-12-03  Anders Carlsson  <andersca@apple.com>
2394
2395         Remove Objective-C GC support
2396         https://bugs.webkit.org/show_bug.cgi?id=151819
2397         rdar://problem/23746991
2398
2399         Reviewed by Dan Bernstein.
2400
2401         * Carbon/CarbonWindowAdapter.mm:
2402         (+[CarbonWindowAdapter initialize]): Deleted.
2403         (-[CarbonWindowAdapter finalize]): Deleted.
2404         * Configurations/Base.xcconfig:
2405         * History/WebBackForwardList.mm:
2406         (+[WebBackForwardList initialize]): Deleted.
2407         (-[WebBackForwardList finalize]): Deleted.
2408         * History/WebHistory.mm:
2409         (-[WebHistoryPrivate finalize]): Deleted.
2410         (-[WebHistory finalize]): Deleted.
2411         * History/WebHistoryItem.mm:
2412         (+[WebHistoryItem initialize]): Deleted.
2413         (-[WebHistoryItem finalize]): Deleted.
2414         * Misc/WebElementDictionary.mm:
2415         (+[WebElementDictionary initialize]): Deleted.
2416         (-[WebElementDictionary finalize]): Deleted.
2417         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2418         (+[WebHostedNetscapePluginView initialize]): Deleted.
2419         * Plugins/WebBaseNetscapePluginView.mm:
2420         (-[WebBaseNetscapePluginView finalize]): Deleted.
2421         * Plugins/WebBasePluginPackage.mm:
2422         (-[WebBasePluginPackage finalize]): Deleted.
2423         * Plugins/WebNetscapePluginView.mm:
2424         (+[WebNetscapePluginView initialize]): Deleted.
2425         (-[WebNetscapePluginView finalize]): Deleted.
2426         * Plugins/WebPluginContainerCheck.mm:
2427         (-[WebPluginContainerCheck finalize]): Deleted.
2428         * WebCoreSupport/WebEditorClient.mm:
2429         (+[WebUndoStep initialize]): Deleted.
2430         (-[WebUndoStep finalize]): Deleted.
2431         * WebCoreSupport/WebFrameLoaderClient.mm:
2432         * WebCoreSupport/WebOpenPanelResultListener.mm:
2433         (-[WebOpenPanelResultListener finalize]): Deleted.
2434         * WebCoreSupport/WebSecurityOrigin.mm:
2435         (-[WebSecurityOrigin finalize]): Deleted.
2436         * WebView/WebArchive.mm:
2437         (+[WebArchivePrivate initialize]): Deleted.
2438         * WebView/WebDataSource.mm:
2439         (+[WebDataSource initialize]): Deleted.
2440         (-[WebDataSource finalize]): Deleted.
2441         * WebView/WebDynamicScrollBarsView.mm:
2442         (-[WebDynamicScrollBarsView finalize]): Deleted.
2443         * WebView/WebFrame.mm:
2444         (-[WebFramePrivate setWebFrameView:]):
2445         (-[WebFramePrivate finalize]): Deleted.
2446         (-[WebFrame finalize]): Deleted.
2447         * WebView/WebFrameView.mm:
2448         (-[WebFrameView finalize]): Deleted.
2449         * WebView/WebHTMLRepresentation.mm:
2450         (-[WebHTMLRepresentation finalize]): Deleted.
2451         * WebView/WebHTMLView.mm:
2452         (+[WebHTMLViewPrivate initialize]):
2453         (-[WebHTMLViewPrivate finalize]): Deleted.
2454         (+[WebHTMLView initialize]): Deleted.
2455         (-[WebHTMLView finalize]): Deleted.
2456         * WebView/WebResource.mm:
2457         (+[WebResourcePrivate initialize]): Deleted.
2458         (-[WebResourcePrivate finalize]): Deleted.
2459         * WebView/WebTextIterator.mm:
2460         (+[WebTextIteratorPrivate initialize]): Deleted.
2461         * WebView/WebView.mm:
2462         (-[WebView finalize]): Deleted.
2463         * WebView/WebViewData.mm:
2464         (+[WebViewPrivate initialize]): Deleted.
2465         (-[WebViewPrivate init]): Deleted.
2466         (-[WebViewPrivate finalize]): Deleted.
2467
2468 2015-12-02  Antti Koivisto  <antti@apple.com>
2469
2470         Move ResourceLoadScheduler to WebKit1
2471         https://bugs.webkit.org/show_bug.cgi?id=151743
2472
2473         Reviewed by Alex Christensen.
2474
2475         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2476         (WebKit::HostedNetscapePluginStream::start):
2477         (WebKit::HostedNetscapePluginStream::stop):
2478         * Plugins/WebNetscapePluginStream.mm:
2479         (WebNetscapePluginStream::start):
2480         (WebNetscapePluginStream::stop):
2481         * WebCoreSupport/WebPlatformStrategies.h:
2482         * WebCoreSupport/WebPlatformStrategies.mm:
2483         (WebPlatformStrategies::createLoaderStrategy):
2484         (WebPlatformStrategies::createPasteboardStrategy):
2485         (WebPlatformStrategies::createPluginStrategy):
2486         (WebPlatformStrategies::createBlobRegistry):
2487         (WebPlatformStrategies::cookiesForDOM):
2488         * WebView/WebView.mm:
2489         (-[WebView _dispatchPendingLoadRequests]):
2490         (+[WebView _setLoadResourcesSerially:]):
2491         (+[WebView _HTTPPipeliningEnabled]):
2492
2493 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2494
2495         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2496         https://bugs.webkit.org/show_bug.cgi?id=150792
2497
2498         Reviewed by Saam Barati.
2499
2500         * Configurations/FeatureDefines.xcconfig:
2501
2502 2015-12-01  Commit Queue  <commit-queue@webkit.org>
2503
2504         Unreviewed, rolling out r192914.
2505         https://bugs.webkit.org/show_bug.cgi?id=151734
2506
2507         JSC tests for this change are failing on 32 and 64-bit bots
2508         (Requested by ryanhaddad on #webkit).
2509
2510         Reverted changeset:
2511
2512         "[ES6] Implement LLInt/Baseline Support for ES6 Generators and
2513         enable this feature"
2514         https://bugs.webkit.org/show_bug.cgi?id=150792
2515         http://trac.webkit.org/changeset/192914
2516
2517 2015-12-01  Yusuke Suzuki  <utatane.tea@gmail.com>
2518
2519         [ES6] Implement LLInt/Baseline Support for ES6 Generators and enable this feature
2520         https://bugs.webkit.org/show_bug.cgi?id=150792
2521
2522         Reviewed by Saam Barati.
2523
2524         * Configurations/FeatureDefines.xcconfig:
2525
2526 2015-11-30  Katlyn Graff  <kgraff@apple.com>
2527
2528         Rename ActiveDOMObject/DOMWindow PageCacheSuspension code to support more reasons for suspension
2529         https://bugs.webkit.org/show_bug.cgi?id=151677
2530
2531         Reviewed by Ryosuke Niwa.
2532
2533         * WebView/WebFrame.mm:
2534         (-[WebFrame _cacheabilityDictionary]):
2535
2536 2015-11-30  Jiewen Tan  <jiewen_tan@apple.com>
2537
2538         Null dereference loading Blink layout test http/tests/misc/detach-during-notifyDone.html
2539         https://bugs.webkit.org/show_bug.cgi?id=149309
2540         <rdar://problem/22748363>
2541
2542         Reviewed by Brent Fulgham.
2543
2544         * WebView/WebDataSource.mm:
2545         (WebDataSourcePrivate::~WebDataSourcePrivate):
2546         Refine the assertion to treat <rdar://problem/9673866>.
2547
2548 == Rolled over to ChangeLog-2015-11-21 ==