Reputation: 15472
I want to write a chrome extension that is triggered when the browser redirect to a specific external protocol: myApp://...
I googled a bit and didn't find an easy meta-data way to do so.
is there a way to define it in the manifest?
I want the extension to open a popup then, and I'll wait for it in my automation testing.
Upvotes: 2
Views: 285
Reputation: 77531
You can, in theory, use a protocol handler with navigator.registerProtocolHandler
, but there are limitations:
web+
in Chrome, e.g. web+myApp:
In any case, opening a popup programmatically is impossible. At most you can open an extension page in a tab.
Upvotes: 1