We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

How do I set a local HTML page as the new tab page?

  • 1 wótegrono
  • 1 ma toś ten problem
  • 1 naglěd
  • Slědne wótegrono wót El-Johno

more options

I've got a local HTML file that I use as a home page and I'd like to replace the new tab page with it as well. The recent update (76), have broken my previous method of doing this. I did this using an autoconfig file described by user cor-el's answers to the same question: https://support.mozilla.org/en-US/questions/1251199.

After the recent update, my browser fails to read the .cfg on startup and tells me that each time I open Firefox ('failed to read the configuration file'). For transparency, the code in that .cfg file looks like this:

// Do not remove this comment

var {classes:Cc,interfaces:Ci,utils:Cu} = Components;

var newTabURL = "file:///path-to-my-page/index.html";

aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService);

aboutNewTabService.newTabURL = newTabURL;

Not sure how to put that in a code format on this forum. If anyone has any idea why the recent changes have broken this or a way to fix it, I'd appreciate it.

Edit: I've figured out it fails on the last line, as commenting that out causes it to no longer fail to read the config file. Can you not set the newTabURL anymore? Has it been renamed to something else?

I've got a local HTML file that I use as a home page and I'd like to replace the new tab page with it as well. The recent update (76), have broken my previous method of doing this. I did this using an autoconfig file described by user cor-el's answers to the same question: https://support.mozilla.org/en-US/questions/1251199. After the recent update, my browser fails to read the .cfg on startup and tells me that each time I open Firefox ('failed to read the configuration file'). For transparency, the code in that .cfg file looks like this: // Do not remove this comment var {classes:Cc,interfaces:Ci,utils:Cu} = Components; var newTabURL = "file:///path-to-my-page/index.html"; aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService); aboutNewTabService.newTabURL = newTabURL; Not sure how to put that in a code format on this forum. If anyone has any idea why the recent changes have broken this or a way to fix it, I'd appreciate it. Edit: I've figured out it fails on the last line, as commenting that out causes it to no longer fail to read the config file. Can you not set the newTabURL anymore? Has it been renamed to something else?

Wót El-Johno změnjony

Wubrane rozwězanje

My bad, didn't see this question before: https://support.mozilla.org/en-US/questions/1283835

Hopefully my question can at least funnel people there who didn't know to search for .cfg issues.

Toś to wótegrono w konteksće cytaś 👍 0

Wšykne wótegrona (1)

more options

Wubrane rozwězanje

My bad, didn't see this question before: https://support.mozilla.org/en-US/questions/1283835

Hopefully my question can at least funnel people there who didn't know to search for .cfg issues.