1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/general/browser_subframe_favicons_not_used.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +/* Make sure <link rel="..."> isn't respected in sub-frames. */ 1.5 + 1.6 +function test() { 1.7 + waitForExplicitFinish(); 1.8 + 1.9 + let testPath = getRootDirectory(gTestPath); 1.10 + 1.11 + let tab = gBrowser.addTab(testPath + "file_bug970276_popup1.html"); 1.12 + 1.13 + tab.linkedBrowser.addEventListener("load", function() { 1.14 + tab.linkedBrowser.removeEventListener("load", arguments.callee, true); 1.15 + 1.16 + let expectedIcon = testPath + "file_bug970276_favicon1.ico"; 1.17 + is(gBrowser.getIcon(tab), expectedIcon, "Correct icon."); 1.18 + 1.19 + gBrowser.removeTab(tab); 1.20 + 1.21 + finish(); 1.22 + }, true); 1.23 +}