Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Firefox 136 broke my custom new tab page, how do I fix it?

  • 6 réponses
  • 1 a ce problème
  • 12 vues
  • Dernière réponse par firefox2506

more options

I'm on Linux.

I've been using this method to setup a custom new tab page for Firefox for almost 4 years, and it has worked great: https://jamesnorth.net/knowledge-base/article/firefox-new-tab-page

---

Navigate to /usr/lib/firefox.

Create autoconfig.cfg:

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

/* set new tab page */ try {

 Cu.import("resource:///modules/AboutNewTab.jsm");  
 var newTabURL = "file:///home/james/ff/index.html";  
 AboutNewTab.newTabURL = newTabURL;  

} catch(e){Cu.reportError(e);} // report errors in the Browser Console

Create defaults/pref/autoconfig.js:

// pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false);

---

However, upon updating to Firefox 136, I only get a blank page. All of my autoconfig files still exist in /usr/lib/firefox.

When I create a new tab with Ctrl+T, it's a blank page. When I create a new window, it loads the local page I want it to load with the file path in the URL (which it never had before; the URL bar was blank in Firefox 135). So it seems to be partially working.

Any tips?

I'm on Linux. I've been using this method to setup a custom new tab page for Firefox for almost 4 years, and it has worked great: [https://jamesnorth.net/knowledge-base/article/firefox-new-tab-page https://jamesnorth.net/knowledge-base/article/firefox-new-tab-page] --- Navigate to /usr/lib/firefox. Create autoconfig.cfg: // var {classes:Cc,interfaces:Ci,utils:Cu} = Components; /* set new tab page */ try { Cu.import("resource:///modules/AboutNewTab.jsm"); var newTabURL = "file:///home/james/ff/index.html"; AboutNewTab.newTabURL = newTabURL; } catch(e){Cu.reportError(e);} // report errors in the Browser Console Create defaults/pref/autoconfig.js: // pref("general.config.filename", "autoconfig.cfg"); pref("general.config.obscure_value", 0); pref("general.config.sandbox_enabled", false); --- However, upon updating to Firefox 136, I only get a blank page. All of my autoconfig files still exist in /usr/lib/firefox. When I create a new tab with Ctrl+T, it's a blank page. When I create a new window, it loads the local page I want it to load with the file path in the URL (which it never had before; the URL bar was blank in Firefox 135). So it seems to be partially working. Any tips?

Modifié le par firefox2506

Toutes les réponses (6)

more options

What custom page? How did you verify the page works with Firefox browser? The browser is a general browser for everyone and page if there is something on the page that doesn't match what Firefox browser latest version expects it most likely won't load or run it. And this comes down to security to prevent breakage of the browser itself so it can still work and be used.

Cela vous a-t-il été utile ?

more options

Hi Mark,

> What custom page?

My custom page. I created the .html and .css files for my own page that I want to display when I open a new tab. The way to get Firefox to display the page is to create the autoconfig files as detailed in the original question.

I verified that the page worked by using Firefox with this page for 4 years :)

The page is just simple HTML/CSS, as you'll see from the link in the original question. It still works when you open a new window in Firefox 136 - just not a new tab.

If this is a security feature, it's poorly-implemented because it only fails to load the page for new tabs and not new windows.

Cela vous a-t-il été utile ?

more options

If that's the case you should post that to a html or css forum for other programmers to review to see if there is issues with it and the browser it runs on to verify that it works as intented.

Cela vous a-t-il été utile ?

more options

I have removed the CSS and slimmed down the HTML. The entire HTML document is now just this (pictured in screenshot).

It displays in a new window. It does not display in a new tab. It works fine in Firefox 135 on my other computer, as it did for every version between 91 and 135 (and probably for many years before that).

Mozilla has clearly changed something. Perhaps I'll submit a bug to the bugzilla.

Modifié le par firefox2506

Cela vous a-t-il été utile ?

more options

Hey there, I have the same problem on Fedora 41. I can confirm the upgrade from version 135 to 136 is the cause. Rolling back to 135 makes the configuration work again.

@firefox2506 did you ever create a bug on the bugzilla? If so, mind posting a cross reference it here?

Cela vous a-t-il été utile ?

more options

@noassl Someone else had already created a bug and mine got merged as a duplicate.

The answer is essentially, "we're surprised it worked for as long as it did because this hasn't been supported for years."

https://bugzilla.mozilla.org/show_bug.cgi?id=1950457

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.