mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 14:57:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
3
dom/xslt/crashtests/1089049.html
Normal file
3
dom/xslt/crashtests/1089049.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script>
|
||||
var xpathResult = document.evaluate('', null, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
|
||||
</script>
|
||||
5
dom/xslt/crashtests/111994.xml
Normal file
5
dom/xslt/crashtests/111994.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" standalone="yes" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="111994.xsl" ?>
|
||||
<root>
|
||||
<item id="1001" name="name" />
|
||||
</root>
|
||||
13
dom/xslt/crashtests/111994.xsl
Normal file
13
dom/xslt/crashtests/111994.xsl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" ?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:template match="root">
|
||||
<html><body><xsl:apply-templates select="item" /></body></html>
|
||||
</xsl:template>
|
||||
<xsl:template match="item">
|
||||
<img>
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="@name" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
6
dom/xslt/crashtests/1205163.xml
Normal file
6
dom/xslt/crashtests/1205163.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xsl" href="1205163.xsl"?>
|
||||
<result>
|
||||
<Title>Example</Title>
|
||||
<Error>Error</Error>
|
||||
</result>
|
||||
11
dom/xslt/crashtests/1205163.xsl
Normal file
11
dom/xslt/crashtests/1205163.xsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="text"/>
|
||||
<xsl:template match="node()|@*">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="node()|@*"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="Error"/>
|
||||
</xsl:stylesheet>
|
||||
3
dom/xslt/crashtests/1243337.xml
Normal file
3
dom/xslt/crashtests/1243337.xml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" standalone="yes" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="1243337.xsl" ?>
|
||||
<root/>
|
||||
6
dom/xslt/crashtests/1243337.xsl
Normal file
6
dom/xslt/crashtests/1243337.xsl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template match="/">
|
||||
<xsl:value-of select="generate-id(5)"/>
|
||||
<html><body/></html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
3
dom/xslt/crashtests/182460-select.xml
Normal file
3
dom/xslt/crashtests/182460-select.xml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="182460-selects.xsl"?>
|
||||
<fud/>
|
||||
5
dom/xslt/crashtests/182460-selects.xsl
Normal file
5
dom/xslt/crashtests/182460-selects.xsl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<html>
|
||||
<body>
|
||||
hi
|
||||
</body>
|
||||
</html>
|
||||
9
dom/xslt/crashtests/182460-table.xhtml
Normal file
9
dom/xslt/crashtests/182460-table.xhtml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>XSL Crash</title>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="182460-select.xml"></iframe>
|
||||
<script type="text/javascript" src="data:text/javascript,/*no code*/"/>
|
||||
</body>
|
||||
</html>
|
||||
4
dom/xslt/crashtests/226425.xml
Normal file
4
dom/xslt/crashtests/226425.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<?xml-stylesheet type="text/xsl" href="226425.xsl" ?>
|
||||
|
||||
<text></text>
|
||||
10
dom/xslt/crashtests/226425.xsl
Normal file
10
dom/xslt/crashtests/226425.xsl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" indent="yes"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<html><body>
|
||||
<xsl:apply-templates select="document('dontmatter')"/>
|
||||
</body></html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
18
dom/xslt/crashtests/406106-1.html
Normal file
18
dom/xslt/crashtests/406106-1.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
|
||||
function boom()
|
||||
{
|
||||
var p = new XSLTProcessor();
|
||||
p.setParameter("a", "b", {e: p});
|
||||
}
|
||||
|
||||
boom();
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
19
dom/xslt/crashtests/483444.xml
Normal file
19
dom/xslt/crashtests/483444.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xsl" href="#stylesheet"?>
|
||||
<!DOCTYPE root [
|
||||
<!ATTLIST xsl:stylesheet id ID #IMPLIED>
|
||||
]>
|
||||
<root>
|
||||
<xsl:stylesheet id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:attribute-set name="a">
|
||||
<xsl:attribute name="b">c</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
<xsl:template match="/">
|
||||
<b>Please output something!</b>
|
||||
</xsl:template>
|
||||
<xsl:attribute-set name="a">
|
||||
<xsl:attribute name="b">c</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
</xsl:stylesheet>
|
||||
<doc id="foo">this</doc>
|
||||
</root>
|
||||
8
dom/xslt/crashtests/485217.xml
Normal file
8
dom/xslt/crashtests/485217.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet type="text/xsl" href="485217.xsl"?>
|
||||
|
||||
|
||||
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<item1 id="AAAAAAA" />
|
||||
<item2 id="AAAAAAAAA" label="AAAAAAAAAAAA"/>
|
||||
</root>
|
||||
18
dom/xslt/crashtests/485217.xsl
Normal file
18
dom/xslt/crashtests/485217.xsl
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:key name="label" match="item2" use="undeclaredfunc()"/>
|
||||
|
||||
<xsl:template match="root">
|
||||
<xsl:for-each select="//item1">
|
||||
<xsl:call-template name="item1" />
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="item1">
|
||||
<xsl:for-each select="key('label', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')">
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
12
dom/xslt/crashtests/485286.xml
Normal file
12
dom/xslt/crashtests/485286.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml-stylesheet type="application/xml" href="485286.xml"?>
|
||||
<transform xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<variable name="v">
|
||||
<for-each select="/">
|
||||
<value-of select="count(1)"/>
|
||||
</for-each>
|
||||
</variable>
|
||||
<key name="k" match="/" use="$v"/>
|
||||
<template match="/">
|
||||
<value-of select="key('k', /..)"/>
|
||||
</template>
|
||||
</transform>
|
||||
17
dom/xslt/crashtests/527558_1.xml
Normal file
17
dom/xslt/crashtests/527558_1.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xml" href="#bug"?>
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST xsl:transform
|
||||
id ID #REQUIRED>
|
||||
]>
|
||||
<doc>
|
||||
<xsl:transform id="bug"
|
||||
version="2.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:key name="k0" match="e1" use="key('k0', 'foobar')" />
|
||||
<xsl:template id="t1" name="t1" match="key('k0', '1/2/2003')" />
|
||||
</xsl:transform>
|
||||
|
||||
<e1 a1="foobar" a2="foobar"/>
|
||||
|
||||
</doc>
|
||||
22
dom/xslt/crashtests/528300.xml
Normal file
22
dom/xslt/crashtests/528300.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xml" href="#bug"?>
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST xsl:transform
|
||||
id ID #REQUIRED>
|
||||
]>
|
||||
<doc>
|
||||
<xsl:transform
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="2.0"
|
||||
id="bug">
|
||||
<xsl:variable name="v0">
|
||||
<xsl:for-each select="$v0" />
|
||||
</xsl:variable>
|
||||
<xsl:template name="t2" match="/">
|
||||
<xsl:copy-of select="number($v0)" />
|
||||
</xsl:template>
|
||||
</xsl:transform>
|
||||
|
||||
<e1 />
|
||||
|
||||
</doc>
|
||||
19
dom/xslt/crashtests/528488.xml
Normal file
19
dom/xslt/crashtests/528488.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xml" href="#bug"?>
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST xsl:transform
|
||||
id ID #REQUIRED>
|
||||
]>
|
||||
<doc>
|
||||
<xsl:transform
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:exslstrings="http://exslt.org/strings"
|
||||
version="2.0"
|
||||
id="bug">
|
||||
<xsl:variable name="v0" select="$v0" />
|
||||
<xsl:template name="t2" match="/">
|
||||
<xsl:param name="p0" select="exslstrings:tokenize('1234','foobar')" />
|
||||
<xsl:copy-of select="round($v0)" />
|
||||
</xsl:template>
|
||||
</xsl:transform>
|
||||
</doc>
|
||||
22
dom/xslt/crashtests/528963.xml
Normal file
22
dom/xslt/crashtests/528963.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xml" href="#bug"?>
|
||||
<!DOCTYPE doc [
|
||||
<!ATTLIST xsl:transform
|
||||
id ID #REQUIRED>
|
||||
]>
|
||||
<doc>
|
||||
<xsl:transform
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="2.0"
|
||||
id="bug">
|
||||
<xsl:key name="k0" match="e2" use="name('foo')" />
|
||||
|
||||
<xsl:template name="t1" match="/">
|
||||
<xsl:element name="e2" namespace="{//doc}" />
|
||||
</xsl:template>
|
||||
<xsl:template name="t2" match="key('k0', 'bar')" />
|
||||
</xsl:transform>
|
||||
|
||||
<e2/>
|
||||
|
||||
</doc>
|
||||
28
dom/xslt/crashtests/545927.html
Normal file
28
dom/xslt/crashtests/545927.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function main()
|
||||
{
|
||||
xml=document.implementation.createDocument('', '', null);
|
||||
xml.appendChild(doc=xml.createElement('root'));
|
||||
|
||||
var p = new DOMParser();
|
||||
text = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';
|
||||
text += '<xsl:template match="/">';
|
||||
text += '<body>';
|
||||
text += '<xsl:number value="2147483648" format="i"/>';
|
||||
text += '</body>';
|
||||
text += '</xsl:template>';
|
||||
text += '</xsl:stylesheet>';
|
||||
xsl=p.parseFromString(text, 'text/xml');
|
||||
|
||||
xsltProcessor=new XSLTProcessor();
|
||||
xsltProcessor.importStylesheet(xsl);
|
||||
d = xsltProcessor.transformToFragment(xml, document);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="main()">
|
||||
</body>
|
||||
</html>
|
||||
|
||||
4
dom/xslt/crashtests/601543.html
Normal file
4
dom/xslt/crashtests/601543.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
(new XSLTProcessor).setParameter('', '', [{}, null]);
|
||||
</script>
|
||||
22
dom/xslt/crashtests/602115.html
Normal file
22
dom/xslt/crashtests/602115.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
|
||||
try {
|
||||
var docType = document.implementation.createDocumentType(undefined, '', '');
|
||||
var doc = document.implementation.createDocument('', '', null);
|
||||
var xp = new XSLTProcessor;
|
||||
xp.importStylesheet(doc);
|
||||
xp.transformToDocument(docType);
|
||||
}
|
||||
catch (ex) {}
|
||||
|
||||
try {
|
||||
docType = document.implementation.createDocumentType(undefined, '', '');
|
||||
doc = document.implementation.createDocument('', '', null);
|
||||
xp = new XSLTProcessor;
|
||||
xp.importStylesheet(doc);
|
||||
xp.transformToFragment(docType, document);
|
||||
}
|
||||
catch (ex) {}
|
||||
|
||||
</script>
|
||||
32
dom/xslt/crashtests/603844.html
Normal file
32
dom/xslt/crashtests/603844.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
|
||||
frame.onload = y;
|
||||
frame.src = "data:text/plain,0";
|
||||
document.body.appendChild(frame);
|
||||
frameDoc = frame.contentDocument;
|
||||
|
||||
function y()
|
||||
{
|
||||
frameDoc.removeChild(frameDoc.documentElement);
|
||||
|
||||
var xp = new XSLTProcessor;
|
||||
xp.importStylesheet(frameDoc);
|
||||
try {
|
||||
xp.transformToDocument(frameDoc.createTextNode('x'));
|
||||
} catch(e) { }
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="boom();"></body>
|
||||
</html>
|
||||
11
dom/xslt/crashtests/667315.xml
Normal file
11
dom/xslt/crashtests/667315.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/xsl" href="#stylesheet"?>
|
||||
<!DOCTYPE root [
|
||||
<!ATTLIST xsl:stylesheet id ID #IMPLIED>
|
||||
]>
|
||||
<root>
|
||||
<xsl:stylesheet id="stylesheet" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:variable name="var"><p>a</p></xsl:variable>
|
||||
<xsl:template match="/"><xsl:copy-of select="$var" /></xsl:template>
|
||||
</xsl:stylesheet>
|
||||
</root>
|
||||
10
dom/xslt/crashtests/91332.xml
Normal file
10
dom/xslt/crashtests/91332.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" standalone="yes" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="91332.xsl" ?>
|
||||
<root>
|
||||
<category name="Rectangles">
|
||||
<list item="square" />
|
||||
</category>
|
||||
<quad id="square">
|
||||
<desc>A square is ...</desc>
|
||||
</quad>
|
||||
</root>
|
||||
21
dom/xslt/crashtests/91332.xsl
Normal file
21
dom/xslt/crashtests/91332.xsl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" ?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:key name="polyList" match="quad" use="@id" />
|
||||
|
||||
<xsl:template match="root">
|
||||
<html><body><xsl:apply-templates select="category" /></body></html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="category">
|
||||
<table><xsl:apply-templates select="list" /></table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="list">
|
||||
<tr><td><xsl:apply-templates select="key('polyList',@item)" /></td></tr>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="quad">
|
||||
<b>Please output something!</b>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
20
dom/xslt/crashtests/crashtests.list
Normal file
20
dom/xslt/crashtests/crashtests.list
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
load 91332.xml
|
||||
load 111994.xml
|
||||
load 182460-table.xhtml
|
||||
load 226425.xml
|
||||
load 406106-1.html
|
||||
load 483444.xml
|
||||
load 485217.xml
|
||||
load 485286.xml
|
||||
load 527558_1.xml
|
||||
load 528300.xml
|
||||
load 528488.xml
|
||||
load 528963.xml
|
||||
load 545927.html
|
||||
load 601543.html
|
||||
load 602115.html
|
||||
load 603844.html
|
||||
load 667315.xml
|
||||
load 1089049.html
|
||||
load 1205163.xml
|
||||
load 1243337.xml
|
||||
Loading…
Add table
Add a link
Reference in a new issue