Add alert when popup is blocked.

git-svn-id: svn://10.0.0.236/trunk@131496 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2002-10-08 23:45:00 +00:00
parent e2bf35b1b2
commit 2ed7ae0add
3 changed files with 8 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
var gSiteBox;
var gUnblockButton;
var gPageReport;
var gUPMsg;
var popupmanager =
Components.classes["@mozilla.org/PopupWindowManager;1"]
@@ -33,6 +34,7 @@ function onLoad()
gSiteBox = document.getElementById("siteBox");
gUnblockButton = document.getElementById("unblockButton");
gPageReport = opener.gBrowser.pageReport;
gUPMsg = document.getElementById("unblockedPopupMsg");
buildSiteBox();
}
@@ -74,5 +76,7 @@ function whitelistSite()
uri.spec = selectedItem.label;
popupmanager.add(uri, false);
gSiteBox.removeChild(selectedItem);
alert(selectedItem.label + gUPMsg.value);
}

View File

@@ -44,6 +44,8 @@
<script type="application/x-javascript" src="chrome://browser/content/pageReport.js"/>
<description value="&unblockedPopupMsg.label;" id="unblockedPopupMsg"/>
<vbox flex="1">
<description>
&intro.label;

View File

@@ -5,3 +5,5 @@ unrequested pop-up windows:">
<!ENTITY done.label "Done">
<!ENTITY unblock.label "Unblock Site">
<!ENTITY unblockedPopupMsg.label " will now be able to open unrequested pop-up windows.">