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