dom/xslt/crashtests/545927.html

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 <html>
     2 <head>
     3 <script>
     4 function main()
     5 {
     6 	xml=document.implementation.createDocument('', '', null);
     7 	xml.appendChild(doc=xml.createElement('root'));
     9 	var p = new DOMParser();
    10 	text  = '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';
    11 	text += '<xsl:template match="/">';
    12 	text += '<body>';
    13 	text += '<xsl:number value="2147483648" format="i"/>';
    14 	text += '</body>';
    15 	text += '</xsl:template>';	
    16 	text += '</xsl:stylesheet>';
    17 	xsl=p.parseFromString(text, 'text/xml');
    19 	xsltProcessor=new XSLTProcessor();
    20 	xsltProcessor.importStylesheet(xsl);
    21 	d = xsltProcessor.transformToFragment(xml, document);
    22 }
    23 </script>
    24 </head>
    25 <body onload="main()">
    26 </body>
    27 </html>

mercurial