a8e5d95d19d3e440984b3d09fe7fa5ace6d13ea8
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2017-01-11  Darin Adler  <darin@apple.com>
2
3         Remove PassRefPtr from more of "platform"
4         https://bugs.webkit.org/show_bug.cgi?id=166809
5
6         Reviewed by Sam Weinig.
7
8         * WebCoreSupport/WebFrameLoaderClient.mm:
9         (NetscapePluginWidget::handleEvent): Pass a reference.
10         * WebView/WebView.mm:
11         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
12         Updated since the children set now contains Ref instead of RefPtr.
13
14 2017-01-13  Sam Weinig  <sam@webkit.org>
15
16         [WebIDL] Remove custom bindings for DeviceMotionEvent and DeviceOrientationEvent
17         https://bugs.webkit.org/show_bug.cgi?id=167006
18
19         Reviewed by Geoffrey Garen.
20
21         * WebView/WebDeviceOrientation.mm:
22         (convert):
23         (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]):
24         Update for new use of std::optional.
25
26 2017-01-12  Joseph Pecoraro  <pecoraro@apple.com>
27
28         Remove unnecessary includes of Page.h
29         https://bugs.webkit.org/show_bug.cgi?id=166996
30
31         Reviewed by Yusuke Suzuki.
32
33         * DOM/DOMHTML.mm:
34         * History/WebBackForwardList.mm:
35         * Plugins/WebPluginController.mm:
36         * WebCoreSupport/WebNotificationClient.mm:
37         * WebCoreSupport/WebPlatformStrategies.mm:
38         * WebCoreSupport/WebUserMediaClient.mm:
39         * WebView/WebFullScreenController.mm:
40
41 2017-01-12  Chris Dumez  <cdumez@apple.com>
42
43         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
44         https://bugs.webkit.org/show_bug.cgi?id=166995
45
46         Reviewed by Jer Noble.
47
48         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
49         as some people are having trouble building without it.
50
51         * Configurations/FeatureDefines.xcconfig:
52
53 2017-01-12  Chris Dumez  <cdumez@apple.com>
54
55         HTML form validation popover sometimes does not go away
56         https://bugs.webkit.org/show_bug.cgi?id=166990
57         <rdar://problem/29985957>
58
59         Reviewed by Tim Horton.
60
61         Update code using ValidationBubble now that it is RefCounted.
62
63         * WebView/WebView.mm:
64         (-[WebView showFormValidationMessage:withAnchorRect:]):
65
66 2017-01-10  Ryosuke Niwa  <rniwa@webkit.org>
67
68         Remove pointerLockElement from DOMDocumentPrivate.h
69         https://bugs.webkit.org/show_bug.cgi?id=166882
70
71         Reviewed by Simon Fraser.
72
73         Removed pointerLockElement declaration that was supposed to be removed in r209637.
74
75         * DOM/DOMDocumentPrivate.h:
76
77 2017-01-06  Darin Adler  <darin@apple.com>
78
79         Remove PassRefPtr use from "inspector", "platform/sql", and "platform/text"
80         https://bugs.webkit.org/show_bug.cgi?id=166797
81
82         Reviewed by Alex Christensen.
83
84         * WebCoreSupport/WebEditorClient.h: Updated to take a reference.
85         * WebCoreSupport/WebEditorClient.mm:
86         (WebEditorClient::requestCheckingOfString): Take a reference
87         instead of a PassRefPtr.
88
89 2017-01-05  Chris Dumez  <cdumez@apple.com>
90
91         Turn preferLowPowerWebGLRendering setting on by default
92         https://bugs.webkit.org/show_bug.cgi?id=166737
93         <rdar://problem/29870033>
94
95         Reviewed by Dean Jackson.
96
97         Temporarily turn preferLowPowerWebGLRendering setting on by default until
98         we deal better with WebGL content in background tabs.
99
100         * WebView/WebPreferences.mm:
101         (+[WebPreferences initialize]):
102
103 2017-01-05  Enrica Casucci  <enrica@apple.com>
104
105         Support File Promise during drag for macOS.
106         https://bugs.webkit.org/show_bug.cgi?id=165204
107         rdar://problem/19595567
108
109         Reviewed by Tim Horton.
110
111         Adds support for dropping a File Promise in a WebView.
112         The implementation uses new File Promise API available in Sierra.
113
114         * Misc/WebNSPasteboardExtras.mm:
115         (+[NSPasteboard _web_dragTypesForURL]):
116         * WebView/WebView.mm:
117         (-[WebView performDragOperation:]):
118
119 2017-01-05  Andreas Kling  <akling@apple.com>
120
121         Remove ChromeClient::needTouchEvents().
122         <https://webkit.org/b/166723>
123
124         Rubber-stamped by Antti Koivisto.
125
126         * WebCoreSupport/WebChromeClient.h:
127
128 2017-01-04  Darin Adler  <darin@apple.com>
129
130         Remove PassRefPtr use from the "html" directory, other improvements
131         https://bugs.webkit.org/show_bug.cgi?id=166635
132
133         Reviewed by Alex Christensen.
134
135         * WebCoreSupport/WebChromeClient.h:
136         * WebCoreSupport/WebChromeClient.mm:
137         (WebChromeClient::loadIconForFiles): Take a reference instead of a pointer.
138
139 2017-01-04  Ryan Haddad  <ryanhaddad@apple.com>
140
141         Unreviewed, rolling out r210287.
142
143         This change caused editing test failures on macOS.
144
145         Reverted changeset:
146
147         "Support File Promise during drag for macOS."
148         https://bugs.webkit.org/show_bug.cgi?id=165204
149         http://trac.webkit.org/changeset/210287
150
151 2017-01-04  Enrica Casucci  <enrica@apple.com>
152
153         Support File Promise during drag for macOS.
154         https://bugs.webkit.org/show_bug.cgi?id=165204
155         rdar://problem/19595567
156
157         Reviewed by Tim Horton.
158
159         Adds support for dropping a File Promise in a WebView.
160         The implementation uses new File Promise API available in Sierra.
161
162         * Misc/WebNSPasteboardExtras.mm:
163         (+[NSPasteboard _web_dragTypesForURL]):
164         * WebView/WebView.mm:
165         (-[WebView performDragOperation:]):
166
167 2017-01-04  Tim Horton  <timothy_horton@apple.com>
168
169         Provide a setting for clients to always prefer low-power WebGL
170         https://bugs.webkit.org/show_bug.cgi?id=166675
171         <rdar://problem/29834093>
172
173         Reviewed by Dan Bernstein.
174
175         * WebView/WebPreferenceKeysPrivate.h:
176         * WebView/WebPreferences.mm:
177         (+[WebPreferences initialize]):
178         (-[WebPreferences preferLowPowerWebGLRendering]):
179         (-[WebPreferences setPreferLowPowerWebGLRendering:]):
180         * WebView/WebPreferencesPrivate.h:
181         * WebView/WebView.mm:
182         (-[WebView _preferencesChanged:]):
183         Expose a new private preferLowPowerWebGLRendering WebKit1 preference.
184
185 2017-01-03  Tim Horton  <timothy_horton@apple.com>
186
187         NSSpellChecker's recordResponse isn't called for unseen automatic corrections
188         https://bugs.webkit.org/show_bug.cgi?id=166450
189         <rdar://problem/29447824>
190
191         Reviewed by Darin Adler.
192
193         * WebCoreSupport/CorrectionPanel.h:
194         * WebCoreSupport/CorrectionPanel.mm:
195         (CorrectionPanel::recordAutocorrectionResponse):
196         (CorrectionPanel::handleAcceptedReplacement):
197         * WebCoreSupport/WebAlternativeTextClient.mm:
198         (toCorrectionResponse):
199         (WebAlternativeTextClient::recordAutocorrectionResponse):
200         Funnel all calls to recordResponse:toCorrection:forWord:language:inSpellDocumentWithTag:
201         through recordAutocorrectionResponse, for debugging's sake.
202         Drop the NSView parameter because we don't need it, just the tag.
203         Convert the new AutocorrectionResponseType value to its corresponding
204         NSCorrectionResponse value.
205
206 2017-01-01  Jeff Miller  <jeffm@apple.com>
207
208         Update user-visible copyright strings to include 2017
209         https://bugs.webkit.org/show_bug.cgi?id=166278
210
211         Reviewed by Dan Bernstein.
212
213         * Info.plist:
214
215 2016-12-30  Darin Adler  <darin@apple.com>
216
217         Remove PassRefPtr use from the "dom" directory, related cleanup
218         https://bugs.webkit.org/show_bug.cgi?id=166569
219
220         Reviewed by Alex Christensen.
221
222         * WebCoreSupport/WebFrameLoaderClient.mm:
223         (WebFrameLoaderClient::dispatchDidReceiveTitle): Updated to use struct.
224         (WebFrameLoaderClient::updateGlobalHistory): Ditto.
225         (WebFrameLoaderClient::setTitle): Ditto.
226         (WebFrameLoaderClient::transitionToCommittedForNewPage): Ditto.
227         * WebView/WebFrame.mm:
228         (-[WebFrame _dispatchDidReceiveTitle:]): Use aggregate-style syntax for StringWithDirection.
229         Not needed now, but useful later if we ever can get rid of the explicit constructors.
230         (-[WebFrame loadArchive:]): Pass a reference to loadArchive.
231         * WebView/WebHTMLRepresentation.mm:
232         (-[WebHTMLRepresentation title]): Updated to use struct.
233
234 2016-12-25  Yusuke Suzuki  <utatane.tea@gmail.com>
235
236         Propagate the source origin as much as possible
237         https://bugs.webkit.org/show_bug.cgi?id=166348
238
239         Reviewed by Darin Adler.
240
241         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
242         (WebKit::NetscapePluginInstanceProxy::evaluate):
243
244 2016-12-23  Andy Estes  <aestes@apple.com>
245
246         [iOS] DumpRenderTree triggers an assertion failure when calling +[WebPreferences _switchNetworkLoaderToNewTestingSession]
247         https://bugs.webkit.org/show_bug.cgi?id=166471
248
249         Reviewed by Andreas Kling.
250
251         When DumpRenderTree starts up, it calls
252         +[WebPreferences _switchNetworkLoaderToNewTestingSession] from the main thread. In Debug
253         builds, this triggers the ASSERT(isMainThread()) in
254         NetworkStorageSession::defaultNetworkStorageSession() because the Web thread has already
255         started, we are on the main thread, and we are not holding the Web thread lock. This is
256         causing all layout tests to crash in the iOS WK1 Debug configuration.
257
258         * WebView/WebPreferences.mm: (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
259         Take the Web thread lock before calling NetworkStorageSession::switchToNewTestingSession().
260
261 2016-12-22  Andy Estes  <aestes@apple.com>
262
263         Make WebCore::EditorInsertAction an enum class
264         https://bugs.webkit.org/show_bug.cgi?id=166424
265
266         Reviewed by Brent Fulgham.
267
268         * WebCoreSupport/WebEditorClient.mm:
269         (kit):
270
271 2016-12-21  Beth Dakin  <bdakin@apple.com>
272
273         Holding down on candidates in the TouchBar should show panel on screen
274         https://bugs.webkit.org/show_bug.cgi?id=166367
275         -and corresponding-
276         <rdar://problem/28479236>
277
278         Reviewed by Tim Horton.
279
280         Stray whitespace.
281         * WebCoreSupport/WebEditorClient.mm:
282         (WebEditorClient::handleRequestedCandidates):
283
284         Call the version of setCandidates: that takes a rect. We need to keep the helper 
285         function in WK1 (unlike WK2) since we also use it for testing.
286         * WebView/WebView.mm:
287         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
288
289 2016-12-20  Dean Jackson  <dino@apple.com>
290
291         Remove INDIE_UI
292         https://bugs.webkit.org/show_bug.cgi?id=165881
293         <rdar://problem/29672532>
294
295         Reviewed by Simon Fraser.
296
297         The Indie UI work has been discontinued.
298
299         * Configurations/FeatureDefines.xcconfig:
300
301 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
302
303         [ES6] Enable ES6 Modules
304         https://bugs.webkit.org/show_bug.cgi?id=165849
305
306         Reviewed by Geoffrey Garen.
307
308         * WebView/WebPreferenceKeysPrivate.h:
309         * WebView/WebPreferences.mm:
310         (+[WebPreferences initialize]):
311         (-[WebPreferences es6ModulesEnabled]): Deleted.
312         (-[WebPreferences setES6ModulesEnabled:]): Deleted.
313         * WebView/WebPreferencesPrivate.h:
314         * WebView/WebView.mm:
315         (-[WebView _preferencesChanged:]):
316
317 2016-12-16  Dave Hyatt  <hyatt@apple.com>
318
319         [CSS Values] Make separate wrapper classes for the deprecated CSS Values OM
320         https://bugs.webkit.org/show_bug.cgi?id=165968
321
322         Reviewed by Andreas Kling.
323
324         * DOM/DOMCSS.mm:
325         (kitClass):
326         * DOM/DOMCSSPrimitiveValue.mm:
327         (-[DOMCSSPrimitiveValue getCounterValue]):
328         (-[DOMCSSPrimitiveValue getRectValue]):
329         (kit):
330         * DOM/DOMCSSPrimitiveValueInternal.h:
331         * DOM/DOMCSSStyleDeclaration.mm:
332         * DOM/DOMCSSValue.mm:
333         (kit):
334         * DOM/DOMCSSValueInternal.h:
335         * DOM/DOMCSSValueList.mm:
336         * DOM/DOMCounter.mm:
337         (kit):
338         * DOM/DOMCounterInternal.h:
339         * DOM/DOMRGBColor.mm:
340         (kit):
341         * DOM/DOMRGBColorInternal.h:
342         * DOM/DOMRect.mm:
343         (kit):
344         * DOM/DOMRectInternal.h:
345         * DOM/DOMUtility.mm:
346         (createDOMWrapper):
347
348 2016-12-16  Chris Dumez  <cdumez@apple.com>
349
350         HTML form validation bubble should be dismissed on navigation
351         https://bugs.webkit.org/show_bug.cgi?id=165960
352         <rdar://problem/29668086>
353
354         Reviewed by Simon Fraser.
355
356         Dismiss HTML form validation bubble on top-level navigation on Mac WK1.
357
358         * WebView/WebView.mm:
359         (-[WebView _didStartProvisionalLoadForFrame:]):
360
361 2016-12-15  Darin Adler  <darin@apple.com>
362
363         Use asString instead of toWTFString, toString, or getString when we already checked isString
364         https://bugs.webkit.org/show_bug.cgi?id=165895
365
366         Reviewed by Yusuke Suzuki.
367
368         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
369         (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use asString/value instead of
370         toWTFString.
371         * WebView/WebView.mm:
372         (aeDescFromJSValue): Use asString/value instead of getString.
373
374 2016-12-15  Chris Dumez  <cdumez@apple.com>
375
376         Make sure HTML validation bubble's state is updated after layout
377         https://bugs.webkit.org/show_bug.cgi?id=165922
378         <rdar://problem/29694730>
379
380         Reviewed by Simon Fraser.
381
382         Make sure HTML validation bubble's state is updated after layout.
383         In particular, if the validation bubble's associated element has
384         moved or is no longer visible, we now hide the bubble.
385
386         * WebCoreSupport/WebValidationMessageClient.h:
387         * WebCoreSupport/WebValidationMessageClient.mm:
388         (WebValidationMessageClient::showValidationMessage):
389         (WebValidationMessageClient::hideValidationMessage):
390         (WebValidationMessageClient::updateValidationBubbleStateIfNeeded):
391
392 2016-12-15  Chris Dumez  <cdumez@apple.com>
393
394         Move charCode / keyCode / which attributes from UIEvent to KeyboardEvent
395         https://bugs.webkit.org/show_bug.cgi?id=165904
396
397         Reviewed by Sam Weinig.
398
399         Update ObjC bindings so they keep building.
400
401         * DOM/DOMUIEvent.mm:
402         (-[DOMUIEvent keyCode]):
403         (-[DOMUIEvent charCode]):
404
405 2016-12-15  Andreas Kling  <akling@apple.com>
406
407         Always clear RenderLayer backing stores when going into page cache.
408         <https://webkit.org/b/165901>
409
410         Reviewed by Simon Fraser.
411
412         * WebView/WebView.mm:
413         (+[WebView _setCacheModel:]):
414
415 2016-12-12  Alex Christensen  <achristensen@webkit.org>
416
417         Remove unused workaround for Silverlight
418         https://bugs.webkit.org/show_bug.cgi?id=165773
419
420         Reviewed by Dean Jackson.
421
422         * Plugins/WebNetscapePluginView.mm:
423         (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): Deleted.
424         This code was introduced in January 2010.  Microsoft fixed their bug shortly thereafter.
425         Allowing 6 years for users to update Silverlight is more than enough.
426         Safari doesn't even use WebKit1 for this any more.
427         I need this to be removed because this is the only non-WebGL code that needs to link against
428         the OpenGL framework, and I'm changing how that is done to link only through ANGLE instead.
429
430 2016-12-12  Chris Dumez  <cdumez@apple.com>
431
432         Document.visibilityState should use an IDL string enumeration
433         https://bugs.webkit.org/show_bug.cgi?id=165774
434
435         Reviewed by Daniel Bates.
436
437         * DOM/DOMDocument.mm:
438         (-[DOMDocument visibilityState]):
439         * WebView/WebView.mm:
440         (kit):
441
442 2016-12-12  Jer Noble  <jer.noble@apple.com>
443
444         Remove implementation of legacy Mozilla-based Fullscreen API.
445         https://bugs.webkit.org/show_bug.cgi?id=165689
446         <rdar://problem/29603053>
447
448         Reviewed by Eric Carlson.
449
450         * DOM/DOMElement.mm:
451         (-[DOMElement webkitRequestFullScreen:]):
452
453 2016-12-10  Filip Pizlo  <fpizlo@apple.com>
454
455         The DOM should have an advancing wavefront opaque root barrier
456         https://bugs.webkit.org/show_bug.cgi?id=165712
457
458         Reviewed by Yusuke Suzuki.
459         
460         Propagate the JSDOMWindowBase::commonVM() -> commonVM() change.
461
462         * Misc/WebCoreStatistics.mm:
463         (+[WebCoreStatistics javaScriptObjectsCount]):
464         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
465         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
466         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
467         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
468         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
469         (+[WebCoreStatistics shouldPrintExceptions]):
470         (+[WebCoreStatistics setShouldPrintExceptions:]):
471         (+[WebCoreStatistics memoryStatistics]):
472         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
473         * Plugins/Hosted/NetscapePluginHostProxy.mm:
474         (identifierFromIdentifierRep):
475         * Plugins/Hosted/ProxyInstance.mm:
476         (WebKit::ProxyInstance::getPropertyNames):
477         * Plugins/WebNetscapePluginStream.mm:
478         (WebNetscapePluginStream::wantsAllStreams):
479         * Plugins/WebNetscapePluginView.mm:
480         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
481         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
482         (-[WebNetscapePluginView setWindowIfNecessary]):
483         (-[WebNetscapePluginView createPluginScriptableObject]):
484         (-[WebNetscapePluginView getFormValue:]):
485         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
486         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
487         (-[WebNetscapePluginView loadPluginRequest:]):
488         (-[WebNetscapePluginView _printedPluginBitmap]):
489         * Plugins/WebPluginController.mm:
490         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
491         (-[WebPluginController stopOnePlugin:]):
492         (-[WebPluginController stopOnePluginForPageCache:]):
493         (-[WebPluginController destroyOnePlugin:]):
494         (-[WebPluginController startAllPlugins]):
495         (-[WebPluginController addPlugin:]):
496
497 2016-12-09  Dave Hyatt  <hyatt@apple.com>
498
499         [CSS Parser] Remove the old CSS Parser
500         https://bugs.webkit.org/show_bug.cgi?id=165645
501
502         Reviewed by Daniel Bates.
503
504         * DOM/DOMCSS.mm:
505         (kitClass):
506         * DOM/DOMCSSRule.h:
507
508 2016-12-09  Eric Carlson  <eric.carlson@apple.com>
509
510         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
511         https://bugs.webkit.org/show_bug.cgi?id=165251
512
513         Reviewed by Dean Jackson.
514
515         Based on a patch by Dr Alex Gouaillard <agouaillard@gmail.com>
516
517         * WebView/WebPreferenceKeysPrivate.h: Add MediaStream and PeerConnection preferences.
518         * WebView/WebPreferences.mm:
519         (+[WebPreferences initialize]):
520         (-[WebPreferences mediaStreamEnabled]):
521         (-[WebPreferences setMediaStreamEnabled:]):
522         (-[WebPreferences peerConnectionEnabled]):
523         (-[WebPreferences setPeerConnectionEnabled:]):
524         * WebView/WebPreferencesPrivate.h:
525         * WebView/WebView.mm:
526         (-[WebView _preferencesChanged:]):
527
528 2016-12-09  Ryosuke Niwa  <rniwa@webkit.org>
529
530         Don’t expose pointer lock in WebKit1 Objective-C API
531         https://bugs.webkit.org/show_bug.cgi?id=165692
532
533         Reviewed by Simon Fraser.
534
535         * DOM/DOMDocument.mm:
536         (-[DOMDocument pointerLockElement]): Deleted.
537         (-[DOMDocument exitPointerLock]): Deleted.
538         * DOM/DOMElement.mm:
539         (-[DOMElement requestPointerLock]): Deleted.
540         * DOM/DOMMouseEvent.mm:
541         (-[DOMMouseEvent movementX]): Deleted.
542         (-[DOMMouseEvent movementY]): Deleted.
543
544 2016-12-09  Ryosuke Niwa  <rniwa@webkit.org>
545
546         document.webkitFullscreenElement leaks elements inside a shadow tree
547         https://bugs.webkit.org/show_bug.cgi?id=158471
548
549         Reviewed by Chris Dumez.
550
551         Use the API for bindings to avoid exposing nodes inside a shadow tree.
552
553         * DOM/DOMDocument.mm:
554         (-[DOMDocument webkitCurrentFullScreenElement]):
555         (-[DOMDocument webkitFullscreenElement]):
556
557 2016-12-09  Beth Dakin  <bdakin@apple.com>
558
559         Password fields should not show the emoji button in TouchBar
560         https://bugs.webkit.org/show_bug.cgi?id=165673
561         -and corresponding-
562         rdar://problem/29235739
563
564         Reviewed by Wenson Hsieh.
565
566         This patch adds a new ivar for the password touch bar and password 
567         candidateListTouchBarItem. Since this TouchBar will actually have a different set 
568         of identifiers than the plain text TouchBar, it should just have its own variable.
569
570         The candidate list should be the only item for passwords.
571         * WebView/WebView.mm:
572         (-[WebView _passwordTextTouchBarDefaultItemIdentifiers]):
573
574         Account for _passwordTextTouchBar.
575         (-[WebView didChangeAutomaticTextCompletion:]):
576         (-[WebView setUpTextTouchBar:]):
577         (-[WebView textTouchBar]):
578
579         The empty candidates array is not needed. We can just set @[ ] as the candidates 
580         for the _passwordTextCandidateListTouchBarItem. Safe guards already exist in the 
581         other parts of the code to prevent us from requesting or setting other candidates 
582         when in a password field. 
583         (-[WebView updateTextTouchBar]):
584
585         Account for _passwordTextTouchBar.
586         (-[WebView candidateList]):
587         * WebView/WebViewData.h:
588
589 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
590
591         Enable SharedArrayBuffer, remove the flag
592         https://bugs.webkit.org/show_bug.cgi?id=165614
593
594         Rubber stamped by Geoffrey Garen.
595
596         * WebView/WebPreferencesPrivate.h:
597
598 2016-12-07  Dean Jackson  <dino@apple.com>
599
600         Remove runtime toggle for pointer-lock
601         https://bugs.webkit.org/show_bug.cgi?id=165577
602         <rdar://problems/29566996>
603
604         Reviewed by Jon Lee.
605
606         Remove any runtime calls to check if pointer-lock is enabled. It's
607         either compiled in or out.
608
609         * WebView/WebPreferenceKeysPrivate.h:
610         * WebView/WebPreferences.mm:
611         (-[WebPreferences pointerLockEnabled]): Deleted.
612         (-[WebPreferences setPointerLockEnabled:]): Deleted.
613         * WebView/WebPreferencesPrivate.h:
614         * WebView/WebView.mm:
615         (-[WebView _preferencesChanged:]):
616
617 2016-12-06  Alexey Proskuryakov  <ap@apple.com>
618
619         Correct SDKROOT values in xcconfig files
620         https://bugs.webkit.org/show_bug.cgi?id=165487
621         rdar://problem/29539209
622
623         Reviewed by Dan Bernstein.
624
625         Fix suggested by Dan Bernstein.
626
627         * Configurations/DebugRelease.xcconfig:
628
629 2016-12-05  Simon Fraser  <simon.fraser@apple.com>
630
631         Improve the behavior of scroll-into-view when the target is inside position:fixed
632         https://bugs.webkit.org/show_bug.cgi?id=165354
633
634         Reviewed by Zalan Bujtas.
635
636         Plumb through 'insideFixed'. We don't get compute it, so behavior from
637         these call sites won't change.
638
639         * WebView/WebFrame.mm:
640         (-[WebFrame _scrollDOMRangeToVisible:]):
641         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
642
643 2016-12-06  Simon Fraser  <simon.fraser@apple.com>
644
645         Enable visual viewports by default on Mac, and iOS Wk2
646         https://bugs.webkit.org/show_bug.cgi?id=165452
647
648         Reviewed by Zalan Bujtas.
649
650         Turn visual viewports on by default for WK1 on Mac.
651
652         * WebView/WebPreferences.mm:
653         (+[WebPreferences initialize]):
654
655 2016-12-05  Dean Jackson  <dino@apple.com>
656
657         pointer lock needs to be feature detectable
658         https://bugs.webkit.org/show_bug.cgi?id=165426
659         <rdar://problem/29486715>
660
661         Reviewed by Antoine Quint.
662
663         Set the RuntimeEnabledFeature as preferences
664         change.
665
666         * WebView/WebView.mm:
667         (-[WebView _preferencesChanged:]):
668
669 2016-12-05  Ryan Haddad  <ryanhaddad@apple.com>
670
671         Unreviewed, rolling out r209299.
672
673         This change appears to have caused LayoutTest failures on
674         Sierra WK1.
675
676         Reverted changeset:
677
678         "Improve the behavior of scroll-into-view when the target is
679         inside position:fixed"
680         https://bugs.webkit.org/show_bug.cgi?id=165354
681         http://trac.webkit.org/changeset/209299
682
683 2016-12-02  Simon Fraser  <simon.fraser@apple.com>
684
685         Improve the behavior of scroll-into-view when the target is inside position:fixed
686         https://bugs.webkit.org/show_bug.cgi?id=165354
687
688         Reviewed by Zalan Bujtas.
689
690         Plumb through 'insideFixed'. We don't get compute it, so behavior from
691         these call sites won't change.
692
693         * WebView/WebFrame.mm:
694         (-[WebFrame _scrollDOMRangeToVisible:]):
695         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
696
697 2016-12-02  Andy Estes  <aestes@apple.com>
698
699         [Cocoa] Adopt the PRODUCT_BUNDLE_IDENTIFIER build setting
700         https://bugs.webkit.org/show_bug.cgi?id=164492
701
702         Reviewed by Dan Bernstein.
703
704         * Configurations/WebKitLegacy.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
705         com.apple.$(PRODUCT_NAME:rfc1034identifier).
706         * Info.plist: Changed CFBundleIdentifier's value from com.apple.${PRODUCT_NAME} to
707         ${PRODUCT_BUNDLE_IDENTIFIER}.
708
709 2016-12-02  Chris Dumez  <cdumez@apple.com>
710
711         Regression(r209252): HTML interactive validation should not be enabled on iOS WK1 yet
712         https://bugs.webkit.org/show_bug.cgi?id=165328
713
714         Reviewed by Simon Fraser.
715
716         Only enable HTML interactive form validation on Mac WK1, not iOS WK1.
717
718         * WebView/WebViewData.mm:
719         (-[WebViewPrivate init]):
720
721 2016-12-02  Chris Dumez  <cdumez@apple.com>
722
723         [Mac][WK1] Implement new HTML interactive form validation user interface
724         https://bugs.webkit.org/show_bug.cgi?id=164483
725
726         Reviewed by Simon Fraser.
727
728         Implement new HTML interactive form validation user interface on Mac
729         WK1 and enable it by default.
730
731         * WebCoreSupport/WebValidationMessageClient.h: Added.
732         * WebCoreSupport/WebValidationMessageClient.mm: Added.
733         (WebValidationMessageClient::WebValidationMessageClient):
734         (WebValidationMessageClient::~WebValidationMessageClient):
735         (WebValidationMessageClient::showValidationMessage):
736         (WebValidationMessageClient::hideValidationMessage):
737         (WebValidationMessageClient::isValidationMessageVisible):
738         * WebView/WebHTMLView.mm:
739         (-[WebHTMLView _frameOrBoundsChanged]):
740         * WebView/WebView.mm:
741         (-[WebView _commonInitializationWithFrameName:groupName:]):
742         (-[WebView _willStartScrollingOrZooming]):
743         (-[WebView _contentsOfUserInterfaceItem:]):
744         (-[WebView _scaleWebView:atOrigin:]):
745         (-[WebView _didScrollDocumentInFrameView:]):
746         (-[WebView _setZoomMultiplier:isTextOnly:]):
747         (-[WebView showFormValidationMessage:withAnchorRect:]):
748         (-[WebView hideFormValidationMessage]):
749         * WebView/WebViewData.h:
750         * WebView/WebViewData.mm:
751         (-[WebViewPrivate init]):
752         * WebView/WebViewInternal.h:
753         * WebView/WebViewPrivate.h:
754
755 2016-12-01  Jiewen Tan  <jiewen_tan@apple.com>
756
757         Add a runtime flag for SubtleCrypto
758         https://bugs.webkit.org/show_bug.cgi?id=164982
759
760         Reviewed by Brent Fulgham.
761
762         * WebView/WebPreferenceKeysPrivate.h:
763         * WebView/WebPreferences.mm:
764         (+[WebPreferences initialize]):
765         (-[WebPreferences subtleCryptoEnabled]):
766         (-[WebPreferences setSubtleCryptoEnabled:]):
767         * WebView/WebPreferencesPrivate.h:
768         * WebView/WebView.mm:
769         (-[WebView _preferencesChanged:]):
770
771 2016-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
772
773         Add separate settings and preferences to enable/disable async decoding for large images and animated images
774         https://bugs.webkit.org/show_bug.cgi?id=165177
775
776         Reviewed by Simon Fraser.
777         
778         Hook up the async image decoding settings for WebKit1.
779
780         * WebView/WebPreferenceKeysPrivate.h:
781         * WebView/WebPreferences.mm:
782         (+[WebPreferences initialize]):
783         (-[WebPreferences largeImageAsyncDecodingEnabled]):
784         (-[WebPreferences setLargeImageAsyncDecodingEnabled:]):
785         (-[WebPreferences animatedImageAsyncDecodingEnabled]):
786         (-[WebPreferences setAnimatedImageAsyncDecodingEnabled:]):
787         (-[WebPreferences asyncImageDecodingEnabled]): Deleted.
788         (-[WebPreferences setAsyncImageDecodingEnabled:]): Deleted.
789         * WebView/WebPreferencesPrivate.h:
790         * WebView/WebView.mm:
791         (-[WebView _preferencesChanged:]):
792
793 2016-11-29  Andy Estes  <aestes@apple.com>
794
795         [Cocoa] Enable two clang warnings recommended by Xcode
796         https://bugs.webkit.org/show_bug.cgi?id=164498
797
798         Reviewed by Mark Lam.
799
800         * Configurations/Base.xcconfig: Enabled CLANG_WARN_INFINITE_RECURSION and CLANG_WARN_SUSPICIOUS_MOVE.
801
802 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
803
804         [WTF] Import std::optional reference implementation as WTF::Optional
805         https://bugs.webkit.org/show_bug.cgi?id=164199
806
807         Reviewed by Saam Barati and Sam Weinig.
808
809         Use WTF::Optional::value_or.
810
811         * DOM/DOMHTMLOptionsCollection.mm:
812         (-[DOMHTMLOptionsCollection add:index:]):
813         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
814         (WebKit::NetscapePluginInstanceProxy::evaluate):
815         * Plugins/WebNetscapePluginView.mm:
816         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
817         * WebCoreSupport/WebFrameLoaderClient.h:
818         * WebCoreSupport/WebFrameLoaderClient.mm:
819         (WebFrameLoaderClient::dispatchDidCommitLoad):
820         * WebCoreSupport/WebPaymentCoordinatorClient.h:
821         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
822         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
823         (WebPaymentCoordinatorClient::completeShippingContactSelection):
824         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
825         * WebCoreSupport/WebSecurityOrigin.mm:
826         (-[WebSecurityOrigin port]):
827         * WebView/WebHTMLView.mm:
828         (toAction):
829         (toTag):
830
831 2016-11-26  Sam Weinig  <sam@webkit.org>
832
833         Convert IntersectionObserver over to using RuntimeEnabledFeatures so it can be properly excluded from script
834         https://bugs.webkit.org/show_bug.cgi?id=164965
835
836         Reviewed by Simon Fraser.
837
838         * WebView/WebPreferenceKeysPrivate.h:
839         * WebView/WebPreferences.mm:
840         (-[WebPreferences intersectionObserverEnabled]):
841         (-[WebPreferences setIntersectionObserverEnabled:]):
842         * WebView/WebPreferencesPrivate.h:
843         * WebView/WebView.mm:
844         (-[WebView _preferencesChanged:]):
845         Add a preference, defaulting to off, for enabling IntersectionObserver.
846
847 2016-11-22  Dan Bernstein  <mitz@apple.com>
848
849         [Mac] In Legacy WebKit, pressing an arrow key in editable content doesn’t hide the mouse cursor
850         https://bugs.webkit.org/show_bug.cgi?id=165036
851         <rdar://problem/5708580>
852
853         Reviewed by Alexey Proskuryakov.
854
855         * WebView/WebHTMLView.mm:
856         (-[WebHTMLView performKeyEquivalent:]): Hide the cursor if WebCore handled the event,
857           similarly to what we do in -keyDown: and to what WKWebView does with all key events.
858
859 2016-11-21  Alex Christensen  <achristensen@webkit.org>
860
861         Fix Sierra CMake build after r208452
862         https://bugs.webkit.org/show_bug.cgi?id=164437
863
864         * WebView/WebView.mm:
865         (-[WebView updateMediaTouchBar]):
866         I haven't enabled VIDEO_PRESENTATION_MODE in the CMake build yet.
867         It's needed for playbackSessionInterface to exist.
868
869 2016-11-18  Enrica Casucci  <enrica@apple.com>
870
871         Refactor drag and drop for WebKit2 to encode DragData message exchange.
872         https://bugs.webkit.org/show_bug.cgi?id=164945
873
874         Reviewed by Tim Horton.
875
876         * WebCoreSupport/WebDragClient.h:
877         * WebCoreSupport/WebDragClient.mm:
878         (WebDragClient::actionMaskForDrag):
879         (WebDragClient::willPerformDragDestinationAction):
880
881 2016-11-18  Jeremy Jones  <jeremyj@apple.com>
882
883         Add runtime flag to enable pointer lock. Enable pointer lock feature for mac.
884         https://bugs.webkit.org/show_bug.cgi?id=163801
885
886         Reviewed by Simon Fraser.
887
888         Plumb through PointerLockEnabled setting.
889
890         * Configurations/FeatureDefines.xcconfig:
891         * WebCoreSupport/WebChromeClient.mm:
892         (WebChromeClient::requestPointerUnlock):
893         * WebView/WebPreferenceKeysPrivate.h:
894         * WebView/WebPreferences.mm:
895         (-[WebPreferences pointerLockEnabled]):
896         (-[WebPreferences setPointerLockEnabled:]):
897         * WebView/WebPreferencesPrivate.h:
898         * WebView/WebView.mm:
899         (-[WebView _preferencesChanged:]):
900
901 2016-11-17  Dan Bernstein  <mitz@apple.com>
902
903         Try to fix some non-macOS builds.
904
905         * WebView/WebView.mm:
906
907 2016-11-16  Dave Hyatt  <hyatt@apple.com>
908
909         [CSS Parser] Add @supports, @keyframe and media query parsing options
910         https://bugs.webkit.org/show_bug.cgi?id=164821
911
912         Reviewed by Sam Weinig and Zalan Bujtas.
913
914         Fix up the create call now that fallback descriptor syntax is gone.
915
916         * DOM/DOM.mm:
917         (-[DOMHTMLLinkElement _mediaQueryMatches]):
918
919 2016-11-17  Saam Barati  <sbarati@apple.com>
920
921         Remove async/await compile time flag and enable tests
922         https://bugs.webkit.org/show_bug.cgi?id=164828
923         <rdar://problem/28639334>
924
925         Reviewed by Yusuke Suzuki.
926
927         * Configurations/FeatureDefines.xcconfig:
928
929 2016-11-17  Yusuke Suzuki  <utatane.tea@gmail.com>
930
931         [JSC] WTF::TemporaryChange with WTF::SetForScope
932         https://bugs.webkit.org/show_bug.cgi?id=164761
933
934         Reviewed by Saam Barati.
935
936         * WebView/WebView.mm:
937         (-[WebView updateTextTouchBar]):
938
939 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
940
941         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
942         https://bugs.webkit.org/show_bug.cgi?id=164827
943
944         Reviewed by Ryosuke Niwa.
945
946         * Configurations/FeatureDefines.xcconfig:
947         * WebView/WebPreferenceKeysPrivate.h:
948         * WebView/WebPreferences.mm:
949         (+[WebPreferences initialize]):
950         (-[WebPreferences es6ModulesEnabled]):
951         (-[WebPreferences setES6ModulesEnabled:]):
952         * WebView/WebPreferencesPrivate.h:
953         * WebView/WebView.mm:
954         (-[WebView _preferencesChanged:]):
955
956 2016-11-14  Alex Christensen  <achristensen@webkit.org>
957
958         Move SecurityOrigin::createFromDatabaseIdentifier to SecurityOriginData
959         https://bugs.webkit.org/show_bug.cgi?id=164720
960
961         Reviewed by Brady Eidson.
962
963         * Storage/WebDatabaseManager.mm:
964         (-[WebDatabaseManager origins]):
965         (-[WebDatabaseManager databasesWithOrigin:]):
966         (-[WebDatabaseManager deleteOrigin:]):
967         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
968         * Storage/WebDatabaseManagerClient.h:
969         * Storage/WebDatabaseManagerClient.mm:
970         (DidModifyOriginData::dispatchToMainThread):
971         (DidModifyOriginData::DidModifyOriginData):
972         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
973         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
974         * Storage/WebDatabaseQuotaManager.mm:
975         (-[WebDatabaseQuotaManager usage]):
976         (-[WebDatabaseQuotaManager quota]):
977         (-[WebDatabaseQuotaManager setQuota:]):
978         * Storage/WebStorageManager.mm:
979         (-[WebStorageManager origins]):
980         (-[WebStorageManager deleteOrigin:]):
981         * Storage/WebStorageTrackerClient.h:
982         * Storage/WebStorageTrackerClient.mm:
983         (WebStorageTrackerClient::dispatchDidModifyOrigin):
984         * WebCoreSupport/WebSecurityOrigin.mm:
985         (-[WebSecurityOrigin usage]):
986         (-[WebSecurityOrigin quota]):
987         (-[WebSecurityOrigin setQuota:]):
988
989 2016-11-13  Darin Adler  <darin@apple.com>
990
991         Fix exception handling in SQL database code, streamline and update code
992         https://bugs.webkit.org/show_bug.cgi?id=164685
993
994         Reviewed by Sam Weinig.
995
996         * Storage/WebDatabaseManager.mm:
997         (-[WebDatabaseManager origins]): Updated to use DatabaseTracker and pass
998         a reference.
999         (-[WebDatabaseManager databasesWithOrigin:]): Ditto.
1000         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Pass reference,
1001         but continue to use DatabaseManager.
1002         (-[WebDatabaseManager deleteOrigin:]): Use DatabaseTracker and pass a
1003         reference.
1004         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Ditto.
1005
1006         * Storage/WebDatabaseManagerClient.h: Updated to take references.
1007         * Storage/WebDatabaseManagerClient.mm:
1008         (WebDatabaseManagerClient::WebDatabaseManagerClient): Initialize data
1009         members in the class definition.
1010         (DidModifyOriginData::dispatchToMainThread): Take references.
1011         (DidModifyOriginData::DidModifyOriginData): Ditto.
1012         (WebDatabaseManagerClient::dispatchDidModifyOrigin): Ditto.
1013         (WebDatabaseManagerClient::dispatchDidModifyDatabase): Ditto.
1014         (WebDatabaseManagerClient::dispatchDidAddNewOrigin): Ditto. Also use
1015         DatabaseTracker::singleton instead of tracker.
1016
1017         * Storage/WebDatabaseQuotaManager.mm:
1018         (-[WebDatabaseQuotaManager initWithOrigin:]): Reject nil pointer argument.
1019         (-[WebDatabaseQuotaManager usage]): Use reference instead of pointer.
1020         (-[WebDatabaseQuotaManager quota]): Ditto.
1021         (-[WebDatabaseQuotaManager setQuota:]): Ditto.
1022         * WebCoreSupport/WebSecurityOrigin.mm:
1023         (-[WebSecurityOrigin initWithURL:]): Tweaked code a bit.
1024         (-[WebSecurityOrigin usage]): Use DatabaseTracker and pass a reference.
1025         (-[WebSecurityOrigin quota]): Ditto.
1026         (-[WebSecurityOrigin setQuota:]): Ditto.
1027         * WebView/WebFrame.mm:
1028         (-[WebFrame _cacheabilityDictionary]): Pass a reference.
1029
1030 2016-11-12  Darin Adler  <darin@apple.com>
1031
1032         Remove a few assorted uses of ExceptionCode
1033         https://bugs.webkit.org/show_bug.cgi?id=164683
1034
1035         Reviewed by Chris Dumez.
1036
1037         * DOM/DOMDOMImplementation.mm:
1038         (-[DOMImplementation createDocumentType:publicId:systemId:]):
1039         Use raiseOnDOMError instead of much longer hand written equivalent.
1040         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
1041
1042         * DOM/DOMDocument.mm:
1043         (-[DOMDocument createEntityReference:]): Use raiseNotSupportedErrorException
1044         so we are not using a specific exception code.
1045
1046         * DOM/DOMHTMLOptionsCollection.mm:
1047         (-[DOMHTMLOptionsCollection add:index:]): Use raiseOnDOMError instead of
1048         much longer hand written equivalent.
1049         * DOM/DOMHTMLSelectElement.mm:
1050         (-[DOMHTMLSelectElement add:before:]): Ditto. Also removed unneeded return
1051         statement after calling a "no return" function.
1052
1053         * DOM/ExceptionHandlers.h: Removed overloads of raiseDOMException and
1054         raiseOnDOMError functions that take ExceptionCode; keep the ones that take
1055         Exception and ExceptionOr. Renamed the other overload of raiseDOMException
1056         to raiseDOMErrorException; it is only used as the non-inline implementation
1057         part of the inline raiseOnDOMError function.
1058         * DOM/ExceptionHandlers.mm:
1059         (raiseDOMErrorException): Renamed. Made the ExceptionCode overload be local
1060         to this source file instead of in the header.
1061         (raiseTypeErrorException): Updated for name change.
1062         (raiseNotSupportedErrorException): Added.
1063
1064 2016-11-11  Ryosuke Niwa  <rniwa@webkit.org>
1065
1066         Hovering over a slotted Text node clears hover state
1067         https://bugs.webkit.org/show_bug.cgi?id=164002
1068         <rdar://problem/29040471>
1069
1070         Reviewed by Simon Fraser.
1071
1072         * WebView/WebImmediateActionController.mm:
1073         (-[WebImmediateActionController performHitTestAtPoint:]):
1074
1075 2016-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
1076
1077         [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
1078         https://bugs.webkit.org/show_bug.cgi?id=164538
1079         <rdar://problem/8418711>
1080
1081         Reviewed by Ryosuke Niwa.
1082
1083         Account for renaming HTMLElement::autocorrect to HTMLElement::shouldAutocorrect, as well as moving
1084         WebAutocapitalizeType to WebKit from WebCore. Additionally, moves the -autocorrect and -autocapitalize SPIs out
1085         of HTML(Input|Form|TextArea)ElementPrivate.h and into HTMLElementPrivate.h. This also means removing redundant
1086         code for interfacing with the unwrapped HTMLElement's autocorrect and autocapitalize attributes.
1087
1088         * DOM/DOMHTML.mm:
1089         (webAutocapitalizeType):
1090         (-[DOMHTMLInputElement _autocapitalizeType]):
1091         (-[DOMHTMLTextAreaElement _autocapitalizeType]):
1092         * DOM/DOMHTMLElement.mm:
1093         (-[DOMHTMLElement autocorrect]):
1094         (-[DOMHTMLElement setAutocorrect:]):
1095         (-[DOMHTMLElement autocapitalize]):
1096         (-[DOMHTMLElement setAutocapitalize:]):
1097         * DOM/DOMHTMLElementPrivate.h: Copied from Source/WebCore/html/Autocapitalize.h.
1098         * DOM/DOMHTMLFormElement.mm:
1099         (-[DOMHTMLFormElement autocorrect]): Deleted.
1100         (-[DOMHTMLFormElement setAutocorrect:]): Deleted.
1101         (-[DOMHTMLFormElement autocapitalize]): Deleted.
1102         (-[DOMHTMLFormElement setAutocapitalize:]): Deleted.
1103         * DOM/DOMHTMLInputElement.mm:
1104         (-[DOMHTMLInputElement autocorrect]): Deleted.
1105         (-[DOMHTMLInputElement setAutocorrect:]): Deleted.
1106         (-[DOMHTMLInputElement autocapitalize]): Deleted.
1107         (-[DOMHTMLInputElement setAutocapitalize:]): Deleted.
1108         * DOM/DOMHTMLInputElementPrivate.h:
1109         * DOM/DOMHTMLTextAreaElement.mm:
1110         (-[DOMHTMLTextAreaElement autocorrect]): Deleted.
1111         (-[DOMHTMLTextAreaElement setAutocorrect:]): Deleted.
1112         (-[DOMHTMLTextAreaElement autocapitalize]): Deleted.
1113         (-[DOMHTMLTextAreaElement setAutocapitalize:]): Deleted.
1114         * DOM/DOMHTMLTextAreaElementPrivate.h:
1115
1116         We need to import DOMHTMLElementPrivate.h here to avoid breaking UIKit. We should follow this up with a UIKit
1117         change to import DOMHTMLElementPrivate.h directly.
1118
1119         * DOM/DOMPrivate.h:
1120         * DOM/WebAutocapitalizeTypes.h: Copied from Tools/WebKitTestRunner/ios/UIKitSPI.h.
1121         * MigrateHeaders.make:
1122
1123 2016-11-11  Beth Dakin  <bdakin@apple.com>
1124
1125         Move to modern TouchBar methods
1126         https://bugs.webkit.org/show_bug.cgi?id=164655
1127         -and corresponding-
1128         rdar://problem/29226911
1129
1130         Reviewed by Wenson Hsieh.
1131
1132         customizationDefaultItemIdentifiers -> defaultItemIdentifiers
1133         itemIdentifiers -> defaultItemIdentifiers
1134         defaultItems -> templateItems
1135
1136         * WebView/WebView.mm:
1137         (-[WebView _plainTextTouchBarDefaultItemIdentifiers]):
1138         (-[WebView _richTextTouchBarDefaultItemIdentifiers]):
1139         (-[WebView setUpTextTouchBar:]):
1140         (-[WebView updateTextTouchBar]):
1141         (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
1142         (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
1143
1144 2016-11-11  Darin Adler  <darin@apple.com>
1145
1146         Move Node from ExceptionCode to ExceptionOr
1147         https://bugs.webkit.org/show_bug.cgi?id=164515
1148
1149         Reviewed by Sam Weinig.
1150
1151         * DOM/DOMHTMLSelectElement.mm:
1152         (-[DOMHTMLSelectElement remove:]): Call remove instead of removeByIndex
1153         now that it was renamed.
1154         * DOM/DOMNode.mm:
1155         (-[DOMNode setNodeValue:]): Updated exception handling.
1156         (-[DOMNode setPrefix:]): Ditto.
1157         (-[DOMNode setTextContent:]): Ditto.
1158         (-[DOMNode insertBefore:refChild:]): Ditto.
1159         (-[DOMNode replaceChild:oldChild:]): Ditto.
1160         (-[DOMNode removeChild:]): Ditto.
1161         (-[DOMNode appendChild:]): Ditto.
1162         (-[DOMNode cloneNode:]): Ditto.
1163
1164 2016-11-11  Beth Dakin  <bdakin@apple.com>
1165
1166         Get touch bar code building for open source builds
1167         https://bugs.webkit.org/show_bug.cgi?id=164610
1168
1169         Reviewed by Wenson Hsieh.
1170
1171         * WebKitPrefix.h:
1172
1173 2016-11-10  Alex Christensen  <achristensen@webkit.org>
1174
1175         Fix assertion after r208534.
1176         https://bugs.webkit.org/show_bug.cgi?id=160497
1177
1178         * WebView/WebView.mm:
1179         (-[WebView _commonInitializationWithFrameName:groupName:]):
1180         (WebInstallMemoryPressureHandler):
1181         WebInstallMemoryPressureHandler can be called before [WebView initWithFrame:frameName:groupName:]
1182         When this happens, we should use the same std::once_flag to make sure we install the MemoryPressureHandler::singleton
1183         only once, otherwise we get an assertion !m_installed in MemoryPressureHandler::setLowMemoryHandler.
1184
1185 2016-11-10  Alex Christensen  <achristensen@webkit.org>
1186
1187         Move SecurityOrigin::databaseIdentifier() to SecurityOriginData
1188         https://bugs.webkit.org/show_bug.cgi?id=164573
1189
1190         Reviewed by Brady Eidson.
1191
1192         * WebCoreSupport/WebSecurityOrigin.mm:
1193         (-[WebSecurityOrigin databaseIdentifier]):
1194
1195 2016-10-14  Carlos Garcia Campos  <cgarcia@igalia.com>
1196
1197         MemoryPressureHandler shouldn't know how to release WebCore memory
1198         https://bugs.webkit.org/show_bug.cgi?id=160497
1199
1200         Reviewed by Michael Catanzaro.
1201
1202         Set the low memory handler before installing the memory pressure handler.
1203
1204         * WebView/WebView.mm:
1205         (-[WebView _commonInitializationWithFrameName:groupName:]):
1206
1207 2016-11-09  Ryosuke Niwa  <rniwa@webkit.org>
1208
1209         WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
1210         https://bugs.webkit.org/show_bug.cgi?id=164501
1211         <rdar://problem/29152282>
1212
1213         Reviewed by Sam Weinig.
1214
1215         Align what [WebHTMLView attributedString] returns to what would be used on copy & paste by using HTMLConverter
1216         instead of _initWithDOMRange in [WebHTMLView _attributeStringFromDOMRange].
1217
1218         * WebView/WebHTMLView.mm:
1219         (-[WebHTMLView _attributedStringFromDOMRange:]): Renamed from _attributeStringFromDOMRange.
1220         (-[WebHTMLView attributedString]):
1221         (-[WebHTMLView selectedAttributedString]):
1222         (-[WebHTMLView selectedString]): Moved to reduce the number of occurrences of the if-defs.
1223
1224 2016-11-04  Brent Fulgham  <bfulgham@apple.com>
1225
1226         Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
1227         https://bugs.webkit.org/show_bug.cgi?id=155185
1228         <rdar://problem/11101440>
1229
1230         Reviewed by Brady Eidson.
1231
1232         Provide SPI to access the new quirk for localStorage. The quirk defaults to 'on'. When active, this
1233         quirk says that localStorage access should be granted, without needing to grant universal file access.
1234
1235         If the quirk is turned off, then localStorage is blocked unless the WebKit client explicitly
1236         grants universal file access.
1237
1238         * WebView/WebPreferenceKeysPrivate.h:
1239         * WebView/WebPreferences.mm:
1240         (-[WebPreferences needsLocalStorageQuirk]): Added.
1241         (-[WebPreferences setNeedsLocalStorageQuirk:]): Added.
1242         * WebView/WebPreferencesPrivate.h:
1243         * WebView/WebView.mm:
1244         (-[WebView _preferencesChanged:]): Honor the new localStorage quirk.
1245
1246 2016-11-09  Alex Christensen  <achristensen@webkit.org>
1247
1248         Clean up Storage code
1249         https://bugs.webkit.org/show_bug.cgi?id=164562
1250
1251         Reviewed by Brady Eidson.
1252
1253         * Storage/WebStorageManager.mm:
1254         (-[WebStorageManager origins]):
1255         (-[WebStorageManager deleteAllOrigins]):
1256         (-[WebStorageManager deleteOrigin:]):
1257         (-[WebStorageManager diskUsageForOrigin:]):
1258         (-[WebStorageManager syncLocalStorage]):
1259         (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
1260         (+[WebStorageManager setStorageDatabaseIdleInterval:]):
1261         (+[WebStorageManager closeIdleLocalStorageDatabases]):
1262         (WebKitInitializeStorageIfNecessary):
1263         * WebView/WebView.mm:
1264         (+[WebView _applicationWillTerminate]):
1265
1266 2016-11-09  Beth Dakin  <bdakin@apple.com>
1267
1268         Another attempted build fix.
1269
1270         * WebView/WebView.mm:
1271
1272 2016-11-09  Beth Dakin  <bdakin@apple.com>
1273
1274         Attempted build fix.
1275
1276         * WebView/WebView.mm:
1277
1278 2016-11-09  Darin Adler  <darin@apple.com>
1279
1280         Move Range from ExceptionCode to ExceptionOr
1281         https://bugs.webkit.org/show_bug.cgi?id=164457
1282
1283         Reviewed by Alex Christensen.
1284
1285         * DOM/DOMRange.mm:
1286         (-[DOMRange setStart:offset:]): Updated exception handling.
1287         (-[DOMRange setEnd:offset:]): Ditto.
1288         (-[DOMRange setStartBefore:]): Ditto.
1289         (-[DOMRange setStartAfter:]): Ditto.
1290         (-[DOMRange setEndBefore:]): Ditto.
1291         (-[DOMRange setEndAfter:]): Ditto.
1292         (-[DOMRange selectNode:]): Ditto.
1293         (-[DOMRange selectNodeContents:]): Ditto.
1294         (-[DOMRange compareBoundaryPoints:sourceRange:]): Ditto.
1295         (-[DOMRange deleteContents]): Ditto.
1296         (-[DOMRange extractContents]): Ditto.
1297         (-[DOMRange cloneContents]): Ditto.
1298         (-[DOMRange insertNode:]): Ditto.
1299         (-[DOMRange surroundContents:]): Ditto.
1300         (-[DOMRange createContextualFragment:]): Ditto.
1301         (-[DOMRange compareNode:]): Ditto.
1302         (-[DOMRange intersectsNode:]): Ditto.
1303         (-[DOMRange comparePoint:offset:]): Ditto.
1304         (-[DOMRange isPointInRange:offset:]): Ditto.
1305         (-[DOMRange expand:]): Ditto.
1306         * WebView/WebFrame.mm:
1307         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
1308         (-[WebFrame _smartDeleteRangeForProposedRange:]): Deleted.
1309         This function was incorrectly implemented (set both start and end of
1310         the range to the computed start), not declared in any header file,
1311         not used anywhere inside WebKit, and I also could not find a use of it
1312         in outside-WebKit Apple code.
1313         * mac/DOM/DOMUIKitExtensions.mm:
1314         (-[DOMRange move:inDirection:]): Ditto.
1315         (-[DOMRange extend:inDirection:]): Ditto.
1316
1317 2016-11-09  Darin Adler  <darin@apple.com>
1318
1319         Move EventTarget from ExceptionCode to ExceptionOr
1320         https://bugs.webkit.org/show_bug.cgi?id=164465
1321
1322         Reviewed by Youenn Fablet.
1323
1324         * DOM/DOMNode.mm:
1325         (-[DOMNode dispatchEvent:]): Updated exception handling.
1326
1327 2016-11-09  Chris Dumez  <cdumez@apple.com>
1328
1329         [Mac] Stop using deprecated AppKit enumeration values
1330         https://bugs.webkit.org/show_bug.cgi?id=164494
1331
1332         Reviewed by Darin Adler.
1333
1334         Stop using deprecated AppKit enumeration values.
1335
1336         * Carbon/CarbonWindowAdapter.mm:
1337         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1338         (-[CarbonWindowAdapter sendSuperEvent:]):
1339         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1340         (WebKit::NetscapePluginHostProxy::beginModal):
1341         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1342         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
1343         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1344         (-[WebHostedNetscapePluginView drawRect:]):
1345         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1346         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
1347         * WebCoreSupport/PopupMenuMac.mm:
1348         (PopupMenuMac::populate):
1349         (PopupMenuMac::show):
1350         * WebCoreSupport/WebContextMenuClient.mm:
1351         (WebContextMenuClient::showContextMenu):
1352         * WebCoreSupport/WebFrameLoaderClient.mm:
1353         (WebFrameLoaderClient::actionDictionary):
1354         * WebCoreSupport/WebInspectorClient.mm:
1355         (WebInspectorFrontendClient::canAttach):
1356         (-[WebInspectorWindowController window]):
1357         * WebInspector/WebNodeHighlight.mm:
1358         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
1359         * WebView/WebFrameView.mm:
1360         (-[WebFrameView keyDown:keyDown:]):
1361         * WebView/WebFullScreenController.mm:
1362         (-[WebFullScreenController init]):
1363         (createBackgroundFullscreenWindow):
1364         * WebView/WebHTMLView.mm:
1365         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
1366         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
1367         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
1368         (isQuickLookEvent):
1369         (-[WebHTMLView hitTest:]):
1370         (-[WebHTMLView _sendToolTipMouseExited]):
1371         (-[WebHTMLView _sendToolTipMouseEntered]):
1372         (mouseEventIsPartOfClickOrDrag):
1373         (-[WebHTMLView _updateMouseoverWithEvent:]):
1374         (-[WebHTMLView _autoscroll]):
1375         (-[WebHTMLView acceptsFirstResponder]):
1376         (-[WebHTMLView viewDidMoveToWindow]):
1377         (-[WebHTMLView mouseDown:mouseDown:]):
1378         (currentKeyboardEvent):
1379         (-[WebHTMLView _handleStyleKeyEquivalent:]):
1380         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
1381         * WebView/WebPDFView.mm:
1382         (-[WebPDFView hitTest:]):
1383         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
1384         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
1385         * WebView/WebTextCompletionController.mm:
1386         (-[WebTextCompletionController _buildUI]):
1387         (-[WebTextCompletionController _placePopupWindow:]):
1388         * WebView/WebView.mm:
1389         (-[WebView applicationFlags:]):
1390
1391 2016-11-09  Beth Dakin  <bdakin@apple.com>
1392
1393         Support TouchBar in WebKit
1394         https://bugs.webkit.org/show_bug.cgi?id=164437
1395         -and corresponding-
1396         rdar://problem/28876524
1397
1398         Reviewed by Darin Adler.
1399
1400         * WebCoreSupport/WebEditorClient.mm:
1401         (WebEditorClient::respondToChangedSelection):
1402         (WebEditorClient::updateEditorStateAfterLayoutIfEditabilityChanged):
1403         * WebView/WebHTMLView.mm:
1404         (-[WebHTMLView candidateListTouchBarItem]):
1405         * WebView/WebView.mm:
1406         (-[_WebTextListTouchBarViewController initWithWebView:]):
1407         (-[_WebTextListTouchBarViewController _selectList:]):
1408         (-[_WebTextListTouchBarViewController setCurrentListType:]):
1409         (-[WebTextTouchBarItemController initWithWebView:]):
1410         (-[WebTextTouchBarItemController itemForIdentifier:]):
1411         (-[WebTextTouchBarItemController webTextListTouchBarViewController]):
1412         (-[WebTextTouchBarItemController setTextIsBold:]):
1413         (-[WebTextTouchBarItemController setTextIsItalic:]):
1414         (-[WebTextTouchBarItemController setTextIsUnderlined:]):
1415         (-[WebTextTouchBarItemController _webChangeTextStyle:]):
1416         (-[WebTextTouchBarItemController setCurrentTextAlignment:]):
1417         (-[WebTextTouchBarItemController _webChangeTextAlignment:]):
1418         (-[WebTextTouchBarItemController textColor]):
1419         (-[WebTextTouchBarItemController setTextColor:]):
1420         (-[WebTextTouchBarItemController _webChangeColor:]):
1421         (-[WebTextTouchBarItemController textListViewController]):
1422         (-[WebView _commonInitializationWithFrameName:groupName:]):
1423         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
1424         (-[WebView shouldRequestCandidates]):
1425         (-[WebView forceRequestCandidatesForTesting]):
1426         (-[WebView makeTouchBar]):
1427         (-[WebView touchBar:makeItemForIdentifier:]):
1428         (textCheckingResultFromNSTextCheckingResult):
1429         (-[WebView candidateListTouchBarItem:endSelectingCandidateAtIndex:]):
1430         (-[WebView candidateListTouchBarItem:changedCandidateListVisibility:]):
1431         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
1432         (-[WebView _clearPlaybackControlsManager]):
1433         (-[WebView _dismissTextTouchBarPopoverItemWithIdentifier:]):
1434         (-[WebView _textTouchBarCustomizationAllowedIdentifiers]):
1435         (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]):
1436         (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]):
1437         (-[WebView touchBarDidExitCustomization:]):
1438         (-[WebView touchBarWillEnterCustomization:]):
1439         (-[WebView didChangeAutomaticTextCompletion:]):
1440         (-[WebView setUpTextTouchBar:]):
1441         (-[WebView _isRichlyEditable]):
1442         (-[WebView textTouchBar]):
1443         (-[WebView updateTextTouchBar]):
1444         (-[WebView updateMediaTouchBar]):
1445         (-[WebView updateTouchBar]):
1446         (-[WebView prepareForMouseDown]):
1447         (-[WebView prepareForMouseUp]):
1448         (-[WebView webViewAdditionsWillDestroyView]):
1449         (-[WebView candidateList]):
1450         (-[WebView updateWebViewAdditions]): Deleted.
1451         * WebView/WebViewData.h:
1452         * WebView/WebViewInternal.h:
1453         * WebView/WebViewPrivate.h:
1454
1455 2016-11-04  Wenson Hsieh  <wenson_hsieh@apple.com>
1456
1457         Safari does not emit composition end if blurred for dead key / Japanese IME
1458         https://bugs.webkit.org/show_bug.cgi?id=164369
1459         <rdar://problem/29050439>
1460
1461         Reviewed by Ryosuke Niwa.
1462
1463         When canceling a composition, make sure that we clear the system IME state.
1464
1465         * WebCoreSupport/WebEditorClient.h:
1466         * WebCoreSupport/WebEditorClient.mm:
1467         (WebEditorClient::canceledComposition):
1468
1469 2016-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
1470
1471         Add a setting and preferences to enable/disable async image decoding
1472         https://bugs.webkit.org/show_bug.cgi?id=164417
1473
1474         Reviewed by Simon Fraser.
1475
1476         Hook up the asyncImageDecodingEnabled setting for WebKit1.
1477
1478         * WebView/WebPreferenceKeysPrivate.h:
1479         * WebView/WebPreferences.mm:
1480         (+[WebPreferences initialize]):
1481         (-[WebPreferences asyncImageDecodingEnabled]):
1482         (-[WebPreferences setAsyncImageDecodingEnabled:]):
1483         * WebView/WebPreferencesPrivate.h:
1484         * WebView/WebView.mm:
1485         (-[WebView _preferencesChanged:]):
1486
1487 2016-11-01  Alex Christensen  <achristensen@webkit.org>
1488
1489         Remove PassRefPtr from DumpRenderTree
1490         https://bugs.webkit.org/show_bug.cgi?id=164307
1491
1492         Reviewed by Sam Weinig.
1493
1494         * WebView/WebGeolocationPosition.mm:
1495         (-[WebGeolocationPosition initWithGeolocationPosition:]):
1496
1497 2016-11-02  Romain Bellessort  <romain.bellessort@crf.canon.fr>
1498
1499         [Readable Streams API] Enable creation of ReadableByteStreamController
1500         https://bugs.webkit.org/show_bug.cgi?id=164014
1501
1502         Reviewed by Youenn Fablet.
1503
1504         Added flag for the byte stream part of Readable Streams API.
1505
1506         * Configurations/FeatureDefines.xcconfig:
1507
1508 2016-11-01  Ryosuke Niwa  <rniwa@webkit.org>
1509
1510         Remove CUSTOM_ELEMENTS build flag
1511         https://bugs.webkit.org/show_bug.cgi?id=164267
1512
1513         Reviewed by Antti Koivisto.
1514
1515         Removed the build flag.
1516
1517         * Configurations/FeatureDefines.xcconfig:
1518         * WebView/WebPreferences.mm:
1519         (+[WebPreferences initialize]):
1520         * WebView/WebView.mm:
1521         (-[WebView _preferencesChanged:]):
1522
1523 2016-11-01  Eric Carlson  <eric.carlson@apple.com>
1524
1525         [MediaStream] restrict media capture secure connections
1526         https://bugs.webkit.org/show_bug.cgi?id=164234
1527         <rdar://problem/28944906>
1528
1529         Reviewed by Alex Christensen.
1530
1531         * WebView/WebPreferenceKeysPrivate.h:
1532         * WebView/WebPreferences.mm:
1533         (+[WebPreferences initialize]): Initialize WebKitMediaCaptureRequiresSecureConnectionPreferenceKey.
1534         (-[WebPreferences mediaCaptureRequiresSecureConnection]): New.
1535         (-[WebPreferences setMediaCaptureRequiresSecureConnection:]): New.
1536         * WebView/WebPreferencesPrivate.h:
1537
1538         * WebView/WebView.mm:
1539         (-[WebView _preferencesChanged:]): Sync mediaCaptureRequiresSecureConnection.
1540
1541 2016-10-29  Filip Pizlo  <fpizlo@apple.com>
1542
1543         JSC should support SharedArrayBuffer
1544         https://bugs.webkit.org/show_bug.cgi?id=163986
1545
1546         Reviewed by Keith Miller.
1547         
1548         Support the RuntimeFlag.
1549
1550         * WebView/WebPreferencesPrivate.h:
1551
1552 2016-10-31  Wenson Hsieh  <wenson_hsieh@apple.com>
1553
1554         [WK1] Candidate visibility should not update as a result of selection during a dictionary lookup
1555         https://bugs.webkit.org/show_bug.cgi?id=164236
1556         <rdar://problem/28747712>
1557
1558         Reviewed by Beth Dakin.
1559
1560         See WebCore ChangeLog for more detail. Sets the Editor's isGettingDictionaryPopupInfo state to true during a
1561         dictionary lookup.
1562
1563         * WebCoreSupport/WebEditorClient.mm:
1564         (WebEditorClient::respondToChangedSelection):
1565         * WebView/WebImmediateActionController.mm:
1566         (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
1567
1568 2016-10-31  Darin Adler  <darin@apple.com>
1569
1570         Move ChildNode and ParentNode from ExceptionCode to Exception, add support for ExceptionOr<T&>
1571         https://bugs.webkit.org/show_bug.cgi?id=164214
1572
1573         Reviewed by Alex Christensen.
1574
1575         * DOM/DOMCSSPrimitiveValue.mm:
1576         (-[DOMCSSPrimitiveValue getCounterValue]): Updated since return value
1577         is a reference now.
1578         (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
1579
1580         * DOM/DOMDocument.mm:
1581         (-[DOMDocument querySelector:]): Updated exception handling.
1582         (-[DOMDocument querySelectorAll:]): Ditto.
1583         * DOM/DOMDocumentFragment.mm:
1584         (-[DOMDocumentFragment querySelector:]): Ditto.
1585         (-[DOMDocumentFragment querySelectorAll:]): Ditto.
1586         * DOM/DOMElement.mm:
1587         (-[DOMElement querySelector:]): Ditto.
1588         (-[DOMElement querySelectorAll:]): Ditto.
1589
1590 2016-10-31  Darin Adler  <darin@apple.com>
1591
1592         Convert Document from ExceptionCode to Exception
1593         https://bugs.webkit.org/show_bug.cgi?id=164212
1594
1595         Reviewed by Alex Christensen.
1596
1597         * DOM/DOMDocument.mm:
1598         (-[DOMDocument setXmlVersion:]): Updated exception handling.
1599         (-[DOMDocument cookie]): Ditto.
1600         (-[DOMDocument setCookie:]): Ditto.
1601         (-[DOMDocument setBody:]): Ditto.
1602         (-[DOMDocument createElement:]): Ditto.
1603         (-[DOMDocument createCDATASection:]): Ditto.
1604         (-[DOMDocument createProcessingInstruction:data:]): Ditto.
1605         (-[DOMDocument createAttribute:]): Ditto.
1606         (-[DOMDocument createEntityReference:]): Ditto.
1607         (-[DOMDocument importNode:deep:]): Ditto.
1608         (-[DOMDocument createElementNS:qualifiedName:]): Ditto.
1609         (-[DOMDocument createAttributeNS:qualifiedName:]): Ditto.
1610         (-[DOMDocument getElementsByTagNameNS:localName:]): Ditto.
1611         (-[DOMDocument adoptNode:]): Ditto.
1612         (-[DOMDocument createEvent:]): Ditto.
1613
1614 2016-10-30  Darin Adler  <darin@apple.com>
1615
1616         Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception
1617         https://bugs.webkit.org/show_bug.cgi?id=164206
1618
1619         Reviewed by Chris Dumez.
1620
1621         * DOM/DOMElement.mm:
1622         (-[DOMElement setInnerHTML:]): Updated exception handling.
1623         (-[DOMElement setOuterHTML:]): Ditto.
1624         (-[DOMElement setAttribute:value:]): Ditto.
1625         (-[DOMElement setAttributeNode:]): Ditto.
1626         (-[DOMElement removeAttributeNode:]): Ditto.
1627         (-[DOMElement setAttributeNS:qualifiedName:value:]): Ditto.
1628         (-[DOMElement setAttributeNodeNS:]): Ditto.
1629         (-[DOMElement matches:]): Ditto.
1630         (-[DOMElement closest:]): Ditto.
1631         (-[DOMElement webkitMatchesSelector:]): Ditto.
1632         * DOM/DOMHTMLElement.mm:
1633         (-[DOMHTMLElement insertAdjacentElement:element:]): Ditto.
1634         (-[DOMHTMLElement insertAdjacentHTML:html:]): Ditto.
1635         (-[DOMHTMLElement insertAdjacentText:text:]): Ditto.
1636         * DOM/DOMNamedNodeMap.mm:
1637         (-[DOMNamedNodeMap setNamedItem:]): Ditto.
1638         (-[DOMNamedNodeMap removeNamedItem:]): Ditto.
1639         (-[DOMNamedNodeMap setNamedItemNS:]): Ditto.
1640         (-[DOMNamedNodeMap removeNamedItemNS:localName:]): Ditto.
1641
1642 2016-10-29  Darin Adler  <darin@apple.com>
1643
1644         Convert more of DOM from ExceptionCode to Exception
1645         https://bugs.webkit.org/show_bug.cgi?id=164173
1646
1647         Reviewed by Ryosuke Niwa.
1648
1649         * DOM/DOMCharacterData.mm:
1650         (-[DOMCharacterData substringData:length:]): Updated since this
1651         now uses ExceptionOr.
1652         (-[DOMCharacterData insertData:data:]): Ditto.
1653         (-[DOMCharacterData deleteData:length:]): Ditto.
1654         (-[DOMCharacterData replaceData:length:data:]): Ditto.
1655         * DOM/DOMText.mm:
1656         (-[DOMText splitText:]): Ditto.
1657         (-[DOMText replaceWholeText:]): Removed unneeded exception code
1658         handling from function that does not throw an exception.
1659
1660 2016-10-28  Darin Adler  <darin@apple.com>
1661
1662         Move all classes in the HTML directory from ExceptionCode to Exception
1663         https://bugs.webkit.org/show_bug.cgi?id=163876
1664
1665         Reviewed by Sam Weinig.
1666
1667         * DOM/DOMCharacterData.mm:
1668         (-[DOMCharacterData remove]): Updated exception handling.
1669         * DOM/DOMDOMTokenList.mm:
1670         (-[DOMDOMTokenList toggle:force:]): Ditto.
1671         * DOM/DOMDocumentType.mm:
1672         (-[DOMDocumentType remove]): Ditto.
1673         * DOM/DOMElement.mm:
1674         (-[DOMElement remove]): Ditto.
1675         * DOM/DOMHTML.mm:
1676         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]): Ditto.
1677         * DOM/DOMHTMLCanvasElement.mm:
1678         (-[DOMHTMLCanvasElement toDataURL:]): Ditto.
1679         * DOM/DOMHTMLElement.mm:
1680         (-[DOMHTMLElement setInnerText:]): Ditto.
1681         (-[DOMHTMLElement setOuterText:]): Ditto.
1682         (-[DOMHTMLElement setContentEditable:]): Ditto.
1683         * DOM/DOMHTMLInputElement.mm:
1684         (-[DOMHTMLInputElement setMaxLength:]): Ditto.
1685         (-[DOMHTMLInputElement setValueAsDate:]): Ditto.
1686         (-[DOMHTMLInputElement setValueAsNumber:]): Ditto.
1687         (-[DOMHTMLInputElement stepUp:]): Ditto.
1688         (-[DOMHTMLInputElement stepDown:]): Ditto.
1689         (-[DOMHTMLInputElement setRangeText:]): Ditto.
1690         (-[DOMHTMLInputElement setRangeText:start:end:selectionMode:]): Ditto.
1691         * DOM/DOMHTMLMarqueeElement.mm:
1692         (-[DOMHTMLMarqueeElement setLoop:]): Ditto.
1693         * DOM/DOMHTMLMediaElement.mm:
1694         (-[DOMHTMLMediaElement setCurrentTime:]): Ditto.
1695         (-[DOMHTMLMediaElement setVolume:]): Ditto.
1696         * DOM/DOMHTMLOptionsCollection.mm:
1697         (-[DOMHTMLOptionsCollection setLength:]): Ditto.
1698         * DOM/DOMHTMLTableElement.mm:
1699         (-[DOMHTMLTableElement setCaption:]): Ditto.
1700         (-[DOMHTMLTableElement setTHead:]): Ditto.
1701         (-[DOMHTMLTableElement setTFoot:]): Ditto.
1702         (-[DOMHTMLTableElement insertRow:]): Ditto.
1703         (-[DOMHTMLTableElement deleteRow:]): Ditto.
1704         * DOM/DOMHTMLTableRowElement.mm:
1705         (-[DOMHTMLTableRowElement insertCell:]): Ditto.
1706         (-[DOMHTMLTableRowElement deleteCell:]): Ditto.
1707         * DOM/DOMHTMLTableSectionElement.mm:
1708         (-[DOMHTMLTableSectionElement insertRow:]): Ditto.
1709         (-[DOMHTMLTableSectionElement deleteRow:]): Ditto.
1710         * DOM/DOMHTMLTextAreaElement.mm:
1711         (-[DOMHTMLTextAreaElement setMaxLength:]): Ditto.
1712         (-[DOMHTMLTextAreaElement setRangeText:]): Ditto.
1713         (-[DOMHTMLTextAreaElement setRangeText:start:end:selectionMode:]): Ditto.
1714         * DOM/DOMHTMLVideoElement.mm:
1715         (-[DOMHTMLVideoElement webkitEnterFullscreen]): Ditto.
1716         (-[DOMHTMLVideoElement webkitEnterFullScreen]): Changed to call the other named
1717         version (lowercase S) instead of repeating the logic from that method.
1718         (-[DOMHTMLVideoElement webkitExitFullScreen]): Ditto.
1719         * DOM/DOMTimeRanges.mm:
1720         (-[DOMTimeRanges start:]): Updated exception handling.
1721         (-[DOMTimeRanges end:]): Ditto.
1722
1723 2016-10-27  Chris Dumez  <cdumez@apple.com>
1724
1725         Regression(r203601): Caused crashes in iBooks
1726         https://bugs.webkit.org/show_bug.cgi?id=164093
1727         <rdar://problem/28745634>
1728
1729         Reviewed by Darin Adler.
1730
1731         Restore pre-r203601 behavior when calling [DOMNode compareDocumentPosition:nil],
1732         which was to return Node::DOCUMENT_POSITION_DISCONNECTED.
1733
1734         * DOM/DOMNode.mm:
1735         (-[DOMNode compareDocumentPosition:]):
1736
1737 2016-10-27  Wenson Hsieh  <wenson_hsieh@apple.com>
1738
1739         Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec
1740         https://bugs.webkit.org/show_bug.cgi?id=163948
1741         <rdar://problem/28921433>
1742
1743         Reviewed by Darin Adler.
1744
1745         Add support for new drag and drop-related EditAction enum values.
1746
1747         * WebCoreSupport/WebEditorClient.mm:
1748         (undoNameForEditAction):
1749
1750 2016-10-27  Dan Bernstein  <mitz@apple.com>
1751
1752         Reapplied the configuration changes from r207934 without breaking iOS builds.
1753
1754         * Configurations/Base.xcconfig:
1755         * Configurations/WebKitLegacy.xcconfig:
1756
1757 2016-10-27  Dan Bernstein  <mitz@apple.com>
1758
1759         Reverted the configuration changes from r207934 because they broke iOS builds not using the Apple-internal SDK.
1760
1761         * Configurations/Base.xcconfig:
1762         * Configurations/WebKitLegacy.xcconfig:
1763
1764 2016-10-26  Dan Bernstein  <mitz@apple.com>
1765
1766         [Xcode] WebKit fails to build when CLANG_WARN_DOCUMENTATION_COMMENTS is enabled
1767         https://bugs.webkit.org/show_bug.cgi?id=164048
1768
1769         Reviewed by Tim Horton.
1770
1771         * Configurations/Base.xcconfig: Enabled CLANG_WARN_DOCUMENTATION_COMMENTS.
1772         * Configurations/WebKitLegacy.xcconfig: Made the compiler treat the icu headers as system
1773           headers.
1774
1775         * History/WebBackForwardList.h: Fixed parameter name in @param entry.
1776         * Misc/WebDownload.h: Removed empty entries.
1777         * Misc/WebIconDatabase.h: Remove incorrect @param entries.
1778         * Misc/WebQuotaManager.h: Added missing parameter names in @param entries.
1779         * WebView/WebFrameLoadDelegate.h: Corrected parameter names in @param entries.
1780         * WebView/WebFrameViewPrivate.h: Changed incorrect @result to @abstract.
1781         * WebView/WebPolicyDelegate.h: Fixed parameter name and removed incorrect @param entries.
1782         * WebView/WebPreferences.h: Changed @method to @property in a couple of places.
1783         * WebView/WebResourceLoadDelegate.h: Fixed parameter names.
1784         * WebView/WebUIDelegate.h: Filled in two empty @param entries. Added missing parameter name,
1785           Fixed a typo and removed empty @discussion entry. Fixed some parameter names.
1786         * WebView/WebUIDelegatePrivate.h: Fixed parameter names.
1787         * WebView/WebView.h: Changed @method to @property in a couple of places.
1788         * WebView/WebViewPrivate.h: Fixed parameter names, changed incorrect @result to @abstract.
1789
1790 2016-10-26  Brian Burg  <bburg@apple.com>
1791
1792         Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend
1793         https://bugs.webkit.org/show_bug.cgi?id=164046
1794
1795         Reviewed by Joseph Pecoraro.
1796
1797         * WebCoreSupport/WebInspectorClient.h:
1798
1799 2016-10-21  Alex Christensen  <achristensen@webkit.org>
1800
1801         URL::port should return Optional<uint16_t>
1802         https://bugs.webkit.org/show_bug.cgi?id=163806
1803
1804         Reviewed by Darin Adler.
1805
1806         * WebCoreSupport/WebSecurityOrigin.mm:
1807         (-[WebSecurityOrigin port]):
1808
1809 2016-10-24  Dave Hyatt  <hyatt@apple.com>
1810
1811         Remove CSSCharsetRule from the CSS OM
1812         https://bugs.webkit.org/show_bug.cgi?id=163891
1813
1814         Reviewed by Darin Adler.
1815
1816         * DOM/DOMCSSCharsetRule.mm:
1817         (-[DOMCSSCharsetRule encoding]):
1818
1819 2016-10-24  Youenn Fablet  <youenn@apple.com>
1820
1821         Activate WEB_RTC compilation flags for Mac bots
1822         https://bugs.webkit.org/show_bug.cgi?id=163886
1823
1824         Reviewed by Eric Carlson.
1825
1826         * Configurations/FeatureDefines.xcconfig:
1827
1828 2016-10-23  Chris Dumez  <cdumez@apple.com>
1829
1830         addEventListener() / removeEventListener() should use a union for last parameter
1831         https://bugs.webkit.org/show_bug.cgi?id=163863
1832
1833         Reviewed by Darin Adler.
1834
1835         Cast BOOL to bool to help to compiler construct the new variant-type parameter.
1836
1837         * DOM/DOMNode.mm:
1838         (-[DOMNode addEventListener:listener:useCapture:]):
1839         (-[DOMNode addEventListener:::]):
1840         (-[DOMNode removeEventListener:listener:useCapture:]):
1841         (-[DOMNode removeEventListener:::]):
1842
1843 2016-10-21  Wenson Hsieh  <wenson_hsieh@apple.com>
1844
1845         Support (insertFrom|deleteBy)Composition and (insert|delete)CompositionText inputTypes for InputEvents
1846         https://bugs.webkit.org/show_bug.cgi?id=163460
1847         <rdar://problem/28784142>
1848
1849         Reviewed by Darin Adler.
1850
1851         Handle new EditAction types for inserting/deleting pending/final compositions.
1852
1853         * WebCoreSupport/WebEditorClient.mm:
1854         (undoNameForEditAction):
1855
1856 2016-10-21  Jeremy Jones  <jeremyj@apple.com>
1857
1858         Implement basic pointer lock behavior for WebKit and WebKit2.
1859         https://bugs.webkit.org/show_bug.cgi?id=162745
1860
1861         Reviewed by Simon Fraser.
1862
1863         Add basic pointer lock functionality. User permission is not yet implemented.
1864
1865         * WebCoreSupport/WebChromeClient.h:
1866         * WebCoreSupport/WebChromeClient.mm:
1867         (WebChromeClient::requestPointerLock):
1868         (WebChromeClient::requestPointerUnlock):
1869
1870 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
1871
1872         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
1873         https://bugs.webkit.org/show_bug.cgi?id=163374
1874
1875         Reviewed by Darin Adler.
1876
1877         * Configurations/FeatureDefines.xcconfig:
1878
1879 2016-10-19  Alex Christensen  <achristensen@webkit.org>
1880
1881         Revert r207151
1882         https://bugs.webkit.org/show_bug.cgi?id=163675
1883
1884         Reviewed by Brent Fulgham.
1885
1886         * Misc/WebDownload.mm:
1887         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
1888         * Misc/WebDownloadInternal.h:
1889         * WebCoreSupport/WebFrameLoaderClient.mm:
1890         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1891         * WebView/WebPreferences.mm:
1892         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
1893         * WebView/WebView.mm:
1894         (-[WebView scheduleInRunLoop:forMode:]):
1895         (-[WebView unscheduleFromRunLoop:forMode:]):
1896
1897 2016-10-19  Ryan Haddad  <ryanhaddad@apple.com>
1898
1899         Unreviewed, rolling out r207557.
1900
1901         This change caused animations/font-variations tests to time
1902         out on pre-Sierra Macs.
1903
1904         Reverted changeset:
1905
1906         "[macOS] [iOS] Disable variation fonts on macOS El Capitan and
1907         iOS 9"
1908         https://bugs.webkit.org/show_bug.cgi?id=163374
1909         http://trac.webkit.org/changeset/207557
1910
1911 2016-10-19  Chris Dumez  <cdumez@apple.com>
1912
1913         Move HTML Interactive Form Validation behind an experimental flag
1914         https://bugs.webkit.org/show_bug.cgi?id=163673
1915
1916         Reviewed by Daniel Bates.
1917
1918         Re-disable HTML Interactive Form Validation by default on Mac WK1.
1919
1920         * WebView/WebViewData.mm:
1921         (-[WebViewPrivate init]):
1922
1923 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
1924
1925         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
1926         https://bugs.webkit.org/show_bug.cgi?id=163374
1927
1928         Reviewed by Darin Adler.
1929
1930         * Configurations/FeatureDefines.xcconfig:
1931
1932 2016-10-19  Simon Fraser  <simon.fraser@apple.com>
1933
1934         WebView needs to initialize the visualViewportEnabled Setting from WebKit preferences
1935         https://bugs.webkit.org/show_bug.cgi?id=163680
1936
1937         Reviewed by Dean Jackson.
1938
1939         Add code to set the Setting from WebKit prefs. This code is a mess and needs to be autogenerated.
1940
1941         * WebView/WebView.mm:
1942         (-[WebView _preferencesChanged:]):
1943
1944 2016-10-19  Darin Adler  <darin@apple.com>
1945
1946         Move XPath from ExceptionCode to Exception
1947         https://bugs.webkit.org/show_bug.cgi?id=163656
1948
1949         Reviewed by Chris Dumez.
1950
1951         * DOM/DOMDocument.mm:
1952         (wrap): Added. Helper function for wrapping a resolver.
1953         (-[DOMDocument createExpression:resolver:]): Use raiseOnDOMError.
1954         (-[DOMDocument evaluate:contextNode:resolver:type:inResult:]): Ditto.
1955         * DOM/DOMXPathExpression.mm:
1956         (-[DOMXPathExpression evaluate:type:inResult:]): Ditto.
1957         * DOM/DOMXPathResult.mm:
1958         (-[DOMXPathResult numberValue]): Ditto.
1959         (-[DOMXPathResult stringValue]): Ditto.
1960         (-[DOMXPathResult booleanValue]): Ditto.
1961         (-[DOMXPathResult singleNodeValue]): Ditto.
1962         (-[DOMXPathResult snapshotLength]): Ditto.
1963         (-[DOMXPathResult iterateNext]): Ditto.
1964         (-[DOMXPathResult snapshotItem:]): Ditto.
1965
1966 2016-10-18  Sam Weinig  <sam@webkit.org>
1967
1968         Replace std::experimental::variant with WTF::Variant (or similar)
1969         https://bugs.webkit.org/show_bug.cgi?id=163626
1970
1971         Reviewed by Chris Dumez.
1972
1973         Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
1974         into the WTF namespace.
1975
1976         * DOM/DOMHTMLSelectElement.mm:
1977         (-[DOMHTMLSelectElement add:before:]):
1978
1979 2016-10-18  Simon Fraser  <simon.fraser@apple.com>
1980
1981         Add a MiniBrowser menu item to apply page scale in WK1 and WK2
1982         https://bugs.webkit.org/show_bug.cgi?id=163627
1983
1984         Reviewed by Dean Jackson.
1985
1986         Add an explanatory comment about viewScaleFactor not really being viewScaleFactor.
1987
1988         * WebView/WebViewPrivate.h:
1989
1990 2016-10-18  Dean Jackson  <dino@apple.com>
1991
1992         Remove CSS_SHAPES feature definition. This should always be on.
1993         https://bugs.webkit.org/show_bug.cgi?id=163628
1994         <rdar://problem/28834613>
1995
1996         Reviewed by Tim Horton.
1997
1998         * Configurations/FeatureDefines.xcconfig:
1999
2000 2016-10-18  Chris Dumez  <cdumez@apple.com>
2001
2002         Leverage new union type support for HTMLSelectElement.add() / HTMLOptionsCollection.add()
2003         https://bugs.webkit.org/show_bug.cgi?id=163608
2004
2005         Reviewed by Ryosuke Niwa.
2006
2007         Update add() call sites now that it takes std::variant types in.
2008
2009         * DOM/DOMHTMLOptionsCollection.mm:
2010         (-[DOMHTMLOptionsCollection add:index:]):
2011         * DOM/DOMHTMLSelectElement.mm:
2012         (-[DOMHTMLSelectElement add:before:]):
2013
2014 2016-10-18  Anders Carlsson  <andersca@apple.com>
2015
2016         Get rid of more WebHistoryItem cruft
2017         https://bugs.webkit.org/show_bug.cgi?id=163623
2018
2019         Reviewed by Tim Horton.
2020
2021         * History/WebHistoryItem.mm:
2022         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2023         * History/WebHistoryItemPrivate.h:
2024
2025 2016-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
2026
2027         Showing and hiding candidates list is very distracting after selecting word
2028         https://bugs.webkit.org/show_bug.cgi?id=163609
2029         <rdar://problem/28747712>
2030
2031         Reviewed by Tim Horton.
2032
2033         Introduce WebView hooks for mousedown and mouseup. See radar for more details.
2034
2035         * WebView/WebHTMLView.mm:
2036         (-[WebHTMLView mouseDown:mouseDown:]):
2037         (-[WebHTMLView mouseUp:mouseUp:]):
2038         * WebView/WebView.mm:
2039         (-[WebView prepareForMouseDown]):
2040         (-[WebView prepareForMouseUp]):
2041         * WebView/WebViewInternal.h:
2042
2043 2016-10-17  Anders Carlsson  <andersca@apple.com>
2044
2045         Move some history specific HistoryItem code to WebHistoryItem
2046         https://bugs.webkit.org/show_bug.cgi?id=163567
2047
2048         Reviewed by Tim Horton.
2049
2050         * History/HistoryPropertyList.mm:
2051         (HistoryPropertyListWriter::writeHistoryItem):
2052         * History/WebHistory.mm:
2053         (-[WebHistory _visitedURL:withTitle:method:wasFailure:]):
2054         * History/WebHistoryItem.mm:
2055         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2056         * History/WebHistoryItemInternal.h:
2057         * WebCoreSupport/WebFrameLoaderClient.mm:
2058         (addRedirectURL):
2059         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
2060
2061 2016-10-18  Eric Carlson  <eric.carlson@apple.com>
2062
2063         [MediaStream] Resolve constraints and enumerate devices in the UI process
2064         https://bugs.webkit.org/show_bug.cgi?id=162147
2065         <rdar://problem/28803569>
2066
2067         Reviewed by Darin Adler.
2068
2069         * WebCoreSupport/WebUserMediaClient.h:
2070         * WebCoreSupport/WebUserMediaClient.mm:
2071         (AddPermissionCheckToMap):
2072         (RemovePermissionCheckFromMap):
2073         (WebUserMediaClient::pageDestroyed):
2074         (WebUserMediaClient::requestUserMediaAccess):
2075         (WebUserMediaClient::enumerateMediaDevices):
2076         (WebUserMediaClient::cancelMediaDevicesEnumerationRequest):
2077         (-[WebUserMediaPolicyListener allow]):
2078         (-[WebUserMediaPolicyListener deny]):
2079         (-[WebUserMediaPolicyCheckerListener initWithMediaDevicesEnumerationRequest:]):
2080         (-[WebUserMediaPolicyCheckerListener cancelMediaDevicesEnumerationRequest]):
2081         (-[WebUserMediaPolicyCheckerListener allow]):
2082         (-[WebUserMediaPolicyCheckerListener deny]):
2083         (WebUserMediaClient::checkUserMediaPermission): Deleted.
2084         (WebUserMediaClient::cancelUserMediaPermissionCheck): Deleted.
2085         (-[WebUserMediaPolicyCheckerListener initWithUserMediaPermissionCheck:]): Deleted.
2086         (-[WebUserMediaPolicyCheckerListener cancelUserMediaPermissionCheck]): Deleted.
2087
2088 2016-10-17  Antti Koivisto  <antti@apple.com>
2089
2090         Rename setNeedsStyleRecalc to invalidateStyle
2091         https://bugs.webkit.org/show_bug.cgi?id=163542
2092
2093         Reviewed by Darin Adler.
2094
2095         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2096         (-[WebHostedNetscapePluginView createPluginLayer]):
2097         * Plugins/WebNetscapePluginView.mm:
2098         (-[WebNetscapePluginView createPlugin]):
2099
2100 2016-10-17  Jeremy Jones  <jeremyj@apple.com>
2101
2102         Enable keyboard in fullscreen.
2103         https://bugs.webkit.org/show_bug.cgi?id=163146
2104
2105         Reviewed by Jer Noble.
2106
2107         Allow keyboard in fullscreen.
2108
2109         * WebView/WebView.mm:
2110         (-[WebView _supportsFullScreenForElement:withKeyboard:]):
2111
2112 2016-10-17  Chris Dumez  <cdumez@apple.com>
2113
2114         Move form.reportValidity() behind InteractiveFormValidation setting
2115         https://bugs.webkit.org/show_bug.cgi?id=163550
2116
2117         Reviewed by Darin Adler.
2118
2119         Enable InteractiveFormValidation setting by default and link it to
2120         RuntimeEnabledFeatures so we can use it in the IDL.
2121
2122         * WebView/WebView.mm:
2123         (-[WebView _preferencesChanged:]):
2124         * WebView/WebViewData.mm:
2125         (-[WebViewPrivate init]):
2126
2127 2016-10-17  Anders Carlsson  <andersca@apple.com>
2128
2129         Fix iOS build.
2130
2131         * History/WebBackForwardList.mm:
2132         (-[WebBackForwardList dictionaryRepresentation]):
2133
2134 2016-10-17  Anders Carlsson  <andersca@apple.com>
2135
2136         CTTE some of the BackForwardList member functions
2137         https://bugs.webkit.org/show_bug.cgi?id=163555
2138
2139         Reviewed by Dan Bernstein.
2140
2141         * History/BackForwardList.h:
2142         (BackForwardList::entries):
2143         * History/BackForwardList.mm:
2144         (BackForwardList::removeItem):
2145         (BackForwardList::containsItem):
2146         (BackForwardList::entries): Deleted.
2147         * History/WebBackForwardList.mm:
2148         (-[WebBackForwardList removeItem:]):
2149         (-[WebBackForwardList containsItem:]):
2150         (-[WebBackForwardList description]):
2151
2152 2016-10-17  Anders Carlsson  <andersca@apple.com>
2153
2154         Remove WEBCORE_EXPORT from BackForwardList, it lives in WebKit now
2155         https://bugs.webkit.org/show_bug.cgi?id=163551
2156
2157         Reviewed by Tim Horton.
2158
2159         * History/BackForwardList.h:
2160
2161 2016-10-16  Darin Adler  <darin@apple.com>
2162
2163         Move CSS classes from ExceptionCode to Exception
2164         https://bugs.webkit.org/show_bug.cgi?id=163494
2165
2166         Reviewed by Sam Weinig.
2167
2168         * DOM/DOMCSSMediaRule.mm:
2169         (-[DOMCSSMediaRule insertRule:index:]): Use raiseOnDOMError
2170         the new way to handle ExceptionOr instead of ExceptionCode.
2171         (-[DOMCSSMediaRule deleteRule:]): Ditto.
2172         * DOM/DOMCSSPrimitiveValue.mm:
2173         (-[DOMCSSPrimitiveValue setFloatValue:floatValue:]): Ditto.
2174         (-[DOMCSSPrimitiveValue getFloatValue:]): Ditto.
2175         (-[DOMCSSPrimitiveValue setStringValue:stringValue:]): Ditto.
2176         (-[DOMCSSPrimitiveValue getStringValue]): Ditto.
2177         (-[DOMCSSPrimitiveValue getCounterValue]): Ditto.
2178         (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
2179         (-[DOMCSSPrimitiveValue getRGBColorValue]): Ditto.
2180         * DOM/DOMCSSRule.mm:
2181         (-[DOMCSSRule setCssText:]): Ditto.
2182         * DOM/DOMCSSStyleDeclaration.mm:
2183         (-[DOMCSSStyleDeclaration setCssText:]): Ditto.
2184         (-[DOMCSSStyleDeclaration removeProperty:]): Ditto.
2185         (-[DOMCSSStyleDeclaration setProperty:value:priority:]): Ditto.
2186         * DOM/DOMCSSStyleSheet.mm:
2187         (-[DOMCSSStyleSheet insertRule:index:]): Ditto.
2188         (-[DOMCSSStyleSheet deleteRule:]): Ditto.
2189         (-[DOMCSSStyleSheet addRule:style:index:]): Ditto.
2190         (-[DOMCSSStyleSheet removeRule:]): Ditto.
2191         * DOM/DOMCSSValue.mm:
2192         (-[DOMCSSValue setCssText:]): Ditto.
2193         * DOM/DOMMediaList.mm:
2194         (-[DOMMediaList setMediaText:]): Ditto.
2195         (-[DOMMediaList deleteMedium:]): Ditto.
2196         (-[DOMMediaList appendMedium:]): Ditto.
2197
2198         * DOM/ExceptionHandlers.h: Added an overload of raiseDOMException
2199         that works with a WebCore::Exception&& and overloads of
2200         raiseOnDOMError that work with WebCore::ExceptionOr&&.
2201         * DOM/ExceptionHandlers.mm:
2202         (raiseDOMException): Implemented the new version.
2203
2204 2016-10-15  Dan Bernstein  <mitz@apple.com>
2205
2206         REGRESSION (r191699): Contextual menu in Mail compose view doesn’t include any of the standard submenus
2207         https://bugs.webkit.org/show_bug.cgi?id=163492
2208         <rdar://problem/28654799>
2209
2210         Reviewed by Darin Adler.
2211
2212         Test: TestWebKitAPI/Tests/mac/ContextMenuDefaultItemsHaveTags.mm
2213
2214         * WebView/WebHTMLView.mm:
2215         (createMenuItem): Set the tag for items that have submenus as well.
2216
2217 2016-10-14  Anders Carlsson  <andersca@apple.com>
2218
2219         Clean up BackForwardClient
2220         https://bugs.webkit.org/show_bug.cgi?id=163454
2221
2222         Reviewed by Sam Weinig.
2223
2224         * History/BackForwardList.h:
2225         Remove override keywords.
2226
2227         * History/BackForwardList.mm:
2228         (BackForwardList::clearAllPageCaches): Deleted.
2229         Remove this, it's no longer used.
2230
2231         * WebView/WebView.mm:
2232         (-[WebView _clearBackForwardCache]): Deleted.
2233         * WebView/WebViewPrivate.h:
2234         Remove SPI that's no longer used by anyone.
2235
2236 2016-10-13  Anders Carlsson  <andersca@apple.com>
2237
2238         Move BackForwardList from WebCore to WebKitLegacy
2239         https://bugs.webkit.org/show_bug.cgi?id=163418
2240
2241         Reviewed by Tim Horton.
2242
2243         * History/BackForwardList.h: Renamed from Source/WebCore/history/BackForwardList.h.
2244         (BackForwardList::create):
2245         (BackForwardList::webView):
2246         * History/BackForwardList.mm: Renamed from Source/WebCore/history/BackForwardList.cpp.
2247         (BackForwardList::BackForwardList):
2248         (BackForwardList::close):
2249         (BackForwardList::containsItem):
2250         * History/WebBackForwardList.mm:
2251         (kit):
2252         (-[WebBackForwardList initWithBackForwardList:]):
2253         (-[WebBackForwardList setPageCacheSize:]):
2254         (-[WebBackForwardList pageCacheSize]):
2255         * History/WebBackForwardListInternal.h:
2256         * WebCoreSupport/WebFrameLoaderClient.mm:
2257         * WebView/WebFrameView.mm:
2258         * WebView/WebView.mm:
2259         (-[WebView _commonInitializationWithFrameName:groupName:]):
2260         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2261
2262 2016-10-13  Anders Carlsson  <andersca@apple.com>
2263
2264         Get rid of the HistoryItemVector typedef
2265         https://bugs.webkit.org/show_bug.cgi?id=163398
2266
2267         Reviewed by Beth Dakin.
2268
2269         Expand the HistoryitemVector typedef instead to make it more clear what types we are dealing with.
2270
2271         * History/WebBackForwardList.mm:
2272         (-[WebBackForwardList dictionaryRepresentation]):
2273         (vectorToNSArray):
2274         (-[WebBackForwardList backListWithLimit:]):
2275         (-[WebBackForwardList forwardListWithLimit:]):
2276         (-[WebBackForwardList description]):
2277         * History/WebHistoryItem.mm:
2278         (-[WebHistoryItem description]):
2279
2280 2016-10-12  Chris Dumez  <cdumez@apple.com>
2281
2282         [Web IDL] Drop support for legacy [ConstructorConditional=*]
2283         https://bugs.webkit.org/show_bug.cgi?id=163368
2284
2285         Reviewed by Ryosuke Niwa.
2286
2287         Drop ENABLE_DOM4_EVENTS_CONSTRUCTOR compiler flag.
2288
2289         * Configurations/FeatureDefines.xcconfig:
2290
2291 2016-10-12  Beth Dakin  <bdakin@apple.com>
2292
2293         Adobe Contribute CS 6.5 Trial crashes on launch
2294         https://bugs.webkit.org/show_bug.cgi?id=163365
2295         -and corresponding-
2296         <rdar://problem/28732731>
2297
2298         Reviewed by Tim Horton.
2299
2300         * Carbon/CarbonWindowFrame.m:
2301         (-[CarbonWindowFrame contentFill]):
2302
2303 2016-10-11  Daniel Bates  <dabates@apple.com>
2304
2305         Attempt to fix the Apple Internal Mac build following r207159
2306         (https://bugs.webkit.org/show_bug.cgi?id=163244)
2307
2308         * WebView/WebView.mm:
2309         (shouldRequireUserGestureToLoadVideo):
2310
2311 2016-10-11  Daniel Bates  <dabates@apple.com>
2312
2313         REGRESSION (r198251): -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO
2314         https://bugs.webkit.org/show_bug.cgi?id=163259
2315         <rdar://problem/28680515>
2316
2317         Reviewed by Jer Noble.
2318
2319         In WebKit1 on iOS we want to require user action to load and play videos by default and
2320         allow an embedding app to change this behavior via -[UIWebView setMediaPlaybackRequiresUserAction:].
2321         Following r198251, -[UIWebView mediaPlaybackRequiresUserAction] defaults to NO and videos
2322         can load and play without being initiated by a user action.
2323
2324         * WebView/WebPreferences.mm:
2325         (+[WebPreferences initialize]): Initialize the default value of the deprecated preference
2326         WebKitRequiresUserGestureForMediaPlaybackPreferenceKey to YES on iOS. The value of this
2327         preference takes precedence over the values of its replacement preferences
2328         WebKitRequiresUserGestureForVideoPlaybackPreferenceKey and WebKitRequiresUserGestureForAudioPlaybackPreferenceKey.
2329
2330 2016-10-11  Daniel Bates  <dabates@apple.com>
2331
2332         [iOS] REGRESSION (r197953): User gesture required to load video in iOS 9-built apps
2333         https://bugs.webkit.org/show_bug.cgi?id=163244
2334         <rdar://problem/27250015>
2335
2336         Reviewed by Jer Noble.
2337
2338         Enable or disable the Setting::requiresUserGestureToLoadVideo() in legacy WebKit depending
2339         on the version of iOS SDK that the app was linked against. We require a user gesture to
2340         begin loading a video as of iOS 10.
2341
2342         * WebView/WebView.mm:
2343         (shouldRequireUserGestureToLoadVideo):
2344         (-[WebView _preferencesChanged:]): Modified to pass the WebKit requiresUserGestureToLoadVideo
2345         preference to WebCore.
2346
2347 2016-10-11  Alex Christensen  <achristensen@webkit.org>
2348
2349         Remove dead networking code
2350         https://bugs.webkit.org/show_bug.cgi?id=163263
2351
2352         Reviewed by Daniel Bates.
2353
2354         * Misc/WebDownload.mm:
2355         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]): Deleted.
2356         * Misc/WebDownloadInternal.h:
2357         * WebCoreSupport/WebFrameLoaderClient.mm:
2358         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
2359         * WebView/WebPreferences.mm:
2360         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
2361         * WebView/WebView.mm:
2362         (-[WebView scheduleInRunLoop:forMode:]):
2363         (-[WebView unscheduleFromRunLoop:forMode:]):
2364
2365 2016-10-10  Zan Dobersek  <zdobersek@igalia.com>
2366
2367         Add ENABLE_ENCRYPTED_MEDIA configuration option
2368         https://bugs.webkit.org/show_bug.cgi?id=163219
2369
2370         Reviewed by Darin Adler.
2371
2372         * Configurations/FeatureDefines.xcconfig:
2373         Add the ENABLE_ENCRYPTED_MEDIA configuration option. It will be used
2374         to enable or disable the new EME implementation at build-time.
2375
2376 2016-10-10  Darin Adler  <darin@apple.com>
2377
2378         Move NotificationCenter from legacy to new DOM exceptions
2379         https://bugs.webkit.org/show_bug.cgi?id=163217
2380
2381         Reviewed by Chris Dumez.
2382
2383         * WebView/WebView.mm:
2384         (-[WebView _notificationIDForTesting:]): Pass reference to page rather than pointer.
2385
2386 2016-10-09  Wenson Hsieh  <wenson_hsieh@apple.com>
2387
2388         Support InputEvent.inputType for the new InputEvent spec
2389         https://bugs.webkit.org/show_bug.cgi?id=163025
2390         <rdar://problem/28658092>
2391
2392         Reviewed by Darin Adler.
2393
2394         Accounts for some changes to the EditAction enum in nameForEditAction. See WebCore ChangeLog
2395         entry for more details.
2396
2397         * WebCoreSupport/WebEditorClient.mm:
2398         (undoNameForEditAction):
2399
2400 2016-10-06  Darin Adler  <darin@apple.com>
2401
2402         Next step on moving to modern way to return DOM exceptions
2403         https://bugs.webkit.org/show_bug.cgi?id=163016
2404
2405         Reviewed by Ryosuke Niwa.
2406
2407         * DOM/DOMDOMImplementation.mm:
2408         (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated for
2409         name change from takeReturnValue to releaseReturnValue.
2410         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
2411
2412 2016-10-07  Simon Fraser  <simon.fraser@apple.com>
2413
2414         [WK1 Mac] Fix repaints of fixed-background elements in layer-backed WebViews
2415         https://bugs.webkit.org/show_bug.cgi?id=163154
2416         rdar://problem/28674216
2417
2418         Reviewed by Tim Horton.
2419         
2420         r55159 added code to counteract AppKit's adjustment of dirty regions during scrolling,
2421         by offsetting the dirty rect in -setNeedsDisplayInRect: if the call happens during
2422         the NSViewBoundsDidChangeNotification handling.
2423         
2424         However, AppKit only does dirty region adjustment in the code path that blits ("copy
2425         on scroll"), so r55159 produces incorrect behavior in, for example, layer-backed views.
2426         
2427         Fix by overriding -[NSClipView _canCopyOnScrollForDeltaX:deltaY:] to know if a single
2428         scroll is going to blit, and only do adjustments in -setNeedsDisplayInRect: if it is.
2429
2430         * WebView/WebClipView.h:
2431         * WebView/WebClipView.mm:
2432         (-[WebClipView _immediateScrollToPoint:]):
2433         (-[WebClipView _canCopyOnScrollForDeltaX:deltaY:]):
2434         (-[WebClipView currentScrollIsBlit]):
2435         * WebView/WebHTMLView.mm:
2436         (-[WebHTMLView setNeedsDisplayInRect:]):
2437         (-[WebHTMLView drawRect:]):
2438
2439 2016-10-06  Youenn Fablet  <youenn@apple.com>
2440
2441         CachedResource client handling methods should take reference
2442         https://bugs.webkit.org/show_bug.cgi?id=163014
2443
2444         Reviewed by Alex Christensen.
2445
2446         * WebView/WebHTMLView.mm:
2447         (promisedDataClient):
2448
2449 2016-10-05  Myles C. Maxfield  <mmaxfield@apple.com>
2450
2451         Put variation fonts work behind a compile-time flag
2452         https://bugs.webkit.org/show_bug.cgi?id=162949
2453
2454         Reviewed by Simon Fraser.
2455
2456         * Configurations/FeatureDefines.xcconfig:
2457
2458 2016-10-05  Zan Dobersek  <zdobersek@igalia.com>
2459
2460         Rename ENABLE_ENCRYPTED_MEDIA_V2 to ENABLE_LEGACY_ENCRYPTED_MEDIA
2461         https://bugs.webkit.org/show_bug.cgi?id=162903
2462
2463         Reviewed by Alex Christensen.
2464
2465         Rename build guards for the remaining implementation of the legacy EME API
2466         to ENABLE_LEGACY_ENCRYPTED_MEDIA. This will allow for the future implementation
2467         of the near-finished API to be guarded with the simple ENABLE_ENCRYPTED_MEDIA guards.
2468
2469         * Configurations/FeatureDefines.xcconfig:
2470         * WebView/WebPreferences.mm:
2471         (+[WebPreferences initialize]):
2472         * WebView/WebView.mm:
2473         (-[WebView _preferencesChanged:]):
2474
2475 2016-10-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
2476
2477         The dragged image should be the current frame only of the animated image
2478         https://bugs.webkit.org/show_bug.cgi?id=162109
2479
2480         Reviewed by Tim Horton.
2481
2482         * DOM/DOM.mm:
2483         (-[DOMElement image]): Call the Image function with its new name.
2484         (-[DOMElement _imageTIFFRepresentation]): Ditto.
2485         * Misc/WebElementDictionary.mm:
2486         (-[WebElementDictionary _image]): Call the Image function with its new name.
2487         * Misc/WebIconDatabase.mm:
2488         (-[WebIconDatabase defaultIconWithSize:]): Call snapshotNSImage() to create the icon image.
2489         (webGetNSImage): Call the Image function with its new name.
2490         * WebCoreSupport/WebContextMenuClient.mm:
2491         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call snapshotNSImage() instead of nsImage()..
2492         (WebContextMenuClient::contextMenuForEvent): Ditto.
2493         * WebView/WebHTMLView.mm:
2494         (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
2495
2496 2016-10-02  Ryan Haddad  <ryanhaddad@apple.com>
2497
2498         Unreviewed, rolling out r206683.
2499
2500         This change caused API test WebKit2.FindMatches to fail on
2501         Mac.
2502
2503         Reverted changeset:
2504
2505         "The dragged image should be the current frame only of the
2506         animated image"
2507         https://bugs.webkit.org/show_bug.cgi?id=162109
2508         http://trac.webkit.org/changeset/206683
2509
2510 2016-09-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
2511
2512         The dragged image should be the current frame only of the animated image
2513         https://bugs.webkit.org/show_bug.cgi?id=162109
2514
2515         Reviewed by Tim Horton.
2516
2517         * DOM/DOM.mm:
2518         (-[DOMElement image]): Call the Image function with its new name.
2519         (-[DOMElement _imageTIFFRepresentation]): Ditto.
2520         * Misc/WebElementDictionary.mm:
2521         (-[WebElementDictionary _image]): Call the Image function with its new name.
2522         * Misc/WebIconDatabase.mm:
2523         (-[WebIconDatabase defaultIconWithSize:]): Call currentFrameNSImage() to create the icon image.
2524         (webGetNSImage): Call the Image function with its new name.
2525         * WebCoreSupport/WebContextMenuClient.mm:
2526         (WebContextMenuClient::imageForCurrentSharingServicePickerItem): Call currentFrameNSImage() instead of nsImage()..
2527         (WebContextMenuClient::contextMenuForEvent): Ditto.
2528         * WebView/WebHTMLView.mm:
2529         (-[WebHTMLView pasteboard:provideDataForType:]): Call the Image function with its new name.
2530
2531 2016-09-27  Jer Noble  <jer.noble@apple.com>
2532
2533         Remove deprecated ENCRYPTED_MEDIA implementation.
2534         https://bugs.webkit.org/show_bug.cgi?id=161010
2535
2536         Remove ENABLE_ENCRYPTED_MEDIA.
2537
2538         Reviewed by Eric Carlson.
2539
2540         * Configurations/FeatureDefines.xcconfig:
2541
2542 2016-09-26  Daniel Bates  <dabates@apple.com>
2543
2544         Rename IOS_TEXT_AUTOSIZING to TEXT_AUTOSIZING
2545         https://bugs.webkit.org/show_bug.cgi?id=162365
2546
2547         Reviewed by Simon Fraser.
2548
2549         * Configurations/FeatureDefines.xcconfig:
2550         * WebView/WebFrame.mm:
2551         * WebView/WebPreferences.mm:
2552         (+[WebPreferences initialize]):
2553         * WebView/WebView.mm:
2554         (-[WebView _preferencesChanged:]):
2555
2556 2016-09-25  Antti Koivisto  <antti@apple.com>
2557
2558         AuthorStyleSheets shouldn't trigger synchronous style resolutions
2559         https://bugs.webkit.org/show_bug.cgi?id=162532
2560
2561         Reviewed by Darin Adler.
2562
2563         * WebView/WebHTMLView.mm:
2564         (-[WebHTMLView reapplyStyles]):
2565         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
2566
2567 2016-09-24  Antti Koivisto  <antti@apple.com>
2568
2569         Move stylesheet change logic from Document to AuthorStyleSheets
2570         https://bugs.webkit.org/show_bug.cgi?id=162488
2571
2572         Reviewed by Andreas Kling.
2573
2574         * WebView/WebHTMLView.mm:
2575         (-[WebHTMLView reapplyStyles]):
2576         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
2577
2578 2016-09-23  Caitlin Potter  <caitp@igalia.com>
2579
2580         [JSC] Implement parsing of Async Functions
2581         https://bugs.webkit.org/show_bug.cgi?id=161409
2582
2583         Reviewed by Yusuke Suzuki.
2584
2585         * Configurations/FeatureDefines.xcconfig:
2586
2587 2016-09-23  Commit Queue  <commit-queue@webkit.org>
2588
2589         Unreviewed, rolling out r206311.
2590         https://bugs.webkit.org/show_bug.cgi?id=162495
2591
2592         Broke internal iOS build (Requested by anttik on #webkit).
2593
2594         Reverted changeset:
2595
2596         "Move stylesheet change logic from Document to
2597         AuthorStyleSheets"
2598         https://bugs.webkit.org/show_bug.cgi?id=162488
2599         http://trac.webkit.org/changeset/206311
2600
2601 2016-09-23  Antoine Quint  <graouts@apple.com>
2602
2603         Add a new runtime flag for work on modern media controls (off by default)
2604         https://bugs.webkit.org/show_bug.cgi?id=162420
2605         <rdar://problem/27989489>
2606
2607         Reviewed by Eric Carlson.
2608
2609         * WebView/WebPreferenceKeysPrivate.h:
2610         * WebView/WebPreferences.mm:
2611         (-[WebPreferences modernMediaControlsEnabled]):
2612         (-[WebPreferences setModernMediaControlsEnabled:]):
2613         * WebView/WebPreferencesPrivate.h:
2614         * WebView/WebView.mm:
2615         (-[WebView _preferencesChanged:]):
2616
2617 2016-09-21  Anders Carlsson  <andersca@apple.com>
2618
2619         Support openPaymentSetup API on ApplePaySession object
2620         https://bugs.webkit.org/show_bug.cgi?id=162357
2621         rdar://problem/26776939
2622
2623         Reviewed by Tim Horton.
2624
2625         Add openPaymentSetup stub.
2626
2627         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2628         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2629         (WebPaymentCoordinatorClient::openPaymentSetup):
2630
2631 2016-09-19  Daniel Bates  <dabates@apple.com>
2632
2633         Remove ENABLE(TEXT_AUTOSIZING) automatic text size adjustment code
2634         https://bugs.webkit.org/show_bug.cgi?id=162167
2635
2636         Reviewed by Simon Fraser.
2637
2638         * Configurations/FeatureDefines.xcconfig:
2639
2640 2016-09-19  Joseph Pecoraro  <pecoraro@apple.com>
2641
2642         Web Inspector: Bring the inspected page's window forward when activating element search
2643         https://bugs.webkit.org/show_bug.cgi?id=162114
2644         <rdar://problem/28349357>
2645
2646         Reviewed by Brian Burg.
2647
2648         * WebCoreSupport/WebInspectorClient.mm:
2649         (WebInspectorClient::didSetSearchingForNode):
2650         When element search is activated bring the window
2651         containing the inspected page to the foreground.
2652
2653 2016-09-15  Brady Eidson  <beidson@apple.com>
2654
2655         WKWebView.hasOnlySecureContent always returns "YES" after going back to a CachedPage (even if it has http resources).
2656         <rdar://problem/27681261> and https://bugs.webkit.org/show_bug.cgi?id=162043
2657
2658         Reviewed by Brent Fulgham. 
2659
2660         * WebCoreSupport/WebFrameLoaderClient.h:
2661         * WebCoreSupport/WebFrameLoaderClient.mm:
2662         (WebFrameLoaderClient::dispatchDidCommitLoad):
2663
2664 2016-09-15  Anders Carlsson  <andersca@apple.com>
2665
2666         This was supposed to be committed with the previous patch!
2667
2668         * Plugins/WebBasePluginPackage.mm:
2669         (pathByResolvingSymlinksAndAliases): Deleted.
2670
2671 2016-09-15  Anders Carlsson  <andersca@apple.com>
2672
2673         Replace use of Carbon file system APIs in plug-in loading
2674         https://bugs.webkit.org/show_bug.cgi?id=162040
2675         rdar://problem/6017896
2676
2677         Reviewed by Sam Weinig.
2678
2679         * Plugins/WebBasePluginPackage.mm:
2680         (-[WebBasePluginPackage initWithPath:]):
2681         Use -[NSString stringByResolvingSymlinksInPath] directly here. We already check for duplicate bundle IDs, so there's no need to try
2682         to resolve aliases as well (and the modern WebKit plug-in implementation doesn't do this).
2683
2684 2016-09-15  Beth Dakin  <bdakin@apple.com>
2685
2686         Need hasMarkedText on Mac
2687         https://bugs.webkit.org/show_bug.cgi?id=162026
2688         -and corresponding-
2689         rdar://problem/28272353
2690
2691         Reviewed by Anders Carlsson.
2692
2693         * WebView/WebHTMLViewInternal.h:
2694
2695 2016-09-12  Dean Jackson  <dino@apple.com>
2696
2697         Replace RGBA32 with Color in member variables
2698         https://bugs.webkit.org/show_bug.cgi?id=161856
2699         <rdar://problem/28254324>
2700
2701         Reviewed by Simon Fraser.
2702
2703         In preparation for the Color class to become more than
2704         just a 4-byte RGBA value, I went through a few places
2705         that were using the RGBA32 type directly, and replaced
2706         them with Color. This will make some objects a little
2707         bigger e.g. BorderValue and its friends.
2708
2709         I mostly looked at the places that were using RGBA32 as
2710         a member variable. There is still a lot of RGBA32 use
2711         around the project, in particular the CSS parser.
2712
2713         There should be no behaviour change.
2714
2715         * Misc/WebKitNSStringExtras.mm:
2716         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]): Explicitly
2717         call a Color constructor, rather than passing an RGBA32.
2718
2719 2016-09-13  Chris Dumez  <cdumez@apple.com>
2720
2721         Drop support for <isindex>
2722         https://bugs.webkit.org/show_bug.cgi?id=7139
2723
2724         Reviewed by Ryosuke Niwa.
2725
2726         Drop references to isindex.
2727
2728         * WebCoreSupport/WebEditorClient.mm:
2729         (attributesForAttributedStringConversion):
2730         * WebView/WebHTMLView.mm:
2731         (+[WebHTMLView _excludedElementsForAttributedStringConversion]):
2732
2733 2016-09-12  Chris Dumez  <cdumez@apple.com>
2734
2735         Switch remaining users of Document::inPageCache() to pageCacheState()
2736         https://bugs.webkit.org/show_bug.cgi?id=161865
2737
2738         Reviewed by Darin Adler.
2739
2740         Switch remaining users of Document::inPageCache() to pageCacheState() as
2741         the former one is confusing (given that it returns true while the
2742         pagehide event is being fired).
2743
2744         * WebView/WebHTMLView.mm:
2745         (-[WebHTMLView layoutToMinimumPageWidth:height:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustingViewSize:]):
2746         (-[WebHTMLView setNeedsLayout:]):
2747         (-[WebHTMLView setNeedsToApplyStyles:]):
2748
2749 2016-09-09  Tim Horton  <timothy_horton@apple.com>
2750
2751         Text replacement candidates don't always overwrite the entire original string
2752         https://bugs.webkit.org/show_bug.cgi?id=161779
2753         <rdar://problem/28033492>
2754
2755         Reviewed by Simon Fraser.
2756
2757         * WebCoreSupport/WebEditorClient.mm:
2758         (WebEditorClient::requestCandidatesForSelection):
2759         Make use of the shared implementation of contextRangeForCandidateRequest.
2760
2761 2016-09-08  Said Abou-Hallawa  <sabouhallawa@apple.com>
2762
2763         Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp
2764         https://bugs.webkit.org/show_bug.cgi?id=158684
2765
2766         Reviewed by Simon Fraser.
2767
2768         * DOM/DOM.mm:
2769         (-[DOMNode getPreviewSnapshotImage:andRects:]):
2770         * Misc/WebCache.mm:
2771         (+[WebCache imageForURL:]):
2772         Replace BitmapImage::getCGImageRef() with BitmapImage::nativeImage().
2773
2774 2016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
2775
2776         [Mac] Address some clang static analyzer warnings in WebKit
2777         https://bugs.webkit.org/show_bug.cgi?id=161597
2778
2779         Reviewed by Darin Adler.
2780
2781         * Misc/WebIconDatabase.h:
2782         Remove unused instance variable. It has not been used since r16005 (2006)!
2783
2784         * Misc/WebSharingServicePickerController.mm:
2785         (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
2786         Address array leak.
2787
2788         * WebCoreSupport/WebSelectionServiceController.mm:
2789         (WebSelectionServiceController::hasRelevantSelectionServices):
2790         Address attachment and cell leak.
2791
2792         * WebView/WebFullScreenController.h:
2793         * WebView/WebImmediateActionController.h:
2794         Remove unused instance variables.
2795
2796 2016-09-07  Simon Fraser  <simon.fraser@apple.com>
2797
2798         Enable the <meter> element on iOS
2799         https://bugs.webkit.org/show_bug.cgi?id=161714
2800         rdar://problem/8978410
2801
2802         Reviewed by Tim Horton.
2803
2804         Define ENABLE_METER_ELEMENT unconditionally now.
2805
2806         * Configurations/FeatureDefines.xcconfig:
2807
2808 2016-09-07  Mark Lam  <mark.lam@apple.com>
2809
2810         Add CatchScope and force all exception checks to be via ThrowScope or CatchScope.
2811         https://bugs.webkit.org/show_bug.cgi?id=161498
2812
2813         Reviewed by Geoffrey Garen.
2814
2815         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2816         (WebKit::NetscapePluginInstanceProxy::evaluate):
2817         (WebKit::NetscapePluginInstanceProxy::invoke):
2818         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2819         (WebKit::NetscapePluginInstanceProxy::construct):
2820         (WebKit::NetscapePluginInstanceProxy::getProperty):
2821         (WebKit::NetscapePluginInstanceProxy::setProperty):
2822         (WebKit::NetscapePluginInstanceProxy::removeProperty):
2823         (WebKit::NetscapePluginInstanceProxy::hasProperty):
2824         (WebKit::NetscapePluginInstanceProxy::hasMethod):
2825         (WebKit::NetscapePluginInstanceProxy::enumerate):
2826         * WebView/WebView.mm:
2827         (aeDescFromJSValue):
2828
2829 2016-09-07  Youenn Fablet  <youenn@apple.com>
2830
2831         [Streams API] Separate compile flag for ReadableStream and WritableStream
2832         https://bugs.webkit.org/show_bug.cgi?id=161044
2833
2834         Reviewed by Alex Christensen.
2835
2836         Moving from STREAMS_API to READABLE_STREAM_API and WRITABLE_STREAM_API compilation flags.
2837
2838         * Configurations/FeatureDefines.xcconfig:
2839
2840 2016-09-06  Chris Dumez  <cdumez@apple.com>
2841
2842         Add support for input.minLength / textArea.minLength
2843         https://bugs.webkit.org/show_bug.cgi?id=161644
2844
2845         Reviewed by Darin Adler.
2846
2847         Update ObjC bindings to reflect method renaming.
2848
2849         * DOM/DOMHTMLInputElement.mm:
2850         (-[DOMHTMLInputElement maxLength]):
2851         (-[DOMHTMLInputElement setMaxLength:]):
2852         * DOM/DOMHTMLTextAreaElement.mm:
2853         (-[DOMHTMLTextAreaElement maxLength]):
2854         (-[DOMHTMLTextAreaElement setMaxLength:]):
2855
2856 2016-09-06  Dan Bernstein  <mitz@apple.com>
2857
2858         <rdar://problem/8064563> Ugly NSLog in DOMInternal.mm
2859
2860         Rubber-stamped by Anders Carlsson.
2861
2862         * DOM/DOMInternal.mm:
2863         (-[WebScriptObject _initializeScriptDOMNodeImp]): Removed useless call to NSLog.
2864
2865 2016-09-06  Ryan Haddad  <ryanhaddad@apple.com>
2866
2867         Unreviewed, rolling out r205407.
2868
2869         Not the correct way to implement this functionality
2870
2871         Reverted changeset:
2872
2873         "Consult with the FrameLoaderClient about whether or not
2874         content extensions should be enabled when loading this URL."
2875         https://bugs.webkit.org/show_bug.cgi?id=161441
2876         http://trac.webkit.org/changeset/205407
2877
2878 2016-09-05  Darin Adler  <darin@apple.com>
2879
2880         More bindings improvements, particularly things not needed for JavaScript bindings
2881         https://bugs.webkit.org/show_bug.cgi?id=161572
2882
2883         Reviewed by Sam Weinig.
2884
2885         * DOM/DOMDOMImplementation.mm:
2886         (-[DOMImplementation hasFeature:version:]): Call SVGTests::hasFeatureForLegacyBindings
2887         instead of DOMImplementation::hasFeature. Also removed JSMainThreadNullState
2888         since this does not do anything that can invoke JavaScript.
2889
2890         * DOM/DOMDocument.mm:
2891         (-[DOMDocument defaultCharset]): Call defaultCharsetForLegacyBindings. Also removed
2892         JSMainThreadNullState.
2893
2894         * DOM/DOMDocumentType.mm:
2895         (-[DOMDocumentType entities]): Changed to simply return nil; same behavior as before,
2896         but with no dependency on WebCore. Also removed JSMainThreadNullState.
2897         (-[DOMDocumentType notations]): Ditto.
2898         (-[DOMDocumentType internalSubset]): Ditto, except empty string rather than nil.
2899
2900         * DOM/DOMNode.mm:
2901         (-[DOMNode isSupported:version:]): Call SVGTests::hasFeatureForLegacyBindings
2902         instead of Node::isSupportedForBindings. Also removed JSMainThreadNullState.
2903
2904 2016-09-04  Joseph Pecoraro  <pecoraro@apple.com>
2905
2906         Remove unnecessary RetainPtr.
2907
2908         Review comments on earlier change.
2909
2910         * WebView/WebImmediateActionController.mm:
2911         (-[WebImmediateActionController _defaultAnimationController]):
2912
2913 2016-09-03  Darin Adler  <darin@apple.com>
2914
2915         Streamline DOMImplementation, and move it to our new DOM exception system
2916         https://bugs.webkit.org/show_bug.cgi?id=161295
2917
2918         Reviewed by Ryosuke Niwa.
2919
2920         * DOM/DOMDOMImplementation.mm:
2921         (unwrap): Added. Use this instead of the IMPL macro.
2922         (-[DOMImplementation dealloc]): Updated to use unwrap.
2923         (-[DOMImplementation hasFeature:version:]): Ditto.
2924         (-[DOMImplementation createDocumentType:publicId:systemId:]): Updated to work with
2925         ExceptionOr.
2926         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
2927         (-[DOMImplementation createCSSStyleSheet:media:]): Removed exception logic since
2928         this function can no longer raise an exception.
2929         (-[DOMImplementation createHTMLDocument:]): Updated to use unwrap.
2930         (-[DOMImplementation hasFeature::]): Changed to call the non-deprecated version
2931         rather than duplicating its implementation. Also moved into the category as defined
2932         in the header.
2933         (-[DOMImplementation createDocumentType:::]): Ditto.
2934         (-[DOMImplementation createDocument:::]): Ditto.
2935         (-[DOMImplementation createCSSStyleSheet::]): Ditto.
2936
2937         * DOM/DOMDocument.mm: Removed unneeded include of DOMImplementation.h.
2938         (-[DOMDocument setXmlStandalone:]): Updated since setXMLStandalone no longer can
2939         raise an exception.
2940
2941         * WebView/WebFrame.mm:
2942         (-[WebFrame _canProvideDocumentSource]): Updated to use isTextMIMEType in its new
2943         location in MIMETypeRegistry instead of in DOMImplementation.
2944
2945 2016-09-03  Brian Weinstein  <bweinstein@apple.com>
2946
2947         Implement a stub version of FrameLoaderClient::shouldUseContentExtensionsForURL.
2948         https://bugs.webkit.org/show_bug.cgi?id=16144
2949
2950         Reviewed by Darin Adler.
2951
2952         * WebCoreSupport/WebFrameLoaderClient.h:
2953
2954 2016-09-02  Beth Dakin  <bdakin@apple.com>
2955
2956         Need to updateEditorState if an element change edit-ability without changing 
2957         selection
2958         https://bugs.webkit.org/show_bug.cgi?id=161546
2959         -and corresponding-
2960         rdar://problem/27806012
2961
2962         Reviewed by Ryosuke Niwa.
2963
2964         Every time WebEditorClient::respondToChangedSelection is called, we now save 
2965         whether the last state was contentEditable. That way in 
2966         updateEditorStateAfterLayoutIfNeeded() we can assess whether or not edit-ability 
2967         has changed. 
2968
2969         * WebCoreSupport/WebEditorClient.h:
2970         * WebCoreSupport/WebEditorClient.mm:
2971         (WebEditorClient::respondToChangedSelection):
2972         (WebEditorClient:: updateEditorStateAfterLayoutIfEditabilityChanged):
2973
2974 2016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
2975
2976         [Mac] RetainPtr misuse, AnimationController leaks
2977         https://bugs.webkit.org/show_bug.cgi?id=161552
2978
2979         Reviewed by Tim Horton.
2980
2981         * WebView/WebImmediateActionController.mm:
2982         (-[WebImmediateActionController _defaultAnimationController]):
2983
2984 2016-07-08  Jer Noble  <jer.noble@apple.com>
2985
2986         Refactor WebPlaybackSessionModelMediaElement to be client based.
2987         https://bugs.webkit.org/show_bug.cgi?id=159580
2988
2989         Reviewed by Eric Carlson.
2990
2991         No longer necessary to tell the models and interfaces about each other.
2992
2993         * WebView/WebView.mm:
2994         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
2995         (-[WebView _clearPlaybackControlsManager]):
2996
2997 2016-09-01  Dan Bernstein  <mitz@apple.com>
2998
2999         Build fix.
3000
3001         * Configurations/FeatureDefines.xcconfig:
3002
3003 2016-09-01  Myles C. Maxfield  <mmaxfield@apple.com>
3004
3005         Clean up TextRun-related code
3006         https://bugs.webkit.org/show_bug.cgi?id=161473
3007
3008         Reviewed by Simon Fraser.
3009
3010         Remove unused #includes.
3011
3012         * WebCoreSupport/WebDragClient.mm:
3013         * WebView/WebView.mm:
3014
3015 2016-08-31  Keith Rollin  <krollin@apple.com>
3016
3017         WebKit should set a subsystem for os_log so it's easier to filter for WebKit log messages
3018         https://bugs.webkit.org/show_bug.cgi?id=160969
3019         <rdar://problem/26068734>
3020
3021         Reviewed by Simon Fraser.
3022
3023         Enable subsystem- and channel-related data and functions when using
3024         RELEASE_LOG macros. Use the DECLARE_LOG_CHANNEL, DEFINE_LOG_CHANNEL,
3025         and LOG_CHANNEL_ADDRESS macros that are now defined in WTF.
3026
3027         * Misc/WebKitLogging.h:
3028         * Misc/WebKitLogging.m:
3029         * WebView/WebView.mm:
3030         (-[WebView _commonInitializationWithFrameName:groupName:]):
3031
3032 2016-08-31  Brady Eidson  <beidson@apple.com>
3033
3034         WK2 Gamepad provider on iOS.
3035         https://bugs.webkit.org/show_bug.cgi?id=161412
3036
3037         Reviewed by Tim Horton.
3038
3039         * Configurations/FeatureDefines.xcconfig:
3040
3041         * WebView/WebView.mm:
3042         (WebKitInitializeGamepadProviderIfNecessary):
3043
3044 2016-08-30  Mark Lam  <mark.lam@apple.com>
3045
3046         Introduce the ThrowScope and force every throw site to instantiate a ThrowScope.
3047         https://bugs.webkit.org/show_bug.cgi?id=161171
3048
3049         Reviewed by Filip Pizlo and Geoffrey Garen.
3050
3051         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3052         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
3053         * Plugins/Hosted/ProxyInstance.mm:
3054         (WebKit::ProxyInstance::invokeMethod):
3055
3056 2016-08-28  Andreas Kling  <akling@apple.com>
3057
3058         document.title setter can't throw.
3059         <https://webkit.org/b/161302>
3060
3061         Reviewed by Antti Koivisto.
3062
3063         * DOM/DOMDocument.mm:
3064         (-[DOMDocument setTitle:]):
3065
3066 2016-08-28  Andreas Kling  <akling@apple.com>
3067
3068         Clean up some .text attribute setters that don't throw.
3069         <https://webkit.org/b/161292>
3070
3071         Reviewed by Darin Adler.
3072
3073         * DOM/DOMHTMLTitleElement.mm:
3074         (-[DOMHTMLTitleElement setText:]):
3075
3076 2016-08-26  Sam Weinig  <sam@webkit.org>
3077
3078         Remove support for ENABLE_LEGACY_WEB_AUDIO
3079         https://bugs.webkit.org/show_bug.cgi?id=161262
3080
3081         Reviewed by Anders Carlsson.
3082
3083         * Configurations/FeatureDefines.xcconfig:
3084         Remove ENABLE_LEGACY_WEB_AUDIO
3085
3086 2016-08-25  Anders Carlsson  <andersca@apple.com>
3087
3088         Re-export DOMException NSStrings after r204717
3089         https://bugs.webkit.org/show_bug.cgi?id=161200
3090         <rdar://problem/27959937>
3091
3092         Reviewed by Alex Christensen.
3093
3094         * DOM/ExceptionHandlers.mm:
3095         (raiseDOMException):
3096         * WebKit.exp:
3097
3098 2016-08-22  Darin Adler  <darin@apple.com>
3099
3100         Move Objective-C DOM bindings from WebCore to legacy WebKit
3101         https://bugs.webkit.org/show_bug.cgi?id=160654
3102
3103         Reviewed by Alex Christensen.
3104
3105         * DOM: Added lots of files to the directory.
3106         The files are just as they were in bindings/objc except that the paths of includes
3107         have been updated as needed, and the code no longer is defined inside the WebCore
3108         namespace, requring changes to various functions and their call sites. Also removed
3109         all the WEBCORE_EXPORT since we export differently here in legacy WebKit.
3110
3111         * DOM/DOMInternal.h: Moved. Replaced createDOMWrapper with initializeDOMWrapperHooks.
3112         * DOM/DOMUtility.mm: Moved.
3113         (createDOMWrapper): Simplified to use toWrapped and not do unneeded namespace tricks.
3114         (disconnectWindowWrapper): Added.
3115         (initializeDOMWrapperHooks): Added.
3116
3117         * MigrateHeaders.make: Removed all the internal headers since they are now just
3118         normal project headers. Added the "DOM" directory to the VPATH. Some of the headers
3119         from WebCore are still being migrated, so we can't remove WebCorePrivateHeaders yet.
3120
3121         * WebCoreSupport/WebEditorClient.h: Updated to return RefPtr<DocumentFragment>.
3122
3123         * WebCoreSupport/WebEditorClient.mm:
3124         (WebEditorClient::documentFragmentFromDelegate): Use RefPtr.
3125
3126         * WebKit.exp: Added exports for all the classes that used to use WEBCORE_EXPORT to
3127         be exported from WebCore.
3128
3129         * WebView/WebFrame.mm:
3130         (-[WebFrame innerLineHeight:]): Moved code from WebCore::Frame::innerLineHeight here.
3131         No longer depend on whether this node happens to be in this frame. Also removed
3132         unneeded null check since a node's document can't be null.
3133
3134         * WebView/WebHTMLView.mm: Removed uneeded include of ExceptionHandlers.h, which
3135         is now here in WebKitLegacy instead of WebCore. But no need to include it at all.
3136
3137         * WebView/WebView.mm:
3138         (-[WebView _commonInitializationWithFrameName:groupName:]): Call
3139         initializeDOMWrapperHooks so WebScriptObject can create DOM binding wrappers when
3140         making a script object for a DOM object, rather than just a generic script object.
3141         (+[WebView enableWebThread]): Added a call to WebCoreObjCDeallocOnWebThread here for
3142         DOMObject along with the other classes. This was done in WebCore before, but DOMObject is now
3143         defined here in legacy WebKit.
3144         (-[WebView styleAtSelectionStart]): Moved code from WebCore::Frame::styleAtSelectionStart here.
3145         Replaced incorrect code that called "new PropertySetCSSStyleDeclaration" with a misleading comment
3146         about reference counting; that code was leaking all the style declarations. Instead use
3147         MutableStyleProperties::ensureCSSStyleDeclaration, which is designed for this purpose.
3148
3149 2016-08-22  Youenn Fablet  <youenn@apple.com>
3150
3151         [Fetch API] Activate fetch api runtime flag by default
3152         https://bugs.webkit.org/show_bug.cgi?id=160452
3153
3154         Reviewed by Alex Christensen.
3155
3156         * WebView/WebPreferences.mm:
3157         (+[WebPreferences initialize]):
3158
3159 2016-08-21  Alex Christensen  <achristensen@webkit.org>
3160
3161         Use Document& instead of Document* when getting cookies
3162         https://bugs.webkit.org/show_bug.cgi?id=161011
3163
3164         Reviewed by Darin Adler.
3165
3166         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3167         (WebKit::NetscapePluginInstanceProxy::getCookies):
3168         (WebKit::NetscapePluginInstanceProxy::setCookies):
3169         * Plugins/WebNetscapePluginView.mm:
3170         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
3171         (-[WebNetscapePluginView setVariable:forURL:value:length:]):
3172
3173 2016-08-16  Simon Fraser  <simon.fraser@apple.com>
3174
3175         Rename didLayout(LayoutMilestones) to didReachLayoutMilestone(), and related WK2 functions
3176         https://bugs.webkit.org/show_bug.cgi?id=160923
3177
3178         Reviewed by Tim Horton.
3179
3180         * WebCoreSupport/WebFrameLoaderClient.h:
3181         * WebCoreSupport/WebFrameLoaderClient.mm:
3182         (WebFrameLoaderClient::dispatchDidReachLayoutMilestone):
3183         (WebFrameLoaderClient::dispatchDidLayout): Deleted.
3184
3185 2016-08-18  Daniel Bates  <dabates@apple.com>
3186
3187         Ld warns of non-existent PrivateFrameworks directory when building WebKit with the public iOS 9.3 SDK
3188         https://bugs.webkit.org/show_bug.cgi?id=160979
3189
3190         Rubber-stamped by Simon Fraser.
3191
3192         Only add the SDK PrivateFrameworks directory to the FRAMEWORK_SEARCH_PATH when building for
3193         iOS Simulator, building with an iOS SDK that does not support text-based stubs, or building
3194         an Apple-internal build.
3195
3196         * Configurations/WebKitLegacy.xcconfig:
3197
3198 2016-08-18  Anders Carlsson  <andersca@apple.com>
3199
3200         Move an NPAPI-only function from WebCore to WebKit
3201         https://bugs.webkit.org/show_bug.cgi?id=160967
3202
3203         Reviewed by Sam Weinig.
3204
3205         * Plugins/WebNetscapePluginView.h:
3206         * Plugins/WebNetscapePluginView.mm:
3207         (-[WebNetscapePluginView getVariable:value:]):
3208         (-[WebNetscapePluginView _destroyPlugin]):
3209
3210 2016-08-18  Rawinder Singh  <rawinder.singh-webkit@cisra.canon.com.au>
3211
3212         [web-animations] Add Animatable, AnimationEffect, KeyframeEffect and Animation interface
3213         https://bugs.webkit.org/show_bug.cgi?id=156096
3214
3215         Reviewed by Dean Jackson.
3216
3217         Adds:
3218         - Setup interface for enabling runtime flag for Web animations through preferences.
3219
3220         * WebView/WebPreferenceKeysPrivate.h:
3221         * WebView/WebPreferences.mm:
3222         (+[WebPreferences initialize]):
3223         (-[WebPreferences webAnimationsEnabled]):
3224         (-[WebPreferences setWebAnimationsEnabled:]):
3225         * WebView/WebPreferencesPrivate.h:
3226         * WebView/WebView.mm:
3227         (-[WebView _preferencesChanged:]):
3228
3229 2016-08-17  Anders Carlsson  <andersca@apple.com>
3230
3231         Remove a couple of unused WKSI function pointers
3232         https://bugs.webkit.org/show_bug.cgi?id=160946
3233
3234         Reviewed by Dan Bernstein.
3235
3236         * WebCoreSupport/WebSystemInterface.mm:
3237         (InitWebCoreSystemInterface): Deleted.
3238
3239 2016-08-16  Daniel Bates  <dabates@apple.com>
3240
3241         WKSI static library should be named by major iOS revision, not individual updates
3242         https://bugs.webkit.org/show_bug.cgi?id=160727
3243         <rdar://problem/22274848>
3244
3245         Reviewed by Alexey Proskuryakov.
3246
3247         * Configurations/Base.xcconfig:
3248         * Configurations/DebugRelease.xcconfig:
3249         * Configurations/WebKitLegacy.xcconfig:
3250
3251 2016-08-16  Darin Adler  <darin@apple.com>
3252
3253         [Cocoa] Remove dependency on Objective-C bindings in WebKit2 editing code
3254         https://bugs.webkit.org/show_bug.cgi?id=160891
3255
3256         Reviewed by Anders Carlsson.
3257
3258         * WebCoreSupport/WebEditorClient.h: Removed documentFragmentFromAttributedString.
3259
3260         * WebCoreSupport/WebEditorClient.mm:
3261         (attributesForAttributedStringConversion): Replaced the
3262         createExcludedElementsForAttributedStringConversion function with this one.
3263         No good reason to keep the array around instead of the dictionary.
3264         (_WebCreateFragment): Renamed from documentFragmentFromAttributedString.
3265         This is now a global function exported so it can be called by WebCore with
3266         a different way of returning its value.
3267
3268         * WebKit.exp: Added _WebCreateFragment.
3269
3270         * WebView/WebHTMLView.mm:
3271         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
3272         Removed long-ago-obsolete workaround for Radar bug 5052369.
3273
3274 2016-08-15  Anders Carlsson  <andersca@apple.com>
3275
3276         Another build fix.
3277
3278         * WebKit.exp:
3279
3280 2016-08-15  Anders Carlsson  <andersca@apple.com>
3281
3282         Fix build.
3283
3284         * Configurations/WebKitLegacy.xcconfig:
3285         * WebKit.mac.exp:
3286
3287 2016-08-15  Anders Carlsson  <andersca@apple.com>
3288
3289         Remove OldWebAssertions.c
3290         https://bugs.webkit.org/show_bug.cgi?id=160862
3291
3292         Reviewed by Dan Bernstein.
3293
3294         These functions were used by an old version of iWeb. The latest version of iWeb no longer uses them.
3295
3296         * Misc/OldWebAssertions.c: Removed.
3297         (WebReportAssertionFailure): Deleted.
3298         (WebReportError): Deleted.
3299
3300 2016-08-15  Anders Carlsson  <andersca@apple.com>
3301
3302         Remove WebKeyGenerator
3303         https://bugs.webkit.org/show_bug.cgi?id=160854
3304
3305         Reviewed by Dan Bernstein.
3306
3307         This SPI class is no longer used by Safari.
3308
3309         * WebCoreSupport/WebKeyGenerator.h: Removed.
3310         * WebCoreSupport/WebKeyGenerator.mm: Removed.
3311         (+[WebKeyGenerator sharedGenerator]): Deleted.
3312         (toWebCertificateParseResult): Deleted.
3313         (-[WebKeyGenerator addCertificatesToKeychainFromData:]): Deleted.
3314         * WebView/WebFrameView.mm:
3315
3316 2016-08-15  Daniel Bates  <dabates@apple.com>
3317
3318         Cannot build WebKit for iOS device using Xcode 7.3/iOS 9.3 public SDK due to missing
3319         private frameworks and libraries
3320         https://bugs.webkit.org/show_bug.cgi?id=155931
3321         <rdar://problem/25807989>
3322
3323         Reviewed by Dan Bernstein.
3324
3325         Add directory WebKitLibraries/WebKitPrivateFrameworkStubs/iOS/X to the framework search path
3326         where X is the major version of the active iOS SDK.
3327
3328         * Configurations/WebKitLegacy.xcconfig:
3329
3330 2016-08-15  Simon Fraser  <simon.fraser@apple.com>
3331
3332         Add a setting and preferences to enable visual viewport mode
3333         https://bugs.webkit.org/show_bug.cgi?id=160843
3334
3335         Reviewed by Sam Weinig.
3336
3337         Hook up the visualViewportEnabled setting for WebKit1.
3338
3339         * WebView/WebPreferenceKeysPrivate.h:
3340         * WebView/WebPreferences.mm:
3341         (+[WebPreferences initialize]):
3342         (-[WebPreferences visualViewportEnabled]):
3343         (-[WebPreferences setVisualViewportEnabled:]):
3344         * WebView/WebPreferencesPrivate.h:
3345
3346 2016-08-15  Joseph Pecoraro  <pecoraro@apple.com>
3347
3348         Remove unused includes of wtf headers
3349         https://bugs.webkit.org/show_bug.cgi?id=160839
3350
3351         Reviewed by Alex Christensen.
3352
3353         * History/BinaryPropertyList.cpp:
3354         * History/WebBackForwardList.mm:
3355         * History/WebHistoryItemInternal.h:
3356         * Misc/WebNSFileManagerExtras.mm:
3357         * Plugins/Hosted/NetscapePluginHostProxy.h:
3358         * WebCoreSupport/WebPlatformStrategies.mm:
3359         * WebCoreSupport/WebSelectionServiceController.mm:
3360         * WebCoreSupport/WebUserMediaClient.h:
3361
3362 2016-08-12  Anders Carlsson  <andersca@apple.com>
3363
3364         Move the plug-in and WebGL blacklist code to WebCore
3365         https://bugs.webkit.org/show_bug.cgi?id=160831
3366
3367         Reviewed by Sam Weinig.
3368
3369         Adopt the plug-in and WebGL blacklist code from WebCore instead of using the code from WebKitSystemInterface.
3370
3371         * WebCoreSupport/WebFrameLoaderClient.mm:
3372         (shouldBlockPlugin):
3373         (WebFrameLoaderClient::createPlugin):
3374         (WebFrameLoaderClient::createJavaAppletWidget):
3375         (shouldBlockWebGL):
3376         (WebFrameLoaderClient::webGLPolicyForURL):
3377         (WebFrameLoaderClient::resolveWebGLPolicyForURL):
3378
3379 2016-08-14  Daniel Bates  <dabates@apple.com>
3380
3381         Fix compiler errors when building iOS WebKit using the iOS 10 beta SDK
3382         https://bugs.webkit.org/show_bug.cgi?id=160725
3383
3384         Reviewed by Sam Weinig.
3385
3386         OSAtomicCompareAndSwap32() has been deprecated as of the iOS 10 beta SDK. For now,
3387         silence the complier warning.
3388
3389         * WebView/WebView.mm:
3390         (-[WebView _dispatchTileDidDraw:]):
3391
3392 2016-08-12  Joseph Pecoraro  <pecoraro@apple.com>
3393
3394         Remove always true JSC::Debugger::needPauseHandling virtual method
3395         https://bugs.webkit.org/show_bug.cgi?id=160822
3396
3397         Reviewed by Mark Lam.
3398
3399         * WebView/WebScriptDebugger.h:
3400
3401 2016-08-11  Chris Dumez  <cdumez@apple.com>
3402
3403         Regression(r204268): Mail crashes when trying to compose an email
3404         https://bugs.webkit.org/show_bug.cgi?id=160775
3405
3406         Reviewed by Anders Carlsson.
3407
3408         Properly initialize PageConfiguration.pluginInfoProvider in
3409         [WebView initSimpleHTMLDocumentWithStyle] to avoid a null
3410         dereference in Mail when trying to compose an email.
3411
3412         * WebView/WebView.mm:
3413         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3414
3415 2016-08-10  Simon Fraser  <simon.fraser@apple.com>
3416
3417         Sort the feature flags in the FEATURE_DEFINES lines
3418         https://bugs.webkit.org/show_bug.cgi?id=160742
3419
3420         Reviewed by Anders Carlsson.
3421
3422         * Configurations/FeatureDefines.xcconfig:
3423
3424 2016-08-09  Alex Christensen  <achristensen@webkit.org>
3425
3426         Move NetworkStorageSession management to WebCore
3427         https://bugs.webkit.org/show_bug.cgi?id=160173
3428
3429         Reviewed by Brady Eidson.
3430
3431         * WebCoreSupport/WebFrameNetworkingContext.mm:
3432         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3433         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
3434         * WebCoreSupport/WebPlatformStrategies.mm:
3435         * WebView/WebView.mm:
3436
3437 2016-08-09  Anders Carlsson  <andersca@apple.com>
3438
3439         Instantiate WebKit plug-ins at layout time, instead of at style resolution time
3440         https://bugs.webkit.org/show_bug.cgi?id=160715
3441
3442         Reviewed by Tim Horton.
3443
3444         * WebCoreSupport/WebFrameLoaderClient.mm:
3445         (WebFrameLoaderClient::objectContentType):
3446
3447 2016-08-09  George Ruan  <gruan@apple.com>
3448
3449         Implement functionality of media capture on iOS
3450         https://bugs.webkit.org/show_bug.cgi?id=158945
3451         <rdar://problem/26893343>
3452
3453         Reviewed by Tim Horton.
3454
3455         * Configurations/FeatureDefines.xcconfig: Enable Media Capture feature
3456         for iOS.
3457
3458 2016-08-09  Anders Carlsson  <andersca@apple.com>
3459
3460         Get rid of PluginStrategy
3461         https://bugs.webkit.org/show_bug.cgi?id=160696
3462
3463         Reviewed by Dan Bernstein.
3464
3465         * WebCoreSupport/WebPlatformStrategies.h:
3466         * WebCoreSupport/WebPlatformStrategies.mm:
3467         (WebPlatformStrategies::createPluginStrategy): Deleted.
3468         * WebCoreSupport/WebPluginInfoProvider.h:
3469         * WebCoreSupport/WebPluginInfoProvider.mm:
3470         (WebPluginInfoProvider::setPluginLoadClientPolicy): Deleted.
3471         (WebPluginInfoProvider::clearPluginClientPolicies): Deleted.
3472
3473 2016-08-09  Anders Carlsson  <andersca@apple.com>
3474
3475         Move plug-in enumeration from WebPlatformStrategies to WebPluginInfoProvider
3476         https://bugs.webkit.org/show_bug.cgi?id=160694
3477
3478         Reviewed by Dan Bernstein.
3479
3480         * WebCoreSupport/WebPlatformStrategies.h:
3481         * WebCoreSupport/WebPlatformStrategies.mm:
3482         (WebPlatformStrategies::createPluginStrategy):
3483         (WebPlatformStrategies::refreshPlugins): Deleted.
3484         (WebPlatformStrategies::getPluginInfo): Deleted.
3485         (WebPlatformStrategies::getWebVisiblePluginInfo): Deleted.
3486         (WebPlatformStrategies::setPluginLoadClientPolicy): Deleted.
3487         (WebPlatformStrategies::clearPluginClientPolicies): Deleted.
3488         * WebCoreSupport/WebPluginInfoProvider.mm:
3489         (WebPluginInfoProvider::refreshPlugins):
3490         (WebPluginInfoProvider::getPluginInfo):
3491         (WebPluginInfoProvider::getWebVisiblePluginInfo):
3492
3493 2016-08-08  Anders Carlsson  <andersca@apple.com>
3494
3495         Add a new PluginInfoProvider class, to replace PluginStrategy
3496         https://bugs.webkit.org/show_bug.cgi?id=160670
3497
3498         Reviewed by Sam Weinig.
3499
3500         Add a new WebPluginInfoProvider - it just calls through to the plug-in strategy for now.
3501
3502         * WebCoreSupport/WebPluginInfoProvider.h: Added.
3503         * WebCoreSupport/WebPluginInfoProvider.mm: Added.
3504         (WebPluginInfoProvider::singleton):
3505         (WebPluginInfoProvider::WebPluginInfoProvider):
3506         (WebPluginInfoProvider::~WebPluginInfoProvider):
3507         (WebPluginInfoProvider::refreshPlugins):
3508         (WebPluginInfoProvider::getPluginInfo):
3509         (WebPluginInfoProvider::getWebVisiblePluginInfo):
3510         (WebPluginInfoProvider::setPluginLoadClientPolicy):
3511         (WebPluginInfoProvider::clearPluginClientPolicies):
3512         * WebView/WebView.mm:
3513         (-[WebView _commonInitializationWithFrameName:groupName:]):
3514
3515 2016-08-02  Enrica Casucci  <enrica@apple.com>
3516
3517         Allow building with content filtering disabled.
3518         https://bugs.webkit.org/show_bug.cgi?id=160454
3519
3520         Reviewed by Simon Fraser.
3521
3522         * Configurations/FeatureDefines.xcconfig:
3523         * WebCoreSupport/WebFrameLoaderClient.h:
3524         * WebCoreSupport/WebFrameLoaderClient.mm:
3525         (WebFrameLoaderClient::blockedByContentFilterError):
3526
3527 2016-08-02  Anders Carlsson  <andersca@apple.com>
3528
3529         Remove more unused/uninstalled Objective-C DOM bindings
3530         https://bugs.webkit.org/show_bug.cgi?id=160464
3531
3532         Reviewed by Darin Adler.
3533
3534         Stop installing unused headers.
3535
3536         * MigrateHeaders.make:
3537
3538 2016-08-01  Anders Carlsson  <andersca@apple.com>
3539
3540         Bring back a file - it needs to be copied by WebCore.
3541
3542         * MigrateHeaders.make:
3543
3544 2016-08-01  Anders Carlsson  <andersca@apple.com>
3545
3546         Remove another file.
3547
3548         * MigrateHeaders.make:
3549
3550 2016-08-01  Anders Carlsson  <andersca@apple.com>
3551
3552         Remove a file.
3553
3554         * MigrateHeaders.make:
3555
3556 2016-08-01  Anders Carlsson  <andersca@apple.com>
3557
3558         Freeze all the DOMHTML* Objective-C bindings
3559         https://bugs.webkit.org/show_bug.cgi?id=160424
3560
3561         Reviewed by Tim Horton.
3562
3563         Don't migrate DOMHTMLEmbedElementPrivate.h - it was just an empty header.
3564
3565         * MigrateHeaders.make:
3566
3567 2016-07-28  Myles C. Maxfield  <mmaxfield@apple.com>
3568
3569         Remove deprecated SPI for video inline / fullscreen controls
3570         https://bugs.webkit.org/show_bug.cgi?id=160318
3571
3572         Reviewed by Tim Horton.
3573
3574         * WebView/WebPreferenceKeysPrivate.h:
3575         * WebView/WebPreferences.mm:
3576         (+[WebPreferences initialize]): Deleted.
3577         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]): Deleted.
3578         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]): Deleted.
3579         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]): Deleted.
3580         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]): Deleted.
3581         * WebView/WebPreferencesPrivate.h:
3582         * WebView/WebView.mm:
3583         (-[WebView _preferencesChanged:]): Deleted.
3584
3585 2016-07-28  Anders Carlsson  <andersca@apple.com>
3586
3587         Move a Mail.app workaround closer to where it's actually needed
3588         https://bugs.webkit.org/show_bug.cgi?id=160317
3589
3590         Reviewed by Tim Horton.
3591
3592         * WebCoreSupport/WebFrameLoaderClient.mm:
3593         (WebFrameLoaderClient::dispatchWillSendRequest):
3594         * WebView/WebFrame.mm:
3595         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]): Deleted.
3596
3597 2016-07-28  Anders Carlsson  <andersca@apple.com>
3598
3599         Use a RetainPtr in WebFrameLoaderClient::assignIdentifierToInitialRequest
3600         https://bugs.webkit.org/show_bug.cgi?id=160315
3601
3602         Reviewed by Tim Horton.
3603
3604         * WebCoreSupport/WebFrameLoaderClient.mm:
3605         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
3606
3607 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
3608
3609         Fix the Windows debug build.
3610         
3611         WebResourceLoadScheduler's logging was a holdover from it being in WebCore,
3612         and prior to r203749 WebKit was actually using a WebCore log channel.
3613         
3614         For some reason this doesn't build on Windows debug, so just remove
3615         this logging for now.
3616
3617         * Misc/WebKitLogging.h:
3618
3619 2016-07-26  Myles C. Maxfield  <mmaxfield@apple.com>
3620
3621         [iPhone] Playing a video on tudou.com plays only sound, no video
3622         https://bugs.webkit.org/show_bug.cgi?id=160178
3623         <rdar://problem/27535468>
3624
3625         Reviewed by Eric Carlson and Dan Bernstein.
3626
3627         * WebView/WebPreferenceKeysPrivate.h:
3628         * WebView/WebPreferences.mm:
3629         (+[WebPreferences initialize]):
3630         (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]):
3631         (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]):
3632         * WebView/WebPreferencesPrivate.h:
3633         * WebView/WebView.mm:
3634         (-[WebView _preferencesChanged:]):
3635
3636 2016-07-26  Simon Fraser  <simon.fraser@apple.com>
3637
3638         Allow LOG macros to be used outside the namespace, and other logging cleanup
3639         https://bugs.webkit.org/show_bug.cgi?id=160216
3640
3641         Reviewed by Anders Carlsson.
3642
3643         Fix some issues with the LOG macros.
3644         
3645         First, they were not usable outside the WebKit namespace in WebKit2 code. Fix by moving
3646         its log channels outside of the namespace (they are protected by a unique prefix anyway).
3647         
3648         Second, allow LOG_WITH_STREAM to be used in WebKit2 by moving that and a helper macro
3649         into LogMacros.h, which is exported from WebCore as a private header.
3650         
3651         Third, split the Logging.h header into two. Logging.h remains for framework-internal
3652         log channels and log macros. Add LogInitialization.h which is external, and used to
3653         initialize the channels.
3654         
3655         Finally unify "initializeLogChannels" and "initializeLoggingChannels" terminology everywhere.
3656
3657         * Misc/WebKitLogging.h:
3658         * Misc/WebKitLogging.m:
3659         * WebView/WebView.mm:
3660         (-[WebView _commonInitializationWithFrameName:groupName:]):
3661
3662 2016-07-21  Myles C. Maxfield  <mmaxfield@apple.com>
3663
3664         Remove support for deprecated SPI inlineMediaPlaybackRequiresPlaysInlineAttribute
3665         https://bugs.webkit.org/show_bug.cgi?id=160066
3666
3667         Reviewed by Dean Jackson.
3668
3669         * WebView/WebPreferenceKeysPrivate.h:
3670         * WebView/WebPreferences.mm:
3671         (+[WebPreferences initialize]): Deleted.
3672         (-[WebPreferences inlineMediaPlaybackRequiresPlaysInlineAttribute]): Deleted.
3673         (-[WebPreferences setInlineMediaPlaybackRequiresPlaysInlineAttribute:]): Deleted.
3674         * WebView/WebPreferencesPrivate.h:
3675         * WebView/WebView.mm:
3676         (-[WebView _preferencesChanged:]): Deleted.
3677
3678 2016-07-21  Myles C. Maxfield  <mmaxfield@apple.com>
3679
3680         [iPhone] Playing a video on tudou.com plays only sound, no video
3681         https://bugs.webkit.org/show_bug.cgi?id=159967
3682         <rdar://problem/26964090>
3683
3684         Reviewed by Jon Lee, Jeremy Jones, and Anders Carlsson.
3685
3686         Add the two preferences to WebPreferences.
3687
3688         * WebView/WebPreferenceKeysPrivate.h:
3689         * WebView/WebPreferences.mm:
3690         (+[WebPreferences initialize]):
3691         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
3692         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
3693         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
3694         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
3695         * WebView/WebPreferencesPrivate.h:
3696         * WebView/WebView.mm:
3697         (-[WebView _preferencesChanged:]):
3698
3699 2016-07-20  Commit Queue  <commit-queue@webkit.org>
3700
3701         Unreviewed, rolling out r203471.
3702         https://bugs.webkit.org/show_bug.cgi?id=160003
3703
3704         many iOS-simulator tests are failing (Requested by litherum on
3705         #webkit).
3706
3707         Reverted changeset:
3708
3709         "[iPhone] Playing a video on tudou.com plays only sound, no
3710         video"
3711         https://bugs.webkit.org/show_bug.cgi?id=159967
3712         http://trac.webkit.org/changeset/203471
3713
3714 2016-07-20  Myles C. Maxfield  <mmaxfield@apple.com>
3715
3716         [iPhone] Playing a video on tudou.com plays only sound, no video
3717         https://bugs.webkit.org/show_bug.cgi?id=159967
3718         <rdar://problem/26964090>
3719
3720         Reviewed by Jon Lee.
3721
3722         Add the two preferences to WebPreferences.
3723
3724         * WebView/WebPreferenceKeysPrivate.h:
3725         * WebView/WebPreferences.mm:
3726         (+[WebPreferences initialize]):
3727         (-[WebPreferences allowsInlineMediaPlaybackWithPlaysInlineAttribute]):
3728         (-[WebPreferences setAllowsInlineMediaPlaybackWithPlaysInlineAttribute:]):
3729         (-[WebPreferences allowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute]):
3730         (-[WebPreferences setAllowsInlineMediaPlaybackWithWebKitPlaysInlineAttribute:]):
3731         * WebView/WebPreferencesPrivate.h:
3732         * WebView/WebView.mm:
3733         (-[WebView _preferencesChanged:]):
3734
3735 2016-07-19  Andy Estes  <aestes@apple.com>
3736
3737         Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
3738         https://bugs.webkit.org/show_bug.cgi?id=159956
3739
3740         Reviewed by Dan Bernstein.
3741
3742         * Misc/WebKitErrors.h: Moved definition of WebKitErrorFrameLoadBlockedByContentFilter from here ...
3743         * Misc/WebKitErrorsPrivate.h: to here.
3744
3745 2016-07-18  Anders Carlsson  <andersca@apple.com>
3746
3747         WebKit nightly fails to build on macOS Sierra
3748         https://bugs.webkit.org/show_bug.cgi?id=159902
3749         rdar://problem/27365672
3750
3751         Reviewed by Tim Horton.
3752
3753         * icu/unicode/ucurr.h: Added.
3754         Add ucurr.h from ICU.
3755
3756 2016-07-17  Sam Weinig  <sam@webkit.org>
3757
3758         [WebKit API] Add SPI to track multiple navigations caused by a single user gesture
3759         <rdar://problem/26554137>
3760         https://bugs.webkit.org/show_bug.cgi?id=159856
3761
3762         Reviewed by Dan Bernstein.
3763
3764         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3765         (WebKit::NetscapePluginInstanceProxy::evaluate):
3766         * Plugins/WebNetscapePluginView.mm:
3767         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3768         Update for new UserGestureIndicator interface.
3769
3770 2016-07-16  Ryosuke Niwa  <rniwa@webkit.org>
3771
3772         Rename fastGetAttribute to attributeWithoutSynchronization
3773         https://bugs.webkit.org/show_bug.cgi?id=159852
3774
3775         Reviewed by Darin Adler.
3776
3777         * WebView/WebHTMLRepresentation.mm:
3778         (matchLabelsAgainstElement):
3779
3780 2016-07-15  Chris Dumez  <cdumez@apple.com>
3781
3782         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible
3783         https://bugs.webkit.org/show_bug.cgi?id=159793
3784
3785         Reviewed by Ryosuke Niwa.
3786
3787         Use fastGetAttribute() / setAttributeWithoutSynchronization() when possible, for performance.
3788
3789         * WebView/WebHTMLRepresentation.mm:
3790         (matchLabelsAgainstElement):
3791
3792 2016-07-14  Alex Christensen  <achristensen@webkit.org>
3793
3794         Use SocketProvider to create SocketStreamHandles
3795         https://bugs.webkit.org/show_bug.cgi?id=159774
3796
3797         Reviewed by Brady Eidson.
3798
3799         * Misc/WebSocketProvider.h: Removed.
3800         * Misc/WebSocketProvider.mm: Removed.
3801         * WebView/WebView.mm:
3802         (-[WebView _commonInitializationWithFrameName:groupName:]):
3803         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3804
3805 2016-07-14  Csaba Osztrogonác  <ossy@webkit.org>
3806
3807         Fix the !ENABLE(WEB_SOCKETS) build after r202930
3808         https://bugs.webkit.org/show_bug.cgi?id=159768
3809
3810         Reviewed by Alex Christensen.
3811
3812         * Misc/WebSocketProvider.h:
3813
3814 2016-07-13  Beth Dakin  <bdakin@apple.com>
3815
3816         Add more candidate tests
3817         https://bugs.webkit.org/show_bug.cgi?id=159730
3818
3819         Reviewed by Tim Horton.
3820
3821         Move shouldRequestCandidates from WebViewInternal to WebViewPrivate so that 
3822         we can use it in tests. 
3823         * WebView/WebViewInternal.h:
3824         * WebView/WebViewPrivate.h:
3825
3826 2016-07-13  Enrica Casucci  <enrica@apple.com>
3827
3828         Update supported platforms in xcconfig files to match the sdk names.
3829         https://bugs.webkit.org/show_bug.cgi?id=159728
3830
3831         Reviewed by Tim Horton.
3832
3833         * Configurations/Base.xcconfig:
3834
3835 2016-07-12  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3836
3837         Remove ENABLE_CSS3_TEXT_LINE_BREAK flag
3838         https://bugs.webkit.org/show_bug.cgi?id=159671
3839
3840         Reviewed by Csaba Osztrogonác.
3841
3842         ENABLE_CSS3_TEXT_LINE_BREAK feature was implemented without guards.
3843         https://bugs.webkit.org/show_bug.cgi?id=89235
3844
3845         So this guard can be removed in build scripts.
3846
3847         * Configurations/FeatureDefines.xcconfig:
3848
3849 2016-07-11  Gyuyoung Kim  <gyuyoung.kim@webkit.org>
3850
3851         Purge PassRefPtr in platform/efl and platform/mac 
3852         https://bugs.webkit.org/show_bug.cgi?id=159548
3853
3854         Reviewed by Alex Christensen.
3855
3856         Remove all use of PassRefPtr and clean up unnecessary tabs and spaces.
3857
3858         * WebCoreSupport/WebPlatformStrategies.h:
3859         * WebCoreSupport/WebPlatformStrategies.mm:
3860         (WebPlatformStrategies::setBufferForType):
3861
3862 2016-07-11  Enrica Casucci  <enrica@apple.com>
3863
3864         Add synthetic click origin to WKNavigationAction.
3865         https://bugs.webkit.org/show_bug.cgi?id=159584
3866         rdar://problem/25610422
3867
3868         Reviewed by Tim Horton.
3869
3870         * WebView/WebFrame.mm:
3871         (-[WebFrame _dragSourceEndedAt:operation:]):
3872         * WebView/WebPDFView.mm:
3873         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3874
3875 2016-07-11  Anders Carlsson  <andersca@apple.com>
3876
3877         Able to open multiple payment sheets in Safari at the same time
3878         https://bugs.webkit.org/show_bug.cgi?id=159637
3879         rdar://problem/26411339
3880
3881         Reviewed by Beth Dakin.
3882
3883         Update for WebCore changes.
3884
3885         * WebCoreSupport/WebPaymentCoordinatorClient.h:
3886         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
3887         (WebPaymentCoordinatorClient::showPaymentUI):
3888
3889 2016-07-08  Andy Estes  <aestes@apple.com>
3890
3891         [Content Filtering] Load blocked pages more like other error pages are loaded
3892         https://bugs.webkit.org/show_bug.cgi?id=159485
3893         <rdar://problem/26014076>
3894
3895         Reviewed by Brady Eidson.
3896
3897         * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
3898         * Misc/WebKitErrors.m:
3899         (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
3900         * WebCoreSupport/WebFrameLoaderClient.h:
3901         * WebCoreSupport/WebFrameLoaderClient.mm:
3902         (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
3903
3904 2016-07-08  Commit Queue  <commit-queue@webkit.org>
3905
3906         Unreviewed, rolling out r202944.
3907         https://bugs.webkit.org/show_bug.cgi?id=159570
3908
3909         caused some tests to crash under GuardMalloc (Requested by
3910         estes on #webkit).
3911
3912         Reverted changeset:
3913
3914         "[Content Filtering] Load blocked pages more like other error
3915         pages are loaded"
3916         https://bugs.webkit.org/show_bug.cgi?id=159485
3917         http://trac.webkit.org/changeset/202944
3918
3919 2016-07-08  Jiewen Tan  <jiewen_tan@apple.com>
3920
3921         Define DYLD_MACOSX_VERSION_10_12
3922         https://bugs.webkit.org/show_bug.cgi?id=159525
3923         <rdar://problem/26250296>
3924
3925         Reviewed by Brent Fulgham.
3926
3927         * WebView/WebView.mm:
3928         (shouldConvertInvalidURLsToBlank):
3929         Replace 0x000A0C00 with DYLD_MACOSX_VERSION_10_12.
3930
3931 2016-07-07  Beth Dakin  <bdakin@apple.com>
3932
3933         API Test DoNotLeakWebView.ViewThatLoadsEditableArea times out on macOS Sierra
3934         https://bugs.webkit.org/show_bug.cgi?id=159532
3935         -and corresponding-
3936         rdar://problem/27177179
3937
3938         Reviewed by Tim Horton.
3939
3940         * WebView/WebView.mm:
3941         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
3942         (-[WebView forceRequestCandidatesForTesting]):
3943         (-[WebView shouldRequestCandidates]):
3944         * WebView/WebViewPrivate.h:
3945
3946 2016-07-07  Andy Estes  <aestes@apple.com>
3947
3948         [Content Filtering] Load blocked pages more like other error pages are loaded
3949         https://bugs.webkit.org/show_bug.cgi?id=159485
3950         <rdar://problem/26014076>
3951
3952         Reviewed by Brady Eidson.
3953
3954         * Misc/WebKitErrors.h: Defined WebKitErrorFrameLoadBlockedByContentFilter.
3955         * Misc/WebKitErrors.m:
3956         (registerErrors): Registered WebKitErrorDescriptionFrameLoadBlockedByContentFilter.
3957         * WebCoreSupport/WebFrameLoaderClient.h:
3958         * WebCoreSupport/WebFrameLoaderClient.mm:
3959         (WebFrameLoaderClient::blockedByContentFilterError): Returned a ResourceError for WebKitErrorFrameLoadBlockedByContentFilter.
3960
3961 2016-07-07  Alex Christensen  <achristensen@webkit.org>
3962
3963         Use SocketProvider to create WebSocketChannels
3964         https://bugs.webkit.org/show_bug.cgi?id=158776
3965
3966         Reviewed by Brent Fulgham.
3967
3968         * Misc/WebSocketProvider.mm: Copied from Source/WebCore/Modules/websockets/ThreadableWebSocketChannel.cpp.
3969         (WebSocketProvider::createWebSocketChannel):
3970         (WebCore::ThreadableWebSocketChannel::create): Deleted.
3971         * Misc/WebSocketProvider.h:
3972         * WebView/WebView.mm:
3973         (-[WebView _commonInitializationWithFrameName:groupName:]):
3974         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3975
3976 2016-07-06  Benjamin Poulain  <bpoulain@apple.com>
3977
3978         [JSC] Unify how we throw TypeError from C++
3979         https://bugs.webkit.org/show_bug.cgi?id=159500
3980
3981         Reviewed by Saam Barati.
3982
3983         * Plugins/Hosted/ProxyInstance.mm:
3984         (WebKit::ProxyInstance::invokeMethod):
3985
3986 2016-07-01  Youenn Fablet  <youennf@gmail.com>
3987
3988         Add a runtime flag for DOM iterators
3989         https://bugs.webkit.org/show_bug.cgi?id=159300
3990
3991         Reviewed by Alex Christensen.
3992
3993         * WebView/WebPreferenceKeysPrivate.h:
3994         * WebView/WebPreferences.mm:
3995         (-[WebPreferences DOMIteratorEnabled]):
3996         (-[WebPreferences setDOMIteratorEnabled:]):
3997         * WebView/WebPreferencesPrivate.h:
3998         * WebView/WebView.mm:
3999         (-[WebView _preferencesChanged:]):
4000
4001 2016-06-30  Jiewen Tan  <jiewen_tan@apple.com>
4002
4003         Create a generic "linked-on-or-after" check for new CSP Rules
4004         https://bugs.webkit.org/show_bug.cgi?id=159322
4005         <rdar://problem/27117220>
4006
4007         Reviewed by Brent Fulgham.
4008
4009         * WebView/WebView.mm:
4010         (shouldAllowContentSecurityPolicySourceStarToMatchAnyProtocol):
4011
4012 2016-06-30  Anders Carlsson  <andersca@apple.com>
4013
4014         Mail crashes on launch at WebCore::PaymentCoordinator::~PaymentCoordinator() + 20
4015         https://bugs.webkit.org/show_bug.cgi?id=159306
4016         rdar://problem/27092107
4017
4018         Reviewed by Tim Horton.
4019
4020         * WebView/WebView.mm:
4021         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
4022         Create a WebPaymentCoordinatorClient. Remove an unneeded #import.
4023
4024         (-[WebView _commonInitializationWithFrameName:groupName:]):
4025         Remove an unneeded #import.
4026
4027 2016-06-27  Anders Carlsson  <andersca@apple.com>
4028
4029         WebKit::WebPaymentCoordinator leak
4030         https://bugs.webkit.org/show_bug.cgi?id=159168
4031         rdar://problem/26929772
4032
4033         Reviewed by Beth Dakin.
4034
4035         Update for WebCore changes.
4036
4037         * WebCoreSupport/WebPaymentCoordinatorClient.h:
4038         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
4039         (WebPaymentCoordinatorClient::paymentCoordinatorDestroyed):
4040         (WebPaymentCoordinatorClient::mainFrameDestroyed): Deleted.
4041
4042 2016-06-27  Tim Horton  <timothy_horton@apple.com>
4043
4044         REGRESSION (r189052): Clipping occurs when using context menu to Look Up words within the Dictionary app
4045         https://bugs.webkit.org/show_bug.cgi?id=159184
4046         <rdar://problem/26370206>
4047
4048         Reviewed by Beth Dakin.
4049
4050         * WebView/WebHTMLView.mm:
4051         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
4052         * WebView/WebImmediateActionController.h:
4053         * WebView/WebImmediateActionController.mm:
4054         (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
4055         (-[WebImmediateActionController _animationControllerForText]):
4056         (dictionaryPopupInfoForRange): Deleted.
4057         WebImmediateActionController's code to make a DictionaryPopupInfo and TextIndicator
4058         from a Range in WebKit1 is much better than WebHTMLView's; use it in both cases.
4059
4060 2016-06-24  Jer Noble  <jer.noble@apple.com>
4061
4062         Playback controls refer to wrong element when playing multiple items in a page.
4063         https://bugs.webkit.org/show_bug.cgi?id=159076
4064         <rdar://problem/26953532>
4065
4066         Reviewed by Beth Dakin.
4067
4068         clearPlaybackControlsManager() no longer takes a parameter.
4069
4070         * WebCoreSupport/WebChromeClient.h:
4071         * WebCoreSupport/WebChromeClient.mm:
4072         (WebChromeClient::clearPlaybackControlsManager):
4073         * WebView/WebView.mm:
4074         (-[WebView _clearPlaybackControlsManager]): Renamed from _clearPlaybackControlsManagerForMediaElement:.
4075         * WebView/WebViewInternal.h:
4076
4077 2016-06-23  Alex Christensen  <achristensen@webkit.org>
4078
4079         Remove unused didCancelAuthenticationChallenge
4080         https://bugs.webkit.org/show_bug.cgi?id=158819
4081
4082         Reviewed by David Kilzer.
4083
4084         * Misc/WebDownload.mm:
4085         (-[WebDownloadInternal download:didCancelAuthenticationChallenge:]): Deleted.
4086         * WebCoreSupport/WebFrameLoaderClient.h:
4087         * WebCoreSupport/WebFrameLoaderClient.mm:
4088         (WebFrameLoaderClient::dispatchDidCancelAuthenticationChallenge): Deleted.
4089         * WebView/WebDelegateImplementationCaching.h:
4090         * WebView/WebView.mm:
4091         (-[WebView _cacheResourceLoadDelegateImplementations]):
4092
4093 2016-06-23  John Wilander  <wilander@apple.com>
4094
4095         Enable window.open() for existing versions of Secret Society app
4096         https://bugs.webkit.org/show_bug.cgi?id=159049
4097         <rdar://problem/26528349>
4098
4099         Reviewed by Andy Estes.
4100
4101         The Secret Society Hidden Mystery app has a broken version check treating iOS 10
4102         as iOS 1 on iPads. Therefore it believes it can use window.open() in a tap
4103         handler. We should allow the existing versions of the app to do this to not break
4104         them.
4105
4106         * WebView/WebView.mm:
4107         (shouldAllowWindowOpenWithoutUserGesture):
4108             Added.
4109         (shouldConvertInvalidURLsToBlank):
4110             Changed hex number to constant DYLD_IOS_VERSION_10_0.
4111
4112 2016-06-22  Anders Carlsson  <andersca@apple.com>
4113
4114         Move the WebKitLegacy Apple Pay code to the open source repository
4115         https://bugs.webkit.org/show_bug.cgi?id=159035
4116
4117         Reviewed by Tim Horton.
4118
4119         * WebCoreSupport/WebPaymentCoordinatorClient.h: Added.
4120         * WebCoreSupport/WebPaymentCoordinatorClient.mm: Added.
4121         (WebPaymentCoordinatorClient::WebPaymentCoordinatorClient):
4122         (WebPaymentCoordinatorClient::~WebPaymentCoordinatorClient):
4123         (WebPaymentCoordinatorClient::supportsVersion):
4124         (WebPaymentCoordinatorClient::canMakePayments):
4125         (WebPaymentCoordinatorClient::canMakePaymentsWithActiveCard):
4126         (WebPaymentCoordinatorClient::showPaymentUI):
4127         (WebPaymentCoordinatorClient::completeMerchantValidation):
4128         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
4129         (WebPaymentCoordinatorClient::completeShippingContactSelection):
4130         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
4131         (WebPaymentCoordinatorClient::completePaymentSession):
4132         (WebPaymentCoordinatorClient::abortPaymentSession):
4133         (WebPaymentCoordinatorClient::mainFrameDestroyed):
4134         * WebKitAdditions.mm: Removed.
4135         * WebView/WebView.mm:
4136         (-[WebView _commonInitializationWithFrameName:groupName:]):
4137
4138 2016-06-21  Anders Carlsson  <andersca@apple.com>
4139
4140         Fix build.
4141
4142         * Configurations/FeatureDefines.xcconfig:
4143
4144 2016-06-21  Anders Carlsson  <andersca@apple.com>
4145
4146         Begin moving the Apple Pay code to the open source repository
4147         https://bugs.webkit.org/show_bug.cgi?id=158998
4148
4149         Reviewed by Tim Horton.
4150
4151         * Configurations/FeatureDefines.xcconfig:
4152         Add ENABLE_APPLE_PAY.
4153
4154 2016-06-20  Simon Fraser  <simon.fraser@apple.com>
4155
4156         Focus event dispatched in iframe causes parent document to scroll incorrectly
4157         https://bugs.webkit.org/show_bug.cgi?id=158629
4158         rdar://problem/26521616
4159
4160         Reviewed by Tim Horton.
4161         
4162         Pass SelectionRevealMode::Reveal in existing code.
4163
4164         * WebView/WebFrame.mm:
4165         (-[WebFrame _scrollDOMRangeToVisible:]):
4166         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
4167         (-[WebFrame revealSelectionAtExtent:]):
4168         * WebView/WebHTMLView.mm:
4169         (-[WebHTMLView jumpToSelection:]):
4170         (-[WebHTMLView centerSelectionInVisibleArea:]):
4171
4172 2016-06-21  Amir Alavi  <aalavi@apple.com>
4173
4174         Upstream WKHTTPCookiesForURL from WebKitSystemInterface to OpenSource
4175         https://bugs.webkit.org/show_bug.cgi?id=158967
4176
4177         Reviewed by Brent Fulgham.
4178
4179         * WebCoreSupport/WebSystemInterface.mm:
4180         (InitWebCoreSystemInterface): Deleted.
4181
4182 2016-06-20  Commit Queue  <commit-queue@webkit.org>
4183
4184         Unreviewed, rolling out r202243.
4185         https://bugs.webkit.org/show_bug.cgi?id=158972
4186
4187         Broke Windows build and iOS tests (Requested by ap on
4188         #webkit).
4189
4190         Reverted changeset:
4191
4192         "Focus event dispatched in iframe causes parent document to
4193         scroll incorrectly"
4194         https://bugs.webkit.org/show_bug.cgi?id=158629
4195         http://trac.webkit.org/changeset/202243
4196