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… (les mer)

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 timer siden

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… (les mer)

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 timer siden

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… (les mer)

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 måned siden

Last reply by Olof Jondelius 3 timer siden

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… (les mer)

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 4 timer siden

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… (les mer)

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 6 timer siden

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 … (les mer)

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 timer siden

Last reply by john.lingner 13 timer siden

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… (les mer)

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 dag siden

Last reply by olivertwist31416 19 timer siden

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… (les mer)

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 20 timer siden

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?… (les mer)

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 20 timer siden

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… (les mer)

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 timer siden

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… (les mer)

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 21 timer siden

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… (les mer)

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 Ψήγματα Ορθοδοξίας 23 timer siden

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… (les mer)

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 timer siden

Last reply by wowbagger 23 timer siden

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… (les mer)

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 timer siden

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 … (les mer)

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 dag siden

Last reply by fuefirsttest 1 dag siden

FIDO2 not working on Firefox on MacOS Sonoma

I use OnlyKey usb key as FIDO2 MFA with most of my accounts. On Firefox 123.0 on MacOS Sonoma 14.2.1 (23C71) however, I get presented with multiple pop ups to touch my us… (les mer)

I use OnlyKey usb key as FIDO2 MFA with most of my accounts. On Firefox 123.0 on MacOS Sonoma 14.2.1 (23C71) however, I get presented with multiple pop ups to touch my usb key but the key expects only one input/touch and it fails when I touch it the second time. This was not the workflow that I used to use before and it still works fine on MacOS ventura with Firefox + protonmail.

Asked by Robel Yemane 1 dag siden

Firefox

My Firefox browser is broken, I can open Firefox but I can not do anything it will not respond, clicking anywhere prompts a "Firefox is not responding" error message, I w… (les mer)

My Firefox browser is broken, I can open Firefox but I can not do anything it will not respond, clicking anywhere prompts a "Firefox is not responding" error message, I was able to "refresh" Firefox once with zero results, I have tried uninstalling Firefox yet it will not uninstall the uninstallation window comes up yet no matter how long it sits open nothing happens, I have tried reinstalling Firefox with no results, the installation freezes just before completing and says "Firefox could not be installed". I have been using Firefox as my primary browser for a long time but I am unable to use it in any way now. All other browsers are working fine no issues but I do prefer Firefox and would like to continue to do so. What do you suggest?

Asked by crsdes 1 dag siden