3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
5 function childWindowLoaded(childWin
) {
7 childWin
.getComputedStyle(childWin
.document
.documentElement
).backgroundColor
,
12 SpecialPowers
.getDOMWindowUtils(childWin
).parsedStyleSheets
,
14 `Shouldn't need to parse the stylesheet ${childWin.parent == window ? "frame" : "top"}`
16 if (childWin
.top
== childWin
) {
21 <link rel=
"stylesheet" href=
"file_shared_sheet_caching.css">
22 <iframe src=
"file_shared_sheet_caching.html"></iframe>
23 <a rel=
"opener" href=
"file_shared_sheet_caching.html" target=
"_blank">Navigation
</a>
25 SimpleTest
.waitForExplicitFinish();
27 info("Sheets parsed: " + SpecialPowers
.DOMWindowUtils
.parsedStyleSheets
);
29 getComputedStyle(document
.documentElement
).backgroundColor
,
33 document
.querySelector("a").click();