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