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