On Wed, May 20, 2009 at 10:32 PM, Night Ranger <[email protected]> wrote:
> On May 14, 3:03 pm, Vasanth  Dharmaraj <[email protected]> wrote:
>> I am trying to build an URL shortening extension in Chrome.
>>
>> Is it possible to copy the shortened URL to clipboard from an
>> extension?
>
> Don't know... at the stage of development of extensions system I think
> there's no clipboard management unless there is already in JavaScript
> but why not write the shortened address on the document itself instead
> of running the risk to delete from the clipboard data that could be
> relevant for the user?
> That's only my point, but I think you should consider that as you have
> full access to the page content why don't use it?
> You could simply append the shortened url on top of page or open a new
> tab to display and even test the shortened url.

I think opening a new tab with the shortened URL makes sense to me.
Perhaps in the future we can add APIs to add things to the clipboard
more directly.

- a

--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to