[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 Infocatcher » Tue Sep 19, 2017 10:50 am

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.
Attachments
custom_buttons-0.0.5.8.9-fixed5.xpi.zip
Unsigned version
(117.87 KiB) Downloaded 35 times
custom_buttons-0.0.5.8.9-fixed5-signed.xpi.zip
Signed version
(127.32 KiB) Downloaded 70 times
Infocatcher
 
Posts: 123
Joined: Sat Jul 21, 2012 5:04 pm

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

Postby morat » Tue Sep 19, 2017 11:53 am

Many thanks to Dumby and Infocatcher.

Does the Attributes Inspector button and the DOM Inspector extension still work in Firefox 57?
morat
 
Posts: 944
Joined: Wed Dec 28, 2011 2:38 pm

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

Postby Infocatcher » Tue Sep 19, 2017 1:43 pm

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).
Infocatcher
 
Posts: 123
Joined: Sat Jul 21, 2012 5:04 pm

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

Postby Infocatcher » Tue Sep 19, 2017 2:12 pm

Hopefully DOM Inspector isn't so broken... just one simple fix around removed nsIPrefBranch2: dom_inspector-2.0.16-fixed.xpi (not signed).
Infocatcher
 
Posts: 123
Joined: Sat Jul 21, 2012 5:04 pm

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

Postby trapper john » Wed Sep 20, 2017 9:39 pm

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?
trapper john
 
Posts: 107
Joined: Wed Mar 14, 2012 6:58 pm

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

Postby morat » Wed Sep 20, 2017 10:09 pm

@trapper john

Try this:

s/nsILocalFile/nsIFile/g

Removal of nsILocalFile and other interfaces
http://groups.google.com/forum/#!topic/ ... bQIuLNv_2s
morat
 
Posts: 944
Joined: Wed Dec 28, 2011 2:38 pm

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

Postby trapper john » Thu Sep 21, 2017 12:00 am

@ 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.
Last edited by trapper john on Thu Sep 21, 2017 5:46 am, edited 1 time in total.
trapper john
 
Posts: 107
Joined: Wed Mar 14, 2012 6:58 pm

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

Postby morat » Thu Sep 21, 2017 1:12 am

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();
morat
 
Posts: 944
Joined: Wed Dec 28, 2011 2:38 pm

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

Postby trapper john » Thu Sep 21, 2017 1:43 am

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.
trapper john
 
Posts: 107
Joined: Wed Mar 14, 2012 6:58 pm

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

Postby morat » Fri Sep 29, 2017 11:31 am

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
morat
 
Posts: 944
Joined: Wed Dec 28, 2011 2:38 pm

PreviousNext

Return to Bug report