chrome.experimental.infobars

236 views
Skip to first unread message

johnjbarton

unread,
Dec 13, 2011, 6:57:05 PM12/13/11
to Chromium-extensions
I managed to get this feature to sorta work in my extension. However
the documentation says

"The infobar will be closed automatically when the tab navigates. Use
window.close() to close the infobar before then."

So to close the infobar process you have to send it a message to call
window.close() on itself?

I currently have 10 infobars listed in my extension "Inspect active
views". Is there any way to get rid of them short of exiting the
browser? I tried closing the window I added the infobar to and I tried
reload and enable/disable on my extension, no luck.

BTW a cool interaction between the many copies of infobar windows and
debugging: if you click on one of the infobar urls you launch one copy
of the Devtools for each open infobar. So like 12 little Web
Inspectors ;-).

Finally: will the performance improve? The infobar comes up laggy

jjb


johnjbarton

unread,
Dec 13, 2011, 7:23:31 PM12/13/11
to Chromium-extensions
Well I restarted my browser to clear the extra infobars, and all of
the funky things I described here went away. The only remaining
problem is there does not seem to be a way to use the JS debug on
infobars. You can't open the debugger until the infobar is open, and
then the script has already completed.

jjb

johnjbarton

unread,
Dec 13, 2011, 7:35:44 PM12/13/11
to Chromium-extensions
Ok, funky is back.

As far as I can tell, if you reload or navigate the tab, the
background infobar will be closed (good). But if you just close the
tab or its window, the background infobar remains (bug)

jjb

johnjbarton

unread,
Dec 13, 2011, 7:47:34 PM12/13/11
to Chromium-extensions

Finnur Thorarinsson

unread,
Dec 14, 2011, 9:24:05 AM12/14/11
to johnjbarton, Chromium-extensions
Thanks for the test case.

On Wed, Dec 14, 2011 at 00:47, johnjbarton <johnj...@johnjbarton.com> wrote:
http://code.google.com/p/chromium/issues/detail?id=107458
jjb

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages