recognize -1 value for privacy_policy_url
git-svn-id: svn://10.0.0.236/trunk@12493 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -90,7 +90,7 @@ SHIST_FreeHistoryEntry (MWContext * ctxt, History_entry * entry)
|
|||||||
XP_FREE(entry->wysiwyg_url);
|
XP_FREE(entry->wysiwyg_url);
|
||||||
if(entry->page_services_url)
|
if(entry->page_services_url)
|
||||||
XP_FREE(entry->page_services_url);
|
XP_FREE(entry->page_services_url);
|
||||||
if(entry->privacy_policy_url)
|
if(entry->privacy_policy_url && entry->privacy_policy_url != (char*)(-1))
|
||||||
XP_FREE(entry->privacy_policy_url);
|
XP_FREE(entry->privacy_policy_url);
|
||||||
|
|
||||||
#ifdef MOZ_NGLAYOUT
|
#ifdef MOZ_NGLAYOUT
|
||||||
@@ -181,7 +181,11 @@ SHIST_CreateHistoryEntry (URL_Struct * URL_s, char * title)
|
|||||||
StrAllocCopy(new_entry->content_name, URL_s->content_name);
|
StrAllocCopy(new_entry->content_name, URL_s->content_name);
|
||||||
StrAllocCopy(new_entry->post_data, URL_s->post_data);
|
StrAllocCopy(new_entry->post_data, URL_s->post_data);
|
||||||
StrAllocCopy(new_entry->post_headers, URL_s->post_headers);
|
StrAllocCopy(new_entry->post_headers, URL_s->post_headers);
|
||||||
StrAllocCopy(new_entry->privacy_policy_url, URL_s->privacy_policy_url);
|
if (URL_s->privacy_policy_url == (char*)(-1)) {
|
||||||
|
new_entry->privacy_policy_url = (char*)(-1);
|
||||||
|
} else {
|
||||||
|
StrAllocCopy(new_entry->privacy_policy_url, URL_s->privacy_policy_url);
|
||||||
|
}
|
||||||
StrAllocCopy(new_entry->page_services_url, URL_s->page_services_url);
|
StrAllocCopy(new_entry->page_services_url, URL_s->page_services_url);
|
||||||
StrAllocCopy(new_entry->etag, URL_s->etag);
|
StrAllocCopy(new_entry->etag, URL_s->etag);
|
||||||
|
|
||||||
@@ -419,7 +423,11 @@ SHIST_CloneEntry(History_entry * old_entry)
|
|||||||
StrAllocCopy(new_entry->title, old_entry->title);
|
StrAllocCopy(new_entry->title, old_entry->title);
|
||||||
StrAllocCopy(new_entry->address, old_entry->address);
|
StrAllocCopy(new_entry->address, old_entry->address);
|
||||||
StrAllocCopy(new_entry->content_name, old_entry->content_name);
|
StrAllocCopy(new_entry->content_name, old_entry->content_name);
|
||||||
StrAllocCopy(new_entry->privacy_policy_url, old_entry->privacy_policy_url);
|
if (old_entry->privacy_policy_url == (char*)(-1)) {
|
||||||
|
new_entry->privacy_policy_url = (char*)(-1);
|
||||||
|
} else {
|
||||||
|
StrAllocCopy(new_entry->privacy_policy_url, old_entry->privacy_policy_url);
|
||||||
|
}
|
||||||
StrAllocCopy(new_entry->referer, old_entry->referer);
|
StrAllocCopy(new_entry->referer, old_entry->referer);
|
||||||
StrAllocCopy(new_entry->post_data, old_entry->post_data);
|
StrAllocCopy(new_entry->post_data, old_entry->post_data);
|
||||||
StrAllocCopy(new_entry->post_headers, old_entry->post_headers);
|
StrAllocCopy(new_entry->post_headers, old_entry->post_headers);
|
||||||
|
|||||||
@@ -4511,8 +4511,12 @@ NET_FreeURLStruct (URL_Struct * URL_s)
|
|||||||
PR_FREEIF(URL_s->add_crlf);
|
PR_FREEIF(URL_s->add_crlf);
|
||||||
|
|
||||||
PR_FREEIF(URL_s->page_services_url);
|
PR_FREEIF(URL_s->page_services_url);
|
||||||
PR_FREEIF(URL_s->privacy_policy_url);
|
|
||||||
|
|
||||||
|
if (URL_s->privacy_policy_url != (char*)(-1)) {
|
||||||
|
PR_FREEIF(URL_s->privacy_policy_url);
|
||||||
|
} else {
|
||||||
|
URL_s->privacy_policy_url = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef TRUST_LABELS
|
#ifdef TRUST_LABELS
|
||||||
/* delete the entries and the trust list, if the list was created then there
|
/* delete the entries and the trust list, if the list was created then there
|
||||||
|
|||||||
Reference in New Issue
Block a user