Bug 1575785 - Show a confirmation hint when a user successfully submitted a breakage report. r=nhnt11
☠☠ backed out by 5991f81dbc95 ☠ ☠
authorJohann Hofmann <jhofmann@mozilla.com>
Wed, 06 Nov 2019 13:53:54 +0000
changeset 500916 9c00153e7458c739c72282f35206c41390444eb8
parent 500915 e8ba7d342c46f419cf4ade9a409b2f2daa571749
child 500917 7f420cfdf282ea973b9f6a9800de1ba554b298eb
push id99881
push usernhnt11@gmail.com
push dateWed, 06 Nov 2019 18:07:15 +0000
treeherderautoland@7bc4ba491fc6 [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