From 96b31ddf6bb7bb7fd53c2c52fda82ef02fcf165a Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Fri, 12 Jan 2001 20:03:57 +0000 Subject: [PATCH] Fixed bug 64920, can't insert image. r=mjudge, sr=kin git-svn-id: svn://10.0.0.236/trunk@84877 18797224-902f-48f8-a5cc-f745e15eee43 --- .../ui/dialogs/content/EdDialogCommon.js | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js index 47bd4f8e34d..5554c121507 100644 --- a/mozilla/editor/ui/dialogs/content/EdDialogCommon.js +++ b/mozilla/editor/ui/dialogs/content/EdDialogCommon.js @@ -772,15 +772,6 @@ function GetPrefs() return null; } -function GetScriptFileSpec() -{ - var dirServ = Components.classes['@mozilla.org/file/directory_service;1'].createInstance(); - dirServ = dirServ.QueryInterface(Components.interfaces.nsIProperties); - var processDir = dirServ.get("CurProcD", Components.interfaces.nsIFile); - processDir.append("journal.js"); - return processDir; -} - const nsIFilePicker = Components.interfaces.nsIFilePicker; function GetLocalFileURL(filterType) @@ -812,17 +803,8 @@ function GetLocalFileURL(filterType) dump("filePicker.chooseInputFile threw an exception\n"); return null; } - - // Convert native filepath to the URL format - var fs = GetScriptFileSpec(); - if (fs) - { -dump(fp.file.path+" = native file path\n"); - fs.nativePath = fp.file.path; -dump(fs.URLString+" = URL string\n"); - return fs.URLString; - } - return null; + + return fp.fileURL.spec; } function GetMetaElement(name)