From d4da30ccf452697aa4addd72637616e9714b6223 Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Tue, 23 Feb 2021 00:11:05 +0000 Subject: [PATCH] Bug 1690573 - Migrate the report-site-issue UI access point to the Help menu. r=denschub,mixedpuppy,fluent-reviewers,webcompat-reviewers,flod We're not 100% certain if Help is the right spot for this, but we're going to give it a shot and see. If it turns out it _is_ the right spot, we'll probably do something a little more self-contained, and less hacky. I'm leaving the old .properties file just in case we change our mind here. Yes, we'll want to port to Fluent anyways, but our ultimate choice of where we put this thing is probably going to dictate where the string lives. Differential Revision: https://phabricator.services.mozilla.com/D104832 --- browser/base/content/browser-menubar.inc | 5 ++ browser/base/content/browser.js | 16 ++++++ browser/base/content/utilityOverlay.js | 24 +++++++++ .../report-site-issue/background.js | 2 +- .../experimentalAPIs/helpMenu.js | 50 +++++++++++++++++++ .../experimentalAPIs/helpMenu.json | 28 +++++++++++ .../report-site-issue/manifest.json | 15 +++--- .../extensions/report-site-issue/moz.build | 2 + .../test/browser/browser.ini | 3 ++ browser/locales/en-US/browser/appmenu.ftl | 2 + browser/locales/en-US/browser/menubar.ftl | 2 + .../bug_1690573_report_site_issue.py | 34 +++++++++++++ 12 files changed, 175 insertions(+), 8 deletions(-) create mode 100644 browser/extensions/report-site-issue/experimentalAPIs/helpMenu.js create mode 100644 browser/extensions/report-site-issue/experimentalAPIs/helpMenu.json create mode 100644 python/l10n/fluent_migrations/bug_1690573_report_site_issue.py diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc index 058c1e5835e0..1e53703302e8 100644 --- a/browser/base/content/browser-menubar.inc +++ b/browser/base/content/browser-menubar.inc @@ -484,6 +484,11 @@ onclick="checkForMiddleClick(this, event);" data-l10n-id="menu-help-taskmanager" appmenu-data-l10n-id="appmenu-help-taskmanager"/> +