Bug 1750998 - Enable loading site-specific wrapper scripts on debug builds. r=mhowell

Differential Revision: https://phabricator.services.mozilla.com/D136739
This commit is contained in:
Micah Tigley 2022-01-25 02:04:01 +00:00
parent aa17a27a98
commit f982fe8d5b
2 changed files with 3 additions and 4 deletions

View file

@ -14,5 +14,4 @@ prefs =
media.videocontrols.picture-in-picture.video-toggle.position="right"
[browser_mock_wrapper.js]
skip-if =
debug || !nightly_build # Bug 1749819
skip-if = !nightly_build # Bug 1751793

View file

@ -1404,9 +1404,9 @@ class PictureInPictureChild extends JSWindowActorChild {
// gSiteOverrides is a list of tuples where the first element is the MatchPattern
// for a supported site and the second is the actual overrides object for it.
// TODO: Remove DEBUG and NIGHTLY_BUILD checks (see Bug 1750998).
// TODO: Remove NIGHTLY_BUILD check (see Bug 1751793).
let wrapperPath =
AppConstants.NIGHTLY_BUILD && !AppConstants.DEBUG && overrides
AppConstants.NIGHTLY_BUILD && overrides
? overrides[1].videoWrapperScriptPath
: null;
this.videoWrapper = new PictureInPictureChildVideoWrapper(