2 <title>Test whether it can access a filed in MediaList with normal privilege after accessing with chrome privilege.
</title>
3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 @media screen and (max-width:
800px) {
8 background-color: lime;
15 const chromeDocument
= SpecialPowers
.wrap(document
);
16 assertMediaText(chromeDocument
);
17 assertMediaText(document
);
19 function assertMediaText(doc
) {
20 const stylesheet
= doc
.styleSheets
[0];
21 const rule
= stylesheet
.cssRules
[0];
22 const media
= rule
.media
;
23 is(rule
.media
.mediaText
, "screen and (max-width: 800px)");