Popup not opening after icon click in unpacked extension - google-chrome-extension

I am following the tutorial here: https://developer.chrome.com/extensions/getstarted
Everything works apart from the pop-up when you click the icon.
I have tried downloading the finished code and also changing page_action to browser_action.
Is there some issue seeing the popup page when loading unpacked?

Go to chrome://extensions in your browser and then click on the Errors button lying on your unpacked extension, this will open a window which will display all the errors/ issues encountered while loading your extension.

Related

Chrome extension (manifest 3): Keep popup open

I'm develop Google Chrome extension, when i try to load a file to my extension, during the search for it in folder popup apparently lose focus and close. what I need is keeping the popup open during this process of select a file. how can I do that, working around the problem present in manifest 3.

Click on another extension icon and read its popup

I'm trying to have an extension click on another extension's icon and interact with the resulting popup. It seems straightforward but I haven't found anywhere that hints at how to do it.

how to debug chrome extension downloaded from chrome store

I want to debug a chrome extension downloaded from chrome store. is it possible and how.
I have readium chrome extension and it is not working properly. I want to know why.
Thanks
If the extension run front-end scripts: right click on the page, Inspect > Sources tab > Content scripts tab. Then you can select the Chrome extension that not work correctly and add a breakpoint for example.
If the extension run back-end scripts: Go to this url: chrome://extensions then scroll to your extension and click on background page button. A popup will be opened and you can go to the sources tab and debug the script.

Opening a Chrome extension as a pop-up using a link

I have a chrome extension installed in my browser. When I click the extension's icon in the menu bar the extension opens as a floating pop-up, as expected.
What I am trying to do is to open the extension in Chrome via a link/shortcut/whatever from another program. As a first step I've tried opening the extension from the command line, ex:
chrome "chrome-extension://abcdefghijklmnopqrstuvwxyz/index.html"
This works but the extension opens as a new tab and takes up a full broswer page instead of a just being a pop-up. Is there a way to open the extension as a pop-up on top of any open tabs?
Sadly, it's completely impossible.
There is an API in the works, but it would require at a minimum a user gesture, at a maximum explicit invocation of the extension.
So opening a link would not be enough, nor would a Native Message be.
you cant make the native extension popup to show programatically but you could use a content script that displays the popup (using the new for example) on the tab that you want.

Chrome extension - inspect views don't show up

I'm new to Chrome extension development. I tried to follow the "hello world" debugging tutorial at http://developer.chrome.com/extensions/tut_debugging.html, but I couldn't find the inspect popup menu or inspect views link to open the debugger when I right-click on the "hello world" icon.
I noticed that in my chrome extension tab: chrome://chrome/extensions/, there is an "inspect views" link which enabled me to open a debugger for Google translate extension that I've installed before. However, the "inspect views" link didn't show up for "hello world" extension (source code: http://developer.chrome.com/extensions/examples/tutorials/getstarted.zip).
I have tried to search if someone has a similar problem but I couldn't find one. I'm using Google chrome 21.0.1180.60 for Windows XP.
Thanks in advance for any suggestions to open the debugger!
You are right... Try this:
Open the ext popup window by clicking on it
Right-click inside the displayed popup and choose the "Inspect Element" option
This will launch a dev tools instance for the popup.
For more details: http://samdutton.wordpress.com/2010/12/16/debugging-google-chrome-extensions/

Resources