I'm using firefox developer edition. The latest version: 76.0b2
I have firefox.cfg set up to overwrite new tab content with locally stored html. The code in firefox.cfg t… (閱讀更多)
I'm using firefox developer edition. The latest version: 76.0b2
I have firefox.cfg set up to overwrite new tab content with locally stored html. The code in firefox.cfg that worked until recent update:
/* set new tab page */
try {
var newTabURL = "file:///G:/Documents/Newtab.html";
aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService);
aboutNewTabService.newTabURL = newTabURL;
} catch(e){Cu.reportError(e);} // report errors in the Browser Console
In the browser console there is an error message displayed:
[Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: firefox.cfg :: <TOP_LEVEL> :: line 7" data: no]
Any idea what that error message means and how to resolve it? Does anything changed regarding new tab overwrite?