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 /*
2 * WARNING!
3 *
4 * Do not edit this file directly, it is built from the sources at
5 * https://github.com/mozilla/source-map/
6 */
8 Components.utils.import('resource://test/Utils.jsm');
9 /* -*- Mode: js; js-indent-level: 2; -*- */
10 /*
11 * Copyright 2012 Mozilla Foundation and contributors
12 * Licensed under the New BSD license. See LICENSE or:
13 * http://opensource.org/licenses/BSD-3-Clause
14 */
15 define("test/source-map/test-api", ["require", "exports", "module"], function (require, exports, module) {
17 var sourceMap;
18 try {
19 sourceMap = require('source-map');
20 } catch (e) {
21 sourceMap = {};
22 Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap);
23 }
25 exports['test that the api is properly exposed in the top level'] = function (assert, util) {
26 assert.equal(typeof sourceMap.SourceMapGenerator, "function");
27 assert.equal(typeof sourceMap.SourceMapConsumer, "function");
28 assert.equal(typeof sourceMap.SourceNode, "function");
29 };
31 });
32 function run_test() {
33 runSourceMapTests('test/source-map/test-api', do_throw);
34 }