←back to thread

1318 points xvector | 1 comments | | HN request time: 0.483s | source
Show context
pritambaral ◴[] No.19824780[source]
Run this in your Browser Console[1] to delay signature checking for a day:

    function set_xpi_sign_time_now() {
        const {Services} =  ChromeUtils.import("resource://gre/modules/Services.jsm");
        const now = (new Date()).getTime() / 1000;
        Services.prefs.setIntPref('app.update.lastUpdateTime.xpi-signature-verification', now);
    }
    
    set_xpi_sign_time_now();

EDIT: Changed `Components.utils.import` to `ChromeUtils.import` because apparently Beta and Nightly versions have removed the former, while the latter was introduced in 60.

This does the equivalent of setting in about:config the time of last signature verification to the current time. By default, Firefox re-checks signatures in 24 hours (or so I read somewhere here). I like the temporary effect of this, compared to the permanent disabling of signature verification suggested elsewhere.

----

1: https://developer.mozilla.org/en-US/docs/Tools/Browser_Conso...

replies(3): >>19824794 #>>19824823 #>>19825204 #
nodja ◴[] No.19824794[source]
Can you set this to the future and get say a week of buffer time for the fix to get pushed?

edit: nope, you cannot:(

replies(2): >>19824801 #>>19824824 #
pritambaral ◴[] No.19824801[source]
1. I don't think that'd be necessary; I believe Mozilla will fix it in a day, or two at most (PS: they're currently testing a fix); and

2. I don't know if there's sanity-checking code in Firefox to ignore times in the future.

replies(1): >>19824845 #
1. nodja ◴[] No.19824845[source]
I tried it and it was set to 0 when I restarted firefox (and the extensions were gone).