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

Should show amp-app-banner in non-embedded firefox ios #9573

Merged
merged 1 commit into from May 26, 2017

Conversation

muxin
Copy link
Contributor

@muxin muxin commented May 25, 2017

Fix #9566

@muxin
Copy link
Contributor Author

muxin commented May 25, 2017

Manually verified in firefox ios

Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

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

isSafari() code is hilarious. :) also @cramforce, I guess Firefox's marketing team doesn't see thousands of PRs like this from the web community...

@@ -70,7 +70,7 @@ export class Platform {
* @return {boolean}
*/
isFirefox() {
return /Firefox/i.test(this.navigator_.userAgent) && !this.isEdge();
return /Firefox|FxiOS/i.test(this.navigator_.userAgent) && !this.isEdge();
Copy link
Member

Choose a reason for hiding this comment

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

I realize we do for Chrome, but we really shouldn't treat Chrome and Firefox on iOS as Chrome and Firefox. I guess the precedent wins here.

@muxin muxin merged commit 93efb86 into ampproject:master May 26, 2017
@muxin muxin deleted the fix-firefox-ios-banner branch May 26, 2017 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants