Bug 1575785 - Show a confirmation hint when a user successfully submitted a breakage report. r=nhnt11
authorJohann Hofmann <jhofmann@mozilla.com>
Wed, 06 Nov 2019 21:14:19 +0000
changeset 500997 8792937b0a605f88dbed443e97b1a2c89452244f
parent 500996 a9d488141dde65b23404b193fa598558c0c23a72
child 500998 c77f6edcaafe6f544bf8f8a2ea1bbfad24537072
push id36778
push userapavel@mozilla.com
push dateThu, 07 Nov 2019 09:49:05 +0000
treeherdermozilla-central@d271c572a9bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnhnt11
bugs1575785
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1575785 - Show a confirmation hint when a user successfully submitted a breakage report. r=nhnt11 Differential Revision: https://phabricator.services.mozilla.com/D51383
browser/base/content/browser-siteProtections.js
browser/locales/en-US/chrome/browser/browser.properties
--- a/browser/base/content/browser-siteProtections.js
+++ b/browser/base/content/browser-siteProtections.js
@@ -2300,16 +2300,17 @@ var gProtectionsHandler = {
           Cu.reportError(
             `Content Blocking report to ${reportEndpoint} failed with status ${
               response.status
             }`
           );
           this._protectionsPopupSiteNotWorkingReportError.hidden = false;
         } else {
           this._protectionsPopup.hidePopup();
+          ConfirmationHint.show(this.iconBox, "breakageReport");
         }
       })
       .catch(Cu.reportError);
   },
 
   onSendReportClicked() {
     this.submitBreakageReport(this.reportURI);
   },
--- a/browser/locales/en-US/chrome/browser/browser.properties
+++ b/browser/locales/en-US/chrome/browser/browser.properties
@@ -1015,13 +1015,14 @@ storageAccess.description.learnmore = th
 
 confirmationHint.sendToDevice.label = Sent!
 confirmationHint.copyURL.label = Copied to clipboard!
 confirmationHint.pageBookmarked.label = Saved to Library!
 confirmationHint.addSearchEngine.label = Search engine added!
 confirmationHint.pinTab.label = Pinned!
 confirmationHint.pinTab.description = Right-click the tab to unpin it.
 confirmationHint.passwordSaved.label = Password saved!
+confirmationHint.breakageReport.label = Report sent. Thank you!
 
 # LOCALIZATION NOTE (livebookmarkMigration.title):
 # Used by the export of user's live bookmarks to an OPML file as a title for the file.
 # %S will be replaced with brandShortName
 livebookmarkMigration.title                      = %S Live Bookmarks