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 | dnl This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | dnl License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | dnl Set MOZ_FRAMEPTR_FLAGS to the flags that should be used for enabling or |
michael@0 | 6 | dnl disabling frame pointers in this architecture based on the configure |
michael@0 | 7 | dnl options |
michael@0 | 8 | |
michael@0 | 9 | AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [ |
michael@0 | 10 | case "$target" in |
michael@0 | 11 | *android*) |
michael@0 | 12 | unwind_tables="-funwind-tables" |
michael@0 | 13 | ;; |
michael@0 | 14 | esac |
michael@0 | 15 | if test "$GNU_CC"; then |
michael@0 | 16 | MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer $unwind_tables" |
michael@0 | 17 | MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer" |
michael@0 | 18 | if test "$CPU_ARCH" = arm; then |
michael@0 | 19 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54398 |
michael@0 | 20 | MOZ_ENABLE_FRAME_PTR="$unwind_tables" |
michael@0 | 21 | fi |
michael@0 | 22 | else |
michael@0 | 23 | case "$target" in |
michael@0 | 24 | *-mingw*) |
michael@0 | 25 | MOZ_ENABLE_FRAME_PTR="-Oy-" |
michael@0 | 26 | MOZ_DISABLE_FRAME_PTR="-Oy" |
michael@0 | 27 | ;; |
michael@0 | 28 | esac |
michael@0 | 29 | fi |
michael@0 | 30 | |
michael@0 | 31 | # if we are debugging, profiling or using ASAN, we want a frame pointer. |
michael@0 | 32 | if test -z "$MOZ_OPTIMIZE" -o \ |
michael@0 | 33 | -n "$MOZ_PROFILING" -o \ |
michael@0 | 34 | -n "$MOZ_DEBUG" -o \ |
michael@0 | 35 | -n "$MOZ_ASAN"; then |
michael@0 | 36 | MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR" |
michael@0 | 37 | else |
michael@0 | 38 | MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR" |
michael@0 | 39 | fi |
michael@0 | 40 | ]) |