firefox で nsSessionStore.js エラーがでたときの対処方法

サイトのプチリニューアルをしたので動作確認をしていたら firefox で firebugs 上で nsSessionStore.js がエラーを吐いていることに気がつきました。 こんなエラー。


[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1749" data: no]
[Break on this error] oState.session = { state: ((this._loadState == STATE_RUNNING) ? STATE_RUNNIN...
nsSessionStore.js (line 1749)

なんじゃそりゃ?とファイル nsSessionStore.js を見てみると firefox の内部的なコンポーネントっぽい。ファイルの中身を見てみるとこんなかんじ。

/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at


 * The Original Code is the nsSessionStore component.


/* :::::::: Constants and Helpers ::::::::::::::: */

const Cc = Components.classes;
const Ci = Components.interfaces;
const Cr = Components.results;

const CID = Components.ID("{5280606b-2510-4fe0-97ef-9b5a22eafe6b}");
const CONTRACT_ID = ";1";
const CLASS_NAME = "Browser Session Store Service";

- スポンサーリンク -

情報を探してもなかなか見つからないわけで Firefox Add-ons を彷徨いていたら対処方法が見つかりました。firefox そのもものバグのようです。でもって 2.0.12 か 3.0.b2 で修正されるらしいけども nsSessionStore.js に取って代わるプラグインとしてセッションマネージャってのがありまして、これをインストールすると無事に不具合が解消されます。

セッションマネージャ - sessionmanager: documentation

Session Manager saves and restores the state of all windows - either when you want it or automatically at startup and after crashes. Additionally it offers you to reopen (accidentally) closed windows and tabs. If you're afraid of losing data while browsing - this extension allows you to relax...

This extension replaces SessionSaver and Tab Mix Plus' session manager. It stores more data than both of them and should be more reliable in saving and restoring. Although it is not recommended to have more than one session related extension installed, Session Manager is compatible at least with Tab Mix Plus.

**** READ THIS **** - There is a bug in Firefox versions 2.0.9 to 2.0.11 which can cause saved sessions to be corrupted and not load correctly or generate errors. This is completely beyond my control. This will be fixed in Firefox 2.0.12 which is do out in February. It is also fixed in Firefox 3.0 b2. For more info see




- スポンサーリンク -