Closed
Bug 134571
Opened 23 years ago
Closed 23 years ago
client-side image maps in showdependencygraph.cgi
Categories
(Bugzilla :: Reporting/Charting, enhancement, P5)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.16
People
(Reporter: jayvdb, Assigned: jayvdb)
References
Details
Attachments
(1 file, 4 obsolete files)
2.85 KB,
patch
|
bbaetz
:
review+
justdave
:
review+
|
Details | Diff | Splinter Review |
Dependency graphs use server-side image maps in order that a user can click on a
bug's node to bring up the bug's details. When using 'dot' (bug 120537) or the
GraphViz module (bug 134565), the image map data is able to be generated in time
to be included as a client-side image maps.
Comment 1•23 years ago
|
||
I do not understand this bug report. What is the problem, exactly?
Also, is it assigned to me just by default, or am I expected to fix it?
Gerv
Comment 2•23 years ago
|
||
Instead of writing out a temporary file, you can embed it in the webpage
directly. This alos means that the browser can show the linnk destination in teh
status bar, and know which areas are not links.
Assignee | ||
Comment 3•23 years ago
|
||
> Also, is it assigned to me just by default, or am I expected to fix it?
I have a patch so I am guessing I should be re-assigning it to myself
> Instead of writing out a temporary file ...
As data/webdot still needs to retain the generated image, why is there an issue
also retaining the server-side image map. Then the server-side image map can be
used if the client is not capable of using the client-side image map.
Assignee: gerv → zeroJ
Comment 4•23 years ago
|
||
My templatisation (bug 126793) is next in the queue for munging this file. I
suggest you don't make a patch until that goes in, because I'll probably break
it :-)
Gerv
Assignee | ||
Comment 5•23 years ago
|
||
Includes a client-side image map when locally generating dependency graphs.
Comment 6•23 years ago
|
||
I ended up fixing this in my own Mozilla version and then checked to see if it
had been addressed already... my approach is slightly different, so I've
attached it anyway for perusal.
Without this patch (mine or John's) locally generated graphs are next to
useless: clicking on one of the boxes loads the .map file, which is less than
helpful. If
2.16 is going to ship with local dot files, then the image maps must be client-side.
I don't care whether my version or John's makes it in: but one of them should.
Comment 7•23 years ago
|
||
My version of this fix, slightly different from John's.
Comment 8•23 years ago
|
||
Without having looked at either of the patches, server side image maps do work
for me on apache.
Comment 9•23 years ago
|
||
Indeed: my Apache configuration does not have server-side image maps enabled,
which happens to be the default in Apache 1.3.x.
Client-side image maps are a better solution in any case, IMHO.
Comment 10•23 years ago
|
||
Comment on attachment 77761 [details] [diff] [review]
v1
graphviz provides an output mode for client side image maps, you should use
that and then embed the results into teh template.
Attachment #77761 -
Flags: review-
Comment 11•23 years ago
|
||
Comment on attachment 78284 [details] [diff] [review]
Tree's variant of client-side image maps
Are there browsers which can't handle client side image maps? IE do we want
both available?
Assignee | ||
Comment 12•23 years ago
|
||
> graphviz provides an output mode for client side image maps, you should use
> that and then embed the results into teh template.
The graphviz output format I believe you are refering to (ismap) outputs the
following:
default URL label
rectangle (x1,y2) (x2,y1) URL label
webdot internally converts this format into a client-side image map.
> Are there browsers which can't handle client side image maps? IE do we want
> both available?
Not really. As a result this patch follows webdot and uses graphviz's ismap
format instead of the imap format.
Attachment #77761 -
Attachment is obsolete: true
Comment 13•23 years ago
|
||
With regards to attachment 78322 [details] [diff] [review], the ismap attribute is not needed on the img
attribute when using client-side image maps.
Comment 14•23 years ago
|
||
>graphviz provides an output mode for client side image maps, you should use
>that and then embed the results into teh template.
I don't think you can do this directly: neither the -Tismap nor the -Timap
output can be directly used within a <map> block, AFAICT. My patch converts the
output from the '-Timap' to a series of <area> elements that are then inserted
into the <map> block in the template.
Comment 15•23 years ago
|
||
grr. The graphviz module claimed that imap was serv side and ismap was client
side. Its wrong, though.
Assignee | ||
Comment 16•23 years ago
|
||
Thanks for picking that up Tom.
The ismap format is intended for conversion to client-side image maps,
containing no comments and providing regions with labels. The coordinates in
the ismap format are also not subject to two different specs (NSCA and W3C).
Updated•23 years ago
|
Priority: -- → P4
Target Milestone: --- → Bugzilla 2.18
Assignee | ||
Comment 17•23 years ago
|
||
Comment on attachment 78322 [details] [diff] [review]
v2 : client side image maps only
Marking needs-work on behalf of Tom.
Attachment #78322 -
Flags: review-
Assignee | ||
Comment 18•23 years ago
|
||
This removes the (new) dependency on Apache module mod_imap, which many would
prefer to not introduce in this release. Could we try and get this one in? It
would simplify the documentation bug 123394 which I am about to work on.
Attachment #78284 -
Attachment is obsolete: true
Attachment #78322 -
Attachment is obsolete: true
Comment 19•23 years ago
|
||
I really think this needs to get into 2.16: removing the requirement for server-
side image maps is a Good Thing, and being able to correctly use a local
graphviz installation will make a lot of people really easier.
Comment 20•23 years ago
|
||
Yeah, probably couldn't hurt, but its a P5 for 2.16. It definately gives nicer
results, and it can't break anything from 2.14, since we didn't support client
side maps at all.
the patch loks fine; I'll test it later.
Assignee | ||
Comment 21•23 years ago
|
||
v.4 only worked in Mozilla. This patch uses proper syntax to refer to map, and
removes name attribute from generated area when shape=default.
Attachment #81959 -
Attachment is obsolete: true
Comment 22•23 years ago
|
||
Comment on attachment 81985 [details] [diff] [review]
Patch v.5
tested, works, r=bbaetz. I'd prefer that we didn't use a templ file, but since
the way to do that breaks on windows, we can live with it for now.
Attachment #81985 -
Flags: review+
Comment 23•23 years ago
|
||
Comment on attachment 81985 [details] [diff] [review]
Patch v.5
r= justdave
Attachment #81985 -
Flags: review+
Comment 24•23 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
Updated•9 years ago
|
Blocks: CVE-2016-2803
You need to log in
before you can comment on or make changes to this bug.
Description
•