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 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 // Test that we get the magic properties on Error objects.
6 var gDebuggee;
7 var gClient;
8 var gThreadClient;
10 function run_test()
11 {
12 initTestDebuggerServer();
13 gDebuggee = addTestGlobal("test-grips");
14 gDebuggee.eval(function stopMe(arg1) {
15 debugger;
16 }.toString());
18 gClient = new DebuggerClient(DebuggerServer.connectPipe());
19 gClient.connect(function() {
20 attachTestTabAndResume(gClient, "test-grips", function(aResponse, aTabClient, aThreadClient) {
21 gThreadClient = aThreadClient;
22 test_object_grip();
23 });
24 });
25 do_test_pending();
26 }
28 function test_object_grip()
29 {
30 gThreadClient.addOneTimeListener("paused", function(aEvent, aPacket) {
31 let args = aPacket.frame.arguments;
33 let objClient = gThreadClient.pauseGrip(args[0]);
34 objClient.getOwnPropertyNames(function(aResponse) {
35 var opn = aResponse.ownPropertyNames;
36 do_check_eq(opn.length, 5);
37 opn.sort();
38 do_check_eq(opn[0], "columnNumber");
39 do_check_eq(opn[1], "fileName");
40 do_check_eq(opn[2], "lineNumber");
41 do_check_eq(opn[3], "message");
42 do_check_eq(opn[4], "stack");
44 gThreadClient.resume(function() {
45 finishClient(gClient);
46 });
47 });
49 });
51 gDebuggee.eval("stopMe(new TypeError('error message text'))");
52 }