Open Bug 1977286 Opened 4 months ago Updated 3 months ago

Firefox's error pages still show images, even with "permissions.default.image=2"

Categories

(Firefox for Android :: General, defect)

Firefox 142
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: 2002luvabbaluvu, Unassigned)

Details

Steps to reproduce:

Go to about:config, set permissions.default.image to `2.
Browse to an address which will not load.

Actual results:

If the phone has airplane mode on, an error page with a mischievous fox graphic shows.
If the phone has internet access but the server is down, a large emoticon graphic shows.

Expected results:

Just text shows.

Both images are offensive enough that I will have to switch to a console (/bin/sh) browser soon, just to block images.

How to rebuild Firefox without those images?
Do you just search for an assets folder, then rm (or replace with 0x0 pixel images) *error*.jp*g?

GitHub's Copilot lists 2 approaches to remove those.

  1. Is to remove the image's <img> (or <svg>) tags from browser/base/content/aboutNetError.xhtml or browser/themes/shared/aboutNetError.css. Requires to rebuild all of Firefox (for which you must install lots of libs, plus have a computer whose resources are huge).
  2. Is to enable toolkit.legacyUserProfileCustomizations.stylesheets plus put .neterror .illustration, .aboutNetErrorContainer .illustration { display: none !important; background-image: none !important; } into chrome/userContent.css in the Firefox profile’s folder; uses the Firefox profile's chrome folder, thus not applicable to smartphones.

GitHub's Copilot also says how to remove those from Waterfox, which has some of Firefox's bloat removed (thus, less resources to rebuild Waterfox). But still, do not have a computer with sufficient resources to do so.

Wish that Firefox includes an about:config flag to do so.

The severity field is not set for this bug.
:royang, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)

Not related to settings. Moving to General.

Component: Settings → General
Flags: needinfo?(royang)
Severity: -- → S3

(In reply to Roger Yang [:royang] from comment #5)

Not related to settings. Moving to General.

Those images are bad luck. The problem is that you can not set them to "disable" (cannot shut them down). If no progress to disable those, will have to switch to a console-mode browser soon.

You need to log in before you can comment on or make changes to this bug.