*** empty log message ***

git-svn-id: svn://10.0.0.236/trunk@131526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2002-10-09 01:26:47 +00:00
parent f48e5a51f1
commit e990948e8e
3 changed files with 27 additions and 4 deletions

View File

@@ -193,8 +193,16 @@ function UpdatePageReport(event)
if (!gReportButton)
return;
if (gBrowser.mCurrentBrowser.pageReport)
if (gBrowser.mCurrentBrowser.pageReport) {
gReportButton.setAttribute("blocked", "true");
if (pref && pref.getBoolPref("privacy.popups.firstTime")) {
// Force a reflow. Gross.
var x = gReportButton.boxObject.width;
// Now display a dialog.
displayPageReportFirstTime();
}
}
else
gReportButton.removeAttribute("blocked");
}
@@ -3144,6 +3152,12 @@ function displayPageInfo()
"dialog=no", null, "securityTab");
}
function displayPageReportFirstTime()
{
window.openDialog("chrome://browser/content/pageReportFirstTime.xul", "_blank",
"modal");
}
function displayPageReport()
{
window.openDialog("chrome://browser/content/pageReport.xul", "_blank",

View File

@@ -29,8 +29,8 @@
<!DOCTYPE dialog [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % openDialogDTD SYSTEM "chrome://browser/locale/pageReportFirstTime.dtd" >
%openDialogDTD;
<!ENTITY % pageReportTimeDTD SYSTEM "chrome://browser/locale/pageReportFirstTime.dtd" >
%pageReportFirstTimeDTD;
]>
<dialog id="pageReportFirstTime"
@@ -49,7 +49,7 @@
<hbox pack="center">
<statusbar style="width:5em">
<statusbarpanel id="page-report-button" blocked="true"/>
<statusbarpanel flex="1">
<statusbarpanel flex="1"><description>Document: Done</description>
</statusbar>
</hbox>

View File

@@ -0,0 +1,9 @@
<!ENTITY startDescription.label "A Web site has attempted to open a pop-up window without your permission.
Phoenix has automatically closed the popup window. Whenever Phoenix blocks these pop-ups, you will see an icon
on the status bar.">
<!ENTITY endDescription.label "You can click on this icon to see which sites Phoenix blocked and to
allow those sites to open pop-ups if they are required for the site to function correctly."
<!ENTITY caption.label "About Popup Blocking">