mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 12:07:59 +01:00
Make buffer.UR[LI] nsIURI objects. Fix bug in chrome-data:.
This commit is contained in:
@@ -93,8 +93,14 @@ ChromeData.prototype = {
|
||||
|
||||
newChannel: function (uri) {
|
||||
try {
|
||||
if (uri.scheme == this.scheme)
|
||||
return makeChannel(uri.spec.replace(/^.*?:\/*(.*)(?:#.*)?/, "data:$1"), uri);
|
||||
if (uri.scheme == this.scheme) {
|
||||
let channel = ioService.newChannel(uri.spec.replace(/^.*?:\/*(.*)(?:#.*)?/, "data:$1"),
|
||||
null, null);
|
||||
channel.contentCharset = "UTF-8";
|
||||
channel.owner = systemPrincipal;
|
||||
channel.originalURI = uri;
|
||||
return channel;
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
return fakeChannel(uri);
|
||||
|
||||
Reference in New Issue
Block a user