Commit graph

22 commits

Author SHA1 Message Date
rugk
1d192d9407
Bump version and update changelogs 2022-12-13 15:14:37 +01:00
rugk
b50147f71c
chore: bump version number to v1.4 2022-06-26 14:11:23 +02:00
rugk
62ddbf0772
Merge pull request #72 from rugk/mastodonfix
fix: properly fallback in case of error/rejection of one Toot-ID getting method
2022-06-18 14:49:42 +02:00
rugk
8a282fe1de
fix: properly fallback in case of error/rejection of one detection method
To implement such a fallback mechanism the extension races two promises against each other here, which have these two methods implemented:
e34050284b/src/background/modules/Detect/Mastodon.js (L164)

[Promise.race](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) just has the [issue that it also rejects as soon as a promise rejects, i.e. errors](https://stackoverflow.com/questions/70747069/why-does-promise-race-fulfill-with-an-unfulfilled-promise).
That's actually not what we want. That works, as long as the success comes _before_ the error, but if the error is instant (which is nearly always the case here because the JSON API is faster than website scraping), then it fails.

We want to ignore errors. I.e. I found [something like this SO questions asks for](https://stackoverflow.com/questions/37234191/how-do-you-implement-a-racetosuccess-helper-given-a-list-of-promises), which [points to the modern browser-implemented solution](https://stackoverflow.com/a/60274215/5008962) called [`Promise.any`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any).

Also needs bumping the Firefox version, but that is not a problem, as that version is really old enough to not be supported anymore. :D
2022-06-12 21:13:25 +02:00
rugk
179139dd06
Bump version 2022-04-29 23:44:49 +02:00
rugk
2f280c9edd
Exclude GitHub metadata dir from build 2020-03-20 16:46:54 +01:00
rugk
3b6e13ce02
Add permission request for optional tabs permission
Because this is needed for this new feature.
2019-10-15 22:04:47 +02:00
rugk
9a76bd854d
Add warning that the make script is only intended for releases
See https://github.com/TinyWebEx/common/issues/1
2019-03-10 21:08:05 +01:00
rugk
727fd1d725
Bump to v1.2 as I accidentially uploaded a previous version 2019-02-10 18:00:08 +01:00
rugk
8d1a2c51ea
Bump to v1.1 2019-02-10 17:52:11 +01:00
rugk
9e262d2a07
Fix example exclusion 2019-02-10 17:52:07 +01:00
rugk
341addb283
Also exclude example files 2019-02-10 17:44:13 +01:00
rugk
c006eb4afc
Improve make script 2019-02-10 17:37:17 +01:00
rugk
1fb4203adb
Do show error in notification when redirect fails
Fixes https://github.com/rugk/mastodon-simplified-federation/issues/12

**Atttention:** Introduced new permission user has to acknowledge.
2019-01-30 22:12:50 +01:00
rugk
92c08de2d9
Fix typo 2018-12-17 16:43:22 +01:00
rugk
9ef58d645b
Add http:// permission
It makes no difference to the user whether to intercept only-HTTPS or also HTTP sites. Actually HTTP sites get rare and uninteresting, so the impact of this change is low.

This prevents that the user may be needed to be asked for permissions again in future updates.
2018-12-17 16:41:04 +01:00
rugk
d95c8be963
Start adding release notes, dump v1.0 2018-12-17 11:44:01 +01:00
rugk
3484286623
Update make script 2018-12-15 16:32:44 +01:00
rugk
dc0911dd8c
Switch make file back to XPI 2018-11-11 18:42:35 +01:00
rugk
83410a4040
Save username & server separately instead of one "insertHandle"
Upgrade routine for this has been implemented. (new data is now v0.8)
2018-11-11 18:34:06 +01:00
rugk
474194c00b
Switch to only webRequest listening for intercepting & redirecting
This also speeds up the redirect and you won't see a load time as the API query now starts much faster.
Also the HTML scraping and thus the content script has benn removed.
2018-11-11 16:07:25 +01:00
rugk
6ea5a42819
Add unit tests
Some small first unit tests for the common, module, at least.
2018-09-01 13:49:45 +02:00