summaryrefslogtreecommitdiff
path: root/common/modules/protocol.jsm
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/protocol.jsm')
-rw-r--r--common/modules/protocol.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/modules/protocol.jsm b/common/modules/protocol.jsm
index cf9f905d..da0ce1f3 100644
--- a/common/modules/protocol.jsm
+++ b/common/modules/protocol.jsm
@@ -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);