-
Notifications
You must be signed in to change notification settings - Fork 944
Add popup util and bare-bones OAuthProvider #3335
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
Conversation
💥 No ChangesetLatest commit: d28343d Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂 If these changes should be published to npm, you need to add a changeset. Click here to learn what changesets are, and how to add one. Click here if you're a maintainer who wants to add a changeset to this PR |
Binary Size ReportAffected SDKsNo changes between base commit (c46e3b9) and head commit (8879d37). Test Logs
|
|
||
// Chrome iOS 7 and 8 is returning an undefined popup win when target is | ||
// specified, even though the popup is not necessarily blocked. | ||
const ua = _uaGetter.getUA().toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the helpers in firebase/util please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just so that we can stub this out in test without importing all of firebase/util.
The import * as <something> from '...'
works for stubbing BUT it also will break tree shaking (the entire module will be imported).
This is fine when there's only one or two functions in that module, but for something like firebase/util, it's a no-go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only need to do the import * as something in the tests, righty? in the implementation you can just pull in the method you want, either way we pull the UA helpers elsewhere
eaf7d11
to
78d36f0
Compare
00d79b4
to
d28343d
Compare
No description provided.