[Bbs2ch-cvs 123] CVS update: bbs2chreader/content/bbs2chreader

Back to archive index

flyson flyso****@users*****
2006年 7月 14日 (金) 22:57:57 JST


Index: bbs2chreader/content/bbs2chreader/board-page.js
diff -u bbs2chreader/content/bbs2chreader/board-page.js:1.32 bbs2chreader/content/bbs2chreader/board-page.js:1.33
--- bbs2chreader/content/bbs2chreader/board-page.js:1.32	Fri Jul 14 22:47:12 2006
+++ bbs2chreader/content/bbs2chreader/board-page.js	Fri Jul 14 22:57:57 2006
@@ -371,8 +371,15 @@
 	}
 
 		// フォーム履歴に検索文字列を追加		
-	var formHistory = Components.classes["@mozilla.org/satchel/form-history;1"]
-						.getService(Components.interfaces.nsIFormHistory);
+	var formHistory;
+	// XXX Firefox 1.5 と 2.0 互換性処理
+	if("nsIFormHistory" in Components.interfaces){
+		formHistory	= Components.classes["@mozilla.org/satchel/form-history;1"]
+				.getService(Components.interfaces.nsIFormHistory);
+	}else{
+		formHistory	= Components.classes["@mozilla.org/satchel/form-history;1"]
+				.getService(Components.interfaces.nsIFormHistory2);			
+	}
 	formHistory.addEntry("bbs2ch-board-history", aSearchString);
 
 		// 検索ツリーの表示


bbs2ch-cvs メーリングリストの案内
Back to archive index