Remove excessive headers from JavaScriptCore
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2017-06-25  Konstantin Tokarev  <annulen@yandex.ru>
2
3         Remove excessive headers from JavaScriptCore
4         https://bugs.webkit.org/show_bug.cgi?id=173812
5
6         Reviewed by Darin Adler.
7
8         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
9         * WebView/WebView.mm:
10
11 2017-06-23  Tim Horton  <timothy_horton@apple.com>
12
13         Remove an unused typedef from WebFrameLoaderClient
14         https://bugs.webkit.org/show_bug.cgi?id=173795
15
16         Reviewed by Simon Fraser.
17
18         * WebCoreSupport/WebFrameLoaderClient.h:
19         This unused typedef in the global namespace conflicts with one in a macOS system header.
20         Also... it's unused.
21         Remove it.
22
23 2017-06-23  Konstantin Tokarev  <annulen@yandex.ru>
24
25         Remove excessive headers from WebCore/{bindings,css,dom}
26         https://bugs.webkit.org/show_bug.cgi?id=173766
27
28         Reviewed by Simon Fraser.
29
30         * DOM/DOMInternal.mm:
31
32 2017-06-22  Daniel Bates  <dabates@apple.com>
33
34         Make FrameLoadRequest a move-only type
35         https://bugs.webkit.org/show_bug.cgi?id=173682
36
37         Reviewed by Alex Christensen and Darin Adler.
38
39         A FrameLoadRequest groups together the information to perform a load into a single object
40         that is more manageable to pass around than its constituent parts. Code that receives a
41         FrameLoadRequest is expected to extract out the information it needs to complete its task.
42         And it does not make sense to re-use the same FrameLoadRequest object for more than one
43         load. Therefore, it is sufficient to make FrameLoadRequest a move-only type.
44
45         * Plugins/WebPluginController.mm:
46         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
47         * WebView/WebPDFView.mm:
48         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
49
50 2017-06-21  Antoine Quint  <graouts@apple.com>
51
52         Ensure DRT always logs rAF suspension debugging code
53         https://bugs.webkit.org/show_bug.cgi?id=173681
54
55         Reviewed by Tim "Mr. T" Horton.
56
57         * WebView/WebPreferenceKeysPrivate.h:
58         * WebView/WebPreferences.mm:
59         (+[WebPreferences initialize]):
60         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]): Deleted.
61         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]): Deleted.
62         * WebView/WebPreferencesPrivate.h:
63         * WebView/WebView.mm:
64         (-[WebView _preferencesChanged:]):
65
66 2017-06-21  Daniel Bates  <dabates@apple.com>
67
68         Cleanup FrameLoadRequest
69         https://bugs.webkit.org/show_bug.cgi?id=173564
70         <rdar://problem/32903570>
71
72         Reviewed by Brent Fulgham.
73
74         * WebView/WebPDFView.mm:
75         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Move FrameLoadRequest instantiation
76         into a local variable and use C++11 brace initialization syntax to make it easier to identify
77         the arguments passed to FrameLoader::loadFrameRequest().
78
79 2017-06-21  Antoine Quint  <graouts@apple.com>
80
81         Add logging to identify when the Page suspends scripted animations
82         https://bugs.webkit.org/show_bug.cgi?id=173626
83
84         Reviewed by Tim Horton.
85
86         Add a new preference to control the new shouldLogScriptedAnimationControllerSuspensionChange settings
87         through WebKit. This is specific to WK1 since the issue we're trying to pinpoint only occurs on WK1 bots.
88
89         * WebView/WebPreferenceKeysPrivate.h:
90         * WebView/WebPreferences.mm:
91         (+[WebPreferences initialize]):
92         (-[WebPreferences shouldLogScriptedAnimationControllerSuspensionChange]):
93         (-[WebPreferences setShouldLogScriptedAnimationControllerSuspensionChange:]):
94         * WebView/WebPreferencesPrivate.h:
95         * WebView/WebView.mm:
96         (-[WebView _preferencesChanged:]):
97
98 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
99
100         Disable font variations on macOS Sierra and iOS 10
101         https://bugs.webkit.org/show_bug.cgi?id=173618
102         <rdar://problem/32879164>
103
104         Reviewed by Jon Lee.
105
106         * Configurations/FeatureDefines.xcconfig:
107
108 2017-06-20  Daniel Bates  <dabates@apple.com>
109
110         Have FrameLoadRequest takes a Frame& instead of a Frame*
111         https://bugs.webkit.org/show_bug.cgi?id=173614
112         <rdar://problem/32884890>
113
114         Reviewed by Brent Fulgham.
115
116         * Plugins/WebPluginController.mm:
117         (-[WebPluginController webPlugInContainerLoadRequest:inFrame:]):
118         * WebView/WebFrame.mm:
119         (-[WebFrame loadRequest:]):
120         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
121
122 2017-06-19  Frederic Wang  <fwang@igalia.com>
123
124         [Mac] Add an experimental feature setting for async frame scrolling
125         https://bugs.webkit.org/show_bug.cgi?id=173359
126
127         Reviewed by Simon Fraser.
128
129         * WebView/WebPreferenceKeysPrivate.h: Declare key for async frame scrolling preference.
130         * WebView/WebPreferences.mm:
131         (+[WebPreferences initialize]): Initialize async frame scrolling preference to false.
132         (-[WebPreferences asyncFrameScrollingEnabled]): Define getter for async frame scrolling.
133         (-[WebPreferences setAsyncFrameScrollingEnabled:]): Define setter for async frame scrolling.
134         * WebView/WebPreferencesPrivate.h: Declare setter and getter.
135         * WebView/WebView.mm:
136         (-[WebView _preferencesChanged:]): Take into account preference update for async frame
137         scrolling.
138
139 2017-06-19  Chris Dumez  <cdumez@apple.com>
140
141         Use WTF::Function instead of std::function in more places in WebCore/
142         https://bugs.webkit.org/show_bug.cgi?id=173535
143
144         Reviewed by Antti Koivisto.
145
146         Use WTF::Function instead of std::function in more places in WebCore/ to avoid copying.
147
148         * WebCoreSupport/WebFrameLoaderClient.h:
149         * WebCoreSupport/WebFrameLoaderClient.mm:
150         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
151         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
152         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
153         (WebFrameLoaderClient::dispatchWillSubmitForm):
154         (WebFrameLoaderClient::setUpPolicyListener):
155         (-[WebFramePolicyListener initWithFrame:policyFunction:]):
156         (-[WebFramePolicyListener initWithFrame:policyFunction:appLinkURL:]):
157
158 2017-05-14 Frederic Wang  <fwang@igalia.com>
159
160         Add heuristic to avoid flattening "fullscreen" iframes
161         https://bugs.webkit.org/show_bug.cgi?id=171914
162
163         Reviewed by Simon Fraser.
164
165         This commit adjusts the mac/ios preference interface to treat frame flattening as an enum.
166
167         * WebView/WebPreferenceKeysPrivate.h: Rename the key.
168         * WebView/WebPreferences.mm:
169         (+[WebPreferences initialize]): Handle frame flattening as an enum.
170         (-[WebPreferences isFrameFlatteningEnabled]): Ditto.
171         (-[WebPreferences setFrameFlatteningEnabled:]): Ditto.
172         (-[WebPreferences frameFlattening]): New function to get frame flattening as an enum.
173         (-[WebPreferences setFrameFlattening:]): New function to set frame flattening as an enum.
174         * WebView/WebPreferencesPrivate.h: Ditto.
175         * WebView/WebView.mm:
176         (-[WebView _preferencesChanged:]): Ditto.
177         * WebView/WebPreferencesPrivate.h: Add new enum definition.
178
179 2017-06-17  Chris Dumez  <cdumez@apple.com>
180
181         Use WTF::Function instead of std::function in WebKit2/
182         https://bugs.webkit.org/show_bug.cgi?id=173504
183
184         Reviewed by Darin Adler.
185
186         Use WTF::Function instead of std::function in WebKit2/ to avoid
187         unnecessary copying.
188
189         * Plugins/Hosted/HostedNetscapePluginStream.h:
190         * Plugins/Hosted/HostedNetscapePluginStream.mm:
191         (WebKit::HostedNetscapePluginStream::willSendRequest):
192         * Plugins/WebNetscapePluginStream.h:
193         * Plugins/WebNetscapePluginStream.mm:
194         (WebNetscapePluginStream::willSendRequest):
195         * WebCoreSupport/WebPaymentCoordinatorClient.h:
196         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
197         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
198         (WebPaymentCoordinatorClient::openPaymentSetup):
199
200 2017-06-16  Sam Weinig  <sam@webkit.org>
201
202         [WebIDL] Remove custom bindings for HTMLDocument
203         https://bugs.webkit.org/show_bug.cgi?id=173444
204
205         Reviewed by Darin Adler.
206
207         * DOM/DOMHTMLDocument.mm:
208         (-[DOMHTMLDocument linkColor]):
209         (-[DOMHTMLDocument setLinkColor:]):
210         (-[DOMHTMLDocument write:]):
211         (-[DOMHTMLDocument writeln:]):
212         Update for new signature of write/writeln and rename of linkColor to linkColorForBindings.
213
214 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
215
216         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
217         https://bugs.webkit.org/show_bug.cgi?id=173366
218         <rdar://problem/32767014>
219
220         Reviewed by Tim Horton.
221
222         Move pieces of iOS WebKit1 drag and drop implementation into OpenSource. No change in behavior.
223
224         * Configurations/FeatureDefines.xcconfig:
225         * WebCoreSupport/WebDragClient.mm:
226         (WebDragClient::useLegacyDragClient):
227         (WebDragClient::willPerformDragDestinationAction):
228         (WebDragClient::dragSourceActionMaskForPoint):
229         (WebDragClient::willPerformDragSourceAction):
230         (WebDragClient::startDrag):
231         (WebDragClient::beginDrag):
232         (WebDragClient::declareAndWriteDragImage):
233         (WebDragClient::declareAndWriteAttachment):
234         (WebDragClient::didConcludeEditDrag):
235         * WebView/WebView.mm:
236         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
237         (-[WebView _getDataInteractionData]):
238         (-[WebView dragDataForSession:client:global:operation:]):
239         (-[WebView _enteredDataInteraction:client:global:operation:]):
240         (-[WebView _updatedDataInteraction:client:global:operation:]):
241         (-[WebView _exitedDataInteraction:client:global:operation:]):
242         (-[WebView _performDataInteraction:client:global:operation:]):
243         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
244         (-[WebView _endedDataInteraction:global:]):
245         (-[WebView _didConcludeEditDataInteraction]):
246         (floatRectsForCGRectArray): Deleted.
247         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]): Deleted.
248         * WebView/WebViewData.h:
249         * WebView/WebViewData.mm:
250         (-[WebViewPrivate dealloc]):
251         * WebView/WebViewPrivate.h:
252
253 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
254
255         [iOS DnD] [WK1] Dropping links onto UIWebViews should not trigger navigation by default
256         https://bugs.webkit.org/show_bug.cgi?id=173454
257         <rdar://problem/31720671>
258
259         Reviewed by Tim Horton.
260
261         Adds -webView:dragDestinationActionMaskForSession: as SPI to WebUIDelegate.
262         If unimplemented, the default UI delegate allows all actions except for URL loading.
263
264         * DefaultDelegates/WebDefaultUIDelegate.mm:
265         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForSession:]):
266         * WebView/WebUIDelegatePrivate.h:
267         * WebView/WebView.mm:
268         (-[WebView dragDestinationActionMaskForSession:]):
269
270 2017-06-15  Wenson Hsieh  <wenson_hsieh@apple.com>
271
272         Using -[WebItemProviderPasteboard setItemProviders:] to swap out item providers before a drop breaks item provider loading
273         https://bugs.webkit.org/show_bug.cgi?id=173338
274         <rdar://problem/32777720>
275
276         Reviewed by Tim Horton.
277
278         Rename updatePreferredTypeIdentifiers to updateSupportedTypeIdentifiers.
279
280         * WebCoreSupport/WebPlatformStrategies.h:
281         * WebCoreSupport/WebPlatformStrategies.mm:
282         (WebPlatformStrategies::updateSupportedTypeIdentifiers):
283         (WebPlatformStrategies::updatePreferredTypeIdentifiers): Deleted.
284
285 2017-06-13  Daniel Bates  <dabates@apple.com>
286
287         Implement W3C Secure Contexts Draft Specification
288         https://bugs.webkit.org/show_bug.cgi?id=158121
289         <rdar://problem/26012994>
290
291         Reviewed by Brent Fulgham.
292
293         Part 4
294
295         Adds a preference to toggle the runtime enabled feature flag isSecureContextAttributeEnabled.
296
297         * WebView/WebPreferenceKeysPrivate.h:
298         * WebView/WebPreferences.mm:
299         (+[WebPreferences initialize]):
300         (-[WebPreferences isSecureContextAttributeEnabled]):
301         (-[WebPreferences setIsSecureContextAttributeEnabled:]):
302         * WebView/WebPreferencesPrivate.h:
303         * WebView/WebView.mm:
304         (-[WebView _preferencesChanged:]):
305
306 2017-06-13  Sam Weinig  <sam@webkit.org>
307
308         Rename JSDOMWindowShell to JSDOMWindowProxy to match the HTML5 spec.
309         https://bugs.webkit.org/show_bug.cgi?id=80733
310
311         Reviewed by Chris Dumez.
312
313         * DOM/DOMUtility.mm:
314         (createDOMWrapper):
315         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
316         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
317         * WebView/WebFrame.mm:
318         (-[WebFrame _attachScriptDebugger]):
319         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
320
321 2017-06-12  Jiewen Tan  <jiewen_tan@apple.com>
322
323         [WebCrypto] Remove experimental feature flag of SubtleCrypto
324         https://bugs.webkit.org/show_bug.cgi?id=173197
325         <rdar://problem/32688148>
326
327         Reviewed by Brent Fulgham.
328
329         * WebView/WebPreferences.mm:
330         (+[WebPreferences initialize]):
331         (-[WebPreferences subtleCryptoEnabled]): Deleted.
332         (-[WebPreferences setSubtleCryptoEnabled:]): Deleted.
333         * WebView/WebPreferencesPrivate.h:
334         * WebView/WebView.mm:
335         (-[WebView _preferencesChanged:]):
336
337 2017-06-10  Dan Bernstein  <mitz@apple.com>
338
339         Reverted r218056 because it made the IDE reindex constantly.
340
341         * Configurations/DebugRelease.xcconfig:
342
343 2017-06-10  Dan Bernstein  <mitz@apple.com>
344
345         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
346         https://bugs.webkit.org/show_bug.cgi?id=173223
347
348         Reviewed by Sam Weinig.
349
350         The rebuilds were happening due to a difference in the compiler options that the IDE and
351         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
352         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
353         specify an appropriate path in CLANG_INDEX_STORE_PATH.
354
355         * Configurations/DebugRelease.xcconfig:
356
357 2017-06-09  Wenson Hsieh  <wenson_hsieh@apple.com>
358
359         [iOS DnD] Add a hook to perform two-step drops in editable content
360         https://bugs.webkit.org/show_bug.cgi?id=172992
361         <rdar://problem/32590174>
362
363         Reviewed by Tim Horton.
364
365         Adds a new SPI to WebUIKitDelegate to allow WK1 clients to override default drop behavior. Returning YES from
366         -performTwoStepDrop:atDestination:isMove: will prevent content from being inserted on drop in WebKit; otherwise,
367         returning NO will continue with default WebKit behavior.
368
369         * WebCoreSupport/WebEditorClient.h:
370         * WebCoreSupport/WebEditorClient.mm:
371         (WebEditorClient::performTwoStepDrop):
372
373 2017-06-08  Jer Noble  <jer.noble@apple.com>
374
375         Clients of the WK2 C-API don't have their mediaContentTypesRequiringHardwareSupport setting initialized correctly.
376         https://bugs.webkit.org/show_bug.cgi?id=173091
377
378         Reviewed by Eric Carlson.
379
380         * WebView/WebPreferences.mm:
381         (+[WebPreferences initialize]):
382
383 2017-06-07  Jer Noble  <jer.noble@apple.com>
384
385         Clean-up: RenderElement.h includes headers it doesn't use
386         https://bugs.webkit.org/show_bug.cgi?id=173046
387
388         Reviewed by Andy Estes.
389
390         * WebView/WebImmediateActionController.mm:
391
392 2017-06-07  Zalan Bujtas  <zalan@apple.com>
393
394         [iOS WK1 WebThread] Do not call out to the main thread for device orientation.
395         https://bugs.webkit.org/show_bug.cgi?id=173044
396         <rdar://problem/32449338>
397
398         Reviewed by Tim Horton.
399
400         Cache the current device orientation so that we don't have to lift the WebThread lock
401         to collect it.
402
403         * WebView/WebFrame.mm:
404         (-[WebFrame deviceOrientationChanged]):
405         * WebView/WebView.mm:
406         (-[WebView _commonInitializationWithFrameName:groupName:]):
407         (-[WebView _setDeviceOrientation:]):
408         (-[WebView _deviceOrientation]):
409         * WebView/WebViewData.h:
410         * WebView/WebViewInternal.h:
411
412 2017-06-06  Jer Noble  <jer.noble@apple.com>
413
414         [Cocoa] Set defaults for mediaContentTypesRequiringHardwareSupport setting
415         https://bugs.webkit.org/show_bug.cgi?id=173008
416
417         Reviewed by Eric Carlson.
418
419         Add a private preference (with default) for the mediaContentTypesRequiringHardwareSupport WebCore setting.
420
421         * WebView/WebPreferenceKeysPrivate.h:
422         * WebView/WebPreferences.mm:
423         (+[WebPreferences initialize]):
424         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
425         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
426         * WebView/WebPreferencesPrivate.h:
427         * WebView/WebView.mm:
428         (-[WebView _preferencesChanged:]):
429
430 2017-06-06  Youenn Fablet  <youenn@apple.com>
431
432         Add an option to disable getUserMedia prompt in case of mock capture sources
433         https://bugs.webkit.org/show_bug.cgi?id=172981
434         <rdar://problem/32580325>
435
436         Reviewed by Eric Carlson.
437
438         Defining the option, getter and setter.
439
440         * WebView/WebPreferences.mm:
441         (+[WebPreferences initialize]):
442         (-[WebPreferences mockCaptureDevicesPromptEnabled]):
443         (-[WebPreferences setMockCaptureDevicesPromptEnabled:]):
444         * WebView/WebPreferencesPrivate.h:
445
446 2017-06-05  Dan Bernstein  <mitz@apple.com>
447
448         Tried to fix the build when targrting macOS 10.12 using the macOS 10.13 developer beta SDK.
449
450         * WebView/WebView.mm:
451         (-[WebView updateMediaTouchBar]):
452         * WebView/WebViewData.h:
453
454 2017-06-03  Darin Adler  <darin@apple.com>
455
456         Streamline handling of attributes, using references as much as possible
457         https://bugs.webkit.org/show_bug.cgi?id=172899
458
459         Reviewed by Chris Dumez.
460
461         * WebView/WebHTMLRepresentation.mm:
462         (matchLabelsAgainstElement): Added handling of nullptr since nothing guarantees the
463         passed in element can't be null. Removed unnecessary conversion from NSString to String
464         and then back to NSString.
465
466 2017-06-01  Andy Estes  <aestes@apple.com>
467
468         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
469         https://bugs.webkit.org/show_bug.cgi?id=172828
470
471         Reviewed by Beth Dakin.
472
473         * Configurations/FeatureDefines.xcconfig:
474
475 2017-05-31  Andy Estes  <aestes@apple.com>
476
477         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
478         https://bugs.webkit.org/show_bug.cgi?id=172366
479
480         Reviewed by Daniel Bates.
481
482         * Configurations/FeatureDefines.xcconfig:
483
484 2017-05-30  Ryosuke Niwa  <rniwa@webkit.org>
485
486         Only include DataDetectorsUI headers in iOS
487         https://bugs.webkit.org/show_bug.cgi?id=172633
488
489         Reviewed by David Kilzer.
490
491         Enable data detectors only on iOS and not other variants of iOS.
492
493         * WebCoreSupport/WebFrameLoaderClient.mm:
494
495 2017-05-30  Alex Christensen  <achristensen@webkit.org>
496
497         Update libwebrtc configuration
498         https://bugs.webkit.org/show_bug.cgi?id=172727
499
500         Reviewed by Geoffrey Garen.
501
502         * Configurations/FeatureDefines.xcconfig:
503
504 2017-05-28  Dan Bernstein  <mitz@apple.com>
505
506         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
507         https://bugs.webkit.org/show_bug.cgi?id=172691
508
509         Reviewed by Tim Horton.
510
511         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
512
513 2017-05-26  Brent Fulgham  <bfulgham@apple.com>
514
515         [WK2] Address thread safety issues with ResourceLoadStatistics
516         https://bugs.webkit.org/show_bug.cgi?id=172519
517         <rdar://problem/31707642>
518
519         Reviewed by Chris Dumez.
520
521         Create a new WorkQueue for the ResourceLoadStatistics store to use for processing data.
522
523         * WebView/WebView.mm:
524         (WebKitInitializeApplicationStatisticsStoragePathIfNecessary): Pass WorkQueue to the observer.
525
526 2017-05-25  Myles C. Maxfield  <mmaxfield@apple.com>
527
528         [WK1] iframes in layer-backed NSViews are not cleared between successive draws
529         https://bugs.webkit.org/show_bug.cgi?id=172554
530         <rdar://problem/31247133>
531
532         Reviewed by Simon Fraser.
533
534         Update an overridden internal AppKit function to the new signature.
535
536         * WebView/WebHTMLView.mm:
537         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inContext:topView:]):
538         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:shouldChangeFontReferenceColor:_recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
539         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]): Deleted.
540         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]): Deleted.
541
542 2017-05-24  Jer Noble  <jer.noble@apple.com>
543
544         Rename DisplaySleepDisabler -> SleepDisabler
545         https://bugs.webkit.org/show_bug.cgi?id=172478
546
547         Reviewed by Sam Weinig.
548
549         * WebView/WebFullScreenController.h:
550
551 2017-05-23  Simon Fraser  <simon.fraser@apple.com>
552
553         Stop consulting -viewsNeedDisplay when doing layer flushing in WebKit1
554         https://bugs.webkit.org/show_bug.cgi?id=172522
555         rdar://problem/31071812
556
557         Reviewed by Tim Horton.
558
559         There's no need to consult -[NSWindow viewsNeedDisplay] on newer OSes. It was
560         added in r58623, and modified in r61204 for Carbon apps, but with more recent AppKit
561         versions this synchronization is no longer required.
562
563         * WebView/WebView.mm:
564         (LayerFlushController::flushLayers):
565
566 2017-05-22  Simon Fraser  <simon.fraser@apple.com>
567
568         Snapshotting via -renderInContext: should do synchronous image decodes
569         https://bugs.webkit.org/show_bug.cgi?id=172485
570         rdar://problem/32276146
571
572         Reviewed by Tim Horton.
573
574         Remove the _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap: SPI that no longer
575         has any callers.
576
577         * Plugins/WebBaseNetscapePluginView.h:
578         * Plugins/WebBaseNetscapePluginView.mm:
579         (-[WebBaseNetscapePluginView inFlatteningPaint]): Deleted.
580         * WebView/WebFrame.mm:
581         (-[WebFrame _paintBehaviorForDestinationContext:]):
582         (-[WebFrame _drawRect:contentsOnly:]):
583         (-[WebFrame _shouldFlattenCompositingLayers:]): Deleted.
584         * WebView/WebHTMLView.mm:
585         (imageFromRect):
586         * WebView/WebView.mm:
587         (-[WebView _commonInitializationWithFrameName:groupName:]):
588         (-[WebView _setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:]): Deleted.
589         (-[WebView _includesFlattenedCompositingLayersWhenDrawingToBitmap]): Deleted.
590         * WebView/WebViewData.h:
591         * WebView/WebViewPrivate.h:
592
593 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
594
595         Remove dead ENABLE(FONT_LOAD_EVENTS) code
596         https://bugs.webkit.org/show_bug.cgi?id=172517
597
598         Rubber-stamped by Simon Fraser.
599
600         * Configurations/FeatureDefines.xcconfig:
601
602 2017-05-23  Emilio Cobos Álvarez  <ecobos@igalia.com>
603
604         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
605         https://bugs.webkit.org/show_bug.cgi?id=171984
606
607         Reviewed by Antti Koivisto.
608
609         * WebView/WebPreferenceKeysPrivate.h:
610         * WebView/WebPreferences.mm:
611         (+[WebPreferences initialize]):
612         (-[WebPreferences displayContentsEnabled]):
613         (-[WebPreferences setDisplayContentsEnabled:]):
614         * WebView/WebPreferencesPrivate.h:
615         * WebView/WebView.mm:
616         (-[WebView _preferencesChanged:]):
617
618 2017-05-22  Youenn Fablet  <youenn@apple.com>
619
620         Remove AVAudioCaptureSource
621         https://bugs.webkit.org/show_bug.cgi?id=172360
622
623         Reviewed by Sam Weinig.
624
625         Removing the handling of AVAudio/CoreAudio capture source dynamic switch.
626
627         * WebView/WebPreferenceKeysPrivate.h:
628         * WebView/WebPreferences.mm:
629         (+[WebPreferences initialize]):
630         (-[WebPreferences useAVFoundationAudioCapture]): Deleted.
631         (-[WebPreferences setUseAVFoundationAudioCapture:]): Deleted.
632         * WebView/WebPreferencesPrivate.h:
633         * WebView/WebView.mm:
634         (-[WebView _preferencesChanged:]):
635
636 2017-05-22  Sam Weinig  <sam@webkit.org>
637
638         [WebIDL] Support callbacks with arbitrary return types
639         https://bugs.webkit.org/show_bug.cgi?id=172407
640
641         Reviewed by Chris Dumez.
642
643         * DOM/DOM.mm:
644         (-[DOMNodeFilter acceptNode:]):
645         Update for CallbackResult adoption in the base class.
646
647         * DOM/DOMNodeIterator.mm:
648         * DOM/DOMTreeWalker.mm:
649         Update to account for new WebCore implementation return types. We return nil
650         if there was an exception, since retains the existing behavior if a javascript
651         NodeFilter had been used (an exception would cause all nodes to be rejected,
652         thus returning nullptr).
653
654         * DOM/ObjCNodeFilterCondition.h:
655         * DOM/ObjCNodeFilterCondition.mm:
656         Update to match new interface of NodeFilterCondition.
657
658 2017-05-18  Sam Weinig  <sam@webkit.org>
659
660         [WebIDL] Remove the need for the generator to know about native type mapping
661         https://bugs.webkit.org/show_bug.cgi?id=172310
662
663         Reviewed by Darin Adler.
664
665         * DOM/DOM.mm:
666         (-[DOMNodeFilter acceptNode:]):
667         Update to pass Node by reference.
668
669 2017-05-19  Yusuke Suzuki  <utatane.tea@gmail.com>
670
671         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
672         https://bugs.webkit.org/show_bug.cgi?id=172098
673
674         Reviewed by Saam Barati.
675
676         * Plugins/Hosted/ProxyInstance.mm:
677         * Plugins/Hosted/ProxyRuntimeObject.mm:
678
679 2017-05-18  Andy Estes  <aestes@apple.com>
680
681         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
682         https://bugs.webkit.org/show_bug.cgi?id=172305
683
684         Reviewed by Anders Carlsson.
685
686         * Configurations/FeatureDefines.xcconfig:
687
688 2017-05-18  Commit Queue  <commit-queue@webkit.org>
689
690         Unreviewed, rolling out r217031, r217032, and r217037.
691         https://bugs.webkit.org/show_bug.cgi?id=172293
692
693         cause linking errors in Windows (Requested by yusukesuzuki on
694         #webkit).
695
696         Reverted changesets:
697
698         "[JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass"
699         https://bugs.webkit.org/show_bug.cgi?id=172098
700         http://trac.webkit.org/changeset/217031
701
702         "Unreviewed, rebaseline for newly added ClassInfo"
703         https://bugs.webkit.org/show_bug.cgi?id=172098
704         http://trac.webkit.org/changeset/217032
705
706         "Unreviewed, fix debug and non-JIT build"
707         https://bugs.webkit.org/show_bug.cgi?id=172098
708         http://trac.webkit.org/changeset/217037
709
710 2017-05-16  Yusuke Suzuki  <utatane.tea@gmail.com>
711
712         [JSC][DFG][DOMJIT] Extend CheckDOM to CheckSubClass
713         https://bugs.webkit.org/show_bug.cgi?id=172098
714
715         Reviewed by Saam Barati.
716
717         * Plugins/Hosted/ProxyInstance.mm:
718         * Plugins/Hosted/ProxyRuntimeObject.mm:
719
720 2017-05-17  Matt Lewis  <jlewis3@apple.com>
721
722         Unreviewed, rolling out r216974.
723
724         Revision caused consistent timeouts on all platforms.
725
726         Reverted changeset:
727
728         "Add a RuntimeEnabledFeature for display: contents, defaulted
729         to false."
730         https://bugs.webkit.org/show_bug.cgi?id=171984
731         http://trac.webkit.org/changeset/216974
732
733 2017-05-17  Emilio Cobos Álvarez  <ecobos@igalia.com>
734
735         Add a RuntimeEnabledFeature for display: contents, defaulted to false.
736         https://bugs.webkit.org/show_bug.cgi?id=171984
737
738         Reviewed by Antti Koivisto.
739
740         * WebView/WebPreferenceKeysPrivate.h:
741         * WebView/WebPreferences.mm:
742         (+[WebPreferences initialize]):
743         (-[WebPreferences displayContentsEnabled]):
744         (-[WebPreferences setDisplayContentsEnabled:]):
745         * WebView/WebPreferencesPrivate.h:
746         * WebView/WebView.mm:
747         (-[WebView _preferencesChanged:]):
748
749 2017-05-16  Sam Weinig  <sam@webkit.org>
750
751         Bring Notification.idl up to spec
752         https://bugs.webkit.org/show_bug.cgi?id=172156
753
754         Reviewed by Chris Dumez.
755
756         * WebCoreSupport/WebNotificationClient.h:
757         * WebCoreSupport/WebNotificationClient.mm:
758         (generateNotificationID):
759         (WebNotificationClient::show):
760         (WebNotificationClient::cancel):
761         (WebNotificationClient::clearNotifications):
762         (WebNotificationClient::notificationObjectDestroyed):
763         (WebNotificationClient::requestPermission):
764         (WebNotificationClient::hasPendingPermissionRequests):
765         (WebNotificationClient::checkPermission):
766         (-[WebNotificationPolicyListener allow]):
767         (-[WebNotificationPolicyListener deny]):
768         * WebView/WebNotification.mm:
769         (-[WebNotification iconURL]):
770         (-[WebNotification dir]):
771         Simplify #ifdefs and update for enum vs String usage.
772
773 2017-05-15  Said Abou-Hallawa  <sabouhallawa@apple.com>
774
775         Do not delete asynchronously decoded frames for large images if their clients are in the viewport
776         https://bugs.webkit.org/show_bug.cgi?id=170640
777
778         Reviewed by Simon Fraser.
779
780         Enable the async decoding for large images.
781
782         * WebView/WebView.mm:
783         (-[WebView _preferencesChanged:]):
784
785 2017-05-15  Jer Noble  <jer.noble@apple.com>
786
787         Add experimental setting to allow document gesture interaction to fulfill media playback gesture requirement
788         https://bugs.webkit.org/show_bug.cgi?id=172131
789
790         Reviewed by Eric Carlson.
791
792         * WebView/WebPreferenceKeysPrivate.h:
793         * WebView/WebPreferences.mm:
794         (+[WebPreferences initialize]):
795         (-[WebPreferences mediaUserGestureInheritsFromDocument]):
796         (-[WebPreferences setMediaUserGestureInheritsFromDocument:]):
797         * WebView/WebPreferencesPrivate.h:
798
799 2017-05-12  Chris Dumez  <cdumez@apple.com>
800
801         Drop uses of PassRefPtr in WebKit/mac
802         https://bugs.webkit.org/show_bug.cgi?id=172066
803
804         Reviewed by Sam Weinig.
805
806         * History/WebBackForwardListInternal.h:
807         * History/WebHistoryItem.mm:
808         (kit):
809         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
810         * History/WebHistoryItemInternal.h:
811         * Plugins/Hosted/HostedNetscapePluginStream.h:
812         (WebKit::HostedNetscapePluginStream::create):
813         * Plugins/Hosted/NetscapePluginHostManager.h:
814         * Plugins/Hosted/NetscapePluginHostManager.mm:
815         (WebKit::NetscapePluginHostManager::instantiatePlugin):
816         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
817         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
818         (WebKit::NetscapePluginInstanceProxy::PluginRequest::create):
819         (WebKit::NetscapePluginInstanceProxy::create):
820         (WebKit::NetscapePluginInstanceProxy::setManualStream):
821         * Plugins/Hosted/ProxyInstance.h:
822         (WebKit::ProxyInstance::create):
823         * Plugins/Hosted/ProxyInstance.mm:
824         (WebKit::ProxyInstance::ProxyInstance):
825         (WebKit::ProxyInstance::newRuntimeObject):
826         * Plugins/Hosted/ProxyRuntimeObject.h:
827         (WebKit::ProxyRuntimeObject::create):
828         * Plugins/Hosted/ProxyRuntimeObject.mm:
829         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
830         * Plugins/Hosted/WebHostedNetscapePluginView.h:
831         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
832         (-[WebHostedNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
833         * Plugins/WebBaseNetscapePluginView.h:
834         * Plugins/WebBaseNetscapePluginView.mm:
835         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
836         * Plugins/WebNetscapePluginStream.h:
837         (WebNetscapePluginStream::create):
838         * Plugins/WebNetscapePluginView.h:
839         * Plugins/WebNetscapePluginView.mm:
840         (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:]):
841         * WebCoreSupport/WebChromeClient.mm:
842         * WebCoreSupport/WebEditorClient.mm:
843         * WebCoreSupport/WebNotificationClient.mm:
844         (WebNotificationClient::requestPermission):
845         (-[WebNotificationPolicyListener initWithCallback:]):
846         * WebCoreSupport/WebOpenPanelResultListener.mm:
847         * WebCoreSupport/WebUserMediaClient.mm:
848         (WebUserMediaClient::requestUserMediaAccess):
849         (WebUserMediaClient::enumerateMediaDevices):
850         (-[WebUserMediaPolicyListener initWithUserMediaRequest:]):
851         (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
852         * WebView/WebArchive.mm:
853         (-[WebArchivePrivate initWithCoreArchive:]):
854         (-[WebArchivePrivate setCoreArchive:]):
855         (-[WebArchive initWithData:]):
856         (-[WebArchive subframeArchives]):
857         (-[WebArchive _initWithCoreLegacyWebArchive:]):
858         * WebView/WebArchiveInternal.h:
859         * WebView/WebDataSource.mm:
860         (WebDataSourcePrivate::WebDataSourcePrivate):
861         (WebDataSourcePrivate::~WebDataSourcePrivate):
862         (-[WebDataSource _initWithDocumentLoader:]):
863         * WebView/WebDataSourceInternal.h:
864         * WebView/WebDeviceOrientation.mm:
865         (-[WebDeviceOrientation initWithCoreDeviceOrientation:]):
866         * WebView/WebDeviceOrientationInternal.h:
867         * WebView/WebFrame.mm:
868         (-[WebFrame _convertToDOMRange:]):
869         (-[WebFrame _convertToDOMRange:rangeIsRelativeTo:]):
870         * WebView/WebFrameInternal.h:
871         * WebView/WebFullScreenController.h:
872         * WebView/WebFullScreenController.mm:
873         (-[WebFullScreenController setElement:]):
874         * WebView/WebGeolocationPosition.mm:
875         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
876         (-[WebGeolocationPosition initWithGeolocationPosition:]):
877         * WebView/WebHTMLView.mm:
878         (currentKeyboardEvent):
879         * WebView/WebResource.mm:
880         * WebView/WebScriptWorld.mm:
881         (-[WebScriptWorld initWithWorld:]):
882         (+[WebScriptWorld standardWorld]):
883         (+[WebScriptWorld findOrCreateWorld:]):
884         * WebView/WebViewData.h:
885         (LayerFlushController::create):
886
887 2017-05-11  Chris Dumez  <cdumez@apple.com>
888
889         Drop remaining uses of PassRefPtr in WebCore
890         https://bugs.webkit.org/show_bug.cgi?id=172013
891
892         Reviewed by Yusuke Suzuki.
893
894         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
895         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
896         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
897         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
898         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
899         (-[WebHostedNetscapePluginView createPluginBindingsInstance:]):
900
901 2017-05-11  Tim Horton  <timothy_horton@apple.com>
902
903         Mail spins launching spell checker when typing
904         https://bugs.webkit.org/show_bug.cgi?id=171986
905         <rdar://problem/26305327>
906
907         Reviewed by Beth Dakin.
908
909         * WebView/WebView.mm:
910         (-[WebView setEditable:]):
911         Asynchronously pre-warm the spell checker when a WebView becomes editable.
912
913 2017-05-09  Sam Weinig  <sam@webkit.org>
914
915         Remove support for legacy Notifications
916         https://bugs.webkit.org/show_bug.cgi?id=171487
917
918         Reviewed by Jon Lee.
919
920         * Configurations/FeatureDefines.xcconfig:
921         * WebCoreSupport/WebNotificationClient.h:
922         * WebCoreSupport/WebNotificationClient.mm:
923         * WebView/WebNotification.mm:
924         * WebView/WebNotificationInternal.h:
925         * WebView/WebView.mm:
926         (-[WebView _commonInitializationWithFrameName:groupName:]):
927         (-[WebView _notificationIDForTesting:]):
928         Remove legacy notification specific code.
929
930 2017-05-10  Chris Dumez  <cdumez@apple.com>
931
932         Simplify relationship between Attr and Element now that Attr is childless
933         https://bugs.webkit.org/show_bug.cgi?id=171909
934
935         Reviewed by Ryosuke Niwa.
936
937         Build fix.
938
939         * DOM/DOMAttr.mm:
940         (-[DOMAttr value]):
941         (-[DOMAttr setValue:]):
942
943 2017-05-08  Chris Dumez  <cdumez@apple.com>
944
945         Move 'style' from Element to HTMLElement / SVGElement and make it settable
946         https://bugs.webkit.org/show_bug.cgi?id=171795
947
948         Reviewed by Alex Christensen.
949
950         Build fix.
951
952         * DOM/DOMElement.mm:
953         (-[DOMElement style]):
954         * WebCoreSupport/WebEditorClient.mm:
955         (WebEditorClient::shouldApplyStyle):
956         * WebView/WebFrame.mm:
957         (-[WebFrame _typingStyle]):
958
959 2017-05-06  Chris Dumez  <cdumez@apple.com>
960
961         Align our IDL files with the latest DOM specification
962         https://bugs.webkit.org/show_bug.cgi?id=171777
963
964         Reviewed by Sam Weinig.
965
966         Build fix.
967
968         * DOM/DOMDocument.mm:
969         (-[DOMDocument readyState]):
970
971 2017-05-05  Jeremy Jones  <jeremyj@apple.com>
972
973         REGRESSION (r215951): LayoutTest media/modern-media-controls/placard-support/placard-support-pip.html is a flaky crash
974         https://bugs.webkit.org/show_bug.cgi?id=171610
975         <rdar://problem/31976820>
976
977         Reviewed by Eric Carlson.
978
979         Fullscreen state gets confused because WK1 WebChromeClient doesn't implement exitVideoFullscreenToModeWithoutAnimation.
980
981         * WebCoreSupport/WebChromeClient.h:
982         * WebCoreSupport/WebChromeClient.mm:
983         (WebChromeClient::exitVideoFullscreenToModeWithoutAnimation):
984
985 2017-05-04  Commit Queue  <commit-queue@webkit.org>
986
987         Unreviewed, rolling out r216206.
988         https://bugs.webkit.org/show_bug.cgi?id=171714
989
990         Multiple LayoutTests crashing in Document::page() (Requested
991         by ap on #webkit).
992
993         Reverted changeset:
994
995         "Remove support for legacy Notifications"
996         https://bugs.webkit.org/show_bug.cgi?id=171487
997         http://trac.webkit.org/changeset/216206
998
999 2017-05-04  Jeremy Jones  <jeremyj@apple.com>
1000
1001         UIColor +whiteColor and +clearColor are ambiguous and need to be casted when soft linked.
1002         https://bugs.webkit.org/show_bug.cgi?id=171704
1003
1004         Reviewed by Jer Noble.
1005
1006         Fix build by casting result of +whiteColor to UIColor.
1007
1008         * WebView/WebView.mm:
1009         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
1010
1011 2017-05-04  Sam Weinig  <sam@webkit.org>
1012
1013         Remove support for legacy Notifications
1014         https://bugs.webkit.org/show_bug.cgi?id=171487
1015
1016         Reviewed by Jon Lee.
1017
1018         * Configurations/FeatureDefines.xcconfig:
1019         * WebCoreSupport/WebNotificationClient.h:
1020         * WebCoreSupport/WebNotificationClient.mm:
1021         * WebView/WebNotification.mm:
1022         * WebView/WebNotificationInternal.h:
1023         * WebView/WebView.mm:
1024         (-[WebView _commonInitializationWithFrameName:groupName:]):
1025         (-[WebView _notificationIDForTesting:]):
1026         Remove legacy notification specific code.
1027
1028 2017-05-03  Joseph Pecoraro  <pecoraro@apple.com>
1029
1030         [Cocoa] Stop exporting symbols for ivars that were made private
1031         https://bugs.webkit.org/show_bug.cgi?id=171631
1032
1033         Reviewed by Dan Bernstein.
1034
1035         * WebKit.exp:
1036
1037 2017-05-01  Chris Dumez  <cdumez@apple.com>
1038
1039         Remove some usage of PassRefPtr in editing code
1040         https://bugs.webkit.org/show_bug.cgi?id=171490
1041
1042         Reviewed by Darin Adler.
1043
1044         * WebView/WebFrame.mm:
1045         (-[WebFrame dictationResultMetadataForRange:]):
1046         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
1047
1048 2017-05-01  Beth Dakin  <bdakin@apple.com>
1049
1050         On-screen panel for candidate bar is in the wrong place when the caret is at the 
1051         start of a paragraph
1052         https://bugs.webkit.org/show_bug.cgi?id=171453
1053         -and corresponding-
1054         rdar://problem/29779764
1055
1056         Reviewed by Tim Horton.
1057
1058         This bug only happens when the caret is at the beginning of the paragraph, and it 
1059         is because Range::absoluteTextQuads() returns no quads in this case. I think it 
1060         might be correct that absoluteTextQuads() returns no quads in this case, so this 
1061         patch fixes the bug at the call site by using absoluteCaretBounds() in this case.
1062
1063         * WebCoreSupport/WebEditorClient.mm:
1064         (WebEditorClient::handleRequestedCandidates):
1065
1066 2017-04-30  Dan Bernstein  <mitz@apple.com>
1067
1068         [Cocoa] Replaces uses of [get…() alloc] with alloc…Instance()
1069         https://bugs.webkit.org/show_bug.cgi?id=171485
1070
1071         Reviewed by Geoffrey Garen.
1072
1073         * WebView/WebView.mm:
1074         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
1075         (-[WebUITextIndicatorData initWithImage:scale:]):
1076
1077 2017-04-28  Youenn Fablet  <youenn@apple.com>
1078
1079         Adding a runtime flag specific to MediaDevices
1080         https://bugs.webkit.org/show_bug.cgi?id=171433
1081
1082         Reviewed by Geoffrey Garen.
1083
1084         Adding a preference for MediaDevices.
1085         Setting media devices runtime flag to false by default.
1086         Setting peer connection and media stream flags to true by default.
1087
1088         * WebView/WebPreferenceKeysPrivate.h:
1089         * WebView/WebPreferences.mm:
1090         (+[WebPreferences initialize]):
1091         (-[WebPreferences mediaDevicesEnabled]):
1092         (-[WebPreferences setMediaDevicesEnabled:]):
1093         * WebView/WebPreferencesPrivate.h:
1094         * WebView/WebView.mm:
1095         (-[WebView _preferencesChanged:]):
1096
1097 2017-04-27  Chris Dumez  <cdumez@apple.com>
1098
1099         Align colspan/rowspan limits with the latest HTML specification
1100         https://bugs.webkit.org/show_bug.cgi?id=171322
1101
1102         Reviewed by Darin Adler.
1103
1104         ObjC bindings build fix.
1105
1106         * DOM/DOMHTMLTableCellElement.mm:
1107         (-[DOMHTMLTableCellElement colSpan]):
1108         (-[DOMHTMLTableCellElement setColSpan:]):
1109
1110 2017-04-27  Said Abou-Hallawa  <sabouhallawa@apple.com>
1111
1112         REGRESSION(r213764): Async decoding of animated images is disabled for ImageDocument
1113         https://bugs.webkit.org/show_bug.cgi?id=170333
1114
1115         Reviewed by Simon Fraser.
1116
1117         Disbale the async decoding for large images for now.
1118
1119         * WebView/WebView.mm:
1120         (-[WebView _preferencesChanged:]):
1121
1122 2017-04-27  Alex Christensen  <achristensen@webkit.org>
1123
1124         Modernize Frame.h
1125         https://bugs.webkit.org/show_bug.cgi?id=171357
1126
1127         Reviewed by Andy Estes.
1128
1129         * WebCoreSupport/WebEditorClient.h:
1130         * WebCoreSupport/WebEditorClient.mm:
1131         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
1132
1133 2017-04-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1134
1135         [WK1] Tweak the data interaction SPI to indicate whether or not a data interaction was handled
1136         https://bugs.webkit.org/show_bug.cgi?id=171369
1137         <rdar://problem/31858853>
1138
1139         Reviewed by Dan Bernstein.
1140
1141         Introduce a new SPI hook intended to replace performDataInteraction:client:global:operation: that
1142         returns whether or not the data interaction was handled. Due to the difference only in return type
1143         and some staging constraints, this version is prefixed with "_tryTo".
1144
1145         * WebView/WebView.mm:
1146         (-[WebView _tryToPerformDataInteraction:client:global:operation:]):
1147         * WebView/WebViewPrivate.h:
1148
1149 2017-04-26  Wenson Hsieh  <wenson_hsieh@apple.com>
1150
1151         WebItemProviderPasteboard should not synchronously load provided data
1152         https://bugs.webkit.org/show_bug.cgi?id=171341
1153         <rdar://problem/31614010>
1154
1155         Reviewed by Tim Horton.
1156
1157         Adds client-layer plumbing for updatePreferredTypeIdentifiers. See WebCore ChangeLog for more details.
1158
1159         * WebCoreSupport/WebPlatformStrategies.h:
1160         * WebCoreSupport/WebPlatformStrategies.mm:
1161         (WebPlatformStrategies::updatePreferredTypeIdentifiers):
1162
1163 2017-04-26  Zalan Bujtas  <zalan@apple.com>
1164
1165         RTL: recent searches popover is displayed in incorrect location
1166         https://bugs.webkit.org/show_bug.cgi?id=171338
1167         <rdar://problem/31377807>
1168
1169         Reviewed by Dean Jackson.
1170
1171         Add RTL support for the pop-under branch.
1172
1173         * WebCoreSupport/PopupMenuMac.mm:
1174         (PopupMenuMac::show):
1175
1176 2017-04-25  Brent Fulgham  <bfulgham@apple.com>
1177
1178         Limit allowed size of document.title to avoid locking WebKit clients
1179         https://bugs.webkit.org/show_bug.cgi?id=165113
1180         <rdar://problem/28324389>
1181
1182         Reviewed by Darin Adler.
1183
1184         When a web application attempts to set an extremely long title, truncate the
1185         title to a more reasonable size.
1186
1187         We do this at at the presentation layer, rather than in the DOM, so that we do
1188         not affect script function. Instead, we merely limit display to a level that is
1189         reasonable for normal GUI widgets. Anything else needs to be truncated in the UI
1190         layer, so it is a waste of effort to send across IPC.
1191
1192         * WebCoreSupport/WebFrameLoaderClient.h:
1193         * WebCoreSupport/WebFrameLoaderClient.mm:
1194         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1195
1196 2017-04-25  Daniel Bates  <dabates@apple.com>
1197
1198         [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header
1199         https://bugs.webkit.org/show_bug.cgi?id=136452
1200         <rdar://problem/23412620>
1201
1202         Reviewed by Brent Fulgham.
1203
1204         Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms.
1205
1206         * Configurations/FeatureDefines.xcconfig:
1207
1208 2017-04-25  Wenson Hsieh  <wenson_hsieh@apple.com>
1209
1210         Support reading NSURL titles from the pasteboard when performing data interaction
1211         https://bugs.webkit.org/show_bug.cgi?id=171156
1212         <rdar://problem/31356937>
1213
1214         Reviewed by Tim Horton.
1215
1216         Add a new WK1 SPI property, -[WebFrame hasRichlyEditableDragCaret].
1217
1218         * WebCoreSupport/WebPlatformStrategies.h:
1219         * WebCoreSupport/WebPlatformStrategies.mm:
1220         (WebPlatformStrategies::readURLFromPasteboard):
1221         * WebView/WebFrame.mm:
1222         (-[WebFrame hasRichlyEditableDragCaret]):
1223         * WebView/WebFramePrivate.h:
1224
1225 2017-04-24  Andy VanWagoner  <thetalecrafter@gmail.com>
1226
1227         Clean up ICU headers
1228         https://bugs.webkit.org/show_bug.cgi?id=170997
1229
1230         Reviewed by JF Bastien.
1231
1232         Update all icu headers to 55.1
1233
1234         * icu/README: Explain ICU headers for OS X better
1235         * icu/unicode/localpointer.h:
1236         (LocalPointer::LocalPointer):
1237         (LocalPointer::adoptInsteadAndCheckErrorCode):
1238         * icu/unicode/platform.h:
1239         * icu/unicode/putil.h:
1240         * icu/unicode/uchar.h:
1241         * icu/unicode/uconfig.h:
1242         * icu/unicode/ucurr.h:
1243         * icu/unicode/uidna.h:
1244         * icu/unicode/umachine.h:
1245         * icu/unicode/urename.h:
1246         * icu/unicode/uscript.h:
1247         * icu/unicode/ustring.h:
1248         * icu/unicode/utf8.h:
1249         * icu/unicode/utypes.h:
1250         * icu/unicode/uvernum.h:
1251
1252 2017-04-24  Wenson Hsieh  <wenson_hsieh@apple.com>
1253
1254         Respect fidelity order when reading web content from item providers
1255         https://bugs.webkit.org/show_bug.cgi?id=171155
1256         <rdar://problem/31356937>
1257
1258         Reviewed by Tim Horton.
1259
1260         Adjusts for changes in WebCore (see WebCore/ChangeLog for more details).
1261
1262         * WebCoreSupport/WebPlatformStrategies.h:
1263         * WebCoreSupport/WebPlatformStrategies.mm:
1264         (WebPlatformStrategies::getTypesByFidelityForItemAtIndex):
1265
1266 2017-04-24  Alex Christensen  <achristensen@webkit.org>
1267
1268         Reduce copies and allocations in SharedBuffer::append
1269         https://bugs.webkit.org/show_bug.cgi?id=170956
1270
1271         Reviewed by Andreas Kling.
1272
1273         * WebView/WebArchive.mm:
1274         (-[WebArchive initWithData:]):
1275         * WebView/WebFrame.mm:
1276         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1277         * WebView/WebResource.mm:
1278         (-[WebResource initWithCoder:]):
1279         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
1280
1281 2017-04-24  Dan Bernstein  <mitz@apple.com>
1282
1283         [Cocoa] Some ivars are needlessly @protected
1284         https://bugs.webkit.org/show_bug.cgi?id=171208
1285
1286         Reviewed by Anders Carlsson
1287
1288         Made ivars @private where possible.
1289
1290         * Misc/WebUserContentURLPattern.h:
1291         * Plugins/WebPluginDatabase.h:
1292         * Storage/WebDatabaseQuotaManager.h:
1293         * WebCoreSupport/WebSecurityOriginPrivate.h:
1294         * WebInspector/WebInspector.h:
1295         * WebView/WebDeviceOrientation.h:
1296         * WebView/WebDeviceOrientationProviderMock.h:
1297         * WebView/WebGeolocationPosition.h:
1298         * WebView/WebHTMLRepresentation.h:
1299         * WebView/WebNotification.h:
1300
1301 2017-04-21  Wenson Hsieh  <wenson_hsieh@apple.com>
1302
1303         Support writing link titles to the pasteboard when beginning data interaction on a link
1304         https://bugs.webkit.org/show_bug.cgi?id=171154
1305         <rdar://problem/31356937>
1306
1307         Reviewed by Andy Estes.
1308
1309         Adjust for some changes in WebCore to introduce a separate codepath for writing PasteboardURLs. See WebCore
1310         and WebKit2 ChangeLogs for more details.
1311
1312         * WebCoreSupport/WebPlatformStrategies.h:
1313         * WebCoreSupport/WebPlatformStrategies.mm:
1314         (WebPlatformStrategies::writeToPasteboard):
1315
1316 2017-04-21  Michael Catanzaro  <mcatanzaro@igalia.com>
1317
1318         Unreviewed, rolling out r215608.
1319
1320         Hundreds of test failures on GTK bot
1321
1322         Reverted changeset:
1323
1324         "Reduce copies and allocations in SharedBuffer::append"
1325         https://bugs.webkit.org/show_bug.cgi?id=170956
1326         http://trac.webkit.org/changeset/215608
1327
1328 2017-04-21  Alex Christensen  <achristensen@webkit.org>
1329
1330         Reduce copies and allocations in SharedBuffer::append
1331         https://bugs.webkit.org/show_bug.cgi?id=170956
1332
1333         Reviewed by Andreas Kling.
1334
1335         * WebView/WebArchive.mm:
1336         (-[WebArchive initWithData:]):
1337         * WebView/WebFrame.mm:
1338         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
1339         * WebView/WebResource.mm:
1340         (-[WebResource initWithCoder:]):
1341         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
1342
1343 2017-04-20  Dewei Zhu  <dewei_zhu@apple.com>
1344
1345         Build fix to start using C++14.
1346         https://bugs.webkit.org/show_bug.cgi?id=171038
1347
1348         Reviewed by Alex Christensen.
1349
1350         Use 'c++14' instead of 'c++11' in order to use 'auto' in lambda.
1351
1352         * Configurations/WebKitLegacy.xcconfig:
1353
1354 2017-04-19  Youenn Fablet  <youenn@apple.com>
1355
1356         [Mac] Allow customizing H264 encoder
1357         https://bugs.webkit.org/show_bug.cgi?id=170829
1358
1359         Reviewed by Alex Christensen.
1360
1361         * Configurations/FeatureDefines.xcconfig:
1362
1363 2017-04-19  Anders Carlsson  <andersca@apple.com>
1364
1365         Stop using deprecated APIs, part 3
1366         https://bugs.webkit.org/show_bug.cgi?id=171003
1367         rdar://problem/31589635
1368
1369         Reviewed by Tim Horton.
1370
1371         * WebCoreSupport/WebPaymentCoordinatorClient.h:
1372         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
1373         (WebPaymentCoordinatorClient::cancelPaymentSession):
1374         Update for WebCore changes.
1375
1376 2017-04-18  Wenson Hsieh  <wenson_hsieh@apple.com>
1377
1378         [WK2] Support DataTransfer::files() when performing a DHTML data interaction
1379         https://bugs.webkit.org/show_bug.cgi?id=170880
1380         <rdar://problem/31314689>
1381
1382         Reviewed by Tim Horton.
1383
1384         Adjust for a change in PasteboardStrategy. See WebCore ChangeLog for more details.
1385
1386         * WebCoreSupport/WebPlatformStrategies.h:
1387         * WebCoreSupport/WebPlatformStrategies.mm:
1388         (WebPlatformStrategies::getFilenamesForDataInteraction):
1389
1390 2017-04-17  Youenn Fablet  <youenn@apple.com>
1391
1392         Disable outdated WritableStream API
1393         https://bugs.webkit.org/show_bug.cgi?id=170749
1394         <rdar://problem/31446233>
1395
1396         Reviewed by Alex Christensen.
1397
1398         Replacing READABLE_STREAM_API, READABLE_BYTE_STREAM_API and WRITABLE_STREAM_API compilation flag by:
1399         - A STREAMS_API compilation flag.
1400         - A ReadableByteStreamAPI and WritableStreamAPI runtime flags, turned off except for RWT and DRT.
1401
1402         * Configurations/FeatureDefines.xcconfig:
1403         * WebView/WebPreferenceKeysPrivate.h:
1404         * WebView/WebPreferences.mm:
1405         (+[WebPreferences initialize]):
1406         (-[WebPreferences readableByteStreamAPIEnabled]):
1407         (-[WebPreferences setReadableByteStreamAPIEnabled:]):
1408         (-[WebPreferences writableStreamAPIEnabled]):
1409         (-[WebPreferences setWritableStreamAPIEnabled:]):
1410         * WebView/WebPreferencesPrivate.h:
1411         * WebView/WebView.mm:
1412         (-[WebView _preferencesChanged:]):
1413
1414 2017-04-15  Wenson Hsieh  <wenson_hsieh@apple.com>
1415
1416         [WK2] Support data interaction of files into file inputs
1417         https://bugs.webkit.org/show_bug.cgi?id=170803
1418         <rdar://problem/31286130>
1419
1420         Reviewed by Tim Horton.
1421
1422         Add boilerplate plumbing for fetching the number of files in the pasteboard.
1423
1424         * WebCoreSupport/WebPlatformStrategies.h:
1425         * WebCoreSupport/WebPlatformStrategies.mm:
1426         (WebPlatformStrategies::getNumberOfFiles):
1427
1428 2017-04-14  Mark Lam  <mark.lam@apple.com>
1429
1430         Update architectures in xcconfig files.
1431         https://bugs.webkit.org/show_bug.cgi?id=170867
1432         <rdar://problem/31628104>
1433
1434         Reviewed by Joseph Pecoraro.
1435
1436         * Configurations/FeatureDefines.xcconfig:
1437
1438 2017-04-14  Wenson Hsieh  <wenson_hsieh@apple.com>
1439
1440         [WK2] Support Icon creation from file URLs on iOS
1441         https://bugs.webkit.org/show_bug.cgi?id=170809
1442         <rdar://problem/31286130>
1443
1444         Reviewed by Tim Horton.
1445
1446         Adjust for changes in the ChromeClient in WebCore.
1447
1448         * WebCoreSupport/WebChromeClient.h:
1449         * WebCoreSupport/WebChromeClient.mm:
1450         (WebChromeClient::loadIconForFiles):
1451         (WebChromeClient::createIconForFiles):
1452
1453 2017-04-12  Dan Bernstein  <mitz@apple.com>
1454
1455         [Mac] Future-proof .xcconfig files
1456         https://bugs.webkit.org/show_bug.cgi?id=170802
1457
1458         Reviewed by Tim Horton.
1459
1460         * Configurations/Base.xcconfig:
1461         * Configurations/DebugRelease.xcconfig:
1462         * Configurations/FeatureDefines.xcconfig:
1463         * Configurations/Version.xcconfig:
1464
1465 2017-04-12  Beth Dakin  <bdakin@apple.com>
1466
1467         Build fix.
1468
1469         * WebView/WebViewData.h:
1470
1471 2017-04-12  Brian Weinstein  <bweinstein@apple.com>
1472
1473         Should always override -[WebStorageManager init].
1474         https://bugs.webkit.org/show_bug.cgi?id=170787
1475         -and corresponding-
1476         rdar://problem/31371835
1477
1478         Reviewed by Anders Carlsson.
1479
1480         * Storage/WebStorageManager.mm:
1481         (-[WebStorageManager init]):
1482
1483 2017-04-12  Beth Dakin  <bdakin@apple.com>
1484
1485         Speculative build fix. 
1486
1487         * WebView/WebViewData.h:
1488
1489 2017-04-12  Beth Dakin  <bdakin@apple.com>
1490
1491         Adopt AVKit name change from AVFunctionBar* to AVTouchBar*
1492         https://bugs.webkit.org/show_bug.cgi?id=170693
1493         -and corresponding-
1494         rdar://problem/31230018
1495
1496         Reviewed by Sam Weinig.
1497
1498         Since the new names only apply to some versions of macOS, this patch uses typedefs 
1499         for the older OS’s. SO:
1500
1501         AVFunctionBarScrubber is now AVTouchBarScrubber
1502
1503         AVFunctionBarPlaybackControlsProvider is now AVTouchBarPlaybackControlsProvider
1504
1505         AVFunctionBarMediaSelectionOption is now AVTouchBarMediaSelectionOption
1506
1507         And the protocol AVFunctionBarPlaybackControlsControlling is now 
1508         AVTouchBarPlaybackControlsControlling
1509
1510         Soft links and allocations cannot use the typedefs.
1511         * WebView/WebView.mm:
1512         (-[WebView updateMediaTouchBar]):
1513         * WebView/WebViewData.h:
1514
1515 2017-04-11  Dean Jackson  <dino@apple.com>
1516
1517         Disable outdated WritableStream API
1518         https://bugs.webkit.org/show_bug.cgi?id=170749
1519         <rdar://problem/31446233>
1520
1521         Reviewed by Tim Horton.
1522
1523         The API we implement is no longer accurate. Disable it until we
1524         are compatible with the new specification
1525
1526         * Configurations/FeatureDefines.xcconfig:
1527
1528 2017-04-11  Dan Bernstein  <mitz@apple.com>
1529
1530         [iOS] Simple HTML documents should allow non-markup JavaScript
1531         https://bugs.webkit.org/show_bug.cgi?id=170734
1532
1533         Reviewed by Sam Weinig.
1534
1535         * WebView/WebView.mm:
1536         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Enabled scripting
1537           but disabled scripting markup.
1538
1539 2017-04-10  Alex Christensen  <achristensen@webkit.org>
1540
1541         Revert r215217
1542         https://bugs.webkit.org/show_bug.cgi?id=170703
1543
1544         * Configurations/FeatureDefines.xcconfig:
1545
1546 2017-04-10  Alex Christensen  <achristensen@webkit.org>
1547
1548         Continue enabling WebRTC
1549         https://bugs.webkit.org/show_bug.cgi?id=170703
1550
1551         Reviewed by Youenn Fablet.
1552
1553         * Configurations/FeatureDefines.xcconfig:
1554
1555 2017-04-10  Anders Carlsson  <andersca@apple.com>
1556
1557         Remove call to WKShowKeyAndMain
1558         https://bugs.webkit.org/show_bug.cgi?id=170691
1559         rdar://problem/31050032
1560
1561         Reviewed by Beth Dakin.
1562
1563         * Carbon/CarbonWindowAdapter.mm:
1564         (-[CarbonWindowAdapter makeKeyWindow]):
1565
1566 2017-04-10  Jeremy Jones  <jeremyj@apple.com>
1567
1568         Add CoreAudioCaptureSource.
1569         https://bugs.webkit.org/show_bug.cgi?id=170112
1570         rdar://problem/30293338
1571
1572         Reviewed by Eric Carlson.
1573
1574         Add UseAVFoundationAudioCapture preference to switch back from the new default of CoreAudio.
1575
1576         * WebView/WebPreferenceKeysPrivate.h:
1577         * WebView/WebPreferences.mm:
1578         (+[WebPreferences initialize]):
1579         (-[WebPreferences useAVFoundationAudioCapture]):
1580         (-[WebPreferences setUseAVFoundationAudioCapture:]):
1581         * WebView/WebPreferencesPrivate.h:
1582         * WebView/WebView.mm:
1583         (-[WebView _preferencesChanged:]):
1584
1585 2017-04-10  Chris Dumez  <cdumez@apple.com>
1586
1587         Drop Timer::startOneShot() overload taking a double
1588         https://bugs.webkit.org/show_bug.cgi?id=170659
1589
1590         Reviewed by Yusuke Suzuki.
1591
1592         Drop Timer::startOneShot() overload taking a double as people should use Seconds type now.
1593
1594         * Plugins/WebNetscapePluginView.mm:
1595         (PluginTimer::start):
1596         * Storage/WebStorageManager.mm:
1597         (+[WebStorageManager setStorageDatabaseIdleInterval:]):
1598
1599 2017-04-09  Chris Dumez  <cdumez@apple.com>
1600
1601         Drop Timer::startRepeating() overload taking a double
1602         https://bugs.webkit.org/show_bug.cgi?id=170656
1603
1604         Reviewed by Yusuke Suzuki.
1605
1606         Drop Timer::startRepeating() overload taking a double as people should use Seconds type now.
1607
1608         * Plugins/WebNetscapePluginView.mm:
1609         (PluginTimer::start):
1610
1611 2017-04-09  Chris Dumez  <cdumez@apple.com>
1612
1613         Start dropping Timer API dealing with double
1614         https://bugs.webkit.org/show_bug.cgi?id=170649
1615
1616         Reviewed by Yusuke Suzuki.
1617
1618         Start dropping Timer API dealing with double as people should use Seconds now.
1619
1620         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1621         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
1622         (WebKit::NetscapePluginInstanceProxy::loadRequest):
1623         * Plugins/WebNetscapePluginStream.mm:
1624         (WebNetscapePluginStream::deliverData):
1625
1626 2017-04-08  Chris Dumez  <cdumez@apple.com>
1627
1628         Drop std::chrono support from Timer class
1629         https://bugs.webkit.org/show_bug.cgi?id=170645
1630
1631         Reviewed by Sam Weinig.
1632
1633         Drop std::chrono support from Timer class now that we prefer using Seconds type.
1634
1635         * WebView/WebView.mm:
1636         (+[WebView _setCacheModel:]):
1637
1638 2017-04-08  Youenn Fablet  <youenn@apple.com>
1639
1640         WebRTC tests gardening
1641         https://bugs.webkit.org/show_bug.cgi?id=170508
1642
1643         Reviewed by Eric Carlson.
1644
1645         * Configurations/FeatureDefines.xcconfig:
1646
1647 2017-04-06  Ryan Haddad  <ryanhaddad@apple.com>
1648
1649         Unreviewed, rolling out r215046.
1650
1651         This change broke internal builds.
1652
1653         Reverted changeset:
1654
1655         "WebRTC tests gardening"
1656         https://bugs.webkit.org/show_bug.cgi?id=170508
1657         http://trac.webkit.org/changeset/215046
1658
1659 2017-04-06  Tim Horton  <timothy_horton@apple.com>
1660
1661         Obj-C bindings build fails with CSS_DEVICE_ADAPTATION turned on
1662         https://bugs.webkit.org/show_bug.cgi?id=170566
1663
1664         Reviewed by Simon Fraser.
1665
1666         * DOM/DOMCSS.mm:
1667         (kitClass):
1668         Use the WebCore-side enum for this, since that's actually what we're switching over.
1669         This allows us to handle values here without adding them to the API header.
1670         All of the other kitClass() functions work the same way.
1671         Also, unindent for style purposes.
1672
1673 2017-04-06  Youenn Fablet  <youenn@apple.com>
1674
1675         WebRTC tests gardening
1676         https://bugs.webkit.org/show_bug.cgi?id=170508
1677
1678         Reviewed by Eric Carlson.
1679
1680         * Configurations/FeatureDefines.xcconfig:
1681
1682 2017-04-04  Megan Gardner  <megan_gardner@apple.com>
1683
1684         Fix leaks in WebUITextIndicatorData
1685         https://bugs.webkit.org/show_bug.cgi?id=170480
1686
1687         Reviewed by Wenson Hsieh.
1688
1689         Removes extraneous retains.
1690
1691         * WebView/WebView.mm:
1692         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
1693
1694 2017-04-04  Tim Horton  <timothy_horton@apple.com>
1695
1696         [Mac] -[WKWebView findMatchesForString:relativeToMatch:findOptions:maxResults:resultCollector:] invokes the resultCollector with didWrap = NO even when it wraps
1697         https://bugs.webkit.org/show_bug.cgi?id=165801
1698         <rdar://problem/29649535>
1699
1700         Reviewed by Wenson Hsieh.
1701
1702         * WebView/WebView.mm:
1703         (incrementFrame):
1704         Adjust to the new CanWrap enum.
1705
1706 2017-03-27  Joseph Pecoraro  <pecoraro@apple.com>
1707
1708         Web Inspector: Saving files should not suggest the top level directory
1709         https://bugs.webkit.org/show_bug.cgi?id=170085
1710         <rdar://problem/30197794>
1711
1712         Reviewed by Matt Baker.
1713
1714         * WebCoreSupport/WebInspectorClient.mm:
1715         (WebInspectorFrontendClient::save):
1716         Don't set panel.directoryURL unless we have a good suggestion.
1717
1718 2017-03-24  Wenson Hsieh  <wenson_hsieh@apple.com>
1719
1720         [WK2] Add a UI delegate SPI hook to enable or disable navigation on drop
1721         https://bugs.webkit.org/show_bug.cgi?id=169168
1722         <rdar://problem/30688374>
1723
1724         Reviewed by Tim Horton.
1725
1726         Refactors WebDragClient::actionMaskForDrag to take platform data only, rather than the entire DragData. See the
1727         WebCore ChangeLog entry for more details. Also renames WebDefaultUIDelegate.m to WebDefaultUIDelegate.mm, since
1728         we need to import a C++ header for linkedOnOrAfter().
1729
1730         The default delegate implementation of webView:dragDestinationActionMaskForDraggingInfo: now checks if the current
1731         application is linking against 10.12 or earlier, and if so, will allow any drag destination action instead of
1732         the new default value of everything but DragDestinationActionLoad.
1733
1734         * DefaultDelegates/WebDefaultUIDelegate.mm: Renamed from Source/WebKit/mac/DefaultDelegates/WebDefaultUIDelegate.m.
1735         (-[WebDefaultUIDelegate webView:dragDestinationActionMaskForDraggingInfo:]):
1736         * Misc/WebKitVersionChecks.h:
1737         * WebCoreSupport/WebDragClient.h:
1738         * WebCoreSupport/WebDragClient.mm:
1739         (WebDragClient::actionMaskForDrag): Deleted.
1740         * WebView/WebView.mm:
1741         (-[WebView draggingEntered:]):
1742         (-[WebView draggingUpdated:]):
1743
1744 2017-03-21  Wenson Hsieh  <wenson_hsieh@apple.com>
1745
1746         Add support for showing the platform data interaction caret
1747         https://bugs.webkit.org/show_bug.cgi?id=169898
1748         <rdar://problem/31146295>
1749
1750         Reviewed by Beth Dakin.
1751
1752         Plumb the dataInteractionCaretRect through WebView SPI to WebKit1 clients.
1753
1754         * WebView/WebView.mm:
1755         (-[WebView _dataInteractionCaretRect]):
1756         * WebView/WebViewPrivate.h:
1757
1758 2017-03-22  Dan Bernstein  <mitz@apple.com>
1759
1760         [iOS] downloadableBinaryFontsEnabled is set to false in -initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:
1761         https://bugs.webkit.org/show_bug.cgi?id=169967
1762         <rdar://problem/30406898>
1763
1764         Reviewed by Anders Carlsson.
1765
1766         * WebView/WebView.mm:
1767         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Removed call to
1768           Settings::downloadableBinaryFontsEnabled. The default is true.
1769
1770 2017-03-22  Andy Estes  <aestes@apple.com>
1771
1772         [QuickLook] Rename QuickLookHandle to PreviewLoader
1773         https://bugs.webkit.org/show_bug.cgi?id=169961
1774
1775         Reviewed by Andreas Kling.
1776
1777         * WebCoreSupport/WebFrameLoaderClient.h:
1778         * WebCoreSupport/WebFrameLoaderClient.mm:
1779         (WebFrameLoaderClient::createPreviewLoaderClient):
1780         (WebFrameLoaderClient::createQuickLookHandleClient): Deleted.
1781
1782 2017-03-21  Anders Carlsson  <andersca@apple.com>
1783
1784         Remove bogus availability annotations from DOM SPI headers.
1785         rdar://problem/31015675
1786
1787         Rubber-stamped by Dan Bernstein.
1788
1789         * DOM/DOMHTMLMediaElement.h:
1790         * DOM/DOMHTMLVideoElement.h:
1791         * DOM/DOMMediaError.h:
1792         * DOM/DOMTextEvent.h:
1793         * DOM/DOMTimeRanges.h:
1794         * DOM/DOMTokenList.h:
1795
1796 2017-03-19  Wenson Hsieh  <wenson_hsieh@apple.com>
1797
1798         Teach TextIndicator to estimate the background color of the given Range
1799         https://bugs.webkit.org/show_bug.cgi?id=169869
1800         <rdar://problem/31127272>
1801
1802         Reviewed by Anders Carlsson and Simon Fraser.
1803
1804         Plumb the estimated background color for WebKit1 clients through a new property in WebUITextIndicatorData.
1805
1806         * WebView/WebView.mm:
1807         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
1808         (-[WebUITextIndicatorData dealloc]):
1809         * WebView/WebViewPrivate.h:
1810
1811 2017-03-20  Dan Bernstein  <mitz@apple.com>
1812
1813         [Xcode] Incremental builds of WebKitLegacy are slow because of the Postprocess Headers phase
1814         https://bugs.webkit.org/show_bug.cgi?id=169861
1815
1816         Reviewed by Sam Weinig.
1817
1818         * MigrateHeaders.make: Touch the PrivateHeaders directory when migrating a header into it.
1819         * postprocess-headers.sh: Preserve the timestamp on the headers directories. Write out the
1820           timestamp file used by the Xcode project to determine whether to run the script.
1821
1822 2017-03-19  Alexey Proskuryakov  <ap@apple.com>
1823
1824         WebHTMLView is useless as WebResourceHandler
1825         https://bugs.webkit.org/show_bug.cgi?id=169857
1826
1827         Reviewed by Dan Bernstein.
1828
1829         * WebView/WebHTMLView.mm:
1830         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1831         WebHTMLView doesnt implement any of WebResourceHandler methods.
1832
1833 2017-03-17  Michael Saboff  <msaboff@apple.com>
1834
1835         Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK
1836         https://bugs.webkit.org/show_bug.cgi?id=169817
1837
1838         Reviewed by Filip Pizlo.
1839
1840         * Configurations/FeatureDefines.xcconfig:
1841
1842 2017-03-17  Antti Koivisto  <antti@apple.com>
1843
1844         Add a reload policy where only expired subresources are revalidated
1845         https://bugs.webkit.org/show_bug.cgi?id=169756
1846
1847         Reviewed by Andreas Kling.
1848
1849         * WebView/WebFrame.mm:
1850         (toWebFrameLoadType):
1851         (-[WebFrame reload]):
1852         (-[WebFrame reloadFromOrigin]):
1853
1854 2017-03-17  Wenson Hsieh  <wenson_hsieh@apple.com>
1855
1856         [WK1] Support animated transitions when performing a data interaction operation
1857         https://bugs.webkit.org/show_bug.cgi?id=169805
1858         <rdar://problem/31045767>
1859
1860         Reviewed by Beth Dakin and Megan Gardner.
1861
1862         Adds WebKit1 support for animated transitions when performing a data interaction operation. See per-method changes
1863         for more details.
1864
1865         * DOM/DOMElement.h:
1866         * DOM/DOMElement.mm:
1867         (-[DOMElement boundsInRootViewSpace]):
1868
1869         Introduce -[DOMElement boundsInRootViewSpace], which returns the bounds of the element in root view coordinates.
1870
1871         * WebCoreSupport/WebDragClient.h:
1872         (): Deleted.
1873         * WebCoreSupport/WebDragClient.mm:
1874         (WebDragClient::didConcludeEditDrag):
1875
1876         Add boilerplate plumbing.
1877
1878         * WebView/WebView.mm:
1879         (-[WebUITextIndicatorData initWithImage:textIndicatorData:scale:]):
1880
1881         Add contentImageWithoutSelection and contentImageWithoutSelectionRectInRootViewCoordinates to WebUITextIndicatorData.
1882
1883         (floatRectsForCGRectArray):
1884         (-[WebView _createImageWithPlatterForImage:boundingRect:contentScaleFactor:clippingRects:]):
1885
1886         Introduces a SPI helper method in WebView that clients can use to generate an image of a text platter given an
1887         image of some text, as well as clipping rects to apply to the image.
1888
1889         (-[WebView _dataOperationTextIndicator]):
1890
1891         Add SPI to fetch the text indicator used to drive animations for the current data operation.
1892
1893         (-[WebView _didConcludeEditDataInteraction]):
1894         * WebView/WebViewData.h:
1895         * WebView/WebViewInternal.h:
1896         * WebView/WebViewPrivate.h:
1897
1898 2017-03-16  Simon Fraser  <simon.fraser@apple.com>
1899
1900         Improve the system tracing points
1901         https://bugs.webkit.org/show_bug.cgi?id=169790
1902
1903         Reviewed by Zalan Bujtas.
1904
1905         Use a more cohesive set of system trace points that give a good overview of what
1906         WebKit is doing. Added points for resource loading, render tree building, sync messages
1907         to the web process, async image decode, WASM and fetching cookies.
1908
1909         * WebView/WebHTMLView.mm:
1910         (-[WebHTMLView drawRect:]):
1911
1912 2017-03-16  Youenn Fablet  <youenn@apple.com>
1913
1914         Wrap legacy WebRTC API in runtime flag
1915         https://bugs.webkit.org/show_bug.cgi?id=169646
1916
1917         Reviewed by Alex Christensen.
1918
1919         * WebView/WebPreferenceKeysPrivate.h:
1920         * WebView/WebPreferences.mm:
1921         (+[WebPreferences initialize]):
1922         (-[WebPreferences webRTCLegacyAPIEnabled]):
1923         (-[WebPreferences setWebRTCLegacyAPIEnabled:]):
1924         * WebView/WebPreferencesPrivate.h:
1925         * WebView/WebView.mm:
1926         (-[WebView _preferencesChanged:]):
1927
1928 2017-03-14  Megan Gardner  <megan_gardner@apple.com>
1929
1930         Correctly export WebItemProviderPasteboard
1931         https://bugs.webkit.org/show_bug.cgi?id=169578
1932
1933         Reviewed by Tim Horton.
1934
1935         * MigrateHeaders.make:
1936
1937 2017-03-14  Wenson Hsieh  <wenson_hsieh@apple.com>
1938
1939         [WK2] Data interaction tests occasionally hit assertions in debug builds
1940         https://bugs.webkit.org/show_bug.cgi?id=169002
1941         <rdar://problem/30994806>
1942
1943         Reviewed by Tim Horton.
1944
1945         Renames setIgnoreCompositionSelectionChange to setIgnoreSelectionChanges. See WebCore ChangeLog for more details.
1946
1947         * WebView/WebHTMLView.mm:
1948         (-[WebHTMLView _updateSelectionForInputManager]):
1949         * WebView/WebView.mm:
1950         (-[WebView updateTextTouchBar]):
1951
1952 2017-03-13  Anders Carlsson  <andersca@apple.com>
1953
1954         Fix build warnings.
1955
1956         * WebCoreSupport/WebInspectorClient.mm:
1957         (WebInspectorFrontendClient::save):
1958         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
1959
1960 2017-03-11  Brady Eidson  <beidson@apple.com>
1961
1962         Cleanup "addCookie" and its sole user.
1963         https://bugs.webkit.org/show_bug.cgi?id=169486
1964
1965         Reviewed by Brian Burg.
1966
1967         * WebCoreSupport/WebPlatformStrategies.h:
1968         * WebCoreSupport/WebPlatformStrategies.mm:
1969         (WebPlatformStrategies::addCookie): Deleted.
1970
1971 2017-03-10  Alex Christensen  <achristensen@webkit.org>
1972
1973         Fix watch and tv builds after r213294
1974         https://bugs.webkit.org/show_bug.cgi?id=169508
1975
1976         Reviewed by Dan Bernstein.
1977
1978         * Configurations/FeatureDefines.xcconfig:
1979
1980 2017-03-10  Alex Christensen  <achristensen@webkit.org>
1981
1982         Fix CMake build.
1983
1984         * WebView/WebNotification.h:
1985         Don't assume we have already included something that includes NSObject.h.
1986
1987 2017-03-09  Daniel Bates  <dabates@apple.com>
1988
1989         Guard Credential Management implementation behind a runtime enabled feature flag
1990         https://bugs.webkit.org/show_bug.cgi?id=169364
1991         <rdar://problem/30957425>
1992
1993         Reviewed by Brent Fulgham.
1994
1995         Add WebKit preference for Credential Management (disabled by default).
1996
1997         * WebView/WebPreferenceKeysPrivate.h:
1998         * WebView/WebPreferences.mm:
1999         (+[WebPreferences initialize]):
2000         (-[WebPreferences credentialManagementEnabled]): Added.
2001         (-[WebPreferences setCredentialManagementEnabled:]): Added.
2002         * WebView/WebPreferencesPrivate.h:
2003         * WebView/WebView.mm:
2004         (-[WebView _preferencesChanged:]):
2005
2006 2017-03-09  Anders Carlsson  <andersca@apple.com>
2007
2008         Add delegate support to WebCore
2009         https://bugs.webkit.org/show_bug.cgi?id=169427
2010         Part of rdar://problem/28880714.
2011
2012         Reviewed by Geoffrey Garen.
2013
2014         * Configurations/FeatureDefines.xcconfig:
2015         Add feature define.
2016
2017 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
2018
2019         Fix DataInteraction guards
2020         https://bugs.webkit.org/show_bug.cgi?id=169404
2021
2022         Reviewed by Wenson Hsieh.
2023
2024         * WebCoreSupport/WebDragClient.mm:
2025
2026 2017-03-08  Wenson Hsieh  <wenson_hsieh@apple.com>
2027
2028         Add plumbing for WebCore to notify WebKit2 when an edit drag has concluded
2029         https://bugs.webkit.org/show_bug.cgi?id=169392
2030         <rdar://problem/30882974>
2031
2032         Reviewed by Tim Horton.
2033
2034         Add a stub implementation of WebDragClient::didConcludeEditDrag.
2035
2036         * WebCoreSupport/WebDragClient.h:
2037
2038 2017-03-08  Anders Carlsson  <andersca@apple.com>
2039
2040         Simplify the PaymentCoordinator interface
2041         https://bugs.webkit.org/show_bug.cgi?id=169382
2042         Part of rdar://problem/28880714.
2043
2044         Reviewed by Tim Horton.
2045
2046         Update for PaymentCoordinatorClient changes.
2047
2048         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2049         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2050         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
2051         (WebPaymentCoordinatorClient::completeShippingContactSelection):
2052         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
2053         (WebPaymentCoordinatorClient::completePaymentSession):
2054
2055 2017-03-08  Megan Gardner  <megan_gardner@apple.com>
2056
2057         Fix for dependency fix
2058         https://bugs.webkit.org/show_bug.cgi?id=169369
2059
2060         Reviewed by Beth Dakin.
2061
2062         * WebView/WebViewPrivate.h:
2063
2064 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
2065
2066         Fix Project Dependency
2067         https://bugs.webkit.org/show_bug.cgi?id=169340
2068
2069         Unreviewed Dependency Fix.
2070
2071         * WebView/WebViewPrivate.h:
2072
2073 2017-03-07  Alexey Proskuryakov  <ap@apple.com>
2074
2075         WebKitLegacy should re-export symbols from WebCore on watchos and tvos
2076         https://bugs.webkit.org/show_bug.cgi?id=169341
2077         <rdar://problem/30913788>
2078
2079         Reviewed by Dan Bernstein.
2080
2081         * MigrateHeaders.make:
2082
2083 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
2084
2085         Have fixedPositionCreatesStackingContext be on by default everywhere
2086         https://bugs.webkit.org/show_bug.cgi?id=169334
2087
2088         Reviewed by Zalan Bujtas.
2089
2090         It makes no sense to have web-exposed CSS functionality be different based on setting,
2091         and other browser are now aligned with having position:fixed create stacking context.
2092
2093         So remove the fixedPositionCreatesStackingContext setting and have StyleResolver::adjustRenderStyle()
2094         always force stacking context for position:fixed.
2095
2096         * WebView/WebView.mm:
2097         (-[WebView _preferencesChanged:]):
2098
2099 2017-03-06  Simon Fraser  <simon.fraser@apple.com>
2100
2101         Initialize the subpixelAntialiasedLayerTextEnabled Setting in WebKit1
2102         https://bugs.webkit.org/show_bug.cgi?id=169230
2103
2104         Reviewed by Tim Horton.
2105
2106         * WebView/WebView.mm:
2107         (-[WebView _preferencesChanged:]):
2108
2109 2017-03-07  Simon Fraser  <simon.fraser@apple.com>
2110
2111         Enable SubpixelAntialiasedLayerTextEnabled by default on some versions of macOS
2112         https://bugs.webkit.org/show_bug.cgi?id=169329
2113
2114         Reviewed by Tim Horton.
2115
2116         If the macOS version is > 101300, enable subpixelAntialiasedLayerTextEnabled.
2117
2118         * WebView/WebPreferences.mm:
2119         (+[WebPreferences initialize]):
2120
2121 2017-03-07  Megan Gardner  <megan_gardner@apple.com>
2122
2123         Additional DataInteraction Support
2124         https://bugs.webkit.org/show_bug.cgi?id=169316
2125         <rdar://problem/30884234>
2126
2127         Reviewed by Wenson Hsieh.
2128
2129         Add stub implementations to WebView for methods that handle data interaction
2130
2131         * WebView/WebView.mm:
2132         (-[WebView _enteredDataInteraction:client:global:operation:]):
2133         (-[WebView _updatedDataInteraction:client:global:operation:]):
2134         (-[WebView _exitedDataInteraction:client:global:operation:]):
2135         (-[WebView _performDataInteraction:client:global:operation:]):
2136         (-[WebView _endedDataInteraction:global:]):
2137         * WebView/WebViewPrivate.h:
2138
2139 2017-03-07  Dean Jackson  <dino@apple.com>
2140
2141         Some platforms won't be able to create a GPUDevice
2142         https://bugs.webkit.org/show_bug.cgi?id=169314
2143         <rdar://problems/30907521>
2144
2145         Reviewed by Jon Lee.
2146
2147         Disable WEB_GPU on the iOS Simulator.
2148
2149         * Configurations/FeatureDefines.xcconfig:
2150
2151 2017-03-07  Maureen Daum  <mdaum@apple.com>
2152
2153         Correctly check for an empty database file.
2154         <rdar://problem/30542242> Removing Website Data not working (WebSQL directories being left behind)
2155         https://bugs.webkit.org/show_bug.cgi?id=169256
2156
2157         Reviewed by Brady Eidson.
2158
2159         Check if the folder for an origin's WebSQL databases is empty after trying to delete
2160         all of its files. Currently we check if the deletedDatabaseFileCount matches the number
2161         of files that were in the folder. However, when we delete the actual database file in
2162         DatabaseTracker::deleteDatabaseFileIfEmpty(), the shm and wal files get deleted along with
2163         the database file, but deletedDatabaseFileCount only gets incremented once.
2164
2165         * Storage/WebDatabaseManager.mm:
2166         (+[WebDatabaseManager removeEmptyDatabaseFiles]):
2167         Delete the folder if it is empty.
2168
2169 2017-03-06  Michael Saboff  <msaboff@apple.com>
2170
2171         Unreviewed build fix to add
2172         -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
2173         for objective C++ files.
2174
2175         * Configurations/WebKitLegacy.xcconfig:
2176
2177 2017-03-06  Michael Saboff  <msaboff@apple.com>
2178
2179         Take advantage of fast permissions switching of JIT memory for devices that support it
2180         https://bugs.webkit.org/show_bug.cgi?id=169155
2181
2182         Reviewed by Saam Barati.
2183
2184         Updated the Xcode config files to match what is in the JavaScriptCore ones.
2185
2186         * Configurations/FeatureDefines.xcconfig:
2187
2188 2017-03-06  Myles C. Maxfield  <mmaxfield@apple.com>
2189
2190         Expand font-weight and font-stretch to take any number
2191         https://bugs.webkit.org/show_bug.cgi?id=168889
2192
2193         Reviewed by Simon Fraser.
2194
2195         Migrate off old enum types.
2196
2197         * WebCoreSupport/PopupMenuMac.mm:
2198         (PopupMenuMac::populate):
2199         * WebView/WebHTMLView.mm:
2200         (fontNameForDescription):
2201         * WebView/WebView.mm:
2202         (-[WebView updateTextTouchBar]):
2203
2204 2017-03-03  Dean Jackson  <dino@apple.com>
2205
2206         Add WebGPU compile flag and experimental feature flag
2207         https://bugs.webkit.org/show_bug.cgi?id=169161
2208         <rdar://problem/30846689>
2209
2210         Reviewed by Tim Horton.
2211
2212         Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature,
2213         and an InternalSetting.
2214
2215         * Configurations/FeatureDefines.xcconfig:
2216         * WebView/WebPreferenceKeysPrivate.h:
2217         * WebView/WebPreferences.mm:
2218         (+[WebPreferences initialize]):
2219         (-[WebPreferences webGPUEnabled]):
2220         (-[WebPreferences setWebGPUEnabled:]):
2221         * WebView/WebPreferencesPrivate.h:
2222         * WebView/WebView.mm:
2223         (-[WebView _preferencesChanged:]):
2224
2225 2017-03-03  Alexey Proskuryakov  <ap@apple.com>
2226
2227         Build fix
2228         rdar://problem/30825660
2229
2230         Suggested by Dan Bernstein.
2231
2232         * Configurations/WebKitLegacy.xcconfig:
2233
2234 2017-03-02  Sam Weinig  <sam@webkit.org>
2235
2236         Rename htmlediting.h/cpp to Editing.h/cpp
2237         https://bugs.webkit.org/show_bug.cgi?id=169103
2238
2239         Reviewed by Alex Christensen.
2240
2241         * DOM/DOMUIKitExtensions.mm:
2242         * WebView/WebFrame.mm:
2243         * WebView/WebView.mm:
2244
2245 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
2246
2247         Fix 32-bit
2248         https://bugs.webkit.org/show_bug.cgi?id=169114
2249
2250         Reviewed by Alex Christensen.
2251
2252         * WebView/WebView.mm:
2253
2254 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
2255
2256         More guard fixing
2257         https://bugs.webkit.org/show_bug.cgi?id=169112
2258
2259         Reviewed by Alex Christensen.
2260
2261         Fixed an internal build.
2262
2263         * WebView/WebView.mm:
2264         * WebView/WebViewPrivate.h:
2265
2266 2017-03-02  Megan Gardner  <megan_gardner@apple.com>
2267
2268         Data Interaction build fixes
2269         https://bugs.webkit.org/show_bug.cgi?id=169096
2270
2271         Reviewed by Tim Horton.
2272
2273         Guards weren't all correct, also missed a selector name change.
2274
2275         * WebView/WebView.mm:
2276         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
2277         * WebView/WebViewData.h:
2278         * WebView/WebViewData.mm:
2279         (-[WebViewPrivate dealloc]):
2280
2281 2017-03-02  Alex Christensen  <achristensen@webkit.org>
2282
2283         Continue enabling WebRTC
2284         https://bugs.webkit.org/show_bug.cgi?id=169056
2285
2286         Reviewed by Jon Lee.
2287
2288         * Configurations/FeatureDefines.xcconfig:
2289
2290 2017-03-01  Megan Gardner  <megan_gardner@apple.com>
2291
2292         Data interaction support for WK1
2293         https://bugs.webkit.org/show_bug.cgi?id=169062
2294
2295         Reviewed by Wenson Hsieh.
2296
2297         Support for data interaction in WebKit1
2298
2299         * WebCoreSupport/WebDragClient.mm:
2300         * WebView/WebView.mm:
2301         (-[WebUITextIndicatorData initWithImage:TextIndicatorData:scale:]):
2302         (-[WebUITextIndicatorData initWithImage:scale:]):
2303         (-[WebUITextIndicatorData dealloc]):
2304         (-[WebView _requestStartDataInteraction:globalPosition:]):
2305         (-[WebView _setDataInteractionData:textIndicator:atClientPosition:anchorPoint:action:]):
2306         (-[WebView _getDataInteractionData]):
2307         * WebView/WebViewData.h:
2308         * WebView/WebViewData.mm:
2309         (-[WebViewPrivate dealloc]):
2310         * WebView/WebViewInternal.h:
2311         * WebView/WebViewPrivate.h:
2312
2313 2017-03-02  Youenn Fablet  <youenn@apple.com>
2314
2315         [WebRTC] Activate ICE candidate privacy policy
2316         https://bugs.webkit.org/show_bug.cgi?id=168975
2317
2318         Reviewed by Alex Christensen.
2319
2320         * WebView/WebPreferenceKeysPrivate.h:
2321         * WebView/WebPreferences.mm:
2322         (-[WebPreferences enumeratingAllNetworkInterfacesEnabled]):
2323         (-[WebPreferences setEnumeratingAllNetworkInterfacesEnabled:]):
2324         (-[WebPreferences iceCandidateFilteringEnabled]):
2325         (-[WebPreferences setIceCandidateFilteringEnabled:]):
2326         * WebView/WebPreferencesPrivate.h:
2327
2328 2017-03-01  Alex Christensen  <achristensen@webkit.org>
2329
2330         Unreviewed, rolling out r213259.
2331
2332         Broke an internal build
2333
2334         Reverted changeset:
2335
2336         "Continue enabling WebRTC"
2337         https://bugs.webkit.org/show_bug.cgi?id=169056
2338         http://trac.webkit.org/changeset/213259
2339
2340 2017-03-01  Alex Christensen  <achristensen@webkit.org>
2341
2342         Continue enabling WebRTC
2343         https://bugs.webkit.org/show_bug.cgi?id=169056
2344
2345         Reviewed by Jon Lee.
2346
2347         * Configurations/FeatureDefines.xcconfig:
2348
2349 2017-02-27  Alex Christensen  <achristensen@webkit.org>
2350
2351         Begin enabling WebRTC on 64-bit
2352         https://bugs.webkit.org/show_bug.cgi?id=168915
2353
2354         Reviewed by Eric Carlson.
2355
2356         * Configurations/FeatureDefines.xcconfig:
2357
2358 2017-02-27  Aakash Jain  <aakash_jain@apple.com>
2359
2360         Enable SUPPORTS_TEXT_BASED_API in WebKitLegacy for iOS
2361         https://bugs.webkit.org/show_bug.cgi?id=168919
2362
2363         Reviewed by Tim Horton.
2364
2365         * Configurations/WebKitLegacy.xcconfig: Enable SUPPORTS_TEXT_BASED_API.
2366         * migrate-headers.sh: Run the migrate-headers script for installapi phase.
2367
2368 2017-02-27  Alex Christensen  <achristensen@webkit.org>
2369
2370         [libwebrtc] Enable WebRTC in some Production Builds
2371         https://bugs.webkit.org/show_bug.cgi?id=168858
2372
2373         * Configurations/FeatureDefines.xcconfig:
2374
2375 2017-02-26  Alexey Proskuryakov  <ap@apple.com>
2376
2377         Don't import RetainPtr in WebNotification.h
2378         https://bugs.webkit.org/show_bug.cgi?id=168876
2379
2380         Reviewed by Dan Bernstein.
2381
2382         This is an Objective-C SPI header.
2383
2384         * WebView/WebNotification.h:
2385         * WebView/WebNotification.mm:
2386         (-[WebNotification initWithCoreNotification:notificationID:]):
2387         (-[WebNotification dealloc]):
2388
2389 2017-02-26  Aakash Jain  <aakash_jain@apple.com>
2390
2391         Simplify EXPORTED_SYMBOLS_FILE variables in WebKitLegacy.xcconfig
2392         https://bugs.webkit.org/show_bug.cgi?id=168819
2393
2394         Reviewed by Dan Bernstein.
2395
2396         * Configurations/WebKitLegacy.xcconfig:
2397
2398 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
2399
2400         Export Objective-C symbols for variables in Webkit SPI
2401         https://bugs.webkit.org/show_bug.cgi?id=168758
2402
2403         Reviewed by Alexey Proskuryakov.
2404
2405         * Configurations/WebKitLegacy.xcconfig: using separate .exp file for i386.
2406         * WebKit.exp: Added various Objective-C symbols.
2407
2408 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
2409
2410         Move instance members from WKQuadObject to implementation file
2411         https://bugs.webkit.org/show_bug.cgi?id=168740
2412
2413         Reviewed by Tim Horton.
2414
2415         * DOM/DOM.mm: Moving instance member to implementation file.
2416         * DOM/DOMExtensions.h: Ditto.
2417
2418 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
2419
2420         Move iOS specific symbols to WebKit.ios.exp
2421         https://bugs.webkit.org/show_bug.cgi?id=168726
2422
2423         Reviewed by Alexey Proskuryakov.
2424
2425         * WebKit.exp:
2426
2427 2017-02-21  Youenn Fablet  <youenn@apple.com>
2428
2429         [WebRTC][Mac] Activate libwebrtc
2430         https://bugs.webkit.org/show_bug.cgi?id=167293
2431         <rdar://problem/30401864>
2432
2433         Reviewed by Alex Christensen.
2434
2435         * Configurations/FeatureDefines.xcconfig:
2436
2437 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
2438
2439         Export various NSString symbols from WebFramePrivate.h
2440         https://bugs.webkit.org/show_bug.cgi?id=168702
2441
2442         Reviewed by Alexey Proskuryakov.
2443
2444         * WebKit.exp:
2445
2446 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
2447
2448         Export various NSString symbols from WebPreferencesPrivate.h
2449         https://bugs.webkit.org/show_bug.cgi?id=168701
2450
2451         Reviewed by Alexey Proskuryakov.
2452
2453         * WebKit.exp:
2454
2455 2017-02-21  Joseph Pecoraro  <pecoraro@apple.com>
2456
2457         Add missing WebConsoleMessage string key
2458         https://bugs.webkit.org/show_bug.cgi?id=168690
2459
2460         Reviewed by Alexey Proskuryakov.
2461
2462         * WebKit.exp:
2463         * WebView/WebUIDelegatePrivate.h:
2464         This key has an implementation but was not extern / exported like the others.
2465
2466 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
2467
2468         Export various NSString symbols from WebViewPrivate.h
2469         https://bugs.webkit.org/show_bug.cgi?id=168689
2470
2471         Reviewed by Alexey Proskuryakov.
2472
2473         * WebKit.exp:
2474
2475 2017-02-21  Commit Queue  <commit-queue@webkit.org>
2476
2477         Unreviewed, rolling out r212768.
2478         https://bugs.webkit.org/show_bug.cgi?id=168698
2479
2480         Rolling out since this would break other projects. (Requested
2481         by aakashjain on #webkit).
2482
2483         Reverted changeset:
2484
2485         "[iOS] Remove old WebKit1 MemoryMeasure helper."
2486         https://bugs.webkit.org/show_bug.cgi?id=168675
2487         http://trac.webkit.org/changeset/212768
2488
2489 2017-02-20  Simon Fraser  <simon.fraser@apple.com>
2490
2491         Add support to PlatformCALayer/GraphicsLayerCA for subpixel-antialiased text, with a Setting and a MiniBrowser switch
2492         https://bugs.webkit.org/show_bug.cgi?id=168620
2493         <rdar://problem/30617772>
2494
2495         Reviewed by Tim Horton.
2496
2497         * WebView/WebPreferenceKeysPrivate.h:
2498         * WebView/WebPreferences.mm:
2499         (+[WebPreferences initialize]):
2500         (-[WebPreferences subpixelAntialiasedLayerTextEnabled]):
2501         (-[WebPreferences setSubpixelAntialiasedLayerTextEnabled:]):
2502         * WebView/WebPreferencesPrivate.h:
2503
2504 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
2505
2506         Export various NSString symbols from WebUIDelegatePrivate.h
2507         https://bugs.webkit.org/show_bug.cgi?id=168679
2508
2509         Reviewed by Joseph Pecoraro.
2510
2511         * WebKit.exp:
2512
2513 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
2514
2515         Export symbols for various classes present in webkit SPI
2516         https://bugs.webkit.org/show_bug.cgi?id=168674
2517
2518         Reviewed by Dan Bernstein.
2519
2520         * WebKit.exp:
2521
2522 2017-02-21  Andreas Kling  <akling@apple.com>
2523
2524         [iOS] Remove old WebKit1 MemoryMeasure helper.
2525         <https://webkit.org/b/168675>
2526
2527         Reviewed by Sam Weinig.
2528
2529         * Configurations/WebKitLegacy.xcconfig:
2530         * Misc/WebCache.mm:
2531         (+[WebCache emptyInMemoryResources]):
2532         * WebView/WebView.mm:
2533
2534 2017-02-21  Andreas Kling  <akling@apple.com>
2535
2536         [iOS] WebKit1 should use shared memory pressure handler code.
2537         <https://webkit.org/b/168653>
2538
2539         Reviewed by Antti Koivisto.
2540
2541         Register a WebThread-aware memory callback with the shared MemoryPressureHandler
2542         and get rid of the old iOS WebKit1 specific implementation. Some of it was even
2543         dead code since MobileSafari has been using WebKit2 for quite a while.
2544
2545         * WebView/WebView.h:
2546         * WebView/WebView.mm:
2547         (WebInstallMemoryPressureHandler):
2548         (+[WebView _handleMemoryWarning]): Deleted.
2549         (+[WebView registerForMemoryNotifications]): Deleted.
2550         (+[WebView releaseFastMallocMemoryOnCurrentThread]): Deleted.
2551         (+[WebView garbageCollectNow]): Deleted.
2552         (+[WebView purgeInactiveFontData]): Deleted.
2553         (+[WebView drainLayerPool]): Deleted.
2554         (+[WebView discardAllCompiledCode]): Deleted.
2555         (+[WebView _clearMemoryPressure]): Deleted.
2556         (+[WebView _shouldWaitForMemoryClearMessage]): Deleted.
2557         * WebView/WebViewPrivate.h:
2558
2559 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
2560
2561         Stop exporting interface WebCoreScrollView on iOS
2562         https://bugs.webkit.org/show_bug.cgi?id=168536
2563
2564         Reviewed by Dan Bernstein.
2565
2566         * WebKit.exp: Moved symbol for WebCoreScrollView interface to mac specific file.
2567         * WebKit.mac.exp: Ditto.
2568         * WebView/WebHTMLView.mm: WebCoreScrollView shouldn't be defined for iOS platform.
2569
2570 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
2571
2572         Exclude various mac-specific header files from iOS build
2573         https://bugs.webkit.org/show_bug.cgi?id=168621
2574
2575         Reviewed by Dan Bernstein.
2576
2577         * Configurations/WebKitLegacy.xcconfig:
2578
2579 2017-02-20  Wenson Hsieh  <wenson_hsieh@apple.com>
2580
2581         Add plumbing to the UI process for TextIndicatorData when computing the drag image
2582         https://bugs.webkit.org/show_bug.cgi?id=168583
2583         Work towards <rdar://problem/30313681>
2584
2585         Accounts for changes in WebCore -- see Source/WebCore/ChangeLog for more details.
2586
2587         Reviewed by Tim Horton.
2588
2589         * WebView/WebHTMLView.mm:
2590         (-[WebHTMLView _selectionDraggingImage]):
2591         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
2592
2593 2017-02-17  Anders Carlsson  <andersca@apple.com>
2594
2595         Add a new drag code path and use it for dragging plain text
2596         https://bugs.webkit.org/show_bug.cgi?id=168534
2597
2598         Reviewed by Geoffrey Garen.
2599
2600         * WebCoreSupport/WebDragClient.h:
2601         Add new members.
2602
2603         * WebCoreSupport/WebDragClient.mm:
2604         (WebDragClient::useLegacyDragClient):
2605         Return false here.
2606
2607         (WebDragClient::beginDrag):
2608         New client member function. Create an NSDraggingItem and use it to begin a dragging session.
2609
2610         * WebView/WebHTMLView.mm:
2611         (-[WebHTMLView draggingSession:sourceOperationMaskForDraggingContext:]):
2612         Get the source operation mask from WebCore.
2613
2614         (-[WebHTMLView draggingSession:endedAtPoint:operation:]):
2615         Send a fake mouse up event.
2616
2617         * WebView/WebHTMLViewInternal.h:
2618         Declare that WebHTMLView conforms to NSDraggingSource.
2619
2620 2017-02-20  Alexey Proskuryakov  <ap@apple.com>
2621
2622         List of WebCore symbols to re-export from WebKitLegacy should be built automatically
2623         https://bugs.webkit.org/show_bug.cgi?id=168342
2624         rdar://problem/26182266
2625
2626         Reviewed by Tim Horton.
2627
2628         * MigrateHeaders.make: On iOS only, process re-exported headers to build a list of
2629         symbols to re-export.
2630
2631 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
2632
2633         Stop exporting DOMTokenList from WebKit
2634         https://bugs.webkit.org/show_bug.cgi?id=168544
2635
2636         Reviewed by Alexey Proskuryakov.
2637
2638         * WebKit.exp:
2639
2640 2017-02-20  Alexey Proskuryakov  <ap@apple.com>
2641
2642         Clean up how WebKit exports _WebCreateFragment
2643         https://bugs.webkit.org/show_bug.cgi?id=168579
2644
2645         Reviewed by Dan Bernstein.
2646
2647         * WebCoreSupport/WebCreateFragmentInternal.h: Added a private header.
2648         * WebCoreSupport/WebEditorClient.mm: Include the new header that declares _WebCreateFragment.
2649
2650 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
2651
2652         Stop exporting DOMNodeFilter
2653         https://bugs.webkit.org/show_bug.cgi?id=168542
2654
2655         Reviewed by Alexey Proskuryakov.
2656
2657         * WebKit.exp:
2658
2659 2017-02-20  Manuel Rego Casasnovas  <rego@igalia.com>
2660
2661         [css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT
2662         https://bugs.webkit.org/show_bug.cgi?id=167693
2663
2664         Reviewed by Sergio Villar Senin.
2665
2666         * Configurations/FeatureDefines.xcconfig:
2667         * WebView/WebPreferences.mm:
2668         (+[WebPreferences initialize]):
2669         * WebView/WebView.mm:
2670         (-[WebView _preferencesChanged:]):
2671
2672 2017-02-15  Brady Eidson  <beidson@apple.com>
2673
2674         Stop backing up localStorage databases to iCloud by default.
2675         <rdar://problem/29045531> and https://bugs.webkit.org/show_bug.cgi?id=168388
2676
2677         Reviewed by Geoffrey Garen.
2678
2679         * Misc/WebKitVersionChecks.h:
2680         * Misc/WebKitVersionChecks.mm: Renamed from Source/WebKit/mac/Misc/WebKitVersionChecks.m.
2681         (WebKitLinkedOnOrAfter):
2682         (setWebKitLinkTimeVersion):
2683         (WebKitLinkTimeVersion):
2684         (linkedOnOrAfter):
2685
2686         * Storage/WebStorageManager.mm:
2687         (WebKitInitializeStorageIfNecessary):
2688
2689 2017-02-16  Daniel Bates  <dabates@apple.com>
2690
2691         Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr)
2692         https://bugs.webkit.org/show_bug.cgi?id=168417
2693         <rdar://problem/30541748>
2694
2695         Reviewed by Brent Fulgham.
2696
2697         Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a
2698         Widget* as it is always called with a valid Widget.
2699
2700         * WebCoreSupport/WebFrameLoaderClient.h:
2701         * WebCoreSupport/WebFrameLoaderClient.mm:
2702         (WebFrameLoaderClient::redirectDataToPlugin):
2703         * WebKit.order: Remove symbol for WebFrameLoaderClient::redirectDataToPlugin() that took a Widget*
2704         as it no longer exists. I am unclear if this file is still meaningful as it was last modified in
2705         r180570 (2 years ago) though Xcode still references this ordering file (why?).
2706
2707 2017-02-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2708
2709         [JSC] Drop PassRefPtr in inspector/
2710         https://bugs.webkit.org/show_bug.cgi?id=168420
2711
2712         Reviewed by Alex Christensen.
2713
2714         * WebView/WebScriptDebugger.mm:
2715         (WebScriptDebugger::handlePause):
2716
2717 2017-02-16  Simon Fraser  <simon.fraser@apple.com>
2718
2719         Clean up use of some CALayer-related SPI
2720         https://bugs.webkit.org/show_bug.cgi?id=168401
2721
2722         Reviewed by Tim Horton.
2723
2724         Include CALayer.h not CATiledLayer.h.
2725
2726         * WebInspector/WebNodeHighlight.h:
2727
2728 2017-02-15  Wenson Hsieh  <wenson_hsieh@apple.com>
2729
2730         Fix the build after r212379
2731
2732         Rubber-stamped by Anders Carlsson.
2733
2734         * WebCoreSupport/WebDragClient.mm:
2735         (WebDragClient::startDrag):
2736
2737 2017-02-15  Anders Carlsson  <andersca@apple.com>
2738
2739         Modernize DragClient::startDrag somewhat
2740         https://bugs.webkit.org/show_bug.cgi?id=168379
2741
2742         Reviewed by Tim Horton.
2743
2744         Update for WebCore changes.
2745
2746         * WebCoreSupport/WebDragClient.h:
2747         * WebCoreSupport/WebDragClient.mm:
2748         (WebDragClient::startDrag):
2749
2750 2017-02-14  Dean Jackson  <dino@apple.com>
2751
2752         Rename preferLowPowerWebGLRendering setting to forceWebGLUsesLowPower
2753         https://bugs.webkit.org/show_bug.cgi?id=168339
2754
2755         Reviewed by Simon Fraser.
2756
2757         Use a better name.
2758
2759         * WebView/WebPreferenceKeysPrivate.h:
2760         * WebView/WebPreferences.mm:
2761         (+[WebPreferences initialize]):
2762         (-[WebPreferences forceLowPowerGPUForWebGL]):
2763         (-[WebPreferences setForceLowPowerGPUForWebGL:]):
2764         (-[WebPreferences preferLowPowerWebGLRendering]): Deleted.
2765         (-[WebPreferences setPreferLowPowerWebGLRendering:]): Deleted.
2766         * WebView/WebPreferencesPrivate.h:
2767         * WebView/WebView.mm:
2768         (-[WebView _preferencesChanged:]):
2769
2770 2017-02-14  Chris Dumez  <cdumez@apple.com>
2771
2772         HTML Form Validation bubble should take minimum font size setting into consideration
2773         https://bugs.webkit.org/show_bug.cgi?id=168271
2774         <rdar://problem/29869869>
2775
2776         Reviewed by Simon Fraser.
2777
2778         * WebView/WebView.mm:
2779         (-[WebView _contentsOfUserInterfaceItem:]):
2780         Return font size used in the validation bubble.
2781
2782         (-[WebView showFormValidationMessage:withAnchorRect:]):
2783         Pass minimum font size setting when constructing the validation bubble.
2784
2785 2017-02-14  Anders Carlsson  <andersca@apple.com>
2786
2787         Remove an unused delegate method
2788         https://bugs.webkit.org/show_bug.cgi?id=168328
2789
2790         Reviewed by Wenson Hsieh.
2791
2792         * DefaultDelegates/WebDefaultUIDelegate.m:
2793         (-[WebDefaultUIDelegate webView:shouldBeginDragForElement:dragImage:mouseDownEvent:mouseDraggedEvent:]): Deleted.
2794
2795 2017-02-14  Alexey Proskuryakov  <ap@apple.com>
2796
2797         WebCore shouldn't export SystemMemory.h
2798         https://bugs.webkit.org/show_bug.cgi?id=168285
2799
2800         Reviewed by Alex Christensen.
2801
2802         * MigrateHeaders.make: And WebKit shouldn't re-export it.
2803
2804 2017-02-13  Alexey Proskuryakov  <ap@apple.com>
2805
2806         WebKit shouldn't re-export ScrollTypes.h and WebCoreFrameView.h
2807         https://bugs.webkit.org/show_bug.cgi?id=168282
2808
2809         Reviewed by Dan Bernstein.
2810
2811         * MigrateHeaders.make:
2812
2813 2017-02-12  Dan Bernstein  <mitz@apple.com>
2814
2815         Tried to fix USE(APPLE_INTERNAL_SDK) builds after r212211.
2816
2817         * WebView/WebHTMLView.mm:
2818         (createShareMenuItem): Use non-deprecated method.
2819
2820 2017-02-12  Dan Bernstein  <mitz@apple.com>
2821
2822         [Cocoa] Some -respondsToSelector: checks are unnecessary
2823         https://bugs.webkit.org/show_bug.cgi?id=168183
2824
2825         Reviewed by Tim Horton.
2826
2827         * WebView/WebFullScreenController.mm:
2828         (-[WebFullScreenController applicationDidResignActive:]): Removed check whether NSWindow
2829           responds to -isOnActiveSpace.
2830         (-[WebFullScreenController exitFullScreen]): Ditto.
2831         (-[WebFullScreenController _updateMenuAndDockForFullScreen]): Removed check whether
2832           NSApplication responds to -setPresentationOptions.
2833
2834         * WebView/WebHTMLView.mm:
2835         (createShareMenuItem): Removed unnecessary -respondsToSelector: check.
2836         (-[WebHTMLView otherMouseDown:]): Ditto.
2837
2838         * WebView/WebImmediateActionController.mm:
2839         (-[WebImmediateActionController _clearImmediateActionState]): Ditto.
2840         (-[WebImmediateActionController _animationControllerForDataDetectedText]): Ditto.
2841
2842         * WebView/WebView.mm:
2843         (-[WebView _didStartProvisionalLoadForFrame:]): Removed redundant nil check.
2844         (+[WebView _setCacheModel:]): Removed unnecessary -respondsToSelector: check.
2845
2846 2017-02-10  Daniel Bates  <dabates@apple.com>
2847
2848         Detach frame from document when entering page cache
2849         https://bugs.webkit.org/show_bug.cgi?id=166774
2850         <rdar://problem/29904368>
2851
2852         Reviewed by Chris Dumez.
2853
2854         * WebView/WebPreferenceKeysPrivate.h:
2855         * WebView/WebPreferences.mm:
2856         (+[WebPreferences initialize]):
2857         (-[WebPreferences allowsPageCacheWithWindowOpener]): Deleted.
2858         (-[WebPreferences setAllowsPageCacheWithWindowOpener:]): Deleted.
2859         * WebView/WebPreferencesPrivate.h:
2860         * WebView/WebView.mm:
2861         (-[WebView _preferencesChanged:]):
2862
2863 2017-02-10  Joseph Pecoraro  <pecoraro@apple.com>
2864
2865         [Resource Timing] Enable Resource Timing by default in Tests
2866         https://bugs.webkit.org/show_bug.cgi?id=168145
2867
2868         Reviewed by Ryosuke Niwa.
2869
2870         * WebView/WebPreferenceKeysPrivate.h:
2871         * WebView/WebPreferences.mm:
2872         (+[WebPreferences initialize]):
2873         (-[WebPreferences resourceTimingEnabled]):
2874         (-[WebPreferences setResourceTimingEnabled:]):
2875         * WebView/WebPreferencesPrivate.h:
2876         * WebView/WebView.mm:
2877         (-[WebView _preferencesChanged:]):
2878
2879 2017-02-10  Aakash Jain  <aakash_jain@apple.com>
2880
2881         cleanup WebLocalizableStrings.
2882         https://bugs.webkit.org/show_bug.cgi?id=168078
2883
2884         Reviewed by Alexey Proskuryakov.
2885
2886         * Misc/WebLocalizableStrings.h: Make visibility hidden for WebLocalizableStringsBundle 
2887         as it's for each framework's own consumption, and never needs to be exported.
2888
2889 2017-02-10  Aakash Jain  <aakash_jain@apple.com>
2890
2891         WebResourceLoadDelegatePrivate.h cannot be imported standalone
2892         https://bugs.webkit.org/show_bug.cgi?id=168096
2893
2894         Reviewed by Alexey Proskuryakov.
2895
2896         * WebView/WebResourceLoadDelegatePrivate.h: Change WebNSInteger to NSInteger. 
2897
2898 2017-02-09  Antti Koivisto  <antti@apple.com>
2899
2900         Remove most cases of #if ENABLE(CACHE_PARTITIONING)
2901         https://bugs.webkit.org/show_bug.cgi?id=167990
2902
2903         Reviewed by Sam Weinig.
2904
2905         * Misc/WebCache.mm:
2906         (+[WebCache addImageToCache:forURL:forFrame:]):
2907         (+[WebCache removeImageFromCacheForURL:forFrame:]):
2908         * WebCoreSupport/WebSystemInterface.mm:
2909         (InitWebCoreSystemInterface):
2910
2911 2017-02-07  Alexey Proskuryakov  <ap@apple.com>
2912
2913         Don't migrate WebKit DOM headers in MigrateHeaders.make
2914         https://bugs.webkit.org/show_bug.cgi?id=167608
2915
2916         Reviewed by Darin Adler.
2917
2918         Stop migrating DOM headers that are now in WebKit.
2919
2920         * DOM/DOMDOMImplementation.h: Removed.
2921         * DOM/DOMDOMImplementation.mm: Removed.
2922         * DOM/DOMDOMImplementationInternal.h: Removed.
2923         * DOM/DOMDOMTokenList.h: Removed.
2924         * DOM/DOMDOMTokenList.mm: Removed.
2925         * DOM/DOMDOMTokenListInternal.h: Removed.
2926         * DOM/DOMImplementation.h: Copied from Source/WebKit/mac/DOM/DOMDOMImplementation.h.
2927         * DOM/DOMImplementation.mm: Copied from Source/WebKit/mac/DOM/DOMDOMImplementation.mm.
2928         * DOM/DOMImplementationInternal.h: Copied from Source/WebKit/mac/DOM/DOMDOMImplementationInternal.h.
2929         * DOM/DOMTokenList.h: Copied from Source/WebKit/mac/DOM/DOMDOMTokenList.h.
2930         * DOM/DOMTokenList.mm: Copied from Source/WebKit/mac/DOM/DOMDOMTokenList.mm.
2931         * DOM/DOMTokenListInternal.h: Copied from Source/WebKit/mac/DOM/DOMDOMTokenListInternal.h.
2932         As the files are not in WebCore any more, there is no need to differentiate from
2933         WebCore internal headers with the same name. This makes it possible to make these
2934         headers private using Xcode mechanisms, as opposed to copying with a shell script.
2935
2936         * DOM/DOMElement.mm: Removed "using namespace WebCore". Other DOM implementation
2937         files don't have it.
2938
2939         * DOM/DOMCore.h:
2940         * DOM/DOMDocument.mm:
2941         * DOM/DOMHTMLAnchorElement.mm:
2942         * DOM/DOMHTMLAreaElement.mm:
2943         * DOM/DOMHTMLLinkElement.mm:
2944         * DOM/DOMUtility.mm:
2945         No more "DOMDOM".
2946
2947         * WebKit.exp:
2948         No more "DOMDOM". DOMDOMTokenList was not directly exposed via an SPI header, so
2949         renaming it is likely to be safe.
2950
2951         * MigrateHeaders.make: Don't migrate WebKit headers.
2952
2953         * Configurations/WebKitLegacy.xcconfig: Don't include two iOS specific SPI headers
2954         on macOS.
2955
2956 2017-02-08  Aakash Jain  <aakash_jain@apple.com>
2957
2958         Don't re-export PluginData.h from WebKit
2959         https://bugs.webkit.org/show_bug.cgi?id=168020
2960
2961         Reviewed by Alexey Proskuryakov.
2962
2963         * MigrateHeaders.make: Removed PluginData.h
2964
2965 2017-02-08  Aakash Jain  <aakash_jain@apple.com>
2966
2967         Don't re-export WKUtilities.h from WebKit
2968         https://bugs.webkit.org/show_bug.cgi?id=167977
2969
2970         Reviewed by Alexey Proskuryakov.
2971
2972         * MigrateHeaders.make: Removed WKUtilities.h
2973
2974 2017-02-06  Alex Christensen  <achristensen@webkit.org>
2975
2976         credentials should be partitioned by main document domain
2977         https://bugs.webkit.org/show_bug.cgi?id=166998
2978         rdar://problem/22901123
2979
2980         Reviewed by Brady Eidson.
2981
2982         * Misc/WebDownload.mm:
2983         * Plugins/WebBaseNetscapePluginView.mm:
2984         (WebKit::getAuthenticationInfo):
2985         Don't use partitioned credentials for WebKit1 plugins or downloads.
2986         Downloads should be authenticated before becoming a download anyways.
2987
2988 2017-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
2989
2990         Rename AnimationController to CSSAnimationController
2991         https://bugs.webkit.org/show_bug.cgi?id=167829
2992
2993         Reviewed by Simon Fraser.
2994
2995         * WebView/WebFrame.mm:
2996         * WebView/WebView.mm:
2997
2998 2017-02-03  Chris Dumez  <cdumez@apple.com>
2999
3000         Dismiss HTML form validation popover when pressing Escape key
3001         https://bugs.webkit.org/show_bug.cgi?id=167716
3002         <rdar://problem/29872943>
3003
3004         Reviewed by Simon Fraser.
3005
3006         Override ValidationMessageClient::hideAnyValidationMessage().
3007
3008         * WebCoreSupport/WebValidationMessageClient.h:
3009         * WebCoreSupport/WebValidationMessageClient.mm:
3010         (WebValidationMessageClient::hideAnyValidationMessage):
3011
3012 2017-02-02  Wenson Hsieh  <wenson_hsieh@apple.com>
3013
3014         Drag images should be anchored to the mouse location
3015         https://bugs.webkit.org/show_bug.cgi?id=167690
3016         <rdar://problem/30295261>
3017
3018         Reviewed by Enrica Casucci.
3019
3020         Adds some plumbing for the anchor point in the WK1 client layer.
3021
3022         * WebCoreSupport/WebDragClient.h:
3023         * WebCoreSupport/WebDragClient.mm:
3024         (WebDragClient::startDrag):
3025
3026 2017-02-02  Chris Dumez  <cdumez@apple.com>
3027
3028         Rename Node::inDocument() to isConnected()
3029         https://bugs.webkit.org/show_bug.cgi?id=167743
3030
3031         Reviewed by Sam Weinig.
3032
3033         Rename Node::inDocument() to isConnected() to match the DOM specification more closely:
3034         - https://dom.spec.whatwg.org/#connected
3035
3036         * DOM/DOMNode.mm:
3037         (-[DOMNode isConnected]):
3038         * WebView/WebFrame.mm:
3039         (-[WebFrame selectNSRange:onElement:]):
3040
3041 2017-02-02  Chris Dumez  <cdumez@apple.com>
3042
3043         [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage()
3044         https://bugs.webkit.org/show_bug.cgi?id=167738
3045         <rdar://problem/30229990>
3046
3047         Reviewed by Andreas Kling.
3048
3049         The BackForwardClient no longer needs to worry about removing HistoryItems
3050         from the PageCache now that WebCore takes care of it.
3051
3052         * History/BackForwardList.mm:
3053         (BackForwardList::close):
3054
3055 2017-02-02  Yongjun Zhang  <yongjun_zhang@apple.com>
3056
3057         In iOS, we should take background assertion when accessing localstorage databases.
3058         https://bugs.webkit.org/show_bug.cgi?id=165478
3059
3060         Move database transaction background task handling code from WebDatabaseManager to
3061         WebCore's WebSQLiteDatabaseTrackerClient.
3062
3063         Reviewed by Brady Eidson.
3064
3065         * Storage/WebDatabaseManager.mm:
3066         * Storage/WebDatabaseManagerInternal.h: Remove a category for background task handling.
3067         * WebCoreSupport/WebApplicationCache.mm:
3068         (+[WebApplicationCache initializeWithBundleIdentifier:]): Use WebCore::WebSQLiteDatabaseTrackerClient.
3069         * WebView/WebView.mm:
3070         (-[WebView _commonInitializationWithFrameName:groupName:]): Ditto.
3071
3072 2017-02-01  Wenson Hsieh  <wenson_hsieh@apple.com>
3073
3074         [WK1] Allow the drag client to be initialized on platforms that do not support drag and drop
3075         https://bugs.webkit.org/show_bug.cgi?id=167695
3076         <rdar://problem/30305390>
3077
3078         Reviewed by Sam Weinig.
3079
3080         Due to the common codepath for destroying the drag client, we need to ensure that the drag client actually
3081         exists, even on platforms that do not support drag and drop, in order to avoid crashing when the DragController
3082         is destroyed.
3083
3084         * WebView/WebView.mm:
3085         (-[WebView _commonInitializationWithFrameName:groupName:]):
3086
3087 2017-01-31  Joseph Pecoraro  <pecoraro@apple.com>
3088
3089         ld: warning: instance method '_setAutofilled:' in category conflicts with same method from another category
3090         https://bugs.webkit.org/show_bug.cgi?id=167684
3091
3092         Reviewed by Dan Bernstein.
3093
3094         * DOM/DOMHTML.mm:
3095         (-[DOMHTMLInputElement _isAutofilled]): Deleted.
3096         (-[DOMHTMLInputElement _setAutofilled:]): Deleted.
3097         Consolidate in the WebDOMOperationsPrivate category.
3098
3099         * DOM/DOMPrivate.h:
3100         Include WebDOMOperationsPrivate header to get other DOM Private categories.
3101
3102         * DOM/WebDOMOperations.mm:
3103         (-[DOMHTMLInputElement _isAutofilled]):
3104         * DOM/WebDOMOperationsPrivate.h:
3105         Include getter alongside the setter.
3106
3107 2017-01-31  Jessie Berlin  <jberlin@webkit.org>
3108
3109         Build fix.
3110
3111         * Misc/WebNSPasteboardExtras.mm:
3112         (+[NSPasteboard _web_setFindPasteboardString:withOwner:]):
3113         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
3114         * WebView/WebHTMLView.mm:
3115         (-[WebHTMLView _fontAttributesFromFontPasteboard]):
3116         (-[WebHTMLView copyFont:]):
3117
3118 2017-01-30  Andy Estes  <aestes@apple.com>
3119
3120         [QuickLook] FrameLoaderClient should return the new QuickLookHandleClient it creates
3121         https://bugs.webkit.org/show_bug.cgi?id=167625
3122
3123         Reviewed by Andreas Kling.
3124
3125         * WebCoreSupport/WebFrameLoaderClient.h: Declared createQuickLookHandleClient().
3126         * WebCoreSupport/WebFrameLoaderClient.mm:
3127         (WebFrameLoaderClient::createQuickLookHandleClient): Renamed from didCreateQuickLookHandle().
3128         (WebFrameLoaderClient::didCreateQuickLookHandle): Renamed to createQuickLookHandleClient().
3129
3130 2017-01-30  Chris Dumez  <cdumez@apple.com>
3131
3132         Drop legacy Attributes.isId attribute
3133         https://bugs.webkit.org/show_bug.cgi?id=167603
3134
3135         Reviewed by Ryosuke Niwa.
3136
3137         Keep Attr.isId in ObjC bindings.
3138
3139         * DOM/DOMAttr.mm:
3140         (-[DOMAttr isId]):
3141
3142 2017-01-30  Andreas Kling  <akling@apple.com>
3143
3144         [macOS] WebHTMLView has an internal retain cycle with its flagsChangedEventMonitor.
3145         <https://webkit.org/b/167580>
3146
3147         Reviewed by Antti Koivisto.
3148
3149         Avoid the implicit strong capture of self by keeping it in a __block variable.
3150         Also add code to dealloc to unregister the event monitor, since it will otherwise leak.
3151         This fixes huge WebHTMLView leaks seen on the leaks bot.
3152
3153         * WebView/WebHTMLView.mm:
3154         (-[WebHTMLViewPrivate dealloc]):
3155         (-[WebHTMLView viewDidMoveToWindow]):
3156
3157 2017-01-29  Andy Estes  <aestes@apple.com>
3158
3159         [QuickLook] Add a WebPreference to enable saving QuickLook documents in WebKitLegacy
3160         https://bugs.webkit.org/show_bug.cgi?id=167563
3161         <rdar://problem/30253207>
3162
3163         Reviewed by Andreas Kling.
3164
3165         Instead of only saving QuickLook documents to a temporary file when the client is
3166         MobileSafari, base this decision on a WebPreference that clients can choose to enable.
3167
3168         This also changes the SPI for accessing the temporary file path and UTI. Instead of
3169         -[WebView quickLookContentForURL:], which requires the client to pass the response URL of
3170         the frame that saved the QuickLook document, the content dictionary is now stored as a
3171         property of WebDataSource.
3172
3173         This also removes the manual lifetime management of the QLPreviewConverter from
3174         QuickLookDocumentWriter. The QLPreviewConverter is kept alive by DocumentLoader these days,
3175         which ensures it lives long enough to respond to subresource requests.
3176
3177         New API test: QuickLook.LegacyQuickLookContent
3178
3179         * WebCoreSupport/WebFrameLoaderClient.mm:
3180         (WebFrameLoaderClient::didCreateQuickLookHandle): Moved the logic of deciding whether to
3181         write a temporary file to here from the QuickLookDocumentWriter constructor.
3182         * WebView/WebDataSource.mm: Declared _quickLookContent.
3183         (-[WebDataSource _quickLookContent]):
3184         (-[WebDataSource _setQuickLookContent:]):
3185         * WebView/WebDataSourceInternal.h: Overrode _quickLookContent as a read/write property.
3186         * WebView/WebDataSourcePrivate.h: Declared _quickLookContent as a readonly property.
3187         * WebView/WebPreferenceKeysPrivate.h: Defined WebKitQuickLookDocumentSavingPreferenceKey.
3188         * WebView/WebPreferences.mm:
3189         (-[WebPreferences quickLookDocumentSavingEnabled]):
3190         (-[WebPreferences setQuickLookDocumentSavingEnabled:]):
3191         * WebView/WebPreferencesPrivate.h: Declared property quickLookDocumentSavingEnabled.
3192         * WebView/WebView.mm:
3193         (-[WebView quickLookContentForURL:]): Changed to always return nil.
3194         * WebView/WebViewPrivate.h: Added a comment stating that clients should use
3195         -[WebDataSource _quickLookContent] instead.
3196
3197 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
3198
3199         Add Link Preload as an off-by-default experimental feature menu item.
3200         https://bugs.webkit.org/show_bug.cgi?id=167201
3201
3202         Reviewed by Ryosuke Niwa.
3203
3204         * WebView/WebPreferenceKeysPrivate.h:
3205         * WebView/WebPreferences.mm:
3206         (-[WebPreferences linkPreloadEnabled]):
3207         (-[WebPreferences setLinkPreloadEnabled:]):
3208         * WebView/WebPreferencesPrivate.h:
3209         * WebView/WebView.mm:
3210         (-[WebView _preferencesChanged:]):
3211
3212 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
3213
3214         Add User Timing Experimental Feature
3215         https://bugs.webkit.org/show_bug.cgi?id=167542
3216         <rdar://problem/22746307>
3217
3218         Reviewed by Ryosuke Niwa.
3219
3220         * WebView/WebPreferenceKeysPrivate.h:
3221         * WebView/WebPreferences.mm:
3222         (+[WebPreferences initialize]):
3223         (-[WebPreferences userTimingEnabled]):
3224         (-[WebPreferences setUserTimingEnabled:]):
3225         * WebView/WebPreferencesPrivate.h:
3226         * WebView/WebView.mm:
3227         (-[WebView _preferencesChanged:]):
3228         Add setting for User Timing runtime enabled feature.
3229
3230 2017-01-27  Wenson Hsieh  <wenson_hsieh@apple.com>
3231
3232         [WK1] Do not prevent the drag client from initializing on Mac
3233         https://bugs.webkit.org/show_bug.cgi?id=167541
3234
3235         Reviewed by Dan Bernstein.
3236
3237         Fixes fallout from r211192. To ensure compability with WebKit clients, we need to ensure that WebDragClient is
3238         initialized everywhere when creating a WebView. Stub out method implementations as no-ops for non-Mac platforms.
3239         This caused certain clients, such as Mail, to crash when a webView closes due to  null dereference.
3240
3241         * WebCoreSupport/WebDragClient.mm:
3242         (WebDragClient::WebDragClient):
3243         (WebDragClient::actionMaskForDrag):
3244         (WebDragClient::willPerformDragDestinationAction):
3245         (WebDragClient::dragSourceActionMaskForPoint):
3246         (WebDragClient::willPerformDragSourceAction):
3247         (WebDragClient::startDrag):
3248         (WebDragClient::declareAndWriteDragImage):
3249         (WebDragClient::declareAndWriteAttachment):
3250         * WebView/WebView.mm:
3251         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3252
3253 2017-01-26  Chris Dumez  <cdumez@apple.com>
3254
3255         Crash when navigating back to a page in PacheCache when one of its frames has been removed
3256         https://bugs.webkit.org/show_bug.cgi?id=167421
3257         <rdar://problem/30188490>
3258
3259         Reviewed by Darin Adler.
3260
3261         Add a new setting allowing layout tests to enable PageCache in a window
3262         that has an opener, for convenience.
3263
3264         * WebView/WebPreferenceKeysPrivate.h:
3265         * WebView/WebPreferences.mm:
3266         (+[WebPreferences initialize]):
3267         (-[WebPreferences allowsPageCacheWithWindowOpener]):
3268         (-[WebPreferences setAllowsPageCacheWithWindowOpener:]):
3269         * WebView/WebPreferencesPrivate.h:
3270         * WebView/WebView.mm:
3271         (-[WebView _preferencesChanged:]):
3272
3273 2017-01-26  Keith Miller  <keith_miller@apple.com>
3274
3275         classInfo should take a VM so it is not materialized from the object on each call
3276         https://bugs.webkit.org/show_bug.cgi?id=167424
3277
3278         Rubber Stamped by Michael Saboff.
3279
3280         Previously, classInfo() would get the VM from the target's
3281         MarkedBlock.  Most callers already have a VM on hand, so it is
3282         wasteful to compute the VM from the marked block every time. This
3283         patch refactors some of the most common callers of classInfo(),
3284         jsDynamicCast and inherits to take a VM as well.
3285
3286         * DOM/DOM.mm:
3287         (+[DOMNode _nodeFromJSWrapper:]):
3288         * DOM/DOMUtility.mm:
3289         (createDOMWrapper):
3290         * DOM/WebDOMOperations.mm:
3291         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3292         (WebKit::getObjectID):
3293         (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
3294         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
3295         * Plugins/Hosted/ProxyInstance.mm:
3296         (WebKit::ProxyRuntimeMethod::finishCreation):
3297         (WebKit::ProxyInstance::invokeMethod):
3298         * Plugins/Hosted/ProxyRuntimeObject.mm:
3299         (WebKit::ProxyRuntimeObject::finishCreation):
3300         * WebView/WebFrame.mm:
3301         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
3302         * WebView/WebView.mm:
3303         (+[WebView _reportException:inContext:]):
3304         (aeDescFromJSValue):
3305         (-[WebView _notificationIDForTesting:]):
3306
3307 2017-01-26  Wenson Hsieh  <wenson_hsieh@apple.com>
3308
3309         REGRESSION (r207483): Touch Bar: Lists and BIU Buttons Missing from Touch Bar in HTML Notes
3310         https://bugs.webkit.org/show_bug.cgi?id=167472
3311         <rdar://problem/30149809>
3312
3313         Reviewed by Beth Dakin.
3314
3315         Revision 207483 caused the touch bar to stop showing up in HTML Notes due to -updateTextTouchBar not
3316         initializing the text touch bar and causing -makeTouchBar to return nil while processing a mouse click. The
3317         purpose of bailing out of the update was to prevent the text touch bar from thrashing during a selection drag.
3318         If the text touch bar doesn't exist yet, we don't have to worry about its appearance flickering from a different
3319         previous state, so we should just allow the touch bar to update instead.
3320
3321         * WebView/WebView.mm:
3322         (-[WebView updateTextTouchBar]):
3323
3324 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
3325
3326         Crash when setting custom scale factor.
3327         https://bugs.webkit.org/show_bug.cgi?id=167369
3328
3329         Reviewed by Sam Weinig.
3330
3331         Add null pointer check.
3332
3333         * WebView/WebView.mm:
3334         (-[WebView _setCustomBackingScaleFactor:]):
3335
3336 2017-01-25  Wenson Hsieh  <wenson_hsieh@apple.com>
3337
3338         Refactor drag and drop implementation on Mac
3339         https://bugs.webkit.org/show_bug.cgi?id=167427
3340
3341         Reviewed by Enrica Casucci.
3342
3343         Refactor some WebKit1 code on the Mac pertaining to drag and drop. See WebCore ChangeLog for more details.
3344
3345         * Misc/WebNSPasteboardExtras.h:
3346         * WebCoreSupport/WebDragClient.mm:
3347         * WebView/WebFrame.mm:
3348         * WebView/WebFrameInternal.h:
3349         * WebView/WebHTMLView.mm:
3350         * WebView/WebView.mm:
3351         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3352
3353 2017-01-24  Youenn Fablet  <youennf@gmail.com>
3354
3355         [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations
3356         https://bugs.webkit.org/show_bug.cgi?id=167294
3357
3358         Reviewed by Alex Christensen.
3359
3360         * WebView/WebView.mm:
3361         (-[WebView _commonInitializationWithFrameName:groupName:]):
3362
3363 2017-01-25  Wenson Hsieh  <wenson_hsieh@apple.com>
3364
3365         Add support for named pasteboards, pasteboard strategies and platform pasteboards
3366         https://bugs.webkit.org/show_bug.cgi?id=167404
3367
3368         Reviewed by Enrica Casucci.
3369
3370         Adds pasteboard name as an argument to pasteboard-related WebPlatformStrategy methods.
3371
3372         * WebCoreSupport/WebPlatformStrategies.h:
3373         * WebCoreSupport/WebPlatformStrategies.mm:
3374         (WebPlatformStrategies::writeToPasteboard):
3375         (WebPlatformStrategies::getPasteboardItemsCount):
3376         (WebPlatformStrategies::readBufferFromPasteboard):
3377         (WebPlatformStrategies::readURLFromPasteboard):
3378         (WebPlatformStrategies::readStringFromPasteboard):
3379
3380 2017-01-25  Aakash Jain  <aakash_jain@apple.com>
3381
3382         LoadWebLocalizedStrings method should be moved in correct file
3383         https://bugs.webkit.org/show_bug.cgi?id=167393
3384
3385         Reviewed by Alexey Proskuryakov.
3386
3387         * Misc/WebLocalizableStrings.h: Deleted LoadWebLocalizedStrings method.
3388         * Misc/WebLocalizableStrings.mm:
3389         (LoadWebLocalizedStringsTimerCallback): Deleted, moved to WebUIKitSupport.mm
3390         (LoadWebLocalizedStrings): Deleted, moved to WebUIKitSupport.mm
3391
3392 2017-01-24  Zalan Bujtas  <zalan@apple.com>
3393
3394         Add simple line layout toggle to MiniBrowser
3395         https://bugs.webkit.org/show_bug.cgi?id=167405
3396
3397         Reviewed by Andreas Kling.
3398
3399         * WebView/WebPreferenceKeysPrivate.h:
3400         * WebView/WebPreferences.mm:
3401         (+[WebPreferences initialize]):
3402         (-[WebPreferences simpleLineLayoutEnabled]):
3403         (-[WebPreferences setSimpleLineLayoutEnabled:]):
3404         * WebView/WebPreferencesPrivate.h:
3405         * WebView/WebView.mm:
3406         (-[WebView _preferencesChanged:]):
3407
3408 2017-01-24  Joseph Pecoraro  <pecoraro@apple.com>
3409
3410         Fold USER_TIMING into WEB_TIMING and make it a RuntimeEnabledFeature
3411         https://bugs.webkit.org/show_bug.cgi?id=167394
3412
3413         Reviewed by Ryosuke Niwa.
3414
3415         * Configurations/FeatureDefines.xcconfig:
3416
3417 2017-01-23  Chris Dumez  <cdumez@apple.com>
3418
3419         REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr<WebCore::Element>::operator* const + 70
3420         https://bugs.webkit.org/show_bug.cgi?id=167308
3421         <rdar://problem/30144964>
3422
3423         Unreviewed, do a partial revert of r211033 to fix assertion.
3424
3425         * WebCoreSupport/WebChromeClient.h:
3426         * WebCoreSupport/WebChromeClient.mm:
3427         (WebChromeClient::exitFullScreenForElement):
3428
3429 2017-01-23  Joseph Pecoraro  <pecoraro@apple.com>
3430
3431         Remove allowWindowOpenWithoutUserGesture setting
3432         https://bugs.webkit.org/show_bug.cgi?id=167301
3433
3434         Reviewed by Darin Adler.
3435
3436         * WebView/WebView.mm:
3437         (-[WebView _preferencesChanged:]):
3438         Use the equivalent existing setting.
3439
3440 2017-01-20  Darin Adler  <darin@apple.com>
3441
3442         Remove PassRefPtr from "page" directory of WebCore, also deploy references
3443         https://bugs.webkit.org/show_bug.cgi?id=167224
3444
3445         Reviewed by Chris Dumez.
3446
3447         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
3448         (-[WebApplicationCacheQuotaManager quota]): Pass reference.
3449
3450         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
3451         * WebCoreSupport/WebChromeClient.mm:
3452         (WebChromeClient::focusedElementChanged): Ditto.
3453         (WebChromeClient::createWindow): Ditto.
3454         (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto.
3455         (WebChromeClient::runJavaScriptAlert): Ditto.
3456         (WebChromeClient::runJavaScriptConfirm): Ditto.
3457         (WebChromeClient::runJavaScriptPrompt): Ditto.
3458         (WebChromeClient::contentsSizeChanged): Ditto.
3459         (WebChromeClient::unavailablePluginButtonClicked): Ditto.
3460         (WebChromeClient::print): Ditto.
3461         (WebChromeClient::exceededDatabaseQuota): Ditto.
3462         (WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
3463         (WebChromeClient::createColorChooser): Ditto.
3464         (WebChromeClient::elementDidFocus): Ditto.
3465         (WebChromeClient::elementDidBlur): Ditto.
3466         (WebChromeClient::createPopupMenu): Ditto.
3467         (WebChromeClient::createSearchPopupMenu): Ditto.
3468         (WebChromeClient::attachRootGraphicsLayer): Ditto.
3469         (WebChromeClient::attachViewOverlayGraphicsLayer): Ditto.
3470         (WebChromeClient::supportsFullScreenForElement): Ditto.
3471         (WebChromeClient::enterFullScreenForElement): Ditto.
3472         (WebChromeClient::exitFullScreenForElement): Ditto.
3473
3474         * WebView/WebFrame.mm:
3475         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
3476         Updated for change to the appendChild function.
3477
3478 2017-01-21  Simon Fraser  <simon.fraser@apple.com>
3479
3480         Remove -[WebFrame sendOrientationChangeEvent:] which is unused
3481         https://bugs.webkit.org/show_bug.cgi?id=167276
3482
3483         Reviewed by Alex Christensen.
3484         
3485         It was usurped by -deviceOrientationChanged in 2014.
3486
3487         * WebView/WebFrame.mm:
3488         (-[WebFrame sendOrientationChangeEvent:]): Deleted.
3489         * WebView/WebFramePrivate.h:
3490
3491 2017-01-21  Simon Fraser  <simon.fraser@apple.com>
3492
3493         Remove -[WebView _contentsSizeRespectingOverflow] which is no longer needed
3494         https://bugs.webkit.org/show_bug.cgi?id=167271
3495
3496         Reviewed by Alex Christensen.
3497         
3498         -_contentsSizeRespectingOverflow was added to try to make viewport sizing on iOS respect
3499         overflow:hidden on the body (webkit.org/b/146924) but that was reverted (webkit.org/b/152803),
3500
3501         * WebView/WebView.mm:
3502         (-[WebView _contentsSizeRespectingOverflow]): Deleted.
3503         * WebView/WebViewPrivate.h:
3504
3505 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
3506
3507         Remove never changing IndexedDB RuntimeEnabledFeature
3508         https://bugs.webkit.org/show_bug.cgi?id=167278
3509
3510         Reviewed by Darin Adler.
3511
3512         * WebView/WebView.mm:
3513         (-[WebView _preferencesChanged:]):
3514
3515 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
3516
3517         Cleanup RuntimeEnabledFeatures
3518         https://bugs.webkit.org/show_bug.cgi?id=167228
3519
3520         Reviewed by Simon Fraser.
3521
3522         * WebView/WebView.mm:
3523         (-[WebView _preferencesChanged:]):
3524
3525 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
3526
3527         Remove outdated ENABLE(CSP_NEXT) build flag
3528         https://bugs.webkit.org/show_bug.cgi?id=167252
3529
3530         Reviewed by Brent Fulgham.
3531
3532         * Configurations/FeatureDefines.xcconfig:
3533
3534 2017-01-20  Antoine Quint  <graouts@apple.com>
3535
3536         [Modern Media Controls] Turn modern media controls on by default
3537         https://bugs.webkit.org/show_bug.cgi?id=165668
3538
3539         Reviewed by Dean Jackson.
3540
3541         Enabled modern media controls by default in WK1.
3542
3543         * WebView/WebPreferences.mm:
3544         (+[WebPreferences initialize]):
3545
3546 2017-01-19  Chris Dumez  <cdumez@apple.com>
3547
3548         iterable<> should be enabled on WK1
3549         https://bugs.webkit.org/show_bug.cgi?id=167221
3550         <rdar://problem/30108531>
3551
3552         Reviewed by Youenn Fablet.
3553
3554         * WebView/WebPreferenceKeysPrivate.h:
3555         * WebView/WebPreferences.mm:
3556         (-[WebPreferences setCustomElementsEnabled:]):
3557         (-[WebPreferences DOMIteratorEnabled]): Deleted.
3558         (-[WebPreferences setDOMIteratorEnabled:]): Deleted.
3559         * WebView/WebPreferencesPrivate.h:
3560         * WebView/WebView.mm:
3561         (-[WebView _preferencesChanged:]):
3562
3563 2017-01-19  Chris Dumez  <cdumez@apple.com>
3564
3565         Make sure HTML validation bubble gets dismissed when its associated element's frame gets detached
3566         https://bugs.webkit.org/show_bug.cgi?id=167215
3567         <rdar://problem/29885052>
3568
3569         Reviewed by Andreas Kling.
3570
3571         Make sure HTML validation bubble gets dismissed when its associated
3572         element's frame gets detached and that we do not crash.
3573
3574         * WebCoreSupport/WebValidationMessageClient.h:
3575         * WebCoreSupport/WebValidationMessageClient.mm:
3576         (WebValidationMessageClient::documentDetached):
3577
3578 2017-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
3579
3580         [Cocoa] Variation fonts are erroneously disabled on iOS
3581         https://bugs.webkit.org/show_bug.cgi?id=167172
3582
3583         Reviewed by Simon Fraser.
3584
3585         OpenSource builders don't seem to understand sdk=embedded*.
3586
3587         * Configurations/FeatureDefines.xcconfig:
3588
3589 2017-01-19  Andreas Kling  <akling@apple.com>
3590
3591         ScriptExecutionContext::topOrigin() should return a reference.
3592         <https://webkit.org/b/167190>
3593
3594         Reviewed by Sam Weinig.
3595
3596         * Misc/WebCache.mm:
3597         (+[WebCache addImageToCache:forURL:forFrame:]):
3598         (+[WebCache removeImageFromCacheForURL:forFrame:]):
3599
3600 2017-01-18  Ryan Haddad  <ryanhaddad@apple.com>
3601
3602         Unreviewed fix for the macOS build.
3603
3604         * Carbon/CarbonWindowAdapter.mm:
3605  &nbs