Patch to fix cookie/image menus (moz 1.3 api)
Crispin Flowerday <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <1056793447.3938.4.camel@drno> |
Hi, I found that the logic in the code where we poke mozilla to ask it whether a particular site has image and cookie blocking enabled is exactly the wrong way round in the code path used for moz 1.3 Attached is a simple patch to fix the logic. Crispin
galeon_image_blocking.diff
(text/x-patch, 526 B)
diff -u -r1.62 mozilla-embed-shell.cpp
--- mozilla-embed-shell.cpp 14 Jun 2003 15:58:44 -0000 1.62
+++ mozilla-embed-shell.cpp 28 Jun 2003 09:41:40 -0000
@@ -1096,11 +1096,11 @@
break;
}
#else
- PRBool allow;
+ PRBool blocked;
rv = permissionManager->TestForBlocking(nsDependentCString(url),
- type, &allow);
+ type, &blocked);
- *ret_action = allow ? ALLOW_ACTION : DENY_ACTION;
+ *ret_action = blocked ? DENY_ACTION : ALLOW_ACTION;
#endif
if (NS_FAILED(rv)) return G_FAILED;