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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | "use strict"; |
michael@0 | 6 | |
michael@0 | 7 | module.metadata = { |
michael@0 | 8 | "stability": "unstable" |
michael@0 | 9 | }; |
michael@0 | 10 | |
michael@0 | 11 | const { |
michael@0 | 12 | exit, version, stdout, stderr, platform, architecture |
michael@0 | 13 | } = require("../system"); |
michael@0 | 14 | |
michael@0 | 15 | /** |
michael@0 | 16 | * Supported |
michael@0 | 17 | */ |
michael@0 | 18 | |
michael@0 | 19 | exports.stdout = stdout; |
michael@0 | 20 | exports.stderr = stderr; |
michael@0 | 21 | exports.version = version; |
michael@0 | 22 | exports.versions = {}; |
michael@0 | 23 | exports.config = {}; |
michael@0 | 24 | exports.arch = architecture; |
michael@0 | 25 | exports.platform = platform; |
michael@0 | 26 | exports.exit = exit; |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * Partial support |
michael@0 | 30 | */ |
michael@0 | 31 | |
michael@0 | 32 | // An alias to `setTimeout(fn, 0)`, which isn't the same as node's `nextTick`, |
michael@0 | 33 | // but atleast ensures it'll occur asynchronously |
michael@0 | 34 | exports.nextTick = (callback) => setTimeout(callback, 0); |
michael@0 | 35 | |
michael@0 | 36 | /** |
michael@0 | 37 | * Unsupported |
michael@0 | 38 | */ |
michael@0 | 39 | |
michael@0 | 40 | exports.maxTickDepth = 1000; |
michael@0 | 41 | exports.pid = 0; |
michael@0 | 42 | exports.title = ""; |
michael@0 | 43 | exports.stdin = {}; |
michael@0 | 44 | exports.argv = []; |
michael@0 | 45 | exports.execPath = ""; |
michael@0 | 46 | exports.execArgv = []; |
michael@0 | 47 | exports.abort = function () {}; |
michael@0 | 48 | exports.chdir = function () {}; |
michael@0 | 49 | exports.cwd = function () {}; |
michael@0 | 50 | exports.env = {}; |
michael@0 | 51 | exports.getgid = function () {}; |
michael@0 | 52 | exports.setgid = function () {}; |
michael@0 | 53 | exports.getuid = function () {}; |
michael@0 | 54 | exports.setuid = function () {}; |
michael@0 | 55 | exports.getgroups = function () {}; |
michael@0 | 56 | exports.setgroups = function () {}; |
michael@0 | 57 | exports.initgroups = function () {}; |
michael@0 | 58 | exports.kill = function () {}; |
michael@0 | 59 | exports.memoryUsage = function () {}; |
michael@0 | 60 | exports.umask = function () {}; |
michael@0 | 61 | exports.uptime = function () {}; |
michael@0 | 62 | exports.hrtime = function () {}; |