As a side note, you should be using CmdUtils.getWindow() here.
CmdUtils.getWindowInsecure() should be avoided unless absolutely
necessary (such as when you need to access a script on the page).
- Blair
On 13/01/2009 4:22 AM, David Duymelinck wrote:
> I saw there were a lot of browser commands so why not add copy-tab :
>
>
> CmdUtils.CreateCommand({
> name: "copy-tab",
> description: "Copies current tab",
> preview: function( pblock ) {pblock.innerHTML=this.description;},
> execute: function() {
> var win = CmdUtils.getWindowInsecure();
> Utils.openUrlInBrowser(win.location.href);
> }
> });
>
>
> David
>
>
> On 9 jan, 08:24, Aza<[email protected]> wrote:
>> Hey everyone,
>>
>> We're looking for some volunteers to find commands that should be included
>> by default with Ubiquity. Please feel free to add your suggestions to
>>
>> https://wiki.mozilla.org/Labs/Ubiquity/0.2_Proposed_Uplift_Commands
>>
>> -- aza | ɐzɐ --
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---