Skip to content

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

Merged
muxin merged 1 commit intoampproject:masterfrom
muxin:fix-firefox-ios-banner
May 26, 2017
Merged

Should show amp-app-banner in non-embedded firefox ios#9573
muxin merged 1 commit intoampproject:masterfrom
muxin:fix-firefox-ios-banner

Conversation

@muxin
Copy link
Copy Markdown
Contributor

@muxin muxin commented May 25, 2017

Fix #9566

@muxin muxin requested a review from aghassemi May 25, 2017 23:15
@muxin
Copy link
Copy Markdown
Contributor Author

muxin commented May 25, 2017

Manually verified in firefox ios

Copy link
Copy Markdown
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...

*/
isFirefox() {
return /Firefox/i.test(this.navigator_.userAgent) && !this.isEdge();
return /Firefox|FxiOS/i.test(this.navigator_.userAgent) && !this.isEdge();
Copy link
Copy Markdown
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.

5 participants