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

Bug 1142572 - Use ManifestHelper's displayName instead of short_name #29023

Merged

Conversation

sfoster
Copy link
Contributor

@sfoster sfoster commented Mar 20, 2015

https://bugzilla.mozilla.org/show_bug.cgi?id=1142572

Going through and replacing the name || short_name assignments with displayName, where the ManifestHelper is used. Also got rid of the AppWindow.prototype.shortName and its use in task manager (Card) - we always display short_name when it is defined, so we don't need this distinction and we can just set .name from the displayName of the ManifestHelper and use that.

@sfoster sfoster closed this Mar 20, 2015
@sfoster sfoster reopened this Mar 20, 2015
@sfoster sfoster closed this Mar 20, 2015
@sfoster sfoster reopened this Mar 20, 2015
@sfoster sfoster closed this Mar 20, 2015
@sfoster sfoster reopened this Mar 20, 2015
@sfoster sfoster closed this Mar 20, 2015
@sfoster sfoster reopened this Mar 20, 2015
@sfoster sfoster closed this Mar 23, 2015
@sfoster sfoster reopened this Mar 23, 2015
@lightsofapollo
Copy link
Contributor

@sfoster sfoster force-pushed the manifest-displayname-bug-1142572 branch 2 times, most recently from 68447da to 970a600 Compare March 23, 2015 22:36
@lightsofapollo
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

http://docs.taskcluster.net/tools/task-graph-inspector/#pFs2EBqvSQKlJd8Wzlqrcw

The pull request failed to pass integration tests. It could not be landed, please try again.

@sfoster sfoster force-pushed the manifest-displayname-bug-1142572 branch from 970a600 to dedd57b Compare March 25, 2015 16:55
@lightsofapollo
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

http://docs.taskcluster.net/tools/task-graph-inspector/#mi6GtyXST3eJb0S2gyNw-w

The pull request failed to pass integration tests. It could not be landed, please try again.

@sfoster sfoster closed this Mar 26, 2015
@sfoster sfoster reopened this Mar 26, 2015
@lightsofapollo
Copy link
Contributor

rvandermeulen added a commit that referenced this pull request Mar 26, 2015
Bug 1142572 - Use ManifestHelper's displayName instead of short_name
@rvandermeulen rvandermeulen merged commit 6b95562 into mozilla-b2g:master Mar 26, 2015
manifestPromise.then((function(manifestData) {
if (manifestData) {
this.installAppButtonListener = this._installApp.bind(this);
this.installAppButton.addEventListener('click',
this.installAppButtonListener);
this.appNameText.textContent = manifestData.short_name ||
manifestData.name;
this.appNameText.textContent = manifestData.displayName;
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work, manifestData comes from WebManifestHelper which is a different thing to ManifestHelper, it fetches and parses W3C web app manifests for apps which are not installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants