Why does my Chrome Extension stop working when I restart Chrome? - google-chrome

I'm building a Chrome Extension that works perfectly after I upload it to Chrome using the 'Load unpacked' button.
However, when I quit and reopen Chrome, the extension does not interact with the webpages at all. If I reload the extension, (or sometimes just click the extension icon) it immediately works again.
My code uses content scripts and a background.js script. After I've restarted Chrome, anything inside
chrome.runtime.onInstalled.addListener(function () {
});
does not run.
Why does my extension stop working when I restart Chrome?

Related

In VS code, whenever I save a file in Html its being saved as Brave Html document when I actually want it to save as Chrome Html doc. How to do it?

Earlier I used to have Brave as my default browser and installed vs code using Brave browser. I then uninstalled vs code and reinstalled it from chrome browser. Still I'm getting the same problem.
Right click then click open with and choose more apps and select chrome then select always open with chrome and tada.

Remove All Chrome Extensions While Reinstalling Google-Chrome

Recently, I have installed an annoying chrome extension (http://www.buntai.com/). Thanks to this extension, every time I open a new window in google chrome, it will minimize immediately, which made me not able to use chrome anymore.
Therefore, I tried to reinstall google chrome in order to get rid of the google chrome extension(I cannot remove it directly in chrome://extensions/ because I cannot open that page using chrome.)
However, it did not work. When I reinstalled google chrome, the extension was still there.
I am not sure why reinstalling chrome would not remove the extensions and I would like to know if there is another approach to remove the chrome extensions.

Website popup is blank for Chrome

Our application uses a popup window to show a report. This works in every browser except Chrome.
In Chrome the URL in the Network tab of the inspector has a blank response. I also see Chrome loading an inject.preload.js script from disk cache?
This exact same page works in Firefox and Safari as well. I haven't been able to check IE yet (i'm on a mac today).
What is this inject.preload.js script and why would Chrome not load a URL in a popup?
The exact same code running staging servers works, the popup loads just fine. In production it works everywhere except Chrome. Both staging and production use SSL, have the same config, etc.
I unfortunately can't link as its a secured site.
Inject.preload.js is generally some sort of adblocker. It could be the case that its acting up and blocking your popup. If it is the case, it would show as an icon to the right of the address bar.

Chrome Interactive session is opening black page

Hi I was using selenium chrome drivers as interactive service to open some websites. It was working fine. Suddenly found that the session is not loading correctly and showing black page. Found following error:
chrome automation extension has crashed. click this balloon to reload the extension
Found that with chrome browser version was updated to v51 and selenium-chromedriver 2.21 is compatible with v50.
Downgraded chrome browser to v50. Now it is working fine.

Can't type after starting chrome extension debugger

I'm trying to debug my chrome extension, but once I open the debugger, all keyboard extensions are captured by the debugger or the main chrome window, and I can't type in my extension popup. If I don't open the extension debugger, it works fine. Any ideas how to get around this?