dom/base/crashtests/504224.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.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3 <title>Crash [@ nsFocusManager::GetCommonAncestor], part 2</title>
michael@0 4 </head>
michael@0 5 <body>
michael@0 6 <iframe src="data:text/html;charset=utf-8,%3Chtml%3E%3Chead%3E%3C/head%3E%0A%3Cbody%20onunload%3D%22window.frameElement.parentNode.removeChild%28window.frameElement%29%22%20tabindex%3D%221%22%3E%0A%3Cscript%3E%0Adocument.body.focus%28%29%3B%0A%3C/script%3E%0A%3C/body%3E%0A%3C/html%3E" id="content"></iframe>
michael@0 7 <script>
michael@0 8 var src=document.getElementById('src');
michael@0 9 setInterval(function() {
michael@0 10 if (!document.getElementById('content')) {
michael@0 11 var x=document.createElement('iframe');
michael@0 12 x.src=src;
michael@0 13 x.id = 'content';
michael@0 14 document.body.appendChild(x);
michael@0 15 setTimeout(function() { window.focus(); document.documentElement.removeAttribute('class'); }, 100);
michael@0 16 } else
michael@0 17 window.frames[0].location.reload();
michael@0 18 }, 500);
michael@0 19 </script>
michael@0 20 </body>
michael@0 21 </html>
michael@0 22

mercurial