diff --git a/mozilla/browser/base/content/browser.js b/mozilla/browser/base/content/browser.js index 8c44d61660f..3947b93e3cb 100644 --- a/mozilla/browser/base/content/browser.js +++ b/mozilla/browser/base/content/browser.js @@ -384,7 +384,10 @@ const gPopupBlockerObserver = { menuitem.setAttribute("requestingWindowURI", pageReport[i].requestingWindowURI.spec); menuitem.setAttribute("popupWindowURI", popupURIspec); menuitem.setAttribute("popupWindowFeatures", pageReport[i].popupWindowFeatures); +#ifndef MOZILLA_1_8_BRANCH +# bug 314700 menuitem.setAttribute("popupWindowName", pageReport[i].popupWindowName); +#endif menuitem.setAttribute("oncommand", "gPopupBlockerObserver.showBlockedPopup(event);"); aEvent.target.appendChild(menuitem); } @@ -413,14 +416,22 @@ const gPopupBlockerObserver = { var popupWindowURI = aEvent.target.getAttribute("popupWindowURI"); var features = aEvent.target.getAttribute("popupWindowFeatures"); +#ifndef MOZILLA_1_8_BRANCH +# bug 314700 var name = aEvent.target.getAttribute("popupWindowName"); +#endif var shell = findChildShell(null, gBrowser.selectedBrowser.docShell, requestingWindowURI); if (shell) { var ifr = shell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); var dwi = ifr.getInterface(Components.interfaces.nsIDOMWindowInternal); +#ifdef MOZILLA_1_8_BRANCH +# bug 314700 + dwi.open(popupWindowURI, "", features); +#else dwi.open(popupWindowURI, name, features); +#endif } }, diff --git a/mozilla/toolkit/content/widgets/browser.xml b/mozilla/toolkit/content/widgets/browser.xml index ea62e3a7e81..d9fc84d9c3a 100644 --- a/mozilla/toolkit/content/widgets/browser.xml +++ b/mozilla/toolkit/content/widgets/browser.xml @@ -481,10 +481,17 @@ this.pageReport = new Array(); } +#ifdef MOZILLA_1_8_BRANCH +# bug 314700 + var obj = { requestingWindowURI: evt.requestingWindowURI, + popupWindowURI: evt.popupWindowURI, + popupWindowFeatures: evt.popupWindowFeatures }; +#else var obj = { requestingWindowURI: evt.requestingWindowURI, popupWindowURI: evt.popupWindowURI, popupWindowFeatures: evt.popupWindowFeatures, popupWindowName: evt.popupWindowName }; +#endif this.pageReport.push(obj); this.updatePageReport() ]]>