Today you cannot do this except by using window.close as soon as the popup
has determined that it doesn't need to be shown. The downside is that there
is a brief flash where the popup opens and closes.

However, you essentially want...
http://code.google.com/p/chromium/issues/detail?id=27526
... which Sam has started working on.

Star the bug to keep track of updates.

On Mon, Jan 11, 2010 at 19:35, Mohamed Mansour <[email protected]> wrote:

> JavaScript could do that. Just add a window listener.
>
> window.addEventListener("load", windowLoaded, false);
>
> Within your windowLoaded function, you can check localStorage if the user
> wants a popup to show, if they don't, then just close it using
> "window.close()"
>
>
> -Mohamed Mansour
>
>
> On Mon, Jan 11, 2010 at 8:50 PM, Ronald Schouten 
> <[email protected]>wrote:
>
>> Is it possible to detect when a Page_Action icon is clicked before the
>> popup is opened? In some cases I want the popup to open while in
>> others I want to prevent the popup from showing and have the content
>> script take an action instead.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Chromium-extensions" group.
>> To post to this group, send email to [email protected]
>> .
>> To unsubscribe from this group, send email to
>> [email protected]<chromium-extensions%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/chromium-extensions?hl=en.
>>
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<chromium-extensions%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" 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/chromium-extensions?hl=en.

Reply via email to