Unreviewed, rolling out r213259.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2017-03-01  Alex Christensen  <achristensen@webkit.org>
2
3         Unreviewed, rolling out r213259.
4
5         Broke an internal build
6
7         Reverted changeset:
8
9         "Continue enabling WebRTC"
10         https://bugs.webkit.org/show_bug.cgi?id=169056
11         http://trac.webkit.org/changeset/213259
12
13 2017-03-01  Alex Christensen  <achristensen@webkit.org>
14
15         Continue enabling WebRTC
16         https://bugs.webkit.org/show_bug.cgi?id=169056
17
18         Reviewed by Jon Lee.
19
20         * Configurations/FeatureDefines.xcconfig:
21
22 2017-02-27  Alex Christensen  <achristensen@webkit.org>
23
24         Begin enabling WebRTC on 64-bit
25         https://bugs.webkit.org/show_bug.cgi?id=168915
26
27         Reviewed by Eric Carlson.
28
29         * Configurations/FeatureDefines.xcconfig:
30
31 2017-02-27  Aakash Jain  <aakash_jain@apple.com>
32
33         Enable SUPPORTS_TEXT_BASED_API in WebKitLegacy for iOS
34         https://bugs.webkit.org/show_bug.cgi?id=168919
35
36         Reviewed by Tim Horton.
37
38         * Configurations/WebKitLegacy.xcconfig: Enable SUPPORTS_TEXT_BASED_API.
39         * migrate-headers.sh: Run the migrate-headers script for installapi phase.
40
41 2017-02-27  Alex Christensen  <achristensen@webkit.org>
42
43         [libwebrtc] Enable WebRTC in some Production Builds
44         https://bugs.webkit.org/show_bug.cgi?id=168858
45
46         * Configurations/FeatureDefines.xcconfig:
47
48 2017-02-26  Alexey Proskuryakov  <ap@apple.com>
49
50         Don't import RetainPtr in WebNotification.h
51         https://bugs.webkit.org/show_bug.cgi?id=168876
52
53         Reviewed by Dan Bernstein.
54
55         This is an Objective-C SPI header.
56
57         * WebView/WebNotification.h:
58         * WebView/WebNotification.mm:
59         (-[WebNotification initWithCoreNotification:notificationID:]):
60         (-[WebNotification dealloc]):
61
62 2017-02-26  Aakash Jain  <aakash_jain@apple.com>
63
64         Simplify EXPORTED_SYMBOLS_FILE variables in WebKitLegacy.xcconfig
65         https://bugs.webkit.org/show_bug.cgi?id=168819
66
67         Reviewed by Dan Bernstein.
68
69         * Configurations/WebKitLegacy.xcconfig:
70
71 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
72
73         Export Objective-C symbols for variables in Webkit SPI
74         https://bugs.webkit.org/show_bug.cgi?id=168758
75
76         Reviewed by Alexey Proskuryakov.
77
78         * Configurations/WebKitLegacy.xcconfig: using separate .exp file for i386.
79         * WebKit.exp: Added various Objective-C symbols.
80
81 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
82
83         Move instance members from WKQuadObject to implementation file
84         https://bugs.webkit.org/show_bug.cgi?id=168740
85
86         Reviewed by Tim Horton.
87
88         * DOM/DOM.mm: Moving instance member to implementation file.
89         * DOM/DOMExtensions.h: Ditto.
90
91 2017-02-22  Aakash Jain  <aakash_jain@apple.com>
92
93         Move iOS specific symbols to WebKit.ios.exp
94         https://bugs.webkit.org/show_bug.cgi?id=168726
95
96         Reviewed by Alexey Proskuryakov.
97
98         * WebKit.exp:
99
100 2017-02-21  Youenn Fablet  <youenn@apple.com>
101
102         [WebRTC][Mac] Activate libwebrtc
103         https://bugs.webkit.org/show_bug.cgi?id=167293
104         <rdar://problem/30401864>
105
106         Reviewed by Alex Christensen.
107
108         * Configurations/FeatureDefines.xcconfig:
109
110 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
111
112         Export various NSString symbols from WebFramePrivate.h
113         https://bugs.webkit.org/show_bug.cgi?id=168702
114
115         Reviewed by Alexey Proskuryakov.
116
117         * WebKit.exp:
118
119 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
120
121         Export various NSString symbols from WebPreferencesPrivate.h
122         https://bugs.webkit.org/show_bug.cgi?id=168701
123
124         Reviewed by Alexey Proskuryakov.
125
126         * WebKit.exp:
127
128 2017-02-21  Joseph Pecoraro  <pecoraro@apple.com>
129
130         Add missing WebConsoleMessage string key
131         https://bugs.webkit.org/show_bug.cgi?id=168690
132
133         Reviewed by Alexey Proskuryakov.
134
135         * WebKit.exp:
136         * WebView/WebUIDelegatePrivate.h:
137         This key has an implementation but was not extern / exported like the others.
138
139 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
140
141         Export various NSString symbols from WebViewPrivate.h
142         https://bugs.webkit.org/show_bug.cgi?id=168689
143
144         Reviewed by Alexey Proskuryakov.
145
146         * WebKit.exp:
147
148 2017-02-21  Commit Queue  <commit-queue@webkit.org>
149
150         Unreviewed, rolling out r212768.
151         https://bugs.webkit.org/show_bug.cgi?id=168698
152
153         Rolling out since this would break other projects. (Requested
154         by aakashjain on #webkit).
155
156         Reverted changeset:
157
158         "[iOS] Remove old WebKit1 MemoryMeasure helper."
159         https://bugs.webkit.org/show_bug.cgi?id=168675
160         http://trac.webkit.org/changeset/212768
161
162 2017-02-20  Simon Fraser  <simon.fraser@apple.com>
163
164         Add support to PlatformCALayer/GraphicsLayerCA for subpixel-antialiased text, with a Setting and a MiniBrowser switch
165         https://bugs.webkit.org/show_bug.cgi?id=168620
166         <rdar://problem/30617772>
167
168         Reviewed by Tim Horton.
169
170         * WebView/WebPreferenceKeysPrivate.h:
171         * WebView/WebPreferences.mm:
172         (+[WebPreferences initialize]):
173         (-[WebPreferences subpixelAntialiasedLayerTextEnabled]):
174         (-[WebPreferences setSubpixelAntialiasedLayerTextEnabled:]):
175         * WebView/WebPreferencesPrivate.h:
176
177 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
178
179         Export various NSString symbols from WebUIDelegatePrivate.h
180         https://bugs.webkit.org/show_bug.cgi?id=168679
181
182         Reviewed by Joseph Pecoraro.
183
184         * WebKit.exp:
185
186 2017-02-21  Aakash Jain  <aakash_jain@apple.com>
187
188         Export symbols for various classes present in webkit SPI
189         https://bugs.webkit.org/show_bug.cgi?id=168674
190
191         Reviewed by Dan Bernstein.
192
193         * WebKit.exp:
194
195 2017-02-21  Andreas Kling  <akling@apple.com>
196
197         [iOS] Remove old WebKit1 MemoryMeasure helper.
198         <https://webkit.org/b/168675>
199
200         Reviewed by Sam Weinig.
201
202         * Configurations/WebKitLegacy.xcconfig:
203         * Misc/WebCache.mm:
204         (+[WebCache emptyInMemoryResources]):
205         * WebView/WebView.mm:
206
207 2017-02-21  Andreas Kling  <akling@apple.com>
208
209         [iOS] WebKit1 should use shared memory pressure handler code.
210         <https://webkit.org/b/168653>
211
212         Reviewed by Antti Koivisto.
213
214         Register a WebThread-aware memory callback with the shared MemoryPressureHandler
215         and get rid of the old iOS WebKit1 specific implementation. Some of it was even
216         dead code since MobileSafari has been using WebKit2 for quite a while.
217
218         * WebView/WebView.h:
219         * WebView/WebView.mm:
220         (WebInstallMemoryPressureHandler):
221         (+[WebView _handleMemoryWarning]): Deleted.
222         (+[WebView registerForMemoryNotifications]): Deleted.
223         (+[WebView releaseFastMallocMemoryOnCurrentThread]): Deleted.
224         (+[WebView garbageCollectNow]): Deleted.
225         (+[WebView purgeInactiveFontData]): Deleted.
226         (+[WebView drainLayerPool]): Deleted.
227         (+[WebView discardAllCompiledCode]): Deleted.
228         (+[WebView _clearMemoryPressure]): Deleted.
229         (+[WebView _shouldWaitForMemoryClearMessage]): Deleted.
230         * WebView/WebViewPrivate.h:
231
232 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
233
234         Stop exporting interface WebCoreScrollView on iOS
235         https://bugs.webkit.org/show_bug.cgi?id=168536
236
237         Reviewed by Dan Bernstein.
238
239         * WebKit.exp: Moved symbol for WebCoreScrollView interface to mac specific file.
240         * WebKit.mac.exp: Ditto.
241         * WebView/WebHTMLView.mm: WebCoreScrollView shouldn't be defined for iOS platform.
242
243 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
244
245         Exclude various mac-specific header files from iOS build
246         https://bugs.webkit.org/show_bug.cgi?id=168621
247
248         Reviewed by Dan Bernstein.
249
250         * Configurations/WebKitLegacy.xcconfig:
251
252 2017-02-20  Wenson Hsieh  <wenson_hsieh@apple.com>
253
254         Add plumbing to the UI process for TextIndicatorData when computing the drag image
255         https://bugs.webkit.org/show_bug.cgi?id=168583
256         Work towards <rdar://problem/30313681>
257
258         Accounts for changes in WebCore -- see Source/WebCore/ChangeLog for more details.
259
260         Reviewed by Tim Horton.
261
262         * WebView/WebHTMLView.mm:
263         (-[WebHTMLView _selectionDraggingImage]):
264         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
265
266 2017-02-17  Anders Carlsson  <andersca@apple.com>
267
268         Add a new drag code path and use it for dragging plain text
269         https://bugs.webkit.org/show_bug.cgi?id=168534
270
271         Reviewed by Geoffrey Garen.
272
273         * WebCoreSupport/WebDragClient.h:
274         Add new members.
275
276         * WebCoreSupport/WebDragClient.mm:
277         (WebDragClient::useLegacyDragClient):
278         Return false here.
279
280         (WebDragClient::beginDrag):
281         New client member function. Create an NSDraggingItem and use it to begin a dragging session.
282
283         * WebView/WebHTMLView.mm:
284         (-[WebHTMLView draggingSession:sourceOperationMaskForDraggingContext:]):
285         Get the source operation mask from WebCore.
286
287         (-[WebHTMLView draggingSession:endedAtPoint:operation:]):
288         Send a fake mouse up event.
289
290         * WebView/WebHTMLViewInternal.h:
291         Declare that WebHTMLView conforms to NSDraggingSource.
292
293 2017-02-20  Alexey Proskuryakov  <ap@apple.com>
294
295         List of WebCore symbols to re-export from WebKitLegacy should be built automatically
296         https://bugs.webkit.org/show_bug.cgi?id=168342
297         rdar://problem/26182266
298
299         Reviewed by Tim Horton.
300
301         * MigrateHeaders.make: On iOS only, process re-exported headers to build a list of
302         symbols to re-export.
303
304 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
305
306         Stop exporting DOMTokenList from WebKit
307         https://bugs.webkit.org/show_bug.cgi?id=168544
308
309         Reviewed by Alexey Proskuryakov.
310
311         * WebKit.exp:
312
313 2017-02-20  Alexey Proskuryakov  <ap@apple.com>
314
315         Clean up how WebKit exports _WebCreateFragment
316         https://bugs.webkit.org/show_bug.cgi?id=168579
317
318         Reviewed by Dan Bernstein.
319
320         * WebCoreSupport/WebCreateFragmentInternal.h: Added a private header.
321         * WebCoreSupport/WebEditorClient.mm: Include the new header that declares _WebCreateFragment.
322
323 2017-02-20  Aakash Jain  <aakash_jain@apple.com>
324
325         Stop exporting DOMNodeFilter
326         https://bugs.webkit.org/show_bug.cgi?id=168542
327
328         Reviewed by Alexey Proskuryakov.
329
330         * WebKit.exp:
331
332 2017-02-20  Manuel Rego Casasnovas  <rego@igalia.com>
333
334         [css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT
335         https://bugs.webkit.org/show_bug.cgi?id=167693
336
337         Reviewed by Sergio Villar Senin.
338
339         * Configurations/FeatureDefines.xcconfig:
340         * WebView/WebPreferences.mm:
341         (+[WebPreferences initialize]):
342         * WebView/WebView.mm:
343         (-[WebView _preferencesChanged:]):
344
345 2017-02-15  Brady Eidson  <beidson@apple.com>
346
347         Stop backing up localStorage databases to iCloud by default.
348         <rdar://problem/29045531> and https://bugs.webkit.org/show_bug.cgi?id=168388
349
350         Reviewed by Geoffrey Garen.
351
352         * Misc/WebKitVersionChecks.h:
353         * Misc/WebKitVersionChecks.mm: Renamed from Source/WebKit/mac/Misc/WebKitVersionChecks.m.
354         (WebKitLinkedOnOrAfter):
355         (setWebKitLinkTimeVersion):
356         (WebKitLinkTimeVersion):
357         (linkedOnOrAfter):
358
359         * Storage/WebStorageManager.mm:
360         (WebKitInitializeStorageIfNecessary):
361
362 2017-02-16  Daniel Bates  <dabates@apple.com>
363
364         Remove Chromium-specific code to call FrameLoaderClient::redirectDataToPlugin(nullptr)
365         https://bugs.webkit.org/show_bug.cgi?id=168417
366         <rdar://problem/30541748>
367
368         Reviewed by Brent Fulgham.
369
370         Update override of FrameLoaderClient::redirectDataToPlugin() to take a Widget& instead of a
371         Widget* as it is always called with a valid Widget.
372
373         * WebCoreSupport/WebFrameLoaderClient.h:
374         * WebCoreSupport/WebFrameLoaderClient.mm:
375         (WebFrameLoaderClient::redirectDataToPlugin):
376         * WebKit.order: Remove symbol for WebFrameLoaderClient::redirectDataToPlugin() that took a Widget*
377         as it no longer exists. I am unclear if this file is still meaningful as it was last modified in
378         r180570 (2 years ago) though Xcode still references this ordering file (why?).
379
380 2017-02-16  Yusuke Suzuki  <utatane.tea@gmail.com>
381
382         [JSC] Drop PassRefPtr in inspector/
383         https://bugs.webkit.org/show_bug.cgi?id=168420
384
385         Reviewed by Alex Christensen.
386
387         * WebView/WebScriptDebugger.mm:
388         (WebScriptDebugger::handlePause):
389
390 2017-02-16  Simon Fraser  <simon.fraser@apple.com>
391
392         Clean up use of some CALayer-related SPI
393         https://bugs.webkit.org/show_bug.cgi?id=168401
394
395         Reviewed by Tim Horton.
396
397         Include CALayer.h not CATiledLayer.h.
398
399         * WebInspector/WebNodeHighlight.h:
400
401 2017-02-15  Wenson Hsieh  <wenson_hsieh@apple.com>
402
403         Fix the build after r212379
404
405         Rubber-stamped by Anders Carlsson.
406
407         * WebCoreSupport/WebDragClient.mm:
408         (WebDragClient::startDrag):
409
410 2017-02-15  Anders Carlsson  <andersca@apple.com>
411
412         Modernize DragClient::startDrag somewhat
413         https://bugs.webkit.org/show_bug.cgi?id=168379
414
415         Reviewed by Tim Horton.
416
417         Update for WebCore changes.
418
419         * WebCoreSupport/WebDragClient.h:
420         * WebCoreSupport/WebDragClient.mm:
421         (WebDragClient::startDrag):
422
423 2017-02-14  Dean Jackson  <dino@apple.com>
424
425         Rename preferLowPowerWebGLRendering setting to forceWebGLUsesLowPower
426         https://bugs.webkit.org/show_bug.cgi?id=168339
427
428         Reviewed by Simon Fraser.
429
430         Use a better name.
431
432         * WebView/WebPreferenceKeysPrivate.h:
433         * WebView/WebPreferences.mm:
434         (+[WebPreferences initialize]):
435         (-[WebPreferences forceLowPowerGPUForWebGL]):
436         (-[WebPreferences setForceLowPowerGPUForWebGL:]):
437         (-[WebPreferences preferLowPowerWebGLRendering]): Deleted.
438         (-[WebPreferences setPreferLowPowerWebGLRendering:]): Deleted.
439         * WebView/WebPreferencesPrivate.h:
440         * WebView/WebView.mm:
441         (-[WebView _preferencesChanged:]):
442
443 2017-02-14  Chris Dumez  <cdumez@apple.com>
444
445         HTML Form Validation bubble should take minimum font size setting into consideration
446         https://bugs.webkit.org/show_bug.cgi?id=168271
447         <rdar://problem/29869869>
448
449         Reviewed by Simon Fraser.
450
451         * WebView/WebView.mm:
452         (-[WebView _contentsOfUserInterfaceItem:]):
453         Return font size used in the validation bubble.
454
455         (-[WebView showFormValidationMessage:withAnchorRect:]):
456         Pass minimum font size setting when constructing the validation bubble.
457
458 2017-02-14  Anders Carlsson  <andersca@apple.com>
459
460         Remove an unused delegate method
461         https://bugs.webkit.org/show_bug.cgi?id=168328
462
463         Reviewed by Wenson Hsieh.
464
465         * DefaultDelegates/WebDefaultUIDelegate.m:
466         (-[WebDefaultUIDelegate webView:shouldBeginDragForElement:dragImage:mouseDownEvent:mouseDraggedEvent:]): Deleted.
467
468 2017-02-14  Alexey Proskuryakov  <ap@apple.com>
469
470         WebCore shouldn't export SystemMemory.h
471         https://bugs.webkit.org/show_bug.cgi?id=168285
472
473         Reviewed by Alex Christensen.
474
475         * MigrateHeaders.make: And WebKit shouldn't re-export it.
476
477 2017-02-13  Alexey Proskuryakov  <ap@apple.com>
478
479         WebKit shouldn't re-export ScrollTypes.h and WebCoreFrameView.h
480         https://bugs.webkit.org/show_bug.cgi?id=168282
481
482         Reviewed by Dan Bernstein.
483
484         * MigrateHeaders.make:
485
486 2017-02-12  Dan Bernstein  <mitz@apple.com>
487
488         Tried to fix USE(APPLE_INTERNAL_SDK) builds after r212211.
489
490         * WebView/WebHTMLView.mm:
491         (createShareMenuItem): Use non-deprecated method.
492
493 2017-02-12  Dan Bernstein  <mitz@apple.com>
494
495         [Cocoa] Some -respondsToSelector: checks are unnecessary
496         https://bugs.webkit.org/show_bug.cgi?id=168183
497
498         Reviewed by Tim Horton.
499
500         * WebView/WebFullScreenController.mm:
501         (-[WebFullScreenController applicationDidResignActive:]): Removed check whether NSWindow
502           responds to -isOnActiveSpace.
503         (-[WebFullScreenController exitFullScreen]): Ditto.
504         (-[WebFullScreenController _updateMenuAndDockForFullScreen]): Removed check whether
505           NSApplication responds to -setPresentationOptions.
506
507         * WebView/WebHTMLView.mm:
508         (createShareMenuItem): Removed unnecessary -respondsToSelector: check.
509         (-[WebHTMLView otherMouseDown:]): Ditto.
510
511         * WebView/WebImmediateActionController.mm:
512         (-[WebImmediateActionController _clearImmediateActionState]): Ditto.
513         (-[WebImmediateActionController _animationControllerForDataDetectedText]): Ditto.
514
515         * WebView/WebView.mm:
516         (-[WebView _didStartProvisionalLoadForFrame:]): Removed redundant nil check.
517         (+[WebView _setCacheModel:]): Removed unnecessary -respondsToSelector: check.
518
519 2017-02-10  Daniel Bates  <dabates@apple.com>
520
521         Detach frame from document when entering page cache
522         https://bugs.webkit.org/show_bug.cgi?id=166774
523         <rdar://problem/29904368>
524
525         Reviewed by Chris Dumez.
526
527         * WebView/WebPreferenceKeysPrivate.h:
528         * WebView/WebPreferences.mm:
529         (+[WebPreferences initialize]):
530         (-[WebPreferences allowsPageCacheWithWindowOpener]): Deleted.
531         (-[WebPreferences setAllowsPageCacheWithWindowOpener:]): Deleted.
532         * WebView/WebPreferencesPrivate.h:
533         * WebView/WebView.mm:
534         (-[WebView _preferencesChanged:]):
535
536 2017-02-10  Joseph Pecoraro  <pecoraro@apple.com>
537
538         [Resource Timing] Enable Resource Timing by default in Tests
539         https://bugs.webkit.org/show_bug.cgi?id=168145
540
541         Reviewed by Ryosuke Niwa.
542
543         * WebView/WebPreferenceKeysPrivate.h:
544         * WebView/WebPreferences.mm:
545         (+[WebPreferences initialize]):
546         (-[WebPreferences resourceTimingEnabled]):
547         (-[WebPreferences setResourceTimingEnabled:]):
548         * WebView/WebPreferencesPrivate.h:
549         * WebView/WebView.mm:
550         (-[WebView _preferencesChanged:]):
551
552 2017-02-10  Aakash Jain  <aakash_jain@apple.com>
553
554         cleanup WebLocalizableStrings.
555         https://bugs.webkit.org/show_bug.cgi?id=168078
556
557         Reviewed by Alexey Proskuryakov.
558
559         * Misc/WebLocalizableStrings.h: Make visibility hidden for WebLocalizableStringsBundle 
560         as it's for each framework's own consumption, and never needs to be exported.
561
562 2017-02-10  Aakash Jain  <aakash_jain@apple.com>
563
564         WebResourceLoadDelegatePrivate.h cannot be imported standalone
565         https://bugs.webkit.org/show_bug.cgi?id=168096
566
567         Reviewed by Alexey Proskuryakov.
568
569         * WebView/WebResourceLoadDelegatePrivate.h: Change WebNSInteger to NSInteger. 
570
571 2017-02-09  Antti Koivisto  <antti@apple.com>
572
573         Remove most cases of #if ENABLE(CACHE_PARTITIONING)
574         https://bugs.webkit.org/show_bug.cgi?id=167990
575
576         Reviewed by Sam Weinig.
577
578         * Misc/WebCache.mm:
579         (+[WebCache addImageToCache:forURL:forFrame:]):
580         (+[WebCache removeImageFromCacheForURL:forFrame:]):
581         * WebCoreSupport/WebSystemInterface.mm:
582         (InitWebCoreSystemInterface):
583
584 2017-02-07  Alexey Proskuryakov  <ap@apple.com>
585
586         Don't migrate WebKit DOM headers in MigrateHeaders.make
587         https://bugs.webkit.org/show_bug.cgi?id=167608
588
589         Reviewed by Darin Adler.
590
591         Stop migrating DOM headers that are now in WebKit.
592
593         * DOM/DOMDOMImplementation.h: Removed.
594         * DOM/DOMDOMImplementation.mm: Removed.
595         * DOM/DOMDOMImplementationInternal.h: Removed.
596         * DOM/DOMDOMTokenList.h: Removed.
597         * DOM/DOMDOMTokenList.mm: Removed.
598         * DOM/DOMDOMTokenListInternal.h: Removed.
599         * DOM/DOMImplementation.h: Copied from Source/WebKit/mac/DOM/DOMDOMImplementation.h.
600         * DOM/DOMImplementation.mm: Copied from Source/WebKit/mac/DOM/DOMDOMImplementation.mm.
601         * DOM/DOMImplementationInternal.h: Copied from Source/WebKit/mac/DOM/DOMDOMImplementationInternal.h.
602         * DOM/DOMTokenList.h: Copied from Source/WebKit/mac/DOM/DOMDOMTokenList.h.
603         * DOM/DOMTokenList.mm: Copied from Source/WebKit/mac/DOM/DOMDOMTokenList.mm.
604         * DOM/DOMTokenListInternal.h: Copied from Source/WebKit/mac/DOM/DOMDOMTokenListInternal.h.
605         As the files are not in WebCore any more, there is no need to differentiate from
606         WebCore internal headers with the same name. This makes it possible to make these
607         headers private using Xcode mechanisms, as opposed to copying with a shell script.
608
609         * DOM/DOMElement.mm: Removed "using namespace WebCore". Other DOM implementation
610         files don't have it.
611
612         * DOM/DOMCore.h:
613         * DOM/DOMDocument.mm:
614         * DOM/DOMHTMLAnchorElement.mm:
615         * DOM/DOMHTMLAreaElement.mm:
616         * DOM/DOMHTMLLinkElement.mm:
617         * DOM/DOMUtility.mm:
618         No more "DOMDOM".
619
620         * WebKit.exp:
621         No more "DOMDOM". DOMDOMTokenList was not directly exposed via an SPI header, so
622         renaming it is likely to be safe.
623
624         * MigrateHeaders.make: Don't migrate WebKit headers.
625
626         * Configurations/WebKitLegacy.xcconfig: Don't include two iOS specific SPI headers
627         on macOS.
628
629 2017-02-08  Aakash Jain  <aakash_jain@apple.com>
630
631         Don't re-export PluginData.h from WebKit
632         https://bugs.webkit.org/show_bug.cgi?id=168020
633
634         Reviewed by Alexey Proskuryakov.
635
636         * MigrateHeaders.make: Removed PluginData.h
637
638 2017-02-08  Aakash Jain  <aakash_jain@apple.com>
639
640         Don't re-export WKUtilities.h from WebKit
641         https://bugs.webkit.org/show_bug.cgi?id=167977
642
643         Reviewed by Alexey Proskuryakov.
644
645         * MigrateHeaders.make: Removed WKUtilities.h
646
647 2017-02-06  Alex Christensen  <achristensen@webkit.org>
648
649         credentials should be partitioned by main document domain
650         https://bugs.webkit.org/show_bug.cgi?id=166998
651         rdar://problem/22901123
652
653         Reviewed by Brady Eidson.
654
655         * Misc/WebDownload.mm:
656         * Plugins/WebBaseNetscapePluginView.mm:
657         (WebKit::getAuthenticationInfo):
658         Don't use partitioned credentials for WebKit1 plugins or downloads.
659         Downloads should be authenticated before becoming a download anyways.
660
661 2017-02-06  Said Abou-Hallawa  <sabouhallawa@apple.com>
662
663         Rename AnimationController to CSSAnimationController
664         https://bugs.webkit.org/show_bug.cgi?id=167829
665
666         Reviewed by Simon Fraser.
667
668         * WebView/WebFrame.mm:
669         * WebView/WebView.mm:
670
671 2017-02-03  Chris Dumez  <cdumez@apple.com>
672
673         Dismiss HTML form validation popover when pressing Escape key
674         https://bugs.webkit.org/show_bug.cgi?id=167716
675         <rdar://problem/29872943>
676
677         Reviewed by Simon Fraser.
678
679         Override ValidationMessageClient::hideAnyValidationMessage().
680
681         * WebCoreSupport/WebValidationMessageClient.h:
682         * WebCoreSupport/WebValidationMessageClient.mm:
683         (WebValidationMessageClient::hideAnyValidationMessage):
684
685 2017-02-02  Wenson Hsieh  <wenson_hsieh@apple.com>
686
687         Drag images should be anchored to the mouse location
688         https://bugs.webkit.org/show_bug.cgi?id=167690
689         <rdar://problem/30295261>
690
691         Reviewed by Enrica Casucci.
692
693         Adds some plumbing for the anchor point in the WK1 client layer.
694
695         * WebCoreSupport/WebDragClient.h:
696         * WebCoreSupport/WebDragClient.mm:
697         (WebDragClient::startDrag):
698
699 2017-02-02  Chris Dumez  <cdumez@apple.com>
700
701         Rename Node::inDocument() to isConnected()
702         https://bugs.webkit.org/show_bug.cgi?id=167743
703
704         Reviewed by Sam Weinig.
705
706         Rename Node::inDocument() to isConnected() to match the DOM specification more closely:
707         - https://dom.spec.whatwg.org/#connected
708
709         * DOM/DOMNode.mm:
710         (-[DOMNode isConnected]):
711         * WebView/WebFrame.mm:
712         (-[WebFrame selectNSRange:onElement:]):
713
714 2017-02-02  Chris Dumez  <cdumez@apple.com>
715
716         [Crash] com.apple.WebKit.WebContent at WebKit: WebKit::WebPage::fromCorePage()
717         https://bugs.webkit.org/show_bug.cgi?id=167738
718         <rdar://problem/30229990>
719
720         Reviewed by Andreas Kling.
721
722         The BackForwardClient no longer needs to worry about removing HistoryItems
723         from the PageCache now that WebCore takes care of it.
724
725         * History/BackForwardList.mm:
726         (BackForwardList::close):
727
728 2017-02-02  Yongjun Zhang  <yongjun_zhang@apple.com>
729
730         In iOS, we should take background assertion when accessing localstorage databases.
731         https://bugs.webkit.org/show_bug.cgi?id=165478
732
733         Move database transaction background task handling code from WebDatabaseManager to
734         WebCore's WebSQLiteDatabaseTrackerClient.
735
736         Reviewed by Brady Eidson.
737
738         * Storage/WebDatabaseManager.mm:
739         * Storage/WebDatabaseManagerInternal.h: Remove a category for background task handling.
740         * WebCoreSupport/WebApplicationCache.mm:
741         (+[WebApplicationCache initializeWithBundleIdentifier:]): Use WebCore::WebSQLiteDatabaseTrackerClient.
742         * WebView/WebView.mm:
743         (-[WebView _commonInitializationWithFrameName:groupName:]): Ditto.
744
745 2017-02-01  Wenson Hsieh  <wenson_hsieh@apple.com>
746
747         [WK1] Allow the drag client to be initialized on platforms that do not support drag and drop
748         https://bugs.webkit.org/show_bug.cgi?id=167695
749         <rdar://problem/30305390>
750
751         Reviewed by Sam Weinig.
752
753         Due to the common codepath for destroying the drag client, we need to ensure that the drag client actually
754         exists, even on platforms that do not support drag and drop, in order to avoid crashing when the DragController
755         is destroyed.
756
757         * WebView/WebView.mm:
758         (-[WebView _commonInitializationWithFrameName:groupName:]):
759
760 2017-01-31  Joseph Pecoraro  <pecoraro@apple.com>
761
762         ld: warning: instance method '_setAutofilled:' in category conflicts with same method from another category
763         https://bugs.webkit.org/show_bug.cgi?id=167684
764
765         Reviewed by Dan Bernstein.
766
767         * DOM/DOMHTML.mm:
768         (-[DOMHTMLInputElement _isAutofilled]): Deleted.
769         (-[DOMHTMLInputElement _setAutofilled:]): Deleted.
770         Consolidate in the WebDOMOperationsPrivate category.
771
772         * DOM/DOMPrivate.h:
773         Include WebDOMOperationsPrivate header to get other DOM Private categories.
774
775         * DOM/WebDOMOperations.mm:
776         (-[DOMHTMLInputElement _isAutofilled]):
777         * DOM/WebDOMOperationsPrivate.h:
778         Include getter alongside the setter.
779
780 2017-01-31  Jessie Berlin  <jberlin@webkit.org>
781
782         Build fix.
783
784         * Misc/WebNSPasteboardExtras.mm:
785         (+[NSPasteboard _web_setFindPasteboardString:withOwner:]):
786         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
787         * WebView/WebHTMLView.mm:
788         (-[WebHTMLView _fontAttributesFromFontPasteboard]):
789         (-[WebHTMLView copyFont:]):
790
791 2017-01-30  Andy Estes  <aestes@apple.com>
792
793         [QuickLook] FrameLoaderClient should return the new QuickLookHandleClient it creates
794         https://bugs.webkit.org/show_bug.cgi?id=167625
795
796         Reviewed by Andreas Kling.
797
798         * WebCoreSupport/WebFrameLoaderClient.h: Declared createQuickLookHandleClient().
799         * WebCoreSupport/WebFrameLoaderClient.mm:
800         (WebFrameLoaderClient::createQuickLookHandleClient): Renamed from didCreateQuickLookHandle().
801         (WebFrameLoaderClient::didCreateQuickLookHandle): Renamed to createQuickLookHandleClient().
802
803 2017-01-30  Chris Dumez  <cdumez@apple.com>
804
805         Drop legacy Attributes.isId attribute
806         https://bugs.webkit.org/show_bug.cgi?id=167603
807
808         Reviewed by Ryosuke Niwa.
809
810         Keep Attr.isId in ObjC bindings.
811
812         * DOM/DOMAttr.mm:
813         (-[DOMAttr isId]):
814
815 2017-01-30  Andreas Kling  <akling@apple.com>
816
817         [macOS] WebHTMLView has an internal retain cycle with its flagsChangedEventMonitor.
818         <https://webkit.org/b/167580>
819
820         Reviewed by Antti Koivisto.
821
822         Avoid the implicit strong capture of self by keeping it in a __block variable.
823         Also add code to dealloc to unregister the event monitor, since it will otherwise leak.
824         This fixes huge WebHTMLView leaks seen on the leaks bot.
825
826         * WebView/WebHTMLView.mm:
827         (-[WebHTMLViewPrivate dealloc]):
828         (-[WebHTMLView viewDidMoveToWindow]):
829
830 2017-01-29  Andy Estes  <aestes@apple.com>
831
832         [QuickLook] Add a WebPreference to enable saving QuickLook documents in WebKitLegacy
833         https://bugs.webkit.org/show_bug.cgi?id=167563
834         <rdar://problem/30253207>
835
836         Reviewed by Andreas Kling.
837
838         Instead of only saving QuickLook documents to a temporary file when the client is
839         MobileSafari, base this decision on a WebPreference that clients can choose to enable.
840
841         This also changes the SPI for accessing the temporary file path and UTI. Instead of
842         -[WebView quickLookContentForURL:], which requires the client to pass the response URL of
843         the frame that saved the QuickLook document, the content dictionary is now stored as a
844         property of WebDataSource.
845
846         This also removes the manual lifetime management of the QLPreviewConverter from
847         QuickLookDocumentWriter. The QLPreviewConverter is kept alive by DocumentLoader these days,
848         which ensures it lives long enough to respond to subresource requests.
849
850         New API test: QuickLook.LegacyQuickLookContent
851
852         * WebCoreSupport/WebFrameLoaderClient.mm:
853         (WebFrameLoaderClient::didCreateQuickLookHandle): Moved the logic of deciding whether to
854         write a temporary file to here from the QuickLookDocumentWriter constructor.
855         * WebView/WebDataSource.mm: Declared _quickLookContent.
856         (-[WebDataSource _quickLookContent]):
857         (-[WebDataSource _setQuickLookContent:]):
858         * WebView/WebDataSourceInternal.h: Overrode _quickLookContent as a read/write property.
859         * WebView/WebDataSourcePrivate.h: Declared _quickLookContent as a readonly property.
860         * WebView/WebPreferenceKeysPrivate.h: Defined WebKitQuickLookDocumentSavingPreferenceKey.
861         * WebView/WebPreferences.mm:
862         (-[WebPreferences quickLookDocumentSavingEnabled]):
863         (-[WebPreferences setQuickLookDocumentSavingEnabled:]):
864         * WebView/WebPreferencesPrivate.h: Declared property quickLookDocumentSavingEnabled.
865         * WebView/WebView.mm:
866         (-[WebView quickLookContentForURL:]): Changed to always return nil.
867         * WebView/WebViewPrivate.h: Added a comment stating that clients should use
868         -[WebDataSource _quickLookContent] instead.
869
870 2017-01-28  Yoav Weiss  <yoav@yoav.ws>
871
872         Add Link Preload as an off-by-default experimental feature menu item.
873         https://bugs.webkit.org/show_bug.cgi?id=167201
874
875         Reviewed by Ryosuke Niwa.
876
877         * WebView/WebPreferenceKeysPrivate.h:
878         * WebView/WebPreferences.mm:
879         (-[WebPreferences linkPreloadEnabled]):
880         (-[WebPreferences setLinkPreloadEnabled:]):
881         * WebView/WebPreferencesPrivate.h:
882         * WebView/WebView.mm:
883         (-[WebView _preferencesChanged:]):
884
885 2017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
886
887         Add User Timing Experimental Feature
888         https://bugs.webkit.org/show_bug.cgi?id=167542
889         <rdar://problem/22746307>
890
891         Reviewed by Ryosuke Niwa.
892
893         * WebView/WebPreferenceKeysPrivate.h:
894         * WebView/WebPreferences.mm:
895         (+[WebPreferences initialize]):
896         (-[WebPreferences userTimingEnabled]):
897         (-[WebPreferences setUserTimingEnabled:]):
898         * WebView/WebPreferencesPrivate.h:
899         * WebView/WebView.mm:
900         (-[WebView _preferencesChanged:]):
901         Add setting for User Timing runtime enabled feature.
902
903 2017-01-27  Wenson Hsieh  <wenson_hsieh@apple.com>
904
905         [WK1] Do not prevent the drag client from initializing on Mac
906         https://bugs.webkit.org/show_bug.cgi?id=167541
907
908         Reviewed by Dan Bernstein.
909
910         Fixes fallout from r211192. To ensure compability with WebKit clients, we need to ensure that WebDragClient is
911         initialized everywhere when creating a WebView. Stub out method implementations as no-ops for non-Mac platforms.
912         This caused certain clients, such as Mail, to crash when a webView closes due to  null dereference.
913
914         * WebCoreSupport/WebDragClient.mm:
915         (WebDragClient::WebDragClient):
916         (WebDragClient::actionMaskForDrag):
917         (WebDragClient::willPerformDragDestinationAction):
918         (WebDragClient::dragSourceActionMaskForPoint):
919         (WebDragClient::willPerformDragSourceAction):
920         (WebDragClient::startDrag):
921         (WebDragClient::declareAndWriteDragImage):
922         (WebDragClient::declareAndWriteAttachment):
923         * WebView/WebView.mm:
924         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
925
926 2017-01-26  Chris Dumez  <cdumez@apple.com>
927
928         Crash when navigating back to a page in PacheCache when one of its frames has been removed
929         https://bugs.webkit.org/show_bug.cgi?id=167421
930         <rdar://problem/30188490>
931
932         Reviewed by Darin Adler.
933
934         Add a new setting allowing layout tests to enable PageCache in a window
935         that has an opener, for convenience.
936
937         * WebView/WebPreferenceKeysPrivate.h:
938         * WebView/WebPreferences.mm:
939         (+[WebPreferences initialize]):
940         (-[WebPreferences allowsPageCacheWithWindowOpener]):
941         (-[WebPreferences setAllowsPageCacheWithWindowOpener:]):
942         * WebView/WebPreferencesPrivate.h:
943         * WebView/WebView.mm:
944         (-[WebView _preferencesChanged:]):
945
946 2017-01-26  Keith Miller  <keith_miller@apple.com>
947
948         classInfo should take a VM so it is not materialized from the object on each call
949         https://bugs.webkit.org/show_bug.cgi?id=167424
950
951         Rubber Stamped by Michael Saboff.
952
953         Previously, classInfo() would get the VM from the target's
954         MarkedBlock.  Most callers already have a VM on hand, so it is
955         wasteful to compute the VM from the marked block every time. This
956         patch refactors some of the most common callers of classInfo(),
957         jsDynamicCast and inherits to take a VM as well.
958
959         * DOM/DOM.mm:
960         (+[DOMNode _nodeFromJSWrapper:]):
961         * DOM/DOMUtility.mm:
962         (createDOMWrapper):
963         * DOM/WebDOMOperations.mm:
964         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
965         (WebKit::getObjectID):
966         (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
967         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
968         * Plugins/Hosted/ProxyInstance.mm:
969         (WebKit::ProxyRuntimeMethod::finishCreation):
970         (WebKit::ProxyInstance::invokeMethod):
971         * Plugins/Hosted/ProxyRuntimeObject.mm:
972         (WebKit::ProxyRuntimeObject::finishCreation):
973         * WebView/WebFrame.mm:
974         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
975         * WebView/WebView.mm:
976         (+[WebView _reportException:inContext:]):
977         (aeDescFromJSValue):
978         (-[WebView _notificationIDForTesting:]):
979
980 2017-01-26  Wenson Hsieh  <wenson_hsieh@apple.com>
981
982         REGRESSION (r207483): Touch Bar: Lists and BIU Buttons Missing from Touch Bar in HTML Notes
983         https://bugs.webkit.org/show_bug.cgi?id=167472
984         <rdar://problem/30149809>
985
986         Reviewed by Beth Dakin.
987
988         Revision 207483 caused the touch bar to stop showing up in HTML Notes due to -updateTextTouchBar not
989         initializing the text touch bar and causing -makeTouchBar to return nil while processing a mouse click. The
990         purpose of bailing out of the update was to prevent the text touch bar from thrashing during a selection drag.
991         If the text touch bar doesn't exist yet, we don't have to worry about its appearance flickering from a different
992         previous state, so we should just allow the touch bar to update instead.
993
994         * WebView/WebView.mm:
995         (-[WebView updateTextTouchBar]):
996
997 2017-01-26  Per Arne Vollan  <pvollan@apple.com>
998
999         Crash when setting custom scale factor.
1000         https://bugs.webkit.org/show_bug.cgi?id=167369
1001
1002         Reviewed by Sam Weinig.
1003
1004         Add null pointer check.
1005
1006         * WebView/WebView.mm:
1007         (-[WebView _setCustomBackingScaleFactor:]):
1008
1009 2017-01-25  Wenson Hsieh  <wenson_hsieh@apple.com>
1010
1011         Refactor drag and drop implementation on Mac
1012         https://bugs.webkit.org/show_bug.cgi?id=167427
1013
1014         Reviewed by Enrica Casucci.
1015
1016         Refactor some WebKit1 code on the Mac pertaining to drag and drop. See WebCore ChangeLog for more details.
1017
1018         * Misc/WebNSPasteboardExtras.h:
1019         * WebCoreSupport/WebDragClient.mm:
1020         * WebView/WebFrame.mm:
1021         * WebView/WebFrameInternal.h:
1022         * WebView/WebHTMLView.mm:
1023         * WebView/WebView.mm:
1024         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1025
1026 2017-01-24  Youenn Fablet  <youennf@gmail.com>
1027
1028         [WebRTC] Introduce libwebrtc abstraction for WK1/WK2 implementations
1029         https://bugs.webkit.org/show_bug.cgi?id=167294
1030
1031         Reviewed by Alex Christensen.
1032
1033         * WebView/WebView.mm:
1034         (-[WebView _commonInitializationWithFrameName:groupName:]):
1035
1036 2017-01-25  Wenson Hsieh  <wenson_hsieh@apple.com>
1037
1038         Add support for named pasteboards, pasteboard strategies and platform pasteboards
1039         https://bugs.webkit.org/show_bug.cgi?id=167404
1040
1041         Reviewed by Enrica Casucci.
1042
1043         Adds pasteboard name as an argument to pasteboard-related WebPlatformStrategy methods.
1044
1045         * WebCoreSupport/WebPlatformStrategies.h:
1046         * WebCoreSupport/WebPlatformStrategies.mm:
1047         (WebPlatformStrategies::writeToPasteboard):
1048         (WebPlatformStrategies::getPasteboardItemsCount):
1049         (WebPlatformStrategies::readBufferFromPasteboard):
1050         (WebPlatformStrategies::readURLFromPasteboard):
1051         (WebPlatformStrategies::readStringFromPasteboard):
1052
1053 2017-01-25  Aakash Jain  <aakash_jain@apple.com>
1054
1055         LoadWebLocalizedStrings method should be moved in correct file
1056         https://bugs.webkit.org/show_bug.cgi?id=167393
1057
1058         Reviewed by Alexey Proskuryakov.
1059
1060         * Misc/WebLocalizableStrings.h: Deleted LoadWebLocalizedStrings method.
1061         * Misc/WebLocalizableStrings.mm:
1062         (LoadWebLocalizedStringsTimerCallback): Deleted, moved to WebUIKitSupport.mm
1063         (LoadWebLocalizedStrings): Deleted, moved to WebUIKitSupport.mm
1064
1065 2017-01-24  Zalan Bujtas  <zalan@apple.com>
1066
1067         Add simple line layout toggle to MiniBrowser
1068         https://bugs.webkit.org/show_bug.cgi?id=167405
1069
1070         Reviewed by Andreas Kling.
1071
1072         * WebView/WebPreferenceKeysPrivate.h:
1073         * WebView/WebPreferences.mm:
1074         (+[WebPreferences initialize]):
1075         (-[WebPreferences simpleLineLayoutEnabled]):
1076         (-[WebPreferences setSimpleLineLayoutEnabled:]):
1077         * WebView/WebPreferencesPrivate.h:
1078         * WebView/WebView.mm:
1079         (-[WebView _preferencesChanged:]):
1080
1081 2017-01-24  Joseph Pecoraro  <pecoraro@apple.com>
1082
1083         Fold USER_TIMING into WEB_TIMING and make it a RuntimeEnabledFeature
1084         https://bugs.webkit.org/show_bug.cgi?id=167394
1085
1086         Reviewed by Ryosuke Niwa.
1087
1088         * Configurations/FeatureDefines.xcconfig:
1089
1090 2017-01-23  Chris Dumez  <cdumez@apple.com>
1091
1092         REGRESSION (r211033): ASSERTION FAILED: m_ptr in com.apple.WebCore: WTF::RefPtr<WebCore::Element>::operator* const + 70
1093         https://bugs.webkit.org/show_bug.cgi?id=167308
1094         <rdar://problem/30144964>
1095
1096         Unreviewed, do a partial revert of r211033 to fix assertion.
1097
1098         * WebCoreSupport/WebChromeClient.h:
1099         * WebCoreSupport/WebChromeClient.mm:
1100         (WebChromeClient::exitFullScreenForElement):
1101
1102 2017-01-23  Joseph Pecoraro  <pecoraro@apple.com>
1103
1104         Remove allowWindowOpenWithoutUserGesture setting
1105         https://bugs.webkit.org/show_bug.cgi?id=167301
1106
1107         Reviewed by Darin Adler.
1108
1109         * WebView/WebView.mm:
1110         (-[WebView _preferencesChanged:]):
1111         Use the equivalent existing setting.
1112
1113 2017-01-20  Darin Adler  <darin@apple.com>
1114
1115         Remove PassRefPtr from "page" directory of WebCore, also deploy references
1116         https://bugs.webkit.org/show_bug.cgi?id=167224
1117
1118         Reviewed by Chris Dumez.
1119
1120         * WebCoreSupport/WebApplicationCacheQuotaManager.mm:
1121         (-[WebApplicationCacheQuotaManager quota]): Pass reference.
1122
1123         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
1124         * WebCoreSupport/WebChromeClient.mm:
1125         (WebChromeClient::focusedElementChanged): Ditto.
1126         (WebChromeClient::createWindow): Ditto.
1127         (WebChromeClient::runBeforeUnloadConfirmPanel): Ditto.
1128         (WebChromeClient::runJavaScriptAlert): Ditto.
1129         (WebChromeClient::runJavaScriptConfirm): Ditto.
1130         (WebChromeClient::runJavaScriptPrompt): Ditto.
1131         (WebChromeClient::contentsSizeChanged): Ditto.
1132         (WebChromeClient::unavailablePluginButtonClicked): Ditto.
1133         (WebChromeClient::print): Ditto.
1134         (WebChromeClient::exceededDatabaseQuota): Ditto.
1135         (WebChromeClient::reachedApplicationCacheOriginQuota): Ditto.
1136         (WebChromeClient::createColorChooser): Ditto.
1137         (WebChromeClient::elementDidFocus): Ditto.
1138         (WebChromeClient::elementDidBlur): Ditto.
1139         (WebChromeClient::createPopupMenu): Ditto.
1140         (WebChromeClient::createSearchPopupMenu): Ditto.
1141         (WebChromeClient::attachRootGraphicsLayer): Ditto.
1142         (WebChromeClient::attachViewOverlayGraphicsLayer): Ditto.
1143         (WebChromeClient::supportsFullScreenForElement): Ditto.
1144         (WebChromeClient::enterFullScreenForElement): Ditto.
1145         (WebChromeClient::exitFullScreenForElement): Ditto.
1146
1147         * WebView/WebFrame.mm:
1148         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
1149         Updated for change to the appendChild function.
1150
1151 2017-01-21  Simon Fraser  <simon.fraser@apple.com>
1152
1153         Remove -[WebFrame sendOrientationChangeEvent:] which is unused
1154         https://bugs.webkit.org/show_bug.cgi?id=167276
1155
1156         Reviewed by Alex Christensen.
1157         
1158         It was usurped by -deviceOrientationChanged in 2014.
1159
1160         * WebView/WebFrame.mm:
1161         (-[WebFrame sendOrientationChangeEvent:]): Deleted.
1162         * WebView/WebFramePrivate.h:
1163
1164 2017-01-21  Simon Fraser  <simon.fraser@apple.com>
1165
1166         Remove -[WebView _contentsSizeRespectingOverflow] which is no longer needed
1167         https://bugs.webkit.org/show_bug.cgi?id=167271
1168
1169         Reviewed by Alex Christensen.
1170         
1171         -_contentsSizeRespectingOverflow was added to try to make viewport sizing on iOS respect
1172         overflow:hidden on the body (webkit.org/b/146924) but that was reverted (webkit.org/b/152803),
1173
1174         * WebView/WebView.mm:
1175         (-[WebView _contentsSizeRespectingOverflow]): Deleted.
1176         * WebView/WebViewPrivate.h:
1177
1178 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1179
1180         Remove never changing IndexedDB RuntimeEnabledFeature
1181         https://bugs.webkit.org/show_bug.cgi?id=167278
1182
1183         Reviewed by Darin Adler.
1184
1185         * WebView/WebView.mm:
1186         (-[WebView _preferencesChanged:]):
1187
1188 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1189
1190         Cleanup RuntimeEnabledFeatures
1191         https://bugs.webkit.org/show_bug.cgi?id=167228
1192
1193         Reviewed by Simon Fraser.
1194
1195         * WebView/WebView.mm:
1196         (-[WebView _preferencesChanged:]):
1197
1198 2017-01-20  Joseph Pecoraro  <pecoraro@apple.com>
1199
1200         Remove outdated ENABLE(CSP_NEXT) build flag
1201         https://bugs.webkit.org/show_bug.cgi?id=167252
1202
1203         Reviewed by Brent Fulgham.
1204
1205         * Configurations/FeatureDefines.xcconfig:
1206
1207 2017-01-20  Antoine Quint  <graouts@apple.com>
1208
1209         [Modern Media Controls] Turn modern media controls on by default
1210         https://bugs.webkit.org/show_bug.cgi?id=165668
1211
1212         Reviewed by Dean Jackson.
1213
1214         Enabled modern media controls by default in WK1.
1215
1216         * WebView/WebPreferences.mm:
1217         (+[WebPreferences initialize]):
1218
1219 2017-01-19  Chris Dumez  <cdumez@apple.com>
1220
1221         iterable<> should be enabled on WK1
1222         https://bugs.webkit.org/show_bug.cgi?id=167221
1223         <rdar://problem/30108531>
1224
1225         Reviewed by Youenn Fablet.
1226
1227         * WebView/WebPreferenceKeysPrivate.h:
1228         * WebView/WebPreferences.mm:
1229         (-[WebPreferences setCustomElementsEnabled:]):
1230         (-[WebPreferences DOMIteratorEnabled]): Deleted.
1231         (-[WebPreferences setDOMIteratorEnabled:]): Deleted.
1232         * WebView/WebPreferencesPrivate.h:
1233         * WebView/WebView.mm:
1234         (-[WebView _preferencesChanged:]):
1235
1236 2017-01-19  Chris Dumez  <cdumez@apple.com>
1237
1238         Make sure HTML validation bubble gets dismissed when its associated element's frame gets detached
1239         https://bugs.webkit.org/show_bug.cgi?id=167215
1240         <rdar://problem/29885052>
1241
1242         Reviewed by Andreas Kling.
1243
1244         Make sure HTML validation bubble gets dismissed when its associated
1245         element's frame gets detached and that we do not crash.
1246
1247         * WebCoreSupport/WebValidationMessageClient.h:
1248         * WebCoreSupport/WebValidationMessageClient.mm:
1249         (WebValidationMessageClient::documentDetached):
1250
1251 2017-01-19  Myles C. Maxfield  <mmaxfield@apple.com>
1252
1253         [Cocoa] Variation fonts are erroneously disabled on iOS
1254         https://bugs.webkit.org/show_bug.cgi?id=167172
1255
1256         Reviewed by Simon Fraser.
1257
1258         OpenSource builders don't seem to understand sdk=embedded*.
1259
1260         * Configurations/FeatureDefines.xcconfig:
1261
1262 2017-01-19  Andreas Kling  <akling@apple.com>
1263
1264         ScriptExecutionContext::topOrigin() should return a reference.
1265         <https://webkit.org/b/167190>
1266
1267         Reviewed by Sam Weinig.
1268
1269         * Misc/WebCache.mm:
1270         (+[WebCache addImageToCache:forURL:forFrame:]):
1271         (+[WebCache removeImageFromCacheForURL:forFrame:]):
1272
1273 2017-01-18  Ryan Haddad  <ryanhaddad@apple.com>
1274
1275         Unreviewed fix for the macOS build.
1276
1277         * Carbon/CarbonWindowAdapter.mm:
1278         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
1279
1280 2017-01-18  Ryan Haddad  <ryanhaddad@apple.com>
1281
1282         Unreviewed, rolling out r210848.
1283
1284         This change introduced media-related LayoutTest failures and
1285         crashes on macOS.
1286
1287         Reverted changeset:
1288
1289         "[Modern Media Controls] Turn modern media controls on by
1290         default"
1291         https://bugs.webkit.org/show_bug.cgi?id=165668
1292         http://trac.webkit.org/changeset/210848
1293
1294 2017-01-18  Andreas Kling  <akling@apple.com>
1295
1296         Document::securityOrigin() should return a reference.
1297         <https://webkit.org/b/167124>
1298
1299         Reviewed by Sam Weinig.
1300
1301         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1302         (WebKit::NetscapePluginInstanceProxy::loadRequest):
1303         * Plugins/WebNetscapePluginStream.mm:
1304         (WebNetscapePluginStream::WebNetscapePluginStream):
1305         * Plugins/WebNetscapePluginView.mm:
1306         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
1307         * Plugins/WebPluginContainerCheck.mm:
1308         (-[WebPluginContainerCheck _isForbiddenFileLoad]):
1309         * WebCoreSupport/WebChromeClient.mm:
1310         (WebChromeClient::exceededDatabaseQuota):
1311         * WebCoreSupport/WebFrameLoaderClient.h:
1312         * WebCoreSupport/WebFrameLoaderClient.mm:
1313         (WebFrameLoaderClient::didRunInsecureContent):
1314         * WebCoreSupport/WebGeolocationClient.mm:
1315         (WebGeolocationClient::requestPermission):
1316         (-[WebGeolocationProviderInitializationListener initializationAllowedWebView:]):
1317         * WebView/WebFrame.mm:
1318         (-[WebFrame _allowsFollowingLink:]):
1319
1320 2017-01-18  Antoine Quint  <graouts@apple.com>
1321
1322         [Modern Media Controls] Turn modern media controls on by default
1323         https://bugs.webkit.org/show_bug.cgi?id=165668
1324
1325         Reviewed by Dean Jackson.
1326
1327         Enabled modern media controls by default in WK1. 
1328
1329         * WebView/WebPreferences.mm:
1330         (+[WebPreferences initialize]):
1331
1332 2017-01-15  Darin Adler  <darin@apple.com>
1333
1334         Remove PassRefPtr from "loader" directory of WebCore
1335         https://bugs.webkit.org/show_bug.cgi?id=167055
1336
1337         Reviewed by Alex Christensen.
1338
1339         * WebCoreSupport/WebChromeClient.h: Updated for changes to ChromeClient.
1340         Also made class final and most functions private and final.
1341         * WebCoreSupport/WebChromeClient.mm:
1342         (WebChromeClient::runOpenPanel): Updated to take references.
1343
1344         * WebCoreSupport/WebEditorClient.h: Updated for changes to EditorClient.
1345         * WebCoreSupport/WebEditorClient.mm:
1346         (-[WebUndoStep initWithUndoStep:]): Take reference instead of PassRefPtr.
1347         (+[WebUndoStep stepWithUndoStep:]): Ditto.
1348         (-[WebUndoStep step]): Return reference instead of pointer.
1349         (-[WebEditorUndoTarget undoEditing:]): Updated for the above.
1350         (-[WebEditorUndoTarget redoEditing:]): Ditto.
1351         (WebEditorClient::registerUndoOrRedoStep): Take reference instead of
1352         PassRefPtr.
1353         (WebEditorClient::registerUndoStep): Ditto.
1354         (WebEditorClient::registerRedoStep): Ditto.
1355
1356         * WebCoreSupport/WebFrameLoaderClient.h: Updated for changes to
1357         FrameLoaderClient, marked functions final instead of override.
1358         * WebCoreSupport/WebFrameLoaderClient.mm:
1359         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): Take
1360         pointer instead of PassRefPtr.
1361         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
1362         (makeFormFieldValuesDictionary): Take a reference.
1363         (WebFrameLoaderClient::dispatchWillSendSubmitEvent): Take Ref&& instead
1364         of PassRefPtr.
1365         (WebFrameLoaderClient::dispatchWillSubmitForm): Take a reference instead
1366         of PassRefPtr.
1367         (WebFrameLoaderClient::actionDictionary): Take a pointer instead of PassRePtr.
1368         (WebFrameLoaderClient::createFrame): Take a reference instead of a pointer.
1369         (WebFrameLoaderClient::createPlugin): Ditto.
1370         (WebFrameLoaderClient::createJavaAppletWidget): Ditto.
1371         (WebFrameLoaderClient::createNetworkingContext): Ditto.
1372         (WebFrameLoaderClient::didCreateQuickLookHandle): Pass a reference.
1373
1374         * WebCoreSupport/WebFrameNetworkingContext.h: Use Ref instead of PassRefPtr.
1375         * WebCoreSupport/WebFrameNetworkingContext.mm: Tweak style a bit.
1376
1377         * WebCoreSupport/WebOpenPanelResultListener.h: Take a reference instead of
1378         PassRefPtr. Use RefPtr for class field.
1379         * WebCoreSupport/WebOpenPanelResultListener.mm:
1380         (-[WebOpenPanelResultListener dealloc]): Deleted. Compiler will now do it
1381         correctly without us declaring anything explicitly.
1382         (-[WebOpenPanelResultListener cancel]): Get rid of hand-written deref code,
1383         and let RefPtr do the work.
1384         (-[WebOpenPanelResultListener chooseFilename:]): Ditto.
1385         (-[WebOpenPanelResultListener chooseFilenames:]): Ditto.
1386         (-[WebOpenPanelResultListener chooseFilenames:displayString:iconImage:]):
1387         Rewrote to use a modern Objective-C for loop, reserveInitialCapacity,
1388         and uncheckedAppend.
1389
1390         * WebView/WebArchive.mm:
1391         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
1392         Updated for changes to LegacyWebArchive.
1393         (-[WebArchive mainResource]): Ditto.
1394         (-[WebArchive subresources]): Ditto.
1395         (-[WebArchive subframeArchives]): Ditto.
1396
1397         * WebView/WebDataSource.mm:
1398         (-[WebDataSource _addSubframeArchives:]): Use a modern Objective-C for loop
1399         instead of NSEnumerator.
1400         (-[WebDataSource _fileWrapperForURL:]): Use auto.
1401         (-[WebDataSource _documentFragmentWithArchive:]): Pass a reference.
1402         (-[WebDataSource mainResource]): Ditto.
1403         (-[WebDataSource subresources]): Ditto.
1404         (-[WebDataSource subresourceForURL:]): Ditto.
1405         (-[WebDataSource addSubresource:]): Ditto.
1406
1407         * WebView/WebResource.mm:
1408         (-[WebResourcePrivate initWithCoreResource:]): Take Ref&& instead of PassRefPtr.
1409         (-[WebResourcePrivate dealloc]): Remove explicit deref since RefPtr will now take
1410         care of it
1411         (-[WebResource initWithCoder:]): Pass a reference.
1412         (-[WebResource encodeWithCoder:]): Updated since coreResource is now RefPtr.
1413         (-[WebResource _initWithCoreResource:]): Take Ref&& instead of PassRefPtr.
1414         (-[WebResource _coreResource]): Return reference rather than pointer.
1415         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
1416         Added code to handle the null case and pass a reference rather than a pointer.
1417         * WebView/WebResourceInternal.h: Updated for the above.
1418
1419 2017-01-17  Michael Catanzaro  <mcatanzaro@igalia.com>
1420
1421         Unreviewed, rolling out r210834
1422         https://bugs.webkit.org/show_bug.cgi?id=165668
1423
1424         It introduced dozens of test timeouts.
1425
1426         Reverted changeset:
1427         "[Modern Media Controls] Turn modern media controls on by default"
1428         https://bugs.webkit.org/show_bug.cgi?id=165668
1429         http://trac.webkit.org/changeset/210834
1430
1431 2017-01-17  Antoine Quint  <graouts@apple.com>
1432
1433         [Modern Media Controls] Turn modern media controls on by default
1434         https://bugs.webkit.org/show_bug.cgi?id=165668
1435
1436         Reviewed by Dean Jackson.
1437
1438         Enabled modern media controls by default in WK1. 
1439
1440         * WebView/WebPreferences.mm:
1441         (+[WebPreferences initialize]):
1442
1443 2017-01-17  Joseph Pecoraro  <pecoraro@apple.com>
1444
1445         ENABLE(USER_TIMING) Not Defined for Apple Windows or OS X Ports
1446         https://bugs.webkit.org/show_bug.cgi?id=116551
1447         <rdar://problem/13949830>
1448
1449         Reviewed by Alex Christensen.
1450
1451         * Configurations/FeatureDefines.xcconfig:
1452
1453 2017-01-17  Joseph Pecoraro  <pecoraro@apple.com>
1454
1455         Crash when closing tab with debugger paused
1456         https://bugs.webkit.org/show_bug.cgi?id=161746
1457         <rdar://problem/15607819>
1458
1459         Reviewed by Brian Burg and Brent Fulgham.
1460
1461         * WebView/WebView.mm:
1462         (WebKit::DeferredPageDestructor::createDeferredPageDestructor):
1463         (WebKit::DeferredPageDestructor::DeferredPageDestructor):
1464         (WebKit::DeferredPageDestructor::tryDestruction):
1465         (-[WebView _close]):
1466         Defer destruction of the Page if we are in a nested runloop.
1467
1468 2017-01-16  Joseph Pecoraro  <pecoraro@apple.com>
1469
1470         Remove the REQUEST_ANIMATION_FRAME flag
1471         https://bugs.webkit.org/show_bug.cgi?id=156980
1472         <rdar://problem/25906849>
1473
1474         Reviewed by Simon Fraser.
1475
1476         * Configurations/FeatureDefines.xcconfig:
1477
1478 2017-01-16  Andy Estes  <aestes@apple.com>
1479
1480         [QuickLook] Do some cleanup in QuickLookHandle
1481         https://bugs.webkit.org/show_bug.cgi?id=166864
1482
1483         Reviewed by Darin Adler.
1484
1485         * WebCoreSupport/WebFrameLoaderClient.mm:
1486         (WebFrameLoaderClient::didCreateQuickLookHandle): Changed to pass a
1487         Ref<QuickLookHandleClient>&& to QuickLookHandle::setClient().
1488
1489 2017-01-15  Tim Horton  <timothy_horton@apple.com>
1490
1491         De-duplicate more (nearly) identical code in Editor(Mac|IOS).mm
1492         https://bugs.webkit.org/show_bug.cgi?id=167063
1493
1494         Reviewed by Dan Bernstein.
1495
1496         * WebView/WebHTMLView.mm:
1497         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
1498         (-[WebHTMLView _updateFontPanel]):
1499         * WebView/WebView.mm:
1500         (-[WebView typingAttributes]):
1501         Adjust to fontAttributesForSelectionStart returning a RetainPtr.
1502
1503 2017-01-13  Joseph Pecoraro  <pecoraro@apple.com>
1504
1505         Remove ENABLE(DETAILS_ELEMENT) guards
1506         https://bugs.webkit.org/show_bug.cgi?id=167042
1507
1508         Reviewed by Alex Christensen.
1509
1510         * Configurations/FeatureDefines.xcconfig:
1511
1512 2017-01-11  Darin Adler  <darin@apple.com>
1513
1514         Remove PassRefPtr from more of "platform"
1515         https://bugs.webkit.org/show_bug.cgi?id=166809
1516
1517         Reviewed by Sam Weinig.
1518
1519         * WebCoreSupport/WebFrameLoaderClient.mm:
1520         (NetscapePluginWidget::handleEvent): Pass a reference.
1521         * WebView/WebView.mm:
1522         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
1523         Updated since the children set now contains Ref instead of RefPtr.
1524
1525 2017-01-13  Sam Weinig  <sam@webkit.org>
1526
1527         [WebIDL] Remove custom bindings for DeviceMotionEvent and DeviceOrientationEvent
1528         https://bugs.webkit.org/show_bug.cgi?id=167006
1529
1530         Reviewed by Geoffrey Garen.
1531
1532         * WebView/WebDeviceOrientation.mm:
1533         (convert):
1534         (-[WebDeviceOrientation initWithCanProvideAlpha:alpha:canProvideBeta:beta:canProvideGamma:gamma:]):
1535         Update for new use of std::optional.
1536
1537 2017-01-12  Joseph Pecoraro  <pecoraro@apple.com>
1538
1539         Remove unnecessary includes of Page.h
1540         https://bugs.webkit.org/show_bug.cgi?id=166996
1541
1542         Reviewed by Yusuke Suzuki.
1543
1544         * DOM/DOMHTML.mm:
1545         * History/WebBackForwardList.mm:
1546         * Plugins/WebPluginController.mm:
1547         * WebCoreSupport/WebNotificationClient.mm:
1548         * WebCoreSupport/WebPlatformStrategies.mm:
1549         * WebCoreSupport/WebUserMediaClient.mm:
1550         * WebView/WebFullScreenController.mm:
1551
1552 2017-01-12  Chris Dumez  <cdumez@apple.com>
1553
1554         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
1555         https://bugs.webkit.org/show_bug.cgi?id=166995
1556
1557         Reviewed by Jer Noble.
1558
1559         Add KEYBOARD_KEY_ATTRIBUTE / KEYBOARD_CODE_ATTRIBUTE to FeatureDefines.xcconfig
1560         as some people are having trouble building without it.
1561
1562         * Configurations/FeatureDefines.xcconfig:
1563
1564 2017-01-12  Chris Dumez  <cdumez@apple.com>
1565
1566         HTML form validation popover sometimes does not go away
1567         https://bugs.webkit.org/show_bug.cgi?id=166990
1568         <rdar://problem/29985957>
1569
1570         Reviewed by Tim Horton.
1571
1572         Update code using ValidationBubble now that it is RefCounted.
1573
1574         * WebView/WebView.mm:
1575         (-[WebView showFormValidationMessage:withAnchorRect:]):
1576
1577 2017-01-10  Ryosuke Niwa  <rniwa@webkit.org>
1578
1579         Remove pointerLockElement from DOMDocumentPrivate.h
1580         https://bugs.webkit.org/show_bug.cgi?id=166882
1581
1582         Reviewed by Simon Fraser.
1583
1584         Removed pointerLockElement declaration that was supposed to be removed in r209637.
1585
1586         * DOM/DOMDocumentPrivate.h:
1587
1588 2017-01-06  Darin Adler  <darin@apple.com>
1589
1590         Remove PassRefPtr use from "inspector", "platform/sql", and "platform/text"
1591         https://bugs.webkit.org/show_bug.cgi?id=166797
1592
1593         Reviewed by Alex Christensen.
1594
1595         * WebCoreSupport/WebEditorClient.h: Updated to take a reference.
1596         * WebCoreSupport/WebEditorClient.mm:
1597         (WebEditorClient::requestCheckingOfString): Take a reference
1598         instead of a PassRefPtr.
1599
1600 2017-01-05  Chris Dumez  <cdumez@apple.com>
1601
1602         Turn preferLowPowerWebGLRendering setting on by default
1603         https://bugs.webkit.org/show_bug.cgi?id=166737
1604         <rdar://problem/29870033>
1605
1606         Reviewed by Dean Jackson.
1607
1608         Temporarily turn preferLowPowerWebGLRendering setting on by default until
1609         we deal better with WebGL content in background tabs.
1610
1611         * WebView/WebPreferences.mm:
1612         (+[WebPreferences initialize]):
1613
1614 2017-01-05  Enrica Casucci  <enrica@apple.com>
1615
1616         Support File Promise during drag for macOS.
1617         https://bugs.webkit.org/show_bug.cgi?id=165204
1618         rdar://problem/19595567
1619
1620         Reviewed by Tim Horton.
1621
1622         Adds support for dropping a File Promise in a WebView.
1623         The implementation uses new File Promise API available in Sierra.
1624
1625         * Misc/WebNSPasteboardExtras.mm:
1626         (+[NSPasteboard _web_dragTypesForURL]):
1627         * WebView/WebView.mm:
1628         (-[WebView performDragOperation:]):
1629
1630 2017-01-05  Andreas Kling  <akling@apple.com>
1631
1632         Remove ChromeClient::needTouchEvents().
1633         <https://webkit.org/b/166723>
1634
1635         Rubber-stamped by Antti Koivisto.
1636
1637         * WebCoreSupport/WebChromeClient.h:
1638
1639 2017-01-04  Darin Adler  <darin@apple.com>
1640
1641         Remove PassRefPtr use from the "html" directory, other improvements
1642         https://bugs.webkit.org/show_bug.cgi?id=166635
1643
1644         Reviewed by Alex Christensen.
1645
1646         * WebCoreSupport/WebChromeClient.h:
1647         * WebCoreSupport/WebChromeClient.mm:
1648         (WebChromeClient::loadIconForFiles): Take a reference instead of a pointer.
1649
1650 2017-01-04  Ryan Haddad  <ryanhaddad@apple.com>
1651
1652         Unreviewed, rolling out r210287.
1653
1654         This change caused editing test failures on macOS.
1655
1656         Reverted changeset:
1657
1658         "Support File Promise during drag for macOS."
1659         https://bugs.webkit.org/show_bug.cgi?id=165204
1660         http://trac.webkit.org/changeset/210287
1661
1662 2017-01-04  Enrica Casucci  <enrica@apple.com>
1663
1664         Support File Promise during drag for macOS.
1665         https://bugs.webkit.org/show_bug.cgi?id=165204
1666         rdar://problem/19595567
1667
1668         Reviewed by Tim Horton.
1669
1670         Adds support for dropping a File Promise in a WebView.
1671         The implementation uses new File Promise API available in Sierra.
1672
1673         * Misc/WebNSPasteboardExtras.mm:
1674         (+[NSPasteboard _web_dragTypesForURL]):
1675         * WebView/WebView.mm:
1676         (-[WebView performDragOperation:]):
1677
1678 2017-01-04  Tim Horton  <timothy_horton@apple.com>
1679
1680         Provide a setting for clients to always prefer low-power WebGL
1681         https://bugs.webkit.org/show_bug.cgi?id=166675
1682         <rdar://problem/29834093>
1683
1684         Reviewed by Dan Bernstein.
1685
1686         * WebView/WebPreferenceKeysPrivate.h:
1687         * WebView/WebPreferences.mm:
1688         (+[WebPreferences initialize]):
1689         (-[WebPreferences preferLowPowerWebGLRendering]):
1690         (-[WebPreferences setPreferLowPowerWebGLRendering:]):
1691         * WebView/WebPreferencesPrivate.h:
1692         * WebView/WebView.mm:
1693         (-[WebView _preferencesChanged:]):
1694         Expose a new private preferLowPowerWebGLRendering WebKit1 preference.
1695
1696 2017-01-03  Tim Horton  <timothy_horton@apple.com>
1697
1698         NSSpellChecker's recordResponse isn't called for unseen automatic corrections
1699         https://bugs.webkit.org/show_bug.cgi?id=166450
1700         <rdar://problem/29447824>
1701
1702         Reviewed by Darin Adler.
1703
1704         * WebCoreSupport/CorrectionPanel.h:
1705         * WebCoreSupport/CorrectionPanel.mm:
1706         (CorrectionPanel::recordAutocorrectionResponse):
1707         (CorrectionPanel::handleAcceptedReplacement):
1708         * WebCoreSupport/WebAlternativeTextClient.mm:
1709         (toCorrectionResponse):
1710         (WebAlternativeTextClient::recordAutocorrectionResponse):
1711         Funnel all calls to recordResponse:toCorrection:forWord:language:inSpellDocumentWithTag:
1712         through recordAutocorrectionResponse, for debugging's sake.
1713         Drop the NSView parameter because we don't need it, just the tag.
1714         Convert the new AutocorrectionResponseType value to its corresponding
1715         NSCorrectionResponse value.
1716
1717 2017-01-01  Jeff Miller  <jeffm@apple.com>
1718
1719         Update user-visible copyright strings to include 2017
1720         https://bugs.webkit.org/show_bug.cgi?id=166278
1721
1722         Reviewed by Dan Bernstein.
1723
1724         * Info.plist:
1725
1726 2016-12-30  Darin Adler  <darin@apple.com>
1727
1728         Remove PassRefPtr use from the "dom" directory, related cleanup
1729         https://bugs.webkit.org/show_bug.cgi?id=166569
1730
1731         Reviewed by Alex Christensen.
1732
1733         * WebCoreSupport/WebFrameLoaderClient.mm:
1734         (WebFrameLoaderClient::dispatchDidReceiveTitle): Updated to use struct.
1735         (WebFrameLoaderClient::updateGlobalHistory): Ditto.
1736         (WebFrameLoaderClient::setTitle): Ditto.
1737         (WebFrameLoaderClient::transitionToCommittedForNewPage): Ditto.
1738         * WebView/WebFrame.mm:
1739         (-[WebFrame _dispatchDidReceiveTitle:]): Use aggregate-style syntax for StringWithDirection.
1740         Not needed now, but useful later if we ever can get rid of the explicit constructors.
1741         (-[WebFrame loadArchive:]): Pass a reference to loadArchive.
1742         * WebView/WebHTMLRepresentation.mm:
1743         (-[WebHTMLRepresentation title]): Updated to use struct.
1744
1745 2016-12-25  Yusuke Suzuki  <utatane.tea@gmail.com>
1746
1747         Propagate the source origin as much as possible
1748         https://bugs.webkit.org/show_bug.cgi?id=166348
1749
1750         Reviewed by Darin Adler.
1751
1752         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1753         (WebKit::NetscapePluginInstanceProxy::evaluate):
1754
1755 2016-12-23  Andy Estes  <aestes@apple.com>
1756
1757         [iOS] DumpRenderTree triggers an assertion failure when calling +[WebPreferences _switchNetworkLoaderToNewTestingSession]
1758         https://bugs.webkit.org/show_bug.cgi?id=166471
1759
1760         Reviewed by Andreas Kling.
1761
1762         When DumpRenderTree starts up, it calls
1763         +[WebPreferences _switchNetworkLoaderToNewTestingSession] from the main thread. In Debug
1764         builds, this triggers the ASSERT(isMainThread()) in
1765         NetworkStorageSession::defaultNetworkStorageSession() because the Web thread has already
1766         started, we are on the main thread, and we are not holding the Web thread lock. This is
1767         causing all layout tests to crash in the iOS WK1 Debug configuration.
1768
1769         * WebView/WebPreferences.mm: (+[WebPreferences _switchNetworkLoaderToNewTestingSession]):
1770         Take the Web thread lock before calling NetworkStorageSession::switchToNewTestingSession().
1771
1772 2016-12-22  Andy Estes  <aestes@apple.com>
1773
1774         Make WebCore::EditorInsertAction an enum class
1775         https://bugs.webkit.org/show_bug.cgi?id=166424
1776
1777         Reviewed by Brent Fulgham.
1778
1779         * WebCoreSupport/WebEditorClient.mm:
1780         (kit):
1781
1782 2016-12-21  Beth Dakin  <bdakin@apple.com>
1783
1784         Holding down on candidates in the TouchBar should show panel on screen
1785         https://bugs.webkit.org/show_bug.cgi?id=166367
1786         -and corresponding-
1787         <rdar://problem/28479236>
1788
1789         Reviewed by Tim Horton.
1790
1791         Stray whitespace.
1792         * WebCoreSupport/WebEditorClient.mm:
1793         (WebEditorClient::handleRequestedCandidates):
1794
1795         Call the version of setCandidates: that takes a rect. We need to keep the helper 
1796         function in WK1 (unlike WK2) since we also use it for testing.
1797         * WebView/WebView.mm:
1798         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
1799
1800 2016-12-20  Dean Jackson  <dino@apple.com>
1801
1802         Remove INDIE_UI
1803         https://bugs.webkit.org/show_bug.cgi?id=165881
1804         <rdar://problem/29672532>
1805
1806         Reviewed by Simon Fraser.
1807
1808         The Indie UI work has been discontinued.
1809
1810         * Configurations/FeatureDefines.xcconfig:
1811
1812 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
1813
1814         [ES6] Enable ES6 Modules
1815         https://bugs.webkit.org/show_bug.cgi?id=165849
1816
1817         Reviewed by Geoffrey Garen.
1818
1819         * WebView/WebPreferenceKeysPrivate.h:
1820         * WebView/WebPreferences.mm:
1821         (+[WebPreferences initialize]):
1822         (-[WebPreferences es6ModulesEnabled]): Deleted.
1823         (-[WebPreferences setES6ModulesEnabled:]): Deleted.
1824         * WebView/WebPreferencesPrivate.h:
1825         * WebView/WebView.mm:
1826         (-[WebView _preferencesChanged:]):
1827
1828 2016-12-16  Dave Hyatt  <hyatt@apple.com>
1829
1830         [CSS Values] Make separate wrapper classes for the deprecated CSS Values OM
1831         https://bugs.webkit.org/show_bug.cgi?id=165968
1832
1833         Reviewed by Andreas Kling.
1834
1835         * DOM/DOMCSS.mm:
1836         (kitClass):
1837         * DOM/DOMCSSPrimitiveValue.mm:
1838         (-[DOMCSSPrimitiveValue getCounterValue]):
1839         (-[DOMCSSPrimitiveValue getRectValue]):
1840         (kit):
1841         * DOM/DOMCSSPrimitiveValueInternal.h:
1842         * DOM/DOMCSSStyleDeclaration.mm:
1843         * DOM/DOMCSSValue.mm:
1844         (kit):
1845         * DOM/DOMCSSValueInternal.h:
1846         * DOM/DOMCSSValueList.mm:
1847         * DOM/DOMCounter.mm:
1848         (kit):
1849         * DOM/DOMCounterInternal.h:
1850         * DOM/DOMRGBColor.mm:
1851         (kit):
1852         * DOM/DOMRGBColorInternal.h:
1853         * DOM/DOMRect.mm:
1854         (kit):
1855         * DOM/DOMRectInternal.h:
1856         * DOM/DOMUtility.mm:
1857         (createDOMWrapper):
1858
1859 2016-12-16  Chris Dumez  <cdumez@apple.com>
1860
1861         HTML form validation bubble should be dismissed on navigation
1862         https://bugs.webkit.org/show_bug.cgi?id=165960
1863         <rdar://problem/29668086>
1864
1865         Reviewed by Simon Fraser.
1866
1867         Dismiss HTML form validation bubble on top-level navigation on Mac WK1.
1868
1869         * WebView/WebView.mm:
1870         (-[WebView _didStartProvisionalLoadForFrame:]):
1871
1872 2016-12-15  Darin Adler  <darin@apple.com>
1873
1874         Use asString instead of toWTFString, toString, or getString when we already checked isString
1875         https://bugs.webkit.org/show_bug.cgi?id=165895
1876
1877         Reviewed by Yusuke Suzuki.
1878
1879         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1880         (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use asString/value instead of
1881         toWTFString.
1882         * WebView/WebView.mm:
1883         (aeDescFromJSValue): Use asString/value instead of getString.
1884
1885 2016-12-15  Chris Dumez  <cdumez@apple.com>
1886
1887         Make sure HTML validation bubble's state is updated after layout
1888         https://bugs.webkit.org/show_bug.cgi?id=165922
1889         <rdar://problem/29694730>
1890
1891         Reviewed by Simon Fraser.
1892
1893         Make sure HTML validation bubble's state is updated after layout.
1894         In particular, if the validation bubble's associated element has
1895         moved or is no longer visible, we now hide the bubble.
1896
1897         * WebCoreSupport/WebValidationMessageClient.h:
1898         * WebCoreSupport/WebValidationMessageClient.mm:
1899         (WebValidationMessageClient::showValidationMessage):
1900         (WebValidationMessageClient::hideValidationMessage):
1901         (WebValidationMessageClient::updateValidationBubbleStateIfNeeded):
1902
1903 2016-12-15  Chris Dumez  <cdumez@apple.com>
1904
1905         Move charCode / keyCode / which attributes from UIEvent to KeyboardEvent
1906         https://bugs.webkit.org/show_bug.cgi?id=165904
1907
1908         Reviewed by Sam Weinig.
1909
1910         Update ObjC bindings so they keep building.
1911
1912         * DOM/DOMUIEvent.mm:
1913         (-[DOMUIEvent keyCode]):
1914         (-[DOMUIEvent charCode]):
1915
1916 2016-12-15  Andreas Kling  <akling@apple.com>
1917
1918         Always clear RenderLayer backing stores when going into page cache.
1919         <https://webkit.org/b/165901>
1920
1921         Reviewed by Simon Fraser.
1922
1923         * WebView/WebView.mm:
1924         (+[WebView _setCacheModel:]):
1925
1926 2016-12-12  Alex Christensen  <achristensen@webkit.org>
1927
1928         Remove unused workaround for Silverlight
1929         https://bugs.webkit.org/show_bug.cgi?id=165773
1930
1931         Reviewed by Dean Jackson.
1932
1933         * Plugins/WebNetscapePluginView.mm:
1934         (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]): Deleted.
1935         This code was introduced in January 2010.  Microsoft fixed their bug shortly thereafter.
1936         Allowing 6 years for users to update Silverlight is more than enough.
1937         Safari doesn't even use WebKit1 for this any more.
1938         I need this to be removed because this is the only non-WebGL code that needs to link against
1939         the OpenGL framework, and I'm changing how that is done to link only through ANGLE instead.
1940
1941 2016-12-12  Chris Dumez  <cdumez@apple.com>
1942
1943         Document.visibilityState should use an IDL string enumeration
1944         https://bugs.webkit.org/show_bug.cgi?id=165774
1945
1946         Reviewed by Daniel Bates.
1947
1948         * DOM/DOMDocument.mm:
1949         (-[DOMDocument visibilityState]):
1950         * WebView/WebView.mm:
1951         (kit):
1952
1953 2016-12-12  Jer Noble  <jer.noble@apple.com>
1954
1955         Remove implementation of legacy Mozilla-based Fullscreen API.
1956         https://bugs.webkit.org/show_bug.cgi?id=165689
1957         <rdar://problem/29603053>
1958
1959         Reviewed by Eric Carlson.
1960
1961         * DOM/DOMElement.mm:
1962         (-[DOMElement webkitRequestFullScreen:]):
1963
1964 2016-12-10  Filip Pizlo  <fpizlo@apple.com>
1965
1966         The DOM should have an advancing wavefront opaque root barrier
1967         https://bugs.webkit.org/show_bug.cgi?id=165712
1968
1969         Reviewed by Yusuke Suzuki.
1970         
1971         Propagate the JSDOMWindowBase::commonVM() -> commonVM() change.
1972
1973         * Misc/WebCoreStatistics.mm:
1974         (+[WebCoreStatistics javaScriptObjectsCount]):
1975         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1976         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
1977         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1978         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1979         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
1980         (+[WebCoreStatistics shouldPrintExceptions]):
1981         (+[WebCoreStatistics setShouldPrintExceptions:]):
1982         (+[WebCoreStatistics memoryStatistics]):
1983         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
1984         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1985         (identifierFromIdentifierRep):
1986         * Plugins/Hosted/ProxyInstance.mm:
1987         (WebKit::ProxyInstance::getPropertyNames):
1988         * Plugins/WebNetscapePluginStream.mm:
1989         (WebNetscapePluginStream::wantsAllStreams):
1990         * Plugins/WebNetscapePluginView.mm:
1991         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
1992         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
1993         (-[WebNetscapePluginView setWindowIfNecessary]):
1994         (-[WebNetscapePluginView createPluginScriptableObject]):
1995         (-[WebNetscapePluginView getFormValue:]):
1996         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
1997         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
1998         (-[WebNetscapePluginView loadPluginRequest:]):
1999         (-[WebNetscapePluginView _printedPluginBitmap]):
2000         * Plugins/WebPluginController.mm:
2001         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
2002         (-[WebPluginController stopOnePlugin:]):
2003         (-[WebPluginController stopOnePluginForPageCache:]):
2004         (-[WebPluginController destroyOnePlugin:]):
2005         (-[WebPluginController startAllPlugins]):
2006         (-[WebPluginController addPlugin:]):
2007
2008 2016-12-09  Dave Hyatt  <hyatt@apple.com>
2009
2010         [CSS Parser] Remove the old CSS Parser
2011         https://bugs.webkit.org/show_bug.cgi?id=165645
2012
2013         Reviewed by Daniel Bates.
2014
2015         * DOM/DOMCSS.mm:
2016         (kitClass):
2017         * DOM/DOMCSSRule.h:
2018
2019 2016-12-09  Eric Carlson  <eric.carlson@apple.com>
2020
2021         Annotate MediaStream and WebRTC idl with EnabledAtRuntime flag
2022         https://bugs.webkit.org/show_bug.cgi?id=165251
2023
2024         Reviewed by Dean Jackson.
2025
2026         Based on a patch by Dr Alex Gouaillard <agouaillard@gmail.com>
2027
2028         * WebView/WebPreferenceKeysPrivate.h: Add MediaStream and PeerConnection preferences.
2029         * WebView/WebPreferences.mm:
2030         (+[WebPreferences initialize]):
2031         (-[WebPreferences mediaStreamEnabled]):
2032         (-[WebPreferences setMediaStreamEnabled:]):
2033         (-[WebPreferences peerConnectionEnabled]):
2034         (-[WebPreferences setPeerConnectionEnabled:]):
2035         * WebView/WebPreferencesPrivate.h:
2036         * WebView/WebView.mm:
2037         (-[WebView _preferencesChanged:]):
2038
2039 2016-12-09  Ryosuke Niwa  <rniwa@webkit.org>
2040
2041         Don’t expose pointer lock in WebKit1 Objective-C API
2042         https://bugs.webkit.org/show_bug.cgi?id=165692
2043
2044         Reviewed by Simon Fraser.
2045
2046         * DOM/DOMDocument.mm:
2047         (-[DOMDocument pointerLockElement]): Deleted.
2048         (-[DOMDocument exitPointerLock]): Deleted.
2049         * DOM/DOMElement.mm:
2050         (-[DOMElement requestPointerLock]): Deleted.
2051         * DOM/DOMMouseEvent.mm:
2052         (-[DOMMouseEvent movementX]): Deleted.
2053         (-[DOMMouseEvent movementY]): Deleted.
2054
2055 2016-12-09  Ryosuke Niwa  <rniwa@webkit.org>
2056
2057         document.webkitFullscreenElement leaks elements inside a shadow tree
2058         https://bugs.webkit.org/show_bug.cgi?id=158471
2059
2060         Reviewed by Chris Dumez.
2061
2062         Use the API for bindings to avoid exposing nodes inside a shadow tree.
2063
2064         * DOM/DOMDocument.mm:
2065         (-[DOMDocument webkitCurrentFullScreenElement]):
2066         (-[DOMDocument webkitFullscreenElement]):
2067
2068 2016-12-09  Beth Dakin  <bdakin@apple.com>
2069
2070         Password fields should not show the emoji button in TouchBar
2071         https://bugs.webkit.org/show_bug.cgi?id=165673
2072         -and corresponding-
2073         rdar://problem/29235739
2074
2075         Reviewed by Wenson Hsieh.
2076
2077         This patch adds a new ivar for the password touch bar and password 
2078         candidateListTouchBarItem. Since this TouchBar will actually have a different set 
2079         of identifiers than the plain text TouchBar, it should just have its own variable.
2080
2081         The candidate list should be the only item for passwords.
2082         * WebView/WebView.mm:
2083         (-[WebView _passwordTextTouchBarDefaultItemIdentifiers]):
2084
2085         Account for _passwordTextTouchBar.
2086         (-[WebView didChangeAutomaticTextCompletion:]):
2087         (-[WebView setUpTextTouchBar:]):
2088         (-[WebView textTouchBar]):
2089
2090         The empty candidates array is not needed. We can just set @[ ] as the candidates 
2091         for the _passwordTextCandidateListTouchBarItem. Safe guards already exist in the 
2092         other parts of the code to prevent us from requesting or setting other candidates 
2093         when in a password field. 
2094         (-[WebView updateTextTouchBar]):
2095
2096         Account for _passwordTextTouchBar.
2097         (-[WebView candidateList]):
2098         * WebView/WebViewData.h:
2099
2100 2016-12-08  Filip Pizlo  <fpizlo@apple.com>
2101
2102         Enable SharedArrayBuffer, remove the flag
2103         https://bugs.webkit.org/show_bug.cgi?id=165614
2104
2105         Rubber stamped by Geoffrey Garen.
2106
2107         * WebView/WebPreferencesPrivate.h:
2108
2109 2016-12-07  Dean Jackson  <dino@apple.com>
2110
2111         Remove runtime toggle for pointer-lock
2112         https://bugs.webkit.org/show_bug.cgi?id=165577
2113         <rdar://problems/29566996>
2114
2115         Reviewed by Jon Lee.
2116
2117         Remove any runtime calls to check if pointer-lock is enabled. It's
2118         either compiled in or out.
2119
2120         * WebView/WebPreferenceKeysPrivate.h:
2121         * WebView/WebPreferences.mm:
2122         (-[WebPreferences pointerLockEnabled]): Deleted.
2123         (-[WebPreferences setPointerLockEnabled:]): Deleted.
2124         * WebView/WebPreferencesPrivate.h:
2125         * WebView/WebView.mm:
2126         (-[WebView _preferencesChanged:]):
2127
2128 2016-12-06  Alexey Proskuryakov  <ap@apple.com>
2129
2130         Correct SDKROOT values in xcconfig files
2131         https://bugs.webkit.org/show_bug.cgi?id=165487
2132         rdar://problem/29539209
2133
2134         Reviewed by Dan Bernstein.
2135
2136         Fix suggested by Dan Bernstein.
2137
2138         * Configurations/DebugRelease.xcconfig:
2139
2140 2016-12-05  Simon Fraser  <simon.fraser@apple.com>
2141
2142         Improve the behavior of scroll-into-view when the target is inside position:fixed
2143         https://bugs.webkit.org/show_bug.cgi?id=165354
2144
2145         Reviewed by Zalan Bujtas.
2146
2147         Plumb through 'insideFixed'. We don't get compute it, so behavior from
2148         these call sites won't change.
2149
2150         * WebView/WebFrame.mm:
2151         (-[WebFrame _scrollDOMRangeToVisible:]):
2152         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
2153
2154 2016-12-06  Simon Fraser  <simon.fraser@apple.com>
2155
2156         Enable visual viewports by default on Mac, and iOS Wk2
2157         https://bugs.webkit.org/show_bug.cgi?id=165452
2158
2159         Reviewed by Zalan Bujtas.
2160
2161         Turn visual viewports on by default for WK1 on Mac.
2162
2163         * WebView/WebPreferences.mm:
2164         (+[WebPreferences initialize]):
2165
2166 2016-12-05  Dean Jackson  <dino@apple.com>
2167
2168         pointer lock needs to be feature detectable
2169         https://bugs.webkit.org/show_bug.cgi?id=165426
2170         <rdar://problem/29486715>
2171
2172         Reviewed by Antoine Quint.
2173
2174         Set the RuntimeEnabledFeature as preferences
2175         change.
2176
2177         * WebView/WebView.mm:
2178         (-[WebView _preferencesChanged:]):
2179
2180 2016-12-05  Ryan Haddad  <ryanhaddad@apple.com>
2181
2182         Unreviewed, rolling out r209299.
2183
2184         This change appears to have caused LayoutTest failures on
2185         Sierra WK1.
2186
2187         Reverted changeset:
2188
2189         "Improve the behavior of scroll-into-view when the target is
2190         inside position:fixed"
2191         https://bugs.webkit.org/show_bug.cgi?id=165354
2192         http://trac.webkit.org/changeset/209299
2193
2194 2016-12-02  Simon Fraser  <simon.fraser@apple.com>
2195
2196         Improve the behavior of scroll-into-view when the target is inside position:fixed
2197         https://bugs.webkit.org/show_bug.cgi?id=165354
2198
2199         Reviewed by Zalan Bujtas.
2200
2201         Plumb through 'insideFixed'. We don't get compute it, so behavior from
2202         these call sites won't change.
2203
2204         * WebView/WebFrame.mm:
2205         (-[WebFrame _scrollDOMRangeToVisible:]):
2206         (-[WebFrame _scrollDOMRangeToVisible:withInset:]):
2207
2208 2016-12-02  Andy Estes  <aestes@apple.com>
2209
2210         [Cocoa] Adopt the PRODUCT_BUNDLE_IDENTIFIER build setting
2211         https://bugs.webkit.org/show_bug.cgi?id=164492
2212
2213         Reviewed by Dan Bernstein.
2214
2215         * Configurations/WebKitLegacy.xcconfig: Set PRODUCT_BUNDLE_IDENTIFIER to
2216         com.apple.$(PRODUCT_NAME:rfc1034identifier).
2217         * Info.plist: Changed CFBundleIdentifier's value from com.apple.${PRODUCT_NAME} to
2218         ${PRODUCT_BUNDLE_IDENTIFIER}.
2219
2220 2016-12-02  Chris Dumez  <cdumez@apple.com>
2221
2222         Regression(r209252): HTML interactive validation should not be enabled on iOS WK1 yet
2223         https://bugs.webkit.org/show_bug.cgi?id=165328
2224
2225         Reviewed by Simon Fraser.
2226
2227         Only enable HTML interactive form validation on Mac WK1, not iOS WK1.
2228
2229         * WebView/WebViewData.mm:
2230         (-[WebViewPrivate init]):
2231
2232 2016-12-02  Chris Dumez  <cdumez@apple.com>
2233
2234         [Mac][WK1] Implement new HTML interactive form validation user interface
2235         https://bugs.webkit.org/show_bug.cgi?id=164483
2236
2237         Reviewed by Simon Fraser.
2238
2239         Implement new HTML interactive form validation user interface on Mac
2240         WK1 and enable it by default.
2241
2242         * WebCoreSupport/WebValidationMessageClient.h: Added.
2243         * WebCoreSupport/WebValidationMessageClient.mm: Added.
2244         (WebValidationMessageClient::WebValidationMessageClient):
2245         (WebValidationMessageClient::~WebValidationMessageClient):
2246         (WebValidationMessageClient::showValidationMessage):
2247         (WebValidationMessageClient::hideValidationMessage):
2248         (WebValidationMessageClient::isValidationMessageVisible):
2249         * WebView/WebHTMLView.mm:
2250         (-[WebHTMLView _frameOrBoundsChanged]):
2251         * WebView/WebView.mm:
2252         (-[WebView _commonInitializationWithFrameName:groupName:]):
2253         (-[WebView _willStartScrollingOrZooming]):
2254         (-[WebView _contentsOfUserInterfaceItem:]):
2255         (-[WebView _scaleWebView:atOrigin:]):
2256         (-[WebView _didScrollDocumentInFrameView:]):
2257         (-[WebView _setZoomMultiplier:isTextOnly:]):
2258         (-[WebView showFormValidationMessage:withAnchorRect:]):
2259         (-[WebView hideFormValidationMessage]):
2260         * WebView/WebViewData.h:
2261         * WebView/WebViewData.mm:
2262         (-[WebViewPrivate init]):
2263         * WebView/WebViewInternal.h:
2264         * WebView/WebViewPrivate.h:
2265
2266 2016-12-01  Jiewen Tan  <jiewen_tan@apple.com>
2267
2268         Add a runtime flag for SubtleCrypto
2269         https://bugs.webkit.org/show_bug.cgi?id=164982
2270
2271         Reviewed by Brent Fulgham.
2272
2273         * WebView/WebPreferenceKeysPrivate.h:
2274         * WebView/WebPreferences.mm:
2275         (+[WebPreferences initialize]):
2276         (-[WebPreferences subtleCryptoEnabled]):
2277         (-[WebPreferences setSubtleCryptoEnabled:]):
2278         * WebView/WebPreferencesPrivate.h:
2279         * WebView/WebView.mm:
2280         (-[WebView _preferencesChanged:]):
2281
2282 2016-11-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
2283
2284         Add separate settings and preferences to enable/disable async decoding for large images and animated images
2285         https://bugs.webkit.org/show_bug.cgi?id=165177
2286
2287         Reviewed by Simon Fraser.
2288         
2289         Hook up the async image decoding settings for WebKit1.
2290
2291         * WebView/WebPreferenceKeysPrivate.h:
2292         * WebView/WebPreferences.mm:
2293         (+[WebPreferences initialize]):
2294         (-[WebPreferences largeImageAsyncDecodingEnabled]):
2295         (-[WebPreferences setLargeImageAsyncDecodingEnabled:]):
2296         (-[WebPreferences animatedImageAsyncDecodingEnabled]):
2297         (-[WebPreferences setAnimatedImageAsyncDecodingEnabled:]):
2298         (-[WebPreferences asyncImageDecodingEnabled]): Deleted.
2299         (-[WebPreferences setAsyncImageDecodingEnabled:]): Deleted.
2300         * WebView/WebPreferencesPrivate.h:
2301         * WebView/WebView.mm:
2302         (-[WebView _preferencesChanged:]):
2303
2304 2016-11-29  Andy Estes  <aestes@apple.com>
2305
2306         [Cocoa] Enable two clang warnings recommended by Xcode
2307         https://bugs.webkit.org/show_bug.cgi?id=164498
2308
2309         Reviewed by Mark Lam.
2310
2311         * Configurations/Base.xcconfig: Enabled CLANG_WARN_INFINITE_RECURSION and CLANG_WARN_SUSPICIOUS_MOVE.
2312
2313 2016-11-26  Yusuke Suzuki  <utatane.tea@gmail.com>
2314
2315         [WTF] Import std::optional reference implementation as WTF::Optional
2316         https://bugs.webkit.org/show_bug.cgi?id=164199
2317
2318         Reviewed by Saam Barati and Sam Weinig.
2319
2320         Use WTF::Optional::value_or.
2321
2322         * DOM/DOMHTMLOptionsCollection.mm:
2323         (-[DOMHTMLOptionsCollection add:index:]):
2324         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2325         (WebKit::NetscapePluginInstanceProxy::evaluate):
2326         * Plugins/WebNetscapePluginView.mm:
2327         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
2328         * WebCoreSupport/WebFrameLoaderClient.h:
2329         * WebCoreSupport/WebFrameLoaderClient.mm:
2330         (WebFrameLoaderClient::dispatchDidCommitLoad):
2331         * WebCoreSupport/WebPaymentCoordinatorClient.h:
2332         * WebCoreSupport/WebPaymentCoordinatorClient.mm:
2333         (WebPaymentCoordinatorClient::completeShippingMethodSelection):
2334         (WebPaymentCoordinatorClient::completeShippingContactSelection):
2335         (WebPaymentCoordinatorClient::completePaymentMethodSelection):
2336         * WebCoreSupport/WebSecurityOrigin.mm:
2337         (-[WebSecurityOrigin port]):
2338         * WebView/WebHTMLView.mm:
2339         (toAction):
2340         (toTag):
2341
2342 2016-11-26  Sam Weinig  <sam@webkit.org>
2343
2344         Convert IntersectionObserver over to using RuntimeEnabledFeatures so it can be properly excluded from script
2345         https://bugs.webkit.org/show_bug.cgi?id=164965
2346
2347         Reviewed by Simon Fraser.
2348
2349         * WebView/WebPreferenceKeysPrivate.h:
2350         * WebView/WebPreferences.mm:
2351         (-[WebPreferences intersectionObserverEnabled]):
2352         (-[WebPreferences setIntersectionObserverEnabled:]):
2353         * WebView/WebPreferencesPrivate.h:
2354         * WebView/WebView.mm:
2355         (-[WebView _preferencesChanged:]):
2356         Add a preference, defaulting to off, for enabling IntersectionObserver.
2357
2358 2016-11-22  Dan Bernstein  <mitz@apple.com>
2359
2360         [Mac] In Legacy WebKit, pressing an arrow key in editable content doesn’t hide the mouse cursor
2361         https://bugs.webkit.org/show_bug.cgi?id=165036
2362         <rdar://problem/5708580>
2363
2364         Reviewed by Alexey Proskuryakov.
2365
2366         * WebView/WebHTMLView.mm:
2367         (-[WebHTMLView performKeyEquivalent:]): Hide the cursor if WebCore handled the event,
2368           similarly to what we do in -keyDown: and to what WKWebView does with all key events.
2369
2370 2016-11-21  Alex Christensen  <achristensen@webkit.org>
2371
2372         Fix Sierra CMake build after r208452
2373         https://bugs.webkit.org/show_bug.cgi?id=164437
2374
2375         * WebView/WebView.mm:
2376         (-[WebView updateMediaTouchBar]):
2377         I haven't enabled VIDEO_PRESENTATION_MODE in the CMake build yet.
2378         It's needed for playbackSessionInterface to exist.
2379
2380 2016-11-18  Enrica Casucci  <enrica@apple.com>
2381
2382         Refactor drag and drop for WebKit2 to encode DragData message exchange.
2383         https://bugs.webkit.org/show_bug.cgi?id=164945
2384
2385         Reviewed by Tim Horton.
2386
2387         * WebCoreSupport/WebDragClient.h:
2388         * WebCoreSupport/WebDragClient.mm:
2389         (WebDragClient::actionMaskForDrag):
2390         (WebDragClient::willPerformDragDestinationAction):
2391
2392 2016-11-18  Jeremy Jones  <jeremyj@apple.com>
2393
2394         Add runtime flag to enable pointer lock. Enable pointer lock feature for mac.
2395         https://bugs.webkit.org/show_bug.cgi?id=163801
2396
2397         Reviewed by Simon Fraser.
2398
2399         Plumb through PointerLockEnabled setting.
2400
2401         * Configurations/FeatureDefines.xcconfig:
2402         * WebCoreSupport/WebChromeClient.mm:
2403         (WebChromeClient::requestPointerUnlock):
2404         * WebView/WebPreferenceKeysPrivate.h:
2405         * WebView/WebPreferences.mm:
2406         (-[WebPreferences pointerLockEnabled]):
2407         (-[WebPreferences setPointerLockEnabled:]):
2408         * WebView/WebPreferencesPrivate.h:
2409         * WebView/WebView.mm:
2410         (-[WebView _preferencesChanged:]):
2411
2412 2016-11-17  Dan Bernstein  <mitz@apple.com>
2413
2414         Try to fix some non-macOS builds.
2415
2416         * WebView/WebView.mm:
2417
2418 2016-11-16  Dave Hyatt  <hyatt@apple.com>
2419
2420         [CSS Parser] Add @supports, @keyframe and media query parsing options
2421         https://bugs.webkit.org/show_bug.cgi?id=164821
2422
2423         Reviewed by Sam Weinig and Zalan Bujtas.
2424
2425         Fix up the create call now that fallback descriptor syntax is gone.
2426
2427         * DOM/DOM.mm:
2428         (-[DOMHTMLLinkElement _mediaQueryMatches]):
2429
2430 2016-11-17  Saam Barati  <sbarati@apple.com>
2431
2432         Remove async/await compile time flag and enable tests
2433         https://bugs.webkit.org/show_bug.cgi?id=164828
2434         <rdar://problem/28639334>
2435
2436         Reviewed by Yusuke Suzuki.
2437
2438         * Configurations/FeatureDefines.xcconfig:
2439
2440 2016-11-17  Yusuke Suzuki  <utatane.tea@gmail.com>
2441
2442         [JSC] WTF::TemporaryChange with WTF::SetForScope
2443         https://bugs.webkit.org/show_bug.cgi?id=164761
2444
2445         Reviewed by Saam Barati.
2446
2447         * WebView/WebView.mm:
2448         (-[WebView updateTextTouchBar]):
2449
2450 2016-11-16  Yusuke Suzuki  <utatane.tea@gmail.com>
2451
2452         [ES6][WebCore] Change ES6_MODULES compile time flag to runtime flag
2453         https://bugs.webkit.org/show_bug.cgi?id=164827
2454
2455         Reviewed by Ryosuke Niwa.
2456
2457         * Configurations/FeatureDefines.xcconfig:
2458         * WebView/WebPreferenceKeysPrivate.h:
2459         * WebView/WebPreferences.mm:
2460         (+[WebPreferences initialize]):
2461         (-[WebPreferences es6ModulesEnabled]):
2462         (-[WebPreferences setES6ModulesEnabled:]):
2463         * WebView/WebPreferencesPrivate.h:
2464         * WebView/WebView.mm:
2465         (-[WebView _preferencesChanged:]):
2466
2467 2016-11-14  Alex Christensen  <achristensen@webkit.org>
2468
2469         Move SecurityOrigin::createFromDatabaseIdentifier to SecurityOriginData
2470         https://bugs.webkit.org/show_bug.cgi?id=164720
2471
2472         Reviewed by Brady Eidson.
2473
2474         * Storage/WebDatabaseManager.mm:
2475         (-[WebDatabaseManager origins]):
2476         (-[WebDatabaseManager databasesWithOrigin:]):
2477         (-[WebDatabaseManager deleteOrigin:]):
2478         (-[WebDatabaseManager deleteDatabase:withOrigin:]):
2479         * Storage/WebDatabaseManagerClient.h:
2480         * Storage/WebDatabaseManagerClient.mm:
2481         (DidModifyOriginData::dispatchToMainThread):
2482         (DidModifyOriginData::DidModifyOriginData):
2483         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
2484         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
2485         * Storage/WebDatabaseQuotaManager.mm:
2486         (-[WebDatabaseQuotaManager usage]):
2487         (-[WebDatabaseQuotaManager quota]):
2488         (-[WebDatabaseQuotaManager setQuota:]):
2489         * Storage/WebStorageManager.mm:
2490         (-[WebStorageManager origins]):
2491         (-[WebStorageManager deleteOrigin:]):
2492         * Storage/WebStorageTrackerClient.h:
2493         * Storage/WebStorageTrackerClient.mm:
2494         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2495         * WebCoreSupport/WebSecurityOrigin.mm:
2496         (-[WebSecurityOrigin usage]):
2497         (-[WebSecurityOrigin quota]):
2498         (-[WebSecurityOrigin setQuota:]):
2499
2500 2016-11-13  Darin Adler  <darin@apple.com>
2501
2502         Fix exception handling in SQL database code, streamline and update code
2503         https://bugs.webkit.org/show_bug.cgi?id=164685
2504
2505         Reviewed by Sam Weinig.
2506
2507         * Storage/WebDatabaseManager.mm:
2508         (-[WebDatabaseManager origins]): Updated to use DatabaseTracker and pass
2509         a reference.
2510         (-[WebDatabaseManager databasesWithOrigin:]): Ditto.
2511         (-[WebDatabaseManager detailsForDatabase:withOrigin:]): Pass reference,
2512         but continue to use DatabaseManager.
2513         (-[WebDatabaseManager deleteOrigin:]): Use DatabaseTracker and pass a
2514         reference.
2515         (-[WebDatabaseManager deleteDatabase:withOrigin:]): Ditto.
2516
2517         * Storage/WebDatabaseManagerClient.h: Updated to take references.
2518         * Storage/WebDatabaseManagerClient.mm:
2519         (WebDatabaseManagerClient::WebDatabaseManagerClient): Initialize data
2520         members in the class definition.
2521         (DidModifyOriginData::dispatchToMainThread): Take references.
2522         (DidModifyOriginData::DidModifyOriginData): Ditto.
2523         (WebDatabaseManagerClient::dispatchDidModifyOrigin): Ditto.
2524         (WebDatabaseManagerClient::dispatchDidModifyDatabase): Ditto.
2525         (WebDatabaseManagerClient::dispatchDidAddNewOrigin): Ditto. Also use
2526         DatabaseTracker::singleton instead of tracker.
2527
2528         * Storage/WebDatabaseQuotaManager.mm:
2529         (-[WebDatabaseQuotaManager initWithOrigin:]): Reject nil pointer argument.
2530         (-[WebDatabaseQuotaManager usage]): Use reference instead of pointer.
2531         (-[WebDatabaseQuotaManager quota]): Ditto.
2532         (-[WebDatabaseQuotaManager setQuota:]): Ditto.
2533         * WebCoreSupport/WebSecurityOrigin.mm:
2534         (-[WebSecurityOrigin initWithURL:]): Tweaked code a bit.
2535         (-[WebSecurityOrigin usage]): Use DatabaseTracker and pass a reference.
2536         (-[WebSecurityOrigin quota]): Ditto.
2537         (-[WebSecurityOrigin setQuota:]): Ditto.
2538         * WebView/WebFrame.mm:
2539         (-[WebFrame _cacheabilityDictionary]): Pass a reference.
2540
2541 2016-11-12  Darin Adler  <darin@apple.com>
2542
2543         Remove a few assorted uses of ExceptionCode
2544         https://bugs.webkit.org/show_bug.cgi?id=164683
2545
2546         Reviewed by Chris Dumez.
2547
2548         * DOM/DOMDOMImplementation.mm:
2549         (-[DOMImplementation createDocumentType:publicId:systemId:]):
2550         Use raiseOnDOMError instead of much longer hand written equivalent.
2551         (-[DOMImplementation createDocument:qualifiedName:doctype:]): Ditto.
2552
2553         * DOM/DOMDocument.mm:
2554         (-[DOMDocument createEntityReference:]): Use raiseNotSupportedErrorException
2555         so we are not using a specific exception code.
2556
2557         * DOM/DOMHTMLOptionsCollection.mm:
2558         (-[DOMHTMLOptionsCollection add:index:]): Use raiseOnDOMError instead of
2559         much longer hand written equivalent.
2560         * DOM/DOMHTMLSelectElement.mm:
2561         (-[DOMHTMLSelectElement add:before:]): Ditto. Also removed unneeded return
2562         statement after calling a "no return" function.
2563
2564         * DOM/ExceptionHandlers.h: Removed overloads of raiseDOMException and
2565         raiseOnDOMError functions that take ExceptionCode; keep the ones that take
2566         Exception and ExceptionOr. Renamed the other overload of raiseDOMException
2567         to raiseDOMErrorException; it is only used as the non-inline implementation
2568         part of the inline raiseOnDOMError function.
2569         * DOM/ExceptionHandlers.mm:
2570         (raiseDOMErrorException): Renamed. Made the ExceptionCode overload be local
2571         to this source file instead of in the header.
2572         (raiseTypeErrorException): Updated for name change.
2573         (raiseNotSupportedErrorException): Added.
2574
2575 2016-11-11  Ryosuke Niwa  <rniwa@webkit.org>
2576
2577         Hovering over a slotted Text node clears hover state
2578         https://bugs.webkit.org/show_bug.cgi?id=164002
2579         <rdar://problem/29040471>
2580
2581         Reviewed by Simon Fraser.
2582
2583         * WebView/WebImmediateActionController.mm:
2584         (-[WebImmediateActionController performHitTestAtPoint:]):
2585
2586 2016-11-11  Wenson Hsieh  <wenson_hsieh@apple.com>
2587
2588         [WK2] autocorrect and autocapitalize attributes do not work in contenteditable elements
2589         https://bugs.webkit.org/show_bug.cgi?id=164538
2590         <rdar://problem/8418711>
2591
2592         Reviewed by Ryosuke Niwa.
2593
2594         Account for renaming HTMLElement::autocorrect to HTMLElement::shouldAutocorrect, as well as moving
2595         WebAutocapitalizeType to WebKit from WebCore. Additionally, moves the -autocorrect and -autocapitalize SPIs out
2596         of HTML(Input|Form|TextArea)ElementPrivate.h and into HTMLElementPrivate.h. This also means removing redundant
2597         code for interfacing with the unwrapped HTMLElement's autocorrect and autocapitalize attributes.
2598
2599         * DOM/DOMHTML.mm:
2600         (webAutocapitalizeType):
2601         (-[DOMHTMLInputElement _autocapitalizeType]):
2602         (-[DOMHTMLTextAreaElement _autocapitalizeType]):
2603         * DOM/DOMHTMLElement.mm:
2604         (-[DOMHTMLElement autocorrect]):
2605         (-[DOMHTMLElement setAutocorrect:]):
2606         (-[DOMHTMLElement autocapitalize]):
2607         (-[DOMHTMLElement setAutocapitalize:]):
2608         * DOM/DOMHTMLElementPrivate.h: Copied from Source/WebCore/html/Autocapitalize.h.
2609         * DOM/DOMHTMLFormElement.mm:
2610         (-[DOMHTMLFormElement autocorrect]): Deleted.
2611         (-[DOMHTMLFormElement setAutocorrect:]): Deleted.
2612         (-[DOMHTMLFormElement autocapitalize]): Deleted.
2613         (-[DOMHTMLFormElement setAutocapitalize:]): Deleted.
2614         * DOM/DOMHTMLInputElement.mm:
2615         (-[DOMHTMLInputElement autocorrect]): Deleted.
2616         (-[DOMHTMLInputElement setAutocorrect:]): Deleted.
2617         (-[DOMHTMLInputElement autocapitalize]): Deleted.
2618         (-[DOMHTMLInputElement setAutocapitalize:]): Deleted.
2619         * DOM/DOMHTMLInputElementPrivate.h:
2620         * DOM/DOMHTMLTextAreaElement.mm:
2621         (-[DOMHTMLTextAreaElement autocorrect]): Deleted.
2622         (-[DOMHTMLTextAreaElement setAutocorrect:]): Deleted.
2623         (-[DOMHTMLTextAreaElement autocapitalize]): Deleted.
2624         (-[DOMHTMLTextAreaElement setAutocapitalize:]): Deleted.
2625         * DOM/DOMHTMLTextAreaElementPrivate.h:
2626
2627         We need to import DOMHTMLElementPrivate.h here to avoid breaking UIKit. We should follow this up with a UIKit
2628         change to import DOMHTMLElementPrivate.h directly.
2629
2630         * DOM/DOMPrivate.h:
2631         * DOM/WebAutocapitalizeTypes.h: Copied from Tools/WebKitTestRunner/ios/UIKitSPI.h.
2632         * MigrateHeaders.make:
2633
2634 2016-11-11  Beth Dakin  <bdakin@apple.com>
2635
2636         Move to modern TouchBar methods
2637         https://bugs.webkit.org/show_bug.cgi?id=164655
2638         -and corresponding-
2639         rdar://problem/29226911
2640
2641         Reviewed by Wenson Hsieh.
2642
2643         customizationDefaultItemIdentifiers -> defaultItemIdentifiers
2644         itemIdentifiers -> defaultItemIdentifiers
2645         defaultItems -> templateItems
2646
2647         * WebView/WebView.mm:
2648         (-[WebView _plainTextTouchBarDefaultItemIdentifiers]):
2649         (-[WebView _richTextTouchBarDefaultItemIdentifiers]):
2650         (-[WebView setUpTextTouchBar:]):
2651         (-[WebView updateTextTouchBar]):
2652         (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
2653         (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]): Deleted.
2654
2655 2016-11-11  Darin Adler  <darin@apple.com>
2656
2657         Move Node from ExceptionCode to ExceptionOr
2658         https://bugs.webkit.org/show_bug.cgi?id=164515
2659
2660         Reviewed by Sam Weinig.
2661
2662         * DOM/DOMHTMLSelectElement.mm:
2663         (-[DOMHTMLSelectElement remove:]): Call remove instead of removeByIndex
2664         now that it was renamed.
2665         * DOM/DOMNode.mm:
2666         (-[DOMNode setNodeValue:]): Updated exception handling.
2667         (-[DOMNode setPrefix:]): Ditto.
2668         (-[DOMNode setTextContent:]): Ditto.
2669         (-[DOMNode insertBefore:refChild:]): Ditto.
2670         (-[DOMNode replaceChild:oldChild:]): Ditto.
2671         (-[DOMNode removeChild:]): Ditto.
2672         (-[DOMNode appendChild:]): Ditto.
2673         (-[DOMNode cloneNode:]): Ditto.
2674
2675 2016-11-11  Beth Dakin  <bdakin@apple.com>
2676
2677         Get touch bar code building for open source builds
2678         https://bugs.webkit.org/show_bug.cgi?id=164610
2679
2680         Reviewed by Wenson Hsieh.
2681
2682         * WebKitPrefix.h:
2683
2684 2016-11-10  Alex Christensen  <achristensen@webkit.org>
2685
2686         Fix assertion after r208534.
2687         https://bugs.webkit.org/show_bug.cgi?id=160497
2688
2689         * WebView/WebView.mm:
2690         (-[WebView _commonInitializationWithFrameName:groupName:]):
2691         (WebInstallMemoryPressureHandler):
2692         WebInstallMemoryPressureHandler can be called before [WebView initWithFrame:frameName:groupName:]
2693         When this happens, we should use the same std::once_flag to make sure we install the MemoryPressureHandler::singleton
2694         only once, otherwise we get an assertion !m_installed in MemoryPressureHandler::setLowMemoryHandler.
2695
2696 2016-11-10  Alex Christensen  <achristensen@webkit.org>
2697
2698         Move SecurityOrigin::databaseIdentifier() to SecurityOriginData
2699         https://bugs.webkit.org/show_bug.cgi?id=164573
2700
2701         Reviewed by Brady Eidson.
2702
2703         * WebCoreSupport/WebSecurityOrigin.mm:
2704         (-[WebSecurityOrigin databaseIdentifier]):
2705
2706 2016-10-14  Carlos Garcia Campos  <cgarcia@igalia.com>
2707
2708         MemoryPressureHandler shouldn't know how to release WebCore memory
2709         https://bugs.webkit.org/show_bug.cgi?id=160497
2710
2711         Reviewed by Michael Catanzaro.
2712
2713         Set the low memory handler before installing the memory pressure handler.
2714
2715         * WebView/WebView.mm:
2716         (-[WebView _commonInitializationWithFrameName:groupName:]):
2717
2718 2016-11-09  Ryosuke Niwa  <rniwa@webkit.org>
2719
2720         WebHTMLView's _attributeStringFromDOMRange should use HTMLConverter instead of NSAttributedString's _initWithDOMRange
2721         https://bugs.webkit.org/show_bug.cgi?id=164501
2722         <rdar://problem/29152282>
2723
2724         Reviewed by Sam Weinig.
2725
2726         Align what [WebHTMLView attributedString] returns to what would be used on copy & paste by using HTMLConverter
2727         instead of _initWithDOMRange in [WebHTMLView _attributeStringFromDOMRange].
2728
2729         * WebView/WebHTMLView.mm:
2730         (-[WebHTMLView _attributedStringFromDOMRange:]): Renamed from _attributeStringFromDOMRange.
2731         (-[WebHTMLView attributedString]):
2732         (-[WebHTMLView selectedAttributedString]):
2733         (-[WebHTMLView selectedString]): Moved to reduce the number of occurrences of the if-defs.
2734
2735 2016-11-04  Brent Fulgham  <bfulgham@apple.com>
2736
2737         Local HTML should be blocked from localStorage access unless "Disable Local File Restrictions" is checked
2738         https://bugs.webkit.org/show_bug.cgi?id=155185
2739         <rdar://problem/11101440>
2740
2741         Reviewed by Brady Eidson.
2742
2743         Provide SPI to access the new quirk for localStorage. The quirk defaults to 'on'. When active, this
2744         quirk says that localStorage access should be granted, without needing to grant universal file access.
2745
2746         If the quirk is turned off, then localStorage is blocked unless the WebKit client explicitly
2747         grants universal file access.
2748
2749         * WebView/WebPreferenceKeysPrivate.h:
2750         * WebView/WebPreferences.mm:
2751         (-[WebPreferences needsLocalStorageQuirk]): Added.
2752         (-[WebPreferences setNeedsLocalStorageQuirk:]): Added.
2753         * WebView/WebPreferencesPrivate.h:
2754         * WebView/WebView.mm:
2755         (-[WebView _preferencesChanged:]): Honor the new localStorage quirk.
2756
2757 2016-11-09  Alex Christensen  <achristensen@webkit.org>
2758
2759         Clean up Storage code
2760         https://bugs.webkit.org/show_bug.cgi?id=164562
2761
2762         Reviewed by Brady Eidson.
2763
2764         * Storage/WebStorageManager.mm:
2765         (-[WebStorageManager origins]):
2766         (-[WebStorageManager deleteAllOrigins]):
2767         (-[WebStorageManager deleteOrigin:]):
2768         (-[WebStorageManager diskUsageForOrigin:]):
2769         (-[WebStorageManager syncLocalStorage]):
2770         (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
2771         (+[WebStorageManager setStorageDatabaseIdleInterval:]):
2772         (+[WebStorageManager closeIdleLocalStorageDatabases]):
2773         (WebKitInitializeStorageIfNecessary):
2774         * WebView/WebView.mm:
2775         (+[WebView _applicationWillTerminate]):
2776
2777 2016-11-09  Beth Dakin  <bdakin@apple.com>
2778
2779         Another attempted build fix.
2780
2781         * WebView/WebView.mm:
2782
2783 2016-11-09  Beth Dakin  <bdakin@apple.com>
2784
2785         Attempted build fix.
2786
2787         * WebView/WebView.mm:
2788
2789 2016-11-09  Darin Adler  <darin@apple.com>
2790
2791         Move Range from ExceptionCode to ExceptionOr
2792         https://bugs.webkit.org/show_bug.cgi?id=164457
2793
2794         Reviewed by Alex Christensen.
2795
2796         * DOM/DOMRange.mm:
2797         (-[DOMRange setStart:offset:]): Updated exception handling.
2798         (-[DOMRange setEnd:offset:]): Ditto.
2799         (-[DOMRange setStartBefore:]): Ditto.
2800         (-[DOMRange setStartAfter:]): Ditto.
2801         (-[DOMRange setEndBefore:]): Ditto.
2802         (-[DOMRange setEndAfter:]): Ditto.
2803         (-[DOMRange selectNode:]): Ditto.
2804         (-[DOMRange selectNodeContents:]): Ditto.
2805         (-[DOMRange compareBoundaryPoints:sourceRange:]): Ditto.
2806         (-[DOMRange deleteContents]): Ditto.
2807         (-[DOMRange extractContents]): Ditto.
2808         (-[DOMRange cloneContents]): Ditto.
2809         (-[DOMRange insertNode:]): Ditto.
2810         (-[DOMRange surroundContents:]): Ditto.
2811         (-[DOMRange createContextualFragment:]): Ditto.
2812         (-[DOMRange compareNode:]): Ditto.
2813         (-[DOMRange intersectsNode:]): Ditto.
2814         (-[DOMRange comparePoint:offset:]): Ditto.
2815         (-[DOMRange isPointInRange:offset:]): Ditto.
2816         (-[DOMRange expand:]): Ditto.
2817         * WebView/WebFrame.mm:
2818         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]): Ditto.
2819         (-[WebFrame _smartDeleteRangeForProposedRange:]): Deleted.
2820         This function was incorrectly implemented (set both start and end of
2821         the range to the computed start), not declared in any header file,
2822         not used anywhere inside WebKit, and I also could not find a use of it
2823         in outside-WebKit Apple code.
2824         * mac/DOM/DOMUIKitExtensions.mm:
2825         (-[DOMRange move:inDirection:]): Ditto.
2826         (-[DOMRange extend:inDirection:]): Ditto.
2827
2828 2016-11-09  Darin Adler  <darin@apple.com>
2829
2830         Move EventTarget from ExceptionCode to ExceptionOr
2831         https://bugs.webkit.org/show_bug.cgi?id=164465
2832
2833         Reviewed by Youenn Fablet.
2834
2835         * DOM/DOMNode.mm:
2836         (-[DOMNode dispatchEvent:]): Updated exception handling.
2837
2838 2016-11-09  Chris Dumez  <cdumez@apple.com>
2839
2840         [Mac] Stop using deprecated AppKit enumeration values
2841         https://bugs.webkit.org/show_bug.cgi?id=164494
2842
2843         Reviewed by Darin Adler.
2844
2845         Stop using deprecated AppKit enumeration values.
2846
2847         * Carbon/CarbonWindowAdapter.mm:
2848         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]):
2849         (-[CarbonWindowAdapter sendSuperEvent:]):
2850         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2851         (WebKit::NetscapePluginHostProxy::beginModal):
2852         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2853         (WebKit::NetscapePluginInstanceProxy::syntheticKeyDownWithCommandModifier):
2854         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2855         (-[WebHostedNetscapePluginView drawRect:]):
2856         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
2857         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
2858         * WebCoreSupport/PopupMenuMac.mm:
2859         (PopupMenuMac::populate):
2860         (PopupMenuMac::show):
2861         * WebCoreSupport/WebContextMenuClient.mm:
2862         (WebContextMenuClient::showContextMenu):
2863         * WebCoreSupport/WebFrameLoaderClient.mm:
2864         (WebFrameLoaderClient::actionDictionary):
2865         * WebCoreSupport/WebInspectorClient.mm:
2866         (WebInspectorFrontendClient::canAttach):
2867         (-[WebInspectorWindowController window]):
2868         * WebInspector/WebNodeHighlight.mm:
2869         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2870         * WebView/WebFrameView.mm:
2871         (-[WebFrameView keyDown:keyDown:]):
2872         * WebView/WebFullScreenController.mm:
2873         (-[WebFullScreenController init]):
2874         (createBackgroundFullscreenWindow):
2875         * WebView/WebHTMLView.mm:
2876         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2877         (-[WebHTMLView _setMouseDownEvent:_setMouseDownEvent:]):
2878         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2879         (isQuickLookEvent):
2880         (-[WebHTMLView hitTest:]):
2881         (-[WebHTMLView _sendToolTipMouseExited]):
2882         (-[WebHTMLView _sendToolTipMouseEntered]):
2883         (mouseEventIsPartOfClickOrDrag):
2884         (-[WebHTMLView _updateMouseoverWithEvent:]):
2885         (-[WebHTMLView _autoscroll]):
2886         (-[WebHTMLView acceptsFirstResponder]):
2887         (-[WebHTMLView viewDidMoveToWindow]):
2888         (-[WebHTMLView mouseDown:mouseDown:]):
2889         (currentKeyboardEvent):
2890         (-[WebHTMLView _handleStyleKeyEquivalent:]):
2891         (-[WebHTMLView _interpretKeyEvent:savingCommands:]):
2892         * WebView/WebPDFView.mm:
2893         (-[WebPDFView hitTest:]):
2894         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2895         (-[WebPDFView _fakeKeyEventWithFunctionKey:]):
2896         * WebView/WebTextCompletionController.mm:
2897         (-[WebTextCompletionController _buildUI]):
2898         (-[WebTextCompletionController _placePopupWindow:]):
2899         * WebView/WebView.mm:
2900         (-[WebView applicationFlags:]):
2901
2902 2016-11-09  Beth Dakin  <bdakin@apple.com>
2903
2904         Support TouchBar in WebKit
2905         https://bugs.webkit.org/show_bug.cgi?id=164437
2906         -and corresponding-
2907         rdar://problem/28876524
2908
2909         Reviewed by Darin Adler.
2910
2911         * WebCoreSupport/WebEditorClient.mm:
2912         (WebEditorClient::respondToChangedSelection):
2913         (WebEditorClient::updateEditorStateAfterLayoutIfEditabilityChanged):
2914         * WebView/WebHTMLView.mm:
2915         (-[WebHTMLView candidateListTouchBarItem]):
2916         * WebView/WebView.mm:
2917         (-[_WebTextListTouchBarViewController initWithWebView:]):
2918         (-[_WebTextListTouchBarViewController _selectList:]):
2919         (-[_WebTextListTouchBarViewController setCurrentListType:]):
2920         (-[WebTextTouchBarItemController initWithWebView:]):
2921         (-[WebTextTouchBarItemController itemForIdentifier:]):
2922         (-[WebTextTouchBarItemController webTextListTouchBarViewController]):
2923         (-[WebTextTouchBarItemController setTextIsBold:]):
2924         (-[WebTextTouchBarItemController setTextIsItalic:]):
2925         (-[WebTextTouchBarItemController setTextIsUnderlined:]):
2926         (-[WebTextTouchBarItemController _webChangeTextStyle:]):
2927         (-[WebTextTouchBarItemController setCurrentTextAlignment:]):
2928         (-[WebTextTouchBarItemController _webChangeTextAlignment:]):
2929         (-[WebTextTouchBarItemController textColor]):
2930         (-[WebTextTouchBarItemController setTextColor:]):
2931         (-[WebTextTouchBarItemController _webChangeColor:]):
2932         (-[WebTextTouchBarItemController textListViewController]):
2933         (-[WebView _commonInitializationWithFrameName:groupName:]):
2934         (-[WebView showCandidates:forString:inRect:forSelectedRange:view:completionHandler:]):
2935         (-[WebView shouldRequestCandidates]):
2936         (-[WebView forceRequestCandidatesForTesting]):
2937         (-[WebView makeTouchBar]):
2938         (-[WebView touchBar:makeItemForIdentifier:]):
2939         (textCheckingResultFromNSTextCheckingResult):
2940         (-[WebView candidateListTouchBarItem:endSelectingCandidateAtIndex:]):
2941         (-[WebView candidateListTouchBarItem:changedCandidateListVisibility:]):
2942         (-[WebView _setUpPlaybackControlsManagerForMediaElement:]):
2943         (-[WebView _clearPlaybackControlsManager]):
2944         (-[WebView _dismissTextTouchBarPopoverItemWithIdentifier:]):
2945         (-[WebView _textTouchBarCustomizationAllowedIdentifiers]):
2946         (-[WebView _plainTextTouchBarCustomizationDefaultItemIdentifiers]):
2947         (-[WebView _richTextTouchBarCustomizationDefaultItemIdentifiers]):
2948         (-[WebView touchBarDidExitCustomization:]):
2949         (-[WebView touchBarWillEnterCustomization:]):
2950         (-[WebView didChangeAutomaticTextCompletion:]):
2951         (-[WebView setUpTextTouchBar:]):
2952         (-[WebView _isRichlyEditable]):
2953         (-[WebView textTouchBar]):
2954         (-[WebView updateTextTouchBar]):
2955         (-[WebView updateMediaTouchBar]):
2956         (-[WebView updateTouchBar]):
2957         (-[WebView prepareForMouseDown]):
2958         (-[WebView prepareForMouseUp]):
2959         (-[WebView webViewAdditionsWillDestroyView]):
2960         (-[WebView candidateList]):
2961         (-[WebView updateWebViewAdditions]): Deleted.
2962         * WebView/WebViewData.h:
2963         * WebView/WebViewInternal.h:
2964         * WebView/WebViewPrivate.h:
2965
2966 2016-11-04  Wenson Hsieh  <wenson_hsieh@apple.com>
2967
2968         Safari does not emit composition end if blurred for dead key / Japanese IME
2969         https://bugs.webkit.org/show_bug.cgi?id=164369
2970         <rdar://problem/29050439>
2971
2972         Reviewed by Ryosuke Niwa.
2973
2974         When canceling a composition, make sure that we clear the system IME state.
2975
2976         * WebCoreSupport/WebEditorClient.h:
2977         * WebCoreSupport/WebEditorClient.mm:
2978         (WebEditorClient::canceledComposition):
2979
2980 2016-11-04  Said Abou-Hallawa  <sabouhallawa@apple.com>
2981
2982         Add a setting and preferences to enable/disable async image decoding
2983         https://bugs.webkit.org/show_bug.cgi?id=164417
2984
2985         Reviewed by Simon Fraser.
2986
2987         Hook up the asyncImageDecodingEnabled setting for WebKit1.
2988
2989         * WebView/WebPreferenceKeysPrivate.h:
2990         * WebView/WebPreferences.mm:
2991         (+[WebPreferences initialize]):
2992         (-[WebPreferences asyncImageDecodingEnabled]):
2993         (-[WebPreferences setAsyncImageDecodingEnabled:]):
2994         * WebView/WebPreferencesPrivate.h:
2995         * WebView/WebView.mm:
2996         (-[WebView _preferencesChanged:]):
2997
2998 2016-11-01  Alex Christensen  <achristensen@webkit.org>
2999
3000         Remove PassRefPtr from DumpRenderTree
3001         https://bugs.webkit.org/show_bug.cgi?id=164307
3002
3003         Reviewed by Sam Weinig.
3004
3005         * WebView/WebGeolocationPosition.mm:
3006         (-[WebGeolocationPosition initWithGeolocationPosition:]):
3007
3008 2016-11-02  Romain Bellessort  <romain.bellessort@crf.canon.fr>
3009
3010         [Readable Streams API] Enable creation of ReadableByteStreamController
3011         https://bugs.webkit.org/show_bug.cgi?id=164014
3012
3013         Reviewed by Youenn Fablet.
3014
3015         Added flag for the byte stream part of Readable Streams API.
3016
3017         * Configurations/FeatureDefines.xcconfig:
3018
3019 2016-11-01  Ryosuke Niwa  <rniwa@webkit.org>
3020
3021         Remove CUSTOM_ELEMENTS build flag
3022         https://bugs.webkit.org/show_bug.cgi?id=164267
3023
3024         Reviewed by Antti Koivisto.
3025
3026         Removed the build flag.
3027
3028         * Configurations/FeatureDefines.xcconfig:
3029         * WebView/WebPreferences.mm:
3030         (+[WebPreferences initialize]):
3031         * WebView/WebView.mm:
3032         (-[WebView _preferencesChanged:]):
3033
3034 2016-11-01  Eric Carlson  <eric.carlson@apple.com>
3035
3036         [MediaStream] restrict media capture secure connections
3037         https://bugs.webkit.org/show_bug.cgi?id=164234
3038         <rdar://problem/28944906>
3039
3040         Reviewed by Alex Christensen.
3041
3042         * WebView/WebPreferenceKeysPrivate.h:
3043         * WebView/WebPreferences.mm:
3044         (+[WebPreferences initialize]): Initialize WebKitMediaCaptureRequiresSecureConnectionPreferenceKey.
3045         (-[WebPreferences mediaCaptureRequiresSecureConnection]): New.
3046         (-[WebPreferences setMediaCaptureRequiresSecureConnection:]): New.
3047         * WebView/WebPreferencesPrivate.h:
3048
3049         * WebView/WebView.mm:
3050         (-[WebView _preferencesChanged:]): Sync mediaCaptureRequiresSecureConnection.
3051
3052 2016-10-29  Filip Pizlo  <fpizlo@apple.com>
3053
3054         JSC should support SharedArrayBuffer
3055         https://bugs.webkit.org/show_bug.cgi?id=163986
3056
3057         Reviewed by Keith Miller.
3058         
3059         Support the RuntimeFlag.
3060
3061         * WebView/WebPreferencesPrivate.h:
3062
3063 2016-10-31  Wenson Hsieh  <wenson_hsieh@apple.com>
3064
3065         [WK1] Candidate visibility should not update as a result of selection during a dictionary lookup
3066         https://bugs.webkit.org/show_bug.cgi?id=164236
3067         <rdar://problem/28747712>
3068
3069         Reviewed by Beth Dakin.
3070
3071         See WebCore ChangeLog for more detail. Sets the Editor's isGettingDictionaryPopupInfo state to true during a
3072         dictionary lookup.
3073
3074         * WebCoreSupport/WebEditorClient.mm:
3075         (WebEditorClient::respondToChangedSelection):
3076         * WebView/WebImmediateActionController.mm:
3077         (+[WebImmediateActionController _dictionaryPopupInfoForRange:inFrame:withLookupOptions:indicatorOptions:transition:]):
3078
3079 2016-10-31  Darin Adler  <darin@apple.com>
3080
3081         Move ChildNode and ParentNode from ExceptionCode to Exception, add support for ExceptionOr<T&>
3082         https://bugs.webkit.org/show_bug.cgi?id=164214
3083
3084         Reviewed by Alex Christensen.
3085
3086         * DOM/DOMCSSPrimitiveValue.mm:
3087         (-[DOMCSSPrimitiveValue getCounterValue]): Updated since return value
3088         is a reference now.
3089         (-[DOMCSSPrimitiveValue getRectValue]): Ditto.
3090
3091         * DOM/DOMDocument.mm:
3092         (-[DOMDocument querySelector:]): Updated exception handling.
3093         (-[DOMDocument querySelectorAll:]): Ditto.
3094         * DOM/DOMDocumentFragment.mm:
3095         (-[DOMDocumentFragment querySelector:]): Ditto.
3096         (-[DOMDocumentFragment querySelectorAll:]): Ditto.
3097         * DOM/DOMElement.mm:
3098         (-[DOMElement querySelector:]): Ditto.
3099         (-[DOMElement querySelectorAll:]): Ditto.
3100
3101 2016-10-31  Darin Adler  <darin@apple.com>
3102
3103         Convert Document from ExceptionCode to Exception
3104         https://bugs.webkit.org/show_bug.cgi?id=164212
3105
3106         Reviewed by Alex Christensen.
3107
3108         * DOM/DOMDocument.mm:
3109         (-[DOMDocument setXmlVersion:]): Updated exception handling.
3110         (-[DOMDocument cookie]): Ditto.
3111         (-[DOMDocument setCookie:]): Ditto.
3112         (-[DOMDocument setBody:]): Ditto.
3113         (-[DOMDocument createElement:]): Ditto.
3114         (-[DOMDocument createCDATASection:]): Ditto.
3115         (-[DOMDocument createProcessingInstruction:data:]): Ditto.
3116         (-[DOMDocument createAttribute:]): Ditto.
3117         (-[DOMDocument createEntityReference:]): Ditto.
3118         (-[DOMDocument importNode:deep:]): Ditto.
3119         (-[DOMDocument createElementNS:qualifiedName:]): Ditto.
3120         (-[DOMDocument createAttributeNS:qualifiedName:]): Ditto.
3121         (-[DOMDocument getElementsByTagNameNS:localName:]): Ditto.
3122         (-[DOMDocument adoptNode:]): Ditto.
3123         (-[DOMDocument createEvent:]): Ditto.
3124
3125 2016-10-30  Darin Adler  <darin@apple.com>
3126
3127         Move Element, NamedNodeMap, and DOMStringMap from ExceptionCode to Exception
3128         https://bugs.webkit.org/show_bug.cgi?id=164206
3129
3130         Reviewed by Chris Dumez.
3131
3132         * DOM/DOMElement.mm:
3133         (-[DOMElement setInnerHTML:]): Updated exception handling.
3134         (-[DOMElement setOuterHTML:]): Ditto.
3135         (-[DOMElement setAttribute:value:]): Ditto.
3136         (-[DOMElement setAttributeNode:]): Ditto.
3137         (-[DOMElement removeAttributeNode:]): Ditto.
3138         (-[DOMElement setAttributeNS:qualifiedName:value:]): Ditto.
3139         (-[DOMElement setAttributeNodeNS:]): Ditto.
3140         (-[DOMElement matches:]): Ditto.
3141         (-[DOMElement closest:]): Ditto.
3142         (-[DOMElement webkitMatchesSelector:]): Ditto.
3143         * DOM/DOMHTMLElement.mm:
3144         (-[DOMHTMLElement insertAdjacentElement:element:]): Ditto.
3145         (-[DOMHTMLElement insertAdjacentHTML:html:]): Ditto.
3146         (-[DOMHTMLElement insertAdjacentText:text:]): Ditto.
3147         * DOM/DOMNamedNodeMap.mm:
3148         (-[DOMNamedNodeMap setNamedItem:]): Ditto.
3149         (-[DOMNamedNodeMap removeNamedItem:]): Ditto.
3150         (-[DOMNamedNodeMap setNamedItemNS:]): Ditto.
3151         (-[DOMNamedNodeMap removeNamedItemNS:localName:]): Ditto.
3152
3153 2016-10-29  Darin Adler  <darin@apple.com>
3154
3155         Convert more of DOM from ExceptionCode to Exception
3156         https://bugs.webkit.org/show_bug.cgi?id=164173
3157
3158         Reviewed by Ryosuke Niwa.
3159
3160         * DOM/DOMCharacterData.mm:
3161         (-[DOMCharacterData substringData:length:]): Updated since this
3162         now uses ExceptionOr.
3163         (-[DOMCharacterData insertData:data:]): Ditto.
3164         (-[DOMCharacterData deleteData:length:]): Ditto.
3165         (-[DOMCharacterData replaceData:length:data:]): Ditto.
3166         * DOM/DOMText.mm:
3167         (-[DOMText splitText:]): Ditto.
3168         (-[DOMText replaceWholeText:]): Removed unneeded exception code
3169         handling from function that does not throw an exception.
3170
3171 2016-10-28  Darin Adler  <darin@apple.com>
3172
3173         Move all classes in the HTML directory from ExceptionCode to Exception
3174         https://bugs.webkit.org/show_bug.cgi?id=163876
3175
3176         Reviewed by Sam Weinig.
3177
3178         * DOM/DOMCharacterData.mm:
3179         (-[DOMCharacterData remove]): Updated exception handling.
3180         * DOM/DOMDOMTokenList.mm:
3181         (-[DOMDOMTokenList toggle:force:]): Ditto.
3182         * DOM/DOMDocumentType.mm:
3183         (-[DOMDocumentType remove]): Ditto.
3184         * DOM/DOMElement.mm:
3185         (-[DOMElement remove]): Ditto.
3186         * DOM/DOMHTML.mm:
3187         (-[DOMHTMLInputElement setValueAsNumberWithChangeEvent:]): Ditto.
3188         * DOM/DOMHTMLCanvasElement.mm:
3189         (-[DOMHTMLCanvasElement toDataURL:]): Ditto.
3190         * DOM/DOMHTMLElement.mm:
3191         (-[DOMHTMLElement setInnerText:]): Ditto.
3192         (-[DOMHTMLElement setOuterText:]): Ditto.
3193         (-[DOMHTMLElement setContentEditable:]): Ditto.
3194         * DOM/DOMHTMLInputElement.mm:
3195         (-[DOMHTMLInputElement setMaxLength:]): Ditto.
3196         (-[DOMHTMLInputElement setValueAsDate:]): Ditto.
3197         (-[DOMHTMLInputElement setValueAsNumber:]): Ditto.
3198         (-[DOMHTMLInputElement stepUp:]): Ditto.
3199         (-[DOMHTMLInputElement stepDown:]): Ditto.
3200         (-[DOMHTMLInputElement setRangeText:]): Ditto.
3201         (-[DOMHTMLInputElement setRangeText:start:end:selectionMode:]): Ditto.
3202         * DOM/DOMHTMLMarqueeElement.mm:
3203         (-[DOMHTMLMarqueeElement setLoop:]): Ditto.
3204         * DOM/DOMHTMLMediaElement.mm:
3205         (-[DOMHTMLMediaElement setCurrentTime:]): Ditto.
3206         (-[DOMHTMLMediaElement setVolume:]): Ditto.
3207         * DOM/DOMHTMLOptionsCollection.mm:
3208         (-[DOMHTMLOptionsCollection setLength:]): Ditto.
3209         * DOM/DOMHTMLTableElement.mm:
3210         (-[DOMHTMLTableElement setCaption:]): Ditto.
3211         (-[DOMHTMLTableElement setTHead:]): Ditto.
3212         (-[DOMHTMLTableElement setTFoot:]): Ditto.
3213         (-[DOMHTMLTableElement insertRow:]): Ditto.
3214         (-[DOMHTMLTableElement deleteRow:]): Ditto.
3215         * DOM/DOMHTMLTableRowElement.mm:
3216         (-[DOMHTMLTableRowElement insertCell:]): Ditto.
3217         (-[DOMHTMLTableRowElement deleteCell:]): Ditto.
3218         * DOM/DOMHTMLTableSectionElement.mm:
3219         (-[DOMHTMLTableSectionElement insertRow:]): Ditto.
3220         (-[DOMHTMLTableSectionElement deleteRow:]): Ditto.
3221         * DOM/DOMHTMLTextAreaElement.mm:
3222         (-[DOMHTMLTextAreaElement setMaxLength:]): Ditto.
3223         (-[DOMHTMLTextAreaElement setRangeText:]): Ditto.
3224         (-[DOMHTMLTextAreaElement setRangeText:start:end:selectionMode:]): Ditto.
3225         * DOM/DOMHTMLVideoElement.mm:
3226         (-[DOMHTMLVideoElement webkitEnterFullscreen]): Ditto.
3227         (-[DOMHTMLVideoElement webkitEnterFullScreen]): Changed to call the other named
3228         version (lowercase S) instead of repeating the logic from that method.
3229         (-[DOMHTMLVideoElement webkitExitFullScreen]): Ditto.
3230         * DOM/DOMTimeRanges.mm:
3231         (-[DOMTimeRanges start:]): Updated exception handling.
3232         (-[DOMTimeRanges end:]): Ditto.
3233
3234 2016-10-27  Chris Dumez  <cdumez@apple.com>
3235
3236         Regression(r203601): Caused crashes in iBooks
3237         https://bugs.webkit.org/show_bug.cgi?id=164093
3238         <rdar://problem/28745634>
3239
3240         Reviewed by Darin Adler.
3241
3242         Restore pre-r203601 behavior when calling [DOMNode compareDocumentPosition:nil],
3243         which was to return Node::DOCUMENT_POSITION_DISCONNECTED.
3244
3245         * DOM/DOMNode.mm:
3246         (-[DOMNode compareDocumentPosition:]):
3247
3248 2016-10-27  Wenson Hsieh  <wenson_hsieh@apple.com>
3249
3250         Support "insertFromDrop" and "deleteByDrag" for the InputEvent spec
3251         https://bugs.webkit.org/show_bug.cgi?id=163948
3252         <rdar://problem/28921433>
3253
3254         Reviewed by Darin Adler.
3255
3256         Add support for new drag and drop-related EditAction enum values.
3257
3258         * WebCoreSupport/WebEditorClient.mm:
3259         (undoNameForEditAction):
3260
3261 2016-10-27  Dan Bernstein  <mitz@apple.com>
3262
3263         Reapplied the configuration changes from r207934 without breaking iOS builds.
3264
3265         * Configurations/Base.xcconfig:
3266         * Configurations/WebKitLegacy.xcconfig:
3267
3268 2016-10-27  Dan Bernstein  <mitz@apple.com>
3269
3270         Reverted the configuration changes from r207934 because they broke iOS builds not using the Apple-internal SDK.
3271
3272         * Configurations/Base.xcconfig:
3273         * Configurations/WebKitLegacy.xcconfig:
3274
3275 2016-10-26  Dan Bernstein  <mitz@apple.com>
3276
3277         [Xcode] WebKit fails to build when CLANG_WARN_DOCUMENTATION_COMMENTS is enabled
3278         https://bugs.webkit.org/show_bug.cgi?id=164048
3279
3280         Reviewed by Tim Horton.
3281
3282         * Configurations/Base.xcconfig: Enabled CLANG_WARN_DOCUMENTATION_COMMENTS.
3283         * Configurations/WebKitLegacy.xcconfig: Made the compiler treat the icu headers as system
3284           headers.
3285
3286         * History/WebBackForwardList.h: Fixed parameter name in @param entry.
3287         * Misc/WebDownload.h: Removed empty entries.
3288         * Misc/WebIconDatabase.h: Remove incorrect @param entries.
3289         * Misc/WebQuotaManager.h: Added missing parameter names in @param entries.
3290         * WebView/WebFrameLoadDelegate.h: Corrected parameter names in @param entries.
3291         * WebView/WebFrameViewPrivate.h: Changed incorrect @result to @abstract.
3292         * WebView/WebPolicyDelegate.h: Fixed parameter name and removed incorrect @param entries.
3293         * WebView/WebPreferences.h: Changed @method to @property in a couple of places.
3294         * WebView/WebResourceLoadDelegate.h: Fixed parameter names.
3295         * WebView/WebUIDelegate.h: Filled in two empty @param entries. Added missing parameter name,
3296           Fixed a typo and removed empty @discussion entry. Fixed some parameter names.
3297         * WebView/WebUIDelegatePrivate.h: Fixed parameter names.
3298         * WebView/WebView.h: Changed @method to @property in a couple of places.
3299         * WebView/WebViewPrivate.h: Fixed parameter names, changed incorrect @result to @abstract.
3300
3301 2016-10-26  Brian Burg  <bburg@apple.com>
3302
3303         Web Inspector: remove unused bool return value from FrontendChannel::sendMessageToFrontend
3304         https://bugs.webkit.org/show_bug.cgi?id=164046
3305
3306         Reviewed by Joseph Pecoraro.
3307
3308         * WebCoreSupport/WebInspectorClient.h:
3309
3310 2016-10-21  Alex Christensen  <achristensen@webkit.org>
3311
3312         URL::port should return Optional<uint16_t>
3313         https://bugs.webkit.org/show_bug.cgi?id=163806
3314
3315         Reviewed by Darin Adler.
3316
3317         * WebCoreSupport/WebSecurityOrigin.mm:
3318         (-[WebSecurityOrigin port]):
3319
3320 2016-10-24  Dave Hyatt  <hyatt@apple.com>
3321
3322         Remove CSSCharsetRule from the CSS OM
3323         https://bugs.webkit.org/show_bug.cgi?id=163891
3324
3325         Reviewed by Darin Adler.
3326
3327         * DOM/DOMCSSCharsetRule.mm:
3328         (-[DOMCSSCharsetRule encoding]):
3329
3330 2016-10-24  Youenn Fablet  <youenn@apple.com>
3331
3332         Activate WEB_RTC compilation flags for Mac bots
3333         https://bugs.webkit.org/show_bug.cgi?id=163886
3334
3335         Reviewed by Eric Carlson.
3336
3337         * Configurations/FeatureDefines.xcconfig:
3338
3339 2016-10-23  Chris Dumez  <cdumez@apple.com>
3340
3341         addEventListener() / removeEventListener() should use a union for last parameter
3342         https://bugs.webkit.org/show_bug.cgi?id=163863
3343
3344         Reviewed by Darin Adler.
3345
3346         Cast BOOL to bool to help to compiler construct the new variant-type parameter.
3347
3348         * DOM/DOMNode.mm:
3349         (-[DOMNode addEventListener:listener:useCapture:]):
3350         (-[DOMNode addEventListener:::]):
3351         (-[DOMNode removeEventListener:listener:useCapture:]):
3352         (-[DOMNode removeEventListener:::]):
3353
3354 2016-10-21  Wenson Hsieh  <wenson_hsieh@apple.com>
3355
3356         Support (insertFrom|deleteBy)Composition and (insert|delete)CompositionText inputTypes for InputEvents
3357         https://bugs.webkit.org/show_bug.cgi?id=163460
3358         <rdar://problem/28784142>
3359
3360         Reviewed by Darin Adler.
3361
3362         Handle new EditAction types for inserting/deleting pending/final compositions.
3363
3364         * WebCoreSupport/WebEditorClient.mm:
3365         (undoNameForEditAction):
3366
3367 2016-10-21  Jeremy Jones  <jeremyj@apple.com>
3368
3369         Implement basic pointer lock behavior for WebKit and WebKit2.
3370         https://bugs.webkit.org/show_bug.cgi?id=162745
3371
3372         Reviewed by Simon Fraser.
3373
3374         Add basic pointer lock functionality. User permission is not yet implemented.
3375
3376         * WebCoreSupport/WebChromeClient.h:
3377         * WebCoreSupport/WebChromeClient.mm:
3378         (WebChromeClient::requestPointerLock):
3379         (WebChromeClient::requestPointerUnlock):
3380
3381 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
3382
3383         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
3384         https://bugs.webkit.org/show_bug.cgi?id=163374
3385
3386         Reviewed by Darin Adler.
3387
3388         * Configurations/FeatureDefines.xcconfig:
3389
3390 2016-10-19  Alex Christensen  <achristensen@webkit.org>
3391
3392         Revert r207151
3393         https://bugs.webkit.org/show_bug.cgi?id=163675
3394
3395         Reviewed by Brent Fulgham.
3396
3397         * Misc/WebDownload.mm:
3398         (-[WebDownload _initWithLoadingCFURLConnection:request:response:delegate:proxy:]):
3399         * Misc/WebDownloadInternal.h:
3400         * WebCoreSupport/WebFrameLoaderClient.mm:
3401         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
3402         * WebView/WebPreferences.mm:
3403         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]):
3404         * WebView/WebView.mm:
3405         (-[WebView scheduleInRunLoop:forMode:]):
3406         (-[WebView unscheduleFromRunLoop:forMode:]):
3407
3408 2016-10-19  Ryan Haddad  <ryanhaddad@apple.com>
3409
3410         Unreviewed, rolling out r207557.
3411
3412         This change caused animations/font-variations tests to time
3413         out on pre-Sierra Macs.
3414
3415         Reverted changeset:
3416
3417         "[macOS] [iOS] Disable variation fonts on macOS El Capitan and
3418         iOS 9"
3419         https://bugs.webkit.org/show_bug.cgi?id=163374
3420         http://trac.webkit.org/changeset/207557
3421
3422 2016-10-19  Chris Dumez  <cdumez@apple.com>
3423
3424         Move HTML Interactive Form Validation behind an experimental flag
3425         https://bugs.webkit.org/show_bug.cgi?id=163673
3426
3427         Reviewed by Daniel Bates.
3428
3429         Re-disable HTML Interactive Form Validation by default on Mac WK1.
3430
3431         * WebView/WebViewData.mm:
3432         (-[WebViewPrivate init]):
3433
3434 2016-10-19  Myles C. Maxfield  <mmaxfield@apple.com>
3435
3436         [macOS] [iOS] Disable variation fonts on macOS El Capitan and iOS 9
3437         https://bugs.webkit.org/show_bug.cgi?id=163374
3438
3439         Reviewed by Darin Adler.
3440
3441         * Configurations/FeatureDefines.xcconfig:
3442
3443 2016-10-19  Simon Fraser  <simon.fraser@apple.com>
3444
3445         WebView needs to initialize the visualViewportEnabled Setting from WebKit preferences
3446         https://bugs.webkit.org/show_bug.cgi?id=163680
3447
3448         Reviewed by Dean Jackson.
3449
3450         Add code to set the Setting from WebKit prefs. This code is a mess and needs to be autogenerated.
3451
3452         * WebView/WebView.mm:
3453         (-[WebView _preferencesChanged:]):
3454
3455 2016-10-19  Darin Adler  <darin@apple.com>
3456
3457         Move XPath from ExceptionCode to Exception
3458         https://bugs.webkit.org/show_bug.cgi?id=163656
3459
3460         Reviewed by Chris Dumez.
3461
3462         * DOM/DOMDocument.mm:
3463         (wrap): Added. Helper function for wrapping a resolver.
3464         (-[DOMDocument createExpression:resolver:]): Use raiseOnDOMError.
3465         (-[DOMDocument evaluate:contextNode:resolver:type:inResult:]): Ditto.
3466         * DOM/DOMXPathExpression.mm:
3467         (-[DOMXPathExpression evaluate:type:inResult:]): Ditto.
3468         * DOM/DOMXPathResult.mm:
3469         (-[DOMXPathResult numberValue]): Ditto.
3470         (-[DOMXPathResult stringValue]): Ditto.
3471         (-[DOMXPathResult booleanValue]): Ditto.
3472         (-[DOMXPathResult singleNodeValue]): Ditto.
3473         (-[DOMXPathResult snapshotLength]): Ditto.
3474         (-[DOMXPathResult iterateNext]): Ditto.
3475         (-[DOMXPathResult snapshotItem:]): Ditto.
3476
3477 2016-10-18  Sam Weinig  <sam@webkit.org>
3478
3479         Replace std::experimental::variant with WTF::Variant (or similar)
3480         https://bugs.webkit.org/show_bug.cgi?id=163626
3481
3482         Reviewed by Chris Dumez.
3483
3484         Rename std::experimental::variant, Variant. Move helpers get/holds_alternative/etc.
3485         into the WTF namespace.
3486
3487         * DOM/DOMHTMLSelectElement.mm:
3488         (-[DOMHTMLSelectElement add:before:]):
3489
3490 2016-10-18  Simon Fraser  <simon.fraser@apple.com>
3491
3492         Add a MiniBrowser menu item to apply page scale in WK1 and WK2
3493         https://bugs.webkit.org/show_bug.cgi?id=163627
3494
3495         Reviewed by Dean Jackson.
3496
3497         Add an explanatory comment about viewScaleFactor not really being viewScaleFactor.
3498
3499         * WebView/WebViewPrivate.h:
3500
3501 2016-10-18  Dean Jackson  <dino@apple.com>
3502
3503         Remove CSS_SHAPES feature definition. This should always be on.
3504         https://bugs.webkit.org/show_bug.cgi?id=163628
3505         <rdar://problem/28834613>
3506
3507         Reviewed by Tim Horton.
3508
3509         * Configurations/FeatureDefines.xcconfig:
3510
3511 2016-10-18  Chris Dumez  <cdumez@apple.com>
3512
3513         Leverage new union type support for HTMLSelectElement.add() / HTMLOptionsCollection.add()
3514         https://bugs.webkit.org/show_bug.cgi?id=163608
3515
3516         Reviewed by Ryosuke Niwa.
3517
3518         Update add() call sites now that it takes std::variant types in.
3519
3520         * DOM/DOMHTMLOptionsCollection.mm:
3521         (-[DOMHTMLOptionsCollection add:index:]):
3522         * DOM/DOMHTMLSelectElement.mm:
3523         (-[DOMHTMLSelectElement add:before:]):
3524
3525 2016-10-18  Anders Carlsson  <andersca@apple.com>
3526
3527         Get rid of more WebHistoryItem cruft
3528         https://bugs.webkit.org/show_bug.cgi?id=163623
3529
3530         Reviewed by Tim Horton.
3531
3532         * History/WebHistoryItem.mm:
3533         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3534         * History/WebHistoryItemPrivate.h:
3535
3536 2016-10-18  Wenson Hsieh  <wenson_hsieh@apple.com>
3537
3538         Showing and hiding candidates list is very distracting after selecting word
3539         https://bugs.webkit.org/show_bug.cgi?id=163609
3540         <rdar://problem/28747712>
3541
3542         Reviewed by Tim Horton.
3543
3544         Introduce WebView hooks for mousedown and mouseup. See radar for more details.
3545
3546         * WebView/WebHTMLView.mm:
3547         (-[WebHTMLView mouseDown:mouseDown:]):
3548         (-[WebHTMLView mouseUp:mouseUp:]):
3549         * WebView/WebView.mm:
3550         (-[WebView prepareForMouseDown]):
3551         (-[WebView prepareForMouseUp]):
3552         * WebView/WebViewInternal.h:
3553
3554 2016-10-17  Anders Carlsson  <andersca@apple.com>
3555
3556         Move some history specific HistoryItem code to WebHistoryItem
3557         https://bugs.webkit.org/show_bug.cgi?id=163567
3558
3559         Reviewed by Tim Horton.