Backed out changeset 954ebee9baae (bug 1816859) for bc failures on browser_togglePolicies.js. CLOSED TREE

This commit is contained in:
Marian-Vasile Laza 2023-03-15 23:10:14 +02:00
parent fc37f993c4
commit f800c98231
4 changed files with 2 additions and 29 deletions

View File

@ -177,10 +177,6 @@ let AVAILABLE_PIP_OVERRIDES;
},
},
reddit: {
"https://*.reddit.com/*": { policy: TOGGLE_POLICIES.ONE_QUARTER },
},
sonyliv: {
"https://*.sonyliv.com/*": {
videoWrapperScriptPath: "video-wrappers/videojsWrapper.js",

View File

@ -21,9 +21,8 @@ export const TOGGLE_POLICIES = {
HIDDEN: 2,
TOP: 3,
ONE_QUARTER: 4,
MIDDLE: 5,
THREE_QUARTERS: 6,
BOTTOM: 7,
THREE_QUARTERS: 5,
BOTTOM: 6,
};
// These strings are used in the videocontrols.css stylesheet as
@ -34,7 +33,6 @@ export const TOGGLE_POLICY_STRINGS = {
[TOGGLE_POLICIES.HIDDEN]: "hidden",
[TOGGLE_POLICIES.TOP]: "top",
[TOGGLE_POLICIES.ONE_QUARTER]: "one-quarter",
[TOGGLE_POLICIES.MIDDLE]: "middle",
[TOGGLE_POLICIES.THREE_QUARTERS]: "three-quarters",
[TOGGLE_POLICIES.BOTTOM]: "bottom",
};

View File

@ -12,7 +12,6 @@ add_task(async () => {
let positionPolicies = [
TOGGLE_POLICIES.TOP,
TOGGLE_POLICIES.ONE_QUARTER,
TOGGLE_POLICIES.MIDDLE,
TOGGLE_POLICIES.THREE_QUARTERS,
TOGGLE_POLICIES.BOTTOM,
];

View File

@ -58,26 +58,6 @@
display: none;
}
.pip-wrapper[policy="top"] {
top: 0%
}
.pip-wrapper[policy="one-quarter"] {
top: 25%
}
.pip-wrapper[policy="middle"] {
top: 50%
}
.pip-wrapper[policy="three-quarters"] {
top: 75%
}
.pip-wrapper[policy="bottom"] {
top: 100%
}
.pip-wrapper[medium-video] > .pip-expanded > .pip-icon-label > .pip-label {
font-size: 13px;
}