Closed imjasonh closed 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.
web+
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
/redir?q=...
https://storage.cloud.google.com/$BUCKET/$OBJECT
Apparently not supported in Chrome extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=86115
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