chrome.runtime.onInstalled raised when there is no real update

91 views
Skip to first unread message

Evgeny S

unread,
Nov 19, 2024, 3:14:26 PM11/19/24
to Chromium Extensions
Hello. 

Do someone know why chrome.runtime.onInstalled can be triggered when extension does not have real update? I open chrome://extensions/ in developer mode, click Update and my extension goes to callback of onInstalled and I see that my previous version is the same as my current version. I didn't saw the same behavior previously.

Inside onInstalled I get previous version using details.previousVersion and the current version is in chrome.runtime.getManifest().version. That values are equal. The details.reason is "update"

After that extension context invalidates as if I had real update.

I have other extensions and I didn't saw the same fake updates yet.

Evgeny S

unread,
Nov 19, 2024, 3:26:13 PM11/19/24
to Chromium Extensions, Evgeny S
I'm closing that question. I found I have two versions of my extension in the list of my extensions: one is production and another one is loaded as unpacked and both this extensions were completely identic (have the same sources and manifest files). Once I deactivated one the Update button does not trigger onInstalled event anymore. Probably two identic extensions can cause that tricky issue...
Reply all
Reply to author
Forward
0 new messages