Bug 1031018: Add a "Tools->Apps" menu item pointing to marketplace, r=MattN

--HG--
extra : rebase_source : f1ff6847c646dcba9d6001e79bb285ac35f27298
This commit is contained in:
Gavin Sharp 2014-09-18 15:20:38 -07:00
parent 69516d9682
commit e32b4e0ee4
4 changed files with 13 additions and 0 deletions

View File

@ -1737,3 +1737,5 @@ pref("experiments.supported", true);
// Enable the OpenH264 plugin support in the addon manager.
pref("media.gmp-gmpopenh264.provider.enabled", true);
pref("browser.apps.URL", "https://marketplace.firefox.com/discovery/");

View File

@ -470,6 +470,10 @@
accesskey="&addons.accesskey;"
key="key_openAddons"
command="Tools:Addons"/>
<menuitem id="menu_openApps"
label="&webapps.label;"
accesskey="&webapps.accesskey;"
oncommand="BrowserOpenApps();"/>
#ifdef MOZ_SERVICES_SYNC
<!-- only one of sync-setup or sync-menu will be showing at once -->
<menuitem id="sync-setup"

View File

@ -6092,6 +6092,11 @@ function BrowserOpenAddonsMgr(aView) {
}
}
function BrowserOpenApps() {
let appsURL = Services.urlFormatter.formatURLPref("browser.apps.URL");
switchToTabHavingURI(appsURL, true)
}
function GetSearchFieldBookmarkData(node) {
var charset = node.ownerDocument.characterSet;

View File

@ -212,6 +212,8 @@ These should match what Safari and other Apple applications use on OS X Lion. --
<!ENTITY addons.label "Add-ons">
<!ENTITY addons.accesskey "A">
<!ENTITY addons.commandkey "A">
<!ENTITY webapps.label "Apps">
<!ENTITY webapps.accesskey "p">
<!ENTITY webDeveloperMenu.label "Web Developer">
<!ENTITY webDeveloperMenu.accesskey "W">