We don't modify https-everywhere, so it shouldn't fail the signing requirement. Maybe we can only add the exception for torbutton and tor-launcher?
Agreed. I think it's worth being even more conservative and adding only exceptions for things we actually need, meaning only Torbutton for the alpha for now.
Looks good to me. But the security settings are still not enabled by default on my phone. I.e. while messing with the about:config is not necessary anymore, I still need sysrqb's trick in comment:11:ticket:26884. The bundle I used is available in comment:23:ticket:26884.
Do we need to change mustSign()? I haven't tested this yet, but the code path I see will still fail - maybe I'm looking in the wrong place. I'll test this, as well.
The issue is not about signatures anymore. Looks like there is a race condition in the addons code. If i close the browser and open again. The addon is loaded.
The issue is not about signatures anymore. Looks like there is a race condition in the addons code. If i close the browser and open again. The addon is loaded.
(where AddonManager.SIGNEDSTATE_NOT_REQUIRED has value undefined), so the inner conditional block isn't executed:
if (mustSign(this.addon.type)) { if (this.addon.signedState <= AddonManager.SIGNEDSTATE_MISSING) { [...] if (state == AddonManager.SIGNEDSTATE_MISSING) return Promise.reject([AddonManager.ERROR_SIGNEDSTATE_REQUIRED, "signature is required but missing"]); [...] } }
As for the race condition, I don't think that's true. I think that is because torbutton isn't a restartless extension. It requires restarting after installation. I don't think there's anyway way we can prevent this. I wonder if we can force a restart (semi-transparently) at the end of the firstrun onboarding screen.
As for the race condition, I don't think that's true. I think that is because torbutton isn't a restartless extension. It requires restarting after installation. I don't think there's anyway way we can prevent this. I wonder if we can force a restart (semi-transparently) at the end of the firstrun onboarding screen.
I agree that leaving the user without Torbutton is suboptimal especially as they would be looking for the slider settings (I assume we advertise those) and might not restart the browser (who is restarting things today anyways unless one is not forced too?). Is there some quick fix for this then we could include it in the alpha. If it's more elaborate and we need to think more I don't want to delay the alpha further for that (we can add the restart this to the TBA alpha "manual"). Anyway, I think that's for a new ticket.
Trac: Resolution: N/Ato fixed Status: needs_review to closed