Closed Bug 280284 Opened 20 years ago Closed 20 years ago

No `View Selection Source' on context menu if non-text selected

Categories

(Toolkit :: View Source, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8final

People

(Reporter: blakesley, Assigned: jason.barnabe)

Details

Attachments

(2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050125 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050125 Firefox/1.0+

(I'm not sure whether this should be under the `View Source' component.)

Reproducible: Always

Steps to Reproduce:
1. Select part of a page not containing text (just objects like images)
2. Click on the page with your pointing devices secondary button

Actual Results:  
`View Selection Source' item does not appear.

Expected Results:  
`View Selection Source' item should be available.
Confirming, Seamonkey version of this Bug is Bug 170893
Assignee: firefox → bugs
Status: UNCONFIRMED → NEW
Component: Menus → View Source
Ever confirmed: true
QA Contact: bugzilla → view-source
Attached patch patch (obsolete) — Splinter Review
This implements nsContextMenu.isContentSelected. I've switched all the context
menu items that looked at isTextSelected (including View Partial Source) to
look at isContentSelected, with the exception of "Search Web for...".
Assignee: bugs → jason_barnabe
Status: NEW → ASSIGNED
Attachment #180259 - Flags: review?(mconnor)
Comment on attachment 180259 [details] [diff] [review]
patch

Using __proto__ here fails on trunk, I know there's been some recent changes,
those may have bitrotted this, but it works without it in my local build.  The
indentation should be *shudder* 4-space, to match prevailing style here.

other than that, this is good to go.
Attachment #180259 - Flags: review?(mconnor) → review-
Attached patch patch v2 [Checked in: Comment 7] (obsolete) — Splinter Review
Fixed getSelection call and indenting.
Attachment #180259 - Attachment is obsolete: true
Attachment #185637 - Flags: review?(mconnor)
Comment on attachment 185637 [details] [diff] [review]
patch v2
[Checked in: Comment 7]

sweet.	Sorry these have been slow, hopefully the whacking of the review queue
will continue long into the night.
Attachment #185637 - Flags: review?(mconnor) → review+
Whiteboard: [checkin needed]
Comment on attachment 185637 [details] [diff] [review]
patch v2
[Checked in: Comment 7]

you need to ask for approval before someone can check something in atm.
Attachment #185637 - Flags: approval-aviary1.1a2?
Attachment #185637 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #185637 - Attachment description: patch v2 → patch v2 [Checked in: Comment 7]
Attachment #185637 - Attachment is obsolete: true
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox1.1
Version: unspecified → Trunk
I think this may have caused the minor regression in Bug 303898 (I could be
wrong though).
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: