/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
loader.lazyGetter(this, "FILE_BUG_BUTTON", function () { return L10N.getStr("appErrorBoundary.fileBugButton");
});
loader.lazyGetter(this, "RELOAD_PAGE_INFO", function () { return L10N.getStr("appErrorBoundary.reloadPanelInfo");
});
// File a bug for the selected component specifically // Add format=__default__ to make sure users without EDITBUGS permission still // use the regular UI to create bugs, including the prefilled description. const bugLink = "https://bugzilla.mozilla.org/enter_bug.cgi?format=__default__&product=DevTools&component=";
/** * Error boundary that wraps around the a given component.
*/ class AppErrorBoundary extends Component { static get propTypes() { return {
children: PropTypes.any.isRequired,
panel: PropTypes.any.isRequired,
componentName: PropTypes.string.isRequired,
};
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.