diff -r 000000000000 -r 6474c204b198 browser/base/content/test/general/browser_subframe_favicons_not_used.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/base/content/test/general/browser_subframe_favicons_not_used.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,20 @@ +/* Make sure isn't respected in sub-frames. */ + +function test() { + waitForExplicitFinish(); + + let testPath = getRootDirectory(gTestPath); + + let tab = gBrowser.addTab(testPath + "file_bug970276_popup1.html"); + + tab.linkedBrowser.addEventListener("load", function() { + tab.linkedBrowser.removeEventListener("load", arguments.callee, true); + + let expectedIcon = testPath + "file_bug970276_favicon1.ico"; + is(gBrowser.getIcon(tab), expectedIcon, "Correct icon."); + + gBrowser.removeTab(tab); + + finish(); + }, true); +}