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 #include "nsString.h"
2 #include "nsReadableUtils.h"
3 #include "nsXPIDLString.h"
5 static void
6 nsXPIDLStringTest_Value(char16_t** aResult)
7 {
8 *aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
9 }
11 int
12 main(int argc, char* argv[])
13 {
14 nsXPIDLString s1;
15 nsXPIDLStringTest_Value(getter_Copies(s1));
16 return 0;
17 }