diff -r 000000000000 -r 6474c204b198 browser/base/content/test/general/browser_bug550565.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/base/content/test/general/browser_bug550565.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,21 @@ +function test() { + waitForExplicitFinish(); + + let testPath = getRootDirectory(gTestPath); + + let tab = gBrowser.addTab(testPath + "file_bug550565_popup.html"); + + tab.linkedBrowser.addEventListener("DOMContentLoaded", function() { + tab.linkedBrowser.removeEventListener("DOMContentLoaded", arguments.callee, true); + + let expectedIcon = testPath + "file_bug550565_favicon.ico"; + + is(gBrowser.getIcon(tab), expectedIcon, "Correct icon before pushState."); + tab.linkedBrowser.contentWindow.history.pushState("page2", "page2", "page2"); + is(gBrowser.getIcon(tab), expectedIcon, "Correct icon after pushState."); + + gBrowser.removeTab(tab); + + finish(); + }, true); +}