diff --git a/mozilla/browser/base/content/browser.js b/mozilla/browser/base/content/browser.js index 42f1aafbef7..5fef00a276f 100644 --- a/mozilla/browser/base/content/browser.js +++ b/mozilla/browser/base/content/browser.js @@ -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", diff --git a/mozilla/browser/base/content/pageReportFirstTime.xul b/mozilla/browser/base/content/pageReportFirstTime.xul index cd37591eb44..c7073195750 100644 --- a/mozilla/browser/base/content/pageReportFirstTime.xul +++ b/mozilla/browser/base/content/pageReportFirstTime.xul @@ -29,8 +29,8 @@ %brandDTD; - - %openDialogDTD; + + %pageReportFirstTimeDTD; ]> - + Document: Done diff --git a/mozilla/browser/base/locale/pageReportFirstTime.dtd b/mozilla/browser/base/locale/pageReportFirstTime.dtd index e69de29bb2d..3580ad2a9d9 100644 --- a/mozilla/browser/base/locale/pageReportFirstTime.dtd +++ b/mozilla/browser/base/locale/pageReportFirstTime.dtd @@ -0,0 +1,9 @@ + + + +