Skip to content
Snippets Groups Projects
Commit 27862f43 authored by David Dahl's avatar David Dahl
Browse files

Bug 463270: fix favicon code to avoid trying to load a favicon for wyciwyg:...

Bug 463270: fix favicon code to avoid trying to load a favicon for wyciwyg: pages (fixes ASSERTION: Must have a principal: 'mOwner'), r=gavin

--HG--
extra : rebase_source : 67d63f88c4ed980508c15ef1afcde94155e9171d
parent 164332ae
No related branches found
No related tags found
No related merge requests found
......@@ -692,6 +692,7 @@
<body>
<![CDATA[
var browser = this.getBrowserForTab(aTab);
var docURIObject = browser.contentDocument.documentURIObject;
if (browser.contentDocument instanceof ImageDocument) {
if (this.mPrefs.getBoolPref("browser.chrome.site_icons")) {
try {
......@@ -711,8 +712,8 @@
}
// Use documentURIObject in the check for shouldLoadFavIcon so that we
// do the right thing with about:-style error pages. Bug 453442
else if (this.shouldLoadFavIcon(browser.contentDocument.documentURIObject)) {
var url = browser.currentURI.prePath + "/favicon.ico";
else if (this.shouldLoadFavIcon(docURIObject)) {
var url = docURIObject.prePath + "/favicon.ico";
if (!this.isFailedIcon(url))
this.setIcon(aTab, url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment