Closed
Bug 242924
Opened 21 years ago
Closed 20 years ago
Invalid img longdesc tag breaks image properties dialog
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 175074
People
(Reporter: ized, Assigned: bugzilla)
References
()
Details
Attachments
(1 file)
1.03 KB,
patch
|
bzbarsky
:
review+
neil
:
superreview-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040506 Firefox/0.8.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040506 Firefox/0.8.0+
The example page contains sample images with a longdesc property. The last image
on the page has an invalid longdesc property, which causes the image properties
dialog to break (show's a long listing of properties, not just image properties)
Example page:
http://www.mozilla.org/quality/browser/standards/html/img_longdesc.html
Discussed in forums here:
http://forums.mozillazine.org/viewtopic.php?t=71642&highlight=
Reproducible: Always
Steps to Reproduce:
1. Goto http://www.mozilla.org/quality/browser/standards/html/img_longdesc.html
2. Move cursor over the last image on the page titled "Image long description
using an invalid absolute URL"
3. Right click and select "Properties"
Actual Results:
Properties dialog breaks and shows properties for number of items.
Expected Results:
Only show properties for the image.
I've added pictures of the problem on the forum post here:
http://forums.mozillazine.org/viewtopic.php?p=515739#515739
Direct links:
Properties as they are supposed to be shown:
http://www.saunalahti.fi/some2/ff_longdesc1.gif
Broken properties of the last image (which has invalid longdesc):
http://www.saunalahti.fi/some2/ff_longdesc2.gif
Updated•21 years ago
|
Assignee: firefox → general
Component: General → Browser-General
Product: Firefox → Browser
QA Contact: general
Version: unspecified → Trunk
Forgot this from Javascript console:
(Firefox 20040506 Win32)
Error: uncaught exception: [Exception... "Component returned failure code:
0x804b000a [nsIURI.spec]" nsresult: "0x804b000a (<unknown>)" location: "JS
frame :: chrome://browser/content/metaData.js :: getAbsoluteURL :: line 446"
data: no]
![]() |
||
Comment 3•21 years ago
|
||
Someone needs a try/catch around that newURI call...
Comment 4•21 years ago
|
||
Actually the newURI is unnecessary because the longDesc property now returns an
absolute URI if one is available. In fact, that also applies to the cite
properties on the INS, DEL, Q and BLOCKQUOTE elements. That only leaves
xlink:href - do we have a property for that?
Keywords: helpwanted
Whiteboard: [good first bug]
![]() |
||
Comment 5•21 years ago
|
||
No, for xlinks you have to do it by hand....
Assignee | ||
Comment 6•20 years ago
|
||
This patch adds a try/catch as per Boris Zbarsky's comment. Does anything else
need doing, or is this acceptable as-is?
Assignee | ||
Updated•20 years ago
|
Attachment #158526 -
Flags: review?(bzbarsky)
![]() |
||
Comment 7•20 years ago
|
||
Comment on attachment 158526 [details] [diff] [review]
try / catch
I think this should be ok, yes.
Attachment #158526 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #158526 -
Flags: review?(bzbarsky)
Attachment #158526 -
Flags: review+
Comment 8•20 years ago
|
||
Comment on attachment 158526 [details] [diff] [review]
try / catch
This function won't return a value if the resolve fails. Also, you need to call
newURI each time, setting the spec is dodgy at best. It might be an idea to
take the document character set into account. Finally, the longDesc and cite
properties are now already absolute URLs.
Attachment #158526 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview-
Updated•20 years ago
|
Product: Browser → Seamonkey
Assignee: general → cusser.bugs
Component: General → XP Apps: GUI Features
![]() |
||
Comment 9•20 years ago
|
||
Fixing bug 175074 would also fix this one.... (or vice versa)
Depends on: 175074
Assignee | ||
Comment 10•20 years ago
|
||
Wow, I totally forgot about this bug for absolutely months. Looks like it WFM
now, so I think this should be resolved as such. Neil, if you can tell me what
(if any) work needs to be covered by this bug and I'll see if I can do it.
Comment 11•20 years ago
|
||
This was fixed by the check in for bug 175074.
*** This bug has been marked as a duplicate of 175074 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Updated•14 years ago
|
Keywords: helpwanted
Whiteboard: [good first bug]
You need to log in
before you can comment on or make changes to this bug.
Description
•