New issue
Advanced search Search tips

Issue 893098 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-10-22
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

api chrome.windows.getLastFocused returns incorrect result if called from Chrome extension Popup window

Reported by pradeep....@gmail.com, Oct 8

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
1. create a popup window for chrome extension
2. create a button and on click of the button write a code which calls getLastFocused API
3. Open a new chrome window by pressing ctrl + n
4. now click on the button on the popup window from old window
5. The getLastFocused API gives reference to the new window where as my last focused tab was on previous window.

What is the expected behavior?
getLastFocused should return reference to the window where last focused tab was located.

What went wrong?
its giving reference to the new window which was opened later but was not the last focused tab.

Did this work before? N/A 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: 10.0
Flash Version: 

window.chrome.windows.getLastFocused({populate: true, windowTypes: ["normal"]}, function (currentWindow) { });
 
Labels: Needs-Triage-M69
Cc: rtoy@chromium.org
Labels: Needs-Feedback
Can you provide a simple extension that shows this behavior?
NextAction: 2018-10-22
The NextAction date has arrived: 2018-10-22
Components: -Blink Platform>Extensions

Sign in to add a comment