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