piyush gupta
unread,Jan 20, 2024, 3:06:47 AM1/20/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, Simeon Vincent, Chromium Extensions, hrg...@gmail.com, Oliver Dunk, piyush gupta
I don't understand completely the difference b/w unloaded/discarded/frozen tabs but I think erroring in case of frozen tabs would be consistent with how it is handled currently for discarded/unloaded tabs. As it throws error for the other two cases.
And although I did suggest adding a frozen flag initially but I think it might be even better to just have kind of an enum to signify a tab's state like tabState = 'frozen' | 'discarded' | 'unloaded' | 'othersWhichIDon'tKnow' so that devs can take their call on how to handle each state.
Imo, the above approach is more scalable than adding a flag specially for executeScript because then the Tab object gets tightly coupled with executeScript. Instead of this, Tab object should just define the current state accurately with as much granularity as possible to empower the devs.