Closed Bug 294383 Opened 19 years ago Closed 19 years ago

Disable certain menu options (view source, find, text zoom, etc) when viewing non-text content (images, plugins)

Categories

(Firefox :: Menus, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Firefox 2 alpha1

People

(Reporter: hhschwab, Assigned: Gavin)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(1 file, 2 obsolete files)

Steps to repeat: Use firefox 1.0.4 or a current trunk nightly, and load an image Use Ctrl+U or menu View->PageSource or prepend view-source to the URL. expected result: no source seen, or RFE: source seen as hex code actual result: bytes displayed as characters. Bug seen in Firefox 1.0.4 and Firefox trunk, not seen in Mozilla Trunk. gif : https://bugzilla.mozilla.org/mozilla-banner.gif jpeg: http://ha.ckers.org/imagecrash.jpg png : https://bugzilla.mozilla.org/attachment.cgi?id=183739 view-source:https://bugzilla.mozilla.org/mozilla-banner.gif view-source:http://ha.ckers.org/imagecrash.jpg view-source:https://bugzilla.mozilla.org/attachment.cgi?id=183739
Mozilla Suite doesn´t show the source code on Ctrl+U or menu View->PageSource, but shows it if the view-source: protocoll is used, like view-source:https://bugzilla.mozilla.org/mozilla-banner.gif Firefox always shows the source. I don´t mind the view-source: working, as that option is widely unknown. The View->PageSource should be greyed out, and the Ctrl+U not working, as in Mozilla Suite.
The suite disables more than just the "Page Source" option when viewing an image, it disables a bunch of other menu items as well. See the list at: http://lxr.mozilla.org/mozilla/search?string=observes%3D%22isImage I think it's worth investigating adding similar functionality to Firefox.
Assignee: nobody → gavin.sharp
OS: other → All
Priority: -- → P3
Hardware: PC → All
Severity: normal → minor
Summary: view-source shows source of image → Disable certain menu options (view source, find, text zoom, etc) when viewing non-text content (images, plugins)
*** This bug has been marked as a duplicate of 206176 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
This bug is wider in scope, and is actually being worked on, so reopening and marking depends.
Blocks: 206176
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → ASSIGNED
Attached patch Patch (obsolete) — Splinter Review
This disables Find, View Source, Page Style, Text Zoom, and Character Set menu options, as well as the View Source and View Selection source context menu options. This doesn't yet fix the This Frame -> View Source menu, that requires a few bigger changes.
Component: View Source → Menus
QA Contact: view.source → menus
Target Milestone: --- → Firefox1.1
Whiteboard: [wip]
Attached patch Patch (updated) (obsolete) — Splinter Review
Updated to trunk. This is a port of the stuff from Seamonkey, and has been tested to work with tabs, back/forward, etc.
Attachment #185380 - Attachment is obsolete: true
Attachment #187481 - Flags: review?(mconnor)
Whiteboard: [wip] → [patch-r?]
Attached patch Patch v2Splinter Review
Without the unnecessary context menu changes.
Attachment #187481 - Attachment is obsolete: true
Attachment #187494 - Flags: review?(mconnor)
Attachment #187481 - Flags: review?(mconnor)
Target Milestone: Firefox1.5 → Firefox1.6-
Attachment #187494 - Flags: review?(mconnor) → review+
Trunk: mozilla/browser/base/content/browser-menubar.inc; new revision: 1.65 mozilla/browser/base/content/browser-sets.inc; new revision: 1.57 mozilla/browser/base/content/browser.js; new revision: 1.507
Status: ASSIGNED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Whiteboard: [patch-r?]
Flags: blocking-aviary2?
Flags: blocking-firefox2?
Attachment #187494 - Flags: approval1.8.1?
Attachment #187494 - Flags: approval1.8.1? → branch-1.8.1?(mconnor)
Attachment #187494 - Flags: branch-1.8.1?(mconnor) → branch-1.8.1+
Landed on the 1.8 branch for Firefox 2. mozilla/browser/base/content/browser-menubar.inc; new revision: 1.57.2.11; mozilla/browser/base/content/browser-sets.inc; new revision: 1.51.2.11; mozilla/browser/base/content/browser.js; new revision: 1.479.2.50;
Keywords: fixed1.8.1
Target Milestone: Firefox 2 → Firefox 2 alpha1
(In reply to comment #7) > Created an attachment (id=187494) [details] > Patch v2 > > Without the unnecessary context menu changes. Why exclude the items in the context menu? I think this leads to an inconsistent UI (for example, the user cannot view source from the View menu, but can do so from the context menu).
(In reply to comment #10) > Why exclude the items in the context menu? I think this leads to an > inconsistent UI (for example, the user cannot view source from the View menu, > but can do so from the context menu). Please go ahead and file a bug if you think it's a problem, and CC me?
(In reply to comment #11) > Please go ahead and file a bug if you think it's a problem, and CC me? > Done. Bug 384854.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: