GoogleChromeLabs / chromeos_smart_card_connector

Smart Card Connector App for Chrome OS
https://chrome.google.com/webstore/detail/smart-card-connector/khpfeaanjngmcnplbdlpegiifgpfgdco
Apache License 2.0
134 stars 49 forks source link

Helper for waiting for incoming Port connection #1152

Closed emaxx-google closed 5 months ago

emaxx-google commented 5 months ago

This abstracts away the logic of waiting for a particularly-named chrome.runtime.onConnect event.

This helper will be useful for the mv3 code since all communication between extension's pages (Service Worker, Browser Action, popup windows, Offscreen Document) will need to be switched to message ports.

github-actions[bot] commented 5 months ago

Continuous Integration: All tests passed. C/C++ test coverage: 73.35% lines.

github-actions[bot] commented 5 months ago

Continuous Integration: All tests passed. C/C++ test coverage: 73.35% lines.