0abad9bcf798ad598ae0c31d61bf5cfb365f4a90
[WebKit-https.git] / Source / WebKitLegacy / mac / ChangeLog
1 2017-09-13  Ryosuke Niwa  <rniwa@webkit.org>
2
3         Refactor WebContentReader out of EditorMac and EditorIOS
4         https://bugs.webkit.org/show_bug.cgi?id=176770
5
6         Reviewed by Sam Weinig.
7
8         * WebCoreSupport/WebEditorClient.mm:
9
10 2017-09-12  Ryosuke Niwa  <rniwa@webkit.org>
11
12         Dragging & dropping a file creates an attachment element even when it's disabled
13         https://bugs.webkit.org/show_bug.cgi?id=176769
14
15         Reviewed by Tim Horton.
16
17         * WebView/WebView.mm:
18         (-[WebView _preferencesChanged:]):
19
20 2017-09-11  Wenson Hsieh  <wenson_hsieh@apple.com>
21
22         [iOS DnD] Support DataTransfer.setDragImage when starting a drag on iOS
23         https://bugs.webkit.org/show_bug.cgi?id=176721
24         <rdar://problem/34373660>
25
26         Reviewed by Tim Horton.
27
28         Rename elementBounds => dragPreviewFrameInRootViewCoordinates. (Note: Unfortunately, _draggedElementBounds in
29         WebViewPrivate.h can't be renamed yet, due to binary and SDK compatibility with UIKit).
30
31         * WebView/WebView.mm:
32         (-[WebView _startDrag:]):
33         (-[WebView _draggedElementBounds]):
34         (-[WebView _endedDataInteraction:global:]):
35         * WebView/WebViewData.h:
36
37 2017-09-11  Andy Estes  <aestes@apple.com>
38
39         [Mac] Upstream QTKit-related WebKitSystemInterface functions
40         https://bugs.webkit.org/show_bug.cgi?id=176472
41
42         Reviewed by Eric Carlson.
43
44         * WebCoreSupport/WebSystemInterface.mm:
45         (InitWebCoreSystemInterface):
46
47 2017-09-09  Mark Lam  <mark.lam@apple.com>
48
49         Avoid duplicate computations of ExecState::vm().
50         https://bugs.webkit.org/show_bug.cgi?id=176647
51
52         Reviewed by Saam Barati.
53
54         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
55         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
56         (WebKit::NetscapePluginInstanceProxy::construct):
57         (WebKit::NetscapePluginInstanceProxy::setProperty):
58         (WebKit::NetscapePluginInstanceProxy::removeProperty):
59         (WebKit::NetscapePluginInstanceProxy::enumerate):
60         * Plugins/Hosted/ProxyInstance.mm:
61         (WebKit::ProxyRuntimeMethod::create):
62
63 2017-09-08  Commit Queue  <commit-queue@webkit.org>
64
65         Unreviewed, rolling out r221773.
66         https://bugs.webkit.org/show_bug.cgi?id=176614
67
68         This caused build failures. (Requested by mlewis13 on
69         #webkit).
70
71         Reverted changeset:
72
73         "[Mac] Upstream QTKit-related WebKitSystemInterface functions"
74         https://bugs.webkit.org/show_bug.cgi?id=176472
75         http://trac.webkit.org/changeset/221773
76
77 2017-09-07  Andy Estes  <aestes@apple.com>
78
79         [Mac] Upstream QTKit-related WebKitSystemInterface functions
80         https://bugs.webkit.org/show_bug.cgi?id=176472
81
82         Reviewed by Eric Carlson.
83
84         * WebCoreSupport/WebSystemInterface.mm:
85         (InitWebCoreSystemInterface):
86
87 2017-09-07  Myles C. Maxfield  <mmaxfield@apple.com>
88
89         [PAL] Unify PlatformUserPreferredLanguages.h with Language.h
90         https://bugs.webkit.org/show_bug.cgi?id=176561
91
92         Reviewed by Brent Fulgham.
93
94         * Misc/WebNSUserDefaultsExtras.mm:
95
96 2017-09-07  Alex Christensen  <achristensen@webkit.org>
97
98         Modernize Geolocation code
99         https://bugs.webkit.org/show_bug.cgi?id=176496
100
101         Reviewed by Andy Estes.
102
103         * WebCoreSupport/WebGeolocationClient.h:
104         * WebCoreSupport/WebGeolocationClient.mm:
105         (WebGeolocationClient::requestPermission):
106         (-[WebGeolocationPolicyListener initWithGeolocation:]):
107         (-[WebGeolocationPolicyListener initWithGeolocation:forWebView:]):
108         (-[WebGeolocationProviderInitializationListener initWithGeolocation:]):
109         * WebView/WebView.mm:
110         (-[WebView _commonInitializationWithFrameName:groupName:]):
111         (-[WebView _geolocationDidFailWithMessage:]):
112
113 2017-09-05  Tim Horton  <timothy_horton@apple.com>
114
115         Remove some unused bits of code and resources
116         https://bugs.webkit.org/show_bug.cgi?id=176275
117
118         Reviewed by Dan Bernstein.
119
120         * Misc/WebNSFileManagerExtras.mm:
121         Include FileSystem instead of FileSystemIOS.
122
123 2017-09-03  Darin Adler  <darin@apple.com>
124
125         [Cocoa] Tidy a few things in legacy WebHTMLView
126         https://bugs.webkit.org/show_bug.cgi?id=176280
127
128         Reviewed by Dan Bernstein.
129
130         * WebCoreSupport/WebChromeClient.mm:
131         (WebChromeClient::attachRootGraphicsLayer): Made this function Mac-only, because the
132         methods it calls on WebHTMLView were doing nothing on iOS.
133
134         * WebView/WebFrame.mm:
135         (-[WebFrame _paintBehaviorForDestinationContext:]): Changed iOS code so that it no longer
136         depends on -[WebHTMLView _web_isDrawingIntoLayer], which always returned YES on iOS.
137
138         * WebView/WebHTMLView.mm: Define WebEvent on both iOS and Mac so more event handling
139         code can be shared without #if below. Use #if PLATFORM(MAC) instead of #if !PLATFORM(IOS)
140         in a lot more places. Move many of the SPI declarations up to the top in alphabetical
141         order. Removed all sorts of unused things. Made more code and fields Mac-only where
142         what was compiled was doing nothing on iOS and it makes the resulting code simpler.
143         Use RetainPtr instead of writing retain/release wherever possible.
144         (+[WebMenuTarget sharedMenuTarget]): Moved global inside this method and used C++
145         initialization for it. Removed various unused methods and declarations of methods.
146         (promisedDataClient): Use NeverDestroyed instead of just doing a "new" on the heap.
147         (-[WebHTMLView _imageExistsAtPaths:]): Deleted.
148         (-[WebHTMLView _documentFragmentWithPaths:]): Use RetainPtr and modern for loop.
149         (+[WebHTMLView _excludedElementsForAttributedStringConversion]): Use C++ initialization,
150         and remove CFRetain no longer needed since we don't support garbage collection any more.
151         (uniqueURLWithRelativePart): Simplified using [NSUUID UUID].
152         (-[WebHTMLView _plainTextFromPasteboard:]): Simplified with RetainPtr.
153         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): Ditto.
154         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Ditto.
155         (-[WebHTMLView _removeWindowObservers]): Removed code dealing with empty
156         methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
157         (-[WebHTMLView _shouldDeleteRange:]): Deleted. Was unused.
158         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
159         Simplified with stringByReplacingOccurrencesOfString and modern string literal syntax.
160         (-[WebHTMLView _setMouseDownEvent:]): Ditto.
161         (-[WebHTMLView _web_setPrintingModeRecursive:adjustViewSize:]): Added. Helper method so
162         the next three methhods can be super-simple. Used RetainPtr and a modern for loop to make
163         this method simpler than the functions it replaced. Also got rid of the enumeratingSubviews
164         debug flag; we haven't used it for years and it's not clearly helpful.
165         (-[WebHTMLView _web_setPrintingModeRecursive]): Turned into a one-liner with the above.
166         (-[WebHTMLView _web_clearPrintingModeRecursive]): Ditto.
167         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]): Ditto.
168         (-[WebHTMLView _web_makePluginSubviewsPerformSelector:withObject:]): Moved from the
169         WebInternal category to the WebHTMLViewFileInternal category so it can be called by
170         two additional methods in the WebPrivate category and still be called by the two
171         methods in the WebInternal category that were already using it.
172         (-[WebHTMLView didAddSubview:]): Deleted.
173         (-[WebHTMLView _insideAnotherHTMLView]): Deleted.
174         (-[WebHTMLView _clearLastHitViewIfSelf]): Deleted. Inlined the implementation in the one
175         place this was called, the close method.
176         (-[WebHTMLView _setToolTip:]): Simplified with RetainPtr.
177         (-[WebHTMLView pasteboard:provideDataForType:]): Ditto.
178         (-[WebHTMLView _autoscroll]): Simplified by making this Mac-only.
179         (-[WebHTMLView _hasHTMLDocument]): Deleted. The one caller was removed a long time ago.
180         (-[WebHTMLView _web_documentFragmentFromPasteboard:pasteboardType:imageMIMEType:]):
181         Added helper method to make the one below simpler.
182         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
183         Compared pasteboard type strings using isEqualToString: rather than using == since
184         we want to actually compare the string contents. Also updated to use modern for loop,
185         renamed a local variable from "s" to "localSubresources", and factored out the handling
186         of three image types to use the helper method above.
187         (-[WebHTMLView _pauseNullEventsForAllNetscapePlugins]): Rewrite using the
188         _web_makePluginSubviewsPerformSelector:withObject: method.
189         (-[WebHTMLView _resumeNullEventsForAllNetscapePlugins]): Ditto.
190         (-[NSView _web_addDescendentWebHTMLViewsToArray:]): Fixed spelling to use the adjective
191         "descendent" rather than the noun "descendant". Also removed Mac-only optimization to
192         not call the -[NSView subviews] method to make this identical on both platforms and used
193         a modern for loop.
194         (-[NSMutableDictionary _web_setObjectIfNotNil:forKey:]): Deleted.
195         (-[WebHTMLView acceptsFirstResponder]): Reduced amount of platform-specific code by
196         defining WebEventMouseDown as a synonym for NSEventTypeLeftMouseDown on Mac.
197         (-[WebHTMLView addWindowObservers]): Removed code dealing with empty
198         methods windowWillOrderOnScreen: and windowWillOrderOffScreen:.
199         (-[WebHTMLView willRemoveSubview:]): Removed the enumeratingSubviews check.
200         (-[WebHTMLView drawSingleRect:]): Rearranged this method to make it clearer that most
201         of it is Mac-only.
202         (-[WebHTMLView windowWillOrderOnScreen:]): Deleted. All the current version of this
203         method did was call itself on the main thread, and do nothing if called on main thread.
204         (-[WebHTMLView windowWillOrderOffScreen:]): Deleted. Ditto.
205         (-[WebHTMLView _isSelectionEvent:]): Merged macOS and iOS versions.
206         (-[WebHTMLView resignFirstResponder]): Removed iOS-specific code in the macOS-specific
207         half of this method.
208         (-[WebHTMLView setDataSource:]): Simplified using RetainPtr.
209         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
210         Simplified using a modern for loop and RetainPtr.
211         (-[WebHTMLView knowsPageRange:]): Simplified using RetainPtr.
212         (-[WebHTMLView keyDown:]): Ditto.
213         (-[WebHTMLView _selectionStartFontAttributesAsRTF]): Ditto.
214         (-[WebHTMLView performKeyEquivalent:]): Ditto.
215         (-[WebHTMLView _styleForAttributeChange:]): Ditto.
216         (-[WebHTMLView complete:]): Ditto.
217         (-[WebHTMLView _windowChangedKeyState]): Removed iOS-specific code since this method is
218         now macOS-only.
219         (-[WebHTMLView _selectionChanged]): Removed call to _updateSelectionForInputManager on
220         iOS since that is now macOS-only.
221         (-[WebHTMLView promisedDragTIFFDataSource]): Deleted.
222         (-[WebHTMLView _startAutoscrollTimer:]): Moved this into an internal category instead of
223         a private one because it is not used or needed outside WebKit. Also made it macOS-only
224         and reorganized to use early return.
225         (-[WebHTMLView _stopAutoscrollTimer]): Moved into internal category. It remains a no-op
226         on iOS, but kept there so we don't have to do #if at every call site.
227         (-[WebHTMLView _pluginController]): Moved into internal category.
228         (-[WebHTMLView validAttributesForMarkedText]): Simplified by removing CFRetain that was
229         there only for GC, using C++ initialization, removing obsolete comment.
230         (-[WebHTMLView _updateSelectionForInputManager]): Made this macOS-only and removed
231         peculiar iOS-only comment.
232         (+[NSURL _web_uniqueWebDataURL]): Simplified using [NSUUID UUID].
233
234         * WebView/WebHTMLViewInternal.h: Removed unused promisedDragTIFFDataSource method.
235         Made attachRootLayer:, detachRootLayer, _web_isDrawingIntoLayer,
236         _web_isDrawingIntoAcceleratedLayer all macOS-only. Moved _startAutoscrollTimer:,
237         _stopAutoscrollTimer, and _pluginController here from SPI header since they aren't
238         needed or used as SPI. And made _startAutoscrollTimer macOS-only.
239
240         * WebView/WebHTMLViewPrivate.h: Removed unneeded and unused SPI: _insideAnotherHTMLView,
241         _clearLastHitViewIfSelf, _pluginController, _startAutoscrollTimer:, and _stopAutoscrollTimer.
242         Made _transparentBackground and _setTransparentBackground: macOS-only. These probably
243         are not needed on macOS either, but I wasn't able to make absolutely sure I could remove
244         them at this time.
245
246 2017-09-03  Sam Weinig  <sam@webkit.org>
247
248         Remove CanvasProxy
249         https://bugs.webkit.org/show_bug.cgi?id=176288
250
251         Reviewed by Yusuke Suzuki.
252
253         CanvasProxy does not appear to be in any current HTML spec
254         and was disabled and unimplemented in our tree. Time to 
255         get rid of it.
256
257         * Configurations/FeatureDefines.xcconfig:
258
259 2017-09-02  Andy Estes  <aestes@apple.com>
260
261         [CA] Upstream QuartzCore-related WebKitSystemInterface functions
262         https://bugs.webkit.org/show_bug.cgi?id=176270
263
264         Reviewed by Tim Horton.
265
266         * Plugins/Hosted/NetscapePluginHostManager.mm:
267         (WebKit::NetscapePluginHostManager::spawnPluginHost):
268         * Plugins/Hosted/WebHostedNetscapePluginView.h:
269         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
270         (WebKit::SoftwareCARenderer::SoftwareCARenderer):
271         (WebKit::SoftwareCARenderer::~SoftwareCARenderer):
272         (WebKit::SoftwareCARenderer::context const):
273         (WebKit::SoftwareCARenderer::renderContext const):
274         (WebKit::SoftwareCARenderer::render):
275         (-[WebHostedNetscapePluginView createPlugin]):
276         (-[WebHostedNetscapePluginView createPluginLayer]):
277         (-[WebHostedNetscapePluginView destroyPlugin]):
278         (-[WebHostedNetscapePluginView drawRect:]):
279         * WebCoreSupport/WebSystemInterface.mm:
280         (InitWebCoreSystemInterface):
281
282 2017-09-01  Andy Estes  <aestes@apple.com>
283
284         [CG] Upstream CoreGraphics-related WebKitSystemInterface functions
285         https://bugs.webkit.org/show_bug.cgi?id=176200
286
287         Reviewed by Tim Horton.
288
289         * Carbon/HIWebView.mm:
290         (-[NSWindowGraphicsContext _web_setGraphicsPort:]):
291         (overrideCGContext):
292         (restoreCGContext):
293         (Draw):
294         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
295         (+[WebHostedNetscapePluginView initialize]):
296         * Plugins/WebBaseNetscapePluginView.h:
297         * Plugins/WebBaseNetscapePluginView.mm:
298         (WebKit::sendUserChangeNotifications):
299         * Plugins/WebNetscapePluginView.mm:
300         (+[WebNetscapePluginView initialize]):
301         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
302         * WebCoreSupport/WebSystemInterface.mm:
303         (InitWebCoreSystemInterface):
304         * WebView/WebFrame.mm:
305         (-[WebFrame _paintBehaviorForDestinationContext:]):
306         * WebView/WebFullScreenController.mm:
307         (setClipRectForWindow):
308         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
309         (-[WebFullScreenController finishedExitFullScreenAnimation:]):
310         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
311         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
312
313 2017-08-31  Andy Estes  <aestes@apple.com>
314
315         [Mac] Upstream AppKit-related WebKitSystemInterface functions
316         https://bugs.webkit.org/show_bug.cgi?id=176175
317
318         Reviewed by Brady Eidson.
319
320         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
321         (WebKit::NetscapePluginInstanceProxy::keyEvent):
322         * Plugins/Hosted/WebTextInputWindowController.m:
323         (-[WebTextInputPanel init]):
324         * WebCoreSupport/WebSystemInterface.mm:
325         (InitWebCoreSystemInterface):
326         * WebView/WebDynamicScrollBarsView.mm:
327         (-[WebDynamicScrollBarsView scrollWheel:]):
328         * WebView/WebHTMLView.mm:
329         (-[WebHTMLView _removeWindowObservers]):
330         (-[WebHTMLView addWindowObservers]):
331         * WebView/WebView.mm:
332         (-[WebView addWindowObserversForWindow:]):
333         (-[WebView removeWindowObservers]):
334         (-[WebView viewWillMoveToWindow:]):
335
336 2017-08-31  Alex Christensen  <achristensen@webkit.org>
337
338         Add ObjC SPI corresponding to WKPageLoaderClient's webGLLoadPolicy and resolveWebGLLoadPolicy
339         https://bugs.webkit.org/show_bug.cgi?id=175779
340         <rdar://problem/22367975>
341
342         Reviewed by Tim Horton.
343
344         * WebCoreSupport/WebFrameLoaderClient.h:
345         * WebCoreSupport/WebFrameLoaderClient.mm:
346         (WebFrameLoaderClient::webGLPolicyForURL const):
347         (WebFrameLoaderClient::resolveWebGLPolicyForURL const):
348
349 2017-08-30  Andy Estes  <aestes@apple.com>
350
351         [Mac] Upstream Accessibility-related WebKitSystemInterface functions
352         https://bugs.webkit.org/show_bug.cgi?id=176093
353
354         Reviewed by Eric Carlson.
355
356         * WebCoreSupport/WebSystemInterface.mm:
357         (InitWebCoreSystemInterface):
358
359 2017-08-30  Andy Estes  <aestes@apple.com>
360
361         [Mac] Upstream Carbon-related WebKitSystemInterface functions
362         https://bugs.webkit.org/show_bug.cgi?id=176087
363
364         Reviewed by Alex Christensen.
365
366         * Carbon/CarbonUtils.m:
367         (getNSAutoreleasePoolCount):
368         (WebInitForCarbon):
369         (PoolCleaner):
370         * Carbon/CarbonWindowAdapter.mm:
371         (+[CarbonWindowAdapter frameViewClassForStyleMask:]):
372         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
373         (-[CarbonWindowAdapter _oldPlaceWindow:]):
374         (-[CarbonWindowAdapter _windowMovedToRect:]):
375         * Carbon/HIViewAdapter.m:
376         * Carbon/HIWebView.mm:
377         (Draw):
378         (CreateNSEventAdoptingCGEvent):
379         (CopyEventCGEvent):
380         (CreateNSEventWithCarbonClickEvent):
381         (Click):
382         (CreateNSEventWithCarbonEvent):
383         (MouseUp):
384         (CreateNSEventWithCarbonMouseMoveEvent):
385         (MouseMoved):
386         (MouseDragged):
387         (MouseWheelMoved):
388         (WindowHandler):
389         (HIWebViewEventHandler):
390         * Misc/QuickDrawCompatibility.h: Removed.
391         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
392         (getCarbonEvent):
393         (WebNetscapePluginEventHandlerCarbon::keyDown):
394         (WebNetscapePluginEventHandlerCarbon::keyUp):
395         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
396         (WebNetscapePluginEventHandlerCocoa::keyDown):
397         * Plugins/WebNetscapePluginView.mm:
398         (-[WebNetscapePluginView tellQuickTimeToChill]):
399
400 2017-08-29  Andy Estes  <aestes@apple.com>
401
402         [Mac] Upstream WKSetMetadataURL() from WebKitSystemInterface
403         https://bugs.webkit.org/show_bug.cgi?id=176046
404
405         Reviewed by Alex Christensen.
406
407         Removed the pthread logic from -_webkit_setMetadataURL:referrer:atPath: and replaced with
408         WebCore::setMetadataURL(), which uses dispatch_async() for the same purpose as the pthread.
409
410         * Misc/WebNSFileManagerExtras.mm:
411         (-[NSFileManager _webkit_setMetadataURL:referrer:atPath:]):
412         (setMetaData): Deleted.
413         * WebCoreSupport/WebSystemInterface.mm:
414         (InitWebCoreSystemInterface):
415
416 2017-08-28  Andy Estes  <aestes@apple.com>
417
418         [Cocoa] Upstream WKGetWebDefaultCFStringEncoding()
419         https://bugs.webkit.org/show_bug.cgi?id=176039
420
421         Reviewed by Alex Christensen.
422
423         * WebCoreSupport/WebSystemInterface.mm:
424         (InitWebCoreSystemInterface):
425         * WebView/WebPreferences.mm:
426         (+[WebPreferences _systemCFStringEncoding]):
427
428 2017-08-28  Andy Estes  <aestes@apple.com>
429
430         [Cocoa] Upstream CFNetwork-related WebKitSystemInterface functions
431         https://bugs.webkit.org/show_bug.cgi?id=176032
432
433         Reviewed by Alex Christensen.
434
435         * WebCoreSupport/WebSystemInterface.mm:
436         (InitWebCoreSystemInterface):
437         * WebView/WebView.mm:
438         (-[WebView _cachedResponseForURL:]):
439
440 2017-08-28  Brent Fulgham  <bfulgham@apple.com>
441
442         Disable access to secure cookies if an HTTPS site loads mixed content (Part 2: Header Requests)
443         https://bugs.webkit.org/show_bug.cgi?id=175992
444         <rdar://problem/34086613>
445
446         Reviewed by Daniel Bates.
447
448         * WebCoreSupport/WebPlatformStrategies.h:
449         * WebCoreSupport/WebPlatformStrategies.mm:
450         (WebPlatformStrategies::cookieRequestHeaderFieldValue): Modify to accept a flag indicating if secure
451         cookies should be included, and return a pair containing the resulting cookie string and a boolean
452         indicating if secure cookies were accessed.
453
454 2017-08-27  Wenson Hsieh  <wenson_hsieh@apple.com>
455
456         Picking an emoji via the emoji dialog (Ctrl+Cmd+Space) fires inconsistent beforeinput events.
457         https://bugs.webkit.org/show_bug.cgi?id=170955
458         <rdar://problem/31697653>
459
460         Reviewed by Ryosuke Niwa.
461
462         Tweak -insertText: to pass TextEventInputAutocompletion to Editor::insertText when inserting text, if existing
463         text is being replaced.
464
465         * WebView/WebHTMLView.mm:
466         (-[WebHTMLView insertText:]):
467
468 2017-08-24  Chris Dumez  <cdumez@apple.com>
469
470         [Directory Upload] Add basic support for input.webkitdirectory
471         https://bugs.webkit.org/show_bug.cgi?id=175950
472         <rdar://problem/33951915>
473
474         Reviewed by Geoffrey Garen.
475
476         Add private API to toggle Directory Upload support on Mac WebKit1.
477
478         * WebView/WebPreferenceKeysPrivate.h:
479         * WebView/WebPreferences.mm:
480         (+[WebPreferences initialize]):
481         (-[WebPreferences setDirectoryUploadEnabled:]):
482         (-[WebPreferences directoryUploadEnabled]):
483         * WebView/WebPreferencesPrivate.h:
484         * WebView/WebView.mm:
485         (-[WebView _preferencesChanged:]):
486
487 2017-08-22  Wenson Hsieh  <wenson_hsieh@apple.com>
488
489         [WK2] EditorState updates should be rolled into the layer update lifecycle when possible
490         https://bugs.webkit.org/show_bug.cgi?id=175370
491         <rdar://problem/33799806>
492
493         Reviewed by Ryosuke Niwa.
494
495         Adjust WebEditorClient for interface changes.
496
497         * WebCoreSupport/WebEditorClient.h:
498
499 2017-08-22  Alex Christensen  <achristensen@webkit.org>
500
501         Remove ChromeClient::scrollbarsModeDidChange
502         https://bugs.webkit.org/show_bug.cgi?id=175805
503
504         Reviewed by Daniel Bates.
505
506         * WebCoreSupport/WebChromeClient.h:
507
508 2017-08-22  Alex Christensen  <achristensen@webkit.org>
509
510         Remove ChromeClient::hasOpenedPopup
511         https://bugs.webkit.org/show_bug.cgi?id=175804
512
513         Reviewed by Sam Weinig.
514
515         * WebCoreSupport/WebChromeClient.h:
516         * WebCoreSupport/WebChromeClient.mm:
517         (WebChromeClient::hasOpenedPopup const): Deleted.
518
519 2017-08-22  Brent Fulgham  <bfulgham@apple.com> and Pranjal Jumde  <pjumde@apple.com>
520
521         Disable access to secure cookies if an HTTPS site loads mixed content
522         https://bugs.webkit.org/show_bug.cgi?id=157053
523         <rdar://problem/11290808>
524
525         Reviewed by Dan Bates.
526
527         * WebCoreSupport/WebPlatformStrategies.h:
528         * WebCoreSupport/WebPlatformStrategies.mm:
529         (WebPlatformStrategies::cookiesForDOM): Check and return whether secure cookies were accessed. Accept a new argument
530         indicating whether secure cookies should be included in the response.
531
532 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
533
534         [PAL] Move spi/mac directory into PAL
535         https://bugs.webkit.org/show_bug.cgi?id=175649
536
537         Reviewed by Myles C. Maxfield.
538
539         * Misc/WebSharingServicePickerController.h:
540         * WebCoreSupport/WebContextMenuClient.mm:
541         * WebCoreSupport/WebEditorClient.mm:
542         * WebCoreSupport/WebSelectionServiceController.mm:
543         * WebView/WebHTMLView.mm:
544         * WebView/WebImmediateActionController.h:
545         * WebView/WebImmediateActionController.mm:
546         * WebView/WebView.mm:
547
548 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
549
550         [PAL] Relocate SessionID to root
551         https://bugs.webkit.org/show_bug.cgi?id=175684
552
553         Reviewed by Alex Christensen.
554
555         * WebCoreSupport/WebFrameNetworkingContext.mm:
556
557 2017-08-17  Andreas Kling  <akling@apple.com>
558
559         Disable CSS regions at compile time
560         https://bugs.webkit.org/show_bug.cgi?id=175630
561
562         Reviewed by Antti Koivisto.
563
564         * Configurations/FeatureDefines.xcconfig:
565
566 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
567
568         [PAL] Move SessionID into PAL
569         https://bugs.webkit.org/show_bug.cgi?id=174192
570
571         Reviewed by Antti Koivisto.
572
573         * Misc/WebCache.mm:
574         (+[WebCache imageForURL:]):
575         * WebCoreSupport/WebFrameLoaderClient.h:
576         * WebCoreSupport/WebFrameLoaderClient.mm:
577         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
578         * WebCoreSupport/WebFrameNetworkingContext.mm:
579         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
580         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
581         (WebFrameNetworkingContext::storageSession const):
582         * WebCoreSupport/WebPlatformStrategies.h:
583         * WebCoreSupport/WebPlatformStrategies.mm:
584         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
585         * WebKitPrefix.h:
586
587 2017-08-16  Andy Estes  <aestes@apple.com>
588
589         [Apple Pay] Rename PaymentRequest to ApplePaySessionPaymentRequest
590         https://bugs.webkit.org/show_bug.cgi?id=175648
591
592         Reviewed by Tim Horton.
593
594         * WebCoreSupport/WebPaymentCoordinatorClient.h:
595         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
596         (WebPaymentCoordinatorClient::showPaymentUI):
597
598 2017-08-16  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
599
600         [PAL] Move spi/ios and spi/win directories into PAL
601         https://bugs.webkit.org/show_bug.cgi?id=175171
602
603         Reviewed by Antti Koivisto.
604
605         * WebCoreSupport/WebFrameLoaderClient.mm:
606         * WebView/WebView.mm:
607
608 2017-08-16  Andy Estes  <aestes@apple.com>
609
610         [Payment Request] Add an ENABLE flag and an experimental feature preference
611         https://bugs.webkit.org/show_bug.cgi?id=175622
612
613         Reviewed by Tim Horton.
614
615         * Configurations/FeatureDefines.xcconfig:
616
617 2017-08-15  Don Olmstead  <don.olmstead@sony.com>
618
619         [PAL] Move Sleep classes into PAL
620         https://bugs.webkit.org/show_bug.cgi?id=175456
621
622         Reviewed by Ryosuke Niwa.
623
624         * WebView/WebFullScreenController.h:
625
626 2017-08-15  Youenn Fablet  <youenn@apple.com>
627
628         [Cache API] Adding generic support for CacheStorage and Cache methods
629         https://bugs.webkit.org/show_bug.cgi?id=175455
630
631         Reviewed by Chris Dumez.
632
633         * WebView/WebView.mm:
634         (-[WebView _commonInitializationWithFrameName:groupName:]):
635
636 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
637
638         Remove Proximity Events and related code
639         https://bugs.webkit.org/show_bug.cgi?id=175545
640
641         Reviewed by Daniel Bates.
642
643         No platform enables Proximity Events, so remove code inside ENABLE(PROXIMITY_EVENTS)
644         and other related code.
645
646         * Configurations/FeatureDefines.xcconfig:
647
648 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
649
650         Remove ENABLE(REQUEST_AUTOCOMPLETE) code, which was disabled everywhere
651         https://bugs.webkit.org/show_bug.cgi?id=175504
652
653         Reviewed by Sam Weinig.
654
655         * Configurations/FeatureDefines.xcconfig:
656         * DOM/DOMHTMLFormElement.mm:
657         (-[DOMHTMLFormElement requestAutocomplete]): Deleted.
658         * WebCoreSupport/WebFrameLoaderClient.h:
659
660 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
661
662         Remove ENABLE_VIEW_MODE_CSS_MEDIA and related code
663         https://bugs.webkit.org/show_bug.cgi?id=175557
664
665         Reviewed by Jon Lee.
666
667         No port cares about the ENABLE(VIEW_MODE_CSS_MEDIA) feature, so remove it.
668
669         * Configurations/FeatureDefines.xcconfig:
670
671 2017-08-13  Manuel Rego Casasnovas  <rego@igalia.com>
672
673         Composition underline color is always black
674         https://bugs.webkit.org/show_bug.cgi?id=174675
675
676         Reviewed by Ryosuke Niwa.
677
678         * WebView/WebHTMLView.mm:
679         (extractUnderlines): If NSUnderlineColorAttributeName
680         is not present use text color for composition underline.
681         (-[WebHTMLView setMarkedText:selectedRange:]): Use text color
682         for composition underline in the plain text case.
683
684 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
685
686         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
687         https://bugs.webkit.org/show_bug.cgi?id=175474
688         <rdar://problem/33844628>
689
690         Reviewed by Wenson Hsieh.
691
692         Replaced the build flag by a runtime flag and disabled the feature by default.
693
694         * Configurations/FeatureDefines.xcconfig:
695         * WebView/WebPreferenceKeysPrivate.h:
696         * WebView/WebPreferences.mm:
697         (+[WebPreferences initialize]): Disables dataTransfer.items by default.
698         (-[WebPreferences dataTransferItemsEnabled]): Added.
699         (-[WebPreferences setDataTransferItemsEnabled:]): Added.
700         * WebView/WebPreferencesPrivate.h:
701         * WebView/WebView.mm:
702         (-[WebView _preferencesChanged:]):
703
704 2017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
705
706         Remove ENABLE_GAMEPAD_DEPRECATED
707         https://bugs.webkit.org/show_bug.cgi?id=175361
708
709         Reviewed by Carlos Garcia Campos.
710
711         * Configurations/FeatureDefines.xcconfig:
712
713 2017-08-09  Chris Dumez  <cdumez@apple.com>
714
715         Disable Beacon API on WK1 DRT and WK2 when not using NETWORK_SESSION
716         https://bugs.webkit.org/show_bug.cgi?id=175401
717
718         Reviewed by Brady Eidson.
719
720         * WebView/WebPreferenceKeysPrivate.h:
721         * WebView/WebPreferences.mm:
722         (+[WebPreferences initialize]):
723         (-[WebPreferences beaconAPIEnabled]): Deleted.
724         (-[WebPreferences setBeaconAPIEnabled:]): Deleted.
725         * WebView/WebPreferencesPrivate.h:
726         * WebView/WebView.mm:
727         (-[WebView _preferencesChanged:]):
728
729 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
730
731         [PAL] Move spi/cocoa and spi/cg directories into PAL
732         https://bugs.webkit.org/show_bug.cgi?id=175175
733
734         Reviewed by Myles C. Maxfield.
735
736         * History/WebHistory.mm:
737         * Misc/WebDownload.mm:
738         * Misc/WebKitNSStringExtras.mm:
739         * Plugins/Hosted/NetscapePluginHostManager.mm:
740         * Plugins/WebPluginDatabase.mm:
741         * WebCoreSupport/WebFrameLoaderClient.mm:
742         * WebInspector/WebNodeHighlight.mm:
743         * WebView/WebHTMLView.mm:
744         * WebView/WebIndicateLayer.mm:
745         * WebView/WebView.mm:
746         * WebView/WebViewData.h:
747
748 2017-08-09  Wenson Hsieh  <wenson_hsieh@apple.com>
749
750         [iOS DnD] ENABLE_DRAG_SUPPORT should be turned off for iOS 10 and enabled by default
751         https://bugs.webkit.org/show_bug.cgi?id=175392
752         <rdar://problem/33783207>
753
754         Reviewed by Tim Horton and Megan Gardner.
755
756         Tweak FeatureDefines to enable drag and drop by default, and disable only on unsupported platforms (i.e. iOS 10).
757
758         * Configurations/FeatureDefines.xcconfig:
759
760 2017-08-09  Daniel Bates  <dabates@apple.com>
761
762         REGRESSION (r219013): OAuth flows are broken when redirecting back to application after authentication
763         https://bugs.webkit.org/show_bug.cgi?id=175247
764         <rdar://problem/33679804>
765
766         Reviewed by Brady Eidson.
767
768         Plumb knowledge of whether a navigation was in response to receiving a redirect response.
769         We do not actually make use of this knowledge in WebKitLegacy because we do not know of any
770         clients that need to make use of this information at this time. If such a needs comes up
771         then we can expose API/SPI similar to what we do for WebKit.
772
773         * WebCoreSupport/WebFrameLoaderClient.h:
774         * WebCoreSupport/WebFrameLoaderClient.mm:
775         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
776
777 2017-08-08  Brady Eidson  <beidson@apple.com>
778
779         Don't enable default icon loading in WK1 for apps linked against old SDKs.
780         <rdar://problem/33724060> and https://bugs.webkit.org/show_bug.cgi?id=175342
781
782         Reviewed by Andy Estes.
783
784         * Misc/WebKitVersionChecks.h:
785         * WebCoreSupport/WebFrameLoaderClient.mm:
786         (WebFrameLoaderClient::getLoadDecisionForIcons): Don't do any icon loading unless
787           the app is linked against new WebKit with the new behavior.
788
789 2017-08-07  Devin Rousso  <drousso@apple.com>
790
791         Web Inspector: Preview Canvas path when viewing a recording
792         https://bugs.webkit.org/show_bug.cgi?id=174967
793
794         Reviewed by Brian Burg.
795
796         * WebView/WebPreferenceKeysPrivate.h:
797         * WebView/WebPreferences.mm:
798         (+[WebPreferences initialize]):
799         (-[WebPreferences inspectorAdditionsEnabled]):
800         (-[WebPreferences setInspectorAdditionsEnabled:]):
801         * WebView/WebPreferencesPrivate.h:
802         * WebView/WebView.mm:
803         (-[WebView _preferencesChanged:]):
804         Add plumbing for new InspectorAdditions runtime flag.
805
806 2017-08-07  Brian Burg  <bburg@apple.com>
807
808         Remove CANVAS_PATH compilation guard
809         https://bugs.webkit.org/show_bug.cgi?id=175207
810
811         Reviewed by Sam Weinig.
812
813         * Configurations/FeatureDefines.xcconfig:
814
815 2017-08-04  Youenn Fablet  <youenn@apple.com>
816
817         [Cache API] Add Cache and CacheStorage IDL definitions
818         https://bugs.webkit.org/show_bug.cgi?id=175201
819
820         Reviewed by Brady Eidson.
821
822         * WebView/WebPreferenceKeysPrivate.h:
823         * WebView/WebPreferences.mm:
824         (+[WebPreferences initialize]):
825         (-[WebPreferences cacheAPIEnabled]):
826         (-[WebPreferences setCacheAPIEnabled:]):
827         * WebView/WebPreferencesPrivate.h:
828         * WebView/WebView.mm:
829         (-[WebView _preferencesChanged:]):
830
831 2017-08-04  Matt Lewis  <jlewis3@apple.com>
832
833         Unreviewed, rolling out r220271.
834
835         Rolling out due to Layout Test failing on iOS Simulator.
836
837         Reverted changeset:
838
839         "Remove STREAMS_API compilation guard"
840         https://bugs.webkit.org/show_bug.cgi?id=175165
841         http://trac.webkit.org/changeset/220271
842
843 2017-08-04  Youenn Fablet  <youenn@apple.com>
844
845         Remove STREAMS_API compilation guard
846         https://bugs.webkit.org/show_bug.cgi?id=175165
847
848         Reviewed by Darin Adler.
849
850         * Configurations/FeatureDefines.xcconfig:
851         * WebView/WebPreferences.mm:
852         (+[WebPreferences initialize]):
853         * WebView/WebView.mm:
854         (-[WebView _preferencesChanged:]):
855
856 2017-08-03  Brian Burg  <bburg@apple.com>
857
858         Remove ENABLE(WEB_SOCKET) guards
859         https://bugs.webkit.org/show_bug.cgi?id=167044
860
861         Reviewed by Joseph Pecoraro.
862
863         * Configurations/FeatureDefines.xcconfig:
864         * WebView/WebPreferencesPrivate.h:
865
866 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
867
868         [PAL] Move spi/cf directory into PAL
869         https://bugs.webkit.org/show_bug.cgi?id=175057
870
871         Reviewed by Antti Koivisto.
872
873         * Plugins/Hosted/HostedNetscapePluginStream.mm:
874         * Plugins/WebNetscapePluginStream.mm:
875         * WebCoreSupport/WebFrameNetworkingContext.mm:
876         * WebView/WebPreferences.mm:
877         * WebView/WebView.mm:
878
879 2017-08-03  Youenn Fablet  <youenn@apple.com>
880
881         Remove FETCH_API compilation guard
882         https://bugs.webkit.org/show_bug.cgi?id=175154
883
884         Reviewed by Chris Dumez.
885
886         * Configurations/FeatureDefines.xcconfig:
887         * WebView/WebPreferences.mm:
888         (+[WebPreferences initialize]):
889         * WebView/WebView.mm:
890         (-[WebView _preferencesChanged:]):
891
892 2017-08-03  Brady Eidson  <beidson@apple.com>
893
894         Add SW IDLs and stub out basic functionality.
895         https://bugs.webkit.org/show_bug.cgi?id=175115
896
897         Reviewed by Chris Dumez.
898
899         * Configurations/FeatureDefines.xcconfig:
900
901 2017-08-02  Sam Weinig  <sam@webkit.org>
902
903         [WebIDL] Convert MutationCallback to be a normal generated callback
904         https://bugs.webkit.org/show_bug.cgi?id=174140
905
906         Reviewed by Darin Adler.
907
908         * DOM/DOMDocument.mm:
909         (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
910         (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
911         Pass, now necessary, Document to NativeNodeFilter constructor.
912
913 2017-08-01  Chris Dumez  <cdumez@apple.com>
914
915         Add initial support for navigator.sendBeacon
916         https://bugs.webkit.org/show_bug.cgi?id=175007
917         <rdar://problem/33547728>
918
919         Reviewed by Sam Weinig.
920
921         Add setting to toggle support for the Beacon API (it is disabled by default).
922
923         * WebView/WebPreferenceKeysPrivate.h:
924         * WebView/WebPreferences.mm:
925         (+[WebPreferences initialize]):
926         (-[WebPreferences beaconAPIEnabled]):
927         (-[WebPreferences setBeaconAPIEnabled:]):
928         * WebView/WebPreferencesPrivate.h:
929         * WebView/WebView.mm:
930         (-[WebView _preferencesChanged:]):
931
932 2017-07-28  Jeremy Jones  <jeremyj@apple.com>
933
934         Remove Web prefix from WebVideoFullscreen and WebPlaybackSession classes.
935         https://bugs.webkit.org/show_bug.cgi?id=174437
936
937         Reviewed by Darin Adler.
938
939         Remove redundant Web- prefix from classes in WebKit namespace.
940
941         * WebView/WebView.mm:
942         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
943         * WebView/WebViewData.h:
944         * WebView/WebViewData.mm:
945
946 2017-07-26  Brian Burg  <bburg@apple.com>
947
948         Remove WEB_TIMING feature flag
949         https://bugs.webkit.org/show_bug.cgi?id=174795
950
951         Reviewed by Alex Christensen.
952
953         * Configurations/FeatureDefines.xcconfig:
954
955 2017-07-25  Said Abou-Hallawa  <sabouhallawa@apple.com>
956
957         Async image decoding for large images should be disabled after the first time a tile is painted
958         https://bugs.webkit.org/show_bug.cgi?id=174451
959         <rdar://problem/31246421>
960
961         Reviewed by Simon Fraser.
962
963         * WebView/WebFrame.mm:
964         (-[WebFrame _paintBehaviorForDestinationContext:]):
965         (-[WebFrame _drawRect:contentsOnly:]):
966         * WebView/WebHTMLView.mm:
967         (imageFromRect):
968
969 2017-07-23  Darin Adler  <darin@apple.com>
970
971         More NeverDestroyed and related cleanup
972         https://bugs.webkit.org/show_bug.cgi?id=174745
973
974         Reviewed by Alex Christensen.
975
976         * DOM/DOMUIKitExtensions.mm: Removed a lot of unneeded "using"
977         for names that aren't even used in this file.
978         (-[DOMNode boundingBoxes]): Use @[] syntax instead of
979         -[NSArray arrayWithObject:].
980         (-[DOMNode absoluteQuads]): Ditto.
981         (-[DOMNode findExplodedTextNodeAtPoint:]): Use auto* instead
982         of writing out various types.
983         (-[DOMHTMLAreaElement boundingBoxesWithOwner:]): Use @[]
984         syntax instea of -[NSArray arrayWithObject:].
985         (-[DOMHTMLAreaElement absoluteQuadsWithOwner:]): Ditto.
986         (-[DOMHTMLImageElement dataRepresentation:]): Use auto* instead
987         of writing out various types.
988         (-[DOMHTMLImageElement mimeType]): Ditto.
989
990 2017-07-24  Chris Dumez  <cdumez@apple.com>
991
992         ExceptionCode enumeration should use modern exception names
993         https://bugs.webkit.org/show_bug.cgi?id=174794
994
995         Reviewed by Geoffrey Garen.
996
997         * DOM/ExceptionHandlers.mm:
998         (raiseNotSupportedErrorException):
999
1000 2017-07-23  Chris Dumez  <cdumez@apple.com>
1001
1002         Drop ExceptionCodeDescription class
1003         https://bugs.webkit.org/show_bug.cgi?id=174757
1004
1005         Reviewed by Darin Adler.
1006
1007         Stop using ExceptionCodeDescription.
1008
1009         * DOM/ExceptionHandlers.mm:
1010         (raiseDOMErrorException):
1011
1012 2017-07-21  Andreas Kling  <akling@apple.com>
1013
1014         Use more references in event dispatch code
1015         https://bugs.webkit.org/show_bug.cgi?id=174681
1016
1017         Reviewed by Geoffrey Garen.
1018
1019         * DOM/ObjCEventListener.h:
1020         * DOM/ObjCEventListener.mm:
1021         (WebCore::ObjCEventListener::handleEvent):
1022         * WebCoreSupport/WebFrameLoaderClient.mm:
1023         (NetscapePluginWidget::handleEvent):
1024
1025 2017-07-21  Brady Eidson  <beidson@apple.com>
1026
1027         Get rid of WebCore IconDatabase code.
1028         https://bugs.webkit.org/show_bug.cgi?id=174700
1029
1030         Reviewed by Tim Horton.
1031
1032         * Misc/WebCoreStatistics.mm:
1033         (+[WebCoreStatistics iconPageURLMappingCount]):
1034         (+[WebCoreStatistics iconRetainedPageURLCount]):
1035         (+[WebCoreStatistics iconRecordCount]):
1036         (+[WebCoreStatistics iconsWithDataCount]):
1037         * WebCoreSupport/WebFrameLoaderClient.h:
1038         * WebCoreSupport/WebFrameLoaderClient.mm:
1039         * WebCoreSupport/WebIconDatabaseClient.h: Removed.
1040         * WebCoreSupport/WebIconDatabaseClient.mm: Removed.
1041         * WebView/WebView.mm:
1042         (-[WebView mainFrameIconURL]):
1043
1044 2017-07-20  Chris Dumez  <cdumez@apple.com>
1045
1046         Drop legacy XPathException type
1047         https://bugs.webkit.org/show_bug.cgi?id=174679
1048
1049         Reviewed by Sam Weinig.
1050
1051         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
1052         no longer expose XPathException.
1053
1054         * DOM/ExceptionHandlers.mm:
1055         (raiseDOMErrorException):
1056
1057 2017-07-20  Chris Dumez  <cdumez@apple.com>
1058
1059         Unreviewed, rolling out r219706.
1060
1061         Broke iOS build
1062
1063         Reverted changeset:
1064
1065         "Drop legacy XPathException type"
1066         https://bugs.webkit.org/show_bug.cgi?id=174679
1067         http://trac.webkit.org/changeset/219706
1068
1069 2017-07-20  Chris Dumez  <cdumez@apple.com>
1070
1071         Drop legacy XPathException type
1072         https://bugs.webkit.org/show_bug.cgi?id=174679
1073
1074         Reviewed by Sam Weinig.
1075
1076         Drop legacy XPathException type and use DOMException instead. Both Firefox and Chrome
1077         no longer expose XPathException.
1078
1079         * DOM/ExceptionHandlers.mm:
1080         (raiseDOMErrorException):
1081         * WebKit.exp:
1082
1083 2017-07-20  Chris Dumez  <cdumez@apple.com>
1084
1085         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable
1086         https://bugs.webkit.org/show_bug.cgi?id=174660
1087
1088         Reviewed by Geoffrey Garen.
1089
1090         Replace calls to Vector::resize() with calls to more efficient shrink() / grow() when applicable.
1091         This essentially replaces a branch to figure out if the new size is less or greater than the
1092         current size by an assertion.
1093
1094         * Plugins/WebNetscapePluginView.mm:
1095         (-[WebNetscapePluginView saveAndSetNewPortStateForUpdate:]):
1096
1097 2017-07-20  Brady Eidson  <beidson@apple.com>
1098
1099         Deprecate WebIconDatabase in WebKitLegacy/mac.
1100         https://bugs.webkit.org/show_bug.cgi?id=174607
1101
1102         Reviewed by Alex Christensen.
1103
1104         This patch:
1105         1 - Formally deprecates WebIconDatabase (which was never API anyways)
1106         2 - Guts the class to where it can only return the default icon at the small size
1107         3 - Reworks other parts of WebKitLegacy that used it for anything to either
1108             use something else or to not do anything.
1109         
1110         This patch *could* go much farther. A future patch is what will remove WebCore/IconDatabase
1111         and that patch will remove all of the last remnants of WebIconDatabase.
1112         
1113         * History/WebHistoryItem.mm:
1114         (-[WebHistoryItem icon]):
1115
1116         * Misc/WebIconDatabase.h:
1117         * Misc/WebIconDatabase.mm:
1118         (-[WebIconDatabase init]):
1119         (-[WebIconDatabase iconForURL:withSize:cache:]):
1120         (-[WebIconDatabase iconForURL:withSize:]):
1121         (-[WebIconDatabase defaultIconWithSize:]):
1122         (-[WebIconDatabase defaultIconForURL:withSize:]):
1123         (-[WebIconDatabase iconURLForURL:]):
1124         (-[WebIconDatabase retainIconForURL:]):
1125         (-[WebIconDatabase releaseIconForURL:]):
1126         (+[WebIconDatabase delayDatabaseCleanup]):
1127         (+[WebIconDatabase allowDatabaseCleanup]):
1128         (-[WebIconDatabase setDelegate:]):
1129         (-[WebIconDatabase delegate]):
1130         (+[WebIconDatabase initialize]): Deleted.
1131         (-[WebIconDatabase isEnabled]): Deleted.
1132         (-[WebIconDatabase setEnabled:]): Deleted.
1133         (-[WebIconDatabase removeAllIcons]): Deleted.
1134         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Deleted.
1135         (-[WebIconDatabase _sendNotificationForURL:]): Deleted.
1136         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]): Deleted.
1137         (-[WebIconDatabase _startUpIconDatabase]): Deleted.
1138         (-[WebIconDatabase _shutDownIconDatabase]): Deleted.
1139         (-[WebIconDatabase _applicationWillTerminate:]): Deleted.
1140         (-[WebIconDatabase _iconForFileURL:withSize:]): Deleted.
1141         (-[WebIconDatabase _resetCachedWebPreferences:]): Deleted.
1142         (-[WebIconDatabase _largestIconFromDictionary:]): Deleted.
1143         (-[WebIconDatabase _iconsBySplittingRepresentationsOfIcon:]): Deleted.
1144         (-[WebIconDatabase _iconFromDictionary:forSize:cache:]): Deleted.
1145         (-[WebIconDatabase _scaleIcon:toSize:]): Deleted.
1146         (-[WebIconDatabase _databaseDirectory]): Deleted.
1147         (webGetNSImage): Deleted.
1148
1149         * Misc/WebIconDatabaseDelegate.h: Removed.
1150         * Misc/WebIconDatabaseInternal.h: Removed.
1151         * Misc/WebIconDatabasePrivate.h: Removed.
1152
1153         * WebCoreSupport/WebFrameLoaderClient.mm:
1154         (webGetNSImage):
1155
1156         * WebCoreSupport/WebIconDatabaseClient.mm:
1157         (WebIconDatabaseClient::didRemoveAllIcons):
1158         (WebIconDatabaseClient::didImportIconURLForPageURL):
1159
1160         * WebView/WebView.mm:
1161         (-[WebView setFrameLoadDelegate:]):
1162         (-[WebView mainFrameIcon]):
1163
1164 2017-07-18  Andy Estes  <aestes@apple.com>
1165
1166         [Xcode] Enable CLANG_WARN_RANGE_LOOP_ANALYSIS
1167         https://bugs.webkit.org/show_bug.cgi?id=174631
1168
1169         Reviewed by Tim Horton.
1170
1171         * Configurations/Base.xcconfig:
1172
1173 2017-07-18  Andy Estes  <aestes@apple.com>
1174
1175         [Xcode] Enable CLANG_WARN_OBJC_LITERAL_CONVERSION
1176         https://bugs.webkit.org/show_bug.cgi?id=174631
1177
1178         Reviewed by Sam Weinig.
1179
1180         * Configurations/Base.xcconfig:
1181
1182 2017-07-18  Andy Estes  <aestes@apple.com>
1183
1184         [Xcode] Enable CLANG_WARN_NON_LITERAL_NULL_CONVERSION
1185         https://bugs.webkit.org/show_bug.cgi?id=174631
1186
1187         Reviewed by Dan Bernstein.
1188
1189         * Configurations/Base.xcconfig:
1190
1191 2017-07-18  Wenson Hsieh  <wenson_hsieh@apple.com>
1192
1193         [iOS DnD] [WK1] Add missing calls to WebThreadLock() in some WebView drag-and-drop SPIs
1194         https://bugs.webkit.org/show_bug.cgi?id=174640
1195         <rdar://problem/33297400>
1196
1197         Reviewed by Tim Horton.
1198
1199         Adds a missing call to WebThreadLock() in -_requestStartDataInteraction:globalPosition:. Previously, this was
1200         invoked at the call site in UIKit, but was removed after some refactoring in UIKit. Instead, we should lock the
1201         web thread here, to match the other WebView drag and drop SPI methods.
1202
1203         This patch also adds a WebThreadLock() call in -_dataInteractionCaretRect. While this is fine today, since all
1204         existing callers of _dataInteractionCaretRect already invoke other methods that WebThreadLock() beforehand, we
1205         should make this robust against future UIKit changes that could make this no longer the case.
1206
1207         * WebView/WebView.mm:
1208         (-[WebView _requestStartDataInteraction:globalPosition:]):
1209         (-[WebView _dataInteractionCaretRect]):
1210
1211 2017-07-18  Andy Estes  <aestes@apple.com>
1212
1213         [Xcode] Enable CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
1214         https://bugs.webkit.org/show_bug.cgi?id=174631
1215
1216         Reviewed by Darin Adler.
1217
1218         * Configurations/Base.xcconfig:
1219
1220 2017-07-17  Sam Weinig  <sam@webkit.org>
1221
1222         [WebIDL] Remove custom bindings that require non-caching JS strings
1223         https://bugs.webkit.org/show_bug.cgi?id=174552
1224
1225         Reviewed by Darin Adler.
1226
1227         * DOM/DOMHTMLCanvasElement.mm:
1228         (-[DOMHTMLCanvasElement toDataURL:]):
1229         Update to account for implementation now returning an UncachedString.
1230
1231 2017-07-17  Darin Adler  <darin@apple.com>
1232
1233         Improve use of NeverDestroyed
1234         https://bugs.webkit.org/show_bug.cgi?id=174348
1235
1236         Reviewed by Sam Weinig.
1237
1238         * Misc/WebStringTruncator.mm:
1239         (+[WebStringTruncator centerTruncateString:toWidth:]): Replace
1240         NeverDestroyed<RetainPtr> with just an NSFont * global.
1241
1242         * Plugins/Hosted/NetscapePluginHostManager.h: Removed unneeded include of
1243         NeverDestroyed.h.
1244         * Storage/WebDatabaseManager.mm: Ditto.
1245         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
1246         * WebCoreSupport/WebPlatformStrategies.mm: Ditto.
1247
1248         * WebView/WebView.mm: Removed unneeded include of NetworkStateNotifier.h.
1249         (aeDescFromJSValue): Removed double hashing by using the return value from
1250         add rather than calling contains before calling add.
1251
1252 2017-07-14  Jer Noble  <jer.noble@apple.com>
1253
1254         Allow clients to override their own hardware media requirements where no fallback media exists.
1255         https://bugs.webkit.org/show_bug.cgi?id=174426
1256         <rdar://problem/32537704>
1257
1258         Reviewed by Eric Carlson.
1259
1260         Add a new WebPreferences property to control WebCore's new
1261         allowMediaContentTypesRequiringHardwareSupportAsFallback setting.
1262
1263         * WebView/WebPreferenceKeysPrivate.h:
1264         * WebView/WebPreferences.mm:
1265         (+[WebPreferences initialize]):
1266         (-[WebPreferences allowMediaContentTypesRequiringHardwareSupportAsFallback]):
1267         (-[WebPreferences setAllowMediaContentTypesRequiringHardwareSupportAsFallback:]):
1268         * WebView/WebPreferencesPrivate.h:
1269         * WebView/WebView.mm:
1270         (-[WebView _preferencesChanged:]):
1271
1272 2017-07-12  Said Abou-Hallawa  <sabouhallawa@apple.com>
1273
1274         Async image decoding for large images should be disabled by default
1275         https://bugs.webkit.org/show_bug.cgi?id=174432
1276
1277         Reviewed by Simon Fraser.
1278
1279         -- Remove setting the bit PaintBehaviorSnapshotting in any new PaintBehavoir.
1280         -- Return PaintBehaviorAllowAsyncImageDecoding when the return value was 0.
1281         -- Propagate PaintBehaviorAllowAsyncImageDecoding from a parent view to 
1282            a child view instead of propagating PaintBehaviorSnapshotting.
1283         -- Replace setting the bit PaintBehaviorSnapshotting in an existing PaintBehavoir
1284            by resetting the bit PaintBehaviorAllowAsyncImageDecoding.
1285
1286         * WebView/WebFrame.mm:
1287         (-[WebFrame _paintBehaviorForDestinationContext:]):
1288         (-[WebFrame _drawRect:contentsOnly:]):
1289         * WebView/WebHTMLView.mm:
1290         (imageFromRect):
1291
1292 2017-07-12  Daniel Bates  <dabates@apple.com>
1293
1294         Rename NavigationInitiatedByMainFrame to InitiatedByMainFrame
1295         https://bugs.webkit.org/show_bug.cgi?id=174427
1296
1297         Rubber-stamped by Brady Eidson.
1298
1299         * WebView/WebPDFView.mm:
1300         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1301
1302 2017-07-12  Matt Lewis  <jlewis3@apple.com>
1303
1304         Unreviewed, rolling out r219401.
1305
1306         This revision rolled out the previous patch, but after talking
1307         with reviewer, a rebaseline is what was needed.Rolling back in
1308         before rebaseline.
1309
1310         Reverted changeset:
1311
1312         "Unreviewed, rolling out r219379."
1313         https://bugs.webkit.org/show_bug.cgi?id=174400
1314         http://trac.webkit.org/changeset/219401
1315
1316 2017-07-12  Matt Lewis  <jlewis3@apple.com>
1317
1318         Unreviewed, rolling out r219379.
1319
1320         This revision caused a consistent failure in the test
1321         fast/dom/Window/property-access-on-cached-window-after-frame-
1322         removed.html.
1323
1324         Reverted changeset:
1325
1326         "Remove NAVIGATOR_HWCONCURRENCY"
1327         https://bugs.webkit.org/show_bug.cgi?id=174400
1328         http://trac.webkit.org/changeset/219379
1329
1330 2017-07-11  Dean Jackson  <dino@apple.com>
1331
1332         Remove NAVIGATOR_HWCONCURRENCY
1333         https://bugs.webkit.org/show_bug.cgi?id=174400
1334
1335         * Configurations/FeatureDefines.xcconfig:
1336
1337 2017-07-11  Dean Jackson  <dino@apple.com>
1338
1339         Rolling out r219372.
1340
1341         * Configurations/FeatureDefines.xcconfig:
1342
1343 2017-07-11  Dean Jackson  <dino@apple.com>
1344
1345         Remove NAVIGATOR_HWCONCURRENCY
1346         https://bugs.webkit.org/show_bug.cgi?id=174400
1347
1348         * Configurations/FeatureDefines.xcconfig:
1349
1350 2017-07-03  Brian Burg  <bburg@apple.com>
1351
1352         Web Replay: remove some unused code
1353         https://bugs.webkit.org/show_bug.cgi?id=173903
1354
1355         Rubber-stamped by Joseph Pecoraro.
1356
1357         * Configurations/FeatureDefines.xcconfig:
1358
1359 2017-07-09  Brady Eidson  <beidson@apple.com>
1360
1361         Remove some obsolete WebKitVersionChecks.
1362         https://bugs.webkit.org/show_bug.cgi?id=174294
1363
1364         Reviewed by Dan Bernstein.
1365
1366         * Misc/WebKitVersionChecks.h:
1367
1368         * WebView/WebHTMLView.mm:
1369         (-[WebHTMLView hitTest:]):
1370
1371         * WebView/WebView.mm:
1372         (shouldRespectPriorityInCSSAttributeSetters):
1373         (-[WebView _commonInitializationWithFrameName:groupName:]):
1374         (-[WebView _preferencesChanged:]):
1375         (shouldTransformsAffectOverflow): Deleted.
1376         (shouldDispatchJavaScriptWindowOnErrorEvents): Deleted.
1377
1378 2017-07-08  Brady Eidson  <beidson@apple.com>
1379
1380         Remove some obsolete RuntimeApplicationChecks.
1381         https://bugs.webkit.org/show_bug.cgi?id=174293
1382
1383         Reviewed by Dan Bernstein.
1384
1385         * Misc/WebKitVersionChecks.h:
1386         * WebView/WebView.mm:
1387         (+[WebView enableWebThread]):
1388         (-[WebView _needsPreHTML5ParserQuirks]):
1389
1390 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
1391
1392         Drop NOSNIFF compile flag
1393         https://bugs.webkit.org/show_bug.cgi?id=174289
1394
1395         Reviewed by Michael Catanzaro.
1396
1397         * Configurations/FeatureDefines.xcconfig:
1398
1399 2017-07-06  Yusuke Suzuki  <utatane.tea@gmail.com>
1400
1401         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
1402         https://bugs.webkit.org/show_bug.cgi?id=174150
1403
1404         Reviewed by Mark Lam.
1405
1406         * DOM/DOM.mm:
1407         (lookupElementClass):
1408
1409 2017-07-06  Brady Eidson  <beidson@apple.com>
1410
1411         Add logging to first attempt to use the WebIconDatabase class.
1412         https://bugs.webkit.org/show_bug.cgi?id=174190
1413
1414         Reviewed by Andy Estes.
1415
1416         * Misc/WebIconDatabase.mm:
1417         (+[WebIconDatabase sharedIconDatabase]): On first call, log a warning of the bleak future of this non-API.
1418         * Misc/WebKitVersionChecks.h:
1419
1420 2017-07-06  Matt Lewis  <jlewis3@apple.com>
1421
1422         Unreviewed, rolling out r219178.
1423
1424         This caused a consistent failure with the API test
1425         StringBuilderTest.ToAtomicStringOnEmpty on all Debug testers.
1426
1427         Reverted changeset:
1428
1429         "[WTF] Clean up StringStatics.cpp by using
1430         LazyNeverDestroyed<> for Atoms"
1431         https://bugs.webkit.org/show_bug.cgi?id=174150
1432         http://trac.webkit.org/changeset/219178
1433
1434 2017-07-05  Don Olmstead  <don.olmstead@sony.com>
1435
1436         [WTF] Move SoftLinking.h into WTF
1437         https://bugs.webkit.org/show_bug.cgi?id=174000
1438
1439         Reviewed by Alex Christensen.
1440
1441         * Plugins/WebNetscapePluginView.mm:
1442         * Plugins/WebPluginController.mm:
1443         * WebCoreSupport/WebInspectorClient.mm:
1444         * WebView/WebFullScreenController.mm:
1445         * WebView/WebImmediateActionController.mm:
1446         * WebView/WebView.mm:
1447
1448 2017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
1449
1450         [WTF] Clean up StringStatics.cpp by using LazyNeverDestroyed<> for Atoms
1451         https://bugs.webkit.org/show_bug.cgi?id=174150
1452
1453         Reviewed by Mark Lam.
1454
1455         * DOM/DOM.mm:
1456         (lookupElementClass):
1457
1458 2017-07-05  Brady Eidson  <beidson@apple.com>
1459
1460         Allow navigations in subframes to get a ShouldOpenExternalURLsPolicy of "ShouldAllow".
1461         <rdar://problem/22485589> and https://bugs.webkit.org/show_bug.cgi?id=174178
1462
1463         Reviewed by Alex Christensen.
1464
1465         Adopt to the new constructor for FrameLoadRequest.
1466
1467         * WebView/WebPDFView.mm:
1468         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1469
1470 2017-07-05  Ryosuke Niwa  <rniwa@webkit.org>
1471
1472         Make WebKit's public headers on Mac and iOS C++ module safe
1473         https://bugs.webkit.org/show_bug.cgi?id=174175
1474
1475         Reviewed by Alex Christensen.
1476
1477         Fixed the header files.
1478
1479         * Misc/WebDownload.h:
1480         * Misc/WebKitErrors.h:
1481         * Plugins/WebPluginContainer.h:
1482         * WebView/WebResourceLoadDelegate.h:
1483
1484 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
1485
1486         Remove copy of ICU headers from WebKit
1487         https://bugs.webkit.org/show_bug.cgi?id=116407
1488
1489         Reviewed by Alex Christensen.
1490
1491         Use WTF's copy of ICU headers.
1492
1493         * Configurations/WebKitLegacy.xcconfig:
1494         * icu/unicode/localpointer.h: Removed.
1495         * icu/unicode/parseerr.h: Removed.
1496         * icu/unicode/platform.h: Removed.
1497         * icu/unicode/ptypes.h: Removed.
1498         * icu/unicode/putil.h: Removed.
1499         * icu/unicode/uchar.h: Removed.
1500         * icu/unicode/uconfig.h: Removed.
1501         * icu/unicode/ucurr.h: Removed.
1502         * icu/unicode/uidna.h: Removed.
1503         * icu/unicode/uiter.h: Removed.
1504         * icu/unicode/umachine.h: Removed.
1505         * icu/unicode/unorm.h: Removed.
1506         * icu/unicode/unorm2.h: Removed.
1507         * icu/unicode/urename.h: Removed.
1508         * icu/unicode/uscript.h: Removed.
1509         * icu/unicode/ustring.h: Removed.
1510         * icu/unicode/utf.h: Removed.
1511         * icu/unicode/utf16.h: Removed.
1512         * icu/unicode/utf8.h: Removed.
1513         * icu/unicode/utf_old.h: Removed.
1514         * icu/unicode/utypes.h: Removed.
1515         * icu/unicode/uvernum.h: Removed.
1516         * icu/unicode/uversion.h: Removed.
1517
1518 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
1519
1520         Add WebKitPrivateFrameworkStubs for iOS 11
1521         https://bugs.webkit.org/show_bug.cgi?id=173988
1522
1523         Reviewed by David Kilzer.
1524
1525         * Configurations/WebKitLegacy.xcconfig: iphoneos and iphonesimulator should
1526         use the same directory for private framework stubs.
1527
1528 2017-07-03  Matt Lewis  <jlewis3@apple.com>
1529
1530         Unreviewed, rolling out r219103.
1531
1532         Caused multiple build failures.
1533
1534         Reverted changeset:
1535
1536         "Remove copy of ICU headers from WebKit"
1537         https://bugs.webkit.org/show_bug.cgi?id=116407
1538         http://trac.webkit.org/changeset/219103
1539
1540 2017-07-03  Myles C. Maxfield  <mmaxfield@apple.com>
1541
1542         Remove copy of ICU headers from WebKit
1543         https://bugs.webkit.org/show_bug.cgi?id=116407
1544
1545         Reviewed by Alex Christensen.
1546
1547         Use WTF's copy of ICU headers.
1548
1549         * Configurations/WebKitLegacy.xcconfig:
1550         * icu/unicode/localpointer.h: Removed.
1551         * icu/unicode/parseerr.h: Removed.
1552         * icu/unicode/platform.h: Removed.
1553         * icu/unicode/ptypes.h: Removed.
1554         * icu/unicode/putil.h: Removed.
1555         * icu/unicode/uchar.h: Removed.
1556         * icu/unicode/uconfig.h: Removed.
1557         * icu/unicode/ucurr.h: Removed.
1558         * icu/unicode/uidna.h: Removed.
1559         * icu/unicode/uiter.h: Removed.
1560         * icu/unicode/umachine.h: Removed.
1561         * icu/unicode/unorm.h: Removed.
1562         * icu/unicode/unorm2.h: Removed.
1563         * icu/unicode/urename.h: Removed.
1564         * icu/unicode/uscript.h: Removed.
1565         * icu/unicode/ustring.h: Removed.
1566         * icu/unicode/utf.h: Removed.
1567         * icu/unicode/utf16.h: Removed.
1568         * icu/unicode/utf8.h: Removed.
1569         * icu/unicode/utf_old.h: Removed.
1570         * icu/unicode/utypes.h: Removed.
1571         * icu/unicode/uvernum.h: Removed.
1572         * icu/unicode/uversion.h: Removed.
1573
1574 2017-07-03  Brady Eidson  <beidson@apple.com>
1575
1576         Switch all WebKit API related to favicons from WebIconDatabase over to new WebCore::IconLoader mechanism.
1577         https://bugs.webkit.org/show_bug.cgi?id=174073
1578
1579         Reviewed by Andy Estes.
1580
1581         WebView now keeps a direct copy of its main frame icon as a member variable.
1582         It populates that variable by finding exactly one Favicon LinkIcon from WebCore and loading it.
1583         
1584         This change causes a progression in KVO observation of the mainFrameIcon property as we now
1585         have both the old icon and new icon at the time it changes.
1586
1587         * WebCoreSupport/WebFrameLoaderClient.h:
1588         * WebCoreSupport/WebFrameLoaderClient.mm:
1589         (WebFrameLoaderClient::prepareForDataSourceReplacement):
1590         (WebFrameLoaderClient::getLoadDecisionForIcons):
1591         (WebFrameLoaderClient::finishedLoadingIcon):
1592         (WebFrameLoaderClient::dispatchDidReceiveIcon): Deleted.
1593         (WebFrameLoaderClient::registerForIconNotification): Deleted.
1594
1595         * WebView/WebView.mm:
1596         (+[WebView _setIconLoadingEnabled:]):
1597         (+[WebView _isIconLoadingEnabled]):
1598         (-[WebView mainFrameIcon]):
1599         (-[WebView _setMainFrameIcon:]):
1600         (-[WebView _receivedIconChangedNotification:]): Deleted.
1601         (-[WebView _registerForIconNotification:]): Deleted.
1602         (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Deleted.
1603         * WebView/WebViewData.h:
1604         * WebView/WebViewInternal.h:
1605         * WebView/WebViewPrivate.h:
1606
1607 2017-07-03  Sam Weinig  <sam@webkit.org>
1608
1609         [WebIDL] Remove more unnecessary uses of the preprocessor in idl files
1610         https://bugs.webkit.org/show_bug.cgi?id=174083
1611
1612         Reviewed by Alex Christensen.
1613
1614         * Configurations/FeatureDefines.xcconfig:
1615         Add ENABLE_NAVIGATOR_STANDALONE.
1616
1617 2017-07-03  Tim Horton  <timothy_horton@apple.com>
1618
1619         Expose unobscuredSafeAreaInsets on WebView
1620         https://bugs.webkit.org/show_bug.cgi?id=174075
1621         <rdar://problem/33096997>
1622
1623         Reviewed by Beth Dakin.
1624
1625         * WebView/WebView.mm:
1626         (-[WebView _setUnobscuredSafeAreaInsets:]):
1627         (-[WebView _unobscuredSafeAreaInsets]):
1628         * WebView/WebViewPrivate.h:
1629         Expose unobscuredSafeAreaInsets as a new private property on WebView,
1630         similar to how it is exposed in WebKit2.
1631
1632 2017-07-03  Andy Estes  <aestes@apple.com>
1633
1634         [Xcode] Add an experimental setting to build with ccache
1635         https://bugs.webkit.org/show_bug.cgi?id=173875
1636
1637         Reviewed by Tim Horton.
1638
1639         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
1640
1641 2017-07-03  Tim Horton  <timothy_horton@apple.com>
1642
1643         Expose WebPreferences for viewport-fit and constant() properties
1644         https://bugs.webkit.org/show_bug.cgi?id=174072
1645         <rdar://problem/33096639>
1646
1647         Reviewed by Ryosuke Niwa.
1648
1649         * WebView/WebPreferenceKeysPrivate.h:
1650         * WebView/WebPreferences.mm:
1651         (-[WebPreferences viewportFitEnabled]):
1652         (-[WebPreferences setViewportFitEnabled:]):
1653         (-[WebPreferences constantPropertiesEnabled]):
1654         (-[WebPreferences setConstantPropertiesEnabled:]):
1655         * WebView/WebPreferencesPrivate.h:
1656         * WebView/WebView.mm:
1657         (-[WebView _preferencesChanged:]):
1658
1659 2017-07-01  Tim Horton  <timothy_horton@apple.com>
1660
1661         Expose viewport-fit value to UIKit via viewport arguments dictionary
1662         https://bugs.webkit.org/show_bug.cgi?id=174071
1663         <rdar://problem/33096620>
1664
1665         Reviewed by Wenson Hsieh.
1666
1667         * History/WebHistoryItem.mm:
1668         * History/WebHistoryItemPrivate.h:
1669         Add another dictionary key and three values.
1670
1671 2017-07-01  Dan Bernstein  <mitz@apple.com>
1672
1673         [iOS] Remove code only needed when building for iOS 9.x
1674         https://bugs.webkit.org/show_bug.cgi?id=174068
1675
1676         Reviewed by Tim Horton.
1677
1678         * Configurations/FeatureDefines.xcconfig:
1679
1680 2017-07-01  Ryosuke Niwa  <rniwa@webkit.org>
1681
1682         Frame.h doesn't need to include FrameLoader.h, IntRect.h, and NavigationScheduler.h
1683         https://bugs.webkit.org/show_bug.cgi?id=174004
1684
1685         Reviewed by Simon Fraser.
1686
1687         * WebCoreSupport/WebPluginInfoProvider.mm:
1688
1689 2017-07-01  Dan Bernstein  <mitz@apple.com>
1690
1691         [macOS] Remove code only needed when building for OS X Yosemite
1692         https://bugs.webkit.org/show_bug.cgi?id=174067
1693
1694         Reviewed by Tim Horton.
1695
1696         * Configurations/Base.xcconfig:
1697         * Configurations/DebugRelease.xcconfig:
1698         * Configurations/FeatureDefines.xcconfig:
1699         * Configurations/Version.xcconfig:
1700         * Plugins/WebBasePluginPackage.mm:
1701         (-[WebBasePluginPackage getPluginInfoFromPLists]):
1702         * WebCoreSupport/PopupMenuMac.mm:
1703         (PopupMenuMac::show):
1704         * WebCoreSupport/WebInspectorClient.mm:
1705         (WebInspectorFrontendClient::startWindowDrag):
1706         (-[WebInspectorWindowController window]):
1707         * WebView/WebView.mm:
1708         (-[WebView _animationControllerForDictionaryLookupPopupInfo:]):
1709
1710 2017-06-30  Daniel Bates  <dabates@apple.com>
1711
1712         API::FrameInfo should know the web page that contains the frame; add API property webView to WKFrameInfo
1713         https://bugs.webkit.org/show_bug.cgi?id=165160
1714         <rdar://problem/29451999>
1715
1716         Reviewed by Brady Eidson.
1717
1718         Pass the document that is requesting the load to the loader.
1719
1720         * WebView/WebPDFView.mm:
1721         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1722
1723 2017-06-29  Jer Noble  <jer.noble@apple.com>
1724
1725         Make Legacy EME API controlled by RuntimeEnabled setting.
1726         https://bugs.webkit.org/show_bug.cgi?id=173994
1727
1728         Reviewed by Sam Weinig.
1729
1730         Add a new preference used to control WebCore's new RuntimeEnabledFeature setting.
1731
1732         * Configurations/FeatureDefines.xcconfig:
1733         * WebView/WebPreferenceKeysPrivate.h:
1734         * WebView/WebPreferences.mm:
1735         (+[WebPreferences initialize]):
1736         (-[WebPreferences legacyEncryptedMediaAPIEnabled]):
1737         (-[WebPreferences setLegacyEncryptedMediaAPIEnabled:]):
1738         * WebView/WebPreferencesPrivate.h:
1739         * WebView/WebView.mm:
1740         (-[WebView _preferencesChanged:]):
1741
1742 2017-06-30  Chris Dumez  <cdumez@apple.com>
1743
1744         ResourceLoadObserver does not need a ResourceLoadStatisticsStore
1745         https://bugs.webkit.org/show_bug.cgi?id=174013
1746
1747         Reviewed by Brent Fulgham.
1748
1749         ResourceLoadObserver does not need a ResourceLoadStatisticsStore. ResourceLoadStatisticsStore is too complicated for its needs.
1750         ResourceLoadStatisticsStore can then be moved to WebKit2/UIProcess in a follow-up.
1751
1752         * WebView/WebView.mm:
1753         (-[WebView _commonInitializationWithFrameName:groupName:]):
1754
1755 2017-06-30  Wenson Hsieh  <wenson_hsieh@apple.com>
1756
1757         [iOS DnD] Drag caret rect is incorrectly computed when dropping in editable content in iframes
1758         https://bugs.webkit.org/show_bug.cgi?id=174017
1759         <rdar://problem/32959782>
1760
1761         Reviewed by Simon Fraser.
1762
1763         Use root view coordinates when computing the drag caret rect.
1764
1765         * WebView/WebView.mm:
1766         (-[WebView _dataInteractionCaretRect]):
1767
1768 2017-06-28  Simon Fraser  <simon.fraser@apple.com>
1769
1770         Mark the GraphicsContext as accelerated when the WebHTMLView's layer is drawing asynchronously
1771         https://bugs.webkit.org/show_bug.cgi?id=173899
1772         rdar://problem/32994474
1773
1774         Reviewed by Tim Horton.
1775
1776         When the WebHTMLView is layer-backed, and -drawsAsynchronously on its layer is YES,
1777         then mark the GraphicsContext that WebCore is using for drawing as accelerated, so
1778         that ImageBuffer::createCompatibleBuffer() creates appropriately matched buffers.
1779
1780         Also clean up WebFrame a little, sharing code that checks whether the WebFrame's
1781         documentView is a WebHTMLView.
1782
1783         * WebView/WebFrame.mm:
1784         (-[WebFrame _webHTMLDocumentView]):
1785         (-[WebFrame _paintBehaviorForDestinationContext:]):
1786         (-[WebFrame _drawRect:contentsOnly:]):
1787         (-[WebFrame setTimeoutsPaused:]):
1788         (-[WebFrame prepareForPause]):
1789         (-[WebFrame resumeFromPause]):
1790         (-[WebFrame resetTextAutosizingBeforeLayout]):
1791         * WebView/WebHTMLView.mm:
1792         (-[WebHTMLView drawLayer:inContext:]):
1793         (-[WebHTMLView _web_isDrawingIntoAcceleratedLayer]):
1794         * WebView/WebHTMLViewInternal.h:
1795
1796 2017-06-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1797
1798         [iOS DnD] Support dragging out of contenteditable areas without a prior selection
1799         https://bugs.webkit.org/show_bug.cgi?id=173854
1800         <rdar://problem/32236827>
1801
1802         Reviewed by Ryosuke Niwa and Tim Horton.
1803
1804         Vends some information from the DragItem passed into -[WebView _startDrag:] through the WebView as SPI for
1805         WebKit1 clients. No behavior change with these changes alone -- see <rdar://problem/32991062> for more detail.
1806
1807         * WebView/WebView.mm:
1808         (-[WebView _startDrag:]):
1809         (-[WebView _dragSourceAction]):
1810         (-[WebView _draggedLinkTitle]):
1811         (-[WebView _draggedLinkURL]):
1812         (-[WebView _draggedElementBounds]):
1813         (-[WebView _endedDataInteraction:global:]):
1814         * WebView/WebViewData.h:
1815         * WebView/WebViewPrivate.h:
1816
1817 2017-06-26  Wenson Hsieh  <wenson_hsieh@apple.com>
1818
1819         Refactor drag start codepaths to plumb a DragItem to client layers
1820         https://bugs.webkit.org/show_bug.cgi?id=173832
1821         Work towards <rdar://problem/32236827>
1822
1823         Reviewed by Ryosuke Niwa and Tim Horton.
1824
1825         Refactor code used to start a drag in WebKit1 to plumb a single DragItem from DragController to the client layer
1826         in WebDragClient that contains all the information needed to begin a drag. Also renames _setDataInteractionData:
1827         to _startDrag: to match logic used to start a drag on other platforms.
1828
1829         No behavior change -- the same information should be propagated to AppKit and UIKit when beginning a drag, only
1830         through the DragItem struct.
1831
1832         * WebCoreSupport/WebDragClient.h:
1833         * WebCoreSupport/WebDragClient.mm:
1834         (WebDragClient::startDrag):
1835         (WebDragClient::dragSourceActionMaskForPoint):
1836         (WebDragClient::willPerformDragSourceAction):
1837         (WebDragClient::beginDrag):
1838         * WebView/WebView.mm:
1839         (-[WebView _startDrag:]):
1840         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]): Deleted.
1841         * WebView/WebViewInternal.h:
1842
1843 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
1844
1845         Remove excessive headers from JavaScriptCore
1846         https://bugs.webkit.org/show_bug.cgi?id=173812
1847
1848         Reviewed by Darin Adler.
1849
1850         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1851         * WebView/WebView.mm:
1852
1853 2017-06-23  Tim Horton  <timothy_horton@apple.com>
1854
1855         Remove an unused typedef from WebFrameLoaderClient
1856         https://bugs.webkit.org/show_bug.cgi?id=173795
1857
1858         Reviewed by Simon Fraser.
1859
1860         * WebCoreSupport/WebFrameLoaderClient.h:
1861         This unused typedef in the global namespace conflicts with one in a macOS system header.
1862         Also... it's unused.
1863         Remove it.
1864
1865 2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
1866
1867         Remove excessive headers from WebCore/{bindings,css,dom}
1868         https://bugs.webkit.org/show_bug.cgi?id=173766
1869
1870         Reviewed by Simon Fraser.
1871
1872         * DOM/DOMInternal.mm:
1873
1874 2017-06-22  Daniel Bates  <dabates@apple.com>
1875
1876         Make FrameLoadRequest a move-only type
1877         https://bugs.webkit.org/show_bug.cgi?id=173682
1878
1879         Reviewed by Alex Christensen and Darin Adler.
1880
1881         A FrameLoadRequest groups together the information to perform a load into a single object
1882         that is more manageable to pass around than its constituent parts. Code that receives a
1883         FrameLoadRequest is expected to extract out the information it needs to complete its task.
1884         And it does not make sense to re-use the same FrameLoadRequest object for more than one
1885         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
1886
1887         * Plugins/WebPluginController.mm:
1888         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1889         * WebView/WebPDFView.mm:
1890         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1891
1892 2017-06-21  Antoine Quint  <graouts@apple.com>
1893
1894         Ensure DRT always logs rAF suspension debugging code
1895         https://bugs.webkit.org/show_bug.cgi?id=173681
1896
1897         Reviewed by Tim "Mr. T" Horton.
1898
1899         * WebView/WebPreferenceKeysPrivate.h:
1900         * WebView/WebPreferences.mm:
1901         (+[WebPreferences initialize]):
1902         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]): Deleted.
1903         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]): Deleted.
1904         * WebView/WebPreferencesPrivate.h:
1905         * WebView/WebView.mm:
1906         (-[WebView _preferencesChanged:]):
1907
1908 2017-06-21  Daniel Bates  <dabates@apple.com>
1909
1910         Cleanup FrameLoadRequest
1911         https://bugs.webkit.org/show_bug.cgi?id=173564
1912         <rdar://problem/32903570>
1913
1914         Reviewed by Brent Fulgham.
1915
1916         * WebView/WebPDFView.mm:
1917         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Move FrameLoadRequest instantiation
1918         into a local variable and use C++11 brace initialization syntax to make it easier to identify
1919         the arguments passed to FrameLoader::loadFrameRequest().
1920
1921 2017-06-21  Antoine Quint  <graouts@apple.com>
1922
1923         Add logging to identify when the Page suspends scripted animations
1924         https://bugs.webkit.org/show_bug.cgi?id=173626
1925
1926         Reviewed by Tim Horton.
1927
1928         Add a new preference to control the new shouldLogScriptedAnimationControllerSuspensionChange settings
1929         through WebKit. This is specific to WK1 since the issue we're trying to pinpoint only occurs on WK1 bots.
1930
1931         * WebView/WebPreferenceKeysPrivate.h:
1932         * WebView/WebPreferences.mm:
1933         (+[WebPreferences initialize]):
1934         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]):
1935         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]):
1936         * WebView/WebPreferencesPrivate.h:
1937         * WebView/WebView.mm:
1938         (-[WebView _preferencesChanged:]):
1939
1940 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
1941
1942         Disable font variations on macOS Sierra and iOS 10
1943         https://bugs.webkit.org/show_bug.cgi?id=173618
1944         <rdar://problem/32879164>
1945
1946         Reviewed by Jon Lee.
1947
1948         * Configurations/FeatureDefines.xcconfig:
1949
1950 2017-06-20  Daniel Bates  <dabates@apple.com>
1951
1952         Have FrameLoadRequest takes a Frame& instead of a Frame*
1953         https://bugs.webkit.org/show_bug.cgi?id=173614
1954         <rdar://problem/32884890>
1955
1956         Reviewed by Brent Fulgham.
1957
1958         * Plugins/WebPluginController.mm:
1959         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
1960         * WebView/WebFrame.mm:
1961         (-[WebFrame loadRequest:]):
1962         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1963
1964 2017-06-19  Frederic Wang  <fwang@igalia.com>
1965
1966         [Mac] Add an experimental feature setting for async frame scrolling
1967         https://bugs.webkit.org/show_bug.cgi?id=173359
1968
1969         Reviewed by Simon Fraser.
1970
1971         * WebView/WebPreferenceKeysPrivate.h: Declare key for async frame scrolling preference.
1972         * WebView/WebPreferences.mm:
1973         (+[WebPreferences initialize]): Initialize async frame scrolling preference to false.
1974         (-[WebPreferences asyncFrameScrollingEnabled]): Define getter for async frame scrolling.
1975         (-[WebPreferences setAsyncFrameScrollingEnabled:]): Define setter for async frame scrolling.
1976         * WebView/WebPreferencesPrivate.h: Declare setter and getter.
1977         * WebView/WebView.mm:
1978         (-[WebView _preferencesChanged:]): Take into account preference update for async frame
1979         scrolling.
1980
1981 2017-06-19  Chris Dumez  <cdumez@apple.com>
1982
1983         Use WTF::Function instead of std::function in more places in WebCore/
1984         https://bugs.webkit.org/show_bug.cgi?id=173535
1985
1986         Reviewed by Antti Koivisto.
1987
1988         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
1989
1990         * WebCoreSupport/WebFrameLoaderClient.h:
1991         * WebCoreSupport/WebFrameLoaderClient.mm:
1992         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1993         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1994         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1995         (WebFrameLoaderClient::dispatchWillSubmitForm):
1996         (WebFrameLoaderClient::setUpPolicyListener):
1997         (-[WebFramePolicyListener initWithFrame:policyFunction:]):
1998         (-[WebFramePolicyListener initWithFrame:policyFunction:appLinkURL:]):
1999
2000 2017-05-14 Frederic Wang  <fwang@igalia.com>
2001
2002         Add heuristic to avoid flattening "fullscreen" iframes
2003         https://bugs.webkit.org/show_bug.cgi?id=171914
2004
2005         Reviewed by Simon Fraser.
2006
2007         This commit adjusts the mac/ios preference interface to treat frame flattening as an enum.
2008
2009         * WebView/WebPreferenceKeysPrivate.h: Rename the key.
2010         * WebView/WebPreferences.mm:
2011         (+[WebPreferences initialize]): Handle frame flattening as an enum.
2012         (-[WebPreferences isFrameFlatteningEnabled]): Ditto.
2013         (-[WebPreferences setFrameFlatteningEnabled:]): Ditto.
2014         (-[WebPreferences frameFlattening]): New function to get frame flattening as an enum.
2015         (-[WebPreferences setFrameFlattening:]): New function to set frame flattening as an enum.
2016         * WebView/WebPreferencesPrivate.h: Ditto.
2017         * WebView/WebView.mm:
2018         (-[WebView _preferencesChanged:]): Ditto.
2019         * WebView/WebPreferencesPrivate.h: Add new enum definition.
2020
2021 2017-06-17  Chris Dumez  <cdumez@apple.com>
2022
2023         Use WTF::Function instead of std::function in WebKit2/
2024         https://bugs.webkit.org/show_bug.cgi?id=173504
2025
2026         Reviewed by Darin Adler.
2027
2028         Use WTF::Function instead of std::function in WebKit2/ to avoid
2029         unnecessary copying.
2030
2031         * Plugins/Hosted/HostedNetscapePluginStream.h:
2032         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2033         (WebKit::HostedNetscapePluginStream::willSendRequest):
2034         * Plugins/WebNetscapePluginStream.h:
2035         * Plugins/WebNetscapePluginStream.mm:
2036         (WebNetscapePluginStream::willSendRequest):
2037         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2038         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2039         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
2040         (WebPaymentCoordinatorClient::openPaymentSetup):
2041
2042 2017-06-16  Sam Weinig  <sam@webkit.org>
2043
2044         [WebIDL] Remove custom bindings for HTMLDocument
2045         https://bugs.webkit.org/show_bug.cgi?id=173444
2046
2047         Reviewed by Darin Adler.
2048
2049         * DOM/DOMHTMLDocument.mm:
2050         (-[DOMHTMLDocument linkColor]):
2051         (-[DOMHTMLDocument setLinkColor:]):
2052         (-[DOMHTMLDocument write:]):
2053         (-[DOMHTMLDocument writeln:]):
2054         Update for new signature of write/writeln and rename of linkColor to linkColorForBindings.
2055
2056 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
2057
2058         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
2059         https://bugs.webkit.org/show_bug.cgi?id=173366
2060         <rdar://problem/32767014>
2061
2062         Reviewed by Tim Horton.
2063
2064         Move pieces of iOS WebKit1 drag and drop implementation into OpenSource. No change in behavior.
2065
2066         * Configurations/FeatureDefines.xcconfig:
2067         * WebCoreSupport/WebDragClient.mm:
2068         (WebDragClient::useLegacyDragClient):
2069         (WebDragClient::willPerformDragDestinationAction):
2070         (WebDragClient::dragSourceActionMaskForPoint):
2071         (WebDragClient::willPerformDragSourceAction):
2072         (WebDragClient::startDrag):
2073         (WebDragClient::beginDrag):
2074         (WebDragClient::declareAndWriteDragImage):
2075         (WebDragClient::declareAndWriteAttachment):
2076         (WebDragClient::didConcludeEditDrag):
2077         * WebView/WebView.mm:
2078         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
2079         (-[WebView _getDataInteractionData]):
2080         (-[WebView dragDataForSession:client:global:operation:]):
2081         (-[WebView _enteredDataInteraction:client:global:operation:]):
2082         (-[WebView _updatedDataInteraction:client:global:operation:]):
2083         (-[WebView _exitedDataInteraction:client:global:operation:]):
2084         (-[WebView _performDataInteraction:client:global:operation:]):
2085         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
2086         (-[WebView _endedDataInteraction:global:]):
2087         (-[WebView _didConcludeEditDataInteraction]):
2088         (floatRectsForCGRectArray): Deleted.
2089         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]): Deleted.
2090         * WebView/WebViewData.h:
2091         * WebView/WebViewData.mm:
2092         (-[WebViewPrivate dealloc]):
2093         * WebView/WebViewPrivate.h:
2094
2095 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2096
2097         [iOS DnD] [WK1] Dropping links onto UIWebViews should not trigger navigation by default
2098         https://bugs.webkit.org/show_bug.cgi?id=173454
2099         <rdar://problem/31720671>
2100
2101         Reviewed by Tim Horton.
2102
2103         Adds -webView:dragDestinationActionMaskForSession: as SPI to WebUIDelegate.
2104         If unimplemented, the default UI delegate allows all actions except for URL loading.
2105
2106         * DefaultDelegates/WebDefaultUIDelegate.mm:
2107         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForSession:]):
2108         * WebView/WebUIDelegatePrivate.h:
2109         * WebView/WebView.mm:
2110         (-[WebView dragDestinationActionMaskForSession:]):
2111
2112 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2113
2114         Using -[WebItemProviderPasteboard setItemProviders:] to swap out item providers before a drop breaks item provider loading
2115         https://bugs.webkit.org/show_bug.cgi?id=173338
2116         <rdar://problem/32777720>
2117
2118         Reviewed by Tim Horton.
2119
2120         Rename updatePreferredTypeIdentifiers to updateSupportedTypeIdentifiers.
2121
2122         * WebCoreSupport/WebPlatformStrategies.h:
2123         * WebCoreSupport/WebPlatformStrategies.mm:
2124         (WebPlatformStrategies::updateSupportedTypeIdentifiers):
2125         (WebPlatformStrategies::updatePreferredTypeIdentifiers): Deleted.
2126
2127 2017-06-13  Daniel Bates  <dabates@apple.com>
2128
2129         Implement W3C Secure Contexts Draft Specification
2130         https://bugs.webkit.org/show_bug.cgi?id=158121
2131         <rdar://problem/26012994>
2132
2133         Reviewed by Brent Fulgham.
2134
2135         Part 4
2136
2137         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
2138
2139         * WebView/WebPreferenceKeysPrivate.h:
2140         * WebView/WebPreferences.mm:
2141         (+[WebPreferences initialize]):
2142         (-[WebPreferences isSecureContextAttributeEnabled]):
2143         (-[WebPreferences setIsSecureContextAttributeEnabled:]):
2144         * WebView/WebPreferencesPrivate.h:
2145         * WebView/WebView.mm:
2146         (-[WebView _preferencesChanged:]):
2147
2148 2017-06-13  Sam Weinig  <sam@webkit.org>
2149
2150         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
2151         https://bugs.webkit.org/show_bug.cgi?id=80733
2152
2153         Reviewed by Chris Dumez.
2154
2155         * DOM/DOMUtility.mm:
2156         (createDOMWrapper):
2157         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2158         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2159         * WebView/WebFrame.mm:
2160         (-[WebFrame _attachScriptDebugger]):
2161         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2162
2163 2017-06-12  Jiewen Tan  <jiewen_tan@apple.com>
2164
2165         [WebCrypto] Remove experimental feature flag of SubtleCrypto
2166         https://bugs.webkit.org/show_bug.cgi?id=173197
2167         <rdar://problem/32688148>
2168
2169         Reviewed by Brent Fulgham.
2170
2171         * WebView/WebPreferences.mm:
2172         (+[WebPreferences initialize]):
2173         (-[WebPreferences subtleCryptoEnabled]): Deleted.
2174         (-[WebPreferences setSubtleCryptoEnabled:]): Deleted.
2175         * WebView/WebPreferencesPrivate.h:
2176         * WebView/WebView.mm:
2177         (-[WebView _preferencesChanged:]):
2178
2179 2017-06-10  Dan Bernstein  <mitz@apple.com>
2180
2181         Reverted r218056 because it made the IDE reindex constantly.
2182
2183         * Configurations/DebugRelease.xcconfig:
2184
2185 2017-06-10  Dan Bernstein  <mitz@apple.com>
2186
2187         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
2188         https://bugs.webkit.org/show_bug.cgi?id=173223
2189
2190         Reviewed by Sam Weinig.
2191
2192         The rebuilds were happening due to a difference in the compiler options that the IDE and
2193         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
2194         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
2195         specify an appropriate path in CLANG_INDEX_STORE_PATH.
2196
2197         * Configurations/DebugRelease.xcconfig:
2198
2199 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
2200
2201         [iOS DnD] Add a hook to perform two-step drops in editable content
2202         https://bugs.webkit.org/show_bug.cgi?id=172992
2203         <rdar://problem/32590174>
2204
2205         Reviewed by Tim Horton.
2206
2207         Adds a new SPI to WebUIKitDelegate to allow WK1 clients to override default drop behavior. Returning YES from
2208         -performTwoStepDrop:atDestination:isMove: will prevent content from being inserted on drop in WebKit; otherwise,
2209         returning NO will continue with default WebKit behavior.
2210
2211         * WebCoreSupport/WebEditorClient.h:
2212         * WebCoreSupport/WebEditorClient.mm:
2213         (WebEditorClient::performTwoStepDrop):
2214
2215 2017-06-08  Jer Noble  <jer.noble@apple.com>
2216
2217         Clients of the WK2 C-API don't have their mediaContentTypesRequiringHardwareSupport setting initialized correctly.
2218         https://bugs.webkit.org/show_bug.cgi?id=173091
2219
2220         Reviewed by Eric Carlson.
2221
2222         * WebView/WebPreferences.mm:
2223         (+[WebPreferences initialize]):
2224
2225 2017-06-07  Jer Noble  <jer.noble@apple.com>
2226
2227         Clean-up: RenderElement.h includes headers it doesn't use
2228         https://bugs.webkit.org/show_bug.cgi?id=173046
2229
2230         Reviewed by Andy Estes.
2231
2232         * WebView/WebImmediateActionController.mm:
2233
2234 2017-06-07  Zalan Bujtas  <zalan@apple.com>
2235
2236         [iOS WK1 WebThread] Do not call out to the main thread for device orientation.
2237         https://bugs.webkit.org/show_bug.cgi?id=173044
2238         <rdar://problem/32449338>
2239
2240         Reviewed by Tim Horton.
2241
2242         Cache the current device orientation so that we don't have to lift the WebThread lock
2243         to collect it.
2244
2245         * WebView/WebFrame.mm:
2246         (-[WebFrame deviceOrientationChanged]):
2247         * WebView/WebView.mm:
2248         (-[WebView _commonInitializationWithFrameName:groupName:]):
2249         (-[WebView _setDeviceOrientation:]):
2250         (-[WebView _deviceOrientation]):
2251         * WebView/WebViewData.h:
2252         * WebView/WebViewInternal.h:
2253
2254 2017-06-06  Jer Noble  <jer.noble@apple.com>
2255
2256         [Cocoa] Set defaults for mediaContentTypesRequiringHardwareSupport setting
2257         https://bugs.webkit.org/show_bug.cgi?id=173008
2258
2259         Reviewed by Eric Carlson.
2260
2261         Add a private preference (with default) for the mediaContentTypesRequiringHardwareSupport WebCore setting.
2262
2263         * WebView/WebPreferenceKeysPrivate.h:
2264         * WebView/WebPreferences.mm:
2265         (+[WebPreferences initialize]):
2266         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
2267         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
2268         * WebView/WebPreferencesPrivate.h:
2269         * WebView/WebView.mm:
2270         (-[WebView _preferencesChanged:]):
2271
2272 2017-06-06  Youenn Fablet  <youenn@apple.com>
2273
2274         Add an option to disable getUserMedia prompt in case of mock capture sources
2275         https://bugs.webkit.org/show_bug.cgi?id=172981
2276         <rdar://problem/32580325>
2277
2278         Reviewed by Eric Carlson.
2279
2280         Defining the option, getter and setter.
2281
2282         * WebView/WebPreferences.mm:
2283         (+[WebPreferences initialize]):
2284         (-[WebPreferences mockCaptureDevicesPromptEnabled]):
2285         (-[WebPreferences setMockCaptureDevicesPromptEnabled:]):
2286         * WebView/WebPreferencesPrivate.h:
2287
2288 2017-06-05  Dan Bernstein  <mitz@apple.com>
2289
2290         Tried to fix the build when targrting macOS 10.12 using the macOS 10.13 developer beta SDK.
2291
2292         * WebView/WebView.mm:
2293         (-[WebView updateMediaTouchBar]):
2294         * WebView/WebViewData.h:
2295
2296 2017-06-03  Darin Adler  <darin@apple.com>
2297
2298         Streamline handling of attributes, using references as much as possible
2299         https://bugs.webkit.org/show_bug.cgi?id=172899
2300
2301         Reviewed by Chris Dumez.
2302
2303         * WebView/WebHTMLRepresentation.mm:
2304         (matchLabelsAgainstElement): Added handling of nullptr since nothing guarantees the
2305         passed in element can't be null. Removed unnecessary conversion from NSString to String
2306         and then back to NSString.
2307
2308 2017-06-01  Andy Estes  <aestes@apple.com>
2309
2310         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
2311         https://bugs.webkit.org/show_bug.cgi?id=172828
2312
2313         Reviewed by Beth Dakin.
2314
2315         * Configurations/FeatureDefines.xcconfig:
2316
2317 2017-05-31  Andy Estes  <aestes@apple.com>
2318
2319         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
2320         https://bugs.webkit.org/show_bug.cgi?id=172366
2321
2322         Reviewed by Daniel Bates.
2323
2324         * Configurations/FeatureDefines.xcconfig:
2325
2326 2017-05-30  Ryosuke Niwa  <rniwa@webkit.org>
2327
2328         Only include DataDetectorsUI headers in iOS
2329         https://bugs.webkit.org/show_bug.cgi?id=172633
2330
2331         Reviewed by David Kilzer.
2332
2333         Enable data detectors only on iOS and not other variants of iOS.
2334
2335         * WebCoreSupport/WebFrameLoaderClient.mm:
2336
2337 2017-05-30  Alex Christensen  <achristensen@webkit.org>
2338
2339         Update libwebrtc configuration
2340         https://bugs.webkit.org/show_bug.cgi?id=172727
2341
2342         Reviewed by Geoffrey Garen.
2343
2344         * Configurations/FeatureDefines.xcconfig:
2345
2346 2017-05-28  Dan Bernstein  <mitz@apple.com>
2347
2348         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
2349         https://bugs.webkit.org/show_bug.cgi?id=172691
2350
2351         Reviewed by Tim Horton.
2352
2353         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
2354
2355 2017-05-26  Brent Fulgham  <bfulgham@apple.com>
2356
2357         [WK2] Address thread safety issues with ResourceLoadStatistics
2358         https://bugs.webkit.org/show_bug.cgi?id=172519
2359         <rdar://problem/31707642>
2360
2361         Reviewed by Chris Dumez.
2362
2363         Create a new WorkQueue for the ResourceLoadStatistics store to use for processing data.
2364
2365         * WebView/WebView.mm:
2366         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Pass WorkQueue to the observer.
2367
2368 2017-05-25  Myles C. Maxfield  <mmaxfield@apple.com>
2369
2370         [WK1] iframes in layer-backed NSViews are not cleared between successive draws
2371         https://bugs.webkit.org/show_bug.cgi?id=172554
2372         <rdar://problem/31247133>
2373
2374         Reviewed by Simon Fraser.
2375
2376         Update an overridden internal AppKit function to the new signature.
2377
2378         * WebView/WebHTMLView.mm:
2379         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]):
2380         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
2381         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
2382         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
2383
2384 2017-05-24  Jer Noble  <jer.noble@apple.com>
2385
2386         Rename DisplaySleepDisabler -> SleepDisabler
2387         https://bugs.webkit.org/show_bug.cgi?id=172478
2388
2389         Reviewed by Sam Weinig.
2390
2391         * WebView/WebFullScreenController.h:
2392
2393 2017-05-23  Simon Fraser  <simon.fraser@apple.com>
2394
2395         Stop consulting -viewsNeedDisplay when doing layer flushing in WebKit1
2396         https://bugs.webkit.org/show_bug.cgi?id=172522
2397         rdar://problem/31071812
2398
2399         Reviewed by Tim Horton.
2400
2401         There's no need to consult -[NSWindow viewsNeedDisplay] on newer OSes. It was
2402         added in r58623, and modified in r61204 for Carbon apps, but with more recent AppKit
2403         versions this synchronization is no longer required.
2404
2405         * WebView/WebView.mm:
2406         (LayerFlushController::flushLayers):
2407
2408 2017-05-22  Simon Fraser  <simon.fraser@apple.com>
2409
2410         Snapshotting via -renderInContext: should do synchronous image decodes
2411         https://bugs.webkit.org/show_bug.cgi?id=172485
2412         rdar://problem/32276146
2413
2414         Reviewed by Tim Horton.
2415
2416         Remove the _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap: SPI that no longer
2417         has any callers.
2418
2419         * Plugins/WebBaseNetscapePluginView.h:
2420         * Plugins/WebBaseNetscapePluginView.mm:
2421         (-[WebBaseNetscapePluginView inFlatteningPaint]): Deleted.
2422         * WebView/WebFrame.mm:
2423         (-[WebFrame _paintBehaviorForDestinationContext:]):
2424         (-[WebFrame _drawRect:contentsOnly:]):
2425         (-[WebFrame _shouldFlattenCompositingLayers:]): Deleted.
2426         * WebView/WebHTMLView.mm:
2427         (imageFromRect):
2428         * WebView/WebView.mm:
2429         (-[WebView _commonInitializationWithFrameName:groupName:]):
2430         (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]): Deleted.
2431         (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]): Deleted.
2432         * WebView/WebViewData.h:
2433         * WebView/WebViewPrivate.h:
2434
2435 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
2436
2437         Remove dead ENABLE(FONT_LOAD_EVENTS) code
2438         https://bugs.webkit.org/show_bug.cgi?id=172517
2439
2440         Rubber-stamped by Simon Fraser.
2441
2442         * Configurations/FeatureDefines.xcconfig:
2443
2444 2017-05-23  Emilio Cobos Álvarez  <ecobos@igalia.com>
2445
2446         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
2447         https://bugs.webkit.org/show_bug.cgi?id=171984
2448
2449         Reviewed by Antti Koivisto.
2450
2451         * WebView/WebPreferenceKeysPrivate.h:
2452         * WebView/WebPreferences.mm:
2453         (+[WebPreferences initialize]):
2454         (-[WebPreferences displayContentsEnabled]):
2455         (-[WebPreferences setDisplayContentsEnabled:]):
2456         * WebView/WebPreferencesPrivate.h:
2457         * WebView/WebView.mm:
2458         (-[WebView _preferencesChanged:]):
2459
2460 2017-05-22  Youenn Fablet  <youenn@apple.com>
2461
2462         Remove AVAudioCaptureSource
2463         https://bugs.webkit.org/show_bug.cgi?id=172360
2464
2465         Reviewed by Sam Weinig.
2466
2467         Removing the handling of AVAudio/CoreAudio capture source dynamic switch.
2468
2469         * WebView/WebPreferenceKeysPrivate.h:
2470         * WebView/WebPreferences.mm:
2471         (+[WebPreferences initialize]):
2472         (-[WebPreferences useAVFoundationAudioCapture]): Deleted.
2473         (-[WebPreferences setUseAVFoundationAudioCapture:]): Deleted.
2474         * WebView/WebPreferencesPrivate.h:
2475         * WebView/WebView.mm:
2476         (-[WebView _preferencesChanged:]):
2477
2478 2017-05-22  Sam Weinig  <sam@webkit.org>
2479
2480         [WebIDL] Support callbacks with arbitrary return types
2481         https://bugs.webkit.org/show_bug.cgi?id=172407
2482
2483         Reviewed by Chris Dumez.
2484
2485         * DOM/DOM.mm:
2486         (-[DOMNodeFilter acceptNode:]):
2487         Update for CallbackResult adoption in the base class.
2488
2489         * DOM/DOMNodeIterator.mm:
2490         * DOM/DOMTreeWalker.mm:
2491         Update to account for new WebCore implementation return types. We return nil
2492         if there was an exception, since retains the existing behavior if a javascript
2493         NodeFilter had been used (an exception would cause all nodes to be rejected,
2494         thus returning nullptr).
2495
2496         * DOM/ObjCNodeFilterCondition.h:
2497         * DOM/ObjCNodeFilterCondition.mm:
2498         Update to match new interface of NodeFilterCondition.
2499
2500 2017-05-18  Sam Weinig  <sam@webkit.org>
2501
2502         [WebIDL] Remove the need for the generator to know about native type mapping
2503         https://bugs.webkit.org/show_bug.cgi?id=172310
2504
2505         Reviewed by Darin Adler.
2506
2507         * DOM/DOM.mm:
2508         (-[DOMNodeFilter acceptNode:]):
2509         Update to pass Node by reference.
2510
2511 2017-05-19  Yusuke Suzuki  <utatane.tea@gmail.com>
2512
2513         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
2514         https://bugs.webkit.org/show_bug.cgi?id=172098
2515
2516         Reviewed by Saam Barati.
2517
2518         * Plugins/Hosted/ProxyInstance.mm:
2519         * Plugins/Hosted/ProxyRuntimeObject.mm:
2520
2521 2017-05-18  Andy Estes  <aestes@apple.com>
2522
2523         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
2524         https://bugs.webkit.org/show_bug.cgi?id=172305
2525
2526         Reviewed by Anders Carlsson.
2527
2528         * Configurations/FeatureDefines.xcconfig:
2529
2530 2017-05-18  Commit Queue  <commit-queue@webkit.org>
2531
2532         Unreviewed, rolling out r217031, r217032, and r217037.
2533         https://bugs.webkit.org/show_bug.cgi?id=172293
2534
2535         cause linking errors in Windows (Requested by yusukesuzuki on
2536         #webkit).
2537
2538         Reverted changesets:
2539
2540         "[JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass"
2541         https://bugs.webkit.org/show_bug.cgi?id=172098
2542         http://trac.webkit.org/changeset/217031
2543
2544         "Unreviewed, rebaseline for newly added ClassInfo"
2545         https://bugs.webkit.org/show_bug.cgi?id=172098
2546         http://trac.webkit.org/changeset/217032
2547
2548         "Unreviewed, fix debug and non-JIT build"
2549         https://bugs.webkit.org/show_bug.cgi?id=172098
2550         http://trac.webkit.org/changeset/217037
2551
2552 2017-05-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2553
2554         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
2555         https://bugs.webkit.org/show_bug.cgi?id=172098
2556
2557         Reviewed by Saam Barati.
2558
2559         * Plugins/Hosted/ProxyInstance.mm:
2560         * Plugins/Hosted/ProxyRuntimeObject.mm:
2561
2562 2017-05-17  Matt Lewis  <jlewis3@apple.com>
2563
2564         Unreviewed, rolling out r216974.
2565
2566         Revision caused consistent timeouts on all platforms.
2567
2568         Reverted changeset:
2569
2570         "Add a RuntimeEnabledFeature for display: contents, defaulted
2571         to false."
2572         https://bugs.webkit.org/show_bug.cgi?id=171984
2573         http://trac.webkit.org/changeset/216974
2574
2575 2017-05-17  Emilio Cobos Álvarez  <ecobos@igalia.com>
2576
2577         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
2578         https://bugs.webkit.org/show_bug.cgi?id=171984
2579
2580         Reviewed by Antti Koivisto.
2581
2582         * WebView/WebPreferenceKeysPrivate.h:
2583         * WebView/WebPreferences.mm:
2584         (+[WebPreferences initialize]):
2585         (-[WebPreferences displayContentsEnabled]):
2586         (-[WebPreferences setDisplayContentsEnabled:]):
2587         * WebView/WebPreferencesPrivate.h:
2588         * WebView/WebView.mm:
2589         (-[WebView _preferencesChanged:]):
2590
2591 2017-05-16  Sam Weinig  <sam@webkit.org>
2592
2593         Bring Notification.idl up to spec
2594         https://bugs.webkit.org/show_bug.cgi?id=172156
2595
2596         Reviewed by Chris Dumez.
2597
2598         * WebCoreSupport/WebNotificationClient.h:
2599         * WebCoreSupport/WebNotificationClient.mm:
2600         (generateNotificationID):
2601         (WebNotificationClient::show):
2602         (WebNotificationClient::cancel):
2603         (WebNotificationClient::clearNotifications):
2604         (WebNotificationClient::notificationObjectDestroyed):
2605         (WebNotificationClient::requestPermission):
2606         (WebNotificationClient::hasPendingPermissionRequests):
2607         (WebNotificationClient::checkPermission):
2608         (-[WebNotificationPolicyListener allow]):
2609         (-[WebNotificationPolicyListener deny]):
2610         * WebView/WebNotification.mm:
2611         (-[WebNotification iconURL]):
2612         (-[WebNotification dir]):
2613         Simplify #ifdefs and update for enum vs String usage.
2614
2615 2017-05-15  Said Abou-Hallawa  <sabouhallawa@apple.com>
2616
2617         Do not delete asynchronously decoded frames for large images if their clients are in the viewport
2618         https://bugs.webkit.org/show_bug.cgi?id=170640
2619
2620         Reviewed by Simon Fraser.
2621
2622         Enable the async decoding for large images.
2623
2624         * WebView/WebView.mm:
2625         (-[WebView _preferencesChanged:]):
2626
2627 2017-05-15  Jer Noble  <jer.noble@apple.com>
2628
2629         Add experimental setting to allow document gesture interaction to fulfill media playback gesture requirement
2630         https://bugs.webkit.org/show_bug.cgi?id=172131
2631
2632         Reviewed by Eric Carlson.
2633
2634         * WebView/WebPreferenceKeysPrivate.h:
2635         * WebView/WebPreferences.mm:
2636         (+[WebPreferences initialize]):
2637         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
2638         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
2639         * WebView/WebPreferencesPrivate.h:
2640
2641 2017-05-12  Chris Dumez  <cdumez@apple.com>
2642
2643         Drop uses of PassRefPtr in WebKit/mac
2644         https://bugs.webkit.org/show_bug.cgi?id=172066
2645
2646         Reviewed by Sam Weinig.
2647
2648         * History/WebBackForwardListInternal.h:
2649         * History/WebHistoryItem.mm:
2650         (kit):
2651         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
2652         * History/WebHistoryItemInternal.h:
2653         * Plugins/Hosted/HostedNetscapePluginStream.h:
2654         (WebKit::HostedNetscapePluginStream::create):
2655         * Plugins/Hosted/NetscapePluginHostManager.h:
2656         * Plugins/Hosted/NetscapePluginHostManager.mm:
2657         (WebKit::NetscapePluginHostManager::instantiatePlugin):
2658         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2659         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2660         (WebKit::NetscapePluginInstanceProxy::PluginRequest::create):
2661         (WebKit::NetscapePluginInstanceProxy::create):
2662         (WebKit::NetscapePluginInstanceProxy::setManualStream):
2663         * Plugins/Hosted/ProxyInstance.h:
2664         (WebKit::ProxyInstance::create):
2665         * Plugins/Hosted/ProxyInstance.mm:
2666         (WebKit::ProxyInstance::ProxyInstance):
2667         (WebKit::ProxyInstance::newRuntimeObject):
2668         * Plugins/Hosted/ProxyRuntimeObject.h:
2669         (WebKit::ProxyRuntimeObject::create):
2670         * Plugins/Hosted/ProxyRuntimeObject.mm:
2671         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2672         * Plugins/Hosted/WebHostedNetscapePluginView.h:
2673         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2674         (-[WebHostedNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
2675         * Plugins/WebBaseNetscapePluginView.h:
2676         * Plugins/WebBaseNetscapePluginView.mm:
2677         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
2678         * Plugins/WebNetscapePluginStream.h:
2679         (WebNetscapePluginStream::create):
2680         * Plugins/WebNetscapePluginView.h:
2681         * Plugins/WebNetscapePluginView.mm:
2682         (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
2683         * WebCoreSupport/WebChromeClient.mm:
2684         * WebCoreSupport/WebEditorClient.mm:
2685         * WebCoreSupport/WebNotificationClient.mm:
2686         (WebNotificationClient::requestPermission):
2687         (-[WebNotificationPolicyListener initWithCallback:]):
2688         * WebCoreSupport/WebOpenPanelResultListener.mm:
2689         * WebCoreSupport/WebUserMediaClient.mm:
2690         (WebUserMediaClient::requestUserMediaAccess):
2691         (WebUserMediaClient::enumerateMediaDevices):
2692         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
2693         (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
2694         * WebView/WebArchive.mm:
2695         (-[WebArchivePrivate initWithCoreArchive:]):
2696         (-[WebArchivePrivate setCoreArchive:]):
2697         (-[WebArchive initWithData:]):
2698         (-[WebArchive subframeArchives]):
2699         (-[WebArchive _initWithCoreLegacyWebArchive:]):
2700         * WebView/WebArchiveInternal.h:
2701         * WebView/WebDataSource.mm:
2702         (WebDataSourcePrivate::WebDataSourcePrivate):
2703         (WebDataSourcePrivate::~WebDataSourcePrivate):
2704         (-[WebDataSource _initWithDocumentLoader:]):
2705         * WebView/WebDataSourceInternal.h:
2706         * WebView/WebDeviceOrientation.mm:
2707         (-[WebDeviceOrientation initWithCoreDeviceOrientation:]):
2708         * WebView/WebDeviceOrientationInternal.h:
2709         * WebView/WebFrame.mm:
2710         (-[WebFrame _convertToDOMRange:]):
2711         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
2712         * WebView/WebFrameInternal.h:
2713         * WebView/WebFullScreenController.h:
2714         * WebView/WebFullScreenController.mm:
2715         (-[WebFullScreenController setElement:]):
2716         * WebView/WebGeolocationPosition.mm:
2717         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
2718         (-[WebGeolocationPosition initWithGeolocationPosition:]):
2719         * WebView/WebHTMLView.mm:
2720         (currentKeyboardEvent):
2721         * WebView/WebResource.mm:
2722         * WebView/WebScriptWorld.mm:
2723         (-[WebScriptWorld initWithWorld:]):
2724         (+[WebScriptWorld standardWorld]):
2725         (+[WebScriptWorld findOrCreateWorld:]):
2726         * WebView/WebViewData.h:
2727         (LayerFlushController::create):
2728
2729 2017-05-11  Chris Dumez  <cdumez@apple.com>
2730
2731         Drop remaining uses of PassRefPtr in WebCore
2732         https://bugs.webkit.org/show_bug.cgi?id=172013
2733
2734         Reviewed by Yusuke Suzuki.
2735
2736         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2737         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2738         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2739         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
2740         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2741         (-[WebHostedNetscapePluginView createPluginBindingsInstance:]):
2742
2743 2017-05-11  Tim Horton  <timothy_horton@apple.com>
2744
2745         Mail spins launching spell checker when typing
2746         https://bugs.webkit.org/show_bug.cgi?id=171986
2747         <rdar://problem/26305327>
2748
2749         Reviewed by Beth Dakin.
2750
2751         * WebView/WebView.mm:
2752         (-[WebView setEditable:]):
2753         Asynchronously pre-warm the spell checker when a WebView becomes editable.
2754
2755 2017-05-09  Sam Weinig  <sam@webkit.org>
2756
2757         Remove support for legacy Notifications
2758         https://bugs.webkit.org/show_bug.cgi?id=171487
2759
2760         Reviewed by Jon Lee.
2761
2762         * Configurations/FeatureDefines.xcconfig:
2763         * WebCoreSupport/WebNotificationClient.h:
2764         * WebCoreSupport/WebNotificationClient.mm:
2765         * WebView/WebNotification.mm:
2766         * WebView/WebNotificationInternal.h:
2767         * WebView/WebView.mm:
2768         (-[WebView _commonInitializationWithFrameName:groupName:]):
2769         (-[WebView _notificationIDForTesting:]):
2770         Remove legacy notification specific code.
2771
2772 2017-05-10  Chris Dumez  <cdumez@apple.com>
2773
2774         Simplify relationship between Attr and Element now that Attr is childless
2775         https://bugs.webkit.org/show_bug.cgi?id=171909
2776
2777         Reviewed by Ryosuke Niwa.
2778
2779         Build fix.
2780
2781         * DOM/DOMAttr.mm:
2782         (-[DOMAttr value]):
2783         (-[DOMAttr setValue:]):
2784
2785 2017-05-08  Chris Dumez  <cdumez@apple.com>
2786
2787         Move 'style' from Element to HTMLElement / SVGElement and make it settable
2788         https://bugs.webkit.org/show_bug.cgi?id=171795
2789
2790         Reviewed by Alex Christensen.
2791
2792         Build fix.
2793
2794         * DOM/DOMElement.mm:
2795         (-[DOMElement style]):
2796         * WebCoreSupport/WebEditorClient.mm:
2797         (WebEditorClient::shouldApplyStyle):
2798         * WebView/WebFrame.mm:
2799         (-[WebFrame _typingStyle]):
2800
2801 2017-05-06  Chris Dumez  <cdumez@apple.com>
2802
2803         Align our IDL files with the latest DOM specification
2804         https://bugs.webkit.org/show_bug.cgi?id=171777
2805
2806         Reviewed by Sam Weinig.
2807
2808         Build fix.
2809
2810         * DOM/DOMDocument.mm:
2811         (-[DOMDocument readyState]):
2812
2813 2017-05-05  Jeremy Jones  <jeremyj@apple.com>
2814
2815         REGRESSION (r215951): LayoutTest media/modern-media-controls/placard-support/placard-support-pip.html is a flaky crash
2816         https://bugs.webkit.org/show_bug.cgi?id=171610
2817         <rdar://problem/31976820>
2818
2819         Reviewed by Eric Carlson.
2820
2821         Fullscreen state gets confused because WK1 WebChromeClient doesn't implement exitVideoFullscreenToModeWithoutAnimation.
2822
2823         * WebCoreSupport/WebChromeClient.h:
2824         * WebCoreSupport/WebChromeClient.mm:
2825         (WebChromeClient::exitVideoFullscreenToModeWithoutAnimation):
2826
2827 2017-05-04  Commit Queue  <commit-queue@webkit.org>
2828
2829         Unreviewed, rolling out r216206.
2830         https://bugs.webkit.org/show_bug.cgi?id=171714
2831
2832         Multiple LayoutTests crashing in Document::page() (Requested
2833         by ap on #webkit).
2834
2835         Reverted changeset:
2836
2837         "Remove support for legacy Notifications"
2838         https://bugs.webkit.org/show_bug.cgi?id=171487
2839         http://trac.webkit.org/changeset/216206
2840
2841 2017-05-04  Jeremy Jones  <jeremyj@apple.com>
2842
2843         UIColor +whiteColor and +clearColor are ambiguous and need to be casted when soft linked.
2844         https://bugs.webkit.org/show_bug.cgi?id=171704
2845
2846         Reviewed by Jer Noble.
2847
2848         Fix build by casting result of +whiteColor to UIColor.
2849
2850         * WebView/WebView.mm:
2851         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
2852
2853 2017-05-04  Sam Weinig  <sam@webkit.org>
2854
2855         Remove support for legacy Notifications
2856         https://bugs.webkit.org/show_bug.cgi?id=171487
2857
2858         Reviewed by Jon Lee.
2859
2860         * Configurations/FeatureDefines.xcconfig:
2861         * WebCoreSupport/WebNotificationClient.h:
2862         * WebCoreSupport/WebNotificationClient.mm:
2863         * WebView/WebNotification.mm:
2864         * WebView/WebNotificationInternal.h:
2865         * WebView/WebView.mm:
2866         (-[WebView _commonInitializationWithFrameName:groupName:]):
2867         (-[WebView _notificationIDForTesting:]):
2868         Remove legacy notification specific code.
2869
2870 2017-05-03  Joseph Pecoraro  <pecoraro@apple.com>
2871
2872         [Cocoa] Stop exporting symbols for ivars that were made private
2873         https://bugs.webkit.org/show_bug.cgi?id=171631
2874
2875         Reviewed by Dan Bernstein.
2876
2877         * WebKit.exp:
2878
2879 2017-05-01  Chris Dumez  <cdumez@apple.com>
2880
2881         Remove some usage of PassRefPtr in editing code
2882         https://bugs.webkit.org/show_bug.cgi?id=171490
2883
2884         Reviewed by Darin Adler.
2885
2886         * WebView/WebFrame.mm:
2887         (-[WebFrame dictationResultMetadataForRange:]):
2888         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2889
2890 2017-05-01  Beth Dakin  <bdakin@apple.com>
2891
2892         On-screen panel for candidate bar is in the wrong place when the caret is at the 
2893         start of a paragraph
2894         https://bugs.webkit.org/show_bug.cgi?id=171453
2895         -and corresponding-
2896         rdar://problem/29779764
2897
2898         Reviewed by Tim Horton.
2899
2900         This bug only happens when the caret is at the beginning of the paragraph, and it 
2901         is because Range::absoluteTextQuads() returns no quads in this case. I think it 
2902         might be correct that absoluteTextQuads() returns no quads in this case, so this 
2903         patch fixes the bug at the call site by using absoluteCaretBounds() in this case.
2904
2905         * WebCoreSupport/WebEditorClient.mm:
2906         (WebEditorClient::handleRequestedCandidates):
2907
2908 2017-04-30  Dan Bernstein  <mitz@apple.com>
2909
2910         [Cocoa] Replaces uses of [get…() alloc] with alloc…Instance()
2911         https://bugs.webkit.org/show_bug.cgi?id=171485
2912
2913         Reviewed by Geoffrey Garen.
2914
2915         * WebView/WebView.mm:
2916         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
2917         (-[WebUITextIndicatorData initWithImage:scale:]):
2918
2919 2017-04-28  Youenn Fablet  <youenn@apple.com>
2920
2921         Adding a runtime flag specific to MediaDevices
2922         https://bugs.webkit.org/show_bug.cgi?id=171433
2923
2924         Reviewed by Geoffrey Garen.
2925
2926         Adding a preference for MediaDevices.
2927         Setting media devices runtime flag to false by default.
2928         Setting peer connection and media stream flags to true by default.
2929
2930         * WebView/WebPreferenceKeysPrivate.h:
2931         * WebView/WebPreferences.mm:
2932         (+[WebPreferences initialize]):
2933         (-[WebPreferences mediaDevicesEnabled]):
2934         (-[WebPreferences setMediaDevicesEnabled:]):
2935         * WebView/WebPreferencesPrivate.h:
2936         * WebView/WebView.mm:
2937         (-[WebView _preferencesChanged:]):
2938
2939 2017-04-27  Chris Dumez  <cdumez@apple.com>
2940
2941         Align colspan/rowspan limits with the latest HTML specification
2942         https://bugs.webkit.org/show_bug.cgi?id=171322
2943
2944         Reviewed by Darin Adler.
2945
2946         ObjC bindings build fix.
2947
2948         * DOM/DOMHTMLTableCellElement.mm:
2949         (-[DOMHTMLTableCellElement colSpan]):
2950         (-[DOMHTMLTableCellElement setColSpan:]):
2951
2952 2017-04-27  Said Abou-Hallawa  <sabouhallawa@apple.com>
2953
2954         REGRESSION(r213764): Async decoding of animated images is disabled for ImageDocument
2955         https://bugs.webkit.org/show_bug.cgi?id=170333
2956
2957         Reviewed by Simon Fraser.
2958
2959         Disbale the async decoding for large images for now.
2960
2961         * WebView/WebView.mm:
2962         (-[WebView _preferencesChanged:]):
2963
2964 2017-04-27  Alex Christensen  <achristensen@webkit.org>
2965
2966         Modernize Frame.h
2967         https://bugs.webkit.org/show_bug.cgi?id=171357
2968
2969         Reviewed by Andy Estes.
2970
2971         * WebCoreSupport/WebEditorClient.h:
2972         * WebCoreSupport/WebEditorClient.mm:
2973         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
2974
2975 2017-04-27  Wenson Hsieh  <wenson_hsieh@apple.com>
2976
2977         [WK1] Tweak the data interaction SPI to indicate whether or not a data interaction was handled
2978         https://bugs.webkit.org/show_bug.cgi?id=171369
2979         <rdar://problem/31858853>
2980
2981         Reviewed by Dan Bernstein.
2982
2983         Introduce a new SPI hook intended to replace performDataInteraction:client:global:operation: that
2984         returns whether or not the data interaction was handled. Due to the difference only in return type
2985         and some staging constraints, this version is prefixed with "_tryTo".
2986
2987         * WebView/WebView.mm:
2988         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
2989         * WebView/WebViewPrivate.h:
2990
2991 2017-04-26  Wenson Hsieh  <wenson_hsieh@apple.com>
2992
2993         WebItemProviderPasteboard should not synchronously load provided data
2994         https://bugs.webkit.org/show_bug.cgi?id=171341
2995         <rdar://problem/31614010>
2996
2997         Reviewed by Tim Horton.
2998
2999         Adds client-layer plumbing for updatePreferredTypeIdentifiers. See WebCore ChangeLog for more details.
3000
3001         * WebCoreSupport/WebPlatformStrategies.h:
3002         * WebCoreSupport/WebPlatformStrategies.mm:
3003         (WebPlatformStrategies::updatePreferredTypeIdentifiers):
3004
3005 2017-04-26  Zalan Bujtas  <zalan@apple.com>
3006
3007         RTL: recent searches popover is displayed in incorrect location
3008         https://bugs.webkit.org/show_bug.cgi?id=171338
3009         <rdar://problem/31377807>
3010
3011         Reviewed by Dean Jackson.
3012
3013         Add RTL support for the pop-under branch.
3014
3015         * WebCoreSupport/PopupMenuMac.mm:
3016         (PopupMenuMac::show):
3017
3018 2017-04-25  Brent Fulgham  <bfulgham@apple.com>
3019
3020         Limit allowed size of document.title to avoid locking WebKit clients
3021         https://bugs.webkit.org/show_bug.cgi?id=165113
3022         <rdar://problem/28324389>
3023
3024         Reviewed by Darin Adler.
3025
3026         When a web application attempts to set an extremely long title, truncate the
3027         title to a more reasonable size.
3028
3029         We do this at at the presentation layer, rather than in the DOM, so that we do
3030         not affect script function. Instead, we merely limit display to a level that is
3031         reasonable for normal GUI widgets. Anything else needs to be truncated in the UI
3032         layer, so it is a waste of effort to send across IPC.
3033
3034         * WebCoreSupport/WebFrameLoaderClient.h:
3035         * WebCoreSupport/WebFrameLoaderClient.mm:
3036         (WebFrameLoaderClient::dispatchDidReceiveTitle):
3037
3038 2017-04-25  Daniel Bates  <dabates@apple.com>
3039
3040         [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header
3041         https://bugs.webkit.org/show_bug.cgi?id=136452
3042         <rdar://problem/23412620>
3043
3044         Reviewed by Brent Fulgham.
3045
3046         Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms.
3047
3048         * Configurations/FeatureDefines.xcconfig:
3049
3050 2017-04-25  Wenson Hsieh  <wenson_hsieh@apple.com>
3051
3052         Support reading NSURL titles from the pasteboard when performing data interaction
3053         https://bugs.webkit.org/show_bug.cgi?id=171156
3054         <rdar://problem/31356937>
3055
3056         Reviewed by Tim Horton.
3057
3058         Add a new WK1 SPI property, -[WebFrame hasRichlyEditableDragCaret].
3059
3060         * WebCoreSupport/WebPlatformStrategies.h:
3061         * WebCoreSupport/WebPlatformStrategies.mm:
3062         (WebPlatformStrategies::readURLFromPasteboard):
3063         * WebView/WebFrame.mm:
3064         (-[WebFrame hasRichlyEditableDragCaret]):
3065         * WebView/WebFramePrivate.h:
3066
3067 2017-04-24  Andy VanWagoner  <thetalecrafter@gmail.com>
3068
3069         Clean up ICU headers
3070         https://bugs.webkit.org/show_bug.cgi?id=170997
3071
3072         Reviewed by JF Bastien.
3073
3074         Update all icu headers to 55.1
3075
3076         * icu/README: Explain ICU headers for OS X better
3077         * icu/unicode/localpointer.h:
3078         (LocalPointer::LocalPointer):
3079         (LocalPointer::adoptInsteadAndCheckErrorCode):
3080         * icu/unicode/platform.h:
3081         * icu/unicode/putil.h:
3082         * icu/unicode/uchar.h:
3083         * icu/unicode/uconfig.h:
3084         * icu/unicode/ucurr.h:
3085         * icu/unicode/uidna.h:
3086         * icu/unicode/umachine.h:
3087         * icu/unicode/urename.h:
3088         * icu/unicode/uscript.h:
3089         * icu/unicode/ustring.h:
3090         * icu/unicode/utf8.h:
3091         * icu/unicode/utypes.h:
3092         * icu/unicode/uvernum.h:
3093
3094 2017-04-24  Wenson Hsieh  <wenson_hsieh@apple.com>
3095
3096         Respect fidelity order when reading web content from item providers
3097         https://bugs.webkit.org/show_bug.cgi?id=171155
3098         <rdar://problem/31356937>
3099
3100         Reviewed by Tim Horton.
3101
3102         Adjusts for changes in WebCore (see WebCore/ChangeLog for more details).
3103
3104         * WebCoreSupport/WebPlatformStrategies.h:
3105         * WebCoreSupport/WebPlatformStrategies.mm:
3106         (WebPlatformStrategies::getTypesByFidelityForItemAtIndex):
3107
3108 2017-04-24  Alex Christensen  <achristensen@webkit.org>
3109
3110         Reduce copies and allocations in SharedBuffer::append
3111         https://bugs.webkit.org/show_bug.cgi?id=170956
3112
3113         Reviewed by Andreas Kling.
3114
3115         * WebView/WebArchive.mm:
3116         (-[WebArchive initWithData:]):
3117         * WebView/WebFrame.mm:
3118         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3119         * WebView/WebResource.mm:
3120         (-[WebResource initWithCoder:]):
3121         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
3122
3123 2017-04-24  Dan Bernstein  <mitz@apple.com>
3124
3125         [Cocoa] Some ivars are needlessly @protected
3126         https://bugs.webkit.org/show_bug.cgi?id=171208
3127
3128         Reviewed by Anders Carlsson
3129
3130         Made ivars @private where possible.
3131
3132         * Misc/WebUserContentURLPattern.h:
3133         * Plugins/WebPluginDatabase.h:
3134         * Storage/WebDatabaseQuotaManager.h:
3135         * WebCoreSupport/WebSecurityOriginPrivate.h:
3136         * WebInspector/WebInspector.h:
3137         * WebView/WebDeviceOrientation.h:
3138         * WebView/WebDeviceOrientationProviderMock.h:
3139         * WebView/WebGeolocationPosition.h:
3140         * WebView/WebHTMLRepresentation.h:
3141         * WebView/WebNotification.h:
3142
3143 2017-04-21  Wenson Hsieh  <wenson_hsieh@apple.com>
3144
3145         Support writing link titles to the pasteboard when beginning data interaction on a link
3146         https://bugs.webkit.org/show_bug.cgi?id=171154
3147         <rdar://problem/31356937>
3148
3149         Reviewed by Andy Estes.
3150
3151         Adjust for some changes in WebCore to introduce a separate codepath for writing PasteboardURLs. See WebCore
3152         and WebKit2 ChangeLogs for more details.
3153
3154         * WebCoreSupport/WebPlatformStrategies.h:
3155         * WebCoreSupport/WebPlatformStrategies.mm:
3156         (WebPlatformStrategies::writeToPasteboard):
3157
3158 2017-04-21  Michael Catanzaro  <mcatanzaro@igalia.com>
3159
3160         Unreviewed, rolling out r215608.
3161
3162         Hundreds of test failures on GTK bot
3163
3164         Reverted changeset:
3165
3166         "Reduce copies and allocations in SharedBuffer::append"
3167         https://bugs.webkit.org/show_bug.cgi?id=170956
3168         http://trac.webkit.org/changeset/215608
3169
3170 2017-04-21  Alex Christensen  <achristensen@webkit.org>
3171
3172         Reduce copies and allocations in SharedBuffer::append
3173         https://bugs.webkit.org/show_bug.cgi?id=170956
3174
3175         Reviewed by Andreas Kling.
3176
3177         * WebView/WebArchive.mm:
3178         (-[WebArchive initWithData:]):
3179         * WebView/WebFrame.mm:
3180         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
3181         * WebView/WebResource.mm:
3182         (-[WebResource initWithCoder:]):
3183         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
3184
3185 2017-04-20  Dewei Zhu  <dewei_zhu@apple.com>
3186
3187         Build fix to start using C++14.
3188         https://bugs.webkit.org/show_bug.cgi?id=171038
3189
3190         Reviewed by Alex Christensen.
3191
3192         Use 'c++14' instead of 'c++11' in order to use 'auto' in lambda.
3193
3194         * Configurations/WebKitLegacy.xcconfig:
3195
3196 2017-04-19  Youenn Fablet  <youenn@apple.com>
3197
3198         [Mac] Allow customizing H264 encoder
3199         https://bugs.webkit.org/show_bug.cgi?id=170829
3200
3201         Reviewed by Alex Christensen.
3202
3203         * Configurations/FeatureDefines.xcconfig:
3204
3205 2017-04-19  Anders Carlsson  <andersca@apple.com>
3206
3207         Stop using deprecated APIs, part 3
3208         https://bugs.webkit.org/show_bug.cgi?id=171003
3209         rdar://problem/31589635
3210
3211         Reviewed by Tim Horton.
3212
3213         * WebCoreSupport/WebPaymentCoordinatorClient.h:
3214         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
3215         (WebPaymentCoordinatorClient::cancelPaymentSession):
3216         Update for WebCore changes.
3217
3218 2017-04-18  Wenson Hsieh  <wenson_hsieh@apple.com>
3219
3220         [WK2] Support DataTransfer::files() when performing a DHTML data interaction
3221         https://bugs.webkit.org/show_bug.cgi?id=170880
3222         <rdar://problem/31314689>
3223
3224         Reviewed by Tim Horton.
3225
3226         Adjust for a change in PasteboardStrategy. See WebCore ChangeLog for more details.
3227
3228         * WebCoreSupport/WebPlatformStrategies.h:
3229         * WebCoreSupport/WebPlatformStrategies.mm:
3230         (WebPlatformStrategies::getFilenamesForDataInteraction):
3231
3232 2017-04-17  Youenn Fablet  <youenn@apple.com>
3233
3234         Disable outdated WritableStream API
3235         https://bugs.webkit.org/show_bug.cgi?id=170749
3236         <rdar://problem/31446233>
3237
3238         Reviewed by Alex Christensen.
3239
3240         Replacing READABLE_STREAM_API, READABLE_BYTE_STREAM_API and WRITABLE_STREAM_API compilation flag by:
3241         - A STREAMS_API compilation flag.
3242         - A ReadableByteStreamAPI and WritableStreamAPI runtime flags, turned off except for RWT and DRT.
3243
3244         * Configurations/FeatureDefines.xcconfig:
3245         * WebView/WebPreferenceKeysPrivate.h:
3246         * WebView/WebPreferences.mm:
3247         (+[WebPreferences initialize]):
3248         (-[WebPreferences readableByteStreamAPIEnabled]):
3249         (-[WebPreferences setReadableByteStreamAPIEnabled:]):
3250         (-[WebPreferences writableStreamAPIEnabled]):
3251         (-[WebPreferences setWritableStreamAPIEnabled:]):
3252         * WebView/WebPreferencesPrivate.h:
3253         * WebView/WebView.mm:
3254         (-[WebView _preferencesChanged:]):
3255
3256 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
3257
3258         [WK2] Support data interaction of files into file inputs
3259         https://bugs.webkit.org/show_bug.cgi?id=170803
3260         <rdar://problem/31286130>
3261
3262         Reviewed by Tim Horton.
3263
3264         Add boilerplate plumbing for fetching the number of files in the pasteboard.
3265
3266         * WebCoreSupport/WebPlatformStrategies.h:
3267         * WebCoreSupport/WebPlatformStrategies.mm:
3268         (WebPlatformStrategies::getNumberOfFiles):
3269
3270 2017-04-14  Mark Lam  <mark.lam@apple.com>
3271
3272         Update architectures in xcconfig files.
3273         https://bugs.webkit.org/show_bug.cgi?id=170867
3274         <rdar://problem/31628104>
3275
3276         Reviewed by Joseph Pecoraro.
3277
3278         * Configurations/FeatureDefines.xcconfig:
3279
3280 2017-04-14  Wenson Hsieh  <wenson_hsieh@apple.com>
3281
3282         [WK2] Support Icon creation from file URLs on iOS
3283         https://bugs.webkit.org/show_bug.cgi?id=170809
3284         <rdar://problem/31286130>
3285
3286         Reviewed by Tim Horton.
3287
3288         Adjust for changes in the ChromeClient in WebCore.
3289
3290         * WebCoreSupport/WebChromeClient.h:
3291         * WebCoreSupport/WebChromeClient.mm:
3292         (WebChromeClient::loadIconForFiles):
3293         (WebChromeClient::createIconForFiles):
3294
3295 2017-04-12  Dan Bernstein  <mitz@apple.com>
3296
3297         [Mac] Future-proof .xcconfig files
3298         https://bugs.webkit.org/show_bug.cgi?id=170802
3299
3300         Reviewed by Tim Horton.
3301
3302         * Configurations/Base.xcconfig:
3303         * Configurations/DebugRelease.xcconfig:
3304         * Configurations/FeatureDefines.xcconfig:
3305         * Configurations/Version.xcconfig:
3306
3307 2017-04-12  Beth Dakin  <bdakin@apple.com>
3308
3309         Build fix.
3310
3311         * WebView/WebViewData.h:
3312
3313 2017-04-12  Brian Weinstein  <bweinstein@apple.com>
3314
3315         Should always override -[WebStorageManager init].
3316         https://bugs.webkit.org/show_bug.cgi?id=170787
3317         -and corresponding-
3318         rdar://problem/31371835
3319
3320         Reviewed by Anders Carlsson.
3321
3322         * Storage/WebStorageManager.mm:
3323         (-[WebStorageManager init]):
3324
3325 2017-04-12  Beth Dakin  <bdakin@apple.com>
3326
3327         Speculative build fix. 
3328
3329         * WebView/WebViewData.h:
3330
3331 2017-04-12  Beth Dakin  <bdakin@apple.com>
3332
3333         Adopt AVKit name change from AVFunctionBar* to AVTouchBar*
3334         https://bugs.webkit.org/show_bug.cgi?id=170693
3335         -and corresponding-
3336         rdar://problem/31230018
3337
3338         Reviewed by Sam Weinig.
3339
3340         Since the new names only apply to some versions of macOS, this patch uses typedefs 
3341         for the older OS’s. SO:
3342
3343         AVFunctionBarScrubber is now AVTouchBarScrubber
3344
3345         AVFunctionBarPlaybackControlsProvider is now AVTouchBarPlaybackControlsProvider
3346
3347         AVFunctionBarMediaSelectionOption is now AVTouchBarMediaSelectionOption
3348
3349         And the protocol AVFunctionBarPlaybackControlsControlling is now 
3350         AVTouchBarPlaybackControlsControlling
3351
3352         Soft links and allocations cannot use the typedefs.
3353         * WebView/WebView.mm:
3354         (-[WebView updateMediaTouchBar]):
3355         * WebView/WebViewData.h:
3356
3357 2017-04-11  Dean Jackson  <dino@apple.com>
3358
3359         Disable outdated WritableStream API
3360         https://bugs.webkit.org/show_bug.cgi?id=170749
3361         <rdar://problem/31446233>
3362
3363         Reviewed by Tim Horton.
3364
3365         The API we implement is no longer accurate. Disable it until we
3366         are compatible with the new specification
3367
3368         * Configurations/FeatureDefines.xcconfig:
3369
3370 2017-04-11  Dan Bernstein  <mitz@apple.com>
3371
3372         [iOS] Simple HTML documents should allow non-markup JavaScript
3373         https://bugs.webkit.org/show_bug.cgi?id=170734
3374
3375         Reviewed by Sam Weinig.
3376
3377         * WebView/WebView.mm:
3378         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Enabled scripting
3379           but disabled scripting markup.
3380
3381 2017-04-10  Alex Christensen  <achristensen@webkit.org>
3382
3383         Revert r215217
3384         https://bugs.webkit.org/show_bug.cgi?id=170703
3385
3386         * Configurations/FeatureDefines.xcconfig:
3387
3388 2017-04-10  Alex Christensen  <achristensen@webkit.org>
3389
3390         Continue enabling WebRTC
3391         https://bugs.webkit.org/show_bug.cgi?id=170703
3392
3393         Reviewed by Youenn Fablet.
3394
3395         * Configurations/FeatureDefines.xcconfig:
3396
3397 2017-04-10  Anders Carlsson  <andersca@apple.com>
3398
3399         Remove call to WKShowKeyAndMain
3400         https://bugs.webkit.org/show_bug.cgi?id=170691
3401         rdar://problem/31050032
3402
3403         Reviewed by Beth Dakin.
3404
3405         * Carbon/CarbonWindowAdapter.mm:
3406         (-[CarbonWindowAdapter makeKeyWindow]):
3407
3408 2017-04-10  Jeremy Jones  <jeremyj@apple.com>
3409
3410         Add CoreAudioCaptureSource.
3411         https://bugs.webkit.org/show_bug.cgi?id=170112
3412         rdar://problem/30293338
3413
3414         Reviewed by Eric Carlson.
3415
3416         Add UseAVFoundationAudioCapture preference to switch back from the new default of CoreAudio.
3417
3418         * WebView/WebPreferenceKeysPrivate.h:
3419         * WebView/WebPreferences.mm:
3420         (+[WebPreferences initialize]):
3421         (-[WebPreferences useAVFoundationAudioCapture]):
3422         (-[WebPreferences setUseAVFoundationAudioCapture:]):
3423         * WebView/WebPreferencesPrivate.h:
3424         * WebView/WebView.mm:
3425         (-[WebView _preferencesChanged:]):
3426
3427 2017-04-10  Chris Dumez  <cdumez@apple.com>
3428
3429         Drop Timer::startOneShot() overload taking a double
3430         https://bugs.webkit.org/show_bug.cgi?id=170659
3431
3432         Reviewed by Yusuke Suzuki.
3433
3434         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
3435
3436         * Plugins/WebNetscapePluginView.mm:
3437         (PluginTimer::start):
3438         * Storage/WebStorageManager.mm:
3439         (+[WebStorageManager setStorageDatabaseIdleInterval:]):
3440
3441 2017-04-09  Chris Dumez  <cdumez@apple.com>
3442
3443         Drop Timer::startRepeating() overload taking a double
3444         https://bugs.webkit.org/show_bug.cgi?id=170656
3445
3446         Reviewed by Yusuke Suzuki.
3447
3448         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
3449
3450         * Plugins/WebNetscapePluginView.mm:
3451         (PluginTimer::start):
3452
3453 2017-04-09  Chris Dumez  <cdumez@apple.com>
3454
3455         Start dropping Timer API dealing with double
3456         https://bugs.webkit.org/show_bug.cgi?id=170649
3457
3458         Reviewed by Yusuke Suzuki.
3459
3460         Start dropping Timer API dealing with double as people should use Seconds now.
3461
3462         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3463         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
3464         (WebKit::NetscapePluginInstanceProxy::loadRequest):
3465         * Plugins/WebNetscapePluginStream.mm:
3466         (WebNetscapePluginStream::deliverData):
3467
3468 2017-04-08  Chris Dumez  <cdumez@apple.com>
3469
3470         Drop std::chrono support from Timer class
3471         https://bugs.webkit.org/show_bug.cgi?id=170645
3472
3473         Reviewed by Sam Weinig.
3474
3475         Drop std::chrono support from Timer class now that we prefer using Seconds type.
3476
3477         * WebView/WebView.mm:
3478         (+[WebView _setCacheModel:]):
3479
3480 2017-04-08  Youenn Fablet  <youenn@apple.com>
3481
3482         WebRTC tests gardening
3483         https://bugs.webkit.org/show_bug.cgi?id=170508
3484
3485         Reviewed by Eric Carlson.
3486
3487         * Configurations/FeatureDefines.xcconfig:
3488
3489 2017-04-06  Ryan Haddad  <ryanhaddad@apple.com>
3490
3491         Unreviewed, rolling out r215046.
3492
3493         This change broke internal builds.
3494
3495         Reverted changeset:
3496
3497         "WebRTC tests gardening"
3498         https://bugs.webkit.org/show_bug.cgi?id=170508
3499         http://trac.webkit.org/changeset/215046
3500
3501 2017-04-06  Tim Horton  <timothy_horton@apple.com>
3502
3503         Obj-C bindings build fails with CSS_DEVICE_ADAPTATION turned on
3504         https://bugs.webkit.org/show_bug.cgi?id=170566
3505
3506         Reviewed by Simon Fraser.
3507
3508         * DOM/DOMCSS.mm:
3509         (kitClass):
3510         Use the WebCore-side enum for this, since that's actually what we're switching over.
3511         This allows us to handle values here without adding them to the API header.
3512         All of the other kitClass() functions work the same way.
3513         Also, unindent for style purposes.
3514
3515 2017-04-06  Youenn Fablet  <youenn@apple.com>
3516
3517         WebRTC tests gardening
3518         https://bugs.webkit.org/show_bug.cgi?id=170508
3519
3520         Reviewed by Eric Carlson.
3521
3522         * Configurations/FeatureDefines.xcconfig:
3523
3524 2017-04-04  Megan Gardner  <megan_gardner@apple.com>
3525
3526         Fix leaks in WebUITextIndicatorData
3527         https://bugs.webkit.org/show_bug.cgi?id=170480
3528
3529         Reviewed by Wenson Hsieh.
3530
3531         Removes extraneous retains.
3532
3533         * WebView/WebView.mm:
3534         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
3535
3536 2017-04-04  Tim Horton  <timothy_horton@apple.com>
3537
3538         [Mac] -[WKWebView findMatchesForString:relativeToMatch:findOptions:maxResults:resultCollector:] invokes the resultCollector with didWrap = NO even when it wraps
3539         https://bugs.webkit.org/show_bug.cgi?id=165801
3540         <rdar://problem/29649535>
3541
3542         Reviewed by Wenson Hsieh.
3543
3544         * WebView/WebView.mm:
3545         (incrementFrame):
3546         Adjust to the new CanWrap enum.
3547
3548 2017-03-27  Joseph Pecoraro  <pecoraro@apple.com>
3549
3550         Web Inspector: Saving files should not suggest the top level directory
3551         https://bugs.webkit.org/show_bug.cgi?id=170085
3552         <rdar://problem/30197794>
3553
3554         Reviewed by Matt Baker.
3555
3556         * WebCoreSupport/WebInspectorClient.mm:
3557         (WebInspectorFrontendClient::save):
3558         Don't set panel.directoryURL unless we have a good suggestion.
3559
3560 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
3561
3562         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
3563         https://bugs.webkit.org/show_bug.cgi?id=169168
3564         <rdar://problem/30688374>
3565
3566         Reviewed by Tim Horton.
3567
3568         Refactors WebDragClient::actionMaskForDrag to take platform data only, rather than the entire DragData. See the
3569         WebCore ChangeLog entry for more details. Also renames WebDefaultUIDelegate.m to WebDefaultUIDelegate.mm, since
3570         we need to import a C++ header for linkedOnOrAfter().
3571
3572         The default delegate implementation of webView:dragDestinationActionMaskForDraggingInfo: now checks if the current
3573         application is linking against 10.12 or earlier, and if so, will allow any drag destination action instead of
3574         the new default value of everything but DragDestinationActionLoad.
3575
3576         * DefaultDelegates/WebDefaultUIDelegate.mm: Renamed from Source/WebKit/mac/DefaultDelegates/WebDefaultUIDelegate.m.
3577         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForDraggingInfo:]):
3578         * Misc/WebKitVersionChecks.h:
3579         * WebCoreSupport/WebDragClient.h:
3580         * WebCoreSupport/WebDragClient.mm:
3581         (WebDragClient::actionMaskForDrag): Deleted.
3582         * WebView/WebView.mm:
3583         (-[WebView draggingEntered:]):
3584         (-[WebView draggingUpdated:]):
3585
3586 2017-03-21  Wenson Hsieh  <wenson_hsieh@apple.com>
3587
3588         Add support for showing the platform data interaction caret
3589         https://bugs.webkit.org/show_bug.cgi?id=169898
3590         <rdar://problem/31146295>
3591
3592         Reviewed by Beth Dakin.
3593
3594         Plumb the dataInteractionCaretRect through WebView SPI to WebKit1 clients.
3595
3596         * WebView/WebView.mm:
3597         (-[WebView _dataInteractionCaretRect]):
3598         * WebView/WebViewPrivate.h:
3599
3600 2017-03-22  Dan Bernstein  <mitz@apple.com>
3601
3602         [iOS] downloadableBinaryFontsEnabled is set to false in -initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:
3603         https://bugs.webkit.org/show_bug.cgi?id=169967
3604         <rdar://problem/30406898>
3605
3606         Reviewed by Anders Carlsson.
3607
3608         * WebView/WebView.mm:
3609         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Removed call to
3610           Settings::downloadableBinaryFontsEnabled. The default is true.
3611
3612 2017-03-22  Andy Estes  <aestes@apple.com>
3613
3614         [QuickLook] Rename QuickLookHandle to PreviewLoader
3615         https://bugs.webkit.org/show_bug.cgi?id=169961
3616
3617         Reviewed by Andreas Kling.
3618
3619         * WebCoreSupport/WebFrameLoaderClient.h:
3620         * WebCoreSupport/WebFrameLoaderClient.mm:
3621         (WebFrameLoaderClient::createPreviewLoaderClient):
3622         (WebFrameLoaderClient::createQuickLookHandleClient): Deleted.
3623
3624 2017-03-21  Anders Carlsson  <andersca@apple.com>
3625
3626         Remove bogus availability annotations from DOM SPI headers.
3627         rdar://problem/31015675
3628
3629         Rubber-stamped by Dan Bernstein.
3630
3631         * DOM/DOMHTMLMediaElement.h:
3632         * DOM/DOMHTMLVideoElement.h:
3633         * DOM/DOMMediaError.h:
3634         * DOM/DOMTextEvent.h:
3635         * DOM/DOMTimeRanges.h:
3636         * DOM/DOMTokenList.h:
3637
3638 2017-03-19  Wenson Hsieh  <wenson_hsieh@apple.com>
3639
3640         Teach TextIndicator to estimate the background color of the given Range
3641         https://bugs.webkit.org/show_bug.cgi?id=169869
3642         <rdar://problem/31127272>
3643
3644         Reviewed by Anders Carlsson and Simon Fraser.
3645
3646         Plumb the estimated background color for WebKit1 clients through a new property in WebUITextIndicatorData.
3647
3648         * WebView/WebView.mm:
3649         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
3650         (-[WebUITextIndicatorData dealloc]):
3651         * WebView/WebViewPrivate.h:
3652
3653 2017-03-20  Dan Bernstein  <mitz@apple.com>
3654
3655         [Xcode] Incremental builds of WebKitLegacy are slow because of the Postprocess Headers phase
3656         https://bugs.webkit.org/show_bug.cgi?id=169861
3657
3658         Reviewed by Sam Weinig.
3659
3660         * MigrateHeaders.make: Touch the PrivateHeaders directory when migrating a header into it.
3661         * postprocess-headers.sh: Preserve the timestamp on the headers directories. Write out the
3662           timestamp file used by the Xcode project to determine whether to run the script.
3663
3664 2017-03-19  Alexey Proskuryakov  <ap@apple.com>
3665
3666         WebHTMLView is useless as WebResourceHandler
3667         https://bugs.webkit.org/show_bug.cgi?id=169857
3668
3669         Reviewed by Dan Bernstein.
3670
3671         * WebView/WebHTMLView.mm:
3672         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
3673         WebHTMLView doesnt implement any of WebResourceHandler methods.
3674
3675 2017-03-17  Michael Saboff  <msaboff@apple.com>
3676
3677         Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK
3678         https://bugs.webkit.org/show_bug.cgi?id=169817
3679
3680         Reviewed by Filip Pizlo.
3681
3682         * Configurations/FeatureDefines.xcconfig:
3683
3684 2017-03-17  Antti Koivisto  <antti@apple.com>
3685
3686         Add a reload policy where only expired subresources are revalidated
3687         https://bugs.webkit.org/show_bug.cgi?id=169756
3688
3689         Reviewed by Andreas Kling.
3690
3691         * WebView/WebFrame.mm:
3692         (toWebFrameLoadType):
3693         (-[WebFrame reload]):
3694         (-[WebFrame reloadFromOrigin]):
3695
3696 2017-03-17  Wenson Hsieh  <wenson_hsieh@apple.com>
3697
3698         [WK1] Support animated transitions when performing a data interaction operation
3699         https://bugs.webkit.org/show_bug.cgi?id=169805
3700         <rdar://problem/31045767>
3701
3702         Reviewed by Beth Dakin and Megan Gardner.
3703
3704         Adds WebKit1 support for animated transitions when performing a data interaction operation. See per-method changes
3705         for more details.
3706
3707         * DOM/DOMElement.h:
3708         * DOM/DOMElement.mm:
3709         (-[DOMElement boundsInRootViewSpace]):
3710
3711         Introduce -[DOMElement boundsInRootViewSpace], which returns the bounds of the element in root view coordinates.
3712
3713         * WebCoreSupport/WebDragClient.h:
3714         (): Deleted.
3715         * WebCoreSupport/WebDragClient.mm:
3716         (WebDragClient::didConcludeEditDrag):
3717
3718         Add boilerplate plumbing.
3719
3720         * WebView/WebView.mm:
3721         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
3722
3723         Add contentImageWithoutSelection and contentImageWithoutSelectionRectInRootViewCoordinates to WebUITextIndicatorData.
3724
3725         (floatRectsForCGRectArray):
3726         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
3727
3728         Introduces a SPI helper method in WebView that clients can use to generate an image of a text platter given an
3729         image of some text, as well as clipping rects to apply to the image.
3730
3731         (-[WebView _dataOperationTextIndicator]):
3732
3733         Add SPI to fetch the text indicator used to drive animations for the current data operation.
3734
3735         (-[WebView _didConcludeEditDataInteraction]):
3736         * WebView/WebViewData.h:
3737         * WebView/WebViewInternal.h:
3738         * WebView/WebViewPrivate.h:
3739
3740 2017-03-16  Simon Fraser  <simon.fraser@apple.com>
3741
3742         Improve the system tracing points
3743         https://bugs.webkit.org/show_bug.cgi?id=169790
3744
3745         Reviewed by Zalan Bujtas.
3746
3747         Use a more cohesive set of system trace points that give a good overview of what
3748         WebKit is doing. Added points for resource loading, render tree building, sync messages
3749         to the web process, async image decode, WASM and fetching cookies.
3750
3751         * WebView/WebHTMLView.mm:
3752         (-[WebHTMLView drawRect:]):
3753
3754 2017-03-16  Youenn Fablet  <youenn@apple.com>
3755
3756         Wrap legacy WebRTC API in runtime flag
3757         https://bugs.webkit.org/show_bug.cgi?id=169646
3758
3759         Reviewed by Alex Christensen.
3760
3761         * WebView/WebPreferenceKeysPrivate.h:
3762         * WebView/WebPreferences.mm:
3763         (+[WebPreferences initialize]):
3764         (-[WebPreferences webRTCLegacyAPIEnabled]):
3765         (-[WebPreferences setWebRTCLegacyAPIEnabled:]):
3766         * WebView/WebPreferencesPrivate.h:
3767         * WebView/WebView.mm:
3768         (-[WebView _preferencesChanged:]):
3769
3770 2017-03-14  Megan Gardner  <megan_gardner@apple.com>
3771
3772         Correctly export WebItemProviderPasteboard
3773         https://bugs.webkit.org/show_bug.cgi?id=169578
3774
3775         Reviewed by Tim Horton.
3776
3777         * MigrateHeaders.make:
3778
3779 2017-03-14  Wenson Hsieh  <wenson_hsieh@apple.com>
3780
3781         [WK2] Data interaction tests occasionally hit assertions in debug builds
3782         https://bugs.webkit.org/show_bug.cgi?id=169002
3783         <rdar://problem/30994806>
3784
3785         Reviewed by Tim Horton.
3786
3787         Renames setIgnoreCompositionSelectionChange to setIgnoreSelectionChanges. See WebCore ChangeLog for more details.
3788
3789         * WebView/WebHTMLView.mm:
3790         (-[WebHTMLView _updateSelectionForInputManager]):
3791         * WebView/WebView.mm:
3792         (-[WebView updateTextTouchBar]):
3793
3794 2017-03-13  Anders Carlsson  <andersca@apple.com>
3795
3796         Fix build warnings.
3797
3798         * WebCoreSupport/WebInspectorClient.mm:
3799         (WebInspectorFrontendClient::save):
3800         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
3801
3802 2017-03-11  Brady Eidson  <beidson@apple.com>
3803
3804         Cleanup "addCookie" and its sole user.
3805         https://bugs.webkit.org/show_bug.cgi?id=169486
3806
3807         Reviewed by Brian Burg.
3808
3809         * WebCoreSupport/WebPlatformStrategies.h:
3810         * WebCoreSupport/WebPlatformStrategies.mm:
3811         (WebPlatformStrategies::addCookie): Deleted.
3812
3813 2017-03-10  Alex Christensen  <achristensen@webkit.org>
3814
3815         Fix watch and tv builds after r213294
3816         https://bugs.webkit.org/show_bug.cgi?id=169508
3817
3818         Reviewed by Dan Bernstein.
3819
3820         * Configurations/FeatureDefines.xcconfig:
3821
3822 2017-03-10  Alex Christensen  <achristensen@webkit.org>
3823
3824         Fix CMake build.
3825
3826         * WebView/WebNotification.h:
3827         Don't assume we have already included something that includes NSObject.h.
3828
3829 2017-03-09  Daniel Bates  <dabates@apple.com>
3830
3831         Guard Credential Management implementation behind a runtime enabled feature flag
3832         https://bugs.webkit.org/show_bug.cgi?id=169364
3833         <rdar://problem/30957425>
3834
3835         Reviewed by Brent Fulgham.
3836
3837         Add WebKit preference for Credential Management (disabled by default).
3838
3839         * WebView/WebPreferenceKeysPrivate.h:
3840         * WebView/WebPreferences.mm:
3841         (+[WebPreferences initialize]):
3842         (-[WebPreferences credentialManagementEnabled]): Added.
3843         (-[WebPreferences setCredentialManagementEnabled:]): Added.
3844         * WebView/WebPreferencesPrivate.h:
3845         * WebView/WebView.mm:
3846         (-[WebView _preferencesChanged:]):
3847
3848 2017-03-09  Anders Carlsson  <andersca@apple.com>
3849
3850         Add delegate support to WebCore
3851         https://bugs.webkit.org/show_bug.cgi?id=169427
3852         Part of rdar://problem/28880714.
3853
3854         Reviewed by Geoffrey Garen.
3855
3856         * Configurations/FeatureDefines.xcconfig:
3857         Add feature define.
3858
3859 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
3860
3861         Fix DataInteraction guards
3862         https://bugs.webkit.org/show_bug.cgi?id=169404
3863
3864         Reviewed by Wenson Hsieh.
3865
3866         * WebCoreSupport/WebDragClient.mm:
3867
3868 2017-03-08  Wenson Hsieh  <wenson_hsieh@apple.com>
3869
3870         Add plumbing for WebCore to notify WebKit2 when an edit drag has concluded
3871         https://bugs.webkit.org/show_bug.cgi?id=169392
3872         <rdar://problem/30882974>
3873
3874         Reviewed by Tim Horton.
3875
3876         Add a stub implementation of WebDragClient::didConcludeEditDrag.
3877
3878         * WebCoreSupport/WebDragClient.h:
3879
3880 2017-03-08  Anders Carlsson  <andersca@apple.com>
3881
3882         Simplify the PaymentCoordinator interface
3883         https://bugs.webkit.org/show_bug.cgi?id=169382
3884         Part of rdar://problem/28880714.
3885
3886         Reviewed by Tim Horton.
3887
3888         Update for PaymentCoordinatorClient changes.
3889
3890         * WebCoreSupport/WebPaymentCoordinatorClient.h:
3891         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
3892         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
3893         (WebPaymentCoordinatorClient::completeShippingContactSelection):
3894         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
3895         (WebPaymentCoordinatorClient::completePaymentSession):
3896
3897 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
3898
3899         Fix for dependency fix
3900         https://bugs.webkit.org/show_bug.cgi?id=169369
3901
3902         Reviewed by Beth Dakin.
3903
3904         * WebView/WebViewPrivate.h:
3905
3906 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
3907
3908         Fix Project Dependency
3909         https://bugs.webkit.org/show_bug.cgi?id=169340
3910
3911         Unreviewed Dependency Fix.
3912
3913         * WebView/WebViewPrivate.h:
3914
3915 2017-03-07  Alexey Proskuryakov  <ap@apple.com>
3916
3917         WebKitLegacy should re-export symbols from WebCore on watchos and tvos
3918         https://bugs.webkit.org/show_bug.cgi?id=169341
3919         <rdar://problem/30913788>
3920
3921         Reviewed by Dan Bernstein.
3922
3923         * MigrateHeaders.make:
3924
3925 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
3926
3927         Have fixedPositionCreatesStackingContext be on by default everywhere
3928         https://bugs.webkit.org/show_bug.cgi?id=169334
3929
3930         Reviewed by Zalan Bujtas.
3931
3932         It makes no sense to have web-exposed CSS functionality be different based on setting,
3933         and other browser are now aligned with having position:fixed create stacking context.
3934
3935         So remove the fixedPositionCreatesStackingContext setting and have StyleResolver::adjustRenderStyle()
3936         always force stacking context for position:fixed.
3937
3938         * WebView/WebView.mm:
3939         (-[WebView _preferencesChanged:]):
3940
3941 2017-03-06  Simon Fraser  <simon.fraser@apple.com>
3942
3943         Initialize the subpixelAntialiasedLayerTextEnabled Setting in WebKit1
3944         https://bugs.webkit.org/show_bug.cgi?id=169230
3945
3946         Reviewed by Tim Horton.
3947
3948         * WebView/WebView.mm:
3949         (-[WebView _preferencesChanged:]):
3950
3951 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
3952
3953         Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
3954         https://bugs.webkit.org/show_bug.cgi?id=169329
3955
3956         Reviewed by Tim Horton.
3957
3958         If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
3959
3960         * WebView/WebPreferences.mm:
3961         (+[WebPreferences initialize]):
3962
3963 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
3964
3965         Additional DataInteraction Support
3966         https://bugs.webkit.org/show_bug.cgi?id=169316
3967         <rdar://problem/30884234>
3968
3969         Reviewed by Wenson Hsieh.
3970
3971         Add stub implementations to WebView for methods that handle data interaction
3972
3973         * WebView/WebView.mm:
3974         (-[WebView _enteredDataInteraction:client:global:operation:]):
3975         (-[WebView _updatedDataInteraction:client:global:operation:]):
3976         (-[WebView _exitedDataInteraction:client:global:operation:]):
3977         (-[WebView _performDataInteraction:client:global:operation:]):
3978         (-[WebView _endedDataInteraction:global:]):
3979         * WebView/WebViewPrivate.h:
3980
3981 2017-03-07  Dean Jackson  <dino@apple.com>
3982
3983         Some platforms won't be able to create a GPUDevice
3984         https://bugs.webkit.org/show_bug.cgi?id=169314
3985         <rdar://problems/30907521>
3986
3987         Reviewed by Jon Lee.
3988
3989         Disable WEB_GPU on the iOS Simulator.
3990
3991         * Configurations/FeatureDefines.xcconfig:
3992
3993 2017-03-07  Maureen Daum  <mdaum@apple.com>
3994
3995         Correctly check for an empty database file.
3996         <rdar://problem/30542242> Removing Website Data not working (WebSQL directories being left behind)
3997         https://bugs.webkit.org/show_bug.cgi?id=169256
3998
3999         Reviewed by Brady Eidson.
4000
4001         Check if the folder for an origin's WebSQL databases is empty after trying to delete
4002         all of its files. Currently we check if the deletedDatabaseFileCount matches the number
4003         of files that were in the folder. However, when we delete the actual database file in
4004         DatabaseTracker::deleteDatabaseFileIfEmpty(), the shm and wal files get deleted along with
4005         the database file, but deletedDatabaseFileCount only gets incremented once.
4006
4007         * Storage/WebDatabaseManager.mm:
4008         (+[WebDatabaseManager removeEmptyDatabaseFiles]):
4009         Delete the folder if it is empty.
4010
4011 2017-03-06  Michael Saboff  <msaboff@apple.com>
4012
4013         Unreviewed build fix to add
4014         -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
4015         for objective C++ files.
4016
4017         * Configurations/WebKitLegacy.xcconfig:
4018
4019 2017-03-06  Michael Saboff  <msaboff@apple.com>
4020
4021         Take advantage of fast permissions switching of JIT memory for devices that support it
4022         https://bugs.webkit.org/show_bug.cgi?id=169155
4023
4024         Reviewed by Saam Barati.
4025
4026         Updated the Xcode config files to match what is in the JavaScriptCore ones.
4027
4028         * Configurations/FeatureDefines.xcconfig:
4029
4030 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
4031
4032         Expand font-weight and font-stretch to take any number
4033         https://bugs.webkit.org/show_bug.cgi?id=168889
4034
4035         Reviewed by Simon Fraser.
4036
4037         Migrate off old enum types.
4038
4039         * WebCoreSupport/PopupMenuMac.mm:
4040         (PopupMenuMac::populate):
4041         * WebView/WebHTMLView.mm:
4042         (fontNameForDescription):
4043         * WebView/WebView.mm:
4044         (-[WebView updateTextTouchBar]):
4045
4046 2017-03-03  Dean Jackson  <dino@apple.com>
4047
4048         Add WebGPU compile flag and experimental feature flag
4049         https://bugs.webkit.org/show_bug.cgi?id=169161
4050         <rdar://problem/30846689>
4051
4052         Reviewed by Tim Horton.
4053
4054         Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature,
4055         and an InternalSetting.
4056
4057         * Configurations/FeatureDefines.xcconfig:
4058         * WebView/WebPreferenceKeysPrivate.h:
4059         * WebView/WebPreferences.mm:
4060         (+[WebPreferences initialize]):
4061         (-[WebPreferences webGPUEnabled]):
4062         (-[WebPreferences setWebGPUEnabled:]):
4063         * WebView/WebPreferencesPrivate.h:
4064         * WebView/WebView.mm:
4065         (-[WebView _preferencesChanged:]):
4066
4067 2017-03-03  Alexey Proskuryakov  <ap@apple.com>
4068
4069         Build fix
4070         rdar://problem/30825660
4071
4072         Suggested by Dan Bernstein.
4073
4074         * Configurations/WebKitLegacy.xcconfig:
4075
4076 2017-03-02  Sam Weinig  <sam@webkit.org>
4077
4078         Rename htmlediting.h/cpp to Editing.h/cpp
4079         https://bugs.webkit.org/show_bug.cgi?id=169103
4080
4081         Reviewed by Alex Christensen.
4082
4083         * DOM/DOMUIKitExtensions.mm:
4084         * WebView/WebFrame.mm:
4085         * WebView/WebView.mm:
4086
4087 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
4088
4089         Fix 32-bit
4090         https://bugs.webkit.org/show_bug.cgi?id=169114
4091
4092         Reviewed by Alex Christensen.
4093
4094         * WebView/WebView.mm:
4095
4096 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
4097
4098         More guard fixing
4099         https://bugs.webkit.org/show_bug.cgi?id=169112
4100
4101         Reviewed by Alex Christensen.
4102
4103         Fixed an internal build.
4104
4105         * WebView/WebView.mm:
4106         * WebView/WebViewPrivate.h:
4107
4108 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
4109
4110         Data Interaction build fixes
4111         https://bugs.webkit.org/show_bug.cgi?id=169096
4112
4113         Reviewed by Tim Horton.
4114
4115         Guards weren't all correct, also missed a selector name change.
4116
4117         * WebView/WebView.mm:
4118         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
4119         * WebView/WebViewData.h:
4120         * WebView/WebViewData.mm:
4121         (-[WebViewPrivate dealloc]):