imjasonh / ideas

A place for me to file issues against myself for things I want to build when I'm bored
5 stars 0 forks source link

Google Cloud Storage gs:// link handler Chrome extension #50

Closed imjasonh closed 7 years ago

imjasonh commented 7 years ago

Protocol must start with web+, and can only register a handler for themselves. Unclear if it works for Chrome extensions, guess we'll find out.

navigator.registerProtocolHandler('web+gs', 'chrome-extension://.../redir?q=%s', 'Google Cloud Storage Browser')

Then handle requests to /redir?q=... by parsing and redirecting to: https://storage.cloud.google.com/$BUCKET/$OBJECT

imjasonh commented 7 years ago

Apparently not supported in Chrome extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=86115