Support for single sigon and cookie management features.

This commit is contained in:
pinkerton 1998-06-04 17:46:27 +00:00
Родитель 75df8aa66d
Коммит 485379ccd5
5 изменённых файлов: 32 добавлений и 4 удалений

Просмотреть файл

@ -550,4 +550,6 @@ enum pref_Strings { prefFolderName = 1
, profileTemplateDir = 49
, cryptoPolicy = 50
, signedAppletDb = 51
, cookiePermissions = 52
, singleSignons = 53
};

Просмотреть файл

@ -688,6 +688,12 @@ void MochaFormSubmitCallback(MWContext* pContext,
LO_FormSubmitData* submit = LO_SubmitForm(pContext, (LO_FormElementStruct*)lo_element);
if (submit == NULL)
return;
#ifdef SingleSignon
// Check for a password submission and remember the data if so
SI_RememberSignonData(pContext, submit);
#endif
URL_Struct* url = NET_CreateURLStruct((char *)submit->action, NET_DONT_RELOAD);
CBrowserContext* context = ExtractBrowserContext(pContext);
if (context)
@ -732,7 +738,11 @@ void MochaImageFormSubmitCallback(MWContext* pContext,
try
{
theSubmit = LO_SubmitImageForm(pContext, data->lo_image, data->x, data->y);
// ThrowIfNULL_(theSubmit);
#ifdef SingleSignon
// Check for a password submission and remember the data if so
SI_RememberSignonData(pContext, theSubmit);
#endif
// 97-06-07 pkc -- NULL is a valid return value from LO_SubmitImageForm
if (theSubmit)

Просмотреть файл

@ -189,6 +189,8 @@ resource 'STR#' ( 300, "Pref file names", purgeable ) {{
"Defaults"; // 49 Template folder for new profiles
"moz40p3"; // 50 Cryptographic policy file
"SignedAppletDB"; // 51 Signed applet file
"Cookie Permissions"; // 52 Cookie permission file
"Single Signons"; // 53 Single Signon file
}};
resource 'STR#' ( BUTTON_STRINGS_RESID, "Button Names", purgeable ) {{

Просмотреть файл

@ -245,11 +245,25 @@ OSErr XP_FileSpec(const char *inName, XP_FileType type, FSSpec* outSpec)
*outSpec = CPrefs::GetFilePrototype( CPrefs::MainFolder );
GetIndString(outSpec->name, 300, magicCookie);
break;
#ifdef CookieManagement
case xpHTTPCookiePermission:
_ftype = emMagicCookie; // is this right?
*outSpec = CPrefs::GetFilePrototype( CPrefs::MainFolder );
GetIndString(outSpec->name, 300, cookiePermissions);
break;
#endif
case xpJSCookieFilters:
_ftype = emTextType;
*outSpec = CPrefs::GetFilePrototype( CPrefs::MainFolder );
*(CStr63*)(outSpec->name) = ":cookies.js";
break;
#ifdef SingleSignon
case xpHTTPSingleSignon:
_ftype = emMagicCookie; // is this right?
*outSpec = CPrefs::GetFilePrototype( CPrefs::MainFolder );
GetIndString(outSpec->name, 300, singleSignons);
break;
#endif
case xpProxyConfig:
_ftype = emTextType;
*outSpec = CPrefs::GetFilePrototype( CPrefs::MainFolder );

Просмотреть файл

@ -31,9 +31,9 @@
//#define BETA
// Comment out both ALPHA and BETA for the final version
// ÑÑÑ Do we have an editor?
// 98-03-10 pchen -- moved into Component_Config.h
// #define EDITOR
// 98-06-03 pinkerton -- temorary defines to turn on features before they fully land.
#define CookieManagement 1
#define SingleSignon 1
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// ¥ You typically will not need to change things below here