Issue metadata
Sign in to add a comment
|
window.opener is not working in Windows Chrome
Reported by
selvakum...@gmail.com,
Feb 13 2017
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36
Steps to reproduce the problem:
We are using Chrome browser version 56. We are developing MVC application which supports multiple tabs(parent and child tab window).
When user clicks logoff button from child window.
When tested in IE browser, the code worked fine.
But when tested in Chrome browser, child tab gets closed but parent tab doesnt transfered to login page.
Please find the code used in our applcation.
if (logOff == "success") {
var parentwindow = window.opener;
if (parentwindow) {
parent.window.opener.document.location.href = "../Login/Login";
window.close();
}
}
The property window.opener.href tag is not working please help me in resolving this issue.
Please take this as an important one.
What is the expected behavior?
Expected scenario:
The child tab window must be closed and parent tab must be transferred to login page of application.
What went wrong?
The property window.opener.href tag is not working and getting a null reference error.
Did this work before? No
Chrome version: 55.0.2883.75 Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 24.0 r0
,
Feb 14 2017
,
Feb 14 2017
selvakumar.v@ in order to triage this issue could you please help us with the sample html case and expected result, so that we can reproduce the scenario from TE-end. Thank You...
,
Feb 22 2017
It shouldn't matter, but that code is a bit redundant. I believe you could write parent.window.opener.document.location.href = ... more succinctly by just doing parent.location = ...
,
Apr 13 2017
Feedback timeout. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by nyerramilli@chromium.org
, Feb 13 2017