Firefox popup handler