Sat, 03 Jan 2015 20:18:00 +0100
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 class="reftest-wait">
2 <head>
3 <title>Crash [@ nsFocusManager::GetCommonAncestor], part 2</title>
4 </head>
5 <body>
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>
7 <script>
8 var src=document.getElementById('src');
9 setInterval(function() {
10 if (!document.getElementById('content')) {
11 var x=document.createElement('iframe');
12 x.src=src;
13 x.id = 'content';
14 document.body.appendChild(x);
15 setTimeout(function() { window.focus(); document.documentElement.removeAttribute('class'); }, 100);
16 } else
17 window.frames[0].location.reload();
18 }, 500);
19 </script>
20 </body>
21 </html>