Actually removing try-catch here might not have been such a great idea, given that the preference `network.cookie.lifetimePolicy` could change after the viewer was loaded. (There should probably be a try-catch around the `localStorage.setItem` call 4 lines down too.)

Another, better (?), solution might be to add a Promise in `_writeToStorage` as well. Opinions?