Item14106: Firefox extension not working
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component:
Branches: master
I am able to connect to the server and update files directly from Office products and am now trying to enable the launching of
WebDAV editing from the wiki site viewed in Firefox.
I've installed the
WebDAVLink extension and configured it with entries such as:
\.xls$ = C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE
However, when triggered I'm getting the following exception:
--
CrawfordCurrie for Dan Nordin (email) - 21 Jun 2016
We sorted out the issue, it was a change in the nsIPrefService API, getCharPref is no longer a method of the service it now only a method of branches.
So in content/overlay.js:
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
appList = prefs.getCharPref("extensions.webdavlink.apps"); // THROWS EXCEPTION
Becomes:
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.getBranch("extensions.webdavlink.");
appList = prefs.getCharPref("apps");
Now everything works fine, except for some reason the writing of message to the console isn't working, probably some about:config setting I need to flip or something. I haven't looked into that yet.
--
CrawfordCurrie for Dan Nordin (email) - 22 Jun 2016
Reopened - missing . in the fix
All seems OK now. Submitted for listing on FF, but not hopeful so uploaded unlisted signed .xpi to extension topic.
--
Main.CrawfordCurrie - 03 Nov 2016 - 10:56