window.opener is not working in Windows Chrome

2,347 views
Skip to first unread message

Pradeep Eswarmurthi

unread,
Feb 10, 2017, 6:17:22 PM2/10/17
to Chromium-discuss
Hi Team,
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.
Expected scenario:
The child tab window must be closed and parent tab must be transferred to login page of application.

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.

Regards,
Pradeep 

PhistucK

unread,
Feb 10, 2017, 6:18:37 PM2/10/17
to pradeep.e...@gmail.com, Chromium-discuss
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

It would speed things up considerably if you attached a self contained test case (either a small and minimal HTML file without dependencies that shows the problem, or a JSFiddle.com/JSBin.com/plnkr.co example) to the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Ricardo Cescon

unread,
Jun 4, 2017, 2:56:00 AM6/4/17
to Chromium-discuss, pradeep.e...@gmail.com
How to solve this if "window.opener" not working?

var popup = false;
if(window.opener){
   popup
= true;
}

PhistucK

unread,
Jun 4, 2017, 2:57:20 AM6/4/17
to ricardo...@gmail.com, Chromium-discuss, Pradeep Eswarmurthi
Can you provide a URL so people could debug it?


PhistucK

--
Reply all
Reply to author
Forward
0 new messages