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

[electron-chrome-extensions] handle a tab of null explicitly as no tab in executeScript #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kilian
Copy link
Contributor

@Kilian Kilian commented Mar 24, 2023

Some extensions use null as the value for the tabID, and Chromium handles this as if it is not there. This change updates the electron-browser-shell implementation such that the behavior is the same.

This enables support for the snapfont extension, which uses tab.executeScript(null, {file: ....}) to add support for webComponents. Currently this is ignored, causing the content script to fail.


✅ By sending this pull request, I agree to the Contributor License Agreement of this project.

@Kilian Kilian changed the title handle a tab of null explicitly as no tab in executeScript [electron-chrome-extensions] handle a tab of null explicitly as no tab in executeScript Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant