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