Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mv3] Collect logs from all pages via messaging #1179

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

emaxx-google
Copy link
Collaborator

Use message passing for sending logs to the Service Worker (or the Background Page, when compiled for mv2 Apps) from all other pages of the extension.

This replaces the mv2-specific mechanism that collected all logs by directly accessing the background page's LogBuffer variable. This mechanism was a bit hacky, but had the benefit of being synchronous and zero-overhead; it's not viable in mv3 Service Workers so has to be deleted.

@emaxx-google emaxx-google force-pushed the manifest-v3-logs-sending branch 2 times, most recently from a09062e to 1535e9f Compare July 17, 2024 20:04
Use message passing for sending logs to the Service Worker (or the
Background Page, when compiled for mv2 Apps) from all other pages of the
extension.

This replaces the mv2-specific mechanism that collected all logs by
directly accessing the background page's LogBuffer variable. This
mechanism was a bit hacky, but had the benefit of being synchronous and
zero-overhead; it's not viable in mv3 Service Workers so has to be
deleted.
@emaxx-google emaxx-google merged commit d346151 into main Aug 30, 2024
13 checks passed
@emaxx-google emaxx-google deleted the manifest-v3-logs-sending branch August 30, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants