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