Closed Bug 85963 Opened 23 years ago Closed 14 years ago

dragged images from Navigator don't have alt and other attributes

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: Brade, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: polish)

Attachments

(1 file)

When an image is dropped into Composer, we insert the <img> tag but we don't have 
alt="" as an attribute.  We should have the alt attribute since it's more 
correct.
Target Milestone: --- → mozilla0.9.3
The fix (at least part of it) probably goes in this vicinity.  CC 
blake@netscape.com since he's been modifying that file.

Ideally, in this case, we'd grab the alt attribute (if one exists) and put that 
there (or otherwise just add an empty alt="").

http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/
contentAreaDD.js#90

If the file comes from the OS/Desktop, we'll need to fix the code here:
http://lxr.mozilla.org/seamonkey/source/editor/base/nsHTMLDataTransfer.cpp#625
Status: NEW → ASSIGNED
alt attribute is required and the content of the alt attribute should be brought
with the image

reviewed and approved
Keywords: nsBranch
Priority: -- → P3
Note that this is only a problem in images that have links attached to them. 
The alt attribute is filled out for all images that are not links.

To reproduce this bug, you must use a linking image, for example the image that 
is the banner to most mozilla.org sites.

Fix is on the way.
Adding status whiteboard for the first half of this bug's fix.
Whiteboard: FIX IN HAND, need r=, sr=, a=
r=bzbarsky@mit.edu
Keywords: approval, patch
Whiteboard: FIX IN HAND, need r=, sr=, a= → FIX IN HAND, r=bz, need sr=, a=
Ryan's fix is the right fix for the navigator->editor problem (OS->editor is 
already fixed/checked in).  r=brade

However, this fix won't do anything since you have to first click the image in 
order to drag it.  One you click the selected image, you have a selection to drag 
so you aren't going to trigger the code that is broken.  The other possibility is 
that the image has a link with it so you are triggering the link code rather than 
the image-specific code.

The fix for this problem may be a part of bug #42046 or it may be an issue in the 
content area's d&d code; I'm not sure.
removing nsBranch since this isn't ready to land on the branch
Keywords: nsBranch
Target Milestone: mozilla0.9.3 → mozilla1.0
Depends on: 42046
Keywords: approval, patch
Summary: dragged images don't have alt attribute → dragged images from Navigator don't have alt attribute
Whiteboard: FIX IN HAND, r=bz, need sr=, a=
spam composer change
Component: Editor: Core → Editor: Composer
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 
(you can query for this string to delete spam or retrieve the list of bugs I've 
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Depends on: 125773
Target Milestone: mozilla1.0.1 → mozilla1.1beta
Keywords: nsbeta1
Summary: dragged images from Navigator don't have alt attribute → dragged images from Navigator don't have alt and other attributes
nsbeta1+ per buffy traige
Keywords: nsbeta1nsbeta1+
Target Milestone: mozilla1.1beta → mozilla1.2alpha
Keywords: polish
Target Milestone: mozilla1.2alpha → mozilla1.2beta
jfrancis and/or kin may have fixed this in one of their recent checkins; investigate
Target Milestone: mozilla1.2beta → mozilla1.3beta
Nope, the fixes jfrancis and I did were related to encoding pre-existing
selections, and selections built when the content you clicked on was in a link.

The image handling code in nsContentAreaDragDrop::BuildDragData() manually
builds an HTML string when you drag an unselected image, and it only writes out
the src attribute.
Target Milestone: mozilla1.3beta → mozilla1.4alpha
Composer triage team: nsbeta1-
Keywords: nsbeta1+nsbeta1-
Target Milestone: mozilla1.4alpha → mozilla1.4beta
Product: Browser → Seamonkey
Assignee: brade → nobody
Status: ASSIGNED → NEW
Priority: P3 → --
QA Contact: sujay → composer
Target Milestone: mozilla1.4beta → ---
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
Status: NEW → UNCONFIRMED
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but still has no comment since the inception of the SeaMonkey project 5 years ago.

Because of this, we're resolving the bug as EXPIRED.

If you still can reproduce the bug on SeaMonkey 2 or otherwise think it's still valid, please REOPEN it and if it is a platform or toolkit issue, move it to the according component.

Query tag for this change: EXPIRED-20100420
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: