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

fix: Throw error when loaded in non-extension contexts #190

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

Rob--W
Copy link
Member

@Rob--W Rob--W commented Jun 4, 2019

Fixes #186

Copy link

@blimmer blimmer left a comment

Choose a reason for hiding this comment

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

👍 I think this is worth doing to help people understand how to use this project.

@Rob--W Rob--W force-pushed the do-not-use-in-non-extensions branch from 24dc032 to c3e1dd5 Compare June 4, 2019 15:14
Copy link
Member

@rpl rpl left a comment

Choose a reason for hiding this comment

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

Just one nit

// accomodate a change in the implementation of the polyfill.
// To verify that APIs are not unnecessarily initialized, the fakeChrome
// object has a "tabs" getter that fails the test upon access.
equal(lazyInitCount, 1, "chrome.runtime should be initialized because chrome.runtime.id is accessed during polyfill intiialization");
Copy link
Member

Choose a reason for hiding this comment

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

Nit, typo: intiialization -> initialization

@Rob--W Rob--W force-pushed the do-not-use-in-non-extensions branch from c3e1dd5 to c376018 Compare July 4, 2019 14:55
@Rob--W Rob--W merged commit ad207a8 into mozilla:master Jul 18, 2019
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.

Inclusion in Firefox throws a console error
3 participants