hrg...@gmail.com
unread,Feb 12, 2022, 5:33:49 AM2/12/22Sign 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, wOxxOm, hrg...@gmail.com, eri...@microsoft.com
I kind of agree with the decision to close
crbug.com/354597 because the extensions API should be independent from the operating system internal details.
It makes much more sense to me to solve the problem in the opposite way, i.e. to expose Chrome's window IDs to the native host via some interface that the underlying OS already has.
For example, the
Accesibility API is more or less standard across OSs. All windows have an Accessibility object with several properties. Two of those properties are "Name" and "Value". The name is the window title and the value is always null in the case of Chrome.
This "value" property could contain Chrome's window ID.
Alternatively, an new property could be added to the object, called "chromeID" or something.
If the Accesibility API is deemed is too "heavy" or difficult to use, there are other OS interfaces such the GetProp and SetProp functions in the Win32 API, which could also be a good way to expose Chrome's windows ID natively.