Bug 1083391: Only send panel show/hide events after the panel's document is ready. r=erikvold