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 | #if !defined (__ICL) |
michael@0 | 2 | /* This header is used to turn off warnings of Microsoft compilers generated. |
michael@0 | 3 | * while building STLport. |
michael@0 | 4 | * For compiling user code, see stlport/config/_msvc_warnings_off.h. |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | # if (_MSC_VER < 1300) /* VC6/eVC4 */ |
michael@0 | 8 | # pragma warning( disable : 4097 ) /* typedef-name used as based class of (...) */ |
michael@0 | 9 | # pragma warning( disable : 4251 ) /* DLL interface needed */ |
michael@0 | 10 | # pragma warning( disable : 4284 ) /* for -> operator */ |
michael@0 | 11 | # pragma warning( disable : 4503 ) /* decorated name length exceeded, name was truncated */ |
michael@0 | 12 | # pragma warning( disable : 4514 ) /* unreferenced inline function has been removed */ |
michael@0 | 13 | # pragma warning( disable : 4660 ) /* template-class specialization '...' is already instantiated */ |
michael@0 | 14 | # pragma warning( disable : 4701 ) /* local variable 'base' may be used without having been initialized */ |
michael@0 | 15 | # pragma warning( disable : 4710 ) /* function (...) not inlined */ |
michael@0 | 16 | # pragma warning( disable : 4786 ) /* identifier truncated to 255 characters */ |
michael@0 | 17 | # endif |
michael@0 | 18 | |
michael@0 | 19 | # if (_MSC_VER <= 1310) |
michael@0 | 20 | # pragma warning( disable : 4511 ) /* copy constructor cannot be generated */ |
michael@0 | 21 | # endif |
michael@0 | 22 | |
michael@0 | 23 | # if (_MSC_VER < 1300) && defined (UNDER_CE) |
michael@0 | 24 | # pragma warning( disable : 4201 ) /* nonstandard extension used : nameless struct/union */ |
michael@0 | 25 | # pragma warning( disable : 4214 ) /* nonstandard extension used : bit field types other than int */ |
michael@0 | 26 | # endif |
michael@0 | 27 | |
michael@0 | 28 | /* Suppress warnings emitted from Windows CE SDK headers. */ |
michael@0 | 29 | # if (_MSC_VER >= 1400) && defined (UNDER_CE) |
michael@0 | 30 | # pragma warning( disable : 4115 ) /* Named type definition in parentheses. */ |
michael@0 | 31 | # pragma warning( disable : 4201 ) /* Nameless struct/union. */ |
michael@0 | 32 | # pragma warning( disable : 4214 ) /* Bit field types other than int. */ |
michael@0 | 33 | # pragma warning( disable : 4290 ) /* C++ exception specification ignored. */ |
michael@0 | 34 | # pragma warning( disable : 4430 ) /* Missing type specifier, int assumed. */ |
michael@0 | 35 | # pragma warning( disable : 4431 ) /* Missing type specifier, int assumed. */ |
michael@0 | 36 | # endif |
michael@0 | 37 | |
michael@0 | 38 | # pragma warning( disable : 4075 ) /* initializers put in unrecognized initialization area */ |
michael@0 | 39 | /* This warning is disable only for the c_locale_win32.c file compilation: */ |
michael@0 | 40 | # pragma warning( disable : 4100 ) /* unreferenced formal parameter */ |
michael@0 | 41 | # pragma warning( disable : 4127 ) /* conditional expression is constant */ |
michael@0 | 42 | # pragma warning( disable : 4146 ) /* unary minus applied to unsigned type */ |
michael@0 | 43 | # pragma warning( disable : 4245 ) /* conversion from 'enum ' to 'unsigned int', signed/unsigned mismatch */ |
michael@0 | 44 | # pragma warning( disable : 4244 ) /* implicit conversion: possible loss of data */ |
michael@0 | 45 | # pragma warning( disable : 4512 ) /* assignment operator could not be generated */ |
michael@0 | 46 | # pragma warning( disable : 4571 ) /* catch(...) blocks compiled with /EHs do not catch or re-throw Structured Exceptions */ |
michael@0 | 47 | # pragma warning( disable : 4702 ) /* unreachable code (appears in release with warning level4) */ |
michael@0 | 48 | #else |
michael@0 | 49 | # pragma warning( disable : 69 ) /* integer conversion resulted in truncation */ |
michael@0 | 50 | # pragma warning( disable : 174 ) /* expression has no effect */ |
michael@0 | 51 | # pragma warning( disable : 279 ) /* controling expression is constant */ |
michael@0 | 52 | # pragma warning( disable : 383 ) /* reference to temporary used */ |
michael@0 | 53 | # pragma warning( disable : 444 ) /* destructor for base class "..." is not virtual*/ |
michael@0 | 54 | # pragma warning( disable : 810 ) /* conversion from "int" to "char" may lose significant bits */ |
michael@0 | 55 | # pragma warning( disable : 981 ) /* operands are evaluated in unspecified order */ |
michael@0 | 56 | # pragma warning( disable : 1418 ) /* external definition with no prior declaration */ |
michael@0 | 57 | # pragma warning( disable : 1419 ) /* external declaration in primary source file */ |
michael@0 | 58 | # pragma warning( disable : 1572 ) /* floating-point equality and inequality comparisons are unreliable */ |
michael@0 | 59 | # pragma warning( disable : 1682 ) /* implicit conversion of a 64-bit integral type to a smaller integral type */ |
michael@0 | 60 | # pragma warning( disable : 1683 ) /* explicit conversion of a 64-bit integral type to a smaller integral type */ |
michael@0 | 61 | #endif |