[Signed fixed extension attached] CB broken on Firefox 48+

Post information about bugs here

Re: [Signed fixed extension attached] CB broken on Firefox 4

Postby trapper john » Sun Jan 28, 2018 2:38 am

morat wrote:I didn't test the idea... instead of using Dumby's fix, why can't we take the defaults\preferences\*.js files in the *.xpi files and place these *.js files into the folder with the autoconfig.js file?

Thanks for this tip, wish I knew earlier, it works good, got a few of my legacy addons back (Menu Editor and Context Bookmarks). Now we don't have to bug Dumby. :--)

Shame about userChrome.css, that's the only lifeline we have to customization but I'm trying to hang on to 60esr.
trapper john
 
Posts: 112
Joined: Wed Mar 14, 2012 6:58 pm

Re: [Signed fixed extension attached] CB broken on Firefox 4

Postby trapper john » Sun Jan 28, 2018 3:10 am

morat, could you check please if this page styles code works for 58:

var viewStyle = getMarkupDocumentViewer().authorStyleDisabled;
if (viewStyle) {
getMarkupDocumentViewer().authorStyleDisabled = false;
} else {
getMarkupDocumentViewer().authorStyleDisabled = true;
}

It broke for me sometime in 58 or 59.
trapper john
 
Posts: 112
Joined: Wed Mar 14, 2012 6:58 pm

Re: [Signed fixed extension attached] CB broken on Firefox 4

Postby morat » Sun Jan 28, 2018 9:06 am

Try this:

Code: Select all
/*Code*/
var browser = gBrowser.selectedBrowser;
var styleSheetInfo = gPageStyleMenu._getStyleSheetInfo(browser);
var styleDisabled = styleSheetInfo.authorStyleDisabled;
if (styleDisabled) {
  gPageStyleMenu.switchStyleSheet("");
} else {
  gPageStyleMenu.disableStyle();
}

view-source:chrome://browser/content/browser.xul
view-source:chrome://browser/content/browser.js
morat
 
Posts: 951
Joined: Wed Dec 28, 2011 2:38 pm

Re: [Signed fixed extension attached] CB broken on Firefox 4

Postby trapper john » Sun Jan 28, 2018 1:44 pm

That works good, thank-you. Can't live without this one, it gets rid of the junk quickly so you can easily read the page.
trapper john
 
Posts: 112
Joined: Wed Mar 14, 2012 6:58 pm

Previous

Return to Bug report

cron