Closed Bug 309132 Opened 19 years ago Closed 19 years ago

Disable view-source when window/tab contains binary content

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
Camino1.5

People

(Reporter: sugar.waffle, Assigned: bugzilla-graveyard)

References

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

The same problem as bug294383 is also in Camino. I think that it should view-source disable when image etc. are displayed of Camino. Reproducible: Always Mac OS X 10.3.9 2005091722 (v1.0+)
This would also prevent bug 300320 and the like.
Summary: Follow to bug294383 → Disable view-source when window/tab contains binary content
In reply to Wevah's bug 300320 comment 2, I have a suggestion for how we could disable the view source consistently: If the server sends a MIME type that is not text/plain, text/HTML, etc., disable it. I'm not saying I have any idea how to implement that, exactly. ;) But that seems to be a fairly logical way to go about it. cl
Target Milestone: --- → Camino1.1
Assignee: mikepinkerton → nobody
QA Contact: toolbars
Assignee: nobody → bugzilla
This uses the same overall approach Gavin used when he fixed this in Firefox. I hope the patch applies, cause it's mildly hand-edited (my tree is dirty from several related bugs). Apologies if it doesn't. cl
Attachment #226273 - Flags: review?(nick.kreeger)
Comment on attachment 226273 [details] [diff] [review] same approach Firefox took sr=pink, i'd still like to see a r= as well before it lands.
Attachment #226273 - Flags: superreview+
Comment on attachment 226273 [details] [diff] [review] same approach Firefox took Looks fine to me, there is a few spacing issues in |isTextBasedContent:| that I will take care of on checkin.
Attachment #226273 - Flags: review?(nick.kreeger) → review+
fixed on 1.8 branch and trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
This patch disables the menu-item and associated keyboard shortcut when viewing binary content. However, the contextual menu still contains an *active* view-source menu item. Is this the expected behaviour ?
(In reply to comment #7) > This patch disables the menu-item and associated keyboard shortcut when viewing > binary content. However, the contextual menu still contains an *active* > view-source menu item. Is this the expected behaviour ? No. I forgot that one. :-\ File a followup bug, please, and I'll fix that too. cl
D(In reply to comment #8) > (In reply to comment #7) > > This patch disables the menu-item and associated keyboard shortcut when viewing > > binary content. However, the contextual menu still contains an *active* > > view-source menu item. Is this the expected behaviour ? > > No. I forgot that one. :-\ > > File a followup bug, please, and I'll fix that too. Done: bug 342237.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: