michael@0: /* Make sure isn't respected in sub-frames. */ michael@0: michael@0: function test() { michael@0: waitForExplicitFinish(); michael@0: michael@0: let testPath = getRootDirectory(gTestPath); michael@0: michael@0: let tab = gBrowser.addTab(testPath + "file_bug970276_popup1.html"); michael@0: michael@0: tab.linkedBrowser.addEventListener("load", function() { michael@0: tab.linkedBrowser.removeEventListener("load", arguments.callee, true); michael@0: michael@0: let expectedIcon = testPath + "file_bug970276_favicon1.ico"; michael@0: is(gBrowser.getIcon(tab), expectedIcon, "Correct icon."); michael@0: michael@0: gBrowser.removeTab(tab); michael@0: michael@0: finish(); michael@0: }, true); michael@0: }