mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 17:16:12 +00:00
Rest of tree-wide cleanup for bug 100212 - switch last consumers of nsIFile.URL r=dougt, sr=darin
This commit is contained in:
parent
b7846bd8a6
commit
308567684f
@ -707,7 +707,10 @@ function sidebar_revert_to_default_panels() {
|
||||
function get_sidebar_datasource_uri() {
|
||||
try {
|
||||
var sidebar_file = sidebar_get_panels_file();
|
||||
return sidebar_file.URL;
|
||||
|
||||
var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
|
||||
|
||||
return ioService.getURLSpecFromFile(sidebar_file);
|
||||
} catch (ex) {
|
||||
// This should not happen
|
||||
debug("Error: Unable to load panels file.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user