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… (อ่านเพิ่มเติม)

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 2 ชั่วโมงก่อน

I need a key for "reload tab", not "reload" page.

Often I open a new tab & it's bugged. (It displays fine but the "right click" menu doesn't work.) The fix is right clicking the tab itself (at the very top) & t… (อ่านเพิ่มเติม)

Often I open a new tab & it's bugged. (It displays fine but the "right click" menu doesn't work.)

The fix is right clicking the tab itself (at the very top) & then clicking "reload tab".

Is there a hotkey for this instead? I hoped ^{f5} would work (control f5) but it didn't seem to.

Asked by rosewoodmahogany 2 ชั่วโมงก่อน

Can't download .ai (adobe illustrator) files. They converts to PDF

Hello, I have a platform where architects can download digital content in the file formats of dwg (autocad) and ai (adobe illustrator). The site is old and has been work… (อ่านเพิ่มเติม)

Hello,

I have a platform where architects can download digital content in the file formats of dwg (autocad) and ai (adobe illustrator). The site is old and has been working for many years.

Today I received an email from a user that had issues downloading the ai files. I went on to the site an investigated. I am also unable to download the ai files. The dwgs are working as expected.

The ai files are converted to pdf and open in the browser in some web preview. If I then download the file from there it is still, when downloaded to my machine, a pdf. This is not the behavior from before. This is a change in Firefox.

How, when, and why is this change implemented? It seems like a pretty radical change, to coerce one file format to another without any option to get the source file for the user.

Any help is appreciated.

Asked by Olof Jondelius 1 เดือนก่อน

Last reply by Olof Jondelius 2 ชั่วโมงก่อน

Bug: No fonts and colors are copied when copying text from any website and pasting to any application

Steps to reproduce: Open any website with latest Firefox version on latest Windows 11 Home OS version Copy any text that has a font or color Paste it to any other… (อ่านเพิ่มเติม)

Steps to reproduce:

  1. Open any website with latest Firefox version on latest Windows 11 Home OS version
  2. Copy any text that has a font or color
  3. Paste it to any other website or desktop application

Expected behavior: Pasted text has the same font and color as copied text

Actual behavior: Pasted text has the same font and color as in the cursor position of the destination application's text editor.

Found workarounds: Use Chrome, Edge or any other browser.

Bug reproduced on 2 computers with and without Firefox extensions.

Asked by robert.peetsalu 3 ชั่วโมงก่อน

searchlight firefox search uses google instead of default duck duck go

Macos sonoma m1 - firefox is default browser, duck duck go is default search engine When doing a search directly from searchlight options, firefox uses google search ins… (อ่านเพิ่มเติม)

Macos sonoma m1 - firefox is default browser, duck duck go is default search engine

When doing a search directly from searchlight options, firefox uses google search instead of the duck duck go default.

All other searches from within firefox uses the default correctly.

Asked by ffdev2 5 ชั่วโมงก่อน

New 123.0 update broke bookmarks toolbar only in private browser

The update to version 123.0 seems to have an issue. When I open a private browsing window, the bookmarks bar does not show. When I select always show, which is already … (อ่านเพิ่มเติม)

The update to version 123.0 seems to have an issue. When I open a private browsing window, the bookmarks bar does not show. When I select always show, which is already selected ... it will show the bookmarks bar ... but if I go to a site or open a new tab it disappears again unless I select always show again, or hit ctrl shift b ... A fix would be great. Thanks so much

Asked by john.lingner 13 ชั่วโมงก่อน

Last reply by john.lingner 12 ชั่วโมงก่อน

Managing a Firefox restart

Hi. I keep several Firefox tabs open and active on my laptop. Inevitably, Firefox slows down after a week or several weeks and would benefit from a Quit / Restart. But th… (อ่านเพิ่มเติม)

Hi. I keep several Firefox tabs open and active on my laptop. Inevitably, Firefox slows down after a week or several weeks and would benefit from a Quit / Restart. But then (I think) I would lose my tabs, which would mean a trip to the library to login and get them back. If I do nothing, a superslow Firefox will usually mean my laptop eventually restarts on its own. Then when I open Firefox I see a "Restore Session" option, which brings everything back (I think I see Restore Session because the computer did its own shutdown). So, this does work, but I have a slow computer until the laptop does its own restart. I am wondering if I can initiate my own Firefox Quit / Restart which will give me the "Restore Session" option. Thanks!

Asked by jwmmackay 1 วันก่อน

Last reply by jwmmackay 13 ชั่วโมงก่อน

Synced Tabs - no longer works

Dear Mozilla Support, [please forgive my poor English - FRENCH is my mother tongue] CONTEXT - I use a Linux (Peppermint) Live DVD to surf the Web, always on the same lap… (อ่านเพิ่มเติม)

Dear Mozilla Support, [please forgive my poor English - FRENCH is my mother tongue]

CONTEXT - I use a Linux (Peppermint) Live DVD to surf the Web, always on the same laptop. I do NOT use any hard disk inside that laptop, just the Live DVD spinned by a DVD player. Only the RAM stores data => fresh new distro for every session - years ago, I created a Firefox account, and the Sync worked perfectly, and allowed me to back up my Bookmarks AND my Opened Tabs (they are stored in Mozzila's cloud, and after each sign in and a sync, they reappear in the left panel). Regarding the Synced Tabs, the left panel used to store all the previous Live DVD sessions (generally with the device's name: peppermint's Linux... (IIRC). - i do NOT use several devices, and do NOT wish to sync date acreoss them. I use Sync to get my Bookmarks and Opened Tabs synced across successive Firefox sessions, day after day. I worked perfectly well.

PROBLEM Since a few weeks, I noted that despite login and sync, on the left panel - Synced Tabs are now empty: no tabs synced at all => so I cannot seamlessly find back my opened tabs from one session to another (if I switch off my laptop, then later restart a new Live DVD session) - see screenshot = https://imgur.com/LO6jWLYl.png - Bookmarks are nevertheless still perfectly synced (see screenshot = https://i.imgur.com/Td0nbY2.png)


Many thanks for you help. Kind regards from Europe.

Asked by olivertwist31416 1 วันก่อน

Last reply by olivertwist31416 18 ชั่วโมงก่อน

Netflix won’t play in firefox

Netflix will not play in Firefox on windows 11. Any help is appreciated. First error message is a connectivity issue, but Netflix will play in other browsers. Then second… (อ่านเพิ่มเติม)

Netflix will not play in Firefox on windows 11. Any help is appreciated. First error message is a connectivity issue, but Netflix will play in other browsers. Then second error message is F7111-1957-205002. I have followed both suggestions, with no luck. Anyone that has had this issue or knows how to fix it, please let me know. Thanks.

Asked by dornwilliston 19 ชั่วโมงก่อน

saved logins vs saved passwords

In some recent update firefox privacy and security settings changed from saved logins to saved passwords. I find this much less useful. Can i change back to saved logins?… (อ่านเพิ่มเติม)

In some recent update firefox privacy and security settings changed from saved logins to saved passwords. I find this much less useful. Can i change back to saved logins?

Asked by MaryDoe 19 ชั่วโมงก่อน

Opening a link to as new tab in social media does not jump to the new tab

Starting with the most recent update, 123.0, when I ctrl-click a link in Twitter or Blue Sky, the link opens in a new tab, but Firefox does NOT jump to the tab automatica… (อ่านเพิ่มเติม)

Starting with the most recent update, 123.0, when I ctrl-click a link in Twitter or Blue Sky, the link opens in a new tab, but Firefox does NOT jump to the tab automatically. In any other site, the browser performs as expected. My options are set correctly, and all the relevant about:config settings are set to False. Using Windows 10, 22h2.

Asked by Furhold 20 ชั่วโมงก่อน

New Computer

I recently migrated data from my old MacBook Pro to a new MacBook Air. I installed Firefox on my new computer as it did not migrate. It installed fine but will not launch… (อ่านเพิ่มเติม)

I recently migrated data from my old MacBook Pro to a new MacBook Air. I installed Firefox on my new computer as it did not migrate. It installed fine but will not launch. Please help.

Asked by Charlie 2 วันก่อน

Last reply by Charlie 20 ชั่วโมงก่อน

Warning emails from Mozilla about the use of Firefox 78 with iOS 10. El Capitan

I’m being advised via emails from Mozilla, to update my browser. It says it’s up to date. A cut off of 31 March has been stated. My mbp won’t run higher than OS X 10.1… (อ่านเพิ่มเติม)

I’m being advised via emails from Mozilla, to update my browser. It says it’s up to date. A cut off of 31 March has been stated.

 My mbp won’t run higher than OS X 10.11.6. Firefox 78.15.0esr the latest browser for my system..afaik. I am on the ear update channel, and think it update’s automatically 
Am I being left high & dry by Mozilla ? 

Something in the emails about syncing…? Not convinced if this is something I should be doing something about or not…

 Any advice or insights much appreciated. The suggestion seems to be that I will be shut out without passwords and recovery keys and whole load of inconvenience…?
  Tia

Tim

Asked by timr123 20 ชั่วโมงก่อน

No audio when sound card at 44.1khz.

Firefox plays audio just fine when my sound card is set to 48khz, but not 44.1khz. I searched for troubleshooting solutions online, but I did not find sufficient informat… (อ่านเพิ่มเติม)

Firefox plays audio just fine when my sound card is set to 48khz, but not 44.1khz. I searched for troubleshooting solutions online, but I did not find sufficient information regarding this specific issue. Please help.

Thanks Matt

Asked by Matthew Duncan 1 วันก่อน

Last reply by Matthew Duncan 22 ชั่วโมงก่อน

Shortcuts Websites from bookmarks or history

Good Evening. I can't enable or manage shortcuts on the home page. I put a link in the boxes and it doesn't keep it, it doesn't save it. Shortcuts Websites from bookmar… (อ่านเพิ่มเติม)

Good Evening. I can't enable or manage shortcuts on the home page. I put a link in the boxes and it doesn't keep it, it doesn't save it.

Shortcuts

Websites from bookmarks or history

Thanks

Har

Asked by Ψήγματα Ορθοδοξίας 22 ชั่วโมงก่อน

How to request reopening of a closed bug without permission to comment?

Bug 1765091 is closed with milestone version 101 I seem to have the exact same issue in version 123 I would like to politely request to consider reopening that bug, but I… (อ่านเพิ่มเติม)

Bug 1765091 is closed with milestone version 101 I seem to have the exact same issue in version 123 I would like to politely request to consider reopening that bug, but I don't know how. Bugzilla says I'm not allowed to comment on a closed bug.

Asked by wowbagger 23 ชั่วโมงก่อน

Last reply by wowbagger 22 ชั่วโมงก่อน

While Browsing in Facebook the Browser seems to stutter.

When I scroll through Facebook, often if there are two posts with photos, the browser seems to jump back and forth between the two images making it impossible to see or r… (อ่านเพิ่มเติม)

When I scroll through Facebook, often if there are two posts with photos, the browser seems to jump back and forth between the two images making it impossible to see or read either. My release is 123.0 and it was loaded when I needed to restore my system after a drive upgrade about 10 days ago.

Asked by Marty Lampner 23 ชั่วโมงก่อน

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox, I want to get rid of it programmatically using java, which argument … (อ่านเพิ่มเติม)

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox, I want to get rid of it programmatically using java, which argument or preference should I use ?

Asked by fuefirsttest 1 วันก่อน

Last reply by fuefirsttest 23 ชั่วโมงก่อน