Keeping the chrome extension open.

5,159 views
Skip to first unread message

Bunty

unread,
Feb 8, 2011, 10:35:31 AM2/8/11
to Chromium-extensions
Hi All,

I am new to chrome extension development and am trying to whose
functionality needs the pop-up page to be open even when the user
clicks on the browser page. Unfortunately my extension keeps on
getting closed every time I click on the browser page. I need my
implementation similar to jsshell. Any hints, ideas, suggestions or
advise in this matter would be appreciated.

Thanking you in advance.


- Bunty

Edward Gerhold

unread,
Feb 11, 2011, 9:27:01 PM2/11/11
to Chromium-extensions
I am new to writing extensions, too, and i think, the authors and some
experienced users should help you,
but i know a possibility for you to keep your popup open. (Re-)Open it
in a tab with
chrome.tabs.create({url: chrome.extension.getURL('popup.html')}); and
you have a persistent window.
I have a problem with the limitations in the manifest.json getting
error messages, when trying to bundle
some features in one extension, but closing the popup if clicking on
the browser again seems ok for me.
Anyways, the developers should help you getting by, maybe there is an
event or is not, to control. The
other possibility is, to open the extensions page in a tab.

Edward Gerhold

PhistucK

unread,
Feb 12, 2011, 12:46:55 PM2/12/11
to Bunty, Chromium-extensions
There is no way to keep a popup open once it has lost its focus.
You can search crbug.com for an existing issue and star it, I believe it exists.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

The alternative that Edward mentioned is one way to go, another way is to run a content script in all of the pages (alternatively, use executeScript) that adds a floating DIV\iFrame that will add your desired content to the page and be visible in all of the pages (except file:// pages and incognito (unless the user opted in for those), Chrome Web Store\Extension Gallery pages, other chrome-extension://, chrome:// and about: pages).

PhistucK




--
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