Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Don't show the update notification banner on the website (bug 1114794) #877

Merged
merged 1 commit into from
Jan 5, 2015

Conversation

diox
Copy link
Member

@diox diox commented Jan 2, 2015

@@ -151,7 +151,9 @@ function(_) {
// are in a packaged app, wait for the iframe to be loaded, otherwise
// we are using the direct installer and we just need to wait for the
// normal loaded event.
var event_for_apps = window.location.protocol === 'app:' ? 'iframe-install-loaded' : 'loaded';
var is_packaged_app = window.location.protocol === 'app:';
var is_iframed_app = window.top != window.self; // Crude, but enough for our needs.
Copy link
Contributor

Choose a reason for hiding this comment

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

!==

Copy link
Contributor

Choose a reason for hiding this comment

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

we have a capabilities.yulelogFxA which does the same iframe check but also checks a waffle.

and we do the same iframe check again in the webactivities module.

perhaps you could consolidate? might need to check it again in more places in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated to use !==. I've filed another bug to clean up the iframe checks, it will be easier as we might need to cherry-pick this one. https://bugzilla.mozilla.org/show_bug.cgi?id=1117771

@cvan
Copy link
Contributor

cvan commented Jan 2, 2015

r+wc

@diox diox force-pushed the dont-show-update-notification-on-website branch 2 times, most recently from dc42d6b to b77cfc7 Compare January 5, 2015 14:59
diox added a commit that referenced this pull request Jan 5, 2015
…bsite

Don't show the update notification banner on the website (bug 1114794)
@diox diox merged commit f10b1c0 into mozilla:master Jan 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants