epiphany r7984 - trunk/embed/mozilla
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r7984 - trunk/embed/mozilla
- Date: Mon, 25 Feb 2008 20:42:37 +0000 (GMT)
Author: chpe
Date: Mon Feb 25 20:42:36 2008
New Revision: 7984
URL: http://svn.gnome.org/viewvc/epiphany?rev=7984&view=rev
Log:
Update for added nsIContentPolicy constants in 1.9.
Modified:
trunk/embed/mozilla/EphyContentPolicy.cpp
Modified: trunk/embed/mozilla/EphyContentPolicy.cpp
==============================================================================
--- trunk/embed/mozilla/EphyContentPolicy.cpp (original)
+++ trunk/embed/mozilla/EphyContentPolicy.cpp Mon Feb 25 20:42:36 2008
@@ -135,7 +135,7 @@
EphyAdBlockManager *adblock_manager =
EPHY_ADBLOCK_MANAGER (ephy_embed_shell_get_adblock_manager (embed_shell));
- static PRBool kBlockType[nsIContentPolicy::TYPE_REFRESH + 1] = {
+ static PRBool kBlockType[] = {
PR_FALSE /* unused/unknown, don't block */,
PR_TRUE /* TYPE_OTHER */,
PR_TRUE /* TYPE_SCRIPT */,
@@ -144,7 +144,13 @@
PR_TRUE /* TYPE_OBJECT */,
PR_FALSE /* TYPE_DOCUMENT */,
PR_TRUE /* TYPE_SUBDOCUMENT */,
- PR_TRUE /* TYPE_REFRESH */
+ PR_TRUE /* TYPE_REFRESH */,
+#ifdef HAVE_GECO_1_9
+ PR_FALSE /* TYPE_XBEL */,
+ PR_TRUE /* TYPE_PING */,
+ PR_FALSE /* TYPE_XMLHTTPREQUEST */,
+ PR_TRUE /* TYPE_OBJECT_SUBREQUEST */,
+#endif /* HAVE_GECKO_1_9 */
};
if (kBlockType[aContentType < G_N_ELEMENTS (kBlockType) ? aContentType : 0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]