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