Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang
☠☠ backed out by 0aaab26e4aa9 ☠ ☠
authorJohn Lin <jolin@mozilla.com>
Fri, 25 Aug 2017 14:25:49 +0800
changeset 377185 92092cde72e1d94cbb7dc1908d2a18a2cfafd9cd
parent 377184 26922f62653984d110cf9c6b40dae0231f1b71b2
child 377186 ba812092214c146456ac1c8fedf2faf3eefc5ce5
push id32402
push userarchaeopteryx@coole-files.de
push dateMon, 28 Aug 2017 14:47:04 +0000
treeherdermozilla-central@d5b6d113cf17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs842782
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang MozReview-Commit-ID: 6x7um7F8omr
dom/media/MediaPrefs.h
--- a/dom/media/MediaPrefs.h
+++ b/dom/media/MediaPrefs.h
@@ -206,16 +206,17 @@ private:
                                                               MediaWarningsAsErrorsStageFrightVsRust, bool, false);
 
   // resume background video decoding when the cursor is hovering over the tab.
   DECL_MEDIA_PREF("media.resume-bkgnd-video-on-tabhover",     ResumeVideoDecodingOnTabHover, bool, false);
 
 #ifdef MOZ_CUBEB_REMOTING
   DECL_MEDIA_PREF("media.cubeb.sandbox",                      CubebSandbox, bool, false);
 #endif // MOZ_CUBEB_REMOTING
+  DECL_MEDIA_PREF("media.videocontrols.lock-video-orientation",  VideoOrientationLockEnabled, bool, false);
 
 public:
   // Manage the singleton:
   static MediaPrefs& GetSingleton();
   static bool SingletonExists();
 
 private:
   template<class T> friend class StaticAutoPtr;