Closed
Bug 461136
Opened 16 years ago
Closed 16 years ago
<video> context menu for SeaMonkey
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0a2
People
(Reporter: kairo, Assigned: bugzilla)
References
Details
Attachments
(1 file, 1 obsolete file)
31.76 KB,
patch
|
bugzilla
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
Bug 449522 implements a context menu for <video> in Firefox only, we should port this to the SeaMonkey browser.
Currently working on this. The patch will be ready within the next few days.
Assignee: nobody → neuos
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•16 years ago
|
||
Thanks! Be sure to incorporate the change of bug 461810, btw.
Comment 3•16 years ago
|
||
Adding to the radar Bug 461306 - "Mute" / "Unmute" and "Show Controls" / "Hide Controls" in <video> context menu should be checkboxes instead
Here is the patch. A few notes:
- The changes from bug 461810 have been included.
- In the Firefox patch, backwards-compatibility wrappers were included for both the saveImage and sendImage functions. However, since our sendImage function is located in mailNavigatorOverlay.xul (and probably not used by any extensions), I didn't include the backwards-compatibility wrapper for it, although I could add one if it would be useful.
- Since we use the "C" access key for "Copy Link Location", the access key for "Show/Hide Media Controls" had to be changed.
Attachment #345445 -
Flags: review?(neil)
Comment 5•16 years ago
|
||
> However, since our sendImage function
> is located in mailNavigatorOverlay.xul (and probably not used by any
> extensions), I didn't include the backwards-compatibility wrapper for it,
> although I could add one if it would be useful.
If this wrapper doesn't take up too much bloat it would be make it easier for extension authors porting their Firefox extensions to SeaMonkey.
Comment 6•16 years ago
|
||
(In reply to comment #4)
> I didn't include the backwards-compatibility wrapper for it,
> although I could add one if it would be useful.
I don't think so, since we lost nsContextMenu.imageURL anyway.
> - Since we use the "C" access key for "Copy Link Location", the access key for
> "Show/Hide Media Controls" had to be changed.
I keep meaning to rework all the access keys...
Comment 7•16 years ago
|
||
Comment on attachment 345445 [details] [diff] [review]
Context menu patch
>- var shouldShowSendPage = !(gContextMenu.onTextInput ||
>- gContextMenu.isContentSelected) &&
>+ var shouldShowSendPage = !(gContextMenu.onTextInput || gContextMenu.isContentSelected ||
>+ gContextMenu.onVideo || gContextMenu.onAudio) &&
Nit: you only fixed one trailing space
>+ mediaCommand : function CM_mediaCommand(command) {
Nit: We don't seem to name member functions in this file, but even if we did we would not prefix with CM_.
r=me with those nits fixed.
Attachment #345445 -
Flags: review?(neil) → review+
Comment 8•16 years ago
|
||
(In reply to comment #6)
> (In reply to comment #4)
> > I didn't include the backwards-compatibility wrapper for it,
> > although I could add one if it would be useful.
> I don't think so, since we lost nsContextMenu.imageURL anyway.
Hmm, so that doesn't matter because it's an internal variable.
Comment 9•16 years ago
|
||
(In reply to comment #4)
> - In the Firefox patch, backwards-compatibility wrappers were included for both
> the saveImage and sendImage functions. However, since our sendImage function
> is located in mailNavigatorOverlay.xul (and probably not used by any
> extensions), I didn't include the backwards-compatibility wrapper for it,
> although I could add one if it would be useful.
Per my scanning of the attachment it does look like you did include it, or am I wrong?
>+ // Backwards-compatability wrapper
>+ saveImage : function () {
>+ if (this.onCanvas || this.onImage)
>+ this.saveMedia();
> },
Assignee | ||
Comment 10•16 years ago
|
||
Here is an updated patch. Carrying over Neil's r+.
(In reply to comment #7)
> Nit: you only fixed one trailing space
Fixed.
> Nit: We don't seem to name member functions in this file, but even if we did we
> would not prefix with CM_.
Fixed.
I also noticed that I forgot a space in the function definition for initMediaPlayerItems, so I added one in this patch.
(In reply to comment #5)
> If this wrapper doesn't take up too much bloat it would be make it easier for
> extension authors porting their Firefox extensions to SeaMonkey.
Good point, but sendImage currently can't be called from an instance of nsContextMenu anyway. For better compatibility, it would probably be best to have wrappers for both sendImage and sendMedia within nsContextMenu, although I'm not sure how to do that without moving the entire openComposeWindow function as well.
(In reply to comment #9)
> Per my scanning of the attachment it does look like you did include it, or am I
> wrong?
I did keep the saveImage wrapper, but I did not include the sendImage wrapper for reasons mentioned above.
Attachment #345445 -
Attachment is obsolete: true
Attachment #345654 -
Flags: superreview?(neil)
Attachment #345654 -
Flags: review+
Reporter | ||
Comment 11•16 years ago
|
||
Should we integrate bug 462294 here as well? Looks like an easy addition to this...
Comment 12•16 years ago
|
||
Comment on attachment 345654 [details] [diff] [review]
Context menu patch v1.1
[Checkin: Comment 14]
And then there's the issue of the checkbox menuitems (I think ✔Mute works well here, but I'm not sure about the other options). I think it would probably be best to land this now and then visit further enhancements in a new bug.
Attachment #345654 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 13•16 years ago
|
||
(In reply to comment #11)
> Should we integrate bug 462294 here as well? Looks like an easy addition to
> this...
(In reply to comment #12)
> And then there's the issue of the checkbox menuitems (I think ✔Mute works well
> here, but I'm not sure about the other options). I think it would probably be
> best to land this now and then visit further enhancements in a new bug.
Thanks, I'll file a follow-up bug to port bug 462294 and bug 461306 to SeaMonkey. On bug 461306, should we wait for Firefox, or should we just go ahead and make those two items checkboxes?
Keywords: checkin-needed
Comment 14•16 years ago
|
||
Comment on attachment 345654 [details] [diff] [review]
Context menu patch v1.1
[Checkin: Comment 14]
http://hg.mozilla.org/comm-central/rev/67f13193a501
Attachment #345654 -
Attachment description: Context menu patch v1.1 → Context menu patch v1.1
[Checkin: Comment 14]
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0a2
Comment 15•16 years ago
|
||
(In reply to comment #13)
> (In reply to comment #12)
> > And then there's the issue of the checkbox menuitems (I think ✔Mute works well
> > here, but I'm not sure about the other options). I think it would probably be
> > best to land this now and then visit further enhancements in a new bug.
>
> Thanks, I'll file a follow-up bug to port bug 462294 and bug 461306 to
> SeaMonkey. On bug 461306, should we wait for Firefox, or should we just go
> ahead and make those two items checkboxes?
My opinion is to just go for it; if you're feeling ambitious you can probably fix FF in the same patch (see also c#2 on Bug 461306, Neil may differ in opinion vs that anyway).
Assignee | ||
Comment 16•16 years ago
|
||
(In reply to comment #15)
> My opinion is to just go for it; if you're feeling ambitious you can probably
> fix FF in the same patch (see also c#2 on Bug 461306, Neil may differ in
> opinion vs that anyway).
Thanks for the feedback (and thanks to Serge for the checkin). I went ahead and filed bug 462714, so I'll add a patch that takes care of both bugs there.
Comment 17•15 years ago
|
||
>> I didn't include the backwards-compatibility wrapper for it,
>> although I could add one if it would be useful.
> I don't think so, since we lost nsContextMenu.imageURL anyway.
Bug 497098 just added back nsContextMenu.imageURL to Firefox. Apparently there are extensions depending on this.
You need to log in
before you can comment on or make changes to this bug.
Description
•