Why using a content script for a self controlled chrome-extensions page?You
are totally in control of the contents of that page, it is yours to
manipulate, there is no need to create or use a content script for or on it,
since it can do exactly the same thing a content script would do.
This, for example, will create a pop up.
window.open("","fff","width=100")
So you just need to put on a third parameter that includes "width", or
"height" and a value (can also be "width=100,height=100,toolbar=no").
☆PhistucK
2009/6/14 disya2 <[email protected]>
>
> Phistuck,
>
> Thanks for your replay.
>
> To simulate more complex UI than a simple button I decided to use a
> web-page placed in extension. For communications between extension
> script and the page I proposed to use content-script. According to
>
> http://dev.chromium.org/developers/design-documents/extensions/match-patterns
> scheme can be only
> <scheme> := 'http' | 'https' | 'file' | 'ftp'
> but I need chrome-extension:// url to match page placed in extension.
> Did I miss something?
>
> Another question (maybe dumb), how to specify window.open for showing
> detached window instead of opening one in new tab?
>
>
> On 14 июн, 23:54, PhistucK <[email protected]> wrote:
> > You can send a message to the content script and act upon receiving a
> > completion message back.
> > ☆PhistucK
> >
> > On Sun, Jun 14, 2009 at 19:59, disya2 <[email protected]> wrote:
> >
> > > Hi,
> >
> > > It seems that alert(), confirm(), prompt() still missing in extension
> > > scripts. Is there any workaround? I'd like to have a modal dialog,
> > > i.e. dialog which would pause extension script execution until dialog
> > > is closed. Maybe some option in window.open()?
> >
> > > Thanks,
> > > Denis
> >
> >
> >
>
--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---