зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1031018: Add a "Tools->Apps" menu item pointing to marketplace, r=MattN
--HG-- extra : rebase_source : f1ff6847c646dcba9d6001e79bb285ac35f27298
This commit is contained in:
Родитель
4b1ebec40c
Коммит
b28f93cee8
|
@ -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/");
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче