Files
sousa-gecko/toolkit/content/errors/net-error-illustrations.mjs
Jack Brown 9938597266 Bug 2035787 - Treat error page illustrations as decorative images - r=rking
Regarding the illustrations on the Felt Privacy error pages:
https://www.w3.org/WAI/tutorials/images/decision-tree/

>
> Does the image contribute meaning to the current page or context?

I'd argue it does, and in the "Yes" column there's: "it shows content that is redundant to real text nearby," which I think is also true. An empty alt attribute is called for in this case.

Differential Revision: https://phabricator.services.mozilla.com/D302386
2026-05-28 16:45:26 +00:00

14 lines
460 B
JavaScript

/* 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/. */
export const NET_ERROR_ILLUSTRATIONS = {
noConnection: {
src: "chrome://global/skin/illustrations/no-connection.svg",
className: "no-connection",
},
securityError: {
src: "chrome://global/skin/illustrations/security-error.svg",
},
};