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 | // Binary: cache/js-dbg-64-ca97bbcd6b90-linux |
michael@0 | 2 | // Flags: --ion-eager |
michael@0 | 3 | // |
michael@0 | 4 | |
michael@0 | 5 | gczeal(4); |
michael@0 | 6 | function TestCase(n, d, e, a) {} |
michael@0 | 7 | TestCase.prototype.dump = function () {}; |
michael@0 | 8 | TestCase.prototype.testFailed = (function TestCase_testFailed() { |
michael@0 | 9 | }); |
michael@0 | 10 | try { |
michael@0 | 11 | try { } catch(ex1) { } |
michael@0 | 12 | } catch(ex) { } |
michael@0 | 13 | options.initvalues = {}; |
michael@0 | 14 | var optionNames = options().split(','); |
michael@0 | 15 | var optionsframe = {}; |
michael@0 | 16 | try { |
michael@0 | 17 | optionsClear(); |
michael@0 | 18 | } catch(ex) { } |
michael@0 | 19 | var lfcode = new Array(); |
michael@0 | 20 | lfcode.push("\ |
michael@0 | 21 | try { } catch (exception) { }\ |
michael@0 | 22 | try { } catch (exception) { }\ |
michael@0 | 23 | try { } catch (exception) { }\ |
michael@0 | 24 | try { } catch (actual) { }\ |
michael@0 | 25 | var props = {};\ |
michael@0 | 26 | function test(which) {\ |
michael@0 | 27 | var g = newGlobal();\ |
michael@0 | 28 | function addDebugger(g, i) {\ |
michael@0 | 29 | var dbg = Debugger(g);\ |
michael@0 | 30 | dbg.onDebuggerStatement = function (frame) { };\ |
michael@0 | 31 | }\ |
michael@0 | 32 | for (var i = 0; i < 3; i++) {\ |
michael@0 | 33 | addDebugger(g, i);\ |
michael@0 | 34 | }\ |
michael@0 | 35 | g.eval(\"debugger;\");\ |
michael@0 | 36 | }\ |
michael@0 | 37 | for (var j = 0; j < 3; j++) test(j);\ |
michael@0 | 38 | "); |
michael@0 | 39 | while (true) { |
michael@0 | 40 | var file = lfcode.shift(); if (file == undefined) { break; } |
michael@0 | 41 | try { evaluate(file); } catch (lfVare) { } |
michael@0 | 42 | } |