Version 2.2.3 of the CCK2 Wizard is now available.
The main thing I’ve done with this version is (hopefully) finally solved the duplicate bookmarks problem. I’ve done this via two changes.
- If a bookmark being added exactly matches another bookmark in the same location, it is removed
- I’ve added a new option to do the same thing if the title of the bookmark is the same (so you can change URLs).
Another new feature is the ability to prevent add-ons from being hidden or disabled based on their ID. You can add these IDs on the add-ons page in the CCK2 Wizard. To find out the ID of an add-on, you can unzip the add-on’s XPI file and look in the file install.rdf.
As far as bug fixes go, they are:
- Prevent installation of XPIs in about:addons via drag/drop.
- Mark CCK2 and generated XPIs as multiprocess compatible (because they are).
- Stop using a sync XHR for certificate overrides at startup. (This was causing startup hangs.)
- Add extra validation to the config name so we don’t end up with bad characters.
- Ignore errors when there is no crash reporter so the CCK2 works on Linux with the crash reporter disabled.
- Workaround bug 1338154 by adding text at the beginning of resource paths.
- Remove an unused function to prevent a warning error.
- Turned off the upgrade page
You can click here for more details about the release and to download it.
Hello,
I’m sure this is a moot point, but is there any concern about compatibility with ESR releases?
Thanks!
There should not be. It should work with Firefox 45, current Firefox releases and Firefox 52 until its EOL.
Thanks!
We are planning on looking at 52 ESR when it is released on the 7th as it’s the last with NPAPI plugin support.
Hello,
FYI, this appears to occur with every launch of Firefox after upgrading to the 52.x release.
Hello,
As an addendum, we are using CCK2 version 2.1.2.
Using CCK 2.2.3 and Firefox 52.0esr, I receive this error on every launch.
———-
[Exception… “Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]” nsresult: “0x804b000a (NS_ERROR_MALFORMED_URI)” location: “JS frame :: resource://gre/modules/NetUtil.jsm :: NetUtil_newURI :: line 206” data: no]
NetUtil_newURI@resource://gre/modules/NetUtil.jsm:206:16
CCK2.init@resource://cck2/CCK2.jsm:261:34
@cck2.cfg:574:1
———-
Here’s what I have on the pertinant lines:
cck2.cfg:574:
Components.utils.import(“resource://cck2/CCK2.jsm”);
/cck2/CCK2.jsm:261:
Services.perms.add(NetUtil.newURI(“http://” + i), j, config.permissions[i][j]);
(I’m not sure where NetUtil.jsm is located)
Am I missing something here or is there already a fix I’m unaware of?
Hello,
I get the same error with 2.1.2 on Firefox 52 mainline release.
Was in the process of testing with a new config built with Firefox 52 and CCK2 2.2.3.
Just did a little more testing.. My configs generated with CCK2 v2.2 also resulted in the same error with ESR 52.0.
Hello,
Just verified that this issue also occurs with the mainline release of Firefox 52 with a brand new config generated with CCK2 2.2.3.
So this has to do with a change to the way permissions are specified in Firefox. They used to be URLs, but now they are domains. I should have done something to maintain compatiblity.
Can you post (with cleanup if necessary), the values of the permissions sections of your CFG? That will give me some things to test with so I can make the code work.
Heya Mike!
Thanks for the quick response!
Here’s an example of the permissions section of my cfg:
“permissions”: {
“*.myorg.edu”: {
“popup”: 1,
“install”: 1,
“cookie”: 1,
“plugins”: 1
},
“*.myorg2.edu”: {
“popup”: 1,
“install”: 1,
“cookie”: 1,
“plugins”: 1
},
“*.myorg3.edu”: {
“popup”: 1,
“install”: 1,
“cookie”: 1,
“plugins”: 1
},
“*.myorg4.edu”: {
“popup”: 1,
“install”: 1,
“cookie”: 1,
“plugins”: 1
}
},
Thanks!
It’s the *. at the beginning. It’s not needed.
I’ll add code in the CCK2 to remove.
Bingo… After removing that section, the error goes away.
Here is a dumbed down version of mine. I removed all but 2 entries, and change the hostnames to bogus names, but it still produced the error with this data. Removing it got rid of the error:
“permissions”: {
“*.hostnameone.com”: {
“popup”: 1,
“cookie”: 1
},
“*.hostnametwo.com”: {
“popup”: 1,
“cookie”: 1
}
},
It’s the *. at the beginning. It’s not needed.
I’ll add code in the CCK2 to remove.
so, should it be “myorg.edu” or “.myorg.edu”?
myorg.edu. It has to be a valid URL if http:// is placed at the beginning.
Thanks! That worked for me…
Yup, worked for me too, thanks Mike!
Not sure why it worked all along and suddenly broke with 52.0.
Thanks Mozilla! 🙂
Yeah, no idea. I might try to track that one down.
I also released a CCK2 update that works around it.
Just noticed with a new config, that CCK indeed prevents users from installing add-ons, but that does not seem to work for https://testpilot.firefox.com/. I am able to install the Testpilot add-on and the experiments listed.
I’ll see what I can do to prevent that.
Is there already some solution to prevent user to install add-ons from the test pilot webpage?
Unfortunately not and I am having trouble writing one. I’m investigating getting a patch into Firefox that fixes this.
A patch is going into Firefox and the ESR to prevent installs on the Test Pilot page.
I have just compiled the custom configuration for Firefox ESR 52.0.1 with CCK2 – v2.2.3 and completed a test deployment with the customized configuration and when Firefox is opened, I get the error below and the customized configuration for the browser seems to have failed to be applied.
CCK2 error: [Exception… “Component returned failure code 0x804b000a (NS_ERROR_MALFORED_URI) [nsIIOService.newURI]” nsresult: “0x804b000a (NS_ERROR_MALFORMED_URI)” location: “JS frame::resource//gre/modules/NetUtil.jsm::NetUtil_newURI::line 206” data: no]
NetUtil_newURI@resource://gre/modules/NetUtil.jsm:206:16 CCK2.init@resource://cck2/CCK2.jsm:261:34@cck2.cfg:448:1
Can you grab the new CCK2 and see if you still have this? The core problem is using *. in permissions URLs. That’s no longer allowed.
Hi Mike,
What’s the best method for deployment, since we can’t install the wizard as an extension any longer? That was how I used CCK last year.
I recommend the AutoConfig method – https://mike.kaply.com/2015/01/13/cck2-what-now/
More importantly, is there a way that the add-ons will be updated automatically??
When I add uBlock Origin e.g. via
https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/addon-607454-latest.xpi
It just downloads the XPI but never updates to a newer version of the add-on.
If you install via that URL, that is the latest version.
The CCK2 installs add-ons via standard mechanisms, so it should get updates like any other add-on.
Hello, I have a problem with CCK2 V 2.2.3. I have an existing configuration as AutoConfig distributed to clients. The configuration includes, among other things, a bookmark folder with bookmarks. Now, the address / location of a bookmark has changed and I will change the address in the Bookmarks on all Clients via CCK2-AutoConfig methode. If I change the address/Location of the Bookmark in CCK2 V2.2.3. ,create a new configuration with Use AutoConfig and copy the files to target computer I get 2 Bookmark folders, once with the old link, once with the new link. What am I doing wrong?
Hello,
CCK2 is not working anymore when upgrading to the latest Firefox 57 because FF now only support add-ons based on the WebExtension platform.
Are there any news that CCK2 will develop such an extension?
Please see:
https://mike.kaply.com/2017/11/15/firefox-quantum-and-cck2/
Hello, and thank you for this awesome addon 🙂
I can make many things with CCK2. There is two things I did not find how to do (I’m using Firefox 52 ESR) :
How to prevent users displaying the menu bar and the personal bar (can I add them in hidden UI?), and how to move the “print icon” next to the other visible icons and search bar, on the left?
Have a nice day/evening