• Solved
  • Archived

JavaScript in firefox.cfg can't access `document`

As I understand, `autoconfig.js` (with `firefox.cfg`) can be used to have JavaScript run during startup to control Firefox's UI elements. I have set up `autoconfig.js` i… (read more)

As I understand, `autoconfig.js` (with `firefox.cfg`) can be used to have JavaScript run during startup to control Firefox's UI elements.

I have set up `autoconfig.js` in my `/usr/lib/firefox-developer-edition/defaults/pref` folder (I'm on EndeavourOS Linux). As instructed here, I've already put the two required files, `autoconfig.js` and `firefox.cfg` in their correct folders (`/usr/lib/firefox-developer-edition/defaults/pref` and `/usr/lib/firefox-developer-edition` in my machine).

The file `firefox.cfg` contains the following code:

 //
 (() => {
   var tabbar = document.getElementById("TabsToolbar");
 })();


However, every time I run Firefox, this message will appear:

 "Failed to read the configuration file. Please contact your system administrator."


If I empty out the `firefox.cfg` file, Firefox will run normally without showing the error message. It will also run normally if I just have something like this in the file:

 //
 (() => {
   var testVar = "";
 })();


I don't understand why the JavaScript code can't access the Firefox UI elements through `document` or `window.document`. If `autoconfig.js` isn't build for that, what should I use to change my browser's UI elements through JavaScript?

Thank you.

Asked by jazali 6 months ago

Answered by cor-el 6 months ago

  • Solved
  • Archived

Firefox keeps freezing, but only visually

For the past few days, Firefox has been freezing up. By playing around with it, I've found that it's still functioning, but it ceases to update visually. I'm not having t… (read more)

For the past few days, Firefox has been freezing up. By playing around with it, I've found that it's still functioning, but it ceases to update visually. I'm not having the same issues with any other program on my PC, I don't see the icon to update Firefox, and I've restarted my PC a few times along the way.

When this happens, it's not just website contents that freeze, but Firefox's UI as well. Hovering a tab doesn't highlight it. Clicking the hamburger doesn't appear to open the menu. Etc...

If I have a video playing when this happens, I will continue to hear it, but the frame the video is on stays in place.

If I click on another open tab, it will still show me the tab it visually froze on, but if I end Firefox with Windows Task Manager & reopen it, the session saves the tab switch, so it's still taking mouse inputs. I've been able to do similar with keyboard inputs by clicking on the address bar and entering a new URL. I don't see anything as I type it, but after using Task Manager to close and reopen Firefox, the site I entered is there.

I can switch between open Firefox windows when this happens without issue, even on the same monitor, and if I pull up something else in front of Firefox and then switch to Firefox it will still display what was last visible in that Firefox window while the bug is occurring.

I have tried disabling add-ons, and actually found that disabling some of them made it happen *more* frequently, not less. Privacy Badger, Auto Tab Discard, & Ad Nauseum specifically. Switching from Ad Nauseum to AdBlock Plus or uBlock Origin neither increases nor decreases the frequency. My other add-ons, like Duplicate Tabs Closer, haven't had any effects on frequency that I can see. With all of my Add-ons disabled, Task Manager shows double the number of Firefox processes.

I tried to clear my history, but I can only select my last 1 hour of history, as clicking on the dropdown box to select another duration will cause the problem to occur & I can't see the other options in the box to select a longer option. The dropdown to select a topic for this question has the same issue.

These are some actions that risk causing the bug to start, but aren't 100% reproducible, and the list is not exhaustive:

  • Trying to click & drag to pull a tab into becoming its own window or to move the tab into another window. (Firefox does not save this movement if it causes the bug, so closing and reopening it will keep the tab in the window it was already in.) This seems to work fine for some sites, but specifically tends to break if it's a YouTube tab.
  • Mid-clicking to open a link in a new tab, if done on several links in a row
  • Clicking on a UI element, like the hamburger button
  • Right clicking on an image and selecting "copy"
  • Right clicking within Firefox
  • Opening Firefox

I have not seen the bug occur at any time that I was not actively providing some input to the Firefox program.

Asked by Sean 9 months ago

Answered by Sean 9 months ago

  • Solved

List of suggested sites positioned too high.

Concurrent with updating to Firefox 126.0, when typing into the address bar, the list of suggested sites covers-up the address bar. In fact, the top of the list is off t… (read more)

Concurrent with updating to Firefox 126.0, when typing into the address bar, the list of suggested sites covers-up the address bar. In fact, the top of the list is off the screen. I don't see any other posts relative to this, am I the only one with this problem... and how do I fix it?

Asked by Electrojim 3 months ago

Answered by TyDraniu 3 months ago

  • Solved

Cannot reach a website except in private browsing but...

I have been using firefox for years. My current version is 126.0.1 (64 bit). Within the last couple of months(?) I am unable to reach a website that I use on a semi-regu… (read more)

I have been using firefox for years. My current version is 126.0.1 (64 bit). Within the last couple of months(?) I am unable to reach a website that I use on a semi-regular basis axisgis.com/AshbyMA The problem exists on 3 different devices, an HP laptop running win 10, an older desktop running win 10, and an older mac desktop running Catalina 10.15.7 which apple says is up to date. If I use Safari on the mac the website works perfectly. If I use private browsing on the laptop the website works perfectly. If I use private browsing on the desktop the website works perfectly. On the laptop I ran the firefox in troubleshoot mode and the website still would not work. I cleared the cache on the laptop and the website still won't work. Since the problem occurs on 3 different devices that are not synced to each other I can't believe it is a cookie problem. Rebooting devices makes no difference. I rebooted the Comcast modem and the house router, no change.

Any ideas would be welcome.

Thanks, mike

Asked by mike745 3 months ago

Answered by mike745 3 months ago

  • Solved

Used forgot about this site for reddit and now I cant acccess the site at all

Recently I used the forgot about this site for reddit, but when I try to click on a link from either my bookmarks or from a web search I keep on getting. [The page isn’t … (read more)

Recently I used the forgot about this site for reddit, but when I try to click on a link from either my bookmarks or from a web search I keep on getting. [The page isn’t redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.]

Not exactly sure what causes this or how to fix it.

Asked by Blaze 3 months ago

Answered by Blaze 3 months ago

  • Solved
  • Archived

windows 10 - want to recover a recently-closed window with 49 open tabs? thank you

learning windows 10 - closed a window retrieved from the taskbar - can i get it back with its 49 tabs? i can get an active window showing the recent files i was working w… (read more)

learning windows 10 - closed a window retrieved from the taskbar - can i get it back with its 49 tabs? i can get an active window showing the recent files i was working with, and i can open ONE of the tabs ("one document") - went too fast i guess. thanks for any response. hope i did the "share data" for you properly.

Asked by notanotherhero 8 months ago

Answered by TyDraniu 8 months ago

  • Solved

Youtube audio plays extremely slow(Video is fine, audio and video are way out of sync, of course)

Youtube audio is extremely slow, I reckon at 10%, but the video is fine and can be sped up or down. The problem persists even in troubleshooting mode, after cache cleari… (read more)

Youtube audio is extremely slow, I reckon at 10%, but the video is fine and can be sped up or down. The problem persists even in troubleshooting mode, after cache clearing, hardware acceleration turned off, enabled DRM and widevine, driver updates, in private mode or not, logged in or not, firefox restarts, computer restarts.

But Youtube plays fine in Chrome and Edge.

I dont think I didnt anything drastically different, or updated win10 or firefox, or messed with anything. It was working fine a day ago.

Is there any way to reset something?

Asked by abelang82 3 months ago

Answered by abelang82 3 months ago

  • Solved

Firefox on Linux does not allow entries in forms that are called up in IFRAME.

Dear friends, Firefox on Linux does not allow entries in forms that are called up in IFRAME. It works perfectly on Android. Does anyone know why this is the case? Uwe … (read more)

Dear friends,

Firefox on Linux does not allow entries in forms that are called up in IFRAME. It works perfectly on Android.

Does anyone know why this is the case? Uwe

Firefox 127.0 (64-Bit)

Asked by haller-mtl 2 months ago

Answered by jonzn4SUSE 2 months ago

  • Solved

The browser does not open normally.

In English, the meaning of this error is: Title: Configuration error Content: Failed to read configuration file. Please contact your system administrator. I had this err… (read more)

In English, the meaning of this error is: Title: Configuration error Content: Failed to read configuration file. Please contact your system administrator.

I had this error for a long time. But it's not too serious. Just hit ok and I can use all the recovery tabs as before without any problems. But every time I open windows and open the browser, this message appears. I feel very uncomfortable and tired without knowing why. Even reinstalling the browser didn't fix the problem, I tried it before and lost my favorite browser theme. And 1 more thing if someone can explain. If it can't read the configuration file, how can I still use the browser? What does that configuration file do?

This message only appears when I have not opened the Firefox browser on my computer. If I already have the tab, I can open another firefox browser without that message appearing. Only when I close all tabs. Open it again and it will appear. And click ok to use normally.

Asked by Jok Holk 3 months ago

Answered by Jok Holk 3 months ago

  • Solved
  • Archived

Why does Firefox stay on the Linkedin page

I'm up to the most current version of Firefox 120.0.1 (64-bit) Windows 11 For this and the last versions over a couple of years whenever I go to; https://www.linkedin.… (read more)

I'm up to the most current version of Firefox

120.0.1 (64-bit) Windows 11

For this and the last versions over a couple of years whenever I go to;

https://www.linkedin.com

Then try to go to any other page like https://nextdoor.com from a bookmark, it stays on linkedin.

If I enter the address by typing it in, it works.

Asked by Mr BO 9 months ago

Answered by Mr BO 4 months ago

  • Solved
  • Archived

Video playback issues

For the last several days (as of 12/20/2023) I have had issues with playback on sites including Netflix, Amazon Prime, and Dropout.tv (not YouTube). Error messages indica… (read more)

For the last several days (as of 12/20/2023) I have had issues with playback on sites including Netflix, Amazon Prime, and Dropout.tv (not YouTube). Error messages indicate that my browser is unsupported and I need the newest version of Firefox, but my browser is completely up-to-date. Pausing my adblocker on these sites does nothing to correct the issue, nor does restarting the browser or my computer.

Asked by ekdhale 8 months ago

Answered by zeroknight 8 months ago

  • Solved
  • Archived

~10 second delay response when searching

On some webpage, I experience delay response when I trying to search sometime. For example, in Google homepage after typing something or even gibberish the page froze and… (read more)

On some webpage, I experience delay response when I trying to search sometime. For example, in Google homepage after typing something or even gibberish the page froze and not responding for about 10 second but the browser is still functioning (meaning I can still move other tabs or open option). Once that 10s delay is over, it responded with my result. And something when I when to search back something again(not in the homepage), more of the time is response back fast like 0.2s but other time the same 10s delay. This problem also happens in some other website but not all in their search bar. I have try in safe mode. disable all my extension, reinstall Mozilla Firefox, check any windows update and such. Also other browser does not have this problem such as chrome and brave. If this problem still persisting then I would such to other browser but prefer not to as I quite fond of Firefox. Thanks for your help in advance.

Asked by Victor118 1 year ago

Answered by Victor118 1 year ago

  • Solved
  • Archived

Videos won't play anymore

Hi, I'm having this problem of videos not playing in some websites for a long time now, not even sure how long anymore. It started on Twitter, where I get the error messa… (read more)

Hi, I'm having this problem of videos not playing in some websites for a long time now, not even sure how long anymore. It started on Twitter, where I get the error message "The media could not be played". Some time after I got it on Instagram where I get the message "Sorry, we're having trouble with playing this video. Learn More". More recently I subscribed to the Nebula service and got a message there as well "The media could not be loaded". Differently from other people I don't have this problem on Youtube, over there everything has always been fine. I have tried every workaround on this, I have seen many tutorial videos and articles and tried everything and nothing worked. Running on Windows 10

Some things I have tried: -cleared cookies and cache; -disabled all add-ons, removed them even; -checked if firefox was updated; -checked if graphics card drives were updated; -opened websites on incognito mode, nothing changed there; -started Firefox in troubleshoot mode, nothing changed there; -disabled graphics hardware acceleration in Firefox; -enabled autoplay; -reset firefox; -changed my pc actually, installed firefox, got the error and reset firefox again;

Could anyone help me with this? Is this normal?

Asked by Lali 1 year ago

Answered by zeroknight 1 year ago

  • Solved
  • Archived

Firefox constantly reloading all tabs?

Hiya. I usually have a fairly large number of tabs open on the browser. I use the Panorama View add-on for tab management. Usually this means that on any given container … (read more)

Hiya. I usually have a fairly large number of tabs open on the browser. I use the Panorama View add-on for tab management. Usually this means that on any given container I have about 10-20 tabs open for a total of some 300 odd tabs. The nice thing is that Firefox doesn't usually load all my tabs so this works out for me. Recently however something weird's been going on and Firefox just refreshed ALL my tabs across all the containers. This kills my performance completely, especially given a fair number of tabs are just random youtube links. When all my tabs are open Firefox eats up like 25 GB of RAM, which is understandably not great.

I tried refreshing Firefox to no avail. Is there any way to stop this constant loading of all tabs?

Asked by Akash Saravanan 1 year ago

Answered by zeroknight 1 year ago

  • Solved
  • Archived

After update to 112 firefox starts with ugly blank white dummy UI before loading

After updating firefox to 112 it now starts with ugly white ui dummy before actually loading proper UI. Screenshot attached. It was not happening on firefox 111.0.1. It … (read more)

After updating firefox to 112 it now starts with ugly white ui dummy before actually loading proper UI. Screenshot attached. It was not happening on firefox 111.0.1. It happens every time I launch firefox 112. Of course nothing in changelog is said about changing performance or UI so I have no idea what is causing this.

Asked by Piterk 1 year ago

Answered by Piterk 1 year ago

  • Solved
  • Archived

Firefox was crashing often, now it does it all the time after updating to 113.0

Some pages were crashing before, now that I have updated to 113, happens on almost any page. Same problem in troubleshooting mode, so not an extension, plug-in, etc. Atta… (read more)

Some pages were crashing before, now that I have updated to 113, happens on almost any page. Same problem in troubleshooting mode, so not an extension, plug-in, etc. Attached troubleshooting info.

Asked by lfox1 1 year ago

Answered by lazizakhmedov1014 1 year ago

  • Solved
  • Archived

"NetworkError when attempting to fetch resource." on many websites

in the last day firefox has all but stopped working on most websites. i can go to them and they start to load, but then they eventually break halfway through and either e… (read more)

in the last day firefox has all but stopped working on most websites. i can go to them and they start to load, but then they eventually break halfway through and either end up loading forever or produce an error. if i look at the console i see "Source map error: Error: NetworkError when attempting to fetch resource." this happens on twitter.com and raidbots.com to name two off the top of my head.

i did a complete refresh and even completely uninstalled and reinstalled the browser - it started working for a bit and then broke again. i have no plugins or extensions enabled currently (i have dashlane but this happens with it enabled or disabled). it's making the browser unusable. ive scanned my computer for malware and cant find anything either. i don't have this problem in any other browsers so not sure what else to try.

Asked by fnnmyr 1 year ago

Answered by cor-el 1 year ago

  • Solved
  • Archived

Stop redirect warning and just automatically redirect.

I've been lead to believe in previous editions of firefox you could turn off the redirect message and instead just allow firefox to redirect. However now (as of 112.0.1)… (read more)

I've been lead to believe in previous editions of firefox you could turn off the redirect message and instead just allow firefox to redirect.

However now (as of 112.0.1) i can't find any way to do this. I repeatedly get redirect message and i would prefer the browser just do the redirect instead of having my click a link. I know exactly where the redirect is coming from and i have no problem with it and i don't need it to have a warning.

Asked by Neopopulas 1 year ago

Answered by Neopopulas 1 year ago