4 https://bugzilla.mozilla.org/show_bug.cgi?id=1173199
7 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css"/>
11 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1173199">Mozilla Bug
1173199</a>
12 <div id=
"testnodes"></div>
14 <script type=
"application/javascript">
15 add_task(async function() {
16 const { ContentTaskUtils } = ChromeUtils.importESModule(
17 "resource://testing-common/ContentTaskUtils.sys.mjs"
19 let t = document.getElementById('testnodes');
21 const url = 'chrome://mochitests/content/chrome/layout/mathml/tests/test_disabled_chrome_iframe.html';
22 const chromeIframeEl = document.createElement('iframe');
23 let chromeLoadPromise = ContentTaskUtils.waitForEvent(chromeIframeEl, 'load', false);
24 chromeIframeEl.src = url;
25 t.appendChild(chromeIframeEl);
27 await chromeLoadPromise;
28 const mspaceBox = chromeIframeEl.contentDocument.body.querySelector(
"mspace").getBoundingClientRect();
29 ok(mspaceBox.width
> 50,
"MathML is laid out in Chrome documents even when the mathml.disabled preference is true.");