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.
michael@0 | 1 | <svg xmlns="http://www.w3.org/2000/svg" |
michael@0 | 2 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 3 | xmlns:mathml="http://www.w3.org/1998/Math/MathML" |
michael@0 | 4 | xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 5 | xmlns:svg="http://www.w3.org/2000/svg" |
michael@0 | 6 | xmlns:xforms="http://www.w3.org/2002/xforms">ع<svg:foreignObject x="0" y="0" width="100%" height="100%"></svg:foreignObject> |
michael@0 | 7 | <html:script><![CDATA[ |
michael@0 | 8 | /*template*/ |
michael@0 | 9 | var doc = document; |
michael@0 | 10 | if (document.getElementById('content')) |
michael@0 | 11 | doc = document.getElementById('content').contentDocument; |
michael@0 | 12 | |
michael@0 | 13 | function addfirstletter(){ |
michael@0 | 14 | var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); |
michael@0 | 15 | x.innerHTML='\ |
michael@0 | 16 | *::first-letter {float: right; text-transform: uppercase; background-color:red; font-size:600%;}\ |
michael@0 | 17 | '; |
michael@0 | 18 | doc.documentElement.appendChild(x); |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | setTimeout(addfirstletter,200); |
michael@0 | 22 | |
michael@0 | 23 | /*template*/ |
michael@0 | 24 | |
michael@0 | 25 | /*template*/ |
michael@0 | 26 | var doc = document; |
michael@0 | 27 | if (document.getElementById('content')) |
michael@0 | 28 | doc = document.getElementById('content').contentDocument; |
michael@0 | 29 | |
michael@0 | 30 | function addfirstline(){ |
michael@0 | 31 | var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); |
michael@0 | 32 | x.innerHTML='\ |
michael@0 | 33 | *::first-line { text-transform: uppercase; background-color:green; font-size:110%; height: 110%;}\ |
michael@0 | 34 | *::after { content:"anonymous text"; float:right;border:3px solid black;text-transform: uppercase;height: 90%;}\ |
michael@0 | 35 | *::before { content:"before text"; float:right;border:3px solid black;font-size: 10px;width:80%;}\ |
michael@0 | 36 | '; |
michael@0 | 37 | doc.documentElement.appendChild(x); |
michael@0 | 38 | } |
michael@0 | 39 | setTimeout(addfirstline,200); |
michael@0 | 40 | |
michael@0 | 41 | /*template*/ |
michael@0 | 42 | /*template*/ |
michael@0 | 43 | var doc = document; |
michael@0 | 44 | if (document.getElementById('content')) |
michael@0 | 45 | doc = document.getElementById('content').contentDocument; |
michael@0 | 46 | |
michael@0 | 47 | var timers=0; |
michael@0 | 48 | function doe(aObj, aNested, aCurrentTimer){ |
michael@0 | 49 | var temp =0; |
michael@0 | 50 | for (var i in aObj) { |
michael@0 | 51 | try { |
michael@0 | 52 | if (i == 'ordinal') |
michael@0 | 53 | continue; |
michael@0 | 54 | if (typeof aObj[i] == 'object') { |
michael@0 | 55 | if (aNested >= 1000 || aObj[i] == window.location || aOb[i] == doc.documentElement.boxObject) |
michael@0 | 56 | continue; |
michael@0 | 57 | setTimeout(doe,500, aObj[i], ++aNested, timers); |
michael@0 | 58 | timers++; |
michael@0 | 59 | if (aOb[i] == doc.documentElement.boxObject.firstChild) { |
michael@0 | 60 | alert(i); |
michael@0 | 61 | continue; |
michael@0 | 62 | }; |
michael@0 | 63 | } |
michael@0 | 64 | if (i == 'textContent' || i == 'innerHTML') |
michael@0 | 65 | continue; |
michael@0 | 66 | } |
michael@0 | 67 | catch(e){} |
michael@0 | 68 | try { |
michael@0 | 69 | //if (temp == 68 && aNested == 21 && aCurrentTimer >= 116) { |
michael@0 | 70 | // alert(i + '-'+ aObj[i]); |
michael@0 | 71 | // return; |
michael@0 | 72 | // } |
michael@0 | 73 | |
michael@0 | 74 | if (typeof aObj[i] == 'function') { |
michael@0 | 75 | if (i =='removeChild' || i == 'getBoxObjectFor' || i == 'enableRollup') |
michael@0 | 76 | aObj[i](doc.documentElement); |
michael@0 | 77 | } |
michael@0 | 78 | else { |
michael@0 | 79 | aObj[i]= 'on'; |
michael@0 | 80 | } |
michael@0 | 81 | temp+=1; |
michael@0 | 82 | } |
michael@0 | 83 | catch (e) { |
michael@0 | 84 | |
michael@0 | 85 | } |
michael@0 | 86 | } |
michael@0 | 87 | } |
michael@0 | 88 | |
michael@0 | 89 | setTimeout(doe,0, doc.documentElement, 300); |
michael@0 | 90 | |
michael@0 | 91 | /*template*/ |
michael@0 | 92 | |
michael@0 | 93 | ]]></html:script> |
michael@0 | 94 | </svg> |