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 @echo off
2 set "VIRTUAL_ENV=__VIRTUAL_ENV__"
4 if defined _OLD_VIRTUAL_PROMPT (
5 set "PROMPT=%_OLD_VIRTUAL_PROMPT%"
6 ) else (
7 if not defined PROMPT (
8 set "PROMPT=$P$G"
9 )
10 set "_OLD_VIRTUAL_PROMPT=%PROMPT%"
11 )
12 set "PROMPT=__VIRTUAL_WINPROMPT__ %PROMPT%"
14 if not defined _OLD_VIRTUAL_PYTHONHOME (
15 set "_OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME%"
16 )
17 set PYTHONHOME=
19 if defined _OLD_VIRTUAL_PATH (
20 set "PATH=%_OLD_VIRTUAL_PATH%"
21 ) else (
22 set "_OLD_VIRTUAL_PATH=%PATH%"
23 )
24 set "PATH=%VIRTUAL_ENV%\__BIN_NAME__;%PATH%"
26 :END