Closed
Bug 25497
Opened 25 years ago
Closed 24 years ago
view source on image only brings unknown file type dialog
Categories
(SeaMonkey :: UI Design, defect, P3)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: egoine, Assigned: gerv)
References
()
Details
I'm using M13 on Windows NT 4 an when I view an image only (tried gif and jpeg)
an then choose view source, I get unknown file type dialog.
To reproduce :
1) open mozilla
2) go at http://bugzilla.mozilla.org/
3) click on the bug image, select "view image"
4) when image is loaded, select, either from menu or contextual menu, "view source"
5) Unknown file type dialog appears : "you are about to download a file of type
image/jpeg This file is unrecognized by Mozilla. You can save it or open it with
another application. More info... Save File pick App Cancel".
Expected results : behavior should be similar to netscape 4.x
Build ID 2000012520 on windows NT
Comment 2•25 years ago
|
||
Confirmed with 2000-01-28-12-M14 nightly binary on Windows NT
The dialog described in step 5 appears over an empty "Source for:" window.
Testing NN 4.7, a dialog stating "Netscape is unable to locate the server
(no name specified). Please check the server name and try again." appeared over
an empty "Source for:" window. I don't see this as particularly superior to
Mozilla's behaviour.
What does make sense to me is that both the "View Source" menu item on the
Context Menu and the "Page Source" item on the "View" menu should be greyed
out when viewing an image, since there is no source to view. (Any textual
information (comments) inside an image would be better presented by "View
Info".)
This looks like one of the other cases where "View Source" would best be
greyed out expected in bug 24256, "View>Page Source can be recursive, probably
shouldn't be", M15.
Assignee: nobody → mcafee
Component: Browser-General → XPApps
QA Contact: nobody → sairuh
Summary: [4.xP]view source on image only brings unknown file type dialog → view source on image only brings unknown file type dialog
Bill, shouldn't this be your bug? (I re-assinged it to you from McAfee.)
Assignee: mcafee → law
Target Milestone: M15
The context menu aspect of the problem is my problem. It's not clear if the
regular menus are already disabled but I'll try to take care of the whole
problem. It's not that big a deal, I should think.
Status: NEW → ASSIGNED
Updated•25 years ago
|
Target Milestone: M16 → M17
Comment 7•25 years ago
|
||
pardon the spam: moving view source bugs into xp apps: gui component.
Component: XP Apps → XP Apps: GUI Features
Updated•24 years ago
|
OS: Windows NT → All
Hardware: PC → All
Assignee | ||
Comment 8•24 years ago
|
||
This one's easy :-) It's hardly worth preparing a patch...
Line 134 of nsContextMenu.js from:
this.showItem( "context-viewsource", !this.inDirList );
to:
this.showItem( "context-viewsource", !( this.inDirList || this.onImage ) );
Gerv
what if i want to view the source of an SVG?
Assignee: law → gervase.markham
Status: ASSIGNED → NEW
Assignee | ||
Comment 10•24 years ago
|
||
An SVG doesn't count as an image for the purposes of the code which sets that
boolean (tested with Mozilla 0.8-SVG). So you are OK :-)
Gerv
Comment 11•24 years ago
|
||
r=timeless. good answer, I presume you tested both inline and external svgs.
Assignee | ||
Comment 12•24 years ago
|
||
I can't test external SVGs as they require the Adobe plugin (at least, I think
that's what you mean by "external". But that wouldn't have this menu either.
Anyway, saying an SVG is an image makes as much sense as saying that MathML is.
So, do I now need a sr=? I'm new at this...
Gerv
Comment 13•24 years ago
|
||
Yes, you need a sr=. This code falls under the "xpfe" category described at
http://www.mozilla.org/hacking/reviewers.html, so Alec Flett's the man. I've
cc'd him.
Comment 14•24 years ago
|
||
easy enough..sr=alecf
Assignee | ||
Comment 15•24 years ago
|
||
Timeless, could you take 30s to check this in for me? I theoretically have
checkin rights, but for the Bugzilla tree only. It would be very naughty for me
to do it, as I haven't had 3 SR approval yet.
Gerv
Comment 16•24 years ago
|
||
fix checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 17•24 years ago
|
||
true, View Source is no longer available in the context menu for images.
however, the View > Page Source menu item is still active when viewing the image
on its own in the browser. and when you select that, you get the download/helper
app dialog. i couldn't really find an existing/exact for that [bug 77337 only
seems to deal with text files], so i filed another bug: bug 84542.
marking this vrfy fixed --for the case of trying to view source from the context
menu. :)
Status: RESOLVED → VERIFIED
Comment 18•24 years ago
|
||
in light of bug 88918: iirc, i had tested this when the image was the only
object in the page, eg, http://faqs.org/images/noframes.gif
bug 88918 was found when i was viewing http://faqs.org...
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•