192755 - unable to allow popup from site with specified port. r=bzbarsky, sr=jag
git-svn-id: svn://10.0.0.236/trunk@139064 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
34464419c0
commit
e472679a01
@ -350,7 +350,7 @@ function addPermission() {
|
||||
var host = addSiteBox.value;
|
||||
|
||||
if (host != "") {
|
||||
host = host.replace(/^\s*([-\w]*:\/*)?/, ""); // trim any leading space and scheme
|
||||
host = host.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme
|
||||
|
||||
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPromptService);
|
||||
@ -368,6 +368,8 @@ function addPermission() {
|
||||
return;
|
||||
}
|
||||
|
||||
host = uri.hostPort;
|
||||
|
||||
if (!host) {
|
||||
addSiteBox.value = "";
|
||||
return;
|
||||
|
||||
@ -350,7 +350,7 @@ function addPermission() {
|
||||
var host = addSiteBox.value;
|
||||
|
||||
if (host != "") {
|
||||
host = host.replace(/^\s*([-\w]*:\/*)?/, ""); // trim any leading space and scheme
|
||||
host = host.replace(/^\s*([-\w]*:\/+)?/, ""); // trim any leading space and scheme
|
||||
|
||||
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPromptService);
|
||||
@ -368,6 +368,8 @@ function addPermission() {
|
||||
return;
|
||||
}
|
||||
|
||||
host = uri.hostPort;
|
||||
|
||||
if (!host) {
|
||||
addSiteBox.value = "";
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user