зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
40c3713257
Коммит
3dc785e363
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче