*** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@131526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user