diff --git a/mozilla/mail/base/content/mailWindowOverlay.js b/mozilla/mail/base/content/mailWindowOverlay.js index 9901b86b347..8e1e9de933a 100644 --- a/mozilla/mail/base/content/mailWindowOverlay.js +++ b/mozilla/mail/base/content/mailWindowOverlay.js @@ -421,10 +421,6 @@ function InitMessageMenu() if(labelMenu) labelMenu.setAttribute("disabled", !aMessage); - var openMenu = document.getElementById("openMessageWindowMenuitem"); - if (openMenu) - openMenu.setAttribute("disabled", !aMessage); - // Disable mark menu when we're not in a folder var markMenu = document.getElementById("markMenu"); if(markMenu) @@ -1235,23 +1231,15 @@ function MsgOpenFromFile() try { var ret = fp.show(); if (ret == nsIFilePicker.returnCancel) - return null; + return; } catch (ex) { dump("filePicker.chooseInputFile threw an exception\n"); - return null; + return; } - var ioService = Components.classes["@mozilla.org/network/io-service;1"] - .getService(Components.interfaces.nsIIOService); - var handler = ioService.getProtocolHandler("file"); - var fileHandler = handler.QueryInterface(Components.interfaces.nsIFileProtocolHandler); - - var fileUrl = fileHandler.getURLSpecFromFile(fp.file); - var uri = Components.classes["@mozilla.org/network/standard-url;1"]. - createInstance(Components.interfaces.nsIURI); - fileUrl += "?type=x-message-display"; - uri.spec = fileUrl; + var uri = fp.fileURL; + uri.query = "type=x-message-display"; MsgOpenNewWindowForMessage(uri, null); } diff --git a/mozilla/mail/base/content/mailWindowOverlay.xul b/mozilla/mail/base/content/mailWindowOverlay.xul index 0c1c6c302c3..86ebeb2ab9a 100644 --- a/mozilla/mail/base/content/mailWindowOverlay.xul +++ b/mozilla/mail/base/content/mailWindowOverlay.xul @@ -80,8 +80,6 @@ - - @@ -201,6 +199,7 @@ + diff --git a/mozilla/mail/base/locale/messenger.dtd b/mozilla/mail/base/locale/messenger.dtd index ef318ce088b..2aba873ec58 100644 --- a/mozilla/mail/base/locale/messenger.dtd +++ b/mozilla/mail/base/locale/messenger.dtd @@ -12,7 +12,7 @@ - +