1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 14:52:28 +01:00

Fix crappy add-on manager icons.

This commit is contained in:
Kris Maglione
2011-09-03 21:13:51 -04:00
parent 3764176940
commit aa78825133
10 changed files with 55 additions and 28 deletions

View File

@@ -104,7 +104,7 @@ ProtocolBase.prototype = {
| Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,
newURI: function newURI(spec, charset, baseURI) {
if (baseURI && baseURI.host === "data")
if (baseURI && (!(baseURI instanceof Ci.nsIURL) || baseURI.host === "data"))
baseURI = null;
return services.URL(services.URL.URLTYPE_AUTHORITY,
this.defaultPort, spec, charset, baseURI);