Closed
Bug 22411
Opened 25 years ago
Closed 24 years ago
'view image' on background graphics in tables is 'http://image.gif '
Categories
(Core :: Layout, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: twm, Assigned: law)
References
Details
(Keywords: relnote, testcase, Whiteboard: [nsbeta3-][rtm-] Fix in hand, reviewed and approved)
Attachments
(8 files)
(deleted),
text/html
|
Details | |
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/html
|
Details | |
(deleted),
text/html
|
Details |
Build: M12 release / win98
If a table has a background image in a cell, and one right clicks on that image
and attempts "view image", a new browser is created with the location
'http://imagename.gif/', and nothing is displayed. It does not appear to
actually try to DNS-resolve imagename.gif. Of course, it should really be
showing the image and its proper URL.
Attached is a short html file and image which display the problem. Any gif
should work with the html, just rename it to gears-top.gif.
Updated•25 years ago
|
QA Contact: nobody → elig
Comment 3•25 years ago
|
||
Not sure who gets this; QA assigning to self to check it out.
Updated•25 years ago
|
Assignee: nobody → gagan
Component: Browser-General → Networking
Comment 4•25 years ago
|
||
This is probably Networking, moving to Gagan; holding onto bug just in case it
needs further action.
twm@andrew.cmu.edu, thanks for the great test case, and watch out for the black
powder in cyert hall. ;)
Comment 5•25 years ago
|
||
Sounds like a MakeAbsolute problem.
Updated•25 years ago
|
Target Milestone: M13
Comment 6•25 years ago
|
||
I think it's an *absent MakeAbsolute* problem. It seems only the name of the gif
is given to open location without resolving the current path first. It works
fine when being a simple image in a table (with src=, not background=).
Comment 10•25 years ago
|
||
Leger:
nope. Once we have a filename that we know
is image data, the imglib takes over. This bug
is occuring before that happens.
-P
Comment 11•25 years ago
|
||
Interesting. I can't use view image on any image.
I get a new browser window, but it is empty.
-----------------------------
Here a snippet of our dos debug output for
an image (coffee.gif) in a table:
Loading page specified via openDialog
Check if a view source window
got a request
Error loading URL http://jazz/users/pnunn/publish/coffee.gif
Document: Done (0.14 secs)
WEBSHELL- = 8
WEBSHELL- = 7
X Pos: 82
Y Pos: 73
WEBSHELL+ = 8
nsXULKeyListenerImpl::Init()
WARNING: unable to load datasource 'rdf:xpinstall-update-notifier', file e:\grap
tor\mozilla\mozilla\rdf\content\src\nsXULDocument.cpp, line 5157
-----------------------------------------------
Here's a snippet of what I get when I click on
the background image (hat.gif) in the table:
Y Pos: 73
WEBSHELL+ = 8
nsXULKeyListenerImpl::Init()
WARNING: unable to load datasource 'rdf:xpinstall-update-notifier', file e:\grap
tor\mozilla\mozilla\rdf\content\src\nsXULDocument.cpp, line 5157
WEBSHELL+ = 9
WEBSHELL+ = 10
X Pos: 249
Y Pos: 31
WEBSHELL+ = 11
nsXULKeyListenerImpl::Init()
WARNING: unable to load datasource 'rdf:xpinstall-update-notifier', file e:\grap
tor\mozilla\mozilla\rdf\content\src\nsXULDocument.cpp, line 5157
WEBSHELL+ = 12
WEBSHELL+ = 13
X Pos: 34
Y Pos: 35
WEBSHELL+ = 14
nsXULKeyListenerImpl::Init()
---------------------------------------------
Maybe this is context menu problem?
passing bug to saari.
-p
Updated•25 years ago
|
Assignee: saari → trudelle
Comment 12•25 years ago
|
||
This is not a context menu problem. I just tried view image on the banner of
mozilla.org and it worked fine using WinNT.
Peter, I don't know who this should be assigned to, help!
Comment 13•25 years ago
|
||
Per pdt mtg, not clear how critical to M13. Moving to M14.
Updated•25 years ago
|
Component: Networking → Layout
Target Milestone: M14 → M13
Comment 14•25 years ago
|
||
Sounds like a layout bug to me. Whoever handles the background= part of the tag
must be using the wrong thing for the base URL, and accidently constructing
http://image.gif. Necko just interprets image.gif as the host name as it
should.
Updated•25 years ago
|
Assignee: trudelle → pnunn
Comment 15•25 years ago
|
||
reassigning to pnunn
Reporter | ||
Comment 16•25 years ago
|
||
saari: If you're talking about mozilla-banner.gif at the top of mozilla.org,
this does work fine (it's just a regular image). This bug concerns only
background images in tables.
html excerpt:
<TR><TD BGCOLOR="#000000" VALIGN=TOP><IMG
SRC="images/mozilla-banner.gif"
...
Comment 17•25 years ago
|
||
twm@andrew.cmu.edu:
In testing this bug from a build of 01-16-2000, I saw a slightly
different problem. The right click on _any_ image brought up a new
blank window. When I updated my tree to 01-19-2000 and rebuilt, a
right click on a regular image worked as expected. A right click on an image
in a table cell (not a background image) worked fine.
A right click on a table cell background image did not give an option
for a view-image. In Communicator 4.x, a right click on a table cell
background image does not give an view-source option.
I think if you update to a current build, you will find the context menu
view image functionality working again for html tag images, page background
images, images in table cells. But if you have a strong feeling that
images used in table cell backgrounds should have a view-menu item in its
context menu, it should be submitted as an enhancement.
I'm marking the bug as invalid, so it falls through the right QA process.
While the view-image context menu functionality WAS broken and is now
fixed, the major point of this bug was view-image context menu functionality
for table cell background images....
Opening a new bug as an enhancement request (you can specify enhancement
in the comment text as well as the severity field.) would put the request
in the right track. You could assign it to law@netscape.com to start.
-pn
Reporter | ||
Comment 18•25 years ago
|
||
pnunn, I still get the context menu with the buggy behavior in Win98 with
2000012008 (which is a day after yours, right?). Regular images work fine.
Comment 19•25 years ago
|
||
Thanks for your tenacity. I finally can see what
you are describing. Instead of using your test page,
I modified one of mine to duplicate the problem.
Rather than making the image a background in a cell,
I made it a background in the table:
I tested with
<table background="hat.gif">
<tr><td>........
rather than:
<table >
<tr><td background="hat.gif">.......
ok. I see it. Let me find out who deals with
the tables/context-menus/url resolution.
Sorry about the mix up.
Reopening bug.
-P
Status: RESOLVED → REOPENED
Comment 20•25 years ago
|
||
Bill:
I'm reassigning this to you since you know
about context menus. If you aren't the right
guy, pass it on to right person.
I have demo html on
http://jazz/users/pnunn/publish/aaaa2.html
right click on the hat.
-P
Assignee: pnunn → law
Status: REOPENED → NEW
Comment 22•25 years ago
|
||
Please explain why this is critical to M13, or move to M14. Thanks!
Comment 23•25 years ago
|
||
law hasn't had a chance to look at yet. moving to m14 for more
investigation.
this looks fixed to me.
http://jazz/users/pnunn/publish/coffee.gif
shows fine in the latest m13 builds.
law thinks other recent fixes for url evaluation
may have resolved this problem in the last week or so.
Target Milestone: M13 → M14
Assignee | ||
Comment 24•25 years ago
|
||
It's not fixed. The problem is that it is hard for the context menu code to
discern the *absolute* url given an html element. All we can get is the actual
background= attribute value string (which is a relative url).
This is code in nsContextMenu.js that came to me from somebody on the Web. It
seemed like a neat feature up till now. I'll have to go back and see if we can
work around this. Similar code operates on CSS style attributes; I'm not sure
if those are broken the same way (depends on whether the css attributes are
relative or absolute urls).
To be continued...
Status: NEW → ASSIGNED
Comment 25•25 years ago
|
||
There should be a base URL around somewhere in this context which can be used to
generate a correct absolute URL.
Assignee | ||
Comment 26•25 years ago
|
||
*** Bug 25816 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
Target Milestone: M16 → M18
Comment 30•24 years ago
|
||
*** Bug 40874 has been marked as a duplicate of this bug. ***
Comment 31•24 years ago
|
||
Nom. nsbeta3, recc. nsbeta3 with - on some date. This is correctness of context
menu UI command behavior. We'd really like the context menu commands to work
correctly for FCS! However, as a last resort, if we fail for background images
in tables only, that could be relnoted and fixed at the first point release.
Keywords: nsbeta3
Assignee | ||
Comment 32•24 years ago
|
||
I wrote code that resolves relative urls by examining document <base> tag
content. I'll check that in when this bug's time comes.
Comment 33•24 years ago
|
||
law: Can you add your new code to this bug as a patch so all interested people
can take a look in advance?
Assignee | ||
Comment 34•24 years ago
|
||
Assignee | ||
Comment 35•24 years ago
|
||
Please note that the patch was against -r 1.20 (the file is currently at rev
1.23).
Comment 36•24 years ago
|
||
Integrated the patch into my current version of nsContextMenu.js. Seems to work
fine for now, the problem this bug describes is gone with the patch. I will use
the patched version to test it some more.
Comment 38•24 years ago
|
||
I'm still running with that patch, works fine, although I'm not sure all is as
it should since it went from some cvs merges that had to be resolved manually in
the meantime.
Comment 39•24 years ago
|
||
Adding patch keyword; Andreas Otte - do you have a current patch to fix this
problem?
Gerv
Keywords: patch
Comment 40•24 years ago
|
||
Comment 41•24 years ago
|
||
I have added the current diff to nsContextMenu.js that includes the patch. It
still works fine, but please do a sanity check on this. In the last months it
went through several merges that had to be resolved manually. I can only hope,
that I damaged nothing else in the process.
Assignee | ||
Comment 42•24 years ago
|
||
This is [nsbeta3-]. Somebody might want to remove that so it gets re-evaluated.
Make sure to emphasize that the patch is available!
Comment 43•24 years ago
|
||
Requesting nsbeta3 re-evaluation based on the fact that there's a patch
available, and it's simple.
Gerv
Whiteboard: [nsbeta3-]
Comment 44•24 years ago
|
||
nav triage team:
nsbeta3+, P4 so you can check in the patch
Priority: P3 → P4
Whiteboard: [nsbeta3+]
Comment 46•24 years ago
|
||
PDT would like to know how come this patch hasn't been checked in? Is there a
problem with the patch?
Assignee | ||
Comment 48•24 years ago
|
||
I haven't gotten to the task of applying this fix to my working copy of
nsContextsMenu.js, getting required reviews, etc. This one seemed like it
needed less attention than some of my other bugs...
Assignee | ||
Comment 49•24 years ago
|
||
Assignee | ||
Comment 50•24 years ago
|
||
I've updated the patch yet again, this time to deal with revised lines in
patched file, and more importantly, the recent change from progid to contractId.
Looking for review/approval...
Comment 51•24 years ago
|
||
Let's try to fix this for RTM.
Keywords: rtm
Whiteboard: [nsbeta3+][need info] → [nsbeta3-][need info][rtm+]
Comment 52•24 years ago
|
||
Changed to real "rtm need info" bug.
Whiteboard: [nsbeta3-][need info][rtm+] → [nsbeta3-][rtm need info]
Assignee | ||
Comment 53•24 years ago
|
||
Comment 54•24 years ago
|
||
Fix in hand.
Whiteboard: [nsbeta3-][rtm need info] → [nsbeta3-][rtm need info]Fix in hand
Assignee | ||
Comment 55•24 years ago
|
||
OK, I've received r=radha, sr=brendan. Removing "need info" residue.
Don says he'll mark [rtm+].
Whiteboard: [nsbeta3-][rtm need info]Fix in hand → [nsbeta3-]
Comment 56•24 years ago
|
||
PDT, please approve.
Whiteboard: [nsbeta3-] → [nsbeta3-][rtm+]Fix in hand, reviewed and approved
Comment 57•24 years ago
|
||
PDT marking [rtm-] since View Image on table cell backgrounds doesn't seem like
a common operation and there are two screenfuls of diffs.
Whiteboard: [nsbeta3-][rtm+]Fix in hand, reviewed and approved → [nsbeta3-][rtm-]Fix in hand, reviewed and approved
Comment 58•24 years ago
|
||
It is not only about table cell backgrounds, the patch also covers the same bug
for INPUT TYPE=IMAGE images. I have applied the patch and can confirm that it
fixes the INPUT TYPE=IMAGE problem too. I'll make an attachment that illustrates
the bug.
Comment 59•24 years ago
|
||
Comment 60•24 years ago
|
||
If you want PDT to come back and have another looking, taking into account the
increased seriousness of this bug, you need to remove [rtm-] :-) Done.
Gerv
Whiteboard: [nsbeta3-][rtm-]Fix in hand, reviewed and approved → [nsbeta3-]Fix in hand, reviewed and approved
Comment 61•24 years ago
|
||
PDT, re-posting as "rtm+" after new feedback from Andreas J. Koenig about the
added seriousness of the bug. Your call ...
Whiteboard: [nsbeta3-]Fix in hand, reviewed and approved → [nsbeta3-][rtm+]Fix in hand, reviewed and approved
Assignee | ||
Comment 62•24 years ago
|
||
This bug also applies to <object type="image/*"> elements, as well.
Assignee | ||
Comment 63•24 years ago
|
||
I checked the fix into the trunk.
Comment 64•24 years ago
|
||
rtm-, against normal src=image.gif this seems to work fine. The broken example
uses src=showattachment.cgi?attach_id=3272. It's unlikely that many images are
generated by a CGI and that in addition one would view image them.
Whiteboard: [nsbeta3-][rtm+]Fix in hand, reviewed and approved → [nsbeta3-][rtm-]Fix in hand, reviewed and approved
Comment 65•24 years ago
|
||
Comment 66•24 years ago
|
||
<sigh> This _is_ a reasonably serious bug, and it's not going to go away unless
we apply this patch. Removing [rtm-] (again) for reconsideration in the light of
increased seriousness (see new testcase)...
Gerv
Whiteboard: [nsbeta3-][rtm-]Fix in hand, reviewed and approved → [nsbeta3-]Fix in hand, reviewed and approved
Comment 67•24 years ago
|
||
Gang, the PDT is just not gonna take this for N6 RTM at this point. Sorry.
Minus again.
Whiteboard: [nsbeta3-]Fix in hand, reviewed and approved → [nsbeta3-][rtm-]Fix in hand, reviewed and approved
Comment 68•24 years ago
|
||
It seems unclear to me whether this bug requires either of a "developer" or
"user" release note. If anyone feels it does, can they please draft one and then
nominate with the relnote-user or relnote-rtm strings in the Status Whiteboard.
Thanks :-)
Gerv
Comment 69•24 years ago
|
||
Upon managerial request, adding the "testcase" keyword to 84 open layout bugs that
do not have the "testcase" keyword and yet have an attachement with the word
"test" in the description field. Apologies for any mistakes.
Keywords: testcase
Assignee | ||
Comment 70•24 years ago
|
||
Fixed on trunk, so resolving.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 24 years ago
Resolution: --- → FIXED
Comment 71•24 years ago
|
||
*** Bug 32755 has been marked as a duplicate of this bug. ***
Comment 72•23 years ago
|
||
Should I be able to click on the first attachment (test html file) and see a
table w/ the gif?
that is not working for me in M0.9, IE5.5 or Comm4.
Keywords: verifyme
QA Contact: tever → benc
Reporter | ||
Comment 73•23 years ago
|
||
benc, no; you need to have a file called "gears-top.gif" relative to the html
file. Download the second attachment into the same directory and call it that,
and you should be able to see it.
Comment 74•23 years ago
|
||
Okay. Generally when I post HTML as a file (not to be viewed from bugzilla), I
post it as text/plain...)
Comment 76•23 years ago
|
||
Marking verified in the Sept 06 build (2001-09-06-05).
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•