Development: Very specific problem with getting the caret position in a contenteditable div

Hello, I'm a web developer. I'm using the Firefox Developer Edition and currently working on a project that requires caret manipulation. I have this function right here t… (Lesen Sie mehr)

Hello, I'm a web developer. I'm using the Firefox Developer Edition and currently working on a project that requires caret manipulation. I have this function right here that fetches the caret's client rect: ``` function getCaretRect(): DOMRect | null {

 const sel = window.getSelection()
 if (!sel || sel.rangeCount === 0) return null
 const range = sel.getRangeAt(0)
 const rects = range.getClientRects()
 if (rects.length === 0) return null
 return rects[0]

} ``` Here is where the issue arises. Suppose I have a contenteditable div with two line breaks (no new lines), and the second line is smaller than the first one. If the caret is positioned somewhere that is further than the end of the second line, and I press the down arrow key, then left, for some reason the caret rect I get has all values set to zero, like this: `{ x: 0, y: 0, width: 0, height: 0, top: 0, right: 0, bottom: 0, left: 0 }` I will add an image to explain further.

I don't have this issue on Chromium based browsers, but cross browser support is important for me.

There is one more issue to do with caret manipulation which is how contenteditable divs are handled. On a Chromium based browser, if I have a parent div that's contenteditable, then another div that's not contenteditable (contenteditable="false" explicitly), then two children divs which are both contenteditable (or more), I can navigate through the divs freely using the arrow keys and focus is managed better alongside event handlers. This is not present on Firefox, however.

If this is not the right place to ask for help then please guide me where is more suitable.

Gefragt von Rayane Benamre vor 3 Tagen

Letzte Antwort von cor-el vor 3 Tagen

Picture In Picture mode isnt sticky

Im using Ubuntu 22.04 LTS Intel cpu I7 9th gen NVIDIA gpu but i disabled it My problem is that the Picture in Picture mode isnt sticky if i press anything it vanishes fro… (Lesen Sie mehr)

Im using Ubuntu 22.04 LTS Intel cpu I7 9th gen NVIDIA gpu but i disabled it My problem is that the Picture in Picture mode isnt sticky if i press anything it vanishes from view.

Gefragt von Mcmunhuu vor 1 Woche

Letzte Antwort von cor-el vor 3 Tagen

Firefox opens up a second browser screen automatically when I am already in a website!

When I login to my main Firefox browser and then access a website within a short while the browser screen opens up again automatically. In other words, a second window w… (Lesen Sie mehr)

When I login to my main Firefox browser and then access a website within a short while the browser screen opens up again automatically. In other words, a second window which is very irritating. How can I stop this from happening?

Gefragt von graemesmith300653 vor 4 Monaten

Letzte Antwort von munrorod vor 3 Tagen

audio no firefox

gente, o que aconteceu com o firefox (normal, beta e nightly) que não funciona mais áudio. já tentei de tudo para reconfigurar, baseado em tutoriais na web, porém não se … (Lesen Sie mehr)

gente, o que aconteceu com o firefox (normal, beta e nightly) que não funciona mais áudio. já tentei de tudo para reconfigurar, baseado em tutoriais na web, porém não se consegue mais ouvir áudio nos firefox.

Gefragt von nelioj vor 5 Tagen

Letzte Antwort von jonzn4SUSE vor 3 Tagen

Bing "ate" my Firefox setup.

As a longtime user of Firefox, I had a nice setup where after the start page, clicking on the Firefox icon would take me to a page headed "Firefox" in large letters. On t… (Lesen Sie mehr)

As a longtime user of Firefox, I had a nice setup where after the start page, clicking on the Firefox icon would take me to a page headed "Firefox" in large letters. On that page I had placed the icons for my frequently used programs. Each of the small "icon boxes" had menus that would allow entering a URL so that when clicked, the desired app would open. I was exploring MS Bing, mostly because I like the pictures they put up each day. It looks as though a "new Improved" version of Bing brings along the new MS AI component. Together they seem to have removed my Firefox setup or hidden it where I can't retrieve it. By using Firefox settings, I was able to remove the Bing URL. Good riddance!, but can I retrieve my page of links to most-used programs? I don't know where to look for that. If I have to reconstruct it, how is that done. Or how can I start a replacement. Sincere thanks, Greg Schultz

Gefragt von GregS vor 3 Tagen

Letzte Antwort von James vor 3 Tagen

SCORM modules hang on loadingn

Hi, I need to take part in a course that is delivered via moodle and that employs SCORM videos. After some modules I am experiencing an issue where firefox does not loa… (Lesen Sie mehr)

Hi,

I need to take part in a course that is delivered via moodle and that employs SCORM videos.

After some modules I am experiencing an issue where firefox does not load them anymore. When you try to load a module a spinner appears and stays there indefintely.

Initially, trying to reload the module could eventually unblock it. Now this is not possible anymore. Disabling the enhanced protection does not change the situation.

The modules work just fine with chromium.

Having firefox being a stopper for online learning resources is a real issue. Any help will be appreciated.

Gefragt von sergio.callegari vor 4 Tagen

Letzte Antwort von TyDraniu vor 3 Tagen

Separate Themes for Private Browsing

Is there a way to set a separate theme for the private browsing option? I like being able to visually distinguish between the normal browser and the private one, but enab… (Lesen Sie mehr)

Is there a way to set a separate theme for the private browsing option? I like being able to visually distinguish between the normal browser and the private one, but enabling a theme seems to set the same visuals for both.

If separate themes are not a thing, perhaps they could be added in a later update?

Thanks for all your time and effort.

Gefragt von Manny vor 5 Tagen

Letzte Antwort von Agent virtuel vor 4 Tagen

Google Sign in's

Ive tried everything under the Sun to try to get rid of that Annoying ( Sign in with Google) out of my computer but nothing works ?? Is there a solution ?? I ca… (Lesen Sie mehr)

Ive tried everything under the Sun to try to get rid of that Annoying ( Sign in with Google) out of my computer but nothing works ?? Is there a solution ?? I cannot open most of my Sites with it there !! Anyone Please HELP !!

Gefragt von particolor vor 4 Tagen

Letzte Antwort von Agent virtuel vor 4 Tagen

I did did buy a new PC, and i can't find my Password's and Bockmark's anymore?? They was saved in my Account but they got deleted how ?

I need a Backup from my Account because all my Passwords and Bookmarks are not there anymore. They was saved in my Account it work't allways well till yesterday ! … (Lesen Sie mehr)

I need a Backup from my Account because all my Passwords and Bookmarks are not there anymore. They was saved in my Account it work't allways well till yesterday !

Gefragt von Musti 43 vor 4 Tagen

Letzte Antwort von Paul vor 4 Tagen

No Youtube Network Activity on Firefox only (videos won't finish loading)

I have been having consistent issues with Youtube when played on Firefox. Opening the "Stats for Nerds", I see that I have decent connection speed. However, I get a burst… (Lesen Sie mehr)

I have been having consistent issues with Youtube when played on Firefox. Opening the "Stats for Nerds", I see that I have decent connection speed. However, I get a burst of network activity, and then it stops. Therefore, i can't watch the video. Refreshing Youtube does not help at all.

Trying on other browsers, I do not have issue. While I sometimes get low network activity, most often than not, I can play Youtube videos fine.

I have done the following:

  • Confirmed that I'm running the latest Firefox version (127.0.0)
  • Cleared Firefox cache
  • Confirmed having issue (sometimes worse as I get no network activity even on refresh) on Firefox Troubleshoot mode

Gefragt von desmond.wan913 vor 4 Tagen

Letzte Antwort von TyDraniu vor 4 Tagen

Firefox does not reliably follow settings

I have a fresh install of Debian 12.5, which came with Firefox 115.7.0esr. Firefox is inconsistent in following the settings I put in. For example, I specified the down… (Lesen Sie mehr)

I have a fresh install of Debian 12.5, which came with Firefox 115.7.0esr. Firefox is inconsistent in following the settings I put in. For example, I specified the download folder, but it still automatically saved to the original default folder. But when I clicked to ask me before downloading, it does! And it gives me the 1st option to save the the folder I specified. But if I uncheck the "ask me" button, it goes back to putting downloads in my home directory, which I don't want. Another example is I've set it to "open previous windows and tabs on startup", but it doesn't. When I close Firefox with several tabs open, the next time I start it I have just the home tab. Yet when I look in "settings" it still says it's supposed to be opening my previous tabs. This is more annoying than the download issue. How can I get Firefox to follow the settings, which ARE being saved?

Gefragt von jms vor 4 Tagen

Letzte Antwort von cor-el vor 4 Tagen

Desaturated Icons

Hi, I am experiencing an issue with desaturated icons in the toolbar and tabs of Firefox. I don't think any extesion may be causing this problem and i have already tried … (Lesen Sie mehr)

Hi, I am experiencing an issue with desaturated icons in the toolbar and tabs of Firefox. I don't think any extesion may be causing this problem and i have already tried reinstalling and resetting Firefox, but this did not resolve the problem.

Gefragt von gabricordella87 vor 4 Tagen

Letzte Antwort von cor-el vor 4 Tagen

FireFox 127.0.1 (64 bit) crashes on Windows 10

FireFox just updated itself to the latest version (127.0.1 (64 bit)) on my Windows 10 laptop. Now every time I try to close it, instead of closing, it starts a backgroun… (Lesen Sie mehr)

FireFox just updated itself to the latest version (127.0.1 (64 bit)) on my Windows 10 laptop. Now every time I try to close it, instead of closing, it starts a background process and then crashes after about 25 seconds.

Gefragt von ActsNowAV vor 4 Tagen

Letzte Antwort von jonzn4SUSE vor 4 Tagen

After the last FF update, I can only connect to FF

After the last FF update, I can only connect to FF ... no other website! I did a system restore to an earlier date which seemed to make it worse. Absolutely zero content … (Lesen Sie mehr)

After the last FF update, I can only connect to FF ... no other website! I did a system restore to an earlier date which seemed to make it worse. Absolutely zero content appears on any website I choose to go to. The tab shows the name of the website, however it doesn't "connect."

Please help me rectify this challenge. Thank you.

Gefragt von TruthAndLight vor 4 Tagen

Letzte Antwort von Paul vor 4 Tagen