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 <?xml version="1.0" encoding="utf-8"?>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:xbl="http://www.mozilla.org/xbl">
4 <head>
5 <title>Bug 895805 - Adopting bound element to another document.</title>
6 <xbl:bindings>
7 <xbl:binding id="crash">
8 <xbl:content>
9 <xbl:children />
10 Bug 895805 dummy binding
11 </xbl:content>
12 </xbl:binding>
13 </xbl:bindings>
14 <style type="text/css">
15 #test {
16 -moz-binding:url(#crash);
17 }
18 </style>
19 </head>
20 <body onload="init()">
21 <span id="test">Test</span>
22 <script>
23 function init() {
24 var boundElement = document.getElementById('test');
25 var otherDoc = document.implementation.createDocument('', '', null);
26 otherDoc.adoptNode(boundElement);
27 }
28 </script>
29 </body>
30 </html>