Skip to content

Add browser.tabs.captureVisibleTab as a fallback for chrome.tabs.captureVisibleTab#2328

Merged
Kuuuube merged 2 commits intoyomidevs:masterfrom
Kuuuube:fallback-screenshot
Mar 16, 2026
Merged

Add browser.tabs.captureVisibleTab as a fallback for chrome.tabs.captureVisibleTab#2328
Kuuuube merged 2 commits intoyomidevs:masterfrom
Kuuuube:fallback-screenshot

Conversation

@Kuuuube
Copy link
Copy Markdown
Member

@Kuuuube Kuuuube commented Mar 11, 2026

Fixes #1121

Looking past the AI mistakes in #2327, considering browser.tabs.captureVisibleTab is fine. I've added it as a fallback for if chrome.tabs.captureVisibleTab fails. I can't replicate chrome.tabs.captureVisibleTab failing on Firefox myself but if this fixes anything that's great.

Shouldn't need any permission changes. browser.tabs.captureVisibleTab runs without issues with the current manifest permissions.

Also notably, browser.tabs.captureVisibleTab does not exist on chromium browsers.

@Kuuuube Kuuuube requested a review from a team as a code owner March 11, 2026 18:40
@Kuuuube Kuuuube added kind/bug The issue or PR is regarding a bug browser/firefox The issue is Firefox-only labels Mar 11, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ceb58dc17

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Kuuuube
Copy link
Copy Markdown
Member Author

Kuuuube commented Mar 11, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@Kuuuube Kuuuube added this pull request to the merge queue Mar 16, 2026
Merged via the queue into yomidevs:master with commit f78c2d1 Mar 16, 2026
19 of 25 checks passed
@Kuuuube Kuuuube deleted the fallback-screenshot branch March 16, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

browser/firefox The issue is Firefox-only kind/bug The issue or PR is regarding a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding to screenshot to Anki card not working in Firefox

2 participants