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