reset opener when using window.open
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b2c1242207
commit
0bcdf062a3
3 changed files with 6 additions and 2 deletions
|
@ -1375,7 +1375,8 @@ export default createReactClass({
|
||||||
cancelButton: _t('Dismiss'),
|
cancelButton: _t('Dismiss'),
|
||||||
onFinished: (confirmed) => {
|
onFinished: (confirmed) => {
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
window.open(consentUri, '_blank');
|
const wnd = window.open(consentUri, '_blank');
|
||||||
|
wnd.opener = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}, null, true);
|
}, null, true);
|
||||||
|
|
|
@ -604,6 +604,7 @@ export const FallbackAuthEntry = createReactClass({
|
||||||
this.props.authSessionId,
|
this.props.authSessionId,
|
||||||
);
|
);
|
||||||
this._popupWindow = window.open(url);
|
this._popupWindow = window.open(url);
|
||||||
|
this._popupWindow.opener = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
_onReceiveMessage: function(event) {
|
_onReceiveMessage: function(event) {
|
||||||
|
|
|
@ -374,7 +374,9 @@ export default createReactClass({
|
||||||
const height = window.screen.height > 800 ? 800 : window.screen.height;
|
const height = window.screen.height > 800 ? 800 : window.screen.height;
|
||||||
const left = (window.screen.width - width) / 2;
|
const left = (window.screen.width - width) / 2;
|
||||||
const top = (window.screen.height - height) / 2;
|
const top = (window.screen.height - height) / 2;
|
||||||
window.open(completeUrl, '_blank', `height=${height}, width=${width}, top=${top}, left=${left},`);
|
const features = `height=${height}, width=${width}, top=${top}, left=${left},`;
|
||||||
|
const wnd = window.open(completeUrl, '_blank', features);
|
||||||
|
wnd.opener = null;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue