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 "use strict";
3 exports["test common"] = require("./common")
5 var Method = require("../core")
7 exports["test host objects"] = function(assert) {
8 var isElement = Method("is-element")
9 isElement.define(function() { return false })
11 isElement.define(Element, function() { return true })
13 assert.notDeepEqual(typeof(Element.prototype[isElement]), "number",
14 "Host object's prototype is extended with a number value")
16 assert.ok(!isElement({}), "object is not an Element")
17 assert.ok(document.createElement("div"), "Element is an element")
18 }
20 require("test").run(exports)