Summary: | Modern media controls should never be enabled in non cocoa ports | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bugs-noreply, calvaris, dino, graouts, mcatanzaro | ||||
Priority: | P2 | Keywords: | Gtk, LayoutTestFailure | ||||
Version: | WebKit Local Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Carlos Garcia Campos
2017-03-31 05:57:27 PDT
Created attachment 305967 [details]
Patch
Comment on attachment 305967 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=305967&action=review This needs a build flag too. Having only a runtime flag really only makes sense if the feature could plausibly work on all platforms. This one is Mac-only. And please name it with _ENABLED. > Source/WebKit2/Shared/WebPreferencesDefinitions.h:320 > +#define DEFAULT_MODERN_MEDIA_CONTROLS true DEFAULT_MODERN_MEDIA_CONTROLS_ENABLED > Source/WebKit2/Shared/WebPreferencesDefinitions.h:322 > +#define DEFAULT_MODERN_MEDIA_CONTROLS false DEFAULT_MODERN_MEDIA_CONTROLS_ENABLED (In reply to Michael Catanzaro from comment #2) > Comment on attachment 305967 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=305967&action=review > > This needs a build flag too. Having only a runtime flag really only makes > sense if the feature could plausibly work on all platforms. This one is > Mac-only. > > And please name it with _ENABLED. Indeed. That was my intention, but somehow I didn't add that in the end. > > Source/WebKit2/Shared/WebPreferencesDefinitions.h:320 > > +#define DEFAULT_MODERN_MEDIA_CONTROLS true > > DEFAULT_MODERN_MEDIA_CONTROLS_ENABLED > > > Source/WebKit2/Shared/WebPreferencesDefinitions.h:322 > > +#define DEFAULT_MODERN_MEDIA_CONTROLS false > > DEFAULT_MODERN_MEDIA_CONTROLS_ENABLED Committed r214666: <http://trac.webkit.org/changeset/214666> |