Backed out 2 changesets (bug 1543810) for failing in browser_togglePointerEventsNone.js CLOSED TREE

Backed out changeset a0c079f40c78 (bug 1543810)
Backed out changeset 5aec6172783d (bug 1543810)
This commit is contained in:
Noemi Erli 2019-09-11 19:04:59 +03:00
parent 95b09298a4
commit f74e07d847
4 changed files with 2 additions and 41 deletions

View File

@ -504,7 +504,7 @@ class PictureInPictureToggleChild extends ActorChild {
1,
true,
false,
true
false
);
for (let element of elements) {

View File

@ -3,9 +3,8 @@ support-files =
click-event-helper.js
head.js
test-button-overlay.html
test-opaque-overlay.html
test-page.html
test-pointer-events-none.html
test-opaque-overlay.html
test-transparent-overlay-1.html
test-transparent-overlay-2.html
test-video.mp4
@ -30,7 +29,6 @@ skip-if = true # Bug 1546455
[browser_toggleOnInsertedVideo.js]
[browser_toggleOpaqueOverlay.js]
skip-if = true # Bug 1546455
[browser_togglePointerEventsNone.js]
[browser_toggleSimple.js]
skip-if = os == 'linux' # Bug 1546455
[browser_toggleTransparentOverlay-1.js]

View File

@ -1,16 +0,0 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/**
* Tests that the Picture-in-Picture toggle is clickable even if the
* video element has pointer-events: none.
*/
add_task(async () => {
const PAGE = TEST_ROOT + "test-pointer-events-none.html";
await testToggle(PAGE, {
"with-controls": { canToggle: true },
"no-controls": { canToggle: true },
});
});

View File

@ -1,21 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Picture-in-Picture test - pointer-events: none</title>
<script type="text/javascript" src="click-event-helper.js"></script>
</head>
<style>
video {
display: block;
pointer-events: none;
}
</style>
<body>
<h1>Video with controls</h1>
<video id="with-controls" src="test-video.mp4" controls loop="true"></video>
<h1>Video without controls</h1>
<video id="no-controls" src="test-video.mp4" loop="true"></video>
</body>
</html>