Page 5 of 7

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

PostPosted: Tue Sep 19, 2017 10:50 am
by Infocatcher
Something for Firefox 57:
Signed: custom_buttons-0.0.5.8.9-fixed5-signed.xpi
Not signed: custom_buttons-0.0.5.8.9-fixed5.xpi

+ in about:config:
extensions.allow-non-mpc-extensions = true
extensions.legacy.enabled = true

Many thanks to Dumby.

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

PostPosted: Tue Sep 19, 2017 11:53 am
by morat
Many thanks to Dumby and Infocatcher.

Does the Attributes Inspector button and the DOM Inspector extension still work in Firefox 57?

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

PostPosted: Tue Sep 19, 2017 1:43 pm
by Infocatcher
morat wrote:Does the Attributes Inspector button and the DOM Inspector extension still work in Firefox 57?

Attributes Inspector is still alive (with some stranges with pages content due to compatibility shims from extensions.allow-non-mpc-extensions = true).
DOM Inspector is broken (with empty panels).

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

PostPosted: Tue Sep 19, 2017 2:12 pm
by Infocatcher
Hopefully DOM Inspector isn't so broken... just one simple fix around removed nsIPrefBranch2: dom_inspector-2.0.16-fixed.xpi (not signed).

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

PostPosted: Wed Sep 20, 2017 9:39 pm
by trapper john
Thanks Infocatcher, it's good to have at least some function back. Hopefully this will keep working through v59, provided they don't remove the xul code completely by then. I'm sure someone will find a way to make the 59esr release work with addons enabled if they don't.

There's still a problem though with some buttons if this code is used:

var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\file name.vbs");
file.launch();

Is there any hope for a fix?

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

PostPosted: Wed Sep 20, 2017 10:09 pm
by morat
@trapper john

Try this:

s/nsILocalFile/nsIFile/g

Removal of nsILocalFile and other interfaces
http://groups.google.com/forum/#!topic/ ... bQIuLNv_2s

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

PostPosted: Thu Sep 21, 2017 12:00 am
by trapper john
@ morat, where do you make that change? I went through the buttons and replaced them with s/nsILocalFile/nsIFile/g but that didn't do anything.

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

PostPosted: Thu Sep 21, 2017 1:12 am
by morat
The term "s/cat/dog/g" stands for substitute cat for dog globally.

Try replacing nsILocalFile with nsIFile. (not tested)

Code: Select all
/*Code*/
var file = Components.classes["@mozilla.org/file/local;1"].
  createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("C:\\Windows\\System32\\notepad.exe");
file.launch();

Code: Select all
/*Code*/
var file = Components.classes["@mozilla.org/file/local;1"].
  createInstance(Components.interfaces.nsIFile);
file.initWithPath("C:\\Windows\\System32\\notepad.exe");
file.launch();

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

PostPosted: Thu Sep 21, 2017 1:43 am
by trapper john
That simple change got most of my buttons working again, thanks for the fix. Now I've got only a few buttons left; I can't clean out cookies anymore and the browser won't restart. Not only that but the keyconfig addon is dead. Just like that Mozilla turned the browser upside down and we'll have to spend hours making it functional as it was before.

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

PostPosted: Fri Sep 29, 2017 11:31 am
by morat
Custom Buttons could not be installed because it is not compatible with Firefox 57.0.

This add-on could not be installed because it has not been verified. (DOM Inspector)

I'm using Fx Beta 57.0b3.

How do I bypass extension signing check in Fx 57? My workaround in Fx 56 is not working in Fx 57.

http://forums.mozillazine.org/viewtopic ... #p14755881

Code: Select all
// Scratchpad Browser Environment

// alerts "function" in Fx Release 56.0
// alerts "undefined" in Fx Beta 57.0b3

var a = "resource://gre/modules/addons/XPIProvider.jsm";
var b = "resource://gre/modules/addons/XPIInstall.jsm";

alert(typeof Components.utils.import(a, {}).eval);
alert(typeof Components.utils.import(b, {}).eval);

I tried settings the following preferences in the about:config page.

extensions.allow-non-mpc-extensions = true
extensions.legacy.enabled = true
xpinstall.signatures.required = false

I haven't tried the following hack yet.

http://forums.mozillazine.org/viewtopic ... #p14764715