Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1181602 - Display pin badge for Firefox Apps r=benfrancis #30894

Merged
merged 1 commit into from Jul 13, 2015

Conversation

albertopq
Copy link
Contributor

No description provided.

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

@@ -2476,6 +2489,18 @@
siteObj);
};

function _convertToWebManifestIcons(manifest) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this method be part of IconsHelper rather than AppWindow?

@mozilla-autolander-deprecated
Copy link
Contributor

@@ -48,7 +48,16 @@
iconTargetSize = iconTargetSize * window.devicePixelRatio;

// First look for an icon in the manifest.
if (siteObj.webManifestUrl && siteObj.webManifest) {
if (siteObj.manifest) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we prioritise the web manifest spec that is standardised over the open web app manifest that is proprietary?
First, check for icons in web manifest, if none, fallback to open web app manifest.
cc @benfrancis

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, maybe. My concern going forward is that if we prioritise W3C manifests over Firefox manifests in general is that if both are provided there may be features supported by the Firefox manifest (like web activities) that aren't supported in the W3C manifest.

That isn't really a problem for icons though so I'd be happy to look for a web manifest first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I change the priority then?

Copy link
Contributor

Choose a reason for hiding this comment

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

Given that I only know of one app which has both a Firefox App manifest and a W3C manifest at the moment, it isn't urgent, but what you did is fine, thank you :)

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

albertopq added a commit that referenced this pull request Jul 13, 2015
Bug 1181602 - Display pin badge for Firefox Apps r=benfrancis
@albertopq albertopq merged commit 0585f7e into mozilla-b2g:master Jul 13, 2015
mikehenrty added a commit that referenced this pull request Jul 13, 2015
This reverts commit 0585f7e, reversing
changes made to dda7775.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants