[Bbs2ch-cvs 63] CVS update: bbs2chreader/components

アーカイブの一覧に戻る

flyson flyso****@users*****
2005年 12月 3日 (土) 23:20:34 JST


Index: bbs2chreader/components/nsBbs2chProtocolHandler.js
diff -u bbs2chreader/components/nsBbs2chProtocolHandler.js:1.7 bbs2chreader/components/nsBbs2chProtocolHandler.js:1.8
--- bbs2chreader/components/nsBbs2chProtocolHandler.js:1.7	Sun Nov  6 21:18:28 2005
+++ bbs2chreader/components/nsBbs2chProtocolHandler.js	Sat Dec  3 23:20:33 2005
@@ -84,10 +84,10 @@
 
 		var tmpChannel;
 		switch(mode){
-			case "bbsmenu":
+			case "bbsmenu" :
 				tmpChannel = this._redirectChannel("chrome://bbs2chreader/content/bbsmenu-page.xul");
 				break;
-			case "board:":
+			case "board:" :
 				tmpChannel = this._redirectChannel("chrome://bbs2chreader/content/board-page.xul");
 				break;
 			case "thread:" :
@@ -101,7 +101,7 @@
 				var threadFactory = new b2rThreadFactory();
 				tmpChannel = Components.classes["@mozilla.org/bbs2ch-channel;1"]
 									.createInstance(Components.interfaces.nsIBbs2chChannel);
-				tmpChannel.init(aURI, "text/plain", "Shift_JIS", threadFactory.create(aURI));
+				tmpChannel.init(aURI, "text/html", "Shift_JIS", threadFactory.create(aURI));
 				break;
 			case "board-rss:" :
 				tmpChannel = Components.classes["@mozilla.org/bbs2ch-channel;1"]
@@ -122,7 +122,6 @@
 
 	_init: function(){
 		this._subScrLoader.loadSubScript("chrome://bbs2chreader/content/global.js");
-		this._subScrLoader.loadSubScript("chrome://bbs2chreader/content/channel.js");
 			// use Bbs2chThread
 		this._subScrLoader.loadSubScript("chrome://bbs2chreader/content/httprequest.js");
 		this._subScrLoader.loadSubScript("chrome://bbs2chreader/content/abone.js");
@@ -137,9 +136,7 @@
 
 
 	_redirectChannel: function(aURISpec){
-		var channelURI = Components.classes["@mozilla.org/network/standard-url;1"]
-							.createInstance(Components.interfaces.nsIURI);
-		channelURI.spec = aURISpec;
+		var channelURI = this._ioService.newURI(aURISpec, null, null);
 		return this._ioService.newChannelFromURI(channelURI);
 	},
 


bbs2ch-cvs メーリングリストの案内
アーカイブの一覧に戻る