mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 06:10:18 +01:00
Mention removal of the chrome-data: protocol in BREAKING_CHANGES.
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
|
1.0b8:
|
||||||
|
• The chrome-data: protocol has been removed.
|
||||||
|
|||||||
@@ -1033,11 +1033,12 @@ function XPCOM(interfaces, superClass) {
|
|||||||
let shim = interfaces.reduce(function (shim, iface) shim.QueryInterface(iface),
|
let shim = interfaces.reduce(function (shim, iface) shim.QueryInterface(iface),
|
||||||
XPCOMShim());
|
XPCOMShim());
|
||||||
|
|
||||||
let res = Class("XPCOM(" + interfaces + ")", superClass || Class, update(
|
let res = Class("XPCOM(" + interfaces + ")", superClass || Class,
|
||||||
iter.toObject([k, v === undefined || callable(v) ? function stub() null : v]
|
update(iter([k,
|
||||||
for ([k, v] in Iterator(shim))),
|
v === undefined || callable(v) ? stub : v]
|
||||||
|
for ([k, v] in Iterator(shim))).toObject(),
|
||||||
{ QueryInterface: XPCOMUtils.generateQI(interfaces) }));
|
{ QueryInterface: XPCOMUtils.generateQI(interfaces) }));
|
||||||
shim = interfaces = null;
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
function XPCOMShim() {
|
function XPCOMShim() {
|
||||||
@@ -1052,6 +1053,7 @@ function XPCOMShim() {
|
|||||||
});
|
});
|
||||||
return ip.data;
|
return ip.data;
|
||||||
};
|
};
|
||||||
|
function stub() null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An abstract base class for classes that wish to inherit from Error.
|
* An abstract base class for classes that wish to inherit from Error.
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ defineModule("protocol", {
|
|||||||
var systemPrincipal = Cc["@mozilla.org/systemprincipal;1"].getService(Ci.nsIPrincipal);
|
var systemPrincipal = Cc["@mozilla.org/systemprincipal;1"].getService(Ci.nsIPrincipal);
|
||||||
|
|
||||||
var DNE = "resource://gre/does/not/exist";
|
var DNE = "resource://gre/does/not/exist";
|
||||||
var _DNE;
|
|
||||||
|
|
||||||
function Channel(url, orig, noFake) {
|
function Channel(url, orig, noFake) {
|
||||||
try {
|
try {
|
||||||
@@ -83,13 +82,10 @@ ProtocolBase.prototype = {
|
|||||||
| Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,
|
| Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,
|
||||||
|
|
||||||
newURI: function newURI(spec, charset, baseURI) {
|
newURI: function newURI(spec, charset, baseURI) {
|
||||||
var uri = Cc["@mozilla.org/network/standard-url;1"]
|
|
||||||
.createInstance(Ci.nsIStandardURL)
|
|
||||||
.QueryInterface(Ci.nsIURI);
|
|
||||||
if (baseURI && baseURI.host === "data")
|
if (baseURI && baseURI.host === "data")
|
||||||
baseURI = null;
|
baseURI = null;
|
||||||
uri.init(uri.URLTYPE_STANDARD, this.defaultPort, spec, charset, baseURI);
|
return services.URL(services.URL.URLTYPE_STANDARD,
|
||||||
return uri;
|
this.defaultPort, spec, charset, baseURI);
|
||||||
},
|
},
|
||||||
|
|
||||||
newChannel: function newChannel(uri) {
|
newChannel: function newChannel(uri) {
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ var Services = Module("Services", {
|
|||||||
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", "nsIStringInputStream", "data");
|
this.addClass("StringStream", "@mozilla.org/io/string-input-stream;1", "nsIStringInputStream", "data");
|
||||||
this.addClass("Transfer", "@mozilla.org/transfer;1", "nsITransfer", "init");
|
this.addClass("Transfer", "@mozilla.org/transfer;1", "nsITransfer", "init");
|
||||||
this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback");
|
this.addClass("Timer", "@mozilla.org/timer;1", "nsITimer", "initWithCallback");
|
||||||
|
this.addClass("URL", "@mozilla.org/network/standard-url;1", ["nsIStandardURL", "nsIURL"], "init");
|
||||||
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", "nsIXMLHttpRequest");
|
this.addClass("Xmlhttp", "@mozilla.org/xmlextras/xmlhttprequest;1", "nsIXMLHttpRequest");
|
||||||
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", "nsIDOMXPathEvaluator");
|
this.addClass("XPathEvaluator", "@mozilla.org/dom/xpath-evaluator;1", "nsIDOMXPathEvaluator");
|
||||||
this.addClass("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]);
|
this.addClass("XMLDocument", "@mozilla.org/xml/xml-document;1", ["nsIDOMXMLDocument", "nsIDOMNodeSelector"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user