Closed Bug 870901 Opened 11 years ago Closed 11 years ago

Make Edit control customizable

Categories

(Firefox :: Toolbars and Customization, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28

People

(Reporter: mconley, Assigned: mikedeboer)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:M6])

Attachments

(1 file, 8 obsolete files)

The Cut/Copy/Paste button in the panel needs to be able to be removed.

When it goes into a toolbar, it should be icons only, but still bound in the cut/copy/paste order.

The old individual cut, copy and paste buttons should be removed.
No longer blocks: 770135
Whiteboard: [Australis:M6]
Assignee: nobody → mdeboer
Status: NEW → ASSIGNED
I just removed the existing buttons; please remember to update the code here:

https://hg.mozilla.org/projects/ux/diff/a17f84ab819e/browser/base/content/browser.js

as it'll need to check for the existence of the new edit controls.
Depends on: 870897
This patch also re-adds the edit control styles that were removed from bug 873518.
Attachment #756517 - Flags: review?(mconley)
Blocks: 868433
Attachment #756517 - Attachment is obsolete: true
Attachment #756517 - Flags: review?(mconley)
Attachment #756551 - Flags: review?(mconley)
Attachment #756551 - Attachment is obsolete: true
Attachment #756551 - Flags: review?(mconley)
Attachment #756576 - Flags: review?(mconley)
Unbitrotted patch.
Attachment #756576 - Attachment is obsolete: true
Attachment #756576 - Flags: review?(mconley)
Attachment #756594 - Flags: review?(mconley)
Can't seem to copy and paste non-form page content:

http://screencast.com/t/uV5AHpu932
(In reply to Mike Conley (:mconley) from comment #6)
> Can't seem to copy and paste non-form page content:
> 
> http://screencast.com/t/uV5AHpu932

Is that a regression from this patch, or a separate bug that was already present?
(In reply to Jared Wein [:jaws] from comment #7)
> (In reply to Mike Conley (:mconley) from comment #6)
> > Can't seem to copy and paste non-form page content:
> > 
> > http://screencast.com/t/uV5AHpu932
> 
> Is that a regression from this patch, or a separate bug that was already
> present?

I've seen this for a little while now.
(In reply to Guillaume C. [:ge3k0s] from comment #8)
> (In reply to Jared Wein [:jaws] from comment #7)
> > (In reply to Mike Conley (:mconley) from comment #6)
> > > Can't seem to copy and paste non-form page content:
> > > 
> > > http://screencast.com/t/uV5AHpu932
> > 
> > Is that a regression from this patch, or a separate bug that was already
> > present?
> 
> I've seen this for a little while now.

Ok, if that's the case, we don't block on it, but we should file a follow-up bug. I'll do that now.
I added the noautoclose=true attribute to the panel in bug 870897
Attachment #756594 - Attachment is obsolete: true
Attachment #756594 - Flags: review?(mconley)
Attachment #756822 - Flags: review?(mconley)
Unbitsnotting
Attachment #756822 - Attachment is obsolete: true
Attachment #756822 - Flags: review?(mconley)
Attachment #756833 - Flags: review?(mconley)
Comment on attachment 756833 [details] [diff] [review]
Re-add edit controls and make them customizable

Review of attachment 756833 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!

::: browser/components/customizableui/src/CustomizableWidgets.jsm
@@ +383,5 @@
>        return node;
>      }
> +  }, {
> +    id: "edit-controls",
> +    name: "Edit Controls",

If this lands first, please update your localization strings patch to account for this widget (and the zoom widget, I guess)

@@ +415,5 @@
> +        label: "Paste",
> +        tooltiptext: "Paste"
> +      }];
> +
> +      function setAttributes(aNode, aAttrs) {

See my comment in the Zoom control review about making this available to all widgets in CustomizableWidget.jsm.
Attachment #756833 - Flags: review?(mconley) → review+
Carrying over r=mconley
Attachment #756833 - Attachment is obsolete: true
Attachment #757343 - Flags: review+
Pushed: http://hg.mozilla.org/projects/ux/rev/ea38f867cc07

Note that this didn't touch the hunk I mentioned in comment #1, and possibly should have.

Mike (Conley), can we make that code just check for one of the buttons, or is the overflow stuff in the navbar going to make that not always work and should we check for all 3? Mike (de Boer) also told me he didn't see any issues enabling/disabling the buttons as-is. Just needinfo'ing you here to see what we do about this, if anything.
Flags: needinfo?(mconley)
Whiteboard: [Australis:M6] → [Australis:M6][fixed-in-ux]
(In reply to :Gijs Kruitbosch from comment #15)
> Pushed: http://hg.mozilla.org/projects/ux/rev/ea38f867cc07
> 
> Note that this didn't touch the hunk I mentioned in comment #1, and possibly
> should have.
> 

Good point. I'll file a follow-up.

> Mike (Conley), can we make that code just check for one of the buttons, or
> is the overflow stuff in the navbar going to make that not always work and
> should we check for all 3?

I think we should be fine just checking for the root item - the cut, copy and paste buttons will always be contained in it, overflowed or not.

> Mike (de Boer) also told me he didn't see any issues enabling/disabling
> the buttons as-is. Just needinfo'ing you here to see what we do about this,
> if anything.

Yep, should still be fine.
Flags: needinfo?(mconley)
Blocks: 878824
Backed out due to possibly introducing leaks:

https://hg.mozilla.org/projects/ux/rev/29f42f35c30e
Whiteboard: [Australis:M6][fixed-in-ux] → [Australis:M6]
addressed memory leak
Attachment #757343 - Attachment is obsolete: true
Attachment #757676 - Flags: review+
Unbitrotted patch. Carrying over r=mconley
Attachment #757676 - Attachment is obsolete: true
Attachment #757872 - Flags: review+
Pushed again: https://hg.mozilla.org/projects/ux/rev/eef2d494d353
Whiteboard: [Australis:M6] → [Australis:M6][fixed-in-ux]
https://hg.mozilla.org/mozilla-central/rev/eef2d494d353
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M6][fixed-in-ux] → [Australis:M6]
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: