Bug 1808400 - Handle cases of .then(foo, Cu.reportError) in ESLint rule no-cu-reportError. r=mossop

Differential Revision: https://phabricator.services.mozilla.com/D167520
This commit is contained in:
Mark Banner
2023-01-23 18:09:04 +00:00
parent 24d67b71d0
commit 774d70b85f
10 changed files with 54 additions and 49 deletions

View File

@@ -1854,7 +1854,7 @@ var gSync = {
let navbar = document.getElementById(CustomizableUI.AREA_NAVBAR);
navbar.overflowable.show().then(() => {
PanelUI.showSubView("PanelUI-remotetabs", anchor);
}, Cu.reportError);
}, console.error);
} else {
// It is placed somewhere else - just try and show it.
PanelUI.showSubView("PanelUI-remotetabs", anchor);