Converting legacy to TB 69

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Converting legacy to TB 69

bharath kumar
Hi,

Our add-on has stopped working in Thunderbird V69, and we tried to follow the below link to convert it.

https://developer.thunderbird.net/add-ons/updates 

My manifest looks like this now:

{
  "manifest_version": 2,
  "applications": {
    "gecko": {
      "id": "[hidden email]",
      "strict_min_version": "68.0"
    }
  },
  "name": "sample name",
  "version": "4.0",
  "legacy": {
                "options": {
                        "page": "chrome://samplename/content/samplenameOverlay.xul"
  }
}

Add-in is shown in the add-in manager, but it is not working.

I am seeing following error in error console:

1569559045952 addons.xpi-utils WARN addMetadata: Add-on [hidden email] is invalid: SyntaxError: JSON.parse: end of data after property value in object at line 15 column 2 of the JSON data(resource://gre/modules/Extension.jsm:525:26) JS Stack trace: readJSON/</<@Extension.jsm:525:26
[hidden email]:128:9
[hidden email]:228:15
[hidden email]:746:22
[hidden email]:2710:32
[hidden email]:3150:26
[hidden email]:2982:28

Does anybody know how to fix this?

TIA.

Thanks,
Regards,
Bharath
_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: Converting legacy to TB 69

Mark Banner-4
On 27/09/2019 11:10, bharath kumar wrote:

> {
>    "manifest_version": 2,
>    "applications": {
>      "gecko": {
>        "id": "[hidden email]",
>        "strict_min_version": "68.0"
>      }
>    },
>    "name": "sample name",
>    "version": "4.0",
>    "legacy": {
> "options": {
> "page": "chrome://samplename/content/samplenameOverlay.xul"
>    }
> }
>
> Add-in is shown in the add-in manager, but it is not working.
>
> I am seeing following error in error console:
>
> 1569559045952 addons.xpi-utils WARN addMetadata: Add-on [hidden email] is invalid: SyntaxError: JSON.parse: end of data after property value in object at line 15 column 2 of the JSON data(resource://gre/modules/Extension.jsm:525:26) JS Stack trace: readJSON/</<@Extension.jsm:525:26

This is saying that your JSON is wrong - it is expected more information
after line 15.

On checking the formatting, it looks like you're missing a closing
bracket `}` for the options subsection. There should be various JSON
validators around (e.g. there's an ESLint plugin for json).

Mark

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird
Reply | Threaded
Open this post in threaded view
|

Re: Converting legacy to TB 69

Stefan Sitter-2
In reply to this post by bharath kumar
Looks like your example is missing a closing } at the end. Based on
formatting it is the closing } for the "options" block.

/Stefan

On 27.09.2019 12:10, bharath kumar wrote:

> Hi,
>
> Our add-on has stopped working in Thunderbird V69, and we tried to follow the below link to convert it.
>
> https://developer.thunderbird.net/add-ons/updates
>
> My manifest looks like this now:
>
> {
>    "manifest_version": 2,
>    "applications": {
>      "gecko": {
>        "id": "[hidden email]",
>        "strict_min_version": "68.0"
>      }
>    },
>    "name": "sample name",
>    "version": "4.0",
>    "legacy": {
> "options": {
> "page": "chrome://samplename/content/samplenameOverlay.xul"
>    }
> }
>
> Add-in is shown in the add-in manager, but it is not working.
>
> I am seeing following error in error console:
>
> 1569559045952 addons.xpi-utils WARN addMetadata: Add-on [hidden email] is invalid: SyntaxError: JSON.parse: end of data after property value in object at line 15 column 2 of the JSON data(resource://gre/modules/Extension.jsm:525:26) JS Stack trace: readJSON/</<@Extension.jsm:525:26
> [hidden email]:128:9
> [hidden email]:228:15
> [hidden email]:746:22
> [hidden email]:2710:32
> [hidden email]:3150:26
> [hidden email]:2982:28
>
> Does anybody know how to fix this?
>
> TIA.
>
> Thanks,
> Regards,
> Bharath
>

_______________________________________________
dev-apps-thunderbird mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-thunderbird