one-click-ticktick
one-click-ticktick copied to clipboard
Firefox port possible?
Hi, thank you for a great extension, @chrschorn!
I am quite new to developing extensions (let alone porting to FF) and trying to figure out what would it take to get the extension running on Firefox. I ran the latest version through the Mozilla scanner (report):
Are these API calls essential?
Thank you in advance!
Hi, thanks for looking into this!
Since Firefox has very recently adopted manifest v3, a port to Firefox might be possible. I tried out the Mozilla extension scanner and got this output in the report details
{
"message": "\"/manifest_version\" must be <= 2",
"description": "Your JSON file could not be parsed.",
"locations": [
{}
]
}
It seems that this scanner might not know about / support manifest v3 yet.
notifications.udpate seems to be available: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications/update
identity.clearAllCachedAuthTokens is probably replaceable, but that needs more looking into
I tried to attempt this on my own, but didn't get very far before getting blocked by OAuth from the TickTick API. Let me know if you can help or if I should just fork the whole thing.
I think I ran into the same OAuth issue in my Arc browser. Is there any way to fix this?
To make OAuth work in additional browsers I need to register more apps in the TickTick developer backend to allow TickTick to recognize additional redirect URLs (like the allizom.org URL @dazerdude posted). But for that I'll need to figure out how exactly the other browsers handle this authentication workflow.
@MichelEhmen what exactly does your error say? I'm not familiar with how Arc handles these extensions.
I might have some time in the coming weeks to look into this.
Firefox still does not support manifest v3 service-workers https://stackoverflow.com/a/75203925
There might be ways to work around it, but for now I can't promise anything. Waiting for Firefox to fully implement manifest v3 might be the easiest way to port this extension. I'm happy to support PRs trying to fix this though.
That's the error I receive, when I try to do the login process:
Error handling response: TypeError: Failed to construct 'URL': Invalid URL at chrome-extension://nbmkldaonngpkjagofgclbioanahipdp/js/ticktickapi.js:62:36
And that's the generated URL (I replaced the clientId): https://ticktick.com/oauth/authorize?client_id=XXXXXXXX&scope=tasks%3Awrite&state=&redirect_uri=https%3A%2F%2Fnbmkldaonngpkjagofgclbioanahipdp.chromiumapp.org%2F&response_type=code