From bd49ba6da8f3b4635932b56be1c48df488c5a23f Mon Sep 17 00:00:00 2001 From: David Kettler Date: Fri, 16 Jan 2009 17:08:40 +1030 Subject: [PATCH] Set buffer.loading false before content_buffer_finished_loading_hook Hook functions may want to check that flag, so we now set it prior to calling the hook functions. The (equivalent) flag was previously set first, but that was changed, perhaps inadvertently, in 61d83c5 (Implemented tab bar module, 2008-01-13). --- modules/content-buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/content-buffer.js b/modules/content-buffer.js index 880f306..43d61f3 100644 --- a/modules/content-buffer.js +++ b/modules/content-buffer.js @@ -202,8 +202,8 @@ content_buffer.prototype = { aStateFlags & Ci.nsIWebProgressListener.STATE_IS_NETWORK) { if (this.loading == true) { //dumpln("*** finished loading"); - content_buffer_finished_loading_hook.run(this); this.loading = false; + content_buffer_finished_loading_hook.run(this); } } -- 2.11.4.GIT