- Solved
- Archived
How to set focus on newtab page and not the url bar
When I open a new tab, i would like the page to be in focus and not the urlbar. This is what i used to have in my mozilla.cfg: ``` // Auto focus new tab content try { C… (read more)
When I open a new tab, i would like the page to be in focus and not the urlbar. This is what i used to have in my mozilla.cfg: ``` // Auto focus new tab content try {
Cu.import("resource://gre/modules/Services.jsm"); Cu.import("resource:///modules/BrowserWindowTracker.jsm");
Services.obs.addObserver((event) => { window = BrowserWindowTracker.getTopWindow(); window.gBrowser.selectedBrowser.focus(); }, "browser-open-newtab-start");
} catch(e) { Cu.reportError(e); } ``` This worked until the last update. What solutions are there?