summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-10 17:04:59 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-04-10 17:04:59 +0000
commit1c990d524b09d13a21327bfc31457db0b37f75ca (patch)
treebd16db2f95a63fb9f7082986ca34b29df76b5553 /www
parentBump PORTREVISION by previous commit (diff)
Fix a signed vs. unsigned problem with Mozilla 1.3.
Notes
Notes: svn path=/head/; revision=78709
Diffstat (limited to 'www')
-rw-r--r--www/galeon/files/patch-src_mozilla_mozilla.cpp29
-rw-r--r--www/galeon/files/patch-src_mozilla_mozilla.h11
2 files changed, 23 insertions, 17 deletions
diff --git a/www/galeon/files/patch-src_mozilla_mozilla.cpp b/www/galeon/files/patch-src_mozilla_mozilla.cpp
index 8991f6853ae3..bed29c168f5b 100644
--- a/www/galeon/files/patch-src_mozilla_mozilla.cpp
+++ b/www/galeon/files/patch-src_mozilla_mozilla.cpp
@@ -1,5 +1,5 @@
---- src/mozilla/mozilla.cpp.orig Mon Apr 7 23:44:18 2003
-+++ src/mozilla/mozilla.cpp Mon Apr 7 23:44:29 2003
+--- src/mozilla/mozilla.cpp.orig Sat Feb 15 14:19:59 2003
++++ src/mozilla/mozilla.cpp Thu Apr 10 13:01:20 2003
@@ -1041,17 +1041,17 @@
* mozilla_list_cookies: get a list of all saved cookies
*/
@@ -81,12 +81,15 @@
return cookies;
}
-@@ -1102,16 +1102,16 @@
+@@ -1102,16 +1102,20 @@
*/
extern "C" GList *
--mozilla_get_permissions (int type)
++#if MOZILLA_SNAPSHOT > 6
+mozilla_get_permissions (guint type)
++#else
+ mozilla_get_permissions (int type)
++#endif
{
GList *permissions = NULL;
nsresult result;
@@ -102,7 +105,7 @@
PRBool enumResult;
for (permissionEnumerator->HasMoreElements(&enumResult) ;
enumResult == PR_TRUE ;
-@@ -1119,32 +1119,50 @@
+@@ -1119,32 +1123,50 @@
{
nsCOMPtr<nsIPermission> nsPermission;
result = permissionEnumerator->
@@ -168,7 +171,7 @@
return permissions;
};
-@@ -1152,16 +1170,25 @@
+@@ -1152,16 +1174,25 @@
* mozilla_set_url_permission: change permissions for a URL
*/
extern "C" void
@@ -200,7 +203,7 @@
#endif
}
-@@ -1172,10 +1199,10 @@
+@@ -1172,10 +1203,10 @@
*/
extern "C" void
@@ -213,7 +216,7 @@
}
/**
-@@ -1188,17 +1215,17 @@
+@@ -1188,17 +1219,17 @@
{
nsresult result;
nsCOMPtr<nsICookieManager> cookieManager =
@@ -236,7 +239,7 @@
if (NS_FAILED(result)) return FALSE;
};
return TRUE;
-@@ -1210,21 +1237,21 @@
+@@ -1210,21 +1241,21 @@
* @type: type of permissions ( cookies or images )
*/
extern "C" gboolean
@@ -263,7 +266,7 @@
#endif
if (NS_FAILED(result)) return FALSE;
};
-@@ -1374,7 +1401,7 @@
+@@ -1374,7 +1405,7 @@
nsresult result = NS_ERROR_FAILURE;
nsCOMPtr<nsIPasswordManager> passwordManager =
@@ -272,7 +275,7 @@
nsCOMPtr<nsISimpleEnumerator> passwordEnumerator;
if (type == PASSWORD_PASSWORD)
result = passwordManager->GetEnumerator
-@@ -1392,24 +1419,24 @@
+@@ -1392,24 +1423,24 @@
nsCOMPtr<nsIPassword> nsPassword;
result = passwordEnumerator->GetNext
(getter_AddRefs(nsPassword));
@@ -305,7 +308,7 @@
return passwords;
}
-@@ -1423,7 +1450,7 @@
+@@ -1423,7 +1454,7 @@
{
nsresult result = NS_ERROR_FAILURE;
nsCOMPtr<nsIPasswordManager> passwordManager =
@@ -314,7 +317,7 @@
for (GList *passwords = g_list_first(gone) ; passwords!=NULL ;
passwords = g_list_next(passwords))
-@@ -1435,14 +1462,14 @@
+@@ -1435,14 +1466,14 @@
(p->username);
nsDependentString unicodeString(unicodeName);
diff --git a/www/galeon/files/patch-src_mozilla_mozilla.h b/www/galeon/files/patch-src_mozilla_mozilla.h
index ef0ffb2552d2..ef074d6dc6fb 100644
--- a/www/galeon/files/patch-src_mozilla_mozilla.h
+++ b/www/galeon/files/patch-src_mozilla_mozilla.h
@@ -1,6 +1,6 @@
---- src/mozilla/mozilla.h.orig Mon Apr 7 23:44:55 2003
-+++ src/mozilla/mozilla.h Mon Apr 7 23:45:01 2003
-@@ -256,14 +256,14 @@
+--- src/mozilla/mozilla.h.orig Fri Oct 25 20:43:51 2002
++++ src/mozilla/mozilla.h Thu Apr 10 13:02:14 2003
+@@ -256,14 +256,18 @@
char *force_character_set);
/* Cookies manager */
@@ -10,10 +10,13 @@
GList *mozilla_list_cookies (void);
-void mozilla_set_permission (GaleonEmbed *embed, gboolean permit,
- int type);
--GList *mozilla_get_permissions (int type);
+void mozilla_set_permission (GaleonEmbed *embed, gboolean allow,
+ guint type);
++#if MOZILLA_SNAPSHOT > 6
+GList *mozilla_get_permissions (guint type);
++#else
+ GList *mozilla_get_permissions (int type);
++#endif
gboolean mozilla_remove_cookies (GList *gone, gboolean block);
-gboolean mozilla_remove_permissions (GList *gone, int type);
+gboolean mozilla_remove_permissions (GList *gone, guint type);