New issue
Advanced search Search tips

Issue 691527 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-03-01
OS: Windows
Pri: 2
Type: Bug



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

 
Labels: Needs-Milestone

Comment 2 by junov@chromium.org, Feb 14 2017

Components: -Blink Blink>DOM
Cc: kkaluri@chromium.org
Labels: Needs-Feedback
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...
NextAction: 2017-03-01
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 = ...

Comment 5 by tkent@chromium.org, Apr 13 2017

Components: -Blink>DOM Blink>WindowDialog
Status: Archived (was: Unconfirmed)
Feedback timeout.

Sign in to add a comment