Issue metadata
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) { });
,
Oct 8
Can you provide a simple extension that shows this behavior?
,
Oct 9
,
Oct 22
The NextAction date has arrived: 2018-10-22
,
Nov 6
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by susan.boorgula@chromium.org
, Oct 8