Bug 1763396 - Use the content pref, as the test is loaded in the content area.

Differential Revision: https://phabricator.services.mozilla.com/D143244
This commit is contained in:
Emilio Cobos Álvarez 2022-04-07 23:52:41 +00:00
Родитель 276a88c08a
Коммит 1d7a0d3629
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
windowtype="Toolkit:PictureInPicture"
chromemargin="0,0,0,0">
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<head>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script src="chrome://mochikit/content/chrome-harness.js"></script>
@ -92,7 +90,7 @@
for (let dark of [true, false]) {
await SpecialPowers.pushPrefEnv({
set: [
["browser.theme.toolbar-theme", 2],
["layout.css.prefers-color-scheme.content-override", 2],
["ui.systemUsesDarkTheme", dark ? 1 : 0],
]
});