Bug: upgrading permission from "chrome://favicon/" (MV2) to "favicon" (MV3)

85 views
Skip to first unread message

Jackie Han

unread,
Aug 14, 2023, 5:43:50 AM8/14/23
to Chromium Extensions
I discussed this bug last year in this forum and reported it at https://crbug.com/1351379. A few days ago, "sheriffbot" reminded me that the issue has been available for over a year. I just re-test ed it with "extension-update-testing-tool", the bug still exists.

For more clarity, I rephrase the problem below.

1. You have a MV2 extension. The manifest is:
{
  "name": "Bookmark Favicon Test",
  "description": "Bookmark Favicon Test",
  "version": "1.0.0",
  "manifest_version": 2,
  "permissions": ["chrome://favicon/", "bookmarks"],
  "icons": {"128": "icon.png"}
}


2. You modify the manifest to MV3:
{
  "name": "Bookmark Favicon Test",
  "description": "Bookmark Favicon Test",
  "version": "2.0.0",
  "manifest_version": 3,
  "permissions": ["favicon", "bookmarks"],
  "icons": {"128": "icon.png"}
}


3. Now, the browser will disable the extension when upgrading it from MV2 to MV3.
ext disabled when upgrading  to mv3 step-2.png

From a developer's point of view, essentially the "favicon" and "chrome://favicon/" are the same permission and shows the same permission warning. The bug is that the browser does not treat them as the same permission when the extension is upgraded.

permissions warning diff.png

permissions installing mv2.png
extension details page: after installing mv2

permissions installing mv3.png
extension details page: after installing mv3

permissions upgrading to mv3.png
extension details page: after upgrading from mv2 to mv3


Jackie Han

Oliver Dunk

unread,
Aug 14, 2023, 10:11:47 AM8/14/23
to Jackie Han, Chromium Extensions
Thanks for flagging this Jackie, I can definitely see how this might be a problem migrating to MV3.

I'll try to raise it with the team and see if we can get some eyes on it.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAAgdh1JRZ4Y57BYF7FwE2H0X4Q_5AbPkYqTp-QD%2BnR-VHivyPA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages