Bug 1037655 - Move popup icon live preview into a preview icon in the editor 

I hadn't thought about that. You're right, we will need the updateIcon function.