Call Services.io directly in modules/tabbarDNDObserver.js.

This commit is contained in:
saneyuki_s 2012-09-18 00:49:12 +09:00
parent c1c3faac5f
commit ee71d841c4

View File

@ -48,8 +48,7 @@ const SSS = Cc['@mozilla.org/content/style-sheet-service;1']
.getService(Ci.nsIStyleSheetService); .getService(Ci.nsIStyleSheetService);
const SecMan = Cc['@mozilla.org/scriptsecuritymanager;1'] const SecMan = Cc['@mozilla.org/scriptsecuritymanager;1']
.getService(Ci.nsIScriptSecurityManager); .getService(Ci.nsIScriptSecurityManager);
const IOService = Services.io;
function TabbarDNDObserver(aTabBrowser) function TabbarDNDObserver(aTabBrowser)
{ {
this.init(aTabBrowser); this.init(aTabBrowser);
@ -1151,7 +1150,7 @@ catch(e) {
.split('\n')[0]]; .split('\n')[0]];
case 'application/x-moz-file': case 'application/x-moz-file':
let fileHandler = IOService.getProtocolHandler('file') let fileHandler = Services.io.getProtocolHandler('file')
.QueryInterface(Ci.nsIFileProtocolHandler); .QueryInterface(Ci.nsIFileProtocolHandler);
return [fileHandler.getURLSpecFromFile(aData)]; return [fileHandler.getURLSpecFromFile(aData)];
} }