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

all chrome.tabs.sendMessage errors ignored #90

Open
dvisztempacct opened this issue May 10, 2018 · 0 comments
Open

all chrome.tabs.sendMessage errors ignored #90

dvisztempacct opened this issue May 10, 2018 · 0 comments

Comments

@dvisztempacct
Copy link
Contributor

In trying to fix a bug in reason-tools, I eventually found a page whitelist here:

let getWhitelist = () => [];

So I whitelisted the local test HTML file I had created and then, because I had stopped checking the background window console, spent a long time scratching my head and double-checking assumptions. Finally, I guessed there might be a permissions issue, and sure enough, there was.

Can't whitelist local files: "Cannot access contents of page"

I realize that this whitelist is not an end-user feature, but it would be nice if this error didn't get swallowed nearly silently into the background window console.

So I took a look at where errors were being handled:

let sendTab = (id, type_, message) => Chrome.Tabs.sendMessage(id, {type_, message}, noop);

noop certainly won't be handling any errors!

Any plans on improving this?

Thanks!

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

No branches or pull requests

1 participant