diff --git a/profile/resources/content/profileSelection.js b/profile/resources/content/profileSelection.js index 8ddee7daa31..c7a3e6d51c3 100644 --- a/profile/resources/content/profileSelection.js +++ b/profile/resources/content/profileSelection.js @@ -64,8 +64,8 @@ function StartUp() } introTextItem.childNodes[0].nodeValue = introText; - var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); - dirServ = dirServ.QueryInterface(Components.interfaces.nsIProperties); + var dirServ = Components.classes['@mozilla.org/file/directory_service;1'] + .getService(Components.interfaces.nsIProperties); // "AggRegF" stands for Application Registry File. // Forgive the weird name directory service has adapted for