Add Logger observer and helper class
[WebKit-https.git] / Source / WebCore / PAL / ChangeLog
1 2017-08-30  Eric Carlson  <eric.carlson@apple.com>
2
3         Add Logger observer and helper class
4         https://bugs.webkit.org/show_bug.cgi?id=176106
5
6         Reviewed by Andy Estes.
7
8         * pal/Logger.h:
9         (PAL::LogArgument::toString): Add new variants.
10         (PAL::Logger::Observer::~Observer):
11         (PAL::Logger::logAlways const): Constify.
12         (PAL::Logger::error const): Ditto.
13         (PAL::Logger::warning const): Ditto.
14         (PAL::Logger::notice const): Ditto.
15         (PAL::Logger::info const): Ditto.
16         (PAL::Logger::debug const): Ditto.
17         (PAL::Logger::willLog const): Ditto.
18         (PAL::Logger::MethodAndPointer::MethodAndPointer): Add class name, make object pointer const.
19         (PAL::Logger::addObserver): New.
20         (PAL::Logger::removeObserver): New.
21         (PAL::Logger::Logger):
22         (PAL::Logger::log):
23         (PAL::Logger::observers):
24         (PAL::LogHelper::willLog const):
25         (PAL::LogArgument<Logger::MethodAndPointer>::toString):
26
27 2017-08-30  Andy Estes  <aestes@apple.com>
28
29         [Mac] Upstream Accessibility-related WebKitSystemInterface functions
30         https://bugs.webkit.org/show_bug.cgi?id=176093
31
32         Reviewed by Eric Carlson.
33
34         * PAL.xcodeproj/project.pbxproj:
35         * pal/spi/mac/HIServicesSPI.h: Added.
36         * pal/spi/mac/NSAccessibilitySPI.h:
37
38 2017-08-30  Andy Estes  <aestes@apple.com>
39
40         [Mac] Upstream Carbon-related WebKitSystemInterface functions
41         https://bugs.webkit.org/show_bug.cgi?id=176087
42
43         Reviewed by Alex Christensen.
44
45         * PAL.xcodeproj/project.pbxproj:
46         * pal/spi/cocoa/FoundationSPI.h: Copied from Source/WebCore/PAL/pal/spi/mac/NSWindowSPI.h.
47         * pal/spi/mac/HIToolboxSPI.h: Copied from Source/WebCore/PAL/pal/spi/mac/NSWindowSPI.h.
48         * pal/spi/mac/NSEventSPI.h:
49         * pal/spi/mac/NSWindowSPI.h:
50         * pal/spi/mac/QuickDrawSPI.h: Added.
51
52 2017-08-29  Andy Estes  <aestes@apple.com>
53
54         [Xcode] Fix up file and group paths in PAL.xcodeproj
55         https://bugs.webkit.org/show_bug.cgi?id=176073
56
57         Reviewed by Alex Christensen.
58
59         * PAL.xcodeproj/project.pbxproj:
60
61 2017-08-29  Andy Estes  <aestes@apple.com>
62
63         [Mac] Upstream WKSetMetadataURL() from WebKitSystemInterface
64         https://bugs.webkit.org/show_bug.cgi?id=176046
65
66         Reviewed by Alex Christensen.
67
68         * PAL.xcodeproj/project.pbxproj:
69         * pal/spi/mac/MetadataSPI.h: Added.
70
71 2017-08-28  Eric Carlson  <eric.carlson@apple.com>
72
73         Logger should use makeString instead of String::format
74         https://bugs.webkit.org/show_bug.cgi?id=176035
75
76         Reviewed by Jer Noble.
77
78         * pal/Logger.h:
79         (PAL::LogArgument::toString):
80         (PAL::Logger::logAlways):
81         (PAL::Logger::error):
82         (PAL::Logger::warning):
83         (PAL::Logger::notice):
84         (PAL::Logger::info):
85         (PAL::Logger::debug):
86         (PAL::Logger::MethodAndPointer::MethodAndPointer):
87         (PAL::Logger::log):
88         (PAL::LogArgument<Logger::MethodAndPointer>::toString):
89
90 2017-08-28  Andy Estes  <aestes@apple.com>
91
92         [Cocoa] Upstream CFNetwork-related WebKitSystemInterface functions
93         https://bugs.webkit.org/show_bug.cgi?id=176032
94
95         Reviewed by Alex Christensen.
96
97         * pal/spi/cf/CFNetworkSPI.h:
98
99 2017-08-25  Eric Carlson  <eric.carlson@apple.com>
100
101         Add Logger::logAlways
102         https://bugs.webkit.org/show_bug.cgi?id=175996
103
104         Reviewed by Jer Noble.
105
106         * PAL.xcodeproj/project.pbxproj:
107         * pal/Logger.h:
108         (PAL::Logger::willLog const):
109         (PAL::Logger::willLog const):
110         (PAL::Logger::logAlways): Added.
111         (PAL::Logger::error const): Add missing WTF_ATTRIBUTE_PRINTF.
112         (PAL::Logger::warning const): Ditto.
113         (PAL::Logger::notice const): Ditto.
114         (PAL::Logger::info const): Ditto.
115         (PAL::Logger::debug const): Use String::formatWithArguments.
116
117 2017-08-25  Jonathan Bedard  <jbedard@apple.com>
118
119         Fix build breakage with Public iOS 11 SDK
120         https://bugs.webkit.org/show_bug.cgi?id=175960
121         <rdar://problem/34069264>
122
123         Reviewed by Wenson Hsieh.
124
125         * pal/spi/ios/UIKitSPI.h: Use NSItemProvider definition of preferredPresentationSize
126         instead of re-declaring it.
127
128 2017-08-23  Eric Carlson  <eric.carlson@apple.com>
129
130         Platform code should be able to safely log in release builds
131         https://bugs.webkit.org/show_bug.cgi?id=175854
132         <rdar://problem/34022930>
133
134         Reviewed by Jer Noble.
135
136         * PAL.xcodeproj/project.pbxproj:
137         * pal/Logger.h: Added.
138         (PAL::Logger::create):
139         (PAL::Logger::error const):
140         (PAL::Logger::warning const):
141         (PAL::Logger::notice const):
142         (PAL::Logger::info const):
143         (PAL::Logger::debug const):
144         (PAL::Logger::willLog const):
145         (PAL::Logger::enabled const):
146         (PAL::Logger::setEnabled):
147         (PAL::Logger::Logger):
148         (PAL::Logger::log):
149
150 2017-08-21  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
151
152         [PAL] Move spi/mac directory into PAL
153         https://bugs.webkit.org/show_bug.cgi?id=175649
154
155         Reviewed by Myles C. Maxfield.
156
157         * PAL.xcodeproj/project.pbxproj:
158         * pal/spi/mac/AVFoundationSPI.h: Renamed from Source/WebCore/platform/spi/mac/AVFoundationSPI.h.
159         * pal/spi/mac/DataDetectorsSPI.h: Renamed from Source/WebCore/platform/spi/mac/DataDetectorsSPI.h.
160         * pal/spi/mac/LookupSPI.h: Renamed from Source/WebCore/platform/spi/mac/LookupSPI.h.
161         * pal/spi/mac/MediaRemoteSPI.h: Renamed from Source/WebCore/platform/spi/mac/MediaRemoteSPI.h.
162         * pal/spi/mac/NSAccessibilitySPI.h: Renamed from Source/WebCore/platform/spi/mac/NSAccessibilitySPI.h.
163         * pal/spi/mac/NSApplicationSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSApplicationSPI.h.
164         * pal/spi/mac/NSEventSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSEventSPI.h.
165         * pal/spi/mac/NSFontSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSFontSPI.h.
166         * pal/spi/mac/NSImmediateActionGestureRecognizerSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSImmediateActionGestureRecognizerSPI.h.
167         * pal/spi/mac/NSMenuSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSMenuSPI.h.
168         * pal/spi/mac/NSPasteboardSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSPasteboardSPI.h.
169         * pal/spi/mac/NSPopoverSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSPopoverSPI.h.
170         * pal/spi/mac/NSScrollerImpSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSScrollerImpSPI.h.
171         * pal/spi/mac/NSScrollingInputFilterSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSScrollingInputFilterSPI.h.
172         * pal/spi/mac/NSScrollingMomentumCalculatorSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSScrollingMomentumCalculatorSPI.h.
173         * pal/spi/mac/NSSharingServicePickerSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSSharingServicePickerSPI.h.
174         * pal/spi/mac/NSSharingServiceSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSSharingServiceSPI.h.
175         * pal/spi/mac/NSSpellCheckerSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSSpellCheckerSPI.h.
176         * pal/spi/mac/NSTextFinderSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSTextFinderSPI.h.
177         * pal/spi/mac/NSViewSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSViewSPI.h.
178         * pal/spi/mac/NSWindowSPI.h: Renamed from Source/WebCore/platform/spi/mac/NSWindowSPI.h.
179         * pal/spi/mac/PIPSPI.h: Renamed from Source/WebCore/platform/spi/mac/PIPSPI.h.
180         * pal/spi/mac/QTKitSPI.h: Renamed from Source/WebCore/platform/spi/mac/QTKitSPI.h.
181         * pal/spi/mac/QuickLookMacSPI.h: Renamed from Source/WebCore/platform/spi/mac/QuickLookMacSPI.h.
182         * pal/spi/mac/TUCallSPI.h: Renamed from Source/WebCore/platform/spi/mac/TUCallSPI.h.
183
184 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
185
186         [PAL] Relocate SessionID to root
187         https://bugs.webkit.org/show_bug.cgi?id=175684
188
189         Reviewed by Alex Christensen.
190
191         * PAL.xcodeproj/project.pbxproj:
192         * pal/CMakeLists.txt:
193         * pal/SessionID.cpp: Renamed from Source/WebCore/PAL/pal/identifier/SessionID.cpp.
194         * pal/SessionID.h: Renamed from Source/WebCore/PAL/pal/identifier/SessionID.h.
195
196 2017-08-17  Andreas Kling  <akling@apple.com>
197
198         Disable CSS regions at compile time
199         https://bugs.webkit.org/show_bug.cgi?id=175630
200
201         Reviewed by Antti Koivisto.
202
203         * Configurations/FeatureDefines.xcconfig:
204
205 2017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
206
207         [iOS] Respect type fidelities when copying image elements to the pasteboard
208         https://bugs.webkit.org/show_bug.cgi?id=175638
209         <rdar://problem/26556043>
210
211         Reviewed by Ryosuke Niwa.
212
213         Replace -estimatedDisplayedSize with its non-deprecated counterpart, -preferredPresentationSize.
214
215         * pal/spi/ios/UIKitSPI.h:
216
217 2017-08-17  Don Olmstead  <don.olmstead@sony.com>
218
219         [PAL] Move SessionID into PAL
220         https://bugs.webkit.org/show_bug.cgi?id=174192
221
222         Reviewed by Antti Koivisto.
223
224         * PAL.xcodeproj/project.pbxproj:
225         * pal/CMakeLists.txt:
226         * pal/identifier/SessionID.cpp: Renamed from Source/WebCore/page/SessionID.cpp.
227         * pal/identifier/SessionID.h: Renamed from Source/WebCore/page/SessionID.h.
228         (WTF::SessionIDHash::hash):
229         (WTF::SessionIDHash::equal):
230         (WTF::HashTraits<PAL::SessionID>::emptyValue):
231         (WTF::HashTraits<PAL::SessionID>::constructDeletedValue):
232         (WTF::HashTraits<PAL::SessionID>::isDeletedValue):
233
234 2017-08-16  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
235
236         [PAL] Move spi/ios and spi/win directories into PAL
237         https://bugs.webkit.org/show_bug.cgi?id=175171
238
239         Reviewed by Antti Koivisto.
240
241         * PAL.xcodeproj/project.pbxproj:
242         * pal/spi/ios/CoreUISPI.h: Renamed from Source/WebCore/platform/spi/ios/CoreUISPI.h.
243         * pal/spi/ios/DataDetectorsUISPI.h: Renamed from Source/WebCore/platform/spi/ios/DataDetectorsUISPI.h.
244         * pal/spi/ios/GraphicsServicesSPI.h: Renamed from Source/WebCore/platform/spi/ios/GraphicsServicesSPI.h.
245         * pal/spi/ios/LaunchServicesSPI.h: Renamed from Source/WebCore/platform/spi/ios/LaunchServicesSPI.h.
246         * pal/spi/ios/MediaPlayerSPI.h: Renamed from Source/WebCore/platform/spi/ios/MediaPlayerSPI.h.
247         * pal/spi/ios/MobileGestaltSPI.h: Renamed from Source/WebCore/platform/spi/ios/MobileGestaltSPI.h.
248         * pal/spi/ios/OpenGLESSPI.h: Renamed from Source/WebCore/platform/spi/ios/OpenGLESSPI.h.
249         * pal/spi/ios/QuickLookSPI.h: Renamed from Source/WebCore/platform/spi/ios/QuickLookSPI.h.
250         * pal/spi/ios/SQLite3SPI.h: Renamed from Source/WebCore/platform/spi/ios/SQLite3SPI.h.
251         * pal/spi/ios/UIKitSPI.h: Renamed from Source/WebCore/platform/spi/ios/UIKitSPI.h.
252         * pal/spi/win/CoreTextSPIWin.h: Renamed from Source/WebCore/platform/spi/win/CoreTextSPIWin.h.
253
254 2017-08-16  Andy Estes  <aestes@apple.com>
255
256         [Payment Request] Add an ENABLE flag and an experimental feature preference
257         https://bugs.webkit.org/show_bug.cgi?id=175622
258
259         Reviewed by Tim Horton.
260
261         * Configurations/FeatureDefines.xcconfig:
262
263 2017-08-15  Don Olmstead  <don.olmstead@sony.com>
264
265         [PAL] Move Sleep classes into PAL
266         https://bugs.webkit.org/show_bug.cgi?id=175456
267
268         Reviewed by Ryosuke Niwa.
269
270         * PAL.xcodeproj/project.pbxproj:
271         * pal/CMakeLists.txt:
272         * pal/PlatformMac.cmake:
273         * pal/system/SleepDisabler.cpp: Renamed from Source/WebCore/platform/SleepDisabler.cpp.
274         * pal/system/SleepDisabler.h: Renamed from Source/WebCore/platform/SleepDisabler.h.
275         * pal/system/SystemSleepListener.cpp: Renamed from Source/WebCore/platform/SystemSleepListener.cpp.
276         * pal/system/SystemSleepListener.h: Renamed from Source/WebCore/platform/SystemSleepListener.h.
277         * pal/system/cocoa/SleepDisablerCocoa.cpp: Renamed from Source/WebCore/platform/cocoa/SleepDisablerCocoa.cpp.
278         * pal/system/cocoa/SleepDisablerCocoa.h: Renamed from Source/WebCore/platform/cocoa/SleepDisablerCocoa.h.
279         * pal/system/mac/SystemSleepListenerMac.h: Renamed from Source/WebCore/platform/mac/SystemSleepListenerMac.h.
280         * pal/system/mac/SystemSleepListenerMac.mm: Renamed from Source/WebCore/platform/mac/SystemSleepListenerMac.mm.
281
282 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
283
284         Remove Proximity Events and related code
285         https://bugs.webkit.org/show_bug.cgi?id=175545
286
287         Reviewed by Daniel Bates.
288
289         No platform enables Proximity Events, so remove code inside ENABLE(PROXIMITY_EVENTS)
290         and other related code.
291
292         * Configurations/FeatureDefines.xcconfig:
293
294 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
295
296         Remove ENABLE(REQUEST_AUTOCOMPLETE) code, which was disabled everywhere
297         https://bugs.webkit.org/show_bug.cgi?id=175504
298
299         Reviewed by Sam Weinig.
300
301         * Configurations/FeatureDefines.xcconfig:
302
303 2017-08-14  Simon Fraser  <simon.fraser@apple.com>
304
305         Remove ENABLE_VIEW_MODE_CSS_MEDIA and related code
306         https://bugs.webkit.org/show_bug.cgi?id=175557
307
308         Reviewed by Jon Lee.
309
310         No port cares about the ENABLE(VIEW_MODE_CSS_MEDIA) feature, so remove it.
311
312         * Configurations/FeatureDefines.xcconfig:
313
314 2017-08-11  Ryosuke Niwa  <rniwa@webkit.org>
315
316         Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
317         https://bugs.webkit.org/show_bug.cgi?id=175474
318         <rdar://problem/33844628>
319
320         Reviewed by Wenson Hsieh.
321
322         * Configurations/FeatureDefines.xcconfig:
323
324 2017-08-10  Michael Catanzaro  <mcatanzaro@igalia.com>
325
326         Remove ENABLE_GAMEPAD_DEPRECATED
327         https://bugs.webkit.org/show_bug.cgi?id=175361
328
329         Reviewed by Carlos Garcia Campos.
330
331         * Configurations/FeatureDefines.xcconfig:
332
333 2017-08-09  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
334
335         [PAL] Move spi/cocoa and spi/cg directories into PAL
336         https://bugs.webkit.org/show_bug.cgi?id=175175
337
338         Reviewed by Myles C. Maxfield.
339
340         * PAL.xcodeproj/project.pbxproj:
341         * pal/PlatformAppleWin.cmake:
342         * pal/spi/cg/CoreGraphicsSPI.h: Renamed from Source/WebCore/platform/spi/cg/CoreGraphicsSPI.h.
343         (CGFloatMin):
344         * pal/spi/cg/ImageIOSPI.h: Renamed from Source/WebCore/platform/spi/cg/ImageIOSPI.h.
345         * pal/spi/cocoa/AVKitSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/AVKitSPI.h.
346         (-[AVTouchBarPlaybackControlsControlling NS_ENUM]):
347         * pal/spi/cocoa/CFNSURLConnectionSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/CFNSURLConnectionSPI.h.
348         * pal/spi/cocoa/CoreTextSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/CoreTextSPI.h.
349         * pal/spi/cocoa/DataDetectorsCoreSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h.
350         * pal/spi/cocoa/IOPMLibSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/IOPMLibSPI.h.
351         * pal/spi/cocoa/IOPSLibSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/IOPSLibSPI.h.
352         * pal/spi/cocoa/IOReturnSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/IOReturnSPI.h.
353         * pal/spi/cocoa/IOSurfaceSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/IOSurfaceSPI.h.
354         * pal/spi/cocoa/IOTypesSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/IOTypesSPI.h.
355         * pal/spi/cocoa/LinkPresentationSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/LinkPresentationSPI.h.
356         * pal/spi/cocoa/MachVMSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/MachVMSPI.h.
357         * pal/spi/cocoa/NEFilterSourceSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NEFilterSourceSPI.h.
358         * pal/spi/cocoa/NSAttributedStringSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSAttributedStringSPI.h.
359         * pal/spi/cocoa/NSButtonCellSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSButtonCellSPI.h.
360         * pal/spi/cocoa/NSCalendarDateSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSCalendarDateSPI.h.
361         * pal/spi/cocoa/NSColorSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSColorSPI.h.
362         * pal/spi/cocoa/NSExtensionSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSExtensionSPI.h.
363         * pal/spi/cocoa/NSFileManagerSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSFileManagerSPI.h.
364         * pal/spi/cocoa/NSStringSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSStringSPI.h.
365         * pal/spi/cocoa/NSTouchBarSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSTouchBarSPI.h.
366         * pal/spi/cocoa/NSURLConnectionSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSURLConnectionSPI.h.
367         * pal/spi/cocoa/NSURLDownloadSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSURLDownloadSPI.h.
368         * pal/spi/cocoa/NSURLFileTypeMappingsSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/NSURLFileTypeMappingsSPI.h.
369         * pal/spi/cocoa/PassKitSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/PassKitSPI.h.
370         (NS_ERROR_ENUM):
371         * pal/spi/cocoa/QuartzCoreSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h.
372         * pal/spi/cocoa/ServersSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/ServersSPI.h.
373         * pal/spi/cocoa/WebFilterEvaluatorSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/WebFilterEvaluatorSPI.h.
374         * pal/spi/cocoa/pthreadSPI.h: Renamed from Source/WebCore/platform/spi/cocoa/pthreadSPI.h.
375
376 2017-08-09  Wenson Hsieh  <wenson_hsieh@apple.com>
377
378         [iOS DnD] ENABLE_DRAG_SUPPORT should be turned off for iOS 10 and enabled by default
379         https://bugs.webkit.org/show_bug.cgi?id=175392
380         <rdar://problem/33783207>
381
382         Reviewed by Tim Horton and Megan Gardner.
383
384         Tweak FeatureDefines to enable drag and drop by default, and disable only on unsupported platforms (i.e. iOS 10).
385
386         * Configurations/FeatureDefines.xcconfig:
387
388 2017-08-07  Brian Burg  <bburg@apple.com>
389
390         Remove CANVAS_PATH compilation guard
391         https://bugs.webkit.org/show_bug.cgi?id=175207
392
393         Reviewed by Sam Weinig.
394
395         * Configurations/FeatureDefines.xcconfig:
396
397 2017-08-04  Matt Lewis  <jlewis3@apple.com>
398
399         Unreviewed, rolling out r220271.
400
401         Rolling out due to Layout Test failing on iOS Simulator.
402
403         Reverted changeset:
404
405         "Remove STREAMS_API compilation guard"
406         https://bugs.webkit.org/show_bug.cgi?id=175165
407         http://trac.webkit.org/changeset/220271
408
409 2017-08-04  Youenn Fablet  <youenn@apple.com>
410
411         Remove STREAMS_API compilation guard
412         https://bugs.webkit.org/show_bug.cgi?id=175165
413
414         Reviewed by Darin Adler.
415
416         * Configurations/FeatureDefines.xcconfig:
417
418 2017-08-03  Brian Burg  <bburg@apple.com>
419
420         Remove ENABLE(WEB_SOCKET) guards
421         https://bugs.webkit.org/show_bug.cgi?id=167044
422
423         Reviewed by Joseph Pecoraro.
424
425         * Configurations/FeatureDefines.xcconfig:
426
427 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
428
429         [PAL] Move spi/cf directory into PAL
430         https://bugs.webkit.org/show_bug.cgi?id=175057
431
432         Reviewed by Antti Koivisto.
433
434         * PAL.xcodeproj/project.pbxproj:
435         * pal/spi/cf/CFLocaleSPI.h: Renamed from Source/WebCore/platform/spi/cf/CFLocaleSPI.h.
436         * pal/spi/cf/CFNetworkConnectionCacheSPI.h: Renamed from Source/WebCore/platform/spi/cf/CFNetworkConnectionCacheSPI.h.
437         * pal/spi/cf/CFNetworkSPI.h: Renamed from Source/WebCore/platform/spi/cf/CFNetworkSPI.h.
438         * pal/spi/cf/CFUtilitiesSPI.h: Renamed from Source/WebCore/platform/spi/cf/CFUtilitiesSPI.h.
439         * pal/spi/cf/CoreAudioSPI.h: Renamed from Source/WebCore/platform/spi/cf/CoreAudioSPI.h.
440         * pal/spi/cf/CoreMediaSPI.h: Renamed from Source/WebCore/platform/spi/cf/CoreMediaSPI.h.
441
442 2017-08-03  Youenn Fablet  <youenn@apple.com>
443
444         Remove FETCH_API compilation guard
445         https://bugs.webkit.org/show_bug.cgi?id=175154
446
447         Reviewed by Chris Dumez.
448
449         * Configurations/FeatureDefines.xcconfig:
450
451 2017-08-03  Brady Eidson  <beidson@apple.com>
452
453         Add SW IDLs and stub out basic functionality.
454         https://bugs.webkit.org/show_bug.cgi?id=175115
455
456         Reviewed by Chris Dumez.
457
458         * Configurations/FeatureDefines.xcconfig:
459
460 2017-08-03  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
461
462         [WebCore] Sort Xcode project files
463         https://bugs.webkit.org/show_bug.cgi?id=175121
464
465         Reviewed by Antti Koivisto.
466
467         * PAL.xcodeproj/project.pbxproj:
468
469 2017-08-01  Yoshiaki Jitsukawa  <jitsu@rd.scei.sony.co.jp>
470
471         [PAL][Win] Copy forwarding headers
472         https://bugs.webkit.org/show_bug.cgi?id=175012
473
474         Reviewed by Myles C. Maxfield.
475
476         * pal/PlatformAppleWin.cmake: Added.
477         * pal/PlatformWin.cmake:
478         * pal/PlatformWinCairo.cmake: Added.
479
480 2017-07-26  Brian Burg  <bburg@apple.com>
481
482         Remove WEB_TIMING feature flag
483         https://bugs.webkit.org/show_bug.cgi?id=174795
484
485         Reviewed by Alex Christensen.
486
487         * Configurations/FeatureDefines.xcconfig:
488
489 2017-07-24  Carlos Alberto Lopez Perez  <clopez@igalia.com>
490
491         [CMake] libtasn1 should not be required when not enabling subtle_crypto
492         https://bugs.webkit.org/show_bug.cgi?id=174785
493
494         Reviewed by Žan Doberšek.
495
496         * pal/PlatformGTK.cmake:
497         * pal/PlatformWPE.cmake:
498
499 2017-07-18  Andy Estes  <aestes@apple.com>
500
501         [Xcode] Enable CLANG_WARN_RANGE_LOOP_ANALYSIS
502         https://bugs.webkit.org/show_bug.cgi?id=174631
503
504         Reviewed by Tim Horton.
505
506         * Configurations/Base.xcconfig:
507
508 2017-07-18  Andy Estes  <aestes@apple.com>
509
510         [Xcode] Enable CLANG_WARN_OBJC_LITERAL_CONVERSION
511         https://bugs.webkit.org/show_bug.cgi?id=174631
512
513         Reviewed by Sam Weinig.
514
515         * Configurations/Base.xcconfig:
516
517 2017-07-18  Andy Estes  <aestes@apple.com>
518
519         [Xcode] Enable CLANG_WARN_NON_LITERAL_NULL_CONVERSION
520         https://bugs.webkit.org/show_bug.cgi?id=174631
521
522         Reviewed by Dan Bernstein.
523
524         * Configurations/Base.xcconfig:
525
526 2017-07-18  Andy Estes  <aestes@apple.com>
527
528         [Xcode] Enable CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
529         https://bugs.webkit.org/show_bug.cgi?id=174631
530
531         Reviewed by Darin Adler.
532
533         * Configurations/Base.xcconfig:
534
535 2017-07-17  Konstantin Tokarev  <annulen@yandex.ru>
536
537         [CMake] Create targets before WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS is called
538         https://bugs.webkit.org/show_bug.cgi?id=174557
539
540         Reviewed by Michael Catanzaro.
541
542         No new tests needed.
543
544         * pal/CMakeLists.txt:
545
546 2017-07-13  Per Arne Vollan  <pvollan@apple.com>
547
548         [Win] Build error when building WebCore from WebCore.proj project file.
549         https://bugs.webkit.org/show_bug.cgi?id=174462
550
551         Reviewed by Brent Fulgham.
552
553         Add required include directory to list of include directories.
554  
555         * pal/CMakeLists.txt:
556         * pal/PlatformWin.cmake:
557
558 2017-07-12  Matt Lewis  <jlewis3@apple.com>
559
560         Unreviewed, rolling out r219401.
561
562         This revision rolled out the previous patch, but after talking
563         with reviewer, a rebaseline is what was needed.Rolling back in
564         before rebaseline.
565
566         Reverted changeset:
567
568         "Unreviewed, rolling out r219379."
569         https://bugs.webkit.org/show_bug.cgi?id=174400
570         http://trac.webkit.org/changeset/219401
571
572 2017-07-12  Matt Lewis  <jlewis3@apple.com>
573
574         Unreviewed, rolling out r219379.
575
576         This revision caused a consistent failure in the test
577         fast/dom/Window/property-access-on-cached-window-after-frame-
578         removed.html.
579
580         Reverted changeset:
581
582         "Remove NAVIGATOR_HWCONCURRENCY"
583         https://bugs.webkit.org/show_bug.cgi?id=174400
584         http://trac.webkit.org/changeset/219379
585
586 2017-07-11  Per Arne Vollan  <pvollan@apple.com>
587
588         [Win] Build error when building WebKit.dll from WebKit.proj project file.
589         https://bugs.webkit.org/show_bug.cgi?id=174410
590
591         Reviewed by Brent Fulgham.
592
593         Copy required header files to forwarding headers folder.
594
595         * pal/PlatformWin.cmake:
596
597 2017-07-11  Dean Jackson  <dino@apple.com>
598
599         Remove NAVIGATOR_HWCONCURRENCY
600         https://bugs.webkit.org/show_bug.cgi?id=174400
601
602         Reviewed by Sam Weinig.
603
604         * Configurations/FeatureDefines.xcconfig:
605
606 2017-07-11  Dean Jackson  <dino@apple.com>
607
608         Rolling out r219372.
609
610         * Configurations/FeatureDefines.xcconfig:
611
612 2017-07-11  Dean Jackson  <dino@apple.com>
613
614         Remove NAVIGATOR_HWCONCURRENCY
615         https://bugs.webkit.org/show_bug.cgi?id=174400
616
617         Reviewed by Sam Weinig.
618
619         * Configurations/FeatureDefines.xcconfig:
620
621 2017-07-11  Per Arne Vollan  <pvollan@apple.com>
622
623         [Win] Build error when building WebCore from WebCore.proj project file.
624         https://bugs.webkit.org/show_bug.cgi?id=174330
625
626         Reviewed by Brent Fulgham.
627
628         CMAKE_BINARY_DIR is needed in the include list in order to find 'cmakeconfig.h'. 
629
630         * pal/CMakeLists.txt:
631
632 2017-07-03  Brian Burg  <bburg@apple.com>
633
634         Web Replay: remove some unused code
635         https://bugs.webkit.org/show_bug.cgi?id=173903
636
637         Rubber-stamped by Joseph Pecoraro.
638
639         * Configurations/FeatureDefines.xcconfig:
640
641 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
642
643         Drop NOSNIFF compile flag
644         https://bugs.webkit.org/show_bug.cgi?id=174289
645
646         Reviewed by Michael Catanzaro.
647
648         * Configurations/FeatureDefines.xcconfig:
649
650 2017-07-06  Don Olmstead  <don.olmstead@sony.com>
651
652         [PAL] Move KillRing into PAL
653         https://bugs.webkit.org/show_bug.cgi?id=173900
654
655         Reviewed by Myles C. Maxfield.
656
657         No new tests. No change in functionality.
658
659         * Configurations/PAL.xcconfig:
660         * PAL.xcodeproj/project.pbxproj:
661         * pal/CMakeLists.txt:
662         * pal/PlatformGTK.cmake:
663         * pal/PlatformMac.cmake:
664         * pal/PlatformWPE.cmake:
665         * pal/PlatformWin.cmake:
666         * pal/text/KillRing.h: Renamed from Source/WebCore/platform/KillRing.h.
667         * pal/text/KillRingNone.cpp: Renamed from Source/WebCore/platform/KillRingNone.cpp.
668         * pal/text/mac/KillRingMac.mm: Renamed from Source/WebCore/platform/mac/KillRingMac.mm.
669
670 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
671
672         Add WebKitPrivateFrameworkStubs for iOS 11
673         https://bugs.webkit.org/show_bug.cgi?id=173988
674
675         Reviewed by David Kilzer.
676
677         * Configurations/PAL.xcconfig: iphoneos and iphonesimulator should use the
678         same directory for private framework stubs.
679
680 2017-07-03  Sam Weinig  <sam@webkit.org>
681
682         [WebIDL] Remove more unnecessary uses of the preprocessor in idl files
683         https://bugs.webkit.org/show_bug.cgi?id=174083
684
685         Reviewed by Alex Christensen.
686
687         * Configurations/FeatureDefines.xcconfig:
688         Add ENABLE_NAVIGATOR_STANDALONE.
689
690 2017-07-03  Andy Estes  <aestes@apple.com>
691
692         [Xcode] Add an experimental setting to build with ccache
693         https://bugs.webkit.org/show_bug.cgi?id=173875
694
695         Reviewed by Tim Horton.
696
697         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
698
699 2017-07-03  Zan Dobersek  <zdobersek@igalia.com>
700
701         [GCrypt] Implement CryptoKeyEC SPKI exports
702         https://bugs.webkit.org/show_bug.cgi?id=173646
703
704         Reviewed by Jiewen Tan.
705
706         No new tests -- covered by existing Web Crypto tests.
707
708         Add three new libtasn1 utility functions.
709
710         createStructure() is a simple wrapper around asn1_create_element(), creating a new
711         ASN.1 structure for the specified definition that's listed in WebCrypto.asn. The
712         existing decodeStructure() is modified to use this new addition.
713
714         encodedData() retrieves the ASN.1-encoded data of the specified element that's
715         located in the passed-in asn1_node. This is used when retrieving SPKI or PKCS#8
716         data from filled-out ASN.1 structures.
717
718         writeElement() writes the provided data to the given asn1_node object under the
719         specified element, using the given size. True is returned if this operation was
720         successful.
721
722         * pal/crypto/tasn1/Utilities.cpp:
723         (PAL::TASN1::createStructure):
724         (PAL::TASN1::decodeStructure):
725         (PAL::TASN1::encodedData):
726         (PAL::TASN1::writeElement):
727         * pal/crypto/tasn1/Utilities.h:
728
729 2017-07-01  Dan Bernstein  <mitz@apple.com>
730
731         [iOS] Remove code only needed when building for iOS 9.x
732         https://bugs.webkit.org/show_bug.cgi?id=174068
733
734         Reviewed by Tim Horton.
735
736         * Configurations/FeatureDefines.xcconfig:
737
738 2017-07-01  Dan Bernstein  <mitz@apple.com>
739
740         [macOS] Remove code only needed when building for OS X Yosemite
741         https://bugs.webkit.org/show_bug.cgi?id=174067
742
743         Reviewed by Tim Horton.
744
745         * Configurations/Base.xcconfig:
746         * Configurations/DebugRelease.xcconfig:
747         * Configurations/FeatureDefines.xcconfig:
748         * Configurations/Version.xcconfig:
749
750 2017-06-29  Jer Noble  <jer.noble@apple.com>
751
752         Make Legacy EME API controlled by RuntimeEnabled setting.
753         https://bugs.webkit.org/show_bug.cgi?id=173994
754
755         Reviewed by Sam Weinig.
756
757         * Configurations/FeatureDefines.xcconfig:
758
759 2017-06-30  Ross Kirsling  <ross.kirsling@sony.com>
760
761         [PAL] Move Sound into PAL
762         https://bugs.webkit.org/show_bug.cgi?id=173999
763
764         Reviewed by Alex Christensen.
765
766         * Configurations/PAL.xcconfig:
767         * PAL.xcodeproj/project.pbxproj:
768         * pal/CMakeLists.txt:
769         * pal/PlatformGTK.cmake:
770         * pal/PlatformMac.cmake:
771         * pal/PlatformWPE.cmake:
772         * pal/PlatformWin.cmake:
773         * pal/system/Sound.h: Renamed from Source/WebCore/platform/ios/SoundIOS.mm.
774         * pal/system/SoundNone.cpp: Renamed from Source/WebCore/platform/wpe/SoundWPE.cpp.
775         (PAL::systemBeep):
776         * pal/system/gtk/SoundGtk.cpp: Renamed from Source/WebCore/platform/gtk/SoundGtk.cpp.
777         * pal/system/mac/SoundMac.mm: Renamed from Source/WebCore/platform/mac/SoundMac.mm.
778         * pal/system/win/SoundWin.cpp: Renamed from Source/WebCore/platform/win/SoundWin.cpp.
779
780 2017-06-28  Jonathan Bedard  <jbedard@apple.com>
781
782         Build fix for PAL
783         https://bugs.webkit.org/show_bug.cgi?id=173896
784
785         Reviewed by Dan Bernstein.
786
787         Remove the workaround build fix in r218863.
788
789         * PAL.xcodeproj/project.pbxproj: We should be using PROJECT_DIR instead of SRCROOT
790         when in a nested Xcode project.
791
792 2017-06-27  Jonathan Bedard  <jbedard@apple.com>
793
794         Build fix for PAL
795         https://bugs.webkit.org/show_bug.cgi?id=173896
796
797         Reviewed by Myles C. Maxfield.
798
799         * PAL.xcodeproj/project.pbxproj: Ensure that the SRCROOT is WebCore/PAL and not
800         just WebCore.
801
802 2017-06-27  Don Olmstead  <don.olmstead@sony.com>
803
804         [PAL] Add symbol export macros for PAL
805         https://bugs.webkit.org/show_bug.cgi?id=171519
806
807         Reviewed by Konstantin Tokarev.
808
809         No new tests. No change in behavior.
810
811         * Configurations/CopyPALHeaders.xcconfig: Added.
812         * PAL.xcodeproj/project.pbxproj:
813         * config.h:
814         * pal/ExportMacros.h: Copied from Source/WebCore/platform/PlatformExportMacros.h.
815         * pal/PlatformWin.cmake:
816         * pal/crypto/CryptoDigest.h:
817
818 2017-06-20  Zan Dobersek  <zdobersek@igalia.com>
819
820         [GCrypt] Implement CryptoKeyEC SPKI imports
821         https://bugs.webkit.org/show_bug.cgi?id=172927
822
823         Reviewed by Jiewen Tan, Michael Catanzaro and Carlos Garcia Campos.
824
825         Add a file that provides utility functions for operating with libtasn1 APIs.
826
827         The precomputed ASN.1 declarations, generated from the WebCrypto.asn file with
828         the asn1Parser tool, are used to enable construction of ASN.1 structures that
829         are then used to decode the SPKI or PKCS#8 data through the decodeStructure()
830         function. Raw data of each element in that structure can be retrieved throug the
831         elementData() function.
832
833         The Structure class is added as a wrapper for asn1_node objects that are used
834         as decoding targets, simplifying lifetime management of these objects.
835
836         * pal/PlatformGTK.cmake:
837         * pal/PlatformWPE.cmake:
838         * pal/crypto/tasn1/Utilities.cpp: Added.
839         (PAL::TASN1::asn1Definitions):
840         (PAL::TASN1::decodeStructure):
841         (PAL::TASN1::elementData):
842         * pal/crypto/tasn1/Utilities.h: Added.
843         (PAL::TASN1::Structure::~Structure):
844         (PAL::TASN1::Structure::operator&):
845         (PAL::TASN1::Structure::operator asn1_node):
846         * pal/crypto/tasn1/WebCrypto.asn: Added.
847
848 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
849
850         Disable font variations on macOS Sierra and iOS 10
851         https://bugs.webkit.org/show_bug.cgi?id=173618
852         <rdar://problem/32879164>
853
854         Reviewed by Jon Lee.
855
856         * Configurations/FeatureDefines.xcconfig:
857
858 2017-06-19  Zan Dobersek  <zdobersek@igalia.com>
859
860         Unreviewed build fix after r218484.
861
862         * pal/crypto/gcrypt/Utilities.h: Drop the GCrypt prefix from the
863         GCryptCipherOperation type definition, since it's already nested
864         in the PAL::GCrypt namespace.
865
866 2017-06-19  Zan Dobersek  <zdobersek@igalia.com>
867
868         [GCrypt] AES_CTR support
869         https://bugs.webkit.org/show_bug.cgi?id=171420
870
871         Reviewed by Michael Catanzaro.
872
873         * pal/crypto/gcrypt/Utilities.h: Add a GCryptCipherOperation type alias that can be used
874         for the gcry_cipher_decrypt or gcry_cipher_encrypt function pointers.
875
876 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
877
878         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
879         https://bugs.webkit.org/show_bug.cgi?id=173366
880         <rdar://problem/32767014>
881
882         Reviewed by Tim Horton.
883
884         Introduce ENABLE_DATA_INTERACTION and ENABLE_DRAG_SUPPORT to FeatureDefines.xcconfig.
885
886         * Configurations/FeatureDefines.xcconfig:
887
888 2017-06-10  Dan Bernstein  <mitz@apple.com>
889
890         Reverted r218056 because it made the IDE reindex constantly.
891
892         * Configurations/DebugRelease.xcconfig:
893
894 2017-06-10  Dan Bernstein  <mitz@apple.com>
895
896         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
897         https://bugs.webkit.org/show_bug.cgi?id=173223
898
899         Reviewed by Sam Weinig.
900
901         The rebuilds were happening due to a difference in the compiler options that the IDE and
902         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
903         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
904         specify an appropriate path in CLANG_INDEX_STORE_PATH.
905
906         * Configurations/DebugRelease.xcconfig:
907
908 2017-06-01  Andy Estes  <aestes@apple.com>
909
910         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
911         https://bugs.webkit.org/show_bug.cgi?id=172828
912
913         Reviewed by Beth Dakin.
914
915         * Configurations/FeatureDefines.xcconfig:
916
917 2017-05-31  Andy Estes  <aestes@apple.com>
918
919         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
920         https://bugs.webkit.org/show_bug.cgi?id=172366
921
922         Reviewed by Daniel Bates.
923
924         * Configurations/FeatureDefines.xcconfig:
925
926 2017-05-30  Alex Christensen  <achristensen@webkit.org>
927
928         Update libwebrtc configuration
929         https://bugs.webkit.org/show_bug.cgi?id=172727
930
931         Reviewed by Geoffrey Garen.
932
933         * Configurations/FeatureDefines.xcconfig:
934
935 2017-05-28  Dan Bernstein  <mitz@apple.com>
936
937         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
938         https://bugs.webkit.org/show_bug.cgi?id=172691
939
940         Reviewed by Tim Horton.
941
942         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
943
944 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
945
946         Remove dead ENABLE(FONT_LOAD_EVENTS) code
947         https://bugs.webkit.org/show_bug.cgi?id=172517
948
949         Rubber-stamped by Simon Fraser.
950
951         No new tests because there is no behavior change.
952
953         * Configurations/FeatureDefines.xcconfig:
954
955 2017-05-18  Andy Estes  <aestes@apple.com>
956
957         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
958         https://bugs.webkit.org/show_bug.cgi?id=172305
959
960         Reviewed by Anders Carlsson.
961
962         * Configurations/FeatureDefines.xcconfig:
963
964 2017-05-09  Sam Weinig  <sam@webkit.org>
965
966         Remove support for legacy Notifications
967         https://bugs.webkit.org/show_bug.cgi?id=171487
968
969         Reviewed by Jon Lee.
970
971         * Configurations/FeatureDefines.xcconfig:
972         Remove definition of ENABLE_LEGACY_NOTIFICATIONS.
973
974 2017-05-09  Zan Dobersek  <zdobersek@igalia.com>
975
976         Upstream the WPE port
977         https://bugs.webkit.org/show_bug.cgi?id=171110
978
979         Reviewed by Alex Christensen.
980
981         * pal/PlatformWPE.cmake: Added.
982
983 2017-05-04  Commit Queue  <commit-queue@webkit.org>
984
985         Unreviewed, rolling out r216206.
986         https://bugs.webkit.org/show_bug.cgi?id=171714
987
988         Multiple LayoutTests crashing in Document::page() (Requested
989         by ap on #webkit).
990
991         Reverted changeset:
992
993         "Remove support for legacy Notifications"
994         https://bugs.webkit.org/show_bug.cgi?id=171487
995         http://trac.webkit.org/changeset/216206
996
997 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
998
999         [Win] Remove redundant macros that are set in the CMake config
1000         https://bugs.webkit.org/show_bug.cgi?id=171571
1001
1002         Reviewed by Brent Fulgham.
1003
1004         No new tests. No change in behavior.
1005
1006         * config.h:
1007
1008 2017-05-04  Sam Weinig  <sam@webkit.org>
1009
1010         Remove support for legacy Notifications
1011         https://bugs.webkit.org/show_bug.cgi?id=171487
1012
1013         Reviewed by Jon Lee.
1014
1015         * Configurations/FeatureDefines.xcconfig:
1016         Remove definition of ENABLE_LEGACY_NOTIFICATIONS.
1017
1018 2017-05-02  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
1019
1020         Make "PAL/pal" and "PAL/pal/crypto" directories private
1021         https://bugs.webkit.org/show_bug.cgi?id=171524
1022
1023         Reviewed by Myles C. Maxfield.
1024
1025         Make the "PAL/pal" and "PAL/pal/crypto" directories private to force WebCore sources 
1026         to include PAL headers in "#include <pal/***.h>" style.
1027
1028         * pal/CMakeLists.txt:
1029
1030 2017-05-01  Zan Dobersek  <zdobersek@igalia.com>
1031
1032         [GCrypt] ECDH bit derivation support
1033         https://bugs.webkit.org/show_bug.cgi?id=171070
1034
1035         Reviewed by Michael Catanzaro.
1036
1037         Add PAL::GCrypt::HandleDeleter specialization for the
1038         gcry_mpi_point_t type.
1039
1040         * pal/crypto/gcrypt/Handle.h:
1041         (PAL::GCrypt::HandleDeleter<gcry_mpi_point_t>::operator()):
1042
1043 2017-04-25  Daniel Bates  <dabates@apple.com>
1044
1045         [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header
1046         https://bugs.webkit.org/show_bug.cgi?id=136452
1047         <rdar://problem/23412620>
1048
1049         Reviewed by Brent Fulgham.
1050
1051         Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms.
1052
1053         * Configurations/FeatureDefines.xcconfig:
1054
1055 2017-04-19  Youenn Fablet  <youenn@apple.com>
1056
1057         [Mac] Allow customizing H264 encoder
1058         https://bugs.webkit.org/show_bug.cgi?id=170829
1059
1060         Reviewed by Alex Christensen.
1061
1062         * Configurations/FeatureDefines.xcconfig:
1063
1064 2017-04-17  Youenn Fablet  <youenn@apple.com>
1065
1066         Disable outdated WritableStream API
1067         https://bugs.webkit.org/show_bug.cgi?id=170749
1068         <rdar://problem/31446233>
1069
1070         Reviewed by Alex Christensen.
1071
1072         * Configurations/FeatureDefines.xcconfig:
1073
1074 2017-04-14  Mark Lam  <mark.lam@apple.com>
1075
1076         Update architectures in xcconfig files.
1077         https://bugs.webkit.org/show_bug.cgi?id=170867
1078         <rdar://problem/31628104>
1079
1080         Reviewed by Joseph Pecoraro.
1081
1082         No new tests needed.  Only updating xcconfig files.
1083
1084         * Configurations/Base.xcconfig:
1085         * Configurations/FeatureDefines.xcconfig:
1086
1087 2017-04-12  Dan Bernstein  <mitz@apple.com>
1088
1089         [Mac] Future-proof .xcconfig files
1090         https://bugs.webkit.org/show_bug.cgi?id=170802
1091
1092         Reviewed by Tim Horton.
1093
1094         * Configurations/Base.xcconfig:
1095         * Configurations/DebugRelease.xcconfig:
1096         * Configurations/FeatureDefines.xcconfig:
1097         * Configurations/Version.xcconfig:
1098
1099 2017-04-11  Dean Jackson  <dino@apple.com>
1100
1101         Disable outdated WritableStream API
1102         https://bugs.webkit.org/show_bug.cgi?id=170749
1103         <rdar://problem/31446233>
1104
1105         Reviewed by Tim Horton.
1106
1107         The API we implement is no longer accurate. Disable it until we
1108         are compatible with the new specification
1109
1110         * Configurations/FeatureDefines.xcconfig:
1111
1112 2017-04-10  Alex Christensen  <achristensen@webkit.org>
1113
1114         Revert r215217
1115         https://bugs.webkit.org/show_bug.cgi?id=170703
1116
1117         * Configurations/FeatureDefines.xcconfig:
1118
1119 2017-04-10  Alex Christensen  <achristensen@webkit.org>
1120
1121         Continue enabling WebRTC
1122         https://bugs.webkit.org/show_bug.cgi?id=170703
1123
1124         Reviewed by Youenn Fablet.
1125
1126         * Configurations/FeatureDefines.xcconfig:
1127
1128 2017-04-08  Youenn Fablet  <youenn@apple.com>
1129
1130         WebRTC tests gardening
1131         https://bugs.webkit.org/show_bug.cgi?id=170508
1132
1133         Reviewed by Eric Carlson.
1134
1135         * Configurations/FeatureDefines.xcconfig:
1136
1137 2017-04-07  Zan Dobersek  <zdobersek@igalia.com>
1138
1139         [GCrypt] Implement raw and JWK imports and exports for EC keys
1140         https://bugs.webkit.org/show_bug.cgi?id=170546
1141
1142         Reviewed by Michael Catanzaro.
1143
1144         Add HandleDeleter specizalizations for gcry_ctx_t and gcry_mpi_t types.
1145
1146         * pal/crypto/gcrypt/Handle.h:
1147         (PAL::GCrypt::HandleDeleter<gcry_ctx_t>::operator()):
1148         (PAL::GCrypt::HandleDeleter<gcry_mpi_t>::operator()):
1149
1150 2017-04-06  Ryan Haddad  <ryanhaddad@apple.com>
1151
1152         Unreviewed, rolling out r215046.
1153
1154         This change broke internal builds.
1155
1156         Reverted changeset:
1157
1158         "WebRTC tests gardening"
1159         https://bugs.webkit.org/show_bug.cgi?id=170508
1160         http://trac.webkit.org/changeset/215046
1161
1162 2017-04-06  Youenn Fablet  <youenn@apple.com>
1163
1164         WebRTC tests gardening
1165         https://bugs.webkit.org/show_bug.cgi?id=170508
1166
1167         Reviewed by Eric Carlson.
1168
1169         * Configurations/FeatureDefines.xcconfig:
1170
1171 2017-04-03  Michael Catanzaro  <mcatanzaro@igalia.com>
1172
1173         Unreviewed, attempt to fix build with libgcrypt < 1.7.0
1174
1175         * pal/crypto/gcrypt/Utilities.h:
1176
1177 2017-04-03  Zan Dobersek  <zdobersek@igalia.com>
1178
1179         [GCrypt] Implement CryptoKeyEC::keySizeInBits(), ::platformGeneratePair()
1180         https://bugs.webkit.org/show_bug.cgi?id=170345
1181
1182         Reviewed by Michael Catanzaro.
1183
1184         * pal/crypto/gcrypt/Handle.h:
1185         (PAL::GCrypt::HandleDeleter<gcry_sexp_t>::operator()): Add a HandleDeleter
1186         specialization for the gcry_sexp_t type.
1187
1188 2017-04-03  Zan Dobersek  <zdobersek@igalia.com>
1189
1190         [GCrypt] Implement AES_GCM support
1191         https://bugs.webkit.org/show_bug.cgi?id=170271
1192
1193         Reviewed by Michael Catanzaro.
1194
1195         * pal/crypto/gcrypt/Handle.h:
1196         (PAL::GCrypt::HandleDeleter<gcry_cipher_hd_t>::operator()): Specialize
1197         the HandleDeleter<> template for the gcry_cipher_hd_t type.
1198
1199 2017-03-30  Zan Dobersek  <zdobersek@igalia.com>
1200
1201         [GCrypt] Add the Utilities.h header
1202         https://bugs.webkit.org/show_bug.cgi?id=170269
1203
1204         Reviewed by Michael Catanzaro.
1205
1206         Add a libgcrypt-specific Utilities.h header under PAL. It will contain
1207         common functions that are shared throughout the code that leverages
1208         libgcrypt.
1209
1210         * pal/crypto/gcrypt/Utilities.h: Added.
1211         (PAL::GCrypt::logError): Use WTFLogAlways() to report the passed-in libgcrypt error.
1212         (PAL::GCrypt::aesAlgorithmForKeySize): Return a GCRY_CIPHER_AES{128,192,256} value
1213         that matches up with the passed-in key size.
1214
1215 2017-03-29  Zan Dobersek  <zdobersek@igalia.com>
1216
1217         [GCrypt] Add a Handle<> class to help with GCrypt object lifetime control
1218         https://bugs.webkit.org/show_bug.cgi?id=170238
1219
1220         Reviewed by Michael Catanzaro.
1221
1222         Add a GCrypt-specific Handle<> template class, inside the GCrypt namespace.
1223         Objects of this class should be used as 'smart handles', cleaning up upon
1224         destruction the GCrypt object that's represented by the handle they manage.
1225
1226         This mimics the std::unique_ptr<> idea, but is narrowly focused towards
1227         how such handles are used in the libgcrypt API. A GCrypt::Handle<> object
1228         can be consturcted from an existing handle or with the default null value.
1229         It can be cleared upon request via clear(), and the managed handle can be
1230         released via release().
1231
1232         The address of the managed handle can be retrieved through the address-of
1233         operator. An implicit conversion operator is also added. This allows
1234         frictionless use of GCrypt::Handle<> objects with existing libgcrypt APIs.
1235
1236         The negation operator is implemented to support testing the nullness of
1237         the managed handle. The raw handle value is also retrieveable through
1238         the handle() method.
1239
1240         The copy and move constructors and assignment operators are deleted.
1241         They are not at the moment required anywhere in the work-in-progress
1242         implementation of subtle crypto functionality.
1243
1244         As with other resource management classes, upon destruction, the
1245         GCrypt::Handle<> object destroys the resource it manages. This is done
1246         through objects of the HandleDeleter<> template class. Specializations
1247         of this class have to implement the call operator that properly
1248         releases the resource. Because the operator is deleted by default,
1249         a compilation error will be thrown when deleting a resource of some
1250         type for which the proper HandleDeleter specialization isn't provided.
1251
1252         std::unique_ptr<> could be used, but it could also be mis-used. I find
1253         a mini-class with an interface that's specific to libgcrypt API
1254         interactions to be preferrable to a std::unique_ptr<> with a custom
1255         deleter.
1256
1257         * pal/crypto/gcrypt/Handle.h: Added.
1258         (PAL::GCrypt::Handle::Handle):
1259         (PAL::GCrypt::Handle::~Handle):
1260         (PAL::GCrypt::Handle::clear):
1261         (PAL::GCrypt::Handle::release):
1262         (PAL::GCrypt::Handle::operator&):
1263         (PAL::GCrypt::Handle::handle):
1264         (PAL::GCrypt::Handle::operator T):
1265         (PAL::GCrypt::Handle::operator!):
1266         (PAL::GCrypt::HandleDeleter<gcry_mac_hd_t>::operator()):
1267
1268 2017-03-29  Zan Dobersek  <zdobersek@igalia.com>
1269
1270         [GnuTLS] Remove unused CryptoDigestGnuTLS, CryptoAlgorithmHMACGnuTLS implementation files
1271         https://bugs.webkit.org/show_bug.cgi?id=170231
1272
1273         Reviewed by Michael Catanzaro.
1274
1275         * pal/crypto/gnutls/CryptoDigestGnuTLS.cpp: Removed. The GCrypt counterpart
1276         is already in use, and this file wasn't even being built.
1277
1278 2017-03-17  Michael Saboff  <msaboff@apple.com>
1279
1280         Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK
1281         https://bugs.webkit.org/show_bug.cgi?id=169817
1282
1283         Reviewed by Filip Pizlo.
1284
1285         * Configurations/FeatureDefines.xcconfig:
1286
1287 2017-03-15  Dean Jackson  <dino@apple.com>
1288
1289         Sort Xcode project files
1290         https://bugs.webkit.org/show_bug.cgi?id=169669
1291
1292         Reviewed by Antoine Quint.
1293
1294         * PAL.xcodeproj/project.pbxproj:
1295
1296 2017-03-10  Alex Christensen  <achristensen@webkit.org>
1297
1298         Fix watch and tv builds after r213294
1299         https://bugs.webkit.org/show_bug.cgi?id=169508
1300
1301         Reviewed by Dan Bernstein.
1302
1303         * Configurations/FeatureDefines.xcconfig:
1304
1305 2017-03-09  Anders Carlsson  <andersca@apple.com>
1306
1307         Add delegate support to WebCore
1308         https://bugs.webkit.org/show_bug.cgi?id=169427
1309         Part of rdar://problem/28880714.
1310
1311         Reviewed by Geoffrey Garen.
1312
1313         * Configurations/FeatureDefines.xcconfig:
1314         Add feature define.
1315
1316 2017-03-07  Dean Jackson  <dino@apple.com>
1317
1318         Some platforms won't be able to create a GPUDevice
1319         https://bugs.webkit.org/show_bug.cgi?id=169314
1320         <rdar://problems/30907521>
1321
1322         Reviewed by Jon Lee.
1323
1324         Disable WEB_GPU on the iOS Simulator.
1325
1326         * Configurations/FeatureDefines.xcconfig:
1327
1328 2017-03-06  Michael Saboff  <msaboff@apple.com>
1329
1330         Take advantage of fast permissions switching of JIT memory for devices that support it
1331         https://bugs.webkit.org/show_bug.cgi?id=169155
1332
1333         Reviewed by Saam Barati.
1334
1335         Updated the Xcode config files to match what is in the JavaScriptCore ones.
1336
1337         * Configurations/FeatureDefines.xcconfig:
1338
1339 2017-03-03  Dean Jackson  <dino@apple.com>
1340
1341         Add WebGPU compile flag and experimental feature flag
1342         https://bugs.webkit.org/show_bug.cgi?id=169161
1343         <rdar://problem/30846689>
1344
1345         Reviewed by Tim Horton.
1346
1347         Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature,
1348         and an InternalSetting.
1349
1350         * Configurations/FeatureDefines.xcconfig:
1351
1352 2017-03-02  Alex Christensen  <achristensen@webkit.org>
1353
1354         Continue enabling WebRTC
1355         https://bugs.webkit.org/show_bug.cgi?id=169056
1356
1357         Reviewed by Jon Lee.
1358
1359         * Configurations/FeatureDefines.xcconfig:
1360
1361 2017-03-01  Alex Christensen  <achristensen@webkit.org>
1362
1363         Unreviewed, rolling out r213259.
1364
1365         Broke an internal build
1366
1367         Reverted changeset:
1368
1369         "Continue enabling WebRTC"
1370         https://bugs.webkit.org/show_bug.cgi?id=169056
1371         http://trac.webkit.org/changeset/213259
1372
1373 2017-03-01  Alex Christensen  <achristensen@webkit.org>
1374
1375         Continue enabling WebRTC
1376         https://bugs.webkit.org/show_bug.cgi?id=169056
1377
1378         Reviewed by Jon Lee.
1379
1380         * Configurations/FeatureDefines.xcconfig:
1381
1382 2017-02-27  Alex Christensen  <achristensen@webkit.org>
1383
1384         Begin enabling WebRTC on 64-bit
1385         https://bugs.webkit.org/show_bug.cgi?id=168915
1386
1387         Reviewed by Eric Carlson.
1388
1389         * Configurations/FeatureDefines.xcconfig:
1390
1391 2017-02-27  Alex Christensen  <achristensen@webkit.org>
1392
1393         [libwebrtc] Enable WebRTC in some Production Builds
1394         https://bugs.webkit.org/show_bug.cgi?id=168858
1395
1396         * Configurations/FeatureDefines.xcconfig:
1397
1398 2017-02-21  Youenn Fablet  <youenn@apple.com>
1399
1400         [WebRTC][Mac] Activate libwebrtc
1401         https://bugs.webkit.org/show_bug.cgi?id=167293
1402
1403         Reviewed by Alex Christensen.
1404
1405         * Configurations/FeatureDefines.xcconfig:
1406
1407 2017-02-20  Manuel Rego Casasnovas  <rego@igalia.com>
1408
1409         [css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT
1410         https://bugs.webkit.org/show_bug.cgi?id=167693
1411
1412         Reviewed by Sergio Villar Senin.
1413
1414         * Configurations/FeatureDefines.xcconfig:
1415
1416 2017-02-16  Anders Carlsson  <andersca@apple.com>
1417
1418         Begin removing EFL code from WebCore.
1419
1420         Rubber-stamped by Alex Christensen.
1421
1422         * pal/PlatformEfl.cmake: Removed.
1423
1424 2017-01-28  Dan Bernstein  <mitz@apple.com>
1425
1426         [Xcode] Clean up PAL and WebCore’s build settings a little
1427         https://bugs.webkit.org/show_bug.cgi?id=167292
1428
1429         Reviewed by Sam Weinig.
1430
1431         * ChangeLog: Created this file.
1432
1433         * Configurations/Base.xcconfig: Simplified the definition of
1434           GCC_WARN_64_TO_32_BIT_CONVERSION, removed the unused build setting PREBINDING, removed
1435           a duplicate definition of GCC_GENERATE_DEBUGGING_SYMBOLS, and removed definitions specific
1436           to OS X versions that are no longer supported.
1437
1438         * Configurations/DebugRelease.xcconfig: Removed definitions specific to OS X versions
1439           that are no longer supported.
1440
1441         * Configurations/PAL.xcconfig: Removed header search paths that do not exist or do not
1442           make sense. Simplified the definitions of INSTALL_PATH and SKIP_INSTALL. Removed the
1443           unusued build settings PRODUCT_BUNDLE_IDENTIFIER and
1444           WK_PREFIXED_IPHONEOS_DEPLOYMENT_TARGET. Removed the redundant definition of
1445           EXECUTABLE_PREFIX.
1446
1447         * PAL.xcodeproj/project.pbxproj: Sorted the Configurations group.