-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to write tweets on Twitter #4
Comments
Ah, BTW, the Unicode font and casing features do work on the page for some strange reason. |
This issue is in the |
A possible solution would be to use the new |
If the change is backwards-compatible (and I think it can be made like that), I see nothing wrong with that. Sure, go for it, if you can improve/fix that! (And don't forget to use feature detection instead of browser detection, if possible. 😃) |
Hmm, I am not sure how we could make it backwards compatible... The needed |
I think this is a no brainer: according to Firefox release schedule, latest version of Firefox-ESR (78.15) is planned for 2021-09-07, starting 2021-10-05 every released Firefox version will be 91+, thus supporting |
@rugk requested above that it be backward compatible. Anyway, October is over six months away and we would like to officially release this add-on to AMO, ATN and the Chrome Web Store as soon as possible, so it would obviously be preferable that it supported Firefox ESR 78 and especially Thunderbird 78. In addition, any change made to fix this issue will also need to be made in my companion PR for the Awesome Emoji Picker (rugk/awesome-emoji-picker#93), which still supports Firefox 63, so requiring 87 would likely be a nonstarter... |
Correct, thanks for the explanation 👍 |
@rugk - Hmm, there is probably an easy solution/workaround for this issue that does not require Firefox 87, but I have not been able to find it yet... I am open to ideas if anyone has any. 🤔 There are dozens of posts on Stack Overflow type websites on how to get the caret position in ContentEditable elements. I tried most of them when I initially implemented this (rugk/awesome-emoji-picker#93) and they all either did not work or caused major website breakage. I ended up having to combine several of the solutions to produce the unicodify/src/content_scripts/autocorrect.js Lines 70 to 73 in fa3fed0
|
Honestly, I'd be okay, if we require Firefox 87. It works in Firefox stable then and this is a new add-on, so nobody will complain that it does not work in their browser "anymore". 😉 From an UX perspective (having used that add-on in practise for some time), this is really an annoying thing.
from #34 So if that problem would really be limited to Twitter, IMHO it would also be fine for 1.0 to hardcode and exclusion and do not run the add-on on Twitter at all. |
Well, any fix for this would need to be backported to rugk/awesome-emoji-picker#93. Regardless, I attempted to update my local copy of the extension to use the The main issue with it and most of the other solutions is that they provide the caret position with respect to the
I think this should only be done as an extreme last resort, since the issue could very well affect other websites. It would just require adding Twitter to the |
Hmm yeah, maybe it would make sense to make a common library at some point of time. 🙂 |
I still have this as a blocker for the next beta release (see the milestone)… as the only issue now. So hmm… what is the current status here, @tdulcet? Any chance to find a real fix or workaround, or should we chase a way by creating an exclusion list – possibly even hardcoded for now. |
See my previous post above for a good summary of the current state of this issue. I have been trying different possible solutions/workarounds as I find them, but I have not been able to find a real fix yet... As I said, I am open to ideas if anyone has any. As with #55, we will likely need someone who is an expert on WYSIWYG editors. We could always ask on Mozilla's Discourse or Stack Overflow, but I think our chances of getting an acceptable solution there would be very low. Regarding an exclusion list, I can add that if needed, just let me know. |
So let's tackle that more general in #62 |
TODO:
|
@tdulcet Another update here and they now suggest the solution we have – at least it uses this null-character? However, ah, now I read there is a difference:
Do you want to test that new solution? 🤔 |
Yeah, I did, see #62 (comment):
|
Twitter also does clever font tricks to make :) appear more like an emoji by itself. This may be relaterd to this problem, but may actually also not be, because it's not CSS/JS stuff, but just stupid font things (which is great BTW; but off-topic): https://chaos.social/@rixx/107231357100411285 |
I believe this proposed new API might resolve the issue for us: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/RangeInnerText/explainer.md |
I just filed Bug 1902858 on BMO to request new WebExtension APIs to support this use case. |
Affected website: https://twitter.com/
Bug description
When I try to write a tweet or reply this really seems to fail and reset’s my cursor position to the beginning again.
It seems to get scrambled. (no, no 🍳)
Steps to reproduce
Screencast
text:
Somtimes it also ends like this (likely related, could not see it happening without this add-on, this is in a reply):
Actual behavior
This add-on should not interfere with what I write.
System
Operating system and version: Linux/Fedora 33, GNOME
Browser and version: Firefox 83
Add-on version: 733bd33
Possible solution
I have no real idea what this might be related to.
The text was updated successfully, but these errors were encountered: