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 | <object>᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛ |
michael@0 | 2 | ᚛᚛᚛᚛᚛ |
michael@0 | 3 | ᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛ |
michael@0 | 4 | ᚛᚛᚛᚛ |
michael@0 | 5 | <i>᚛᚛᚛᚛᚛᚛᚛᚛᚛᚛ |
michael@0 | 6 | |
michael@0 | 7 | <script> |
michael@0 | 8 | var doc = document; |
michael@0 | 9 | if (document.getElementById('content')) { |
michael@0 | 10 | doc = document.getElementById('content').contentDocument; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | var docviewer; |
michael@0 | 14 | function do_onload() { |
michael@0 | 15 | netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); |
michael@0 | 16 | var navigator = parent.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation); |
michael@0 | 17 | var docShell = navigator.QueryInterface(Components.interfaces.nsIDocShell); |
michael@0 | 18 | docviewer = docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer); |
michael@0 | 19 | |
michael@0 | 20 | setTimeout(doe,500, 0.2); |
michael@0 | 21 | } |
michael@0 | 22 | do_onload(); |
michael@0 | 23 | |
michael@0 | 24 | |
michael@0 | 25 | |
michael@0 | 26 | function doe(i) { |
michael@0 | 27 | netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); |
michael@0 | 28 | docviewer.textZoom += i; |
michael@0 | 29 | |
michael@0 | 30 | if (docviewer.textZoom >=4) |
michael@0 | 31 | i = -0.2; |
michael@0 | 32 | |
michael@0 | 33 | if (docviewer.textZoom <=0) |
michael@0 | 34 | i = 0.2; |
michael@0 | 35 | window.status = docviewer.textZoom; |
michael@0 | 36 | setTimeout(doe, 100, i); |
michael@0 | 37 | } |
michael@0 | 38 | </script> |