Fixing bug 235457. Make new windows opened through window.open be opened on the context of the opener, and make caps not lie about when capabilities are enabled. r=danm-moz@comcast.net, r=caillon@aillon.org, sr=brendan@mozilla.org, a=dbaron@dbaron.org

This commit is contained in:
jst%mozilla.jstenback.com 2006-09-14 06:08:28 +00:00
Родитель 40c3713257
Коммит 3dc785e363
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2239,7 +2239,10 @@ function createShowPopupsMenu(parent) {
function popupBlockerMenuCommand(target) {
var uri = target.getAttribute("uri");
if (uri) {
window.open(uri, "", target.getAttribute("features"));
// Make sure we use the content window to open the popup to
// prevent it from being able to set flags it shoudn't be able to
// set.
window.content.open(uri, "", target.getAttribute("features"));
}
}