input type="image" is not rendered as alt text (or "Submit Form") when image loading is disabled

RESOLVED FIXED in Future

Status

()

Core
Layout: Form Controls
P2
normal
RESOLVED FIXED
17 years ago
15 years ago

People

(Reporter: Christian Reis, Assigned: rods (gone))

Tracking

Trunk
Future
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
Using CVS tip build, but seen on 2001110815

If a user has disabled image loading, or chooses "Warn me ..." , input
type="image" controls are not rendered as alt text or "Submit Form" (for
ALT-less images). I'll attach a testcase so it is easier to understand.
(Reporter)

Comment 1

17 years ago
Created attachment 58218 [details]
testcase for bug
(Reporter)

Comment 2

17 years ago
CCing attinasi who has been doing ALT work as of late. I'm looking into this to
see where the problem could be.

To reproduce, simply select "Do not load any images" on the Image Acceptance
Policy frame in the Images dialog, part of Security prefs, and load the attachment.

Hint: this problem does not happen if you save the attachment to a local
foo.html file and access through the file: method.
(Assignee)

Updated

17 years ago
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
(Assignee)

Updated

17 years ago
Priority: -- → P2
Target Milestone: mozilla1.1 → Future

Updated

16 years ago
QA Contact: madhur → tpreston

Comment 3

16 years ago
Hi, I've seen this too. However, to clarify (Moz 1.2): the alt text is not used
if the image is blocked, but it IS used if the image is just inacessible (e.g.
wrong filename). However, the wrong font is used in that case!
This is semi-purposeful -- blocked images do not show alt text (or show up at
all).  How is this worse for form submit buttons than for images that are links?
(Reporter)

Comment 5

16 years ago
Well, it's slightly more problematic given that many (some?) web forms perform
useful actions. It varies, of course, but not seeing an image IMHO is slightly
less annoying than not being able to submit a form. (There's the teensy dataloss
issue of losing form contents you typed in because you can't submit the #@!#!
form 8)

I guess the question is *what is disabling image loading for*? If the intended
semantic is *blot out anything related to that image*, I agree ALT text is best
kept off. However, if the semantic is *keep bandwidth down by not loading
images* then I think ALT text has a purpose. I venture to say the second
interpretation may be the more useful of the two.
Wait.....

Actually, there are two separate issues here:

1)  All image loading is disabled.  In this case we should show the alt text.
2)  Image loading from a particular site is blocked.  In this case there should be
    no alt text, imo.

I'll look into this...
My patch for bug 83774 will fix this, more or less....
Depends on: 83774
This is fixed.  Bug 200023 filed on the problem with changing that pref while
the browser is running.
Status: ASSIGNED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.