On Wed, Mar 25, 2009 at 5:35 PM, Ilkka <[email protected]> wrote:
> I'm trying to develop an extension that would get activated when I
> navigate to an "internal url" -- meaning a scheme like chrome-
> extension or chrome-ui.

chrome-ui:// URLs should work presently. You need to include a host,
like this: chrome-ui://newtab/*. chrome-extension:// is disabled, but
we had vaguely planned to re-enable it at some point.

Can you give some example of want you're trying to achieve? It seems
weird to me to want to inject script into another extension, but maybe
I'm not being creative enough :).

> I know that can access my js file like chrome-extension://
> 9870913846759025367910365190365429354665/myjs.js
>
> That's not quite easy enough. I would like to activate my extension if
> I navigate to an url like
>
> chrome-extension://myextension/
> or chrome-ui://myextension/

We will soon add a javascript API to get your own extension's ID. So
you'd be able to do things like this:

var img = new Image();
img.src = chromium.extensions.self.getURL("foo/bar.js")

.. and it would construct the complete URL.

- 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