From c2de83f0c200ad14da75f10caeae84a51f10bc1c Mon Sep 17 00:00:00 2001 From: Joseph Watson Date: Tue, 31 Oct 2017 17:26:41 -0400 Subject: [PATCH] Change the default history size from unlimited to 100 pages. This should provide a reasonable balance between resource consumption and preventing a BC break. --- surf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surf.go b/surf.go index a005ef6..ab842de 100644 --- a/surf.go +++ b/surf.go @@ -21,7 +21,7 @@ var ( DefaultFollowRedirects = true // DefaultMaxHistoryLength is the global value for max history length. - DefaultMaxHistoryLength = 0 + DefaultMaxHistoryLength = 100 ) // NewBrowser creates and returns a *browser.Browser type.