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 | <script> |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | var list = |
michael@0 | 7 | [ |
michael@0 | 8 | "blueprint/sample.html", |
michael@0 | 9 | "blueprint/forms.html", |
michael@0 | 10 | "blueprint/grid.html", |
michael@0 | 11 | "blueprint/elements.html", |
michael@0 | 12 | "js-input/3d-cube.html", |
michael@0 | 13 | "js-input/3d-morph.html", |
michael@0 | 14 | "js-input/3d-raytrace.html", |
michael@0 | 15 | "js-input/3d-thingy.html", |
michael@0 | 16 | "js-input/access-binary-trees.html", |
michael@0 | 17 | "js-input/access-fannkuch.html", |
michael@0 | 18 | "js-input/access-nbody.html", |
michael@0 | 19 | "js-input/access-nsieve.html", |
michael@0 | 20 | "js-input/bitops-3bit-bits-in-byte.html", |
michael@0 | 21 | "js-input/bitops-bits-in-byte.html", |
michael@0 | 22 | "js-input/bitops-bitwise-and.html", |
michael@0 | 23 | "js-input/bitops-nsieve-bits.html", |
michael@0 | 24 | "js-input/controlflow-recursive.html", |
michael@0 | 25 | "js-input/crypto-aes.html", |
michael@0 | 26 | "js-input/crypto-md5.html", |
michael@0 | 27 | "js-input/crypto-sha1.html", |
michael@0 | 28 | "js-input/crypto-otp.html", |
michael@0 | 29 | "js-input/date-format-tofte.html", |
michael@0 | 30 | "js-input/date-format-xparb.html", |
michael@0 | 31 | "js-input/math-cordic.html", |
michael@0 | 32 | "js-input/math-partial-sums.html", |
michael@0 | 33 | "js-input/math-spectral-norm.html", |
michael@0 | 34 | "js-input/regexp-dna.html", |
michael@0 | 35 | "js-input/string-base64.html", |
michael@0 | 36 | "js-input/string-fasta.html", |
michael@0 | 37 | "js-input/string-tagcloud.html", |
michael@0 | 38 | "js-input/string-unpack-code.html", |
michael@0 | 39 | "js-input/string-validate-input.html" |
michael@0 | 40 | ]; |
michael@0 | 41 | var interval = 3000; // 15000 |
michael@0 | 42 | var idx = 0; |
michael@0 | 43 | var w; |
michael@0 | 44 | |
michael@0 | 45 | window.onload = function () { |
michael@0 | 46 | w = window.open("about:blank"); |
michael@0 | 47 | window.setTimeout(loadURL, interval); |
michael@0 | 48 | }; |
michael@0 | 49 | function loadURL () { |
michael@0 | 50 | w.close(); |
michael@0 | 51 | w = window.open(list[idx++]); |
michael@0 | 52 | if (idx < list.length) { |
michael@0 | 53 | window.setTimeout(loadURL, interval); |
michael@0 | 54 | } else { |
michael@0 | 55 | window.setTimeout(Quitter.quit, interval); |
michael@0 | 56 | } |
michael@0 | 57 | } |
michael@0 | 58 | var i; |
michael@0 | 59 | |
michael@0 | 60 | for(i=0; i < list.length;i++) { |
michael@0 | 61 | document.write(list[i]); |
michael@0 | 62 | document.write("<br>"); |
michael@0 | 63 | } |
michael@0 | 64 | </script> |