From 9e60ec1e41bdc653d1ce8c4a02f1a2e52368cf6a Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 29 Sep 2009 07:36:44 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9F=E9=9A=9B=E3=81=AE=E7=8A=B6=E6=85=8B?= =?UTF-8?q?=E3=81=A8=E4=BF=9D=E5=AD=98=E3=81=95=E3=82=8C=E3=81=9F=E3=82=BB?= =?UTF-8?q?=E3=83=83=E3=82=B7=E3=83=A7=E3=83=B3=E6=83=85=E5=A0=B1=E3=81=A8?= =?UTF-8?q?=E3=81=AE=E9=96=93=E3=81=AB=E4=B8=8D=E6=95=B4=E5=90=88=E3=81=8C?= =?UTF-8?q?=E7=99=BA=E7=94=9F=E3=81=99=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=81=A3=E3=81=9F=EF=BC=88=E3=82=BB=E3=83=83=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E5=BE=A9=E5=85=83=E6=99=82=E3=81=AB=E3=83=84?= =?UTF-8?q?=E3=83=AA=E3=83=BC=E6=A7=8B=E9=80=A0=E3=81=8C=E5=A3=8A=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=81=A3=E3=81=9F?= =?UTF-8?q?=EF=BC=89=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5145 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index b87a86ec..453bca76 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1109,6 +1109,7 @@ var TreeStyleTabService = { aTab.setAttribute(aKey, aValue); try { + this.checkCachedSessionDataExpiration(aTab); this.SessionStore.setTabValue(aTab, aKey, aValue); } catch(e) { @@ -1124,7 +1125,8 @@ var TreeStyleTabService = { { aTab.removeAttribute(aKey); try { - this.SessionStore.setTabValue(aTab, ''); + this.checkCachedSessionDataExpiration(aTab); + this.SessionStore.setTabValue(aTab, aKey, ''); this.SessionStore.deleteTabValue(aTab, aKey); } catch(e) { @@ -1134,6 +1136,15 @@ var TreeStyleTabService = { aTab.removeAttribute(this.kTMP_SESSION_DATA_PREFIX+aKey); }, + // workaround for http://piro.sakura.ne.jp/latest/blosxom/mozilla/extension/treestyletab/2009-09-29_debug.htm + checkCachedSessionDataExpiration : function(aTab) + { + if (aTab.linkedBrowser.parentNode.__SS_data && + aTab.linkedBrowser.parentNode.__SS_data._tabStillLoading && + aTab.getAttribute('busy') != 'true') + aTab.linkedBrowser.parentNode.__SS_data._tabStillLoading = false; + }, + useTMPSessionAPI : false, kTMP_SESSION_DATA_PREFIX : 'tmp-session-data-',