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