2017-05-09 Sam Weinig Remove support for legacy Notifications https://bugs.webkit.org/show_bug.cgi?id=171487 Reviewed by Jon Lee. * Configurations/FeatureDefines.xcconfig: Remove definition of ENABLE_LEGACY_NOTIFICATIONS. 2017-05-09 Zan Dobersek Upstream the WPE port https://bugs.webkit.org/show_bug.cgi?id=171110 Reviewed by Alex Christensen. * pal/PlatformWPE.cmake: Added. 2017-05-04 Commit Queue Unreviewed, rolling out r216206. https://bugs.webkit.org/show_bug.cgi?id=171714 Multiple LayoutTests crashing in Document::page() (Requested by ap on #webkit). Reverted changeset: "Remove support for legacy Notifications" https://bugs.webkit.org/show_bug.cgi?id=171487 http://trac.webkit.org/changeset/216206 2017-05-04 Don Olmstead [Win] Remove redundant macros that are set in the CMake config https://bugs.webkit.org/show_bug.cgi?id=171571 Reviewed by Brent Fulgham. No new tests. No change in behavior. * config.h: 2017-05-04 Sam Weinig Remove support for legacy Notifications https://bugs.webkit.org/show_bug.cgi?id=171487 Reviewed by Jon Lee. * Configurations/FeatureDefines.xcconfig: Remove definition of ENABLE_LEGACY_NOTIFICATIONS. 2017-05-02 Yoshiaki Jitsukawa Make "PAL/pal" and "PAL/pal/crypto" directories private https://bugs.webkit.org/show_bug.cgi?id=171524 Reviewed by Myles C. Maxfield. Make the "PAL/pal" and "PAL/pal/crypto" directories private to force WebCore sources to include PAL headers in "#include " style. * pal/CMakeLists.txt: 2017-05-01 Zan Dobersek [GCrypt] ECDH bit derivation support https://bugs.webkit.org/show_bug.cgi?id=171070 Reviewed by Michael Catanzaro. Add PAL::GCrypt::HandleDeleter specialization for the gcry_mpi_point_t type. * pal/crypto/gcrypt/Handle.h: (PAL::GCrypt::HandleDeleter::operator()): 2017-04-25 Daniel Bates [Cocoa][Win] Enable of X-Content-Type-Options: nosniff header https://bugs.webkit.org/show_bug.cgi?id=136452 Reviewed by Brent Fulgham. Enable X-Content-Type-Options: nosniff on Mac, iOS and Windows platforms. * Configurations/FeatureDefines.xcconfig: 2017-04-19 Youenn Fablet [Mac] Allow customizing H264 encoder https://bugs.webkit.org/show_bug.cgi?id=170829 Reviewed by Alex Christensen. * Configurations/FeatureDefines.xcconfig: 2017-04-17 Youenn Fablet Disable outdated WritableStream API https://bugs.webkit.org/show_bug.cgi?id=170749 Reviewed by Alex Christensen. * Configurations/FeatureDefines.xcconfig: 2017-04-14 Mark Lam Update architectures in xcconfig files. https://bugs.webkit.org/show_bug.cgi?id=170867 Reviewed by Joseph Pecoraro. No new tests needed. Only updating xcconfig files. * Configurations/Base.xcconfig: * Configurations/FeatureDefines.xcconfig: 2017-04-12 Dan Bernstein [Mac] Future-proof .xcconfig files https://bugs.webkit.org/show_bug.cgi?id=170802 Reviewed by Tim Horton. * Configurations/Base.xcconfig: * Configurations/DebugRelease.xcconfig: * Configurations/FeatureDefines.xcconfig: * Configurations/Version.xcconfig: 2017-04-11 Dean Jackson Disable outdated WritableStream API https://bugs.webkit.org/show_bug.cgi?id=170749 Reviewed by Tim Horton. The API we implement is no longer accurate. Disable it until we are compatible with the new specification * Configurations/FeatureDefines.xcconfig: 2017-04-10 Alex Christensen Revert r215217 https://bugs.webkit.org/show_bug.cgi?id=170703 * Configurations/FeatureDefines.xcconfig: 2017-04-10 Alex Christensen Continue enabling WebRTC https://bugs.webkit.org/show_bug.cgi?id=170703 Reviewed by Youenn Fablet. * Configurations/FeatureDefines.xcconfig: 2017-04-08 Youenn Fablet WebRTC tests gardening https://bugs.webkit.org/show_bug.cgi?id=170508 Reviewed by Eric Carlson. * Configurations/FeatureDefines.xcconfig: 2017-04-07 Zan Dobersek [GCrypt] Implement raw and JWK imports and exports for EC keys https://bugs.webkit.org/show_bug.cgi?id=170546 Reviewed by Michael Catanzaro. Add HandleDeleter specizalizations for gcry_ctx_t and gcry_mpi_t types. * pal/crypto/gcrypt/Handle.h: (PAL::GCrypt::HandleDeleter::operator()): (PAL::GCrypt::HandleDeleter::operator()): 2017-04-06 Ryan Haddad Unreviewed, rolling out r215046. This change broke internal builds. Reverted changeset: "WebRTC tests gardening" https://bugs.webkit.org/show_bug.cgi?id=170508 http://trac.webkit.org/changeset/215046 2017-04-06 Youenn Fablet WebRTC tests gardening https://bugs.webkit.org/show_bug.cgi?id=170508 Reviewed by Eric Carlson. * Configurations/FeatureDefines.xcconfig: 2017-04-03 Michael Catanzaro Unreviewed, attempt to fix build with libgcrypt < 1.7.0 * pal/crypto/gcrypt/Utilities.h: 2017-04-03 Zan Dobersek [GCrypt] Implement CryptoKeyEC::keySizeInBits(), ::platformGeneratePair() https://bugs.webkit.org/show_bug.cgi?id=170345 Reviewed by Michael Catanzaro. * pal/crypto/gcrypt/Handle.h: (PAL::GCrypt::HandleDeleter::operator()): Add a HandleDeleter specialization for the gcry_sexp_t type. 2017-04-03 Zan Dobersek [GCrypt] Implement AES_GCM support https://bugs.webkit.org/show_bug.cgi?id=170271 Reviewed by Michael Catanzaro. * pal/crypto/gcrypt/Handle.h: (PAL::GCrypt::HandleDeleter::operator()): Specialize the HandleDeleter<> template for the gcry_cipher_hd_t type. 2017-03-30 Zan Dobersek [GCrypt] Add the Utilities.h header https://bugs.webkit.org/show_bug.cgi?id=170269 Reviewed by Michael Catanzaro. Add a libgcrypt-specific Utilities.h header under PAL. It will contain common functions that are shared throughout the code that leverages libgcrypt. * pal/crypto/gcrypt/Utilities.h: Added. (PAL::GCrypt::logError): Use WTFLogAlways() to report the passed-in libgcrypt error. (PAL::GCrypt::aesAlgorithmForKeySize): Return a GCRY_CIPHER_AES{128,192,256} value that matches up with the passed-in key size. 2017-03-29 Zan Dobersek [GCrypt] Add a Handle<> class to help with GCrypt object lifetime control https://bugs.webkit.org/show_bug.cgi?id=170238 Reviewed by Michael Catanzaro. Add a GCrypt-specific Handle<> template class, inside the GCrypt namespace. Objects of this class should be used as 'smart handles', cleaning up upon destruction the GCrypt object that's represented by the handle they manage. This mimics the std::unique_ptr<> idea, but is narrowly focused towards how such handles are used in the libgcrypt API. A GCrypt::Handle<> object can be consturcted from an existing handle or with the default null value. It can be cleared upon request via clear(), and the managed handle can be released via release(). The address of the managed handle can be retrieved through the address-of operator. An implicit conversion operator is also added. This allows frictionless use of GCrypt::Handle<> objects with existing libgcrypt APIs. The negation operator is implemented to support testing the nullness of the managed handle. The raw handle value is also retrieveable through the handle() method. The copy and move constructors and assignment operators are deleted. They are not at the moment required anywhere in the work-in-progress implementation of subtle crypto functionality. As with other resource management classes, upon destruction, the GCrypt::Handle<> object destroys the resource it manages. This is done through objects of the HandleDeleter<> template class. Specializations of this class have to implement the call operator that properly releases the resource. Because the operator is deleted by default, a compilation error will be thrown when deleting a resource of some type for which the proper HandleDeleter specialization isn't provided. std::unique_ptr<> could be used, but it could also be mis-used. I find a mini-class with an interface that's specific to libgcrypt API interactions to be preferrable to a std::unique_ptr<> with a custom deleter. * pal/crypto/gcrypt/Handle.h: Added. (PAL::GCrypt::Handle::Handle): (PAL::GCrypt::Handle::~Handle): (PAL::GCrypt::Handle::clear): (PAL::GCrypt::Handle::release): (PAL::GCrypt::Handle::operator&): (PAL::GCrypt::Handle::handle): (PAL::GCrypt::Handle::operator T): (PAL::GCrypt::Handle::operator!): (PAL::GCrypt::HandleDeleter::operator()): 2017-03-29 Zan Dobersek [GnuTLS] Remove unused CryptoDigestGnuTLS, CryptoAlgorithmHMACGnuTLS implementation files https://bugs.webkit.org/show_bug.cgi?id=170231 Reviewed by Michael Catanzaro. * pal/crypto/gnutls/CryptoDigestGnuTLS.cpp: Removed. The GCrypt counterpart is already in use, and this file wasn't even being built. 2017-03-17 Michael Saboff Use USE_INTERNAL_SDK to compute ENABLE_FAST_JIT_PERMISSIONS instead of HAVE_INTERNAL_SDK https://bugs.webkit.org/show_bug.cgi?id=169817 Reviewed by Filip Pizlo. * Configurations/FeatureDefines.xcconfig: 2017-03-15 Dean Jackson Sort Xcode project files https://bugs.webkit.org/show_bug.cgi?id=169669 Reviewed by Antoine Quint. * PAL.xcodeproj/project.pbxproj: 2017-03-10 Alex Christensen Fix watch and tv builds after r213294 https://bugs.webkit.org/show_bug.cgi?id=169508 Reviewed by Dan Bernstein. * Configurations/FeatureDefines.xcconfig: 2017-03-09 Anders Carlsson Add delegate support to WebCore https://bugs.webkit.org/show_bug.cgi?id=169427 Part of rdar://problem/28880714. Reviewed by Geoffrey Garen. * Configurations/FeatureDefines.xcconfig: Add feature define. 2017-03-07 Dean Jackson Some platforms won't be able to create a GPUDevice https://bugs.webkit.org/show_bug.cgi?id=169314 Reviewed by Jon Lee. Disable WEB_GPU on the iOS Simulator. * Configurations/FeatureDefines.xcconfig: 2017-03-06 Michael Saboff Take advantage of fast permissions switching of JIT memory for devices that support it https://bugs.webkit.org/show_bug.cgi?id=169155 Reviewed by Saam Barati. Updated the Xcode config files to match what is in the JavaScriptCore ones. * Configurations/FeatureDefines.xcconfig: 2017-03-03 Dean Jackson Add WebGPU compile flag and experimental feature flag https://bugs.webkit.org/show_bug.cgi?id=169161 Reviewed by Tim Horton. Add ENABLE_WEBGPU, an experimental feature flag, a RuntimeEnabledFeature, and an InternalSetting. * Configurations/FeatureDefines.xcconfig: 2017-03-02 Alex Christensen Continue enabling WebRTC https://bugs.webkit.org/show_bug.cgi?id=169056 Reviewed by Jon Lee. * Configurations/FeatureDefines.xcconfig: 2017-03-01 Alex Christensen Unreviewed, rolling out r213259. Broke an internal build Reverted changeset: "Continue enabling WebRTC" https://bugs.webkit.org/show_bug.cgi?id=169056 http://trac.webkit.org/changeset/213259 2017-03-01 Alex Christensen Continue enabling WebRTC https://bugs.webkit.org/show_bug.cgi?id=169056 Reviewed by Jon Lee. * Configurations/FeatureDefines.xcconfig: 2017-02-27 Alex Christensen Begin enabling WebRTC on 64-bit https://bugs.webkit.org/show_bug.cgi?id=168915 Reviewed by Eric Carlson. * Configurations/FeatureDefines.xcconfig: 2017-02-27 Alex Christensen [libwebrtc] Enable WebRTC in some Production Builds https://bugs.webkit.org/show_bug.cgi?id=168858 * Configurations/FeatureDefines.xcconfig: 2017-02-21 Youenn Fablet [WebRTC][Mac] Activate libwebrtc https://bugs.webkit.org/show_bug.cgi?id=167293 Reviewed by Alex Christensen. * Configurations/FeatureDefines.xcconfig: 2017-02-20 Manuel Rego Casasnovas [css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT https://bugs.webkit.org/show_bug.cgi?id=167693 Reviewed by Sergio Villar Senin. * Configurations/FeatureDefines.xcconfig: 2017-02-16 Anders Carlsson Begin removing EFL code from WebCore. Rubber-stamped by Alex Christensen. * pal/PlatformEfl.cmake: Removed. 2017-01-28 Dan Bernstein [Xcode] Clean up PAL and WebCore’s build settings a little https://bugs.webkit.org/show_bug.cgi?id=167292 Reviewed by Sam Weinig. * ChangeLog: Created this file. * Configurations/Base.xcconfig: Simplified the definition of GCC_WARN_64_TO_32_BIT_CONVERSION, removed the unused build setting PREBINDING, removed a duplicate definition of GCC_GENERATE_DEBUGGING_SYMBOLS, and removed definitions specific to OS X versions that are no longer supported. * Configurations/DebugRelease.xcconfig: Removed definitions specific to OS X versions that are no longer supported. * Configurations/PAL.xcconfig: Removed header search paths that do not exist or do not make sense. Simplified the definitions of INSTALL_PATH and SKIP_INSTALL. Removed the unusued build settings PRODUCT_BUNDLE_IDENTIFIER and WK_PREFIXED_IPHONEOS_DEPLOYMENT_TARGET. Removed the redundant definition of EXECUTABLE_PREFIX. * PAL.xcodeproj/project.pbxproj: Sorted the Configurations group.