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 | /* |
michael@0 | 2 | * Copyright (c) 1999 |
michael@0 | 3 | * Silicon Graphics Computer Systems, Inc. |
michael@0 | 4 | * |
michael@0 | 5 | * Copyright (c) 1999 |
michael@0 | 6 | * Boris Fomitchev |
michael@0 | 7 | * |
michael@0 | 8 | * This material is provided "as is", with absolutely no warranty expressed |
michael@0 | 9 | * or implied. Any use is at your own risk. |
michael@0 | 10 | * |
michael@0 | 11 | * Permission to use or copy this software for any purpose is hereby granted |
michael@0 | 12 | * without fee, provided the above notices are retained on all copies. |
michael@0 | 13 | * Permission to modify the code and to distribute modified code is granted, |
michael@0 | 14 | * provided the above notices are retained, and a notice that the code was |
michael@0 | 15 | * modified is included with the above copyright notice. |
michael@0 | 16 | * |
michael@0 | 17 | */ |
michael@0 | 18 | |
michael@0 | 19 | #include "stlport_prefix.h" |
michael@0 | 20 | |
michael@0 | 21 | #include "c_locale.h" |
michael@0 | 22 | |
michael@0 | 23 | #if defined (_STLP_WIN32) && !defined (_STLP_WCE) |
michael@0 | 24 | # include "c_locale_win32/c_locale_win32.c" |
michael@0 | 25 | #elif defined (_STLP_USE_GLIBC2_LOCALIZATION) |
michael@0 | 26 | # include "c_locale_glibc/c_locale_glibc2.c" /* glibc 2.2 and newer */ |
michael@0 | 27 | #else |
michael@0 | 28 | # include "c_locale_dummy/c_locale_dummy.c" |
michael@0 | 29 | #endif |