From 62de7cc75010e8b2a84eaf5e7f81bd5c99f48198 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Mon, 26 Dec 2005 14:12:45 +0000 Subject: [PATCH] In delayed_goto, do not load the page if the doc_view has changed since the delayed_goto was registered. This fixes bug 611, the infinite loop on Gmane. --- src/ecmascript/spidermonkey/location.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ecmascript/spidermonkey/location.c b/src/ecmascript/spidermonkey/location.c index 090914ef1..c963a3ffb 100644 --- a/src/ecmascript/spidermonkey/location.c +++ b/src/ecmascript/spidermonkey/location.c @@ -206,7 +206,8 @@ delayed_goto(void *data) struct delayed_goto *deg = data; assert(deg); - if (deg->vs->doc_view) { + if (deg->vs->doc_view + && deg->vs->doc_view == deg->vs->doc_view->session->doc_view) { goto_uri_frame(deg->vs->doc_view->session, deg->uri, deg->vs->doc_view->name, CACHE_MODE_NORMAL);