Bug 1575785 - Show a confirmation hint when a user successfully submitted a breakage report. r=nhnt11
☠☠ backed out by 8da66de59b68 ☠ ☠
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 05 Nov 2019 21:33:06 +0000
changeset 500738 5f243fa3ab1e24e2c6b87536bc05b6930296af8c
parent 500737 7870976299f236c2bbeb5dbea2a9066dae3ac6bb
child 500739 7065a97d62f2e7d8981b181be85257f3c50db287
push id114166
push userapavel@mozilla.com
push dateThu, 07 Nov 2019 10:04:01 +0000
treeherdermozilla-inbound@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