Changeset 282307 in webkit
- Timestamp:
- Sep 11, 2021, 4:34:42 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 30 edited
-
ChangeLog (modified) (1 diff)
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/glib/TestExpectations (modified) (1 diff)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/glib/GRefPtr.cpp (modified) (1 diff)
-
Source/WTF/wtf/glib/GRefPtr.h (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/mediasession/MediaImage.h (modified) (1 diff)
-
Source/WebCore/Modules/mediasession/MediaSession.cpp (modified) (1 diff)
-
Source/WebCore/Modules/mediasession/MediaSession.h (modified) (1 diff)
-
Source/WebCore/PlatformGTK.cmake (modified) (2 diffs)
-
Source/WebCore/PlatformWPE.cmake (modified) (2 diffs)
-
Source/WebCore/platform/LogInitialization.cpp (modified) (1 diff)
-
Source/WebCore/platform/PlatformScreen.h (modified) (1 diff)
-
Source/WebCore/platform/RemoteCommandListener.cpp (modified) (2 diffs)
-
Source/WebCore/platform/SourcesGLib.txt (modified) (1 diff)
-
Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp (modified) (1 diff)
-
Source/WebCore/platform/audio/glib/MediaSessionManagerGLib.cpp (added)
-
Source/WebCore/platform/audio/glib/MediaSessionManagerGLib.h (added)
-
Source/WebCore/platform/glib/ApplicationGLib.cpp (added)
-
Source/WebCore/platform/glib/ApplicationGLib.h (added)
-
Source/WebCore/platform/glib/RemoteCommandListenerGLib.cpp (added)
-
Source/WebCore/platform/glib/RemoteCommandListenerGLib.h (added)
-
Source/WebCore/platform/graphics/ImageFrame.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/ImageOrientation.h (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Shared/WebProcessCreationParameters.cpp (modified) (2 diffs)
-
Source/WebKit/Shared/WebProcessCreationParameters.h (modified) (1 diff)
-
Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp (modified) (1 diff)
-
Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp (modified) (4 diffs)
-
Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp (modified) (1 diff)
-
Source/WebKit/WebProcess/glib/WebProcessGLib.cpp (modified) (2 diffs)
-
Source/cmake/OptionsGTK.cmake (modified) (1 diff)
-
Source/cmake/OptionsWPE.cmake (modified) (1 diff)
-
Source/cmake/WebKitFeatures.cmake (modified) (1 diff)
-
Tools/Scripts/webkitpy/style/checker.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r282181 r282307 1 2021-09-11 Philippe Normand <pnormand@igalia.com> 2 3 [GLIB] MediaSession is not enabled 4 https://bugs.webkit.org/show_bug.cgi?id=217991 5 <rdar://problem/70740119> 6 7 Reviewed by Michael Catanzaro. 8 9 Enable MediaSession as an experimental build feature in CMake ports. The spec status is 10 currently Draft. 11 12 * Source/cmake/OptionsGTK.cmake: 13 * Source/cmake/OptionsWPE.cmake: 14 * Source/cmake/WebKitFeatures.cmake: 15 1 16 2021-09-08 Justin Michaud <justin_michaud@apple.com> 2 17 -
trunk/LayoutTests/ChangeLog
r282306 r282307 1 2021-09-11 Philippe Normand <pnormand@igalia.com> 2 3 [GLIB] MediaSession is not enabled 4 https://bugs.webkit.org/show_bug.cgi?id=217991 5 <rdar://problem/70740119> 6 7 Reviewed by Michael Catanzaro. 8 9 * platform/glib/TestExpectations: Unskip media-session tests. 10 1 11 2021-09-10 Alan Bujtas <zalan@apple.com> 2 12 -
trunk/LayoutTests/platform/glib/TestExpectations
r282205 r282307 1418 1418 # Failing since added in r268138. 1419 1419 webkit.org/b/217815 imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-filter-order.html [ ImageOnlyFailure ] 1420 1421 # MediaSession is not enabled in GTK/WPE.1422 webkit.org/b/217991 imported/w3c/web-platform-tests/mediasession/ [ Skip ]1423 webkit.org/b/217991 media/media-session/ [ Skip ]1424 webkit.org/b/217991 fast/mediasession/ [ Skip ]1425 1420 1426 1421 # This test uses an MPEG-4 video -
trunk/Source/WTF/ChangeLog
r282303 r282307 1 2021-09-11 Philippe Normand <pnormand@igalia.com> 2 3 [GLIB] MediaSession is not enabled 4 https://bugs.webkit.org/show_bug.cgi?id=217991 5 <rdar://problem/70740119> 6 7 Reviewed by Michael Catanzaro. 8 9 GRefPtr template specialization for GDBusNodeInfo. 10 11 * wtf/glib/GRefPtr.cpp: 12 (WTF::refGPtr): 13 (WTF::derefGPtr): 14 * wtf/glib/GRefPtr.h: 15 1 16 2021-09-10 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WTF/wtf/glib/GRefPtr.cpp
r273236 r282307 196 196 } 197 197 198 template <> GDBusNodeInfo* refGPtr(GDBusNodeInfo* ptr) 199 { 200 if (ptr) 201 g_dbus_node_info_ref(ptr); 202 return ptr; 203 } 204 205 template <> void derefGPtr(GDBusNodeInfo* ptr) 206 { 207 if (ptr) 208 g_dbus_node_info_unref(ptr); 209 } 210 198 211 #if HAVE(GURI) 199 212 template <> GUri* refGPtr(GUri* ptr) -
trunk/Source/WTF/wtf/glib/GRefPtr.h
r273236 r282307 25 25 #if USE(GLIB) 26 26 27 #include <wtf/HashTraits.h>28 27 #include <algorithm> 29 28 #include <glib.h> 30 29 #include <wtf/HashTraits.h> 30 31 extern "C" { 32 typedef struct _GDBusNodeInfo GDBusNodeInfo; 33 GDBusNodeInfo* g_dbus_node_info_ref(GDBusNodeInfo*); 34 void g_dbus_node_info_unref(GDBusNodeInfo*); 35 }; 31 36 extern "C" void g_object_unref(gpointer); 32 37 extern "C" gpointer g_object_ref_sink(gpointer); … … 243 248 template <> WTF_EXPORT_PRIVATE GDateTime* refGPtr(GDateTime* ptr); 244 249 template <> WTF_EXPORT_PRIVATE void derefGPtr(GDateTime* ptr); 250 template <> WTF_EXPORT_PRIVATE GDBusNodeInfo* refGPtr(GDBusNodeInfo* ptr); 251 template <> WTF_EXPORT_PRIVATE void derefGPtr(GDBusNodeInfo* ptr); 245 252 246 253 #if HAVE(GURI) -
trunk/Source/WebCore/ChangeLog
r282306 r282307 1 2021-09-11 Philippe Normand <pnormand@igalia.com> 2 3 [GLIB] MediaSession is not enabled 4 https://bugs.webkit.org/show_bug.cgi?id=217991 5 <rdar://problem/70740119> 6 7 Reviewed by Michael Catanzaro. 8 9 Implementation of a GLib MediaSessionManager, able to provide a MPRIS DBus service, so that 10 third-party host tools can query the media playback status and potentially emit remote 11 control commands as well. 12 13 Covered by media-session layout tests now unskipped. 14 15 * Modules/mediasession/MediaImage.h: 16 * Modules/mediasession/MediaSession.cpp: 17 (WebCore::logChannel): 18 (WebCore::logClassName): 19 * Modules/mediasession/MediaSession.h: 20 * PlatformGTK.cmake: 21 * PlatformWPE.cmake: 22 * platform/LogInitialization.cpp: 23 (WebCore::getLogChannel): 24 * platform/PlatformScreen.h: 25 * platform/RemoteCommandListener.cpp: 26 (WebCore::RemoteCommandListener::resetCreationFunction): 27 * platform/SourcesGLib.txt: 28 * platform/audio/PlatformMediaSessionManager.cpp: 29 * platform/audio/glib/MediaSessionManagerGLib.cpp: Added. 30 (WebCore::PlatformMediaSessionManager::create): 31 (WebCore::MediaSessionManagerGLib::MediaSessionManagerGLib): 32 (WebCore::MediaSessionManagerGLib::~MediaSessionManagerGLib): 33 (WebCore::getCommand): 34 (WebCore::handleMethodCall): 35 (WebCore::getProperty): 36 (WebCore::handleGetProperty): 37 (WebCore::handleSetProperty): 38 (WebCore::MediaSessionManagerGLib::setupMpris): 39 (WebCore::MediaSessionManagerGLib::busAcquired): 40 (WebCore::MediaSessionManagerGLib::nameLost): 41 (WebCore::MediaSessionManagerGLib::beginInterruption): 42 (WebCore::MediaSessionManagerGLib::scheduleSessionStatusUpdate): 43 (WebCore::MediaSessionManagerGLib::sessionWillBeginPlayback): 44 (WebCore::MediaSessionManagerGLib::sessionDidEndRemoteScrubbing): 45 (WebCore::MediaSessionManagerGLib::addSession): 46 (WebCore::MediaSessionManagerGLib::removeSession): 47 (WebCore::MediaSessionManagerGLib::setCurrentSession): 48 (WebCore::MediaSessionManagerGLib::sessionWillEndPlayback): 49 (WebCore::MediaSessionManagerGLib::sessionStateChanged): 50 (WebCore::MediaSessionManagerGLib::clientCharacteristicsChanged): 51 (WebCore::MediaSessionManagerGLib::sessionCanProduceAudioChanged): 52 (WebCore::MediaSessionManagerGLib::addSupportedCommand): 53 (WebCore::MediaSessionManagerGLib::removeSupportedCommand): 54 (WebCore::MediaSessionManagerGLib::nowPlayingEligibleSession): 55 (WebCore::MediaSessionManagerGLib::updateNowPlayingInfo): 56 (WebCore::MediaSessionManagerGLib::getPlaybackStatusAsGVariant): 57 (WebCore::MediaSessionManagerGLib::getActiveSessionPosition): 58 (WebCore::MediaSessionManagerGLib::dispatch): 59 (WebCore::MediaSessionManagerGLib::emitPropertiesChanged): 60 * platform/audio/glib/MediaSessionManagerGLib.h: Added. 61 (WebCore::MediaSessionManagerGLib::nameAcquired): 62 (WebCore::MediaSessionManagerGLib::getMetadataAsGVariant const): 63 (WebCore::MediaSessionManagerGLib::providePresentingApplicationPIDIfNecessary): 64 * platform/glib/ApplicationGLib.cpp: Added. 65 (WebCore::setApplicationName): 66 (WebCore::getApplicationName): 67 (WebCore::setApplicationID): 68 (WebCore::getApplicationID): 69 * platform/glib/ApplicationGLib.h: Added. 70 * platform/glib/RemoteCommandListenerGLib.cpp: Added. 71 (WebCore::RemoteCommandListenerGLib::create): 72 (WebCore::RemoteCommandListenerGLib::updateSupportedCommands): 73 (WebCore::RemoteCommandListenerGLib::RemoteCommandListenerGLib): 74 * platform/glib/RemoteCommandListenerGLib.h: Added. 75 * platform/graphics/ImageFrame.h: 76 * platform/graphics/ImageOrientation.h: 77 1 78 2021-09-10 Alan Bujtas <zalan@apple.com> 2 79 -
trunk/Source/WebCore/Modules/mediasession/MediaImage.h
r278253 r282307 27 27 28 28 #if ENABLE(MEDIA_SESSION) 29 30 #include <wtf/Forward.h> 31 #include <wtf/text/WTFString.h> 29 32 30 33 namespace WebCore { -
trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp
r281013 r282307 52 52 } 53 53 54 static WTFLogChannel& logChannel() { return LogMedia; } 55 static const char* logClassName() { return "MediaSession"; } 54 #if !RELEASE_LOG_DISABLED 55 static WTFLogChannel& logChannel() 56 { 57 return LogMedia; 58 } 59 60 static const char* logClassName() 61 { 62 return "MediaSession"; 63 } 64 #endif 56 65 57 66 static PlatformMediaSession::RemoteControlCommandType platformCommandForMediaSessionAction(MediaSessionAction action) -
trunk/Source/WebCore/Modules/mediasession/MediaSession.h
r279786 r282307 94 94 WEBCORE_EXPORT bool callActionHandler(const MediaSessionActionDetails&, TriggerGestureIndicator = TriggerGestureIndicator::Yes); 95 95 96 #if !RELEASE_LOG_DISABLED 96 97 const Logger& logger() const { return *m_logger.get(); } 98 #endif 97 99 98 100 class Observer : public CanMakeWeakPtr<Observer> { -
trunk/Source/WebCore/PlatformGTK.cmake
r281333 r282307 27 27 "${WEBCORE_DIR}/page/gtk" 28 28 "${WEBCORE_DIR}/platform/adwaita" 29 "${WEBCORE_DIR}/platform/audio/glib" 29 30 "${WEBCORE_DIR}/platform/generic" 31 "${WEBCORE_DIR}/platform/glib" 30 32 "${WEBCORE_DIR}/platform/gtk" 31 33 "${WEBCORE_DIR}/platform/graphics/egl" … … 53 55 list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS 54 56 platform/adwaita/ScrollbarThemeAdwaita.h 57 58 platform/glib/ApplicationGLib.h 55 59 56 60 platform/graphics/x11/PlatformDisplayX11.h -
trunk/Source/WebCore/PlatformWPE.cmake
r279987 r282307 20 20 "${WEBCORE_DIR}/accessibility/atk" 21 21 "${WEBCORE_DIR}/platform/adwaita" 22 "${WEBCORE_DIR}/platform/audio/glib" 23 "${WEBCORE_DIR}/platform/glib" 22 24 "${WEBCORE_DIR}/platform/graphics/egl" 23 25 "${WEBCORE_DIR}/platform/graphics/epoxy" … … 37 39 38 40 list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS 41 platform/glib/ApplicationGLib.h 42 39 43 platform/graphics/wayland/PlatformDisplayWayland.h 40 44 platform/graphics/wayland/WlUniquePtr.h -
trunk/Source/WebCore/platform/LogInitialization.cpp
r280758 r282307 66 66 WTFLogChannel* getLogChannel(const String& name) 67 67 { 68 UNUSED_PARAM(name); 68 69 return nullptr; 69 70 } -
trunk/Source/WebCore/platform/PlatformScreen.h
r280976 r282307 47 47 #if USE(CG) 48 48 typedef struct CGColorSpace *CGColorSpaceRef; 49 #endif 50 51 // X11 headers define a bunch of macros with common terms, interfering with WebCore and WTF enum values. 52 // As a workaround, we explicitly undef them here. 53 #if defined(None) 54 #undef None 49 55 #endif 50 56 -
trunk/Source/WebCore/platform/RemoteCommandListener.cpp
r278392 r282307 31 31 #endif 32 32 33 #if USE(GLIB) 34 #include "RemoteCommandListenerGLib.h" 35 #endif 36 33 37 namespace WebCore { 34 38 … … 49 53 #if PLATFORM(COCOA) 50 54 return RemoteCommandListenerCocoa::create(client); 55 #elif USE(GLIB) 56 return RemoteCommandListenerGLib::create(client); 51 57 #else 52 return RemoteCommandListener::create(client); 58 UNUSED_PARAM(client); 59 return nullptr; 53 60 #endif 54 61 }; -
trunk/Source/WebCore/platform/SourcesGLib.txt
r271452 r282307 23 23 24 24 platform/audio/glib/AudioBusGLib.cpp 25 platform/audio/glib/MediaSessionManagerGLib.cpp 25 26 27 platform/glib/ApplicationGLib.cpp 26 28 platform/glib/FileMonitorGLib.cpp 27 29 platform/glib/KeyedDecoderGlib.cpp 28 30 platform/glib/KeyedEncoderGlib.cpp 29 31 platform/glib/LowPowerModeNotifierGLib.cpp 32 platform/glib/RemoteCommandListenerGLib.cpp 30 33 platform/glib/SharedBufferGlib.cpp 31 34 platform/glib/UserAgentGLib.cpp -
trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp
r280702 r282307 75 75 } 76 76 77 #if !PLATFORM(COCOA) 77 #if !PLATFORM(COCOA) && !USE(GLIB) 78 78 std::unique_ptr<PlatformMediaSessionManager> PlatformMediaSessionManager::create() 79 79 { 80 80 return std::unique_ptr<PlatformMediaSessionManager>(new PlatformMediaSessionManager); 81 81 } 82 #endif // !PLATFORM(COCOA) 82 #endif // !PLATFORM(COCOA) && !USE(GLIB) 83 83 84 84 void PlatformMediaSessionManager::updateNowPlayingInfoIfNecessary() -
trunk/Source/WebCore/platform/graphics/ImageFrame.h
r278338 r282307 33 33 #include "NativeImage.h" 34 34 #include <wtf/Seconds.h> 35 36 // X11 headers define a bunch of macros with common terms, interfering with WebCore and WTF enum values. 37 // As a workaround, we explicitly undef them here. 38 #if defined(None) 39 #undef None 40 #endif 35 41 36 42 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/ImageOrientation.h
r253249 r282307 30 30 #include "FloatSize.h" 31 31 #include <wtf/EnumTraits.h> 32 33 // X11 headers define a bunch of macros with common terms, interfering with WebCore and WTF enum values. 34 // As a workaround, we explicitly undef them here. 35 #if defined(None) 36 #undef None 37 #endif 32 38 33 39 namespace WebCore { -
trunk/Source/WebKit/ChangeLog
r282305 r282307 1 2021-09-11 Philippe Normand <pnormand@igalia.com> 2 3 [GLIB] MediaSession is not enabled 4 https://bugs.webkit.org/show_bug.cgi?id=217991 5 <rdar://problem/70740119> 6 7 Reviewed by Michael Catanzaro. 8 9 Pass Application name and unique ID from the UIProcess to the WebProcess in WPE and GTK 10 ports. The Bubblewrap launcher was also adapted to allow DBus MPRIS name ownership in the 11 sandboxed WebProcess. 12 13 * Shared/WebProcessCreationParameters.cpp: 14 (WebKit::WebProcessCreationParameters::encode const): 15 (WebKit::WebProcessCreationParameters::decode): 16 * Shared/WebProcessCreationParameters.h: 17 * UIProcess/API/glib/WebKitSettings.cpp: 18 (webKitSettingsConstructed): 19 * UIProcess/Launcher/glib/BubblewrapLauncher.cpp: 20 (WebKit::applicationId): 21 (WebKit::createFlatpakInfo): 22 (WebKit::XDGDBusProxyLauncher::launch): 23 * UIProcess/glib/WebProcessPoolGLib.cpp: 24 (WebKit::WebProcessPool::platformInitializeWebProcess): 25 * WebProcess/glib/WebProcessGLib.cpp: 26 (WebKit::WebProcess::platformInitializeWebProcess): 27 1 28 2021-09-10 Chris Dumez <cdumez@apple.com> 2 29 -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp
r281832 r282307 215 215 encoder << memoryPressureHandlerConfiguration; 216 216 #endif 217 #if USE(GLIB) 218 encoder << applicationID; 219 encoder << applicationName; 220 #endif 217 221 } 218 222 … … 588 592 #endif 589 593 594 #if USE(GLIB) 595 if (!decoder.decode(parameters.applicationID)) 596 return false; 597 if (!decoder.decode(parameters.applicationName)) 598 return false; 599 #endif 600 590 601 return true; 591 602 } -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.h
r281832 r282307 261 261 std::optional<MemoryPressureHandler::Configuration> memoryPressureHandlerConfiguration; 262 262 #endif 263 264 #if USE(GLIB) 265 String applicationID; 266 String applicationName; 267 #endif 263 268 }; 264 269 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
r281085 r282307 197 197 #endif 198 198 #endif 199 200 // FIXME: Expose API for this when this feature is officially non-experimental. 201 #if ENABLE(MEDIA_SESSION) 202 prefs->setMediaSessionEnabled(true); 203 prefs->setMediaSessionCoordinatorEnabled(true); 204 prefs->setMediaSessionPlaylistEnabled(true); 205 #endif 199 206 } 200 207 -
trunk/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp
r279369 r282307 131 131 } 132 132 133 static const char* applicationId(GError** error) 134 { 135 GApplication* app = g_application_get_default(); 136 if (!app) { 137 g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA, "GApplication is required."); 138 return nullptr; 139 } 140 141 const char* appID = g_application_get_application_id(app); 142 if (!appID) { 143 g_set_error_literal(error, G_IO_ERROR, G_IO_ERROR_INVALID_DATA, "GApplication must have a valid ID."); 144 return nullptr; 145 } 146 return appID; 147 } 148 133 149 static int createFlatpakInfo() 134 150 { … … 139 155 // xdg-desktop-portal relates your name to certain permissions so we want 140 156 // them to be application unique which is best done via GApplication. 141 GApplication* app = g_application_get_default(); 142 if (!app) 143 g_error("GApplication is required for xdg-desktop-portal access in the WebKit sandbox."); 144 145 const char* appID = g_application_get_application_id(app); 157 GUniqueOutPtr<GError> error; 158 const char* appID = applicationId(&error.outPtr()); 146 159 if (!appID) 147 g_error(" GApplication must have a valid ID for xdg-desktop-portal access in the WebKit sandbox.");160 g_error("Unable to configure xdg-desktop-portal access in the WebKit sandbox: %s", error->message); 148 161 149 162 GUniquePtr<GKeyFile> keyFile(g_key_file_new()); … … 208 221 proxyArgs.append("--log"); 209 222 223 GUniqueOutPtr<GError> error; 224 #if ENABLE(MEDIA_SESSION) 225 const char* appID = applicationId(&error.outPtr()); 226 if (!appID) 227 g_warning("Unable to own D-Bus MPRIS name in the WebKit sandbox: %s", error->message); 228 229 auto mprisSessionID = makeString("--own=org.mpris.MediaPlayer2.", appID); 230 proxyArgs.append(mprisSessionID.ascii().data()); 231 #endif 232 210 233 proxyArgs.appendVector(m_permissions); 211 234 … … 237 260 ProcessLauncher::LaunchOptions launchOptions; 238 261 launchOptions.processType = ProcessLauncher::ProcessType::DBusProxy; 239 GUniqueOutPtr<GError> error;240 262 GRefPtr<GSubprocess> process = bubblewrapSpawn(launcher.get(), launchOptions, argv, &error.outPtr()); 241 263 if (!process.get()) -
trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
r280155 r282307 110 110 111 111 parameters.memoryPressureHandlerConfiguration = m_configuration->memoryPressureHandlerConfiguration(); 112 113 GApplication* app = g_application_get_default(); 114 if (app) 115 parameters.applicationID = g_application_get_application_id(app); 116 parameters.applicationName = g_get_application_name(); 112 117 } 113 118 -
trunk/Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
r280155 r282307 36 36 #endif 37 37 38 #include <WebCore/ApplicationGLib.h> 38 39 #include <WebCore/MemoryCache.h> 39 40 … … 109 110 if (parameters.memoryPressureHandlerConfiguration) 110 111 MemoryPressureHandler::singleton().setConfiguration(WTFMove(*parameters.memoryPressureHandlerConfiguration)); 112 113 if (!parameters.applicationID.isEmpty()) 114 WebCore::setApplicationID(parameters.applicationID); 115 116 if (!parameters.applicationName.isEmpty()) 117 WebCore::setApplicationName(parameters.applicationName); 111 118 } 112 119 -
trunk/Source/cmake/OptionsGTK.cmake
r281708 r282307 154 154 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_INPUT_TYPE_WEEK PRIVATE ON) 155 155 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LAYOUT_FORMATTING_CONTEXT PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 156 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SESSION PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 157 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SESSION_PLAYLIST PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 156 158 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_STREAM PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 157 159 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MHTML PRIVATE ON) -
trunk/Source/cmake/OptionsWPE.cmake
r281708 r282307 52 52 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_GPU_PROCESS PRIVATE OFF) 53 53 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LAYOUT_FORMATTING_CONTEXT PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 54 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SESSION PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 55 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_SESSION_PLAYLIST PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 54 56 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEDIA_STREAM PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 55 57 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MHTML PRIVATE ON) -
trunk/Source/cmake/WebKitFeatures.cmake
r281757 r282307 170 170 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_CAPTURE "Toggle Media Capture support" PRIVATE OFF) 171 171 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_CONTROLS_SCRIPT "Toggle definition of media controls in Javascript" PRIVATE ON) 172 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_SESSION "Toggle Media Session support" PRIVATE OFF) 173 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_SESSION_COORDINATOR "Toggle Media Session Coordinator support" PRIVATE OFF) 174 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_SESSION_PLAYLIST "Toggle Media Session Playlist support" PRIVATE OFF) 172 175 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_SOURCE "Toggle Media Source support" PRIVATE OFF) 173 176 WEBKIT_OPTION_DEFINE(ENABLE_MEDIA_STATISTICS "Toggle Media Statistics support" PRIVATE OFF) -
trunk/Tools/Scripts/webkitpy/style/checker.py
r279985 r282307 180 180 os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'wpe')], 181 181 ["-readability/enum_casing"]), 182 183 ([ 184 # Forward declarations of GLib/GIO functions use underscores. 185 os.path.join('Source', 'WTF', 'wtf', 'glib', 'GRefPtr.h')], 186 ["-readability/naming/underscores"]), 182 187 183 188 ([
Note:
See TracChangeset
for help on using the changeset viewer.