Closed Bug 137014 Opened 22 years ago Closed 9 years ago

Add "Print Frame" to the frame flyout of the browser context menu.

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.37

People

(Reporter: bugzilla, Assigned: ukimiawz, Mentored)

References

()

Details

(Whiteboard: [good first bug][lang=js/xul/dtd][level=apprentice][see comment 19])

Attachments

(1 file, 2 obsolete files)

iirc, samir said that the backend exists for printing frames (correct me if i'm
worng here). filing this since (1) this is part of marlon's UI spec and (2) i
don't think there's a way to print frames on Mac, and this would be a door to
that feature.
nominating to workaround the current Mac limitation.
Blocks: 135841
Keywords: nsbeta1
QA Contact: paw → sairuh
There always had been a way to print frames on OS9.. and I just landed a way to
print frames on OSX.
nsbeta1- per Nav triage team
Keywords: nsbeta1nsbeta1-
Target Milestone: --- → mozilla1.1beta
I would like to comment that failure of Mozilla (version 1.1a for Mac OS X) to
print the full contents of a frame (it prints only what's visible on screen--not
the remaining contents that can be viewed only by scrolling) is the first
serious problem I've encountered in the month or so that I've been using Mozilla
as my preferred browser. I hope this can be fixed. Keep up the good work.
could this go in for buffy?
Keywords: nsbeta1-nsbeta1
Nav triage team: nsbeta1-
Keywords: nsbeta1nsbeta1-
*** Bug 157784 has been marked as a duplicate of this bug. ***
*** Bug 222537 has been marked as a duplicate of this bug. ***
This there currently a status on this bug? It seems to have orignally been
submitted over a year ago and I'd really like to see this feature.
As per bug 222537 (which was a duplicate of this bug)...

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5;
MultiZilla v1.5.0.3g) Gecko/20031007
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5;
MultiZilla v1.5.0.3g) Gecko/20031007

When you right click on any web page or frame within a web page you should be
given the option to print the page (or frame). Perhaps this could even be
incorporated to be able to print just a single image when you right click on it.

Reproducible: Always

Steps to Reproduce:
1. Right Click on any web page or frame
2. Print page or Print Frame option is not available
3.



Expected Results:  
Print page or frame option should be available
Reassigning obsolete bugs to their respective Seamonkey owners (i.e. nobody). 
If you want this fixed for Firefox, change the Product and Component accordingly
and reassign back to me.
Assignee: firefox → guifeatures
Target Milestone: mozilla1.1beta → ---
*** Bug 265949 has been marked as a duplicate of this bug. ***
Flags: blocking1.8a5?
Flags: blocking1.8a5? → blocking1.8a5-
Product: Core → Mozilla Application Suite
Blocks: 125824
How close is this to Bugzilla Bug 204519 "Add Print option to main context menu"?
This is sorely missing when coming over from IE.
Flags: blocking-seamonkey1.1a?
A feature addition like that doesn't block a release...
Flags: blocking-seamonkey1.1a? → blocking-seamonkey1.1a-
Blocks: 164421
The Firefox equivalent to this bug, bug 185239, has recently been fixed.  We may be able to port over the fix.
Filter "spam" on "guifeatures-nobody-20080610".
Assignee: guifeatures → nobody
QA Contact: bugzilla → guifeatures
Component: XP Apps: GUI Features → UI Design
Assignee: nobody → jag
QA Contact: guifeatures
Severity: normal → enhancement
Assignee: jag-mozilla → nobody
Mentor: philip.chee
Whiteboard: [good first bug][mentor=Ratty][lang=js/xul/dtd][level=apprentice][see comment 19] → [good first bug][lang=js/xul/dtd][level=apprentice][see comment 19]
Hi, can I work on this bug?

I have pulled the latest source from comm-central - http://hg.mozilla.org/comm-central/
And I tried to build SeaMonkey following this page - https://developer.mozilla.org/en-US/docs/Simple_SeaMonkey_build

But I got this error 
https://drive.google.com/file/d/0B2Q6A5W2hBz9cEdkNjhSN01JM1E/view?usp=sharing

I'm on windows so I used mozmake to build it.
Sorry, I manage to solve my last error, but now the build still failed with this
https://drive.google.com/file/d/0B2Q6A5W2hBz9YWE4aC13d0s3Njg/view?usp=sharing
Hi again, so I finally managed to build SeaMonkey (thanks to Arai in IRC)
So, if it's ok to take this bug, I'll move the bits from Firefox, test it and create a patch for review.
Thanks!
Attached patch 1111100.patch (obsolete) — Splinter Review
Hi,
I moved bits from FireFox to add print frame in sea monkey
Flags: needinfo?(philip.chee)
Attachment #8572456 - Flags: review?(philip.chee)
Attached patch 137014.patch (obsolete) — Splinter Review
Sorry, I uploaded a wrong file before

So this is the right patch, moved bits from FireFox to SeaMonkey to add print frame menu in context menu
Attachment #8572456 - Attachment is obsolete: true
Attachment #8572456 - Flags: review?(philip.chee)
Attachment #8572457 - Flags: review?(philip.chee)
Hi Melisa Cecilia! Thank you for your patch. Looks very good.
Assignee: nobody → melisa.cecilia.mail
Status: NEW → ASSIGNED
Hi, should I commit the patch or wait for review?
Hi Sorry about the delay I will attach a review shortly
Flags: needinfo?(philip.chee)
Comment on attachment 8572457 [details] [diff] [review]
137014.patch

Looking very good except for a few small nits:

> -                oncommand="gContextMenu.showMetadata();"/>
> +                oncommand="gContextMenu.showMetadata();"/>      
You seem to have added some trailng spaces in the above line. Please remove them.

In Firefox the context-printframe is inside the frame sub-menu:
http://mxr.mozilla.org/comm-central/source/mozilla/browser/base/content/browser-context.inc?rev=63da271edfa5&mark=345-350#345
And has a <menuseparator> before and after.

Can you move the menu item to here:
http://mxr.mozilla.org/comm-central/source/suite/common/contentAreaContextOverlay.xul?rev=9cf4459806ca&mark=313-313,319-319,#309
between "context-saveframe" and "context-viewframesource"

> +  printFrame: function CM_printFrame() {
We don't decorate functions and methods these days so this should be:
printFrame: function() { ... }
Attachment #8572457 - Flags: review?(philip.chee)
Attached patch 137014.patchSplinter Review
Hi, this is my updated patch.
Hopefully I did what is expected :)
Please inform me if I need to update it
Attachment #8572457 - Attachment is obsolete: true
Flags: needinfo?(philip.chee)
Attachment #8581482 - Flags: review?(philip.chee)
Comment on attachment 8581482 [details] [diff] [review]
137014.patch

Very nice! Good work! A few very minor points:

> Bug 137014 - Move bits from FireFox to SeaMonkey to add Print Frame on context menu.
We are not moving but copying. We should say what this patch does. e.g.
  Add "Print Frame" to the frame flyout of the browser context menu
I'll fix this for you when I check this in.

> r=Philip Chee
Normally avoid adding r= to the patch comment before you actually get a r+ . In this case you might want to use something like:
  r?Foobar
Attachment #8581482 - Flags: review?(philip.chee) → review+
Adding a "checkin-needed" keyword so I won't forget!
Flags: needinfo?(philip.chee)
Keywords: checkin-needed
Summary: add "Print Frame" to frame flyout of browser context menu → Add "Print Frame" to the frame flyout of the browser context menu.
I pushed this to comm-central on 15 April but totally forgot to update the bug. Bad Phil, no biscuit
https://hg.mozilla.org/comm-central/rev/375bf886e8e6
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: