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