michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ michael@0: */ michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: gBrowser.selectedTab = gBrowser.addTab(); michael@0: // Open a html page with about:certerror in an iframe michael@0: window.content.addEventListener("load", testIframeCert, true); michael@0: content.location = "data:text/html,"; michael@0: } michael@0: michael@0: function testIframeCert() { michael@0: window.content.removeEventListener("load", testIframeCert, true); michael@0: // Confirm that the expert section is hidden michael@0: var doc = gBrowser.contentDocument.getElementsByTagName('iframe')[0].contentDocument; michael@0: var eC = doc.getElementById("expertContent"); michael@0: ok(eC, "Expert content should exist") michael@0: ok(eC.hasAttribute("hidden"), "Expert content should be hidded by default"); michael@0: michael@0: // Clean up michael@0: gBrowser.removeCurrentTab(); michael@0: michael@0: finish(); michael@0: }