mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:07:59 +01:00
Fix some brokenness related to security principals being a bit broken.
--HG-- branch : xslt
This commit is contained in:
@@ -151,16 +151,16 @@ function Liberator()
|
|||||||
|
|
||||||
function parseHelpTags(namespaces)
|
function parseHelpTags(namespaces)
|
||||||
{
|
{
|
||||||
|
HELP_FILES = [];
|
||||||
NAMESPACES = Array.slice(namespaces);
|
NAMESPACES = Array.slice(namespaces);
|
||||||
let files = xpath(
|
|
||||||
XSLTProcessor("chrome://liberator/content/overlay.xsl")
|
|
||||||
.transformToDocument(httpGet(self.FILE_MAP.all).responseXML),
|
|
||||||
"//liberator:include/@href");
|
|
||||||
self.HELP_TAGS.all = "all";
|
|
||||||
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");
|
const XSLT = XSLTProcessor("chrome://liberator/content/help.xsl");
|
||||||
for each (let file in files)
|
self.HELP_TAGS.all = "all";
|
||||||
|
for each (let namespace in NAMESPACES)
|
||||||
{
|
{
|
||||||
try
|
let files = xpath(
|
||||||
|
httpGet("chrome://" + namespace + "/locale/all.xml").responseXML,
|
||||||
|
"//liberator:include/@href");
|
||||||
|
for each (let file in files)
|
||||||
{
|
{
|
||||||
let [url, doc] = findHelpFile(file.value);
|
let [url, doc] = findHelpFile(file.value);
|
||||||
if (doc)
|
if (doc)
|
||||||
@@ -168,14 +168,9 @@ function Liberator()
|
|||||||
doc = XSLT.transformToDocument(doc);
|
doc = XSLT.transformToDocument(doc);
|
||||||
for (let elem in xpath(doc, "//liberator:tag/text()"))
|
for (let elem in xpath(doc, "//liberator:tag/text()"))
|
||||||
self.HELP_TAGS[elem.textContent] = file.value;
|
self.HELP_TAGS[elem.textContent] = file.value;
|
||||||
}
|
HELP_FILES.push(file.value);
|
||||||
catch (e)
|
|
||||||
{
|
|
||||||
Components.utils.reportError(e);
|
|
||||||
dump(e + "\n");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HELP_FILES = Array.slice(files);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Liberator.prototype = {
|
Liberator.prototype = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<?xml-stylesheet type="text/xsl" href="chrome://liberator/content/help.xsl"?>
|
<?xml-stylesheet type="text/xsl" href="chrome://liberator/content/overlay.xsl"?>
|
||||||
|
|
||||||
<!DOCTYPE document SYSTEM "chrome://liberator/content/liberator.dtd">
|
<!DOCTYPE document SYSTEM "chrome://liberator/content/liberator.dtd">
|
||||||
|
|
||||||
@@ -11,47 +11,26 @@
|
|||||||
<tags>all</tags>
|
<tags>all</tags>
|
||||||
|
|
||||||
<include href="intro" tag="intro.html"/>
|
<include href="intro" tag="intro.html"/>
|
||||||
|
|
||||||
<include href="starting" tag="starting.html"/>
|
<include href="starting" tag="starting.html"/>
|
||||||
|
|
||||||
<include href="browsing" tag="browsing.html"/>
|
<include href="browsing" tag="browsing.html"/>
|
||||||
|
|
||||||
<include href="buffer" tag="buffer.html"/>
|
<include href="buffer" tag="buffer.html"/>
|
||||||
|
|
||||||
<include href="cmdline" tag="cmdline.html"/>
|
<include href="cmdline" tag="cmdline.html"/>
|
||||||
|
|
||||||
<include href="insert" tag="insert.html"/>
|
<include href="insert" tag="insert.html"/>
|
||||||
|
|
||||||
<include href="options" tag="options.html"/>
|
<include href="options" tag="options.html"/>
|
||||||
|
|
||||||
<include href="pattern" tag="pattern.html"/>
|
<include href="pattern" tag="pattern.html"/>
|
||||||
|
|
||||||
<include href="tabs" tag="tabs.html"/>
|
<include href="tabs" tag="tabs.html"/>
|
||||||
|
|
||||||
<include href="hints" tag="hints.html"/>
|
<include href="hints" tag="hints.html"/>
|
||||||
|
|
||||||
<include href="map" tag="map.html"/>
|
<include href="map" tag="map.html"/>
|
||||||
|
|
||||||
<include href="eval" tag="eval.html"/>
|
<include href="eval" tag="eval.html"/>
|
||||||
|
|
||||||
<include href="marks" tag="marks.html"/>
|
<include href="marks" tag="marks.html"/>
|
||||||
|
|
||||||
<include href="repeat" tag="repeat.html"/>
|
<include href="repeat" tag="repeat.html"/>
|
||||||
|
|
||||||
<include href="autocommands" tag="autocommands.html"/>
|
<include href="autocommands" tag="autocommands.html"/>
|
||||||
|
|
||||||
<include href="print" tag="print.html"/>
|
<include href="print" tag="print.html"/>
|
||||||
|
|
||||||
<include href="gui" tag="gui.html"/>
|
<include href="gui" tag="gui.html"/>
|
||||||
|
|
||||||
<include href="styling" tag="styling.html"/>
|
<include href="styling" tag="styling.html"/>
|
||||||
|
|
||||||
<include href="message" tag="message.html"/>
|
<include href="message" tag="message.html"/>
|
||||||
|
|
||||||
<include href="developer" tag="developer.html"/>
|
<include href="developer" tag="developer.html"/>
|
||||||
|
|
||||||
<include href="various" tag="various.html"/>
|
<include href="various" tag="various.html"/>
|
||||||
|
|
||||||
<include href="index" tag="index.html"/>
|
<include href="index" tag="index.html"/>
|
||||||
|
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
Reference in New Issue
Block a user