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 | #include "gdb-tests.h" |
michael@0 | 2 | |
michael@0 | 3 | typedef int A; |
michael@0 | 4 | typedef A B; |
michael@0 | 5 | |
michael@0 | 6 | class C { }; |
michael@0 | 7 | class D { }; |
michael@0 | 8 | typedef C C_; |
michael@0 | 9 | typedef D D_; |
michael@0 | 10 | class E: C, D { }; |
michael@0 | 11 | typedef E E_; |
michael@0 | 12 | class F: C_, D_ { }; |
michael@0 | 13 | class G { }; |
michael@0 | 14 | class H: F, G { }; |
michael@0 | 15 | |
michael@0 | 16 | FRAGMENT(prettyprinters, implemented_types) { |
michael@0 | 17 | int i; |
michael@0 | 18 | A a; |
michael@0 | 19 | B b; |
michael@0 | 20 | C c; |
michael@0 | 21 | C_ c_; |
michael@0 | 22 | E e; |
michael@0 | 23 | E_ e_; |
michael@0 | 24 | F f; |
michael@0 | 25 | H h; |
michael@0 | 26 | |
michael@0 | 27 | breakpoint(); |
michael@0 | 28 | |
michael@0 | 29 | (void) i; |
michael@0 | 30 | (void) a; |
michael@0 | 31 | (void) b; |
michael@0 | 32 | (void) c; |
michael@0 | 33 | (void) c_; |
michael@0 | 34 | (void) e; |
michael@0 | 35 | (void) e_; |
michael@0 | 36 | (void) f; |
michael@0 | 37 | (void) h; |
michael@0 | 38 | } |