fix nearly a dozen printing bugs in firefox, at great risk to my personal health