I have tried onunload. I am have tested this using a port and using
chrome.extension.sendRequest. Both of these messaging patterns work
otherwise before the unload event. I think I have ruled out messaging
as the potential issue. So, the event seems to be the issue. I could
see onbeforeunload being disabled because it typically creates a
dialog in normal instances which does not seem to be allowed in
general from a popup. Summarizing, the event seems to be the issue and
I have tried before and on unload.
On Oct 28, 10:53 am, PhistucK <
phist...@gmail.com> wrote:
> Have you tried window.onunload?
>
> ☆*PhistucK*
>
>
>
>
>
>
>
> On Fri, Oct 28, 2011 at 19:50, doubleTap <
a...@adambragg.com> wrote:
> > I am trying to notify the background when the pop up has been closed.
> > It does not seem that there is an event in the API to which I can
> > subscribe and I have tried sending messages via a function attached to
> > window.onbeforeunload but, that event does not seem to fire in the pop
> > up. Is there a way I can notify the background that the pop up has
> > been or is being closed?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org.