Index: Yelper.cpp
===================================================================
RCS file: /cvs/gnome/yelp/src/Yelper.cpp,v
retrieving revision 1.1
diff -p -u -u -p -r1.1 Yelper.cpp
--- Yelper.cpp	16 May 2005 21:02:33 -0000	1.1
+++ Yelper.cpp	22 Nov 2005 19:56:54 -0000
@@ -31,11 +31,13 @@
 #include "nsEmbedString.h"
 #define MOZILLA_INTERNAL_API 1
 
+#include <nsIWebBrowserSetup.h>
 #include <nsIClipboardCommands.h>
 #include <nsICommandManager.h>
 #include <nsIInterfaceRequestorUtils.h>
 #include <nsIPrefService.h>
 #include <nsIServiceManager.h>
+#include <nsIDOMDocument.h>
 #include <nsIDOMMouseEvent.h>
 #include <nsIDOMNSEvent.h>
 #include <nsIDOMEventTarget.h>
@@ -79,6 +81,11 @@ Yelper::Init ()
 					 getter_AddRefs (mWebBrowser));
 	NS_ENSURE_TRUE (mWebBrowser, rv);
 
+	nsCOMPtr<nsIWebBrowserSetup> setup (do_QueryInterface (mWebBrowser, &rv));
+	NS_ENSURE_SUCCESS (rv, rv);
+
+	setup->SetProperty (nsIWebBrowserSetup::SETUP_USE_GLOBAL_HISTORY, PR_FALSE);
+
 	mWebBrowser->GetContentDOMWindow (getter_AddRefs (mDOMWindow));
 	NS_ENSURE_TRUE (mDOMWindow, rv);
 
