Commit 9e46e396 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

BB 44832: Modify error pages for Base Browser.

parent 197d335c
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -27,9 +27,8 @@ import {
  getResolvedErrorConfig,
  resolveErrorID,
} from "chrome://global/content/errors/error-lookup.mjs";
import { html, ifDefined } from "chrome://global/content/vendor/lit.all.mjs";
import { html } from "chrome://global/content/vendor/lit.all.mjs";
import { MozLitElement } from "chrome://global/content/lit-utils.mjs";
import { NET_ERROR_ILLUSTRATIONS } from "chrome://global/content/errors/net-error-illustrations.mjs";
import "chrome://global/content/elements/moz-button-group.mjs";
import "chrome://global/content/elements/moz-button.mjs";
import "chrome://global/content/elements/moz-support-link.mjs";
@@ -1081,12 +1080,8 @@ export class NetErrorCard extends MozLitElement {
      return null;
    }

    const { bodyTitleL10nId, image } = this.errorConfig;
    const {
      src,
      alt = "",
      className,
    } = image ?? NET_ERROR_ILLUSTRATIONS.securityError;
    const { bodyTitleL10nId } = this.errorConfig;
    // Drop the Firefox mascot images. tor-browser#44832.
    const title = bodyTitleL10nId ?? "fp-certerror-body-title";

    return html`<link
@@ -1098,9 +1093,6 @@ export class NetErrorCard extends MozLitElement {
        aria-labelledby="error-title"
        aria-describedby="error-intro whatCanYouDo"
      >
        <div class="img-container">
          <img src=${src} class=${ifDefined(className)} alt=${alt} />
        </div>
        <div class="container">
          ${this.showCustomNetErrorCard
            ? html`${this.customNetErrorContainerTemplate()}`