Aaron Singer
unread,Apr 4, 2024, 5:50:15 AM4/4/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Oliver Dunk, Chromium Extensions, Aaron Singer
Hi Oliver, thanks for explaining that, and apologies to the group for the multiple posts. They didn't go up over a 24 hour period so I messaged Google support and they all went up near simultaneously.
"The last time the focus state of the tab changed to active" explains it well, that actually solves why the timestamps weren't updating. I was switching between windows, refreshing, and scrolling, none of which changes the state of the foremost tabs from nonactive to active. I tested when switching tabs within a window, and the lastAccessed property updates appropriately.
Can you update the definition on the docs? Knowing that definition of accessed would have saved me a lot of trouble. "lastFocused" would probably be a better name, honestly.
It would also be helpful if there was an out-of-the-box way to get the lastFocused non-extension window. Window.getLastFocused doesn't help because it can return the extension window.