f04694887010bebff7f251fe8161aefcd5118e11
[WebKit-https.git] / Source / WebCore / PAL / ChangeLog
1 2017-07-13  Per Arne Vollan  <pvollan@apple.com>
2
3         [Win] Build error when building WebCore from WebCore.proj project file.
4         https://bugs.webkit.org/show_bug.cgi?id=174462
5
6         Reviewed by Brent Fulgham.
7
8         Add required include directory to list of include directories.
9  
10         * pal/CMakeLists.txt:
11         * pal/PlatformWin.cmake:
12
13 2017-07-12  Matt Lewis  <jlewis3@apple.com>
14
15         Unreviewed, rolling out r219401.
16
17         This revision rolled out the previous patch, but after talking
18         with reviewer, a rebaseline is what was needed.Rolling back in
19         before rebaseline.
20
21         Reverted changeset:
22
23         "Unreviewed, rolling out r219379."
24         https://bugs.webkit.org/show_bug.cgi?id=174400
25         http://trac.webkit.org/changeset/219401
26
27 2017-07-12  Matt Lewis  <jlewis3@apple.com>
28
29         Unreviewed, rolling out r219379.
30
31         This revision caused a consistent failure in the test
32         fast/dom/Window/property-access-on-cached-window-after-frame-
33         removed.html.
34
35         Reverted changeset:
36
37         "Remove NAVIGATOR_HWCONCURRENCY"
38         https://bugs.webkit.org/show_bug.cgi?id=174400
39         http://trac.webkit.org/changeset/219379
40
41 2017-07-11  Per Arne Vollan  <pvollan@apple.com>
42
43         [Win] Build error when building WebKit.dll from WebKit.proj project file.
44         https://bugs.webkit.org/show_bug.cgi?id=174410
45
46         Reviewed by Brent Fulgham.
47
48         Copy required header files to forwarding headers folder.
49
50         * pal/PlatformWin.cmake:
51
52 2017-07-11  Dean Jackson  <dino@apple.com>
53
54         Remove NAVIGATOR_HWCONCURRENCY
55         https://bugs.webkit.org/show_bug.cgi?id=174400
56
57         Reviewed by Sam Weinig.
58
59         * Configurations/FeatureDefines.xcconfig:
60
61 2017-07-11  Dean Jackson  <dino@apple.com>
62
63         Rolling out r219372.
64
65         * Configurations/FeatureDefines.xcconfig:
66
67 2017-07-11  Dean Jackson  <dino@apple.com>
68
69         Remove NAVIGATOR_HWCONCURRENCY
70         https://bugs.webkit.org/show_bug.cgi?id=174400
71
72         Reviewed by Sam Weinig.
73
74         * Configurations/FeatureDefines.xcconfig:
75
76 2017-07-11  Per Arne Vollan  <pvollan@apple.com>
77
78         [Win] Build error when building WebCore from WebCore.proj project file.
79         https://bugs.webkit.org/show_bug.cgi?id=174330
80
81         Reviewed by Brent Fulgham.
82
83         CMAKE_BINARY_DIR is needed in the include list in order to find 'cmakeconfig.h'. 
84
85         * pal/CMakeLists.txt:
86
87 2017-07-03  Brian Burg  <bburg@apple.com>
88
89         Web Replay: remove some unused code
90         https://bugs.webkit.org/show_bug.cgi?id=173903
91
92         Rubber-stamped by Joseph Pecoraro.
93
94         * Configurations/FeatureDefines.xcconfig:
95
96 2017-07-08  Yusuke Suzuki  <utatane.tea@gmail.com>
97
98         Drop NOSNIFF compile flag
99         https://bugs.webkit.org/show_bug.cgi?id=174289
100
101         Reviewed by Michael Catanzaro.
102
103         * Configurations/FeatureDefines.xcconfig:
104
105 2017-07-06  Don Olmstead  <don.olmstead@sony.com>
106
107         [PAL] Move KillRing into PAL
108         https://bugs.webkit.org/show_bug.cgi?id=173900
109
110         Reviewed by Myles C. Maxfield.
111
112         No new tests. No change in functionality.
113
114         * Configurations/PAL.xcconfig:
115         * PAL.xcodeproj/project.pbxproj:
116         * pal/CMakeLists.txt:
117         * pal/PlatformGTK.cmake:
118         * pal/PlatformMac.cmake:
119         * pal/PlatformWPE.cmake:
120         * pal/PlatformWin.cmake:
121         * pal/text/KillRing.h: Renamed from Source/WebCore/platform/KillRing.h.
122         * pal/text/KillRingNone.cpp: Renamed from Source/WebCore/platform/KillRingNone.cpp.
123         * pal/text/mac/KillRingMac.mm: Renamed from Source/WebCore/platform/mac/KillRingMac.mm.
124
125 2017-07-05  Jonathan Bedard  <jbedard@apple.com>
126
127         Add WebKitPrivateFrameworkStubs for iOS 11
128         https://bugs.webkit.org/show_bug.cgi?id=173988
129
130         Reviewed by David Kilzer.
131
132         * Configurations/PAL.xcconfig: iphoneos and iphonesimulator should use the
133         same directory for private framework stubs.
134
135 2017-07-03  Sam Weinig  <sam@webkit.org>
136
137         [WebIDL] Remove more unnecessary uses of the preprocessor in idl files
138         https://bugs.webkit.org/show_bug.cgi?id=174083
139
140         Reviewed by Alex Christensen.
141
142         * Configurations/FeatureDefines.xcconfig:
143         Add ENABLE_NAVIGATOR_STANDALONE.
144
145 2017-07-03  Andy Estes  <aestes@apple.com>
146
147         [Xcode] Add an experimental setting to build with ccache
148         https://bugs.webkit.org/show_bug.cgi?id=173875
149
150         Reviewed by Tim Horton.
151
152         * Configurations/DebugRelease.xcconfig: Included ccache.xcconfig.
153
154 2017-07-03  Zan Dobersek  <zdobersek@igalia.com>
155
156         [GCrypt] Implement CryptoKeyEC SPKI exports
157         https://bugs.webkit.org/show_bug.cgi?id=173646
158
159         Reviewed by Jiewen Tan.
160
161         No new tests -- covered by existing Web Crypto tests.
162
163         Add three new libtasn1 utility functions.
164
165         createStructure() is a simple wrapper around asn1_create_element(), creating a new
166         ASN.1 structure for the specified definition that's listed in WebCrypto.asn. The
167         existing decodeStructure() is modified to use this new addition.
168
169         encodedData() retrieves the ASN.1-encoded data of the specified element that's
170         located in the passed-in asn1_node. This is used when retrieving SPKI or PKCS#8
171         data from filled-out ASN.1 structures.
172
173         writeElement() writes the provided data to the given asn1_node object under the
174         specified element, using the given size. True is returned if this operation was
175         successful.
176
177         * pal/crypto/tasn1/Utilities.cpp:
178         (PAL::TASN1::createStructure):
179         (PAL::TASN1::decodeStructure):
180         (PAL::TASN1::encodedData):
181         (PAL::TASN1::writeElement):
182         * pal/crypto/tasn1/Utilities.h:
183
184 2017-07-01  Dan Bernstein  <mitz@apple.com>
185
186         [iOS] Remove code only needed when building for iOS 9.x
187         https://bugs.webkit.org/show_bug.cgi?id=174068
188
189         Reviewed by Tim Horton.
190
191         * Configurations/FeatureDefines.xcconfig:
192
193 2017-07-01  Dan Bernstein  <mitz@apple.com>
194
195         [macOS] Remove code only needed when building for OS X Yosemite
196         https://bugs.webkit.org/show_bug.cgi?id=174067
197
198         Reviewed by Tim Horton.
199
200         * Configurations/Base.xcconfig:
201         * Configurations/DebugRelease.xcconfig:
202         * Configurations/FeatureDefines.xcconfig:
203         * Configurations/Version.xcconfig:
204
205 2017-06-29  Jer Noble  <jer.noble@apple.com>
206
207         Make Legacy EME API controlled by RuntimeEnabled setting.
208         https://bugs.webkit.org/show_bug.cgi?id=173994
209
210         Reviewed by Sam Weinig.
211
212         * Configurations/FeatureDefines.xcconfig:
213
214 2017-06-30  Ross Kirsling  <ross.kirsling@sony.com>
215
216         [PAL] Move Sound into PAL
217         https://bugs.webkit.org/show_bug.cgi?id=173999
218
219         Reviewed by Alex Christensen.
220
221         * Configurations/PAL.xcconfig:
222         * PAL.xcodeproj/project.pbxproj:
223         * pal/CMakeLists.txt:
224         * pal/PlatformGTK.cmake:
225         * pal/PlatformMac.cmake:
226         * pal/PlatformWPE.cmake:
227         * pal/PlatformWin.cmake:
228         * pal/system/Sound.h: Renamed from Source/WebCore/platform/ios/SoundIOS.mm.
229         * pal/system/SoundNone.cpp: Renamed from Source/WebCore/platform/wpe/SoundWPE.cpp.
230         (PAL::systemBeep):
231         * pal/system/gtk/SoundGtk.cpp: Renamed from Source/WebCore/platform/gtk/SoundGtk.cpp.
232         * pal/system/mac/SoundMac.mm: Renamed from Source/WebCore/platform/mac/SoundMac.mm.
233         * pal/system/win/SoundWin.cpp: Renamed from Source/WebCore/platform/win/SoundWin.cpp.
234
235 2017-06-28  Jonathan Bedard  <jbedard@apple.com>
236
237         Build fix for PAL
238         https://bugs.webkit.org/show_bug.cgi?id=173896
239
240         Reviewed by Dan Bernstein.
241
242         Remove the workaround build fix in r218863.
243
244         * PAL.xcodeproj/project.pbxproj: We should be using PROJECT_DIR instead of SRCROOT
245         when in a nested Xcode project.
246
247 2017-06-27  Jonathan Bedard  <jbedard@apple.com>
248
249         Build fix for PAL
250         https://bugs.webkit.org/show_bug.cgi?id=173896
251
252         Reviewed by Myles C. Maxfield.
253
254         * PAL.xcodeproj/project.pbxproj: Ensure that the SRCROOT is WebCore/PAL and not
255         just WebCore.
256
257 2017-06-27  Don Olmstead  <don.olmstead@sony.com>
258
259         [PAL] Add symbol export macros for PAL
260         https://bugs.webkit.org/show_bug.cgi?id=171519
261
262         Reviewed by Konstantin Tokarev.
263
264         No new tests. No change in behavior.
265
266         * Configurations/CopyPALHeaders.xcconfig: Added.
267         * PAL.xcodeproj/project.pbxproj:
268         * config.h:
269         * pal/ExportMacros.h: Copied from Source/WebCore/platform/PlatformExportMacros.h.
270         * pal/PlatformWin.cmake:
271         * pal/crypto/CryptoDigest.h:
272
273 2017-06-20  Zan Dobersek  <zdobersek@igalia.com>
274
275         [GCrypt] Implement CryptoKeyEC SPKI imports
276         https://bugs.webkit.org/show_bug.cgi?id=172927
277
278         Reviewed by Jiewen Tan, Michael Catanzaro and Carlos Garcia Campos.
279
280         Add a file that provides utility functions for operating with libtasn1 APIs.
281
282         The precomputed ASN.1 declarations, generated from the WebCrypto.asn file with
283         the asn1Parser tool, are used to enable construction of ASN.1 structures that
284         are then used to decode the SPKI or PKCS#8 data through the decodeStructure()
285         function. Raw data of each element in that structure can be retrieved throug the
286         elementData() function.
287
288         The Structure class is added as a wrapper for asn1_node objects that are used
289         as decoding targets, simplifying lifetime management of these objects.
290
291         * pal/PlatformGTK.cmake:
292         * pal/PlatformWPE.cmake:
293         * pal/crypto/tasn1/Utilities.cpp: Added.
294         (PAL::TASN1::asn1Definitions):
295         (PAL::TASN1::decodeStructure):
296         (PAL::TASN1::elementData):
297         * pal/crypto/tasn1/Utilities.h: Added.
298         (PAL::TASN1::Structure::~Structure):
299         (PAL::TASN1::Structure::operator&):
300         (PAL::TASN1::Structure::operator asn1_node):
301         * pal/crypto/tasn1/WebCrypto.asn: Added.
302
303 2017-06-20  Myles C. Maxfield  <mmaxfield@apple.com>
304
305         Disable font variations on macOS Sierra and iOS 10
306         https://bugs.webkit.org/show_bug.cgi?id=173618
307         <rdar://problem/32879164>
308
309         Reviewed by Jon Lee.
310
311         * Configurations/FeatureDefines.xcconfig:
312
313 2017-06-19  Zan Dobersek  <zdobersek@igalia.com>
314
315         Unreviewed build fix after r218484.
316
317         * pal/crypto/gcrypt/Utilities.h: Drop the GCrypt prefix from the
318         GCryptCipherOperation type definition, since it's already nested
319         in the PAL::GCrypt namespace.
320
321 2017-06-19  Zan Dobersek  <zdobersek@igalia.com>
322
323         [GCrypt] AES_CTR support
324         https://bugs.webkit.org/show_bug.cgi?id=171420
325
326         Reviewed by Michael Catanzaro.
327
328         * pal/crypto/gcrypt/Utilities.h: Add a GCryptCipherOperation type alias that can be used
329         for the gcry_cipher_decrypt or gcry_cipher_encrypt function pointers.
330
331 2017-06-16  Wenson Hsieh  <wenson_hsieh@apple.com>
332
333         [iOS DnD] Upstream iOS drag and drop implementation into OpenSource WebKit
334         https://bugs.webkit.org/show_bug.cgi?id=173366
335         <rdar://problem/32767014>
336
337         Reviewed by Tim Horton.
338
339         Introduce ENABLE_DATA_INTERACTION and ENABLE_DRAG_SUPPORT to FeatureDefines.xcconfig.
340
341         * Configurations/FeatureDefines.xcconfig:
342
343 2017-06-10  Dan Bernstein  <mitz@apple.com>
344
345         Reverted r218056 because it made the IDE reindex constantly.
346
347         * Configurations/DebugRelease.xcconfig:
348
349 2017-06-10  Dan Bernstein  <mitz@apple.com>
350
351         [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
352         https://bugs.webkit.org/show_bug.cgi?id=173223
353
354         Reviewed by Sam Weinig.
355
356         The rebuilds were happening due to a difference in the compiler options that the IDE and
357         xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
358         xcodebuild pass that option, too, set CLANG_INDEX_STORE_ENABLE to YES if it is unset, and
359         specify an appropriate path in CLANG_INDEX_STORE_PATH.
360
361         * Configurations/DebugRelease.xcconfig:
362
363 2017-06-01  Andy Estes  <aestes@apple.com>
364
365         REGRESSION (r217626): ENABLE_APPLE_PAY_SESSION_V3 was disabled by mistake
366         https://bugs.webkit.org/show_bug.cgi?id=172828
367
368         Reviewed by Beth Dakin.
369
370         * Configurations/FeatureDefines.xcconfig:
371
372 2017-05-31  Andy Estes  <aestes@apple.com>
373
374         Rename ENABLE_APPLE_PAY_DELEGATE to ENABLE_APPLE_PAY_SESSION_V3 and bump the supported version number
375         https://bugs.webkit.org/show_bug.cgi?id=172366
376
377         Reviewed by Daniel Bates.
378
379         * Configurations/FeatureDefines.xcconfig:
380
381 2017-05-30  Alex Christensen  <achristensen@webkit.org>
382
383         Update libwebrtc configuration
384         https://bugs.webkit.org/show_bug.cgi?id=172727
385
386         Reviewed by Geoffrey Garen.
387
388         * Configurations/FeatureDefines.xcconfig:
389
390 2017-05-28  Dan Bernstein  <mitz@apple.com>
391
392         [Xcode] ALWAYS_SEARCH_USER_PATHS is set to YES
393         https://bugs.webkit.org/show_bug.cgi?id=172691
394
395         Reviewed by Tim Horton.
396
397         * Configurations/Base.xcconfig: Set ALWAYS_SEARCH_USER_PATHS to NO.
398
399 2017-05-23  Myles C. Maxfield  <mmaxfield@apple.com>
400
401         Remove dead ENABLE(FONT_LOAD_EVENTS) code
402         https://bugs.webkit.org/show_bug.cgi?id=172517
403
404         Rubber-stamped by Simon Fraser.
405
406         No new tests because there is no behavior change.
407
408         * Configurations/FeatureDefines.xcconfig:
409
410 2017-05-18  Andy Estes  <aestes@apple.com>
411
412         ENABLE(APPLE_PAY_DELEGATE) should be NO on macOS Sierra and earlier
413         https://bugs.webkit.org/show_bug.cgi?id=172305
414
415         Reviewed by Anders Carlsson.
416
417         * Configurations/FeatureDefines.xcconfig:
418
419 2017-05-09  Sam Weinig  <sam@webkit.org>
420
421         Remove support for legacy Notifications
422         https://bugs.webkit.org/show_bug.cgi?id=171487
423
424         Reviewed by Jon Lee.
425
426         * Configurations/FeatureDefines.xcconfig:
427         Remove definition of ENABLE_LEGACY_NOTIFICATIONS.
428
429 2017-05-09  Zan Dobersek  <zdobersek@igalia.com>
430
431         Upstream the WPE port
432         https://bugs.webkit.org/show_bug.cgi?id=171110
433
434         Reviewed by Alex Christensen.
435
436         * pal/PlatformWPE.cmake: Added.
437
438 2017-05-04  Commit Queue  <commit-queue@webkit.org>
439
440         Unreviewed, rolling out r216206.
441         https://bugs.webkit.org/show_bug.cgi?id=171714
442
443         Multiple LayoutTests crashing in Document::page() (Requested
444         by ap on #webkit).
445
446         Reverted changeset:
447
448         "Remove support for legacy Notifications"
449         https://bugs.webkit.org/show_bug.cgi?id=171487
450         http://trac.webkit.org/changeset/216206
451
452 2017-05-04  Don Olmstead  <don.olmstead@am.sony.com>
453
454         [Win] Remove redundant macros that are set in the CMake config
455         https://bugs.webkit.org/show_bug.cgi?id=171571
456
457         Reviewed by Brent Fulgham.
458
459         No new tests. No change in behavior.
460
461         * config.h:
462
463 2017-05-04  Sam Weinig  <sam@webkit.org>
464
465         Remove support for legacy Notifications
466         https://bugs.webkit.org/show_bug.cgi?id=171487
467
468         Reviewed by Jon Lee.
469
470         * Configurations/FeatureDefines.xcconfig:
471         Remove definition of ENABLE_LEGACY_NOTIFICATIONS.
472
473 2017-05-02  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
474
475         Make "PAL/pal" and "PAL/pal/crypto" directories private
476         https://bugs.webkit.org/show_bug.cgi?id=171524
477
478         Reviewed by Myles C. Maxfield.
479
480         Make the "PAL/pal" and "PAL/pal/crypto" directories private to force WebCore sources 
481         to include PAL headers in "#include <pal/***.h>" style.
482
483         * pal/CMakeLists.txt:
484
485 2017-05-01  Zan Dobersek  <zdobersek@igalia.com>
486
487         [GCrypt] ECDH bit derivation support
488         https://bugs.webkit.org/show_bug.cgi?id=171070
489
490         Reviewed by Michael Catanzaro.
491
492         Add PAL::GCrypt::HandleDeleter specialization for the
493         gcry_mpi_point_t type.
494
495         * pal/crypto/gcrypt/Handle.h:
496         (PAL::GCrypt::HandleDeleter<gcry_mpi_point_t>::operator()):
497
498 2017-04-25  Daniel Bates  <dabates@apple.com>
499
500         [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header
501         https://bugs.webkit.org/show_bug.cgi?id=136452
502         <rdar://problem/23412620>
503
504         Reviewed by Brent Fulgham.
505
506         Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms.
507
508         * Configurations/FeatureDefines.xcconfig:
509
510 2017-04-19  Youenn Fablet  <youenn@apple.com>
511
512         [Mac] Allow customizing H264 encoder
513         https://bugs.webkit.org/show_bug.cgi?id=170829
514
515         Reviewed by Alex Christensen.
516
517         * Configurations/FeatureDefines.xcconfig:
518
519 2017-04-17  Youenn Fablet  <youenn@apple.com>
520
521         Disable outdated WritableStream API
522         https://bugs.webkit.org/show_bug.cgi?id=170749
523         <rdar://problem/31446233>
524
525         Reviewed by Alex Christensen.
526
527         * Configurations/FeatureDefines.xcconfig:
528
529 2017-04-14  Mark Lam  <mark.lam@apple.com>
530
531         Update architectures in xcconfig files.
532         https://bugs.webkit.org/show_bug.cgi?id=170867
533         <rdar://problem/31628104>
534
535         Reviewed by Joseph Pecoraro.
536
537         No new tests needed.  Only updating xcconfig files.
538
539         * Configurations/Base.xcconfig:
540         * Configurations/FeatureDefines.xcconfig:
541
542 2017-04-12  Dan Bernstein  <mitz@apple.com>
543
544         [Mac] Future-proof .xcconfig files
545         https://bugs.webkit.org/show_bug.cgi?id=170802
546
547         Reviewed by Tim Horton.
548
549         * Configurations/Base.xcconfig:
550         * Configurations/DebugRelease.xcconfig:
551         * Configurations/FeatureDefines.xcconfig:
552         * Configurations/Version.xcconfig:
553
554 2017-04-11  Dean Jackson  <dino@apple.com>
555
556         Disable outdated WritableStream API
557         https://bugs.webkit.org/show_bug.cgi?id=170749
558         <rdar://problem/31446233>
559
560         Reviewed by Tim Horton.
561
562         The API we implement is no longer accurate. Disable it until we
563         are compatible with the new specification
564
565         * Configurations/FeatureDefines.xcconfig:
566
567 2017-04-10  Alex Christensen  <achristensen@webkit.org>
568
569         Revert r215217
570         https://bugs.webkit.org/show_bug.cgi?id=170703
571
572         * Configurations/FeatureDefines.xcconfig:
573
574 2017-04-10  Alex Christensen  <achristensen@webkit.org>
575
576         Continue enabling WebRTC
577         https://bugs.webkit.org/show_bug.cgi?id=170703
578
579         Reviewed by Youenn Fablet.
580
581         * Configurations/FeatureDefines.xcconfig:
582
583 2017-04-08  Youenn Fablet  <youenn@apple.com>
584
585         WebRTC tests gardening
586         https://bugs.webkit.org/show_bug.cgi?id=170508
587
588         Reviewed by Eric Carlson.
589
590         * Configurations/FeatureDefines.xcconfig:
591
592 2017-04-07  Zan Dobersek  <zdobersek@igalia.com>
593
594         [GCrypt] Implement raw and JWK imports and exports for EC keys
595         https://bugs.webkit.org/show_bug.cgi?id=170546
596
597         Reviewed by Michael Catanzaro.
598
599         Add HandleDeleter specizalizations for gcry_ctx_t and gcry_mpi_t types.
600
601         * pal/crypto/gcrypt/Handle.h:
602         (PAL::GCrypt::HandleDeleter<gcry_ctx_t>::operator()):
603         (PAL::GCrypt::HandleDeleter<gcry_mpi_t>::operator()):
604
605 2017-04-06  Ryan Haddad  <ryanhaddad@apple.com>
606
607         Unreviewed, rolling out r215046.
608
609         This change broke internal builds.
610
611         Reverted changeset:
612
613         "WebRTC tests gardening"
614         https://bugs.webkit.org/show_bug.cgi?id=170508
615         http://trac.webkit.org/changeset/215046
616
617 2017-04-06  Youenn Fablet  <youenn@apple.com>
618
619         WebRTC tests gardening
620         https://bugs.webkit.org/show_bug.cgi?id=170508
621
622         Reviewed by Eric Carlson.
623
624         * Configurations/FeatureDefines.xcconfig:
625
626 2017-04-03  Michael Catanzaro  <mcatanzaro@igalia.com>
627
628         Unreviewed, attempt to fix build with libgcrypt < 1.7.0
629
630         * pal/crypto/gcrypt/Utilities.h:
631
632 2017-04-03  Zan Dobersek  <zdobersek@igalia.com>
633
634         [GCrypt] Implement CryptoKeyEC::keySizeInBits(), ::platformGeneratePair()
635         https://bugs.webkit.org/show_bug.cgi?id=170345
636
637         Reviewed by Michael Catanzaro.
638
639         * pal/crypto/gcrypt/Handle.h:
640         (PAL::GCrypt::HandleDeleter<gcry_sexp_t>::operator()): Add a HandleDeleter
641         specialization for the gcry_sexp_t type.
642
643 2017-04-03  Zan Dobersek  <zdobersek@igalia.com>
644
645         [GCrypt] Implement AES_GCM support
646         https://bugs.webkit.org/show_bug.cgi?id=170271
647
648         Reviewed by Michael Catanzaro.
649
650         * pal/crypto/gcrypt/Handle.h:
651         (PAL::GCrypt::HandleDeleter<gcry_cipher_hd_t>::operator()): Specialize
652         the HandleDeleter<> template for the gcry_cipher_hd_t type.
653
654 2017-03-30  Zan Dobersek  <zdobersek@igalia.com>
655
656         [GCrypt] Add the Utilities.h header
657         https://bugs.webkit.org/show_bug.cgi?id=170269
658
659         Reviewed by Michael Catanzaro.
660
661         Add a libgcrypt-specific Utilities.h header under PAL. It will contain
662         common functions that are shared throughout the code that leverages
663         libgcrypt.
664
665         * pal/crypto/gcrypt/Utilities.h: Added.
666         (PAL::GCrypt::logError): Use WTFLogAlways() to report the passed-in libgcrypt error.
667         (PAL::GCrypt::aesAlgorithmForKeySize): Return a GCRY_CIPHER_AES{128,192,256} value
668         that matches up with the passed-in key size.
669
670 2017-03-29  Zan Dobersek  <zdobersek@igalia.com>
671
672         [GCrypt] Add a Handle<> class to help with GCrypt object lifetime control
673         https://bugs.webkit.org/show_bug.cgi?id=170238
674
675         Reviewed by Michael Catanzaro.
676
677         Add a GCrypt-specific Handle<> template class, inside the GCrypt namespace.
678         Objects of this class should be used as 'smart handles', cleaning up upon
679         destruction the GCrypt object that's represented by the handle they manage.
680
681         This mimics the std::unique_ptr<> idea, but is narrowly focused towards
682         how such handles are used in the libgcrypt API. A GCrypt::Handle<> object
683         can be consturcted from an existing handle or with the default null value.
684         It can be cleared upon request via clear(), and the managed handle can be
685         released via release().
686
687         The address of the managed handle can be retrieved through the address-of
688         operator. An implicit conversion operator is also added. This allows
689         frictionless use of GCrypt::Handle<> objects with existing libgcrypt APIs.
690
691         The negation operator is implemented to support testing the nullness of
692         the managed handle. The raw handle value is also retrieveable through
693         the handle() method.
694
695         The copy and move constructors and assignment operators are deleted.
696         They are not at the moment required anywhere in the work-in-progress
697         implementation of subtle crypto functionality.
698
699         As with other resource management classes, upon destruction, the
700         GCrypt::Handle<> object destroys the resource it manages. This is done
701         through objects of the HandleDeleter<> template class. Specializations
702         of this class have to implement the call operator that properly
703         releases the resource. Because the operator is deleted by default,
704         a compilation error will be thrown when deleting a resource of some
705         type for which the proper HandleDeleter specialization isn't provided.
706
707         std::unique_ptr<> could be used, but it could also be mis-used. I find
708         a mini-class with an interface that's specific to libgcrypt API
709         interactions to be preferrable to a std::unique_ptr<> with a custom
710         deleter.
711
712         * pal/crypto/gcrypt/Handle.h: Added.
713         (PAL::GCrypt::Handle::Handle):
714         (PAL::GCrypt::Handle::~Handle):
715         (PAL::GCrypt::Handle::clear):
716         (PAL::GCrypt::Handle::release):
717         (PAL::GCrypt::Handle::operator&):
718         (PAL::GCrypt::Handle::handle):
719         (PAL::GCrypt::Handle::operator T):
720         (PAL::GCrypt::Handle::operator!):
721         (PAL::GCrypt::HandleDeleter<gcry_mac_hd_t>::operator()):
722
723 2017-03-29  Zan Dobersek  <zdobersek@igalia.com>
724
725         [GnuTLS] Remove unused CryptoDigestGnuTLS, CryptoAlgorithmHMACGnuTLS implementation files
726         https://bugs.webkit.org/show_bug.cgi?id=170231
727
728         Reviewed by Michael Catanzaro.
729
730         * pal/crypto/gnutls/CryptoDigestGnuTLS.cpp: Removed. The GCrypt counterpart
731         is already in use, and this file wasn't even being built.
732
733 2017-03-17  Michael Saboff  <msaboff@apple.com>
734
735         Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK
736         https://bugs.webkit.org/show_bug.cgi?id=169817
737
738         Reviewed by Filip Pizlo.
739
740         * Configurations/FeatureDefines.xcconfig:
741
742 2017-03-15  Dean Jackson  <dino@apple.com>
743
744         Sort Xcode project files
745         https://bugs.webkit.org/show_bug.cgi?id=169669
746
747         Reviewed by Antoine Quint.
748
749         * PAL.xcodeproj/project.pbxproj:
750
751 2017-03-10  Alex Christensen  <achristensen@webkit.org>
752
753         Fix watch and tv builds after r213294
754         https://bugs.webkit.org/show_bug.cgi?id=169508
755
756         Reviewed by Dan Bernstein.
757
758         * Configurations/FeatureDefines.xcconfig:
759
760 2017-03-09  Anders Carlsson  <andersca@apple.com>
761
762         Add delegate support to WebCore
763         https://bugs.webkit.org/show_bug.cgi?id=169427
764         Part of rdar://problem/28880714.
765
766         Reviewed by Geoffrey Garen.
767
768         * Configurations/FeatureDefines.xcconfig:
769         Add feature define.
770
771 2017-03-07  Dean Jackson  <dino@apple.com>
772
773         Some platforms won't be able to create a GPUDevice
774         https://bugs.webkit.org/show_bug.cgi?id=169314
775         <rdar://problems/30907521>
776
777         Reviewed by Jon Lee.
778
779         Disable WEB_GPU on the iOS Simulator.
780
781         * Configurations/FeatureDefines.xcconfig:
782
783 2017-03-06  Michael Saboff  <msaboff@apple.com>
784
785         Take advantage of fast permissions switching of JIT memory for devices that support it
786         https://bugs.webkit.org/show_bug.cgi?id=169155
787
788         Reviewed by Saam Barati.
789
790         Updated the Xcode config files to match what is in the JavaScriptCore ones.
791
792         * Configurations/FeatureDefines.xcconfig:
793
794 2017-03-03  Dean Jackson  <dino@apple.com>
795
796         Add WebGPU compile flag and experimental feature flag
797         https://bugs.webkit.org/show_bug.cgi?id=169161
798         <rdar://problem/30846689>
799
800         Reviewed by Tim Horton.
801
802         Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature,
803         and an InternalSetting.
804
805         * Configurations/FeatureDefines.xcconfig:
806
807 2017-03-02  Alex Christensen  <achristensen@webkit.org>
808
809         Continue enabling WebRTC
810         https://bugs.webkit.org/show_bug.cgi?id=169056
811
812         Reviewed by Jon Lee.
813
814         * Configurations/FeatureDefines.xcconfig:
815
816 2017-03-01  Alex Christensen  <achristensen@webkit.org>
817
818         Unreviewed, rolling out r213259.
819
820         Broke an internal build
821
822         Reverted changeset:
823
824         "Continue enabling WebRTC"
825         https://bugs.webkit.org/show_bug.cgi?id=169056
826         http://trac.webkit.org/changeset/213259
827
828 2017-03-01  Alex Christensen  <achristensen@webkit.org>
829
830         Continue enabling WebRTC
831         https://bugs.webkit.org/show_bug.cgi?id=169056
832
833         Reviewed by Jon Lee.
834
835         * Configurations/FeatureDefines.xcconfig:
836
837 2017-02-27  Alex Christensen  <achristensen@webkit.org>
838
839         Begin enabling WebRTC on 64-bit
840         https://bugs.webkit.org/show_bug.cgi?id=168915
841
842         Reviewed by Eric Carlson.
843
844         * Configurations/FeatureDefines.xcconfig:
845
846 2017-02-27  Alex Christensen  <achristensen@webkit.org>
847
848         [libwebrtc] Enable WebRTC in some Production Builds
849         https://bugs.webkit.org/show_bug.cgi?id=168858
850
851         * Configurations/FeatureDefines.xcconfig:
852
853 2017-02-21  Youenn Fablet  <youenn@apple.com>
854
855         [WebRTC][Mac] Activate libwebrtc
856         https://bugs.webkit.org/show_bug.cgi?id=167293
857
858         Reviewed by Alex Christensen.
859
860         * Configurations/FeatureDefines.xcconfig:
861
862 2017-02-20  Manuel Rego Casasnovas  <rego@igalia.com>
863
864         [css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT
865         https://bugs.webkit.org/show_bug.cgi?id=167693
866
867         Reviewed by Sergio Villar Senin.
868
869         * Configurations/FeatureDefines.xcconfig:
870
871 2017-02-16  Anders Carlsson  <andersca@apple.com>
872
873         Begin removing EFL code from WebCore.
874
875         Rubber-stamped by Alex Christensen.
876
877         * pal/PlatformEfl.cmake: Removed.
878
879 2017-01-28  Dan Bernstein  <mitz@apple.com>
880
881         [Xcode] Clean up PAL and WebCore’s build settings a little
882         https://bugs.webkit.org/show_bug.cgi?id=167292
883
884         Reviewed by Sam Weinig.
885
886         * ChangeLog: Created this file.
887
888         * Configurations/Base.xcconfig: Simplified the definition of
889           GCC_WARN_64_TO_32_BIT_CONVERSION, removed the unused build setting PREBINDING, removed
890           a duplicate definition of GCC_GENERATE_DEBUGGING_SYMBOLS, and removed definitions specific
891           to OS X versions that are no longer supported.
892
893         * Configurations/DebugRelease.xcconfig: Removed definitions specific to OS X versions
894           that are no longer supported.
895
896         * Configurations/PAL.xcconfig: Removed header search paths that do not exist or do not
897           make sense. Simplified the definitions of INSTALL_PATH and SKIP_INSTALL. Removed the
898           unusued build settings PRODUCT_BUNDLE_IDENTIFIER and
899           WK_PREFIXED_IPHONEOS_DEPLOYMENT_TARGET. Removed the redundant definition of
900           EXECUTABLE_PREFIX.
901
902         * PAL.xcodeproj/project.pbxproj: Sorted the Configurations group.