From ee71d841c4e71db2f7c3bc72ae848037de383557 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Tue, 18 Sep 2012 00:49:12 +0900 Subject: [PATCH] Call Services.io directly in modules/tabbarDNDObserver.js. --- modules/tabbarDNDObserver.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index ccb891ab..128f07b0 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -48,8 +48,7 @@ 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) { this.init(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)]; }