Closed Bug 1649079 Opened 5 years ago Closed 5 years ago

Thunderbird 78 should refuse to install add-ons with a "legacy" object in the manifest

Categories

(Thunderbird :: Add-Ons: General, defect)

defect

Tracking

(thunderbird_esr78+ affected)

RESOLVED DUPLICATE of bug 1661216
Tracking Status
thunderbird_esr78 + affected

People

(Reporter: TbSync, Unassigned)

References

Details

Search for this add-on in the Thunderbird 78 add-on manager:
"Allow HTML Temp"

You will get:
https://addons.thunderbird.net/addon/allow-html-temp/

which is only marked compatible up to 72.0a1 (marked in the manifest and in ATN itself):
https://addons.thunderbird.net/addon/allow-html-temp/versions/

But it installs just fine. :Sanctus confirmed this in matrix chat and observed, that it looks like a client side issue as there is not even a server check happening.

The same can be observed, if the addon is installed from file.

not good.

Status: UNCONFIRMED → NEW
Component: General → Add-Ons: General
Ever confirmed: true

Should be a blocker for 78 release.

(In reply to John Bieling (TbSync) from comment #0)

which is only marked compatible up to 72.0a1 (marked in the manifest and in ATN itself):

It's not in the manifest. At least in the version I downloaded.

  "version": "5.7.3",
  ...
  "applications": {
    "gecko": {
      "id": "{532269cf-a10e-4396-8613-b5d9a9a516d4}",
      "strict_min_version": "66.0"
    }
  },

Oh, Alex? Didn't you say otherwise? I did not recheck that and I am sorry for not having done so. :-(

Flags: needinfo?(bugzilla)

Putting this aside, TB should still check ATN for version limits setup there, when installing add-ons from the search in the add-on manager, right?

Mhhh, that's weired. Maybe I've removed the strict_max_version out of manifest.json because of complaints from the automatic checks, when uploading new versions to ATN. I actually have this max version specification in Visual Studio Code in the manifest.json in there.

(In reply to John Bieling (TbSync) from comment #5)

Putting this aside, TB should still check ATN for version limits setup there, when installing add-ons from the search in the add-on manager, right?

IMHO this should be honored.

Flags: needinfo?(bugzilla)

There are a bunch of behaviours here that seem like bugs:

  1. Any web extension with a 'legacy' object should just fail to install in 78, shouldn't it? But it warns and installs anyway. That seems bad, since no such add-on could ever work.
  2. ATN shouldn't be showing that add-on as compatible with 78. I don't know why it does.
  3. I thought that every add-on installation hit versioncheck.addons.thunderbird.net to confirm min/max version before allowing the install, but perhaps that logic was removed since Firefox Web Extensions don't normally have strict_max_version at all.

I can look at #2 next week when I'm back.

Are there any improvements?

I fixed this add-on and filed https://github.com/thundernest/addons-server/issues/142 for #2 in Comment #7 above. It's a website issue, so I won't further discuss it in this bug.

I think #3 is probably also happening because there's only a check if an add-on has strict_compatibility set, so maybe not an issue.

I do still think that #1 applies as a TB bug: Web extensions with a "legacy" extension need to refuse to install in 78.

Summary: Thunderbird 78 ignores strict_max_version when installing addons from ATN or from file. → Thunderbird 78 should refuse to install add-ons with a "legacy" object in the manifest.
Summary: Thunderbird 78 should refuse to install add-ons with a "legacy" object in the manifest. → Thunderbird 78 should refuse to install add-ons with a "legacy" object in the manifest

John, is this bug 1661216?

Flags: needinfo?(john.bieling)

Bug 1661216 is making sure to disable such legacy add-ons in TB78, regardless of any set min/max versions in the manifest or on ATN. So it covers #1 in commen t#7

Flags: needinfo?(john.bieling)

I think that's all we need, right? (To reference comments, just write "comment" and number)

Yes, if my bug lands this bug is solved as well. All the ATN related things have been fixed by :sancus.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.