Backed out changeset e018aed68975 (bug 1369815)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Tue, 15 Aug 2017 18:30:13 +0200
changeset 374806 2bbb1bd8335d0c49ac477e60e85a03029c8c6a17
parent 374805 78e49684354331b02d3e425d2afcd757559bd7db
child 374807 4871dc084c88feecdbabe1b3a9acdb5ffaa71a2b
push id93770
push userarchaeopteryx@coole-files.de
push dateTue, 15 Aug 2017 16:31:29 +0000
treeherdermozilla-inbound@4af3a98934c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1369815
milestone57.0a1
backs oute018aed689755170416b0bda839cc5c7f01c6764
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
Backed out changeset e018aed68975 (bug 1369815)
layout/style/test/chrome/test_display_mode.html
--- a/layout/style/test/chrome/test_display_mode.html
+++ b/layout/style/test/chrome/test_display_mode.html
@@ -42,22 +42,16 @@ add_task(async function() {
   function shouldApply(q) {
     ok(queryApplies(q), q + " should apply");
   }
 
   function shouldNotApply(q) {
     ok(!queryApplies(q), q + " should not apply");
   }
 
-  function setDisplayMode(mode) {
-    win.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
-                 .getInterface(Components.interfaces.nsIDocShell)
-                 .displayMode = mode;
-  }
-
   shouldApply("all and (display-mode: browser)");
   shouldNotApply("all and (display-mode: fullscreen)");
   shouldNotApply("all and (display-mode: standalone)");
   shouldNotApply("all and (display-mode: minimal-ui)");
 
   // Test entering the OS's fullscreen mode.
   var fullScreenEntered = waitOneEvent(win, "sizemodechange");
   synthesizeKey("VK_F11", {});
@@ -78,28 +72,16 @@ add_task(async function() {
   shouldApply("all and (display-mode: fullscreen)");
   shouldNotApply("all and (display-mode: browser)");
   fullScreenExited = waitOneEvent(document, "mozfullscreenchange");
   document.mozCancelFullScreen();
   await fullScreenExited;
   ok(!document.mozFullScreenElement, "window exited fullscreen");
   shouldNotApply("all and (display-mode: fullscreen)");
   shouldApply("all and (display-mode: browser)");
-
-  // Test entering display mode mode through docshell
-  setDisplayMode(Components.interfaces.nsIDocShell.DISPLAY_MODE_STANDALONE);
-  shouldApply("all and (display-mode: standalone)");
-  shouldNotApply("all and (display-mode: fullscreen)");
-  shouldNotApply("all and (display-mode: browser)");
-  shouldNotApply("all and (display-mode: minimal-ui)");
-
-  // Test that changes in the display mode are reflected
-  setDisplayMode(Components.interfaces.nsIDocShell.DISPLAY_MODE_MINIMAL_UI);
-  shouldApply("all and (display-mode: minimal-ui)");
-  shouldNotApply("all and (display-mode: standalone)");
 });
   </script>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1104916">Mozilla Bug 1104916</a>
 <iframe id="subdoc" src="http://mochi.test:8888/tests/layout/style/test/media_queries_iframe.html"></iframe>
 <p id="display"></p>
 <div id="content" style="display: none">