Skip to content

Commit

Permalink
Backed out changeset 954ebee9baae (bug 1816859) for bc failures on br…
Browse files Browse the repository at this point in the history
…owser_togglePolicies.js. CLOSED TREE
  • Loading branch information
Marian-Vasile Laza committed Mar 15, 2023
1 parent fc37f99 commit f800c98
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Expand Down
20 changes: 0 additions & 20 deletions toolkit/themes/shared/media/pipToggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f800c98

Please sign in to comment.