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