Commit 92465f45 authored by pnad's avatar pnad

Fix issue for outlook meeting links "Do not know how to handle this...

Fix issue for outlook meeting links "Do not know how to handle this reference:" and unification URI/URL naming
parent 07fda10d
......@@ -674,7 +674,7 @@ exchEventSummaryDialog.prototype = {
if (extProtService.isExposedProtocol(scheme)) {
var ioService = Cc["@mozilla.org/network/io-service;1"]
.getService(Ci.nsIIOService);
extProtService.loadUrl(ioService.newURI(href, null, null));
extProtService.loadURI(ioService.newURI(href, null, null));
}
}
catch (ex) {
......
......@@ -506,15 +506,15 @@ exchAttachments.prototype = {
return;
}
var URL = aAttachment.uri;
var URI = aAttachment.uri;
this.globalFunctions.LOG(" == Going to open:" + URL.prePath + URL.path);
this.globalFunctions.LOG(" == Going to open:" + URI.prePath + URI.path);
var externalLoader = Cc["@mozilla.org/uriloader/external-protocol-service;1"]
.getService(Ci.nsIExternalProtocolService);
try {
externalLoader.loadUrl(URL);
externalLoader.URI(URI);
}
catch (ex) {
this.globalFunctions.LOG(" == ERROR:" + ex);
......@@ -612,15 +612,15 @@ exchAttachments.prototype = {
// file is nsIFile
var ios = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService);
var URL = ios.newFileURI(file);
var URI = ios.newFileURI(file);
globalFunctions.LOG(" == Going to open:" + URL.prePath + URL.path);
globalFunctions.LOG(" == Going to open:" + URI.prePath + URI.path);
var externalLoader = Cc["@mozilla.org/uriloader/external-protocol-service;1"]
.getService(Ci.nsIExternalProtocolService);
try {
externalLoader.loadUrl(URL);
externalLoader.loadURI(URI);
}
catch (ex) {
globalFunctions.LOG(" == ERROR:" + ex);
......
......@@ -491,7 +491,7 @@
if (extProtService.isExposedProtocol(scheme)) {
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
extProtService.loadUrl(ioService.newURI(this.ceParams.href, null, null));
extProtService.loadURI(ioService.newURI(this.ceParams.href, null, null));
}
}
catch (ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment