Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@sqs
Copy link
Member

@sqs sqs commented Jul 19, 2024

Chrome's and the Chrome Web Store's push for Manifest V3 means that our browser extension will start to be unusable in a few months unless we upgrade to Manifest V3.

  • Removes "Enable Sourcegraph on this domain" context menu item that didn't seem to work. We were adding this ourselves (using webext-domain-permission-toggle), and it didn't seem to work. Our options popup shows a permission request, which is sufficient.
  • Otherwise preserves all existing functionality as best I could tell.

Test plan

  1. Confirm that the browser extension continues to inject the Sourcegraph icon on https://github.com/hashicorp/errwrap.
  2. Load up https://gitlab.com/sqs/web in my local dev Sourcegraph instance and confirm that the browser extension injects the Sourcegraph icon on https://gitlab.com/sqs/web code files.

@sqs sqs requested a review from a team July 19, 2024 11:29
@cla-bot cla-bot bot added the cla-signed label Jul 19, 2024
@sqs sqs requested a review from a team July 19, 2024 11:31
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSP is no longer required?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope.

@sqs
Copy link
Member Author

sqs commented Jul 19, 2024

need to fix some color theming and telemetry issues

@sqs sqs force-pushed the sqs/bext-manifest-v3 branch 2 times, most recently from 934f5cc to a6bfca0 Compare July 19, 2024 23:59
@sqs
Copy link
Member Author

sqs commented Jul 20, 2024

Fixed the telemetry issue. Will punt on the theming issue for now in this PR.

@sqs sqs force-pushed the sqs/bext-manifest-v3 branch from a6bfca0 to 5e58119 Compare July 20, 2024 00:06
@sqs sqs enabled auto-merge (squash) July 20, 2024 00:06
sqs added 3 commits July 19, 2024 21:04
Chrome's and the Chrome Web Store's push for [Manifest V3](https://developer.chrome.com/docs/extensions/develop/migrate) means that our browser extension will start to be unusable in a few months unless we upgrade to Manifest V3.

- Removes "Enable Sourcegraph on this domain" context menu item that didn't seem to work. We were adding this ourselves (using `webext-domain-permission-toggle`), and it didn't seem to work. Our options popup shows a permission request, which is sufficient.
- Otherwise preserves all existing functionality as best I could tell.

Test plan:

1. Confirm that the browser extension continues to inject the Sourcegraph icon on https://github.com/hashicorp/errwrap.
1. Load up https://gitlab.com/sqs/web in my local dev Sourcegraph instance and confirm that the browser extension injects the Sourcegraph icon on https://gitlab.com/sqs/web code files.
- Need to just call recordEvent instead of pass the entire TelemetryRecorder object across the Comlink interface.
- Comlink's `Remote<...>` generic type struggles with the generics on the `TelemetryRecorder.recordEvent`, so just use strings.
@sqs sqs force-pushed the sqs/bext-manifest-v3 branch from 5e58119 to 30ce830 Compare July 20, 2024 04:11
sqs added 2 commits July 19, 2024 22:58
Uses the latest CSS classes that GitHub.com uses, which fixes the theming.
@sqs sqs force-pushed the sqs/bext-manifest-v3 branch from 30ce830 to e7a9c17 Compare July 20, 2024 05:58
@sqs sqs force-pushed the sqs/bext-manifest-v3 branch from 2659fde to 21fec02 Compare July 20, 2024 09:48
@sqs
Copy link
Member Author

sqs commented Jul 20, 2024

It turns out this is a bit more involved since we can't use a Web Worker OR call importScripts async. I'll still keep moving it forward.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants