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