mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 22:45:45 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -486,7 +486,9 @@ var Contexts = Module("contexts", {
|
||||
let info = "INFO" in context && Cu.evalInSandbox("this.INFO instanceof XML ? INFO.toXMLString() : this.INFO", context);
|
||||
return /^</.test(info) ? XML(info) : info;
|
||||
}
|
||||
if (typeof context.INFO == "xml" || DOM.isJSONXML(context.INFO))
|
||||
if (DOM.isJSONXML(context.INFO))
|
||||
return context.INFO;
|
||||
if (typeof context.INFO == "xml" && config.haveGecko(null, "14.*"))
|
||||
return context.INFO;
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
Reference in New Issue
Block a user